@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / EncodedCoinInfo
Interface: EncodedCoinInfo
A ocrt.CoinInfo with its fields encoded as byte strings. This representation is used internally by the contract executable.
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.