Skip to main content

@midnight-ntwrk/compact-runtime v0.7.0Readme | API


@midnight-ntwrk/compact-runtime v0.7.0 / EncodedQualifiedCoinInfo

Interface: EncodedQualifiedCoinInfo

A ocrt.QualifiedCoinInfo 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.


mt_index

readonly mt_index: bigint;

The coin's location in the chain's Merkle tree of coin commitments. Bounded to be a non-negative 64-bit integer.


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.