Skip to main content

ProofErasedTransient

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / ProofErasedTransient

Class: ProofErasedTransient

A Transient, with all proof information erased

Primarily for use in testing, or handling data known to be correct from external information

Properties​

commitment​

readonly commitment: string;

The commitment of the transient


contractAddress​

readonly contractAddress: undefined | string;

The contract address creating the transient, if applicable


nullifier​

readonly nullifier: string;

The nullifier of the transient

Methods​

serialize()​

serialize(netid): Uint8Array<ArrayBufferLike>

Parameters​

netid​

NetworkId

Returns​

Uint8Array<ArrayBufferLike>


toString()​

toString(compact?): string

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): ProofErasedTransient

Parameters​

raw​

Uint8Array<ArrayBufferLike>

netid​

NetworkId

Returns​

ProofErasedTransient