Output
@midnight/zswap / Output
Class: Output
A shielded transaction output
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<ArrayBufferLike>
Parameters
netid
Returns
Uint8Array<ArrayBufferLike>
toString()
toString(compact?): string
Parameters
compact?
boolean
Returns
string
deserialize()
static deserialize(raw, netid): Output
Parameters
raw
Uint8Array<ArrayBufferLike>