From 1ec8a2b15a55b97602281e9d549fe52f5ee78fd2 Mon Sep 17 00:00:00 2001 From: Pablo Deymonnaz Date: Thu, 3 Dec 2026 19:34:24 -0300 Subject: [PATCH 1/2] chore(pq): bump leanVM to bindings v0.19.2 (17cb5cc6) 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. --- CLAUDE.md | 9 +- Cargo.lock | 136 +++++++++--------- Cargo.toml | 12 +- bin/ethlambda/src/cli.rs | 2 +- crates/common/crypto/src/lib.rs | 2 +- crates/common/crypto/src/stark.rs | 2 +- crates/common/crypto/src/stark/leanvm.rs | 11 +- crates/common/telemetry/tests/pq_lifecycle.rs | 2 +- docs/beacon_pq.md | 15 +- docs/cli.md | 2 +- docs/spec_deviations.md | 2 +- leanvm-revision | 2 +- 12 files changed, 102 insertions(+), 95 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 5adcf5fa9..838158e00 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -303,8 +303,8 @@ actual_slot = finalized_slot + 1 + relative_index consensus-specs' and leanVM's known answers), and proves many signatures at once through `ethlambda_crypto::stark`: the specification's reference (the signatures concatenated), or real leanVM proofs made in process - (`stark::leanvm`, leanVM `351f7ae4`, bindings v0.19.0, the one release - pq-devnet-1 runs for signer, prover and verifier; `lean_vm` with its + (`stark::leanvm`, leanVM `17cb5cc6`, bindings v0.19.2, the release + pq-devnet-2 runs for signer, prover and verifier; `lean_vm` with its experimental prover). `run_node` installs leanVM as soon as `--network` resolves to a network that schedules PQ, on `--pq-prover-threads` threads (0: one per core, never more than the @@ -321,8 +321,9 @@ actual_slot = finalized_slot + 1 + relative_index seat's 2.4 s proving window. v0.17.0 removed pq-devnet-0's `leanvm-sidecar`, so the image builds none, and `ethlambda-pq` (`bin/ethlambda/pq/`) is now a shim that execs `ethlambda`, kept for - launchers that still call it. A proof from another leanVM revision does not - verify, and nothing on the wire says why; the root `leanvm-revision` file + launchers that still call it. A proof from a leanVM revision with another + `PROTOCOL_VERSION` does not verify (v0.19.0 through v0.19.2 share theirs), + and nothing on the wire says why; the root `leanvm-revision` file names the pin (a test holds it equal to the manifest's `rev`s, and the Dockerfile reads it). The two encodings do not verify each other's proofs. Never pass one scheme's key to the other diff --git a/Cargo.lock b/Cargo.lock index 918ffa025..cc9784afc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,13 +55,13 @@ dependencies = [ [[package]] name = "aggregation" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "claims", "fiat_shamir_prover", "isa", "keccak256", - "lean_da 0.1.0 (git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80)", + "lean_da 0.1.0 (git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b)", "lean_sphincs", "lean_xmss", "stable_lean_vm_core", @@ -1112,7 +1112,7 @@ dependencies = [ [[package]] name = "claims" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "lean_sphincs", "lean_xmss", @@ -2091,7 +2091,7 @@ dependencies = [ "hkdf", "hmac", "keccak 0.1.6", - "lean_vm 0.1.0 (git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80)", + "lean_vm 0.1.0 (git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b)", "lean_xmss", "leanvm", "pbkdf2", @@ -2675,7 +2675,7 @@ dependencies = [ [[package]] name = "experimental_dispatch" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_lean_vm_core", "experimental_lean_vm_core_armaes", @@ -2692,7 +2692,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs", @@ -2705,7 +2705,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr_armaes" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs_armaes", @@ -2718,7 +2718,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr_armsha3" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs_armsha3", @@ -2731,7 +2731,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr_x86avx2" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs_x86avx2", @@ -2744,7 +2744,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr_x86v3clmul" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs_x86v3clmul", @@ -2757,7 +2757,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr_x86v3gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs_x86v3gfni", @@ -2770,7 +2770,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr_x86v4" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs_x86v4", @@ -2783,7 +2783,7 @@ dependencies = [ [[package]] name = "experimental_keccak_gkr_x86v4gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_pcs_x86v4gfni", @@ -2796,7 +2796,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr", "experimental_parallel", @@ -2811,7 +2811,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core_armaes" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr_armaes", "experimental_parallel", @@ -2826,7 +2826,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core_armsha3" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr_armsha3", "experimental_parallel", @@ -2841,7 +2841,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core_x86avx2" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr_x86avx2", "experimental_parallel", @@ -2856,7 +2856,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core_x86v3clmul" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr_x86v3clmul", "experimental_parallel", @@ -2871,7 +2871,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core_x86v3gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr_x86v3gfni", "experimental_parallel", @@ -2886,7 +2886,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core_x86v4" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr_x86v4", "experimental_parallel", @@ -2901,7 +2901,7 @@ dependencies = [ [[package]] name = "experimental_lean_vm_core_x86v4gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_keccak_gkr_x86v4gfni", "experimental_parallel", @@ -2916,7 +2916,7 @@ dependencies = [ [[package]] name = "experimental_parallel" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "libc", ] @@ -2924,7 +2924,7 @@ dependencies = [ [[package]] name = "experimental_pcs" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives", @@ -2936,7 +2936,7 @@ dependencies = [ [[package]] name = "experimental_pcs_armaes" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives_armaes", @@ -2948,7 +2948,7 @@ dependencies = [ [[package]] name = "experimental_pcs_armsha3" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives_armsha3", @@ -2960,7 +2960,7 @@ dependencies = [ [[package]] name = "experimental_pcs_x86avx2" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives_x86avx2", @@ -2972,7 +2972,7 @@ dependencies = [ [[package]] name = "experimental_pcs_x86v3clmul" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives_x86v3clmul", @@ -2984,7 +2984,7 @@ dependencies = [ [[package]] name = "experimental_pcs_x86v3gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives_x86v3gfni", @@ -2996,7 +2996,7 @@ dependencies = [ [[package]] name = "experimental_pcs_x86v4" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives_x86v4", @@ -3008,7 +3008,7 @@ dependencies = [ [[package]] name = "experimental_pcs_x86v4gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "experimental_primitives_x86v4gfni", @@ -3020,7 +3020,7 @@ dependencies = [ [[package]] name = "experimental_primitives" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover", @@ -3030,7 +3030,7 @@ dependencies = [ [[package]] name = "experimental_primitives_armaes" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover_armaes", @@ -3040,7 +3040,7 @@ dependencies = [ [[package]] name = "experimental_primitives_armsha3" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover_armsha3", @@ -3050,7 +3050,7 @@ dependencies = [ [[package]] name = "experimental_primitives_x86avx2" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover_x86avx2", @@ -3060,7 +3060,7 @@ dependencies = [ [[package]] name = "experimental_primitives_x86v3clmul" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover_x86v3clmul", @@ -3070,7 +3070,7 @@ dependencies = [ [[package]] name = "experimental_primitives_x86v3gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover_x86v3gfni", @@ -3080,7 +3080,7 @@ dependencies = [ [[package]] name = "experimental_primitives_x86v4" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover_x86v4", @@ -3090,7 +3090,7 @@ dependencies = [ [[package]] name = "experimental_primitives_x86v4gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "experimental_parallel", "fiat_shamir_prover_x86v4gfni", @@ -3187,7 +3187,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256", "verifier", @@ -3196,7 +3196,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover_armaes" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256_armaes", "verifier", @@ -3205,7 +3205,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover_armsha3" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256_armsha3", "verifier", @@ -3214,7 +3214,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover_x86avx2" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256_x86avx2", "verifier", @@ -3223,7 +3223,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover_x86v3clmul" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256_x86v3clmul", "verifier", @@ -3232,7 +3232,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover_x86v3gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256_x86v3gfni", "verifier", @@ -3241,7 +3241,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover_x86v4" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256_x86v4", "verifier", @@ -3250,7 +3250,7 @@ dependencies = [ [[package]] name = "fiat_shamir_prover_x86v4gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256_x86v4gfni", "verifier", @@ -4204,7 +4204,7 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" [[package]] name = "isa" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "verifier", ] @@ -4380,42 +4380,42 @@ dependencies = [ [[package]] name = "keccak256" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "keccak256_armaes" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "keccak256_armsha3" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "keccak256_x86avx2" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "keccak256_x86v3clmul" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "keccak256_x86v3gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "keccak256_x86v4" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "keccak256_x86v4gfni" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "konst" @@ -4478,7 +4478,7 @@ dependencies = [ [[package]] name = "lean_da" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256", "stable_pcs", @@ -4503,7 +4503,7 @@ dependencies = [ [[package]] name = "lean_sphincs" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256", ] @@ -4511,13 +4511,13 @@ dependencies = [ [[package]] name = "lean_vm" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "aggregation", "claims", "experimental_dispatch", "isa", - "lean_da 0.1.0 (git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80)", + "lean_da 0.1.0 (git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b)", "lean_sphincs", "lean_vrf", "lean_xmss", @@ -4542,7 +4542,7 @@ dependencies = [ [[package]] name = "lean_vrf" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256", ] @@ -4550,7 +4550,7 @@ dependencies = [ [[package]] name = "lean_xmss" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "keccak256", ] @@ -7312,7 +7312,7 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" [[package]] name = "stable_keccak_gkr" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "fiat_shamir_prover", "stable_parallel", @@ -7325,7 +7325,7 @@ dependencies = [ [[package]] name = "stable_lean_vm_core" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "fiat_shamir_prover", "isa", @@ -7340,12 +7340,12 @@ dependencies = [ [[package]] name = "stable_parallel" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "stable_pcs" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "fiat_shamir_prover", "stable_parallel", @@ -7357,7 +7357,7 @@ dependencies = [ [[package]] name = "stable_primitives" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "fiat_shamir_prover", "isa", @@ -8076,7 +8076,7 @@ dependencies = [ [[package]] name = "verifier" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" [[package]] name = "version_check" @@ -8982,7 +8982,7 @@ dependencies = [ [[package]] name = "zkdsl_compiler" version = "0.1.0" -source = "git+https://github.com/leanEthereum/leanVM.git?rev=351f7ae421529ce164ed747eee1f78bdeaec3e80#351f7ae421529ce164ed747eee1f78bdeaec3e80" +source = "git+https://github.com/leanEthereum/leanVM.git?rev=17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b#17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" dependencies = [ "isa", "keccak256", diff --git a/Cargo.toml b/Cargo.toml index 05a8eb9a6..352f28bac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -133,17 +133,19 @@ keccak = "0.1.6" # attestation proofs as the PQ devnet makes them, real leanVM STARKs over # leanXMSS signatures rather than the specification's concatenation # (`ethlambda_crypto::stark`); and leanVM's leanXMSS, which signs and verifies. -# Pinned to bindings v0.19.0 (351f7ae4), the one release pq-devnet-1 runs for -# its signer, prover and verifier; the devnet takes no other revision. +# Pinned to bindings v0.19.2 (17cb5cc6), the release pq-devnet-2 runs for its +# signer, prover and verifier. It proves the same guest as v0.19.0, which +# pq-devnet-1 ran (`PROTOCOL_VERSION` 1 in both), so the two verify each +# other's proofs and signatures. # `experimental_prover` is the prover the pq-devnet-0 sidecar ran; it makes # the same proofs as the stable one, faster. leanVM's `cpu_tiers` is behind # `ethlambda-crypto`'s `leanvm-cpu-tiers` feature, off by default: it only # does anything under leanVM's `scripts/tier-rustc` as `RUSTC_WRAPPER`, which # the Dockerfile sets. # Not the `leanvm` revision below, which lean consensus proves with. -leanvm_prover = { package = "lean_vm", git = "https://github.com/leanEthereum/leanVM.git", rev = "351f7ae421529ce164ed747eee1f78bdeaec3e80", features = ["experimental_prover"] } -leanvm_claims = { package = "claims", git = "https://github.com/leanEthereum/leanVM.git", rev = "351f7ae421529ce164ed747eee1f78bdeaec3e80" } -leanvm_lean_xmss = { package = "lean_xmss", git = "https://github.com/leanEthereum/leanVM.git", rev = "351f7ae421529ce164ed747eee1f78bdeaec3e80" } +leanvm_prover = { package = "lean_vm", git = "https://github.com/leanEthereum/leanVM.git", rev = "17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b", features = ["experimental_prover"] } +leanvm_claims = { package = "claims", git = "https://github.com/leanEthereum/leanVM.git", rev = "17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" } +leanvm_lean_xmss = { package = "lean_xmss", git = "https://github.com/leanEthereum/leanVM.git", rev = "17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b" } # XMSS signatures + recursive aggregation, through leanVM's own facade crate: # it re-exports the aggregation API, the `xmss` module (keys, signing, and the diff --git a/bin/ethlambda/src/cli.rs b/bin/ethlambda/src/cli.rs index b43db771d..5c8e8b781 100644 --- a/bin/ethlambda/src/cli.rs +++ b/bin/ethlambda/src/cli.rs @@ -423,7 +423,7 @@ pub(crate) struct MainnetOptions { /// How many threads leanVM's in-process prover runs on, 0 for one per /// core. Read only on a network that schedules the PQ fork, whose /// attestation proofs this node makes and checks with leanVM (bindings - /// v0.19.0) in process. + /// v0.19.2) in process. #[arg(long, default_value_t = 0)] pub(crate) pq_prover_threads: usize, diff --git a/crates/common/crypto/src/lib.rs b/crates/common/crypto/src/lib.rs index 2742eeddb..72322ab60 100644 --- a/crates/common/crypto/src/lib.rs +++ b/crates/common/crypto/src/lib.rs @@ -48,7 +48,7 @@ pub mod bls; /// The Beacon Chain PQ fork's leanXMSS signatures (the specification's `xmss` /// module), over Keccak-256. Not the XMSS of [`signature`]. pub mod lean_xmss; -/// leanVM's own leanXMSS (bindings v0.19.0): what a validator signs with and +/// leanVM's own leanXMSS (bindings v0.19.2): what a validator signs with and /// what [`lean_xmss::verify`] runs, re-exported so a signer depends on one pin. pub use leanvm_lean_xmss; mod metrics; diff --git a/crates/common/crypto/src/stark.rs b/crates/common/crypto/src/stark.rs index ca9443e46..960616c2b 100644 --- a/crates/common/crypto/src/stark.rs +++ b/crates/common/crypto/src/stark.rs @@ -8,7 +8,7 @@ //! statement in public-key order, and verification checks each in turn. It //! is what the specification's fixtures use. //! - **leanVM** ([`install_leanvm`]): real leanVM proofs, made and checked -//! in this process (bindings v0.19.0), as the PQ devnet's other clients make +//! in this process (bindings v0.19.2), as the PQ devnet's other clients make //! them. See [`leanvm`]. //! //! The two encodings are not interchangeable: a node verifies only the proofs diff --git a/crates/common/crypto/src/stark/leanvm.rs b/crates/common/crypto/src/stark/leanvm.rs index 49a2a3020..a1a499ceb 100644 --- a/crates/common/crypto/src/stark/leanvm.rs +++ b/crates/common/crypto/src/stark/leanvm.rs @@ -1,13 +1,13 @@ //! Attestation proofs made and checked by leanVM in this process (bindings -//! v0.19.0, [`LEANVM_REV`]). +//! v0.19.2, [`LEANVM_REV`]). //! //! The PQ devnet does not run the specification's reference concatenation: //! its clients prove with leanVM. pq-devnet-0 did it through a separate //! `leanvm-sidecar` process; v0.17.0 removed the sidecar, and every client now //! proves in-process through `lean_vm`'s `setup`, `aggregate` and //! `AggregateProof::{from_bytes, verify}`. Proofs only verify against a -//! verifier of the same release, and nothing on the wire says so: a proof from -//! another revision simply fails to verify. +//! verifier of the same [`PROTOCOL_VERSION`], and nothing on the wire says +//! so: a proof from a revision with another one simply fails to verify. //! //! The mapping from the specification's statements is Lighthouse's, so the //! two clients' proofs verify against each other: @@ -51,8 +51,9 @@ pub const MAX_CHILDREN_PER_AGGREGATE: usize = leanvm_prover::MAX_RECURSIONS; pub const PROTOCOL_VERSION: u32 = leanvm_prover::PROTOCOL_VERSION; /// The leanVM revision the workspace proves and verifies with (bindings -/// v0.19.0). Every node of a network must run the same one. -pub const LEANVM_REV: &str = "351f7ae421529ce164ed747eee1f78bdeaec3e80"; +/// v0.19.2). Every node of a network must run one with the same +/// [`PROTOCOL_VERSION`]: v0.19.0 through v0.19.2 share theirs. +pub const LEANVM_REV: &str = "17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b"; #[derive(Debug, thiserror::Error)] pub enum Error { diff --git a/crates/common/telemetry/tests/pq_lifecycle.rs b/crates/common/telemetry/tests/pq_lifecycle.rs index 773a98e23..9961a1145 100644 --- a/crates/common/telemetry/tests/pq_lifecycle.rs +++ b/crates/common/telemetry/tests/pq_lifecycle.rs @@ -64,7 +64,7 @@ async fn full_pq_telemetry_lifecycle_delivers_all_active_event_families_and_heal genesis_time: 1_799_988_000, slot_duration: Duration::from_secs(12), client_commit: "deadbeef", - prover_revision: Some("351f7ae4"), + prover_revision: Some("17cb5cc6"), prover_backend: Some("leanvm"), log_inverse_rate: Some(2), effective_prover_threads: Some(8), diff --git a/docs/beacon_pq.md b/docs/beacon_pq.md index 18a9d90bd..80f56afee 100644 --- a/docs/beacon_pq.md +++ b/docs/beacon_pq.md @@ -54,7 +54,7 @@ changes. | Layer | Where | Status | | --- | --- | --- | | leanXMSS sign/verify | `ethlambda_crypto::lean_xmss` | KAT-pinned against consensus-specs and leanVM | -| Attestation proofs | `ethlambda_crypto::stark` | the specification's reference concatenation by default; leanVM proofs made in process (bindings v0.19.0) on a network that schedules PQ (see [Proofs](#proofs)) | +| Attestation proofs | `ethlambda_crypto::stark` | the specification's reference concatenation by default; leanVM proofs made in process (bindings v0.19.2) on a network that schedules PQ (see [Proofs](#proofs)) | | Containers | `ethlambda_types::beacon::containers::{eip8483, pq}` | SSZ round trips, gaps per the spec; the maximal aggregate, attester slashing and bid encode to `pq.yaml`'s size bounds | | Fork upgrades | `upgrade::{upgrade_to_eip8483, upgrade_to_pq}` | unit-tested | | Block processing | `stf::{eip8483, pq}` | unit-tested with real XMSS keys | @@ -150,9 +150,11 @@ proofs through one of two backends, chosen once per process: about 436 signatures per block. The specification's fixtures use it, and so does any process that never installs leanVM. - **leanVM** (`stark::install_leanvm`, `stark::leanvm`): real leanVM proofs, - made and checked in this process by `lean_vm` at `351f7ae4` (bindings - v0.19.0, `leanvm::LEANVM_REV`), the one release pq-devnet-1 runs for its - signer, prover and verifier. A statement list maps to leanVM claims as + made and checked in this process by `lean_vm` at `17cb5cc6` (bindings + v0.19.2, `leanvm::LEANVM_REV`), the release pq-devnet-2 runs for its + signer, prover and verifier. It proves the same guest as pq-devnet-1's + v0.19.0 (`PROTOCOL_VERSION` 1 in both), so each verifies the other's + proofs and signatures. A statement list maps to leanVM claims as Lighthouse maps it: the sorted, deduplicated `(public key, message)` pairs, the empty proof for no claims, and merges folded sixteen children (`MAX_RECURSIONS`) at a time. The node installs it itself, as soon as @@ -196,8 +198,9 @@ restarted; while it restarted, gossip aggregates were IGNOREd (`prover_unreachable`). v0.17.0 removed the sidecar and its client API, so the image builds none, nothing can be unreachable, and `ethlambda-pq` is a shim that execs `ethlambda` (`LEANVM_THREADS` becomes `--pq-prover-threads`) -for launchers that still call it. A proof from another leanVM revision does -not verify, and nothing on the wire says why: the root `leanvm-revision` +for launchers that still call it. A proof from a leanVM revision with +another `PROTOCOL_VERSION` does not verify (v0.19.0 through v0.19.2 share +theirs), and nothing on the wire says why: the root `leanvm-revision` file names the pin, and the image records it at `/usr/local/share/ethlambda/leanvm-revision`. diff --git a/docs/cli.md b/docs/cli.md index 2fcffe113..674c85bc9 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -165,7 +165,7 @@ something specific here. |---|---|---| | `--network` | `mainnet` | A built-in network name (`mainnet`, `sepolia`, `hoodi` or `plataberget`), or a path to a directory of published network files. A value containing a slash is always a path, so `mainnet` is the built-in and `./mainnet` is a directory. The directory must hold `config.yaml` and `genesis.ssz`, and may hold `bootstrap_nodes.yaml` or `bootstrap_nodes.txt` | | `--bootnodes` | none: the network's own list alone | Extra bootnodes: ENRs and multiaddrs, comma-separated, and the flag may be repeated. Added to the resolved network's own list, never replacing it. A bad entry is a startup error, and a file path is no longer accepted. See [Bootnodes on `beacon`](#bootnodes-on-beacon) | -| `--pq-prover-threads` | `0` | How many threads leanVM's in-process prover runs on, 0 for one per core; more than the machine's cores are lowered to them with a warning. Read only on a network that schedules PQ, where the node makes and checks the fork's attestation proofs with leanVM bindings v0.19.0 (`351f7ae4`, the release pq-devnet-1/pq-devnet-2 run, and the only one it takes). The node proves and verifies one signature at startup and refuses to start if that fails. The image's `ethlambda-pq` script, pq-devnet-0's sidecar supervisor, is now a shim that execs `ethlambda` and maps `LEANVM_THREADS` to this flag | +| `--pq-prover-threads` | `0` | How many threads leanVM's in-process prover runs on, 0 for one per core; more than the machine's cores are lowered to them with a warning. Read only on a network that schedules PQ, where the node makes and checks the fork's attestation proofs with leanVM bindings v0.19.2 (`17cb5cc6`, the release pq-devnet-2 runs; it verifies the proofs of v0.19.0, which pq-devnet-1 ran, and makes proofs v0.19.0 verifies). The node proves and verifies one signature at startup and refuses to start if that fails. The image's `ethlambda-pq` script, pq-devnet-0's sidecar supervisor, is now a shim that execs `ethlambda` and maps `LEANVM_THREADS` to this flag | | `--telemetry-events` | off | Comma-separated telemetry event families to export over OTLP Logs (`pq` in `eth.telemetry/0.4`). Configured via standard `OTEL_EXPORTER_OTLP_LOGS_*` / `OTEL_EXPORTER_OTLP_*`, `OTEL_RESOURCE_ATTRIBUTES` (requiring `eth.node.id`), and `OTEL_SERVICE_NAME` environment variables | `genesis_validators_root` and `genesis_time`, which the fork digest that keys diff --git a/docs/spec_deviations.md b/docs/spec_deviations.md index 18d1ca234..29a4170cb 100644 --- a/docs/spec_deviations.md +++ b/docs/spec_deviations.md @@ -1125,7 +1125,7 @@ Two more: The specification's `stark.VerifyAggregates` checks each signature at its statement's leaf index, and its reference implementation does (a proof is the signatures concatenated). The PQ devnet's clients prove with leanVM -instead, in process from bindings v0.19.0 (`ethlambda_crypto::stark::leanvm`, +instead, in process from bindings v0.19.2 (`ethlambda_crypto::stark::leanvm`, installed on any network that schedules PQ), and a leanVM proof attests only `(public key, message)` claims (leanEthereum/leanVM#787). So under the leanVM backend a proof shows each key signed the message at *some* leaf, diff --git a/leanvm-revision b/leanvm-revision index 75f098b90..112c9f789 100644 --- a/leanvm-revision +++ b/leanvm-revision @@ -1 +1 @@ -351f7ae421529ce164ed747eee1f78bdeaec3e80 +17cb5cc6bb9af2321cfff3a50ccbeaf612e0113b From 1ca2162ef928522079b36617c2f513f54d672b35 Mon Sep 17 00:00:00 2001 From: Pablo Deymonnaz Date: Thu, 3 Dec 2026 21:57:17 -0300 Subject: [PATCH 2/2] docs(pq): name leanVM v0.19.2 in the devnet section 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. --- docs/beacon_pq.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/beacon_pq.md b/docs/beacon_pq.md index db350abc8..ba58af15e 100644 --- a/docs/beacon_pq.md +++ b/docs/beacon_pq.md @@ -518,12 +518,15 @@ asks for again. ## Running a devnet ethpandaops/ethereum-package's `pq` branch runs PQ-at-genesis devnets with -ethlambda as beacon node, validator client or both. This branch targets -pq-devnet-1 (`notes.ethereum.org/@ethpandaops/pq-devnet-1`): consensus-specs -`pq` at `4c296784` and leanVM bindings v0.19.0, which every client must run, -since proofs from another revision do not verify. The example below names -pq-devnet-0's images for the other clients; swap in their pq-devnet-1 images -once published (the notes list them as TBD). Build the image from the +ethlambda as beacon node, validator client or both. This branch follows +consensus-specs `pq` at `4c296784`, pq-devnet-1's spec +(`notes.ethereum.org/@ethpandaops/pq-devnet-1`), and runs leanVM bindings +v0.19.2, the release pq-devnet-2 names. The other clients need not run that +release, only one with the same leanVM `PROTOCOL_VERSION`: v0.19.0, +pq-devnet-1's, makes and verifies the same proofs (see [Proofs](#proofs)). +The example below names pq-devnet-0's images for the other clients; swap in +their pq-devnet-1 images once published (the notes list them as TBD). Build +the image from the repository root (`docker build -t ethlambda:pq-local .`: the node proves in process, so there is no sidecar to ship), then `kurtosis run --enclave pq --args-file params.yaml` with, for