ProofErasedOutput
@midnight/zswap v3.0.2 β’ Readme | API
@midnight/zswap v3.0.2 / ProofErasedOutput
Class: ProofErasedOutput
An Output with all proof information erased
Primarily for use in testing, or handling data known to be correct from external information
Constructorsβ
new ProofErasedOutput()β
private new ProofErasedOutput(): ProofErasedOutput
Returnsβ
Propertiesβ
commitmentβ
readonly commitment: string;
The commitment of the output
contractAddressβ
readonly contractAddress: undefined | string;
The contract address receiving the output, if the recipient is a contract
Methodsβ
serialize()β
serialize(netid): Uint8Array
Parametersβ
β’ netid: NetworkId
Returnsβ
Uint8Array
toString()β
toString(compact?): string
Parametersβ
β’ compact?: boolean
Returnsβ
string
deserialize()β
static deserialize(raw, netid): ProofErasedOutput
Parametersβ
β’ raw: Uint8Array
β’ netid: NetworkId