Move.

帖子

分享您的知识。

skywinder.
Jan 17, 2025
专家问答

How can I verify on-chain binary matches GitHub code?

I've got a smart contract on-chain and I need to ensure that its binary matches with the code from a GitHub repository. I've installed the sui client. How can I compile the repo and compare the binary effectively?

  • Move Bug
2
2
分享
评论
.

答案

2
Theoremus.
Jan 17 2025, 16:19

要验证链上合约二进制文件是否与 GitHub 存储库匹配,您应该在本地克隆存储库并对其进行编译以生成字节码. 获得字节码后,使用特定软件包的 Explorer 字节码查看器将其与链上二进制文件进行比较. 例如,您可以使用 此链接 查看链上字节码. 通过将本地编译的字节码与链上编译的字节码进行比较,您可以验证它们是否匹配.

2
最佳答案
评论
.
Xavier.eth.
Jan 17 2025, 21:22

sui move build克隆存储库后,请务必使用命令在本地编译源代码. 此步骤将帮助您生成验证所需的字节码.

2
评论
.

你知道答案吗?

请登录并分享。

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148帖子231答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。

奖励活动七月