Skip to main content

@midnight/ledger v2.0.8Readme | API


@midnight/ledger v2.0.8 / 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()

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(): Uint8Array

Returns

Uint8Array


toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


deserialize()

static deserialize(raw): ProofErasedOffer

Parameters

raw: Uint8Array

Returns

ProofErasedOffer