Repository navigation
v0.11.11
·
33 commits
to mainnet
since this release
What's Changed
Dependencies
- Update snarkVM to v4.10.0 (#1411). All ten
snarkvm-*crates move from 4.9.1 to 4.10.0. Lockfile churn is confined to thesnarkvm-*crates; no other dependency moved.
What snarkVM v4.10.0 brings
ConsensusVersion::V20: more accurate type checking for the root call, and a bound on the size of everyPlaintextTypedeclared in a deployed program. Mainnet activates V20 at height 22,175,000 and testnet at 19,374,000.ConsensusVersion::V21: a placeholder, set tou32::MAXon both networks.- Signing guard:
Signature::signnow rejects any message whose second field equalshash_psd2of the first, which is the shape of aRequestsignature. Arbitrary-message signing through the SDK is unaffected, since ordinary messages never match that shape.
Consensus-version count
NUM_CONSENSUS_VERSIONS goes 19 → 21, so getOrInitConsensusVersionTestHeights now requires twenty-one heights. Every copy of the consensus-heights CSV is extended by two values:
sdk/tests/wasm.test.tsand thetest_set_genesis_block_non_zero_failsinput inwasm/src/utilities/mod.rs- the
getOrInitConsensusVersionTestHeightsdoc example inwasm/src/utilities/mod.rs - the JSDoc examples in
sdk/src/program-manager.tsand theirdocs/api_referencemirror create-leo-app/template-devnode-js/index.js
Devnet users who call getOrInitConsensusVersionTestHeights with an explicit list must pass twenty-one heights.
No wasm source changes were needed: the manager code only compares consensus versions relationally and delegates Varuna selection to snarkVM's varuna_version_from_consensus.
Testing
yarn build:allsucceeds on both networks with no warningswasm-pack teston mainnet and testnet: 204 passed, 0 failed eachyarn test:sdk: 1191 passing, 0 failing, 49 pending across both network bundles- The 21-height list is accepted end-to-end in the
RUN_SKIPPEDConsensus step
Full Changelog: v0.11.10...v0.11.11