AuthorizedMint
@midnight/zswap v3.0.2 β’ Readme | API
@midnight/zswap 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β
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β
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