chainlink-solana icon indicating copy to clipboard operation
chainlink-solana copied to clipboard

Add ability to do contract verification

Open krebernisak opened this issue 4 years ago • 1 comments

There is no Etherscan on Solana that we could use to publicly verify deployed contracts, but maybe we could add a public helper script using Anchor Verifiable Builds so users could verify themselves, or CI could do it for them and report it.

Resources:

  • https://github.com/solana-labs/solana/issues/12232
  • https://project-serum.github.io/anchor/getting-started/verification.html#building

krebernisak avatar Dec 10 '21 17:12 krebernisak

We weren't able to use anchor build --verify on the CI because it expects to spawn it's own Docker container, but it's already running in a container. It ends up building nothing and just failing. I think the environment is deterministic enough though (since we're building inside projectserum/build, which is what --verifiable does), we just need to validate if the sha256 matches a local anchor build --verifiable output.

archseer avatar Dec 12 '21 09:12 archseer