Skip to main content
For the complete documentation index, see llms.txt

Ledger

The ledger in Midnight is a public record of contract states and token states, consisting of Zswap’s cryptographic commitments and a mapping of contract addresses to their respective states.

Link to related documentation

To download the component, click the appropriate link under Artifacts.


Release 8.1.2LATEST

24 August 2026

Artifacts

Summary

  • Hardens low-level deserialization across serialize, base-crypto, storage, onchain-state, onchain-vm, and transient-crypto: non-canonical encodings and values violating type invariants no longer decode.
  • An 8.1.2 node rejects data an 8.1.1 node accepts; the change is breaking only for environments containing maliciously formed transactions.
  • Delivered to mainnet nodes prior to the public release.
  • Fixes several panic and overflow paths: DustParameters::time_to_cap zero-divide guard, saturating Dust seq increments and delta accumulation, and Zswap binding randomness extraction no longer panics.
  • All bumps are patch-level with internal dependencies pinned exactly, so consumers cannot resolve past the fix.