简体   繁体   English

我们可以在不公开提供字节码的情况下部署智能合约吗?

[英]can we deploy smart contract without publicly giving bytecode?

I'm learning dapp and blockchain, everytime we deploy smart contract, the bytecode is visible to all at polyscan/etherscan.我正在学习 dapp 和区块链,每次我们部署智能合约时,都可以在 polyscan/etherscan 上看到字节码。 can we hide that?我们可以隐藏吗? means deploy smart contract without giving bytecodes?意味着在不提供字节码的情况下部署智能合约?

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.鉴于区块链的开放性,我认为没有办法隐藏这一点,因为每当我们部署合约时,我们都会更新区块链的 state,它是不可变的。

Your code gets executed on Ethereum Virtual Machine(EVM) and bytecode gives the instructions to EVM on how to execute the code.您的代码在以太坊虚拟机 (EVM) 上执行,字节码向 EVM 提供有关如何执行代码的说明。 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.字节码是 EVM 理解的低级语言,在部署期间是必需的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM