Skip to main content

encodeShieldedCoinInfo

For the complete documentation index, see llms.txt

@midnight-ntwrk/onchain-runtime v3.0.0


@midnight-ntwrk/onchain-runtime / encodeShieldedCoinInfo

Function: encodeShieldedCoinInfo()

function encodeShieldedCoinInfo(coin): {
color: Uint8Array;
nonce: Uint8Array;
value: bigint;
}

Encode a ShieldedCoinInfo into a Compact's ShieldedCoinInfo TypeScript representation

Parameters​

coin​

ShieldedCoinInfo

Returns​

{
color: Uint8Array;
nonce: Uint8Array;
value: bigint;
}

color​

color: Uint8Array;

nonce​

nonce: Uint8Array;

value​

value: bigint;