Repository navigation
v4.13.0
Network: mainnet, through snarkOS v4.13.0. This release promotes v4.13.0-rc.1 without changing its commit or code. All changes apply to every network.
Built from 8d4ca1b93, the head of release/v4.13. The branch was cut from staging at aa342cfe7. The crates are 4.13.0 (#3698).
Known packaging issue: CUDA
The published snarkvm-algorithms-cuda 4.13.0 crate omits its build script and CUDA kernel sources. Builds that enable cuda fail, including --all-features, even with the CUDA toolkit installed. The source at the v4.13.0 git tag contains these files. Default CPU builds are unaffected. A corrected crate release is needed; crates.io cannot replace an existing version.
Who needs to act
This release has no consensus change and no activation height. It adds no ConsensusVersion, and V22 stays the latest. The testnet and mainnet height tables do not change.
Changes since v4.12.1
All changes apply to every network.
Proving and execution
authorize_requestschecks each request's signer commitment (#3528).authorize_requestsandexecutereject a root request that is flagged dynamic (#3529).executechecks that the authorization uses all its requests (#3526).executechecks that each callee request is for the call's target (#3523).- A dynamic callee's inputs are compared in the caller's view (#3625).
Transaction::to_leafhashes the deployment header correctly (#3521).- New key helpers:
Circuits and cryptography
- Partial field bit decompositions are range-checked (#3534).
- Unused, underconstrained circuit plaintext deserialization and decryption are removed (#3616).
- Identity BHP bases are rejected (#3595).
sum_of_productspanics above its modulus's term limit (#3667).Fp2::sqrtreturns the imaginary root for(QNR, 0)(#3672).- Unchecked curve-point constructors, unchecked curve-point fields and
POWERS_OF_ROOTS_OF_UNITYare deprecated (#3690, #3695). - The Edwards decode change is reverted. Tests pin the verdicts for off-curve
cast(#3644, #3675).
Performance
- Field arithmetic:
- Poseidon:
- MSM and KZG:
- Varuna evaluates
g_1and eachg_monce per proof (#3569). - Circuit synthesis copies less (#3643, #3669, #3670, #3673, #3571, #3572).
hash_to_groupand Elligator2 skip work that cannot change the result (#3655, #3658).- Ledger:
Ledger and state
- The block tree is published after the paused state-root write (#3635).
- Each network uses its own consensus heights (#3647).
MerkleTree::append_if_matchescommits only a root the caller expects (#3512).- The genesis commitment state path is checked against the block tree that is passed in (#3515).
Keys, parameters and the SRS
- Callers can supply SRS powers files, the inclusion proving key, and credits key files. These are checked by size and checksum (#3520, #3559, #3560, #3565, #3567).
- Parameter downloads are locked and atomic (#3502, #3510, #3519).
- Committer key reads are bounded (#3561).
- Proving key, BHP and verifying key statics load without rayon (#3615, #3617).
- The unused SRS serialization pathway is removed (#3489).
CUDA
The cuda feature is supported (#3578, #3584, #3590, #3608).
- It fails on GPU errors instead of falling back to the CPU.
- It names the missing
nvcc.
Default builds are unaffected.
Other
Debugoutput redacts secrets (#3661).- Wrapped errors are no longer repeated in the error source chain (#3688).
- wasm64 routes through the browser query backends (#3539).
- Dependency updates, including
rustls0.23.46 (RUSTSEC-2026-0346 to -0349) andwebpki-roots1.0.10 (#3540, #3597). - Docs (#3566, #3583, #3631, #3659).