Skip to main content

EncodedShieldedCoinInfo

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / EncodedShieldedCoinInfo

Interface: EncodedShieldedCoinInfo

A ShieldedCoinInfo with its fields encoded as byte strings. This representation is used internally by the contract executable.

Extended by​

Properties​

color​

readonly color: Uint8Array;

The coin's type, identifying the currency it represents.


nonce​

readonly nonce: Uint8Array;

The coin's randomness, preventing it from colliding with other coins.


value​

readonly value: bigint;

The coin's value, in atomic units dependent on the currency. Bounded to be a non-negative 64-bit integer.