Ledger topic

Ledger

The in-process node: accounts, signed transfers, BFT finality, the mempool, state and inclusion proofs, snapshots and the canonical encodings shared by every binding.

Classes

Account
A generated account: the signing secret, public key and chain address.
Aviary
The loaded native library and the stateless entry points. Feature surfaces are extensions on this class; stateful objects are created through it.
Node
A running single validator chain node.

Extensions

AccountTools on Account
Convenience views of an account.
AviaryCanonical on Aviary
Canonical bytes that are identical across every binding.
AviaryGenesis on Aviary
Genesis construction and identity.
AviaryNodes on Aviary
Single validator chain nodes and custodial key stores.
AviaryNodeStorage on Aviary
Rebuilding nodes from durable state.
AviaryQuick on Aviary
Shortcuts for the common single validator setups.
NodeFunding on Node
Account creation with genesis funding in one step.
NodeQueries on Node
Read only views of a node.
NodeSending on Node
Transfers that pick the nonce and the signature scheme for you.
NodeStorage on Node
Durable state: the whole chain as one blob, and files around it.
NodeTransfers on Node
Signed transfers admitted to a node's mempool.
NodeViews on Node
Decoded views of a node's state.
ValidatorKeyPair on KeyPairBytes
Turning a validator key pair into the entries the genesis, rotation and tree APIs take.

Typedefs

GenesisAccountEntry = ({Uint8List address, int balance})
A genesis funded account: a 32 byte address and its balance.
KeyPairBytes = ({Uint8List public, Uint8List secret})
A key pair as public and secret bytes.
ValidatorEntry = ({int power, Uint8List publicKey})
A validator's BLS public key and voting power.