Skip to content

v0.11.11

Choose a tag to compare

@iamalwaysuncomfortable iamalwaysuncomfortable released this 28 Sep 16:42
· 33 commits to mainnet since this release
8124ca2

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 the snarkvm-* 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 every PlaintextType declared in a deployed program. Mainnet activates V20 at height 22,175,000 and testnet at 19,374,000.
  • ConsensusVersion::V21: a placeholder, set to u32::MAX on both networks.
  • Signing guard: Signature::sign now rejects any message whose second field equals hash_psd2 of the first, which is the shape of a Request signature. 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.ts and the test_set_genesis_block_non_zero_fails input in wasm/src/utilities/mod.rs
  • the getOrInitConsensusVersionTestHeights doc example in wasm/src/utilities/mod.rs
  • the JSDoc examples in sdk/src/program-manager.ts and their docs/api_reference mirror
  • 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:all succeeds on both networks with no warnings
  • wasm-pack test on mainnet and testnet: 204 passed, 0 failed each
  • yarn test:sdk: 1191 passing, 0 failing, 49 pending across both network bundles
  • The 21-height list is accepted end-to-end in the RUN_SKIPPED Consensus step

Full Changelog: v0.11.10...v0.11.11