@midnight/zswap v0.3.11 • Readme | API
@midnight/zswap v0.3.11 / Transient
Class: Transient
A shielded "transient"; an output that is immediately spent within the same transaction
Constructors
new Transient()
new Transient(): Transient
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(): Uint8Array
Returns
Uint8Array
toString()
toString(compact?): string
Parameters
• compact?: boolean
Returns
string
deserialize()
static deserialize(raw): Transient
Parameters
• raw: Uint8Array