Repository navigation
chore(pq): bump leanVM to bindings v0.19.2 (17cb5cc6) - #974
Merged
Merged
Conversation
pq-devnet-2's spec sheet names leanVM bindings v0.19.2. Move the PQ fork's prover, claim encoding and leanXMSS pins from v0.19.0 (351f7ae4) to it, with `leanvm-revision` (which the Dockerfile reads for `tier-rustc`) and `LEANVM_REV`. No API change, and the lockfile change is the revision alone. v0.19.2 proves the same guest as v0.19.0 (`PROTOCOL_VERSION` 1 and the same Fiat-Shamir IV in both), so the two releases verify each other's proofs and signatures; the docs that said a proof from any other revision fails now say what leanVM's contract is.
docs/cli.md: keep this branch's --pq-prover-threads row and the base's --telemetry-events row. The p2p telemetry test's sample prover revision follows the pin.
Collaborator
Author
|
/review |
AI security review: 1 finding(s) to checkReviewed by Opus, GPT, Kimi, DeepSeek. A judge model checked every one of the findings against the code.
DetailsM1. Devnet section of beacon_pq.md still names pq-devnet-1 / v0.19.0 and says proofs from any other revision do not verify (low, docs)
Housekeeping (not security): 1Stale docs, missing tests, leftovers and inconsistencies, from a separate cheap model. Not checked by the judge.
Cost of this review: ~$1.32 of a $30 budget (estimated from token counts). |
Addresses security review finding M1 on PR #974. "Running a devnet" still said the branch runs leanVM bindings v0.19.0 and that every client must run it, since proofs from another revision do not verify. The rest of the file already says v0.19.2 and that only leanVM's `PROTOCOL_VERSION` has to match, which v0.19.0 through v0.19.2 share. The paragraph now says the same. The consensus-specs pin it names is unchanged, since this branch does not move it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
pq-devnet-2's spec sheet names leanVM
bindings-v0.19.2(17cb5cc6).pq-devnet-2still pinsbindings-v0.19.0(351f7ae4).Changes
leanvm_prover,leanvm_claimsandleanvm_lean_xmssmove to17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b, withleanvm-revision(which the Dockerfile reads to fetchscripts/tier-rustc) andstark::leanvm::LEANVM_REV.Cargo.lockchanges by that revision only: no crates.io package moves.lean_vm,claimsandlean_xmssAPIs the node uses are the same.This is not a compatibility break
v0.19.0 and v0.19.2 verify each other's proofs, so a node on either release interoperates with the other:
PROTOCOL_VERSION("bumped when old proofs or signatures stop verifying") is1at both tags, and itsprotocol_version_pins_the_guesttest pins the same guest Fiat-Shamir IV (48e6b446…) at both.What v0.19.1 and v0.19.2 change in the crates the node builds:
zkdsl_compilerfixes (the compiled guest is unchanged, per the IV above), the PCS prover reading the verifier's WHIR table (a refactor), andlean_vrfbatching, which the node does not use.So the docs that said a proof from any other leanVM revision does not verify now say it is
PROTOCOL_VERSIONthat has to match.Testing
cargo test --profile release-fast -p ethlambda-crypto -p ethlambda-telemetry -p ethlambda-validator -p ethlambda: all pass, including the leanXMSS known answers (consensus_specs_known_answer_{signs,verifies,rejections},lean_vm_known_answer,the_port_signs_and_verifies_as_leanvm_does),pq_keys::erc8517_test_vectors,vrf::known_answersandthe_leanvm_pin_is_the_same_everywhere.leanvm_proofs_merge_and_verify(the end-to-end prover testmake test-consensusruns by name): passes.make lintandcargo fmt --all --check: clean.Not run: the Docker image build with the CPU tiers, and a devnet.