Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker, cli, lang: Deterministic and verifiable builds #100

Merged
merged 7 commits into from
Mar 9, 2021

Conversation

armaniferrante
Copy link
Member

@armaniferrante armaniferrante commented Mar 8, 2021

Features

  • adds --verifiable flag to anchor build --verifiable and anchor launch --verifiable, which runs the build inside a docker image so that the output binary is deterministic (assuming one uses a Cargo.lock file)
  • adds anchor verify <program-id> command, checking the deterministic build from source of the local anchor program matches what is deployed at the given program-id on chain.

@armaniferrante armaniferrante marked this pull request as ready for review March 9, 2021 13:39
@armaniferrante armaniferrante merged commit a7b092a into master Mar 9, 2021
@armaniferrante armaniferrante deleted the armani/verify branch March 9, 2021 13:40
@fanatid
Copy link
Contributor

fanatid commented Jul 10, 2021

I can be boring but while system dependencies are not pinning too there is a high probability that builds will not be deterministic.

@armaniferrante
Copy link
Member Author

@fanatid I assume this can be overcome? I haven't run into this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants