ProofErasedInput
@midnight/zswap / ProofErasedInput
Class: ProofErasedInput
A Input, with all proof information erased
Primarily for use in testing, or handling data known to be correct from external information
Properties
contractAddress
readonly contractAddress: undefined | string;
The contract address receiving the input, if the sender is a contract
nullifier
readonly nullifier: string;
The nullifier of the input
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): ProofErasedInput
Parameters
raw
Uint8Array<ArrayBufferLike>