AviarySubchains extension

Subchains: registering children and binding them to a parent.

on

Methods

commitParentBinding(Uint8List genesis, int parentChainId, Uint8List parentGenesisHash) → Uint8List

Available on Aviary, provided by the AviarySubchains extension

Binds a child genesis to its parent by id and 32 byte genesis hash.
commitSubchainPolicy(Uint8List genesis, Uint8List policy) → Uint8List

Available on Aviary, provided by the AviarySubchains extension

Commits a policy into a genesis; the chain becomes a parent.
encodeChildRegistration({required int chainId, required Uint8List genesisHeader, required List<ValidatorEntry> validators, int maxDepth = 0}) → Uint8List

Available on Aviary, provided by the AviarySubchains extension

Encodes a child registration. maxDepth is the child's own subtree depth, 0 for a leaf.
encodeSubchainPolicy({required int maxChildren, required List<Uint8List> children, int maxDepth = 1, int maxAnchorsPerBlock = 0, int maxHeadersPerAnchor = 0}) → Uint8List

Available on Aviary, provided by the AviarySubchains extension

Encodes a parent's subchain policy from encoded registrations, which must be ascending and unique by chain id. Zero bounds are unlimited.
genesisHeader(Uint8List genesis) → Uint8List

Available on Aviary, provided by the AviarySubchains extension

The genesis header of a genesis, the identity a parent registers by.