Skip to main content

ProofErasedOffer

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / 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

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​

ProofErasedOffer


serialize()​

serialize(netid): Uint8Array<ArrayBufferLike>

Parameters​

netid​

NetworkId

Returns​

Uint8Array<ArrayBufferLike>


toString()​

toString(compact?): string

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): ProofErasedOffer

Parameters​

raw​

Uint8Array<ArrayBufferLike>

netid​

NetworkId

Returns​

ProofErasedOffer