Skip to content

perf(halo2_proofs): Booth MSM, GLV IPA generator collapse, prefix instance commitments (verify −27–51%) - #2

Open
PastaPastaPasta wants to merge 11 commits into
dashifiedfrom
perf/msm-ipa
Open

PastaPastaPasta wants to merge 11 commits into
dashifiedfrom
perf/msm-ipa

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Why

Multi-scalar multiplication (MSM) and the IPA opening are the remaining shared hot spots in Orchard proving after #1. MSM is also on the verifier path that Dash Platform validators run for every shielded transition. This PR speeds up both without changing any proof bytes or verifier decisions.

What

  • MSM (arithmetic::best_multiexp, used by prover and verifier):
    • Port of open upstream Signed Booth recoding for multiexp zcash/halo2#937 (Dev Ojha; original authorship and source commits kept):
      • canonical scalar representations computed once per MSM instead of once per window;
      • signed Booth recoding, which halves the bucket count;
      • window count derived from the representation length plus a carry window.
    • The multithreaded branch now folds the per-window sums with Horner's rule: 256 doublings instead of ~4,200 for 2^11 points.
  • IPA generator collapse (poly/commitment/prover.rs): g_lo[i] + u_j·g_hi[i] uses pasta_curves 0.5.2's batched GLV multiplication on Pallas and Vesta. The challenge is decomposed once per round, and each chunk of points shares one inversion. Other curves keep the original path, selected through an Any downcast that has a dispatch test. Late, small rounds now run in parallel too. Follows upstream Speed up IPA generator collapse with batched GLV zcash/halo2#927.
  • IPA L/R: the [v·z]U + [r]W terms are folded into the L/R multiexps instead of separate 2-term MSMs (~2.3 ms per opening).
  • Instance commitments: prover and verifier commit to the supplied instance prefix rather than the 2^k zero-padded column, via a shared Params::commit_lagrange_prefix. Adapted from Reduce verifier instance-commitment overhead zcash/halo2#929/Avoid zero-padding prover instance commitments zcash/halo2#930. The InstanceTooLarge check still runs first.
  • Deps: pasta_curves 0.5.2 (an official zcash release) with the glv feature. Its field-arithmetic changes versus 0.5.1 are a pure refactor. MSRV 1.60 → 1.63, as pasta 0.5.2 requires.

Soundness and side channels

  • Unchanged outputs. Every change computes the same group elements, and transcript and RNG order are unchanged. Seeded Orchard proofs (1/2/6 actions) are byte-identical to crates.io halo2_proofs 0.3.2.

  • Differential MSM tests. best_multiexp is compared against the naive sum:

    • every length 0–40;
    • 2^n ± 1 boundaries up to 2049;
    • 2980 / 2981 / 8104 points (window sizes 8–10, as large batched-verifier MSMs use);
    • rayon pools of 1/2/3/6/14/64 threads, covering both the serial and parallel branches;
    • ~800 edge scalars: 0, ±1, digit boundaries for every window size 1–13, top-bit and near-modulus values, all-ones / 0x80 / 0x7f byte patterns;
    • identity, duplicate and negated bases.

    Mutating the Booth carry, the carry-window count or the Horner doubling count makes them fail.

  • Collapse tests. The GLV collapse is tested against a point-by-point reference on both curves: identity points, pairs that double or cancel, and challenges 0, ±1, 2, ±2^254 and random values.

  • Tamper check. The new verifier rejects all 304 (2 actions) and 204 (6 actions) tampered Orchard proofs and instance sets: swapped instances, another bundle's instances, a dropped instance, and random bit flips.

  • Side channels. The only new variable-time code is the GLV collapse. Its inputs are the public generators and the public Fiat-Shamir challenges; no witness, blind or key reaches it. The bucket MSM's digit-dependent memory access already existed in 0.3.2, and Booth's sign selection is the same kind.

Benchmarks

Orchard proving and verification.

Setup:

  • Host: Mac Studio, Apple M4 Max.
  • Release build with fat LTO, one codegen unit, panic=abort.
  • Baseline = exactly Platform's current lockfile: crates.io halo2_proofs 0.3.2 + pasta_curves 0.5.1.
  • Five variants interleaved ABBA, 4 rounds × 3 proofs = 12 per cell, run at nice 19. Every proof is verified, and all variants produce byte-identical seeded proofs.
Actions Threads Prove before → after (median) Δ Verify before → after
2 2 1349 → 1197 ms −11.3% 11.5 → 7.3 ms (−37%)
2 6 617 → 555 ms −10.1% 5.2 → 3.8 ms (−27%)
6 2 3612 → 3324 ms −8.0% 18.0 → 8.9 ms (−51%)
6 6 1629 → 1504 ms −7.7% 8.5 → 5.1 ms (−40%)

Micro-benchmarks (M4 Pro, best-of): IPA opening at k=11 went 337 → 107 ms on 1 thread and 55 → 23.5 ms on 6 threads; a 2049-point MSM went 15.3 → 13.1 ms on 1 thread.

Combined with #1 (compiled evaluator) and #3 (parallel synthesis), from the same run and baseline:

Actions Threads Baseline All three
2 2 1349 ms 646 ms (−52%)
2 6 617 ms 307 ms (−50%)
6 2 3612 ms 1613 ms (−55%)
6 6 1629 ms 642 ms (−61%)

Testing

  • cargo test --release -p halo2_proofs, with default features and with --no-default-features --features batch: 42 + 1 + 8.
  • cargo test --release -p halo2_gadgets: 38.
  • cargo +1.63.0 check -p halo2_proofs -p halo2_gadgets --all-targets.
  • clippy: no new warnings; cargo fmt --check is clean.
  • Independent code review found no correctness or soundness issues; its suggestions (window-size 9/10 tests, an explicit domain-size assert, authorship) are applied.

Notes for downstream

Platform picks up pasta_curves 0.5.2 with this change. Not done here, possible follow-ups:

  • batch-affine bucket accumulation;
  • window-size retuning now that Booth halves the bucket count;
  • batch-normalizing verifier instance commitments.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Compatibility

    • Rust 1.63 or later is now required.
  • Performance

    • Improved multiexponentiation and proof-generation operations, including IPA opening rounds.
    • Proofs and commitments remain unchanged by these optimizations.

ValarDragon and others added 11 commits October 4, 2026 23:08
Upstream subject: "Precompute MSM scalar representations".

best_multiexp converted every scalar to its canonical representation once
per window (33 Montgomery reductions per scalar for a 2^11 MSM); convert
once per MSM instead. Applied cleanly onto halo2_proofs 0.3.2.

Ported from zcash#937 ("Signed Booth recoding for multiexp",
branch dw/booth-multiexp, commit c80ba53), itself upstreamed from
https://github.com/zakura-core/libraries.

Source-Commit: 1a3f293511fde465124752374c1b6785ef037d3f
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Upstream subject: "Use signed Booth recoding for multiexp".

Recode each c-bit window into a signed digit in [-2^(c-1), 2^(c-1)],
halving the bucket count per window (negating an affine base is free).
The window above the scalar representation absorbs the final carry.
Applied cleanly onto halo2_proofs 0.3.2.

Ported from zcash#937 ("Signed Booth recoding for multiexp",
branch dw/booth-multiexp, commit ab8c65e), itself upstreamed from
https://github.com/zakura-core/libraries.

Source-Commit: d974e1dc0f5ca8d07a290df7813eadabdb4eebfb
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Upstream subject: "Size Booth windows from scalar representations".

Derive the window count from the representation length instead of
assuming 256-bit scalars. Applied cleanly onto halo2_proofs 0.3.2.

Ported from zcash#937 ("Signed Booth recoding for multiexp",
branch dw/booth-multiexp, commit 1c69fa1), itself upstreamed from
https://github.com/zakura-core/libraries.

Source-Commit: 4bda24ea9860f54a71adbe209672c513342843db
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
pasta_curves 0.5.2 (zcash, crates.io, 2026-07-23) adds a `glv` module with
variable-time GLV scalar multiplication for Pallas and Vesta, intended for
public scalars. The next commit uses it to speed up the IPA generator
collapse. The release also refactors Fp/Fq multiplication internally
(mul_unreduced), with identical results.

pasta_curves 0.5.2 requires Rust 1.63, so raise the MSRV of halo2_proofs and
of the crates that depend on it (halo2, halo2_gadgets), and pin the
workspace toolchain to 1.63.0 (verified: `cargo +1.63.0 check -p
halo2_proofs -p halo2_gadgets --all-targets`). halo2_poseidon does not
depend on halo2_proofs and keeps its 1.60 MSRV. Upstream zcash#927
made the same MSRV move for the same reason.

Cargo.lock also picks up the halo2_gadgets 0.5.0 version that the lockfile
had not been regenerated for.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Each IPA round computes g_lo[i] + u_j * g_hi[i] for one challenge u_j
shared by the whole half-vector, using the curve's generic double-and-add
multiplication: ~255 doublings and ~255 additions per point, 2^k - 1 points
per proof. For k = 11 this is most of the IPA opening (roughly 200 ms of
the ~340 ms single-threaded opening).

For Pallas and Vesta, use pasta_curves 0.5.2's GLV module instead: the
challenge is decomposed and wNAF-recoded once per round (`Decomposed`), the
per-point tables of odd multiples of P and phi(P) are built in batches that
share one field inversion (`Table::batch`), and each point then costs ~128
doublings plus ~50 mixed additions. halo2_proofs is generic over
CurveAffine and GlvParams is sealed to the Pasta curves, so the fast path
is selected with an `Any` downcast of the generator vector; any other curve
keeps the original code path. Collapse tasks are now at least 4 points, so
the small late rounds also run in parallel (`parallelize` ran any round with
fewer than threads^2 points serially).

Security: this path is variable-time in the scalar. That is acceptable
here because u_j is a public Fiat-Shamir challenge and G' depends only on
the public parameters and earlier public challenges; no witness, blinding
factor or key reaches parallel_generator_collapse. The same reasoning was
given for upstream zcash#927 (ValarDragon, closed in favour of
zakura-core/common#5), which this follows using the released
pasta_curves API rather than the unreleased `batch_mul_same_scalar_vartime`
hook.

The results are exact group elements and are batch-normalized as before,
so proofs are byte-for-byte identical. New tests compare the GLV path and
the original path against a point-by-point reference for both curves,
with identity points, doubling/cancelling pairs, and edge challenges
(0, 1, -1, 2, 2^64-1, +-2^254, random), and check the dispatch.

IPA opening for k = 11 (bench-msm `--mode ipa`, M4 Pro, heavily loaded
host; medians): 14 threads 65-78 ms -> 23 ms, 6 threads ~50 ms -> ~27 ms,
1 thread 340 ms -> 225 ms. Transcript SHA-256 identical.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The parallel branch of best_multiexp shifted every window sum into place
on its own (c * i doublings for window i) and then added them, i.e.
c * W * (W - 1) / 2 doublings in total: 4224 for a 2^11 MSM (c = 8,
W = 33), about 3% of the MSM's group operations. Compute the window sums
in parallel and combine them with Horner's rule instead
(acc = acc * 2^c + S_i), as the serial branch already did: c * (W - 1)
doublings in total. The critical path is unchanged (the top window used
to do the same 256 doublings inside its task), but total CPU drops, which
matters when there are fewer cores than windows (e.g. 6 on iPhone).

This removes the last user of multicore::TheBestReduce, so drop it.

The result is the same group element, so proofs are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
best_multiexp is used by the verifier, so a wrong result could make it
accept invalid proofs. Compare it against the naive sum of per-term scalar
multiplications:

- every length 0..=40 plus 63..65, 127..129, 255..257, 1023..1025 and 2049
  on Vesta (and a spread of lengths on Pallas), each run under rayon pools
  of 1, 2, 3, 6, 14 and 64 threads so that both the serial and the
  parallel branch and the thread-count threshold are exercised, plus
  lengths 2980, 2981 and 8104 (window sizes 8, 9 and 10, as large or
  batched verifier MSMs use) under 1 and 6 threads;
- random scalars, edge scalars interleaved with random ones, all-equal
  scalars and all-zero scalars;
- edge scalars: 0, +-1, +-2, +-(2^c - 1), +-2^c, +-(2^(c-1) - 1), +-2^(c-1)
  and +-(2^(c-1) + 1) for every window size c in 1..=13, shifted to several
  window offsets; top-bit values; and all-ones / 0x80 / 0x7f / alternating
  byte patterns, positive and negated (i.e. near the modulus);
- bases with identities, repeated points (bucket doubling) and negated
  points (bucket cancellation);
- each edge scalar alone against a single base, so a wrong digit cannot be
  masked by the other terms.

Mutating the Booth carry, the carry window count or the Horner doubling
count each makes these tests fail.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The verifier zero-padded every instance column to the domain size (2^k)
and committed to the padded vector with a full 2^k + 1 point MSM, although
only the supplied prefix (9 values per Orchard action) can be non-zero.
Commit to the prefix plus the blinding generator instead. Zero
evaluations contribute the identity to the commitment, so the result is
the same group element; the InstanceTooLarge check is unchanged and runs
before the commitment, so the prefix always fits in g_lagrange. Zero
padding via vk.domain.lagrange_from_vec also asserted that params and vk
use the same domain size; keep that as an explicit assert.

Adapted from zcash#929 commit 3250e8a ("Speed up verifier
instance commitments", closed upstream in favour of the zakura-core stack):
instead of a module-private commit_instance helper duplicated in the
prover and the verifier, the shared helper is
Params::commit_lagrange_prefix (pub(crate)), next to commit_lagrange, so
the prover can reuse it (zcash#930). The test compares it with the
zero-padded commit_lagrange for empty, short, internally-zero and
full-length inputs and several blinds.

Upstream measured 9-13% faster one-action Orchard verification
(single-threaded, M4 Max) for this and the scalar-representation change
together.

Co-authored-by: Dev Ojha <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Public instance columns are prefix-populated and zero-padded to the
evaluation domain. The prover passed the whole padded polynomial (2^k + 1
points) to the instance commitment MSM; commit to the supplied prefix plus
the blinding generator instead (Params::commit_lagrange_prefix). The
omitted trailing coefficients are all zero, so the commitment, and hence
the proof, is unchanged. The padded polynomial is still built for
interpolation, coset evaluation and opening, and the InstanceTooLarge
check still runs before the commitment.

Adapted from zcash#930 commit 7b22345 ("Avoid zero-padding
prover instance commitments", closed upstream in favour of
zakura-core/common#15), using the helper shared with the verifier
instead of a second module-private copy.

Co-authored-by: Dev Ojha <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Each IPA round computed L and R as a multiexp over G' plus a separate
two-term multiexp for [v * z] U + [r] W. A two-term best_multiexp uses
1-bit windows, so it costs about one full-width double-and-add (~0.1 ms);
with 2k of them per opening that was ~2.3 ms for k = 11 regardless of the
thread count (~7% of the 6-thread IPA opening after the GLV collapse).
Append the two terms to the main multiexps instead, as the old TODO
suggested.

The randomness is drawn in the same order as before (the multiexps do not
consume randomness), and the sums are the same group elements, so proofs
are byte-for-byte unchanged. Side channels: p_prime and the blinding
scalars already went through the same (variable-time) bucket multiexp, so
nothing new is exposed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The Booth entry follows the one in zcash#937 (commit becadc6,
Danny Willems), extended with the Horner fold.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aed3e2cf-0287-4299-a685-f1054722e2c0
📥 Commits

Reviewing files that changed from the base of the PR and between a842ff9 and f914b4a.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (15)
  • README.md
  • halo2/Cargo.toml
  • halo2_gadgets/Cargo.toml
  • halo2_gadgets/README.md
  • halo2_proofs/CHANGELOG.md
  • halo2_proofs/Cargo.toml
  • halo2_proofs/README.md
  • halo2_proofs/src/arithmetic.rs
  • halo2_proofs/src/multicore.rs
  • halo2_proofs/src/plonk/prover.rs
  • halo2_proofs/src/plonk/verifier.rs
  • halo2_proofs/src/poly/commitment.rs
  • halo2_proofs/src/poly/commitment/prover.rs
  • halo2_proofs/src/poly/domain.rs
  • rust-toolchain.toml
💤 Files with no reviewable changes (1)
  • halo2_proofs/src/multicore.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The pull request raises the declared minimum Rust version to 1.63. It changes multiexponentiation to use signed Booth recoding, adds a Pasta GLV path for IPA generator collapse, and replaces zero-padded PLONK instance commitments with prefix commitments.

Changes

Proof-system updates

Layer / File(s) Summary
Rust 1.63 baseline
README.md, halo2/Cargo.toml, halo2_gadgets/Cargo.toml, halo2_gadgets/README.md, halo2_proofs/Cargo.toml, halo2_proofs/README.md, rust-toolchain.toml
The package declarations and documentation now specify Rust 1.63. The configured toolchain channel changes to 1.63.0.
Signed-window multiexponentiation
halo2_proofs/src/arithmetic.rs, halo2_proofs/src/multicore.rs
best_multiexp converts coefficients to canonical representations once, uses signed Booth buckets, and combines window sums with Horner’s rule. Tests cover recoding boundaries, wider representations, input lengths, and thread counts. The TheBestReduce helper is removed.
IPA multiexponentiation and GLV collapse
halo2_proofs/Cargo.toml, halo2_proofs/src/poly/commitment/prover.rs
IPA rounds combine generator terms with U and W terms in one multiexponentiation. Pallas and Vesta generator collapse uses a parallel GLV path; other curves use the generic path.
PLONK instance-prefix commitments
halo2_proofs/src/poly/domain.rs, halo2_proofs/src/poly/commitment.rs, halo2_proofs/src/plonk/prover.rs, halo2_proofs/src/plonk/verifier.rs, halo2_proofs/CHANGELOG.md
Proving and verification use commit_lagrange_prefix for instance columns. Tests compare prefix commitments with commitments to zero-padded vectors. The changelog records the commitment, arithmetic, dependency, and MSRV updates.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Refactor

Sequence Diagram(s)

sequenceDiagram
  participant create_proof
  participant multiexp_with_u_w
  participant best_multiexp
  create_proof->>multiexp_with_u_w: pass generator terms and U/W terms for an IPA round
  multiexp_with_u_w->>best_multiexp: pass combined scalar and base vectors
  best_multiexp-->>multiexp_with_u_w: return multiexponentiation result
  multiexp_with_u_w-->>create_proof: return round result
Loading

Merge Risk: ⚪ Minimal · up to f914b

No concrete issue remains that calls for a change before merging; the proof-performance updates are mergeable after normal checks.

Security Architecture Review

Security architecture risk: 🔵 Low · up to f914b

The inspected changes preserve instance bounds, statement binding, and verifier acceptance checks. No introduced security concern was established. Residual risk remains because these are widely shared cryptographic optimizations and complete compatibility and deployment validation was not available.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — Arithmetic correctness has shared prover and verifier impact, including single-proof and batch verification. The demonstrated exposure is cryptographic proof acceptance and generation; repository evidence does not establish a production tenant, asset, or deployment count.

Trust Boundaries and Controls

  • observed — Proof-derived verifier inputs continue through MSM evaluation to the existing identity acceptance check. Public instance columns remain bound through ordered commitments and transcript inputs after dimensional and usable-domain bounds checks; no new authority-bearing entrypoint was identified.

Resilience and Maintainability Implications

  • inferred — Generator mutation is confined to a per-proof clone, while prefix commitment has no external mutable state. Inspected failures do not introduce a persistent partial transition or resumable shared state. Transcript writes remain incremental, so interruption can leave partial output as before; this PR does not add transactional rollback.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main performance changes to MSM, IPA generator collapse, and instance commitments.
Docstring Coverage ✅ Passed Docstring coverage is 80.95% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 42 functions across 6 files. (8 skipped: 8 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@PastaPastaPasta

Copy link
Copy Markdown
Member Author

CI status: GitHub Actions has not run on this PR.

GitHub has not registered any workflows on dashpay/halo2. That is also true for dashified and PRs #1 and #3, so this PR did not cause it. A repo admin has to enable workflows in the Actions tab. I did not change any CI config.

CI checks run locally instead (head f914b4ab, toolchain 1.63.0 from this PR's rust-toolchain.toml, CI feature flags --no-default-features --features "batch dev-graph gadget-traces test-dependencies"):

Check Result
cargo fmt --all -- --check pass
cargo clippy <flags> nightly --all-targets -- -D warnings pass (no warnings)
cargo test --release --workspace <flags> pass (96 passed)
cargo test --release --workspace <flags> nightly pass (99 passed)
cargo test --release -p halo2_proofs (default features) pass (51 passed)
cargo test --release -p halo2_proofs --no-default-features --features batch pass (51 passed)
cargo doc --all --all-features --document-private-items pass (1 warning in halo2_poseidon, which this PR does not touch; the same warning shows on PR #1)
cargo build --target wasm32-unknown-unknown (nightly flags, no test-dependencies) pass

In total, 297 tests passed and 0 failed across these runs. That includes the new best_multiexp differential tests, and they also run without the multicore feature. The only other warning is cargo's future-incompatibility notice for libc v0.2.150 in Cargo.lock, which this PR does not change. CodeRabbit had no actionable comments.


🤖 Posted autonomously by Claude on behalf of pasta.

PastaPastaPasta added a commit to dashpay/orchard that referenced this pull request Nov 7, 2026
Switch halo2_proofs, halo2_gadgets and halo2_poseidon from crates.io to
https://github.com/dashpay/halo2, which starts from the exact crates.io
halo2_proofs 0.3.2 / halo2_gadgets 0.5.0 / halo2_poseidon 0.1.0 sources and adds
prover performance work: a compiled polynomial evaluator (dashpay/halo2#1),
Booth MSM and GLV IPA generator collapse (dashpay/halo2#2), and concurrent
per-circuit proving (dashpay/halo2#3). Together they cut Orchard proving time by
50-61% with byte-identical proofs. The pin points at the integration commit
that merges all three; it should move to the dashified merge commit once those
PRs land. pasta_curves resolves to 0.5.2 (needed by the GLV collapse).

Orchard is the only halo2 user in Platform's dependency graph, so this swaps
one copy for another rather than duplicating it.

Add examples/prover_bench.rs, the harness used to measure that work: cold key
build, warm proof timing for N-action bundles with the Dash memo (every proof is
verified), and a seeded mode that prints proof digests to check two prover builds
for byte-identical output.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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