Skip to main content

emptyZswapLocalState

@midnight-ntwrk/compact-runtime v0.9.0


@midnight-ntwrk/compact-runtime / emptyZswapLocalState

Function: emptyZswapLocalState()

function 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