ProofErasedTransient
@midnight/zswap v3.0.2 β’ Readme | API
@midnight/zswap v3.0.2 / 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
Constructorsβ
new ProofErasedTransient()β
private new ProofErasedTransient(): ProofErasedTransient
Returnsβ
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
Parametersβ
β’ netid: NetworkId
Returnsβ
Uint8Array
toString()β
toString(compact?): string
Parametersβ
β’ compact?: boolean
Returnsβ
string
deserialize()β
static deserialize(raw, netid): ProofErasedTransient
Parametersβ
β’ raw: Uint8Array
β’ netid: NetworkId