Repository navigation
snarkVM v5.0.0
Mainnet release source from PR #3978, merged into release/v5.0. Tag v5.0.0 identifies commit 33ed5c81b4b76df0172daf0d0202b9fca02c2f1a. Its tree exactly matches approved preparation commit 67c50bb8a1dd4d3729f70e6c71a5efbfdcf14c7b, which passed all 47 PR checks. Relative to v5.0.0-rc.1, the only source change schedules mainnet V23; testnet and development parameters and V23 protocol rules are unchanged. These notes compare v4.13.1 with v5.0.0. All 62 release crates are published on crates.io. Their archived source files and VCS metadata match the final tag. Extended CI on the final commit passed.
Activation and upgrade actions
- Testnet V23 activated at block 22,079,000 on November 30, 2026 at 23:49:31 UTC / 15:49:31 PST.
- Mainnet V23 is scheduled at block 24,602,000. Recent block times estimate December 8, 2026 at approximately 16:00 UTC / 08:00 PST. The block height determines activation; the time is an estimate.
- Node operators need the companion snarkOS release before mainnet activation. A snarkVM library release alone does not update a node.
- Rust consumers must update their APIs and Cargo features for this major release. Migration details follow below.
- Rust consumers can select the published
snarkvm = "=5.0.0"release. The companion snarkOS mainnet release is tracked in PR #4815.
Consensus V23
These rules are gated on V23. Each network's activation height also enables the consensus version that snarkOS maps to router message version 34.
- Static calls: reject a deployment that calls a function with a constant output. Existing deployed programs can still execute. Upgrades and key amendments must satisfy the new deployment rule. #3823
- Finalize fees: price the full encoded plaintext for all 21 non-raw hash instructions, all six non-raw commitment instructions, and the message in
sign.verify. Round up to whole bytes and resolve imported structs in their declaring program. Base fees and per-byte rates stay the same. Raw instructions, commitment randomizers, and the signature and address operands keep their existing prices. Applications should recalculate finalize costs. #3867 - ECDSA inputs: require flat 65-byte signatures for every ECDSA variant. Require flat 32-byte precomputed digests for
ecdsa.verify.digestandecdsa.verify.digest.eth. Runtime verification uses the candidate block height. Deployment verification uses the stored height, so its new checks start once the first V23 block is stored. The unversioned interpreter helper uses the latest rule. #3929 - Deployment plaintext limits: check instruction destinations before synthesis, including dynamic-call outputs, dynamic-record results, and called closures. New deployments, upgrades, and key-only amendments must pass the existing plaintext bit-size limit. #3931
- Synthesis limits after calls: restore the caller's constraint, variable, and nonzero-entry limits after static and dynamic calls during deployment verification. A deployment that exceeds a claimed limit after a call is rejected. #3879
Runtime and decoding fixes
These changes apply when the new software runs; they do not wait for V23.
- Give each synthesis fresh thread-local circuit state. Restore the caller's state on return and unwind. A halted deployment no longer leaves a worker dirty and causes a later valid deployment to fail.
Environment::with_fresh_circuitexposes the scoped operation. Return only console or ejected values from that scope. #3866, included through commit 8691ef268 - Identify VM halts by a
VmHaltpanic payload across Rayon threads. Other panics reach the host hook. Catch halts withtry_vm_runtimeand read their messages withpanic_message. Caught halts log at debug level; release builds log their location without private values. The earlier thread-localVmScopeapproach is superseded. #3928 - Scan nested array types for strings once per dimension instead of repeatedly scanning the inner type. Results and the existing depth limit stay the same. #3930
- Reject a function encoding whose finalize scope cannot be attached, including a mismatched name. Accept only
0and1as record-owner visibility bytes. Canonical encodings written by snarkVM stay the same. The original reviews identify a rollout concern: old and new nodes can disagree on injected malformed deployment bytes during a mixed-version rollout. These checks have no V23 gate; the node rollout review must cover that difference. #3704, #3705 - Reject circuit identifier-literal inputs shorter than 248 bits, matching console behavior. Program deserialization already supplies the required length. #3800
- Write every coordinate when a CUDA MSM returns the point at infinity. This removes uninitialized coordinates from zero sums. #3848
- Reject overflowing or out-of-range SRS degree, hiding-bound, and subdomain-index arguments. Reject inconsistent infinity flags in committer-key points. Valid inputs keep their existing results. #3748, #3772, #3775
- Remove private output and witness values from tracing diagnostics. Log invalidated stake outside the committee only when it is nonzero. #3894, #3807
Performance
The release includes the following optimizations. The linked PRs contain component measurements; these notes make no combined node-throughput claim.
- Use AVX-512 IFMA lanes for BLS12-377 Fp12 arithmetic, cyclotomic exponentiation, Miller loops, and small G1 MSMs. Runtime detection selects the lane paths. Other CPUs and architectures use scalar paths;
SNARKVM_NO_IFMAdisables the lanes. Add Karabina compressed cyclotomic exponentiation to the scalar path. #3650, #3651, #3652, #3653, #3666, #3914 - Use BMI2/ADX Montgomery arithmetic when the x86-64 build enables those instructions. Improve Edwards point decoding with a quartic-character subgroup test and a cached exponent schedule. Remove the redundant Legendre check from table-based square roots. #3754, #3676, #3681, #3604
- Reduce transforms and allocations in Varuna rounds 1, 2, and 4. The half-size round-2 and round-4 transforms apply to the host path. Initialize batch instances in parallel. Fold commitment terms into each degree-bound MSM during verification. #3674, #3678, #3679, #3796, #3622
- Use sparse Poseidon partial rounds and cache the first sponge block for short inputs. Batch circuit BHP witness inversions. Process short batch-inversion slices serially to avoid scheduling overhead. Hash circuit IDs with
blake2s_simd. #3621, #3700, #3716, #3738, #3765, #3702 - Add a caller-owned
ComputeKeyCacheto block and signature readers. Cache only successful decodes by their exact input bytes. Append blocks to the block tree in place. Borrow function, closure, fee, and future-output bodies during verification. #3671, #3706, #3769, #3849 - Size internal work from the caller's Rayon pool instead of a CPU-vendor-specific physical-core cap. Affinity, quotas, custom pools, and
RAYON_NUM_THREADSinfluence the selected concurrency. #3649
Breaking Rust API changes
| Area | Migration |
|---|---|
| Canary | Remove uses of CanaryV0, AleoCanaryV0, CanaryCircuit, Canary height tables, parameter modules, and key macros. The network and its resources are removed. Network ID 2 remains reserved. #3919 |
| Trait implementations | External implementations of field, curve, network, environment, integer, ledger-storage, map, database, execution, EvaluationsProvider, PrettyUnwrap, and Aleo traits are no longer supported. Use the provided implementations. #3718, #3722, #3732, #3818, #3820 |
| Curve construction and bytes | Replace Group::new with checked Group::try_new. Use checked affine constructors and coordinate accessors instead of public fields or new. Convert projective points to affine before canonical serialization. General affine byte decoding, affine serde, and projective byte/canonical serialization implementations are removed. #3773, #3774, #3775, #3776, #3910 |
| Deployment calls | CallStack::CheckDeployment now takes CheckDeploymentSettings. Start from CheckDeploymentSettings::default() and set its public fields. The settings struct is non-exhaustive. #3940 |
| VM halts | A halt payload is now VmHalt, not a string. Use try_vm_runtime and panic_message. try_vm_runtime is public API in the final release tree. #3928 |
| Storage types | Import StorageMode and directory helpers from snarkvm::ledger::store or snarkvm::utilities, not aleo_std. Existing normal ledger paths stay the same. #3751 |
| Field and type helpers | sqrt_tables() returns tables directly, and FftParameters::POWERS_OF_ROOTS_OF_UNITY is removed. FinalizeType, RegisterType, EntryType, and ValueType no longer implement EnumIndex; use their variant() methods. #3604, #3832 |
| Circuit inspection | The handwritten circuit Metrics, OutputMode, and CircuitType APIs and their count/output-mode assertion macros are removed. Circuit tests use structural snapshots and direct count assertions. Eject an Assignment for constraint synthesis; the unused ConstraintSynthesizer implementations on circuit environments are removed. #3836, commit b426dadd7, #3733 |
| Internal APIs | Versioned cost/reward helpers, stack and trace internals, and inner-store accessors become private or explicitly outside the supported API. Prefer top-level store accessors. Instruction and command implementation types are documented as internal. #3816, #3870, #3871, #3875, #3771 |
| Growing enums | RocksDB map enums are non-exhaustive. ConsensusVersion stays exhaustive; its documentation says minor releases may add versions. Program-type enums have the same documented growth policy. Update exhaustive matches when upgrading. #3817, #3869 |
| Removed helpers | Remove uses of obsolete package build/run/execute/clean/create APIs, AVM/prover/verifier/README file wrappers, display_error, AleoObject, Bech32Object, hrp4!, saturating arithmetic traits, and unused algorithm helpers such as FixedBase, ConstraintCounter, and KZG10::open_lagrange. The linked PRs list every removed item. #3739, #3886, #3735, #3736 |
The ledger also exposes prepare_advance_to_next_beacon_block_with_timestamp for deterministic tools and tests, and MAX_OPEN_FILES for the RocksDB table-file limit. #3906, #3764
Cargo features and logging
| Previous configuration | 5.0.0 configuration |
|---|---|
test_targets, test_consensus_heights |
Use dev-network for local development chains. Never enable it for public testnet or mainnet. It lowers network parameters and includes the ledger's fixed development genesis root. |
dev-committee |
Use dev-committee-override. It remains separate from dev-network. |
Root or ledger dev_genesis_state_root |
Use dev-network. The low-level store feature retains its old name. |
Helper features test, test_exports, prop-tests |
Use the relevant crate's test-helpers. TestRng now requires it. Helpers do not relax production validation. Their APIs are outside semver guarantees. |
Consensus test, test-old-consensus-versions, memory-intensive |
Remove them. Select tests by their ignored tiers and filters, as documented in CI.md. |
serial |
Remove it. For native single-thread use, install work in a one-thread Rayon pool. |
locktick |
Build with --cfg locktick or the repository's cargo locktick-* aliases. It is not a Cargo feature. |
dev-print, snark-print, timer, profiler |
Install a tracing subscriber. Use module-level debug/trace filters or RUST_LOG=timing=trace; log span close events for durations. |
parameters_no_std_out, parameters no_std_out |
Filter the snarkvm_parameters tracing target. Without a subscriber, parameter-download messages are not displayed. |
| Implicit optional-dependency features | Use explicit features such as rocks, cuda, or the facade's module features. Dependency names hidden by dep: no longer select features. |
| Account/Narwhal module features | Remove them. Those crates now compile their modules unconditionally. |
| Empty and test/bench-only features | Remove noconfig, CUDA quiet/portable, collections test-utils, ledger bench-prove, puzzle/synthesizer setup, ledger-block test-helpers, and wasm circuit. The proving benchmark is now its own target. |
Forward-only wasm features |
Remove them from crates that no longer declare them. wasm remains on the facade, console, console-network, parameters, synthesizer, and synthesizer-process. |
See #3852 and the final manifests for crate-specific feature names. The release removes aleo-std instrumentation and storage dependencies. Metrics move to 0.24.6; consumers can use the snarkvm_metrics::metrics re-export to share its recorder. Lock instrumentation has a matching utilities re-export under cfg(locktick).
Build and test changes
- Repository x86-64 builds target Skylake instead of the build machine's native CPU. Use a compatible CPU or override the target flags. This repository configuration does not automatically apply to downstream Cargo consumers. AVX-512 remains optional.
- Add circuit snapshots that check counts, structural digests, output modes, console agreement, and witness-independent shape. Correct integer-shift and constant-zero test expectations. Tests now require successful, satisfied round trips for valid serialization inputs.
- Share genesis and block fixtures across test processes. Add
TEST_SEEDfor repeatable default test RNGs. Close test RocksDB stores and remove their directories when the last handle drops. - Separate fast, slow, memory-intensive, and old-consensus synthesizer test tiers. Release CI adds old-consensus, exhaustive integer, RocksDB, ARM, Windows, per-feature, GPU, and CUDA archive checks. Staging runs on a six-hour schedule. Yanked crates fail advisory checks.
- Update dependency advisories and build tools. Replace
blake2with the existingblake2s_simddependency; removeenum_indexand unused proc-macro dependencies. Consumers of#[tracing::instrument]must enable tracing'sattributesfeature themselves.
Compatibility and scope
The shipped testnet and mainnet parameter resources are byte-for-byte unchanged from v4.13.1. Canary resources are removed. V23 keeps Varuna V3. Performance changes preserve their mathematical outputs; API changes do not imply a new proof format.
The v4.13.1 CUDA packaging correction is already in the comparison baseline. It is not counted as a new 5.0.0 fix. Later open work, including pruning and program-mapping-history changes, is not included merely because another PR refers to it.