Skip to main content

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​

ProofErasedOffer

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

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

Returns​

ProofErasedOffer