ChainRegistry extension

The parent side of a chain with a dynamic policy: registry operations, records and child proofs.

on

Methods

childProof(int childChainId) → Uint8List

Available on Chain, provided by the ChainRegistry extension

A proof that a child's record is committed by this parent's current subchain root.
childRecord(int childChainId) → ChildRecord

Available on Chain, provided by the ChainRegistry extension

The current record of a child. Throws when this chain has no dynamic policy or the child was never registered.
proposeSubchain(int timestamp, {List<Uint8List> anchors = const [], List<Uint8List> ops = const []}) → Uint8List

Available on Chain, provided by the ChainRegistry extension

Proposes the next block carrying encoded anchors in ascending child id order and signed registry ops, applied operations first. Throws with the reason when an anchor or an operation is invalid.
registryCounts() → RegistryCounts?

Available on Chain, provided by the ChainRegistry extension

The registry's sizes and authority epoch, or null when this chain has no dynamic policy.
subchainHopV2(int childChainId) → Uint8List

Available on Chain, provided by the ChainRegistry extension

A proof hop from this parent's current registry into a child, tagged with its kind in the first byte: 1 for a version 1 policy, 2 for a dynamic policy.