Can we deploy smart contract without publicly giving bytecode?

Viewed 538

I'm learning dapp and blockchain development, every time we deploy a smart contract, the bytecode is visible to all at polyscan/etherscan. Can we hide that? Can we deploy smart contract without giving bytecodes ?

2 Answers

I think there is no way to hide that given the open nature of the blockchain because whenever we deploy a contract we update the state of the blockchain which is immutable.

Your code gets executed on Ethereum Virtual Machine(EVM) and bytecode gives the instructions to EVM on how to execute the code. The bytecode is what represents the contract and it is deployed in the Ethereum ecosystem. The bytecode is a low-level language that the EVM understands is required during deployment.

Related