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