Skip to main content

UnprovenAuthorizedMint

@midnight-ntwrk/ledger v3.0.2 β€’ Readme | API


@midnight-ntwrk/ledger v3.0.2 / UnprovenAuthorizedMint

Class: UnprovenAuthorizedMint

A request to mint a coin, authorized by the mint's recipient, without the proof for the authorization being generated

Constructors​

new UnprovenAuthorizedMint()​

private new UnprovenAuthorizedMint(): UnprovenAuthorizedMint

Returns​

UnprovenAuthorizedMint

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): UnprovenAuthorizedMint

Parameters​

β€’ raw: Uint8Array

β€’ netid: NetworkId

Returns​

UnprovenAuthorizedMint