Skip to main content

EncodedZswapLocalState

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / EncodedZswapLocalState

Interface: EncodedZswapLocalState

Tracks the coins consumed and produced throughout circuit execution.

Properties

coinPublicKey

coinPublicKey: EncodedCoinPublicKey;

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


currentIndex

currentIndex: bigint;

The Merkle tree index of the next coin produced.


inputs

inputs: EncodedQualifiedShieldedCoinInfo[];

The coins consumed as inputs to the circuit.


outputs

outputs: {
coinInfo: EncodedShieldedCoinInfo;
recipient: EncodedRecipient;
}[];

The coins produced as outputs from the circuit.

coinInfo

coinInfo: EncodedShieldedCoinInfo;

recipient

recipient: EncodedRecipient;