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

Support both stone v5 and v6 binaries #23

Merged
merged 14 commits into from
Oct 30, 2024
Merged

Conversation

mellowcroc
Copy link
Collaborator

@mellowcroc mellowcroc commented Oct 27, 2024

The ethereum verifier can only verify stone v5 proofs (stone v6 additionally includes the n_verifier_friendly_commitment_layers value when computing the public input hash), which means that we need to install stone v5 when running commands like prove_bootloader and serialize --network ethereum. Also, the starknet verifier can verify stone v5 and v6 proofs.

Alternative is to use features to selectively install v5 and v6 binaries, but the combined increase in the size of binaries installed is only around 40mb, which does not seem too bad.

Also addresses this issue by writing to tmp directory first, verifying them, and then copying them over to the .stone-cli directory.

@mellowcroc mellowcroc self-assigned this Oct 27, 2024
@mellowcroc mellowcroc removed the request for review from rot256 October 27, 2024 16:01
@mellowcroc mellowcroc marked this pull request as draft October 27, 2024 16:02
- change from downloading executables/corelib directly to `.stone-cli` directory to downloading them to tmp directory first, verifying them and then copying them into the `.stone-cli` directory
- change corelib location from `.stone-cli` to `.stone-cli/v0.1.0` and executables location to `.stone-cli/v0.1.0/executables`. This allows versioning of the corelib directory over multiple stone-cli versions
@mellowcroc mellowcroc marked this pull request as ready for review October 28, 2024 06:42
@mellowcroc mellowcroc merged commit 00e2eef into main Oct 30, 2024
1 check passed
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.

1 participant