Skip to content

chore(pq): bump leanVM to bindings v0.19.2 (17cb5cc6) - #974

Merged
pablodeymo merged 3 commits into
pq-devnet-2from
chore/pq-devnet-2-leanvm-0.19.2
Dec 4, 2026
Merged

pablodeymo merged 3 commits into
pq-devnet-2from
chore/pq-devnet-2-leanvm-0.19.2

Conversation

@pablodeymo

Copy link
Copy Markdown
Collaborator

Motivation

pq-devnet-2's spec sheet names leanVM bindings-v0.19.2 (17cb5cc6). pq-devnet-2 still pins bindings-v0.19.0 (351f7ae4).

Changes

  • leanvm_prover, leanvm_claims and leanvm_lean_xmss move to 17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b, with leanvm-revision (which the Dockerfile reads to fetch scripts/tier-rustc) and stark::leanvm::LEANVM_REV.
  • Cargo.lock changes by that revision only: no crates.io package moves.
  • No source change was needed: the lean_vm, claims and lean_xmss APIs the node uses are the same.
  • Comments and docs name v0.19.2.

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:

  • leanVM's PROTOCOL_VERSION ("bumped when old proofs or signatures stop verifying") is 1 at both tags, and its protocol_version_pins_the_guest test pins the same guest Fiat-Shamir IV (48e6b446…) at both.
  • Checked directly, with a throwaway test built once against each revision (not in this PR), each side reading the other's bytes:
Made by → checked by v0.19.0 → v0.19.2 v0.19.2 → v0.19.0
Public keys from one seed are equal yes yes
leanXMSS signature verifies yes yes
Leaf proofs (2 signatures, 1 signature) verify yes yes
Merged proof verifies, and not against other claims yes yes
Merge of two of the other release's proofs, then verify yes yes
Merge of one proof from each release, then verify yes yes

What v0.19.1 and v0.19.2 change in the crates the node builds: zkdsl_compiler fixes (the compiled guest is unchanged, per the IV above), the PCS prover reading the verifier's WHIR table (a refactor), and lean_vrf batching, 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_VERSION that 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_answers and the_leanvm_pin_is_the_same_everywhere.
  • leanvm_proofs_merge_and_verify (the end-to-end prover test make test-consensus runs by name): passes.
  • make lint and cargo fmt --all --check: clean.

Not run: the Docker image build with the CPU tiers, and a devnet.

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.
@pablodeymo

Copy link
Copy Markdown
Collaborator Author

/review

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

AI security review: 1 finding(s) to check

Reviewed by Opus, GPT, Kimi, DeepSeek. A judge model checked every one of the findings against the code.
GLM (error, see the run log) did not finish; Opus, GPT, Kimi, DeepSeek reviewed the whole PR. Comment /review continue to retry, with a new budget; reviewers that finished are reused.
Malicious-code check (tests, build and install scripts, hooks, editor tasks, dependency sources): nothing found.

# Finding Severity Status Found by Where
M1 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 Bug Opus (1/4) docs/beacon_pq.md:523
Details

M1. 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)

  • Trigger: An operator reads the 'Running a devnet' section to pick the leanVM release for a devnet.
  • Mechanism: The PR updated the Proofs section (lines 152-157, 201-203), Cargo.toml, CLAUDE.md and the stark module docs to say the node runs v0.19.2 for pq-devnet-2, and that only PROTOCOL_VERSION has to match. This paragraph in the same file was not updated. It still tells operators the branch runs v0.19.0 and that a proof from any other revision fails to verify.
  • Impact: The docs contradict each other. Operators may think v0.19.0 and v0.19.2 nodes cannot interoperate, or that this branch targets v0.19.0. No runtime effect.
  • Judge: The devnet instructions still require v0.19.0 and reject proofs from every other revision, contradicting the PR's v0.19.2 pin and updated protocol-version compatibility guidance. Although the paragraph is unchanged, the dependency bump newly makes its stated release stale. This is an operator-facing documentation defect, not a runtime failure.
Housekeeping (not security): 1

Stale docs, missing tests, leftovers and inconsistencies, from a separate cheap model. Not checked by the judge.

Kind Item Where Fix
stale-docs devnet-running docs still reference v0.19.0 and old proof-compatibility reasoning docs/beacon_pq.md:523 Update lines 522-525 to reference pq-devnet-2, bindings v0.19.2, and the PROTOCOL_VERSION compatibility model — matching the changes the PR already made to the rest of the file (e.g., lines 148-205), such as: "This branch targets pq-devnet-2... leanVM bindings v0.19.2, which every client must run; a

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.
@pablodeymo
pablodeymo merged commit f36d75b into pq-devnet-2 Dec 4, 2026
15 checks passed
@pablodeymo
pablodeymo deleted the chore/pq-devnet-2-leanvm-0.19.2 branch December 4, 2026 01:39
pablodeymo added a commit that referenced this pull request Dec 4, 2026
Conflict in docs/beacon_pq.md, "Running a devnet": both this branch and
#974 rewrote the paragraph naming the devnet's pins. Kept this branch's
text (pq-devnet-2, consensus-specs `pq` at `66f143ec`, leanVM bindings
v0.19.2), which #974 landing makes true.
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