Skip to main content

@midnight/zswap v3.0.2Readme | API


@midnight/zswap v3.0.2 / ProofErasedAuthorizedMint

Class: ProofErasedAuthorizedMint

A request to mint a coin, authorized by the mint's recipient, with the authorizing proof having been erased

Constructors

new ProofErasedAuthorizedMint()

private new ProofErasedAuthorizedMint(): ProofErasedAuthorizedMint

Returns

ProofErasedAuthorizedMint

Properties

coin

readonly coin: CoinInfo;

The coin to be minted


recipient

readonly recipient: string;

The recipient of this mint

Methods

serialize()

serialize(netid): Uint8Array

Parameters

netid: NetworkId

Returns

Uint8Array


toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


deserialize()

static deserialize(raw, netid): ProofErasedAuthorizedMint

Parameters

raw: Uint8Array

netid: NetworkId

Returns

ProofErasedAuthorizedMint