Skip to main content

@midnight-ntwrk/compact-runtime v0.7.0Readme | API


@midnight-ntwrk/compact-runtime v0.7.0 / emptyZswapLocalState

Function: emptyZswapLocalState()

emptyZswapLocalState(coinPublicKey): EncodedZswapLocalState

Constructs a new EncodedZswapLocalState with the given coin public key. The result can be used to create a ConstructorContext.

Parameters

coinPublicKey: string

The Zswap coin public key of the user executing the circuit.

Returns

EncodedZswapLocalState