ProofErasedOffer
@midnight/zswap v3.0.2 β’ Readme | API
@midnight/zswap v3.0.2 / ProofErasedOffer
Class: ProofErasedOffer
An Offer, with all proof information erased
Primarily for use in testing, or handling data known to be correct from external information
Constructorsβ
new ProofErasedOffer()β
private new ProofErasedOffer(): ProofErasedOffer
Returnsβ
Propertiesβ
deltasβ
readonly deltas: Map<string, bigint>;
The value of this offer for each token type; note that this may be negative
This is input coin values - output coin values, for value vectors
inputsβ
readonly inputs: ProofErasedInput[];
The inputs this offer is composed of
outputsβ
readonly outputs: ProofErasedOutput[];
The outputs this offer is composed of
transientβ
readonly transient: ProofErasedTransient[];
The transients this offer is composed of
Methodsβ
merge()β
merge(other): ProofErasedOffer
Parametersβ
β’ other: ProofErasedOffer
Returnsβ
serialize()β
serialize(netid): Uint8Array
Parametersβ
β’ netid: NetworkId
Returnsβ
Uint8Array
toString()β
toString(compact?): string
Parametersβ
β’ compact?: boolean
Returnsβ
string
deserialize()β
static deserialize(raw, netid): ProofErasedOffer
Parametersβ
β’ raw: Uint8Array
β’ netid: NetworkId