Skip to main content

UnprovenAuthorizedMint

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / UnprovenAuthorizedMint

Class: UnprovenAuthorizedMint

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

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<ArrayBufferLike>

Parameters​

netid​

NetworkId

Returns​

Uint8Array<ArrayBufferLike>


toString()​

toString(compact?): string

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): UnprovenAuthorizedMint

Parameters​

raw​

Uint8Array<ArrayBufferLike>

netid​

NetworkId

Returns​

UnprovenAuthorizedMint