@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