LocalState
@midnight/zswap v3.0.2 • Readme | API
@midnight/zswap v3.0.2 / LocalState
Class: LocalState
The local state of a user/wallet, consisting of their secret key, and a set of unspent coins.
It also keeps track of coins that are in-flight, either expecting to spend or expecting to receive, and a local copy of the global coin commitment Merkle tree to generate proofs against.
Constructors
new LocalState()
new LocalState(): LocalState
Creates a new state with a randomly sampled secret key