Skip to content

v4.13.0

Choose a tag to compare

@snarkworld snarkworld released this 16 Nov 23:22
8d4ca1b

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_requests checks each request's signer commitment (#3528).
  • authorize_requests and execute reject a root request that is flagged dynamic (#3529).
  • execute checks that the authorization uses all its requests (#3526).
  • execute checks 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_leaf hashes the deployment header correctly (#3521).
  • New key helpers:
    • Process::execution_keys lists every key an execution uses (#3524).
    • Stack::proving_keys lists the proving keys a stack holds (#3531).
    • The setup program synthesizes and writes the keys of any program (#3589).

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_products panics above its modulus's term limit (#3667).
  • Fp2::sqrt returns the imaginary root for (QNR, 0) (#3672).
  • Unchecked curve-point constructors, unchecked curve-point fields and POWERS_OF_ROOTS_OF_UNITY are deprecated (#3690, #3695).
  • The Edwards decode change is reverted. Tests pin the verdicts for off-curve cast (#3644, #3675).

Performance

  • Field arithmetic:
    • safegcd inversion (#3570).
    • table-based sqrt (#3603).
    • one inversion in circuit group add and double (#3573).
  • Poseidon:
    • cheaper partial rounds (#3656).
    • a simpler compress_elements (#3351, #3606).
  • MSM and KZG:
    • double-and-add for MSMs below 32 bases (#3594).
    • one MSM per G2 element in the KZG batch check (#3619).
  • Varuna evaluates g_1 and each g_m once per proof (#3569).
  • Circuit synthesis copies less (#3643, #3669, #3670, #3673, #3571, #3572).
  • hash_to_group and Elligator2 skip work that cannot change the result (#3655, #3658).
  • Ledger:
    • MerkleTree::append updates in place within a power of two (#3511).
    • Unchecked reads now reach below the transaction level (#3596).
    • Finalize register storage is preallocated (#3498, #3499).
    • The epoch heights are no longer allocated (#3113).

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_matches commits 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

  • Debug output 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 rustls 0.23.46 (RUSTSEC-2026-0346 to -0349) and webpki-roots 1.0.10 (#3540, #3597).
  • Docs (#3566, #3583, #3631, #3659).