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.
To download the component, click the appropriate link under Artifacts.
Release 4.0.0LATEST
12 May 2025
Artifacts
Summary
- Integrated with the new storage model, making required objects
Storableto allow storing MPT leafs asSps. - Added segment IDs to Zswap constructors. These should be set to
1for fallible offers, and0for guaranteed offers. - Renamed
ZswapLocalStateNoKeystoZswapLocalState, removing the existing (with keys) state. - Switch from Pluto-Eris to BLS12-381.
- Switched to using data providers instead of direct prover keys and parameters.
- Add a data provider to fetch key material for Midnight. The source of this may be overridden with the
MIDNIGHT_PARAM_SOURCEenvironment variable.