Skip to main content

DustRegistration

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / DustRegistration

Class: DustRegistration<S>

Type Parameters​

S​

S extends Signaturish

Constructors​

Constructor​

new DustRegistration<S>(
markerS,
nightKey,
dustAddress,
allowFeePayment,
signature?): DustRegistration<S>;

Parameters​

markerS​

S["instance"]

nightKey​

string

dustAddress​

undefined | bigint

allowFeePayment​

bigint

signature?​

S

Returns​

DustRegistration<S>

Properties​

allowFeePayment​

allowFeePayment: bigint;

dustAddress​

dustAddress: undefined | bigint;

nightKey​

nightKey: string;

signature​

signature: S;

Methods​

serialize()​

serialize(): Uint8Array;

Returns​

Uint8Array


toString()​

toString(compact?): string;

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize<S>(markerS, raw): DustRegistration<S>;

Type Parameters​

S​

S extends Signaturish

Parameters​

markerS​

S["instance"]

raw​

Uint8Array

Returns​

DustRegistration<S>