AviarySubchainProofs extension

Subchain anchors and cross chain proofs.

on

Methods

blockHeader(Uint8List block) → Uint8List

Available on Aviary, provided by the AviarySubchainProofs extension

The encoded header of an encoded block.
certifiedHeader(Uint8List header, Uint8List certificate) → Uint8List

Available on Aviary, provided by the AviarySubchainProofs extension

A child header paired with the certificate that finalized it.
encodeAnchor(int childChainId, List<Uint8List> certifiedHeaders) → Uint8List

Available on Aviary, provided by the AviarySubchainProofs extension

An anchor: one child's consecutive certified headers.
encodeSubchainProof(List<Uint8List> hops, Uint8List stateProof) → Uint8List

Available on Aviary, provided by the AviarySubchainProofs extension

A cross chain proof from hops down the tree plus a state proof.
headerSubchainRoot(Uint8List header) → Uint8List

Available on Aviary, provided by the AviarySubchainProofs extension

A header's 32 byte subchain root, zero below version 3.
verifySubchainProof(Uint8List parentSubchainRoot, Uint8List proof) → bool

Available on Aviary, provided by the AviarySubchainProofs extension

Whether proof is committed under a parent's 32 byte subchain root all the way down and its state proof holds.