@midnight/ledger v3.0.2 • Readme | API
@midnight/ledger v3.0.2 / decodeCoinInfo
Function: decodeCoinInfo()
decodeCoinInfo(coin): CoinInfo
Decode a CoinInfo from Compact's CoinInfo
TypeScript representation
Parameters
• coin
• coin.color: Uint8Array
• coin.nonce: Uint8Array
• coin.value: bigint