Skip to main content

@midnight/ledger v3.0.2Readme | API


@midnight/ledger v3.0.2 / AuthorizedMint

Class: AuthorizedMint

A request to mint a coin, authorized by the mint's recipient

Constructors

new AuthorizedMint()

private new AuthorizedMint(): AuthorizedMint

Returns

AuthorizedMint

Properties

coin

readonly coin: CoinInfo;

The coin to be minted


recipient

readonly recipient: string;

The recipient of this mint

Methods

erase_proof()

erase_proof(): ProofErasedAuthorizedMint

Returns

ProofErasedAuthorizedMint


serialize()

serialize(netid): Uint8Array

Parameters

netid: NetworkId

Returns

Uint8Array


toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


deserialize()

static deserialize(raw, netid): AuthorizedMint

Parameters

raw: Uint8Array

netid: NetworkId

Returns

AuthorizedMint