Repository navigation
chore: align library MSRVs to Rust 1.88 - #2
Merged
Merged
Conversation
ValarDragon
marked this pull request as ready for review
August 11, 2026 11:40
ValarDragon
force-pushed
the
agent/bump-msrv-to-1-88
branch
from
August 11, 2026 22:34
ab928fd to
ef57040
Compare
S1nus
reviewed
Aug 11, 2026
| @@ -0,0 +1,3 @@ | |||
| [toolchain] | |||
Collaborator
There was a problem hiding this comment.
maybe just delete the rust-toolchain.toml?
3 tasks done
ValarDragon
added a commit
that referenced
this pull request
Aug 12, 2026
Batch the public same-scalar multiplications in each IPA generator-collapse round so Pasta curves can reuse GLV decomposition and table setup. Enable the vendored pasta_curves glv feature. The stack inherits Rust 1.88 from #2. Co-Authored-By: OpenAI Codex <[email protected]>
ValarDragon
added a commit
that referenced
this pull request
Aug 12, 2026
Batch the public same-scalar multiplications in each IPA generator-collapse round so Pasta curves can reuse GLV decomposition and table setup. Enable the vendored pasta_curves glv feature. The stack inherits Rust 1.88 from #2. Co-Authored-By: OpenAI Codex <[email protected]>
ValarDragon
added a commit
that referenced
this pull request
Aug 12, 2026
Batch the public same-scalar multiplications in each IPA generator-collapse round so Pasta curves can reuse GLV decomposition and table setup. Enable the vendored pasta_curves glv feature. The stack inherits Rust 1.88 from #2. Co-Authored-By: OpenAI Codex <[email protected]>
This was referenced Aug 23, 2026
dorianvp
pushed a commit
to auzum197/halo2
that referenced
this pull request
Sep 2, 2026
Batch the public same-scalar multiplications in each IPA generator-collapse round so Pasta curves can reuse GLV decomposition and table setup. Enable the vendored pasta_curves glv feature. The stack inherits Rust 1.88 from zakura-core/common#2. Co-Authored-By: OpenAI Codex <[email protected]>
dorianvp
pushed a commit
to auzum197/halo2
that referenced
this pull request
Sep 13, 2026
Batch the public same-scalar multiplications in each IPA generator-collapse round so Pasta curves can reuse GLV decomposition and table setup. Enable the vendored pasta_curves glv feature. The stack inherits Rust 1.88 from zakura-core/common#2. Co-Authored-By: OpenAI Codex <[email protected]>
dorianvp
pushed a commit
to auzum197/halo2
that referenced
this pull request
Sep 13, 2026
Batch the public same-scalar multiplications in each IPA generator-collapse round so Pasta curves can reuse GLV decomposition and table setup. Enable the vendored pasta_curves glv feature. The stack inherits Rust 1.88 from zakura-core/common#2. Co-Authored-By: OpenAI Codex <[email protected]>
ValarDragon
pushed a commit
that referenced
this pull request
Nov 1, 2026
) * perf(sapling-crypto)!: hold value commitments as bytes, not points Parsing a Sapling bundle decompressed every spend's and output's cv into a Jubjub point - a field square root each, plus a small-order check - and every consumer short of proof and binding-signature verification then compressed it straight back: the txid digest (cv().to_bytes() is the only field the digest re-serialises from a parsed point), the outgoing cipher key (prf_ock), the sighash, serialisation. Profiled on a wallet's memo backfill, that round trip was 26% of all CPU. ValueCommitment now keeps its 32 bytes. to_bytes() returns them; try_point() decompresses and checks small order on demand, by value; derive() computes the point once and stores its encoding; from_bytes_unvalidated() is the parser's constructor and from_bytes_not_small_order() still validates eagerly for callers that want that. The verifier calls try_point() and fails closed on an invalid encoding, and CommitmentSum takes the point rather than the commitment, so the callers that need arithmetic validate first. The consensus checks move from parse time to verification time, where a node checks the description anyway. Microbenchmark over 30,752 testnet transactions (110 MB; 3,339 Sapling spends, 11,462 outputs): Transaction::read 1.930 s to 0.993 s, 1.94x; 130 to 67 us per Sapling description. The wallet crates read cv as bytes only (prf_ock, serialisation), so they need no change; as_inner()'s only caller in this repository is the verifier. BREAKING CHANGE: ValueCommitment::as_inner() is removed (use try_point()); CommitmentSum's AddAssign/SubAssign take &jubjub::ExtendedPoint; a parsed cv is no longer validated at parse time. * docs(changelog): fragment for #2 * fix(sapling-crypto)!: sum value commitments fallibly with CommitmentSum::try_sum The Add, Sub and Sum impls over ValueCommitment decoded each point with an expect. Transaction::read now yields unvalidated commitments, so summing the cvs of a parsed transaction could panic. Replace them with CommitmentSum::try_sum, which returns None on an invalid commitment; the builder expects on its own commitments and the PCZT IO finalizer returns ValueCommitMismatch. Correct the ValueCommitment doc on network data, and test that try_point accepts exactly the encodings parsing used to accept. * test(zcash_primitives): an invalid Sapling cv parses and fails verification Corrupt a spend cv and an output cv of a valid testnet transaction, first to the identity and then to bytes off the curve. The transaction still reads and round-trips, and the batch validator, the single verifier and CommitmentSum::try_sum all reject it. * docs(changelog): fragment for #638
This was referenced Nov 4, 2026
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.
Summary
by the imported libraries
rust-versiondeclarations tohalo2_legacy_pdqsortandredjubjubhalo2_legacy_pdqsortandsinsemilla, whose upstream repositories have no CI workflowscross-target builds on the PR path
to a post-merge, scheduled, and manually dispatchable maintenance workflow
Why
The combined workspace already contains Rust 2024 crates that require Rust
1.88. Older crate-specific MSRVs do not provide a usable workspace-level
guarantee because their Cargo versions cannot parse newer workspace members.
The initial imported CI installed cross targets for stable or Rust 1.85.1 while
the repository toolchain selected Rust 1.88. Cargo therefore could not find
corefor i686, WASI, WASM, or Thumb targets. CI now selects the exact intendedtoolchain.
Two upstream checks do not fit this combined-workspace model and are omitted:
wasm32-unknown-unknownbuild relies on target-specificdev-dependency feature unification from its standalone resolver context.
lazy_staticdependency with
std; its WASIno_stdbuild remains enabled.Impact
Downstream users of every crate in this repository now require Rust 1.88 or
newer. There are no Rust symbol, signature, trait, enum, feature, constructor,
or visibility changes.
Validation
rust-version = 1.88throughcargo metadatacargo +1.88.0 check --workspace --locked --all-features --all-targetscargo +stable check --workspace --locked --all-features --all-targetscargo +nightly fmt --all -- --checkhalo2_legacy_pdqsortandsinsemillasapling-cryptoactionlintfor all modified workflowsgit diff --check