Skip to main content

DustSpend

@midnight/ledger v7.0.0


@midnight/ledger / DustSpend

Class: DustSpend<P>

Type Parameters

P

P extends Proofish

Properties

newCommitment

readonly newCommitment: bigint;

oldNullifier

readonly oldNullifier: bigint;

proof

readonly proof: P;

vFee

readonly vFee: bigint;

Methods

serialize()

serialize(): Uint8Array;

Returns

Uint8Array


toString()

toString(compact?): string;

Parameters

compact?

boolean

Returns

string


deserialize()

static deserialize<P>(markerP, raw): DustSpend<P>;

Type Parameters

P

P extends Proofish

Parameters

markerP

P["instance"]

raw

Uint8Array

Returns

DustSpend<P>