The consensus hashers of the Ootle sidechain. Validators, the base layer and every client that verifies a commit
proof hash with these, so a domain, version or label changes only at a network reset.
A 32-byte hash. Its serde and Borsh encodings are those of a [u8; 32], the same as the base layer’s
tari_common_types::types::FixedHash, so proofs encoded by either side decode on the other.
An inclusion proof of a leaf in a Merkle mountain range, in a self-describing form so that consumers can verify it
without decoding the bincode encoding of tari_mmr::MerkleProof.
The fields of a base layer TransactionOutput that its hash commits to, in hash order. The range proof is carried
only as its hash, which is all the output hash commits to.
The committee members that signed a quorum certificate. Bit i % 8 of byte i / 8, counting from the least
significant bit, is set if the member at index i of the SigningCommittee signed.
A transaction command’s atom as the sidechain Borsh-encodes it. The bytes are opaque except for their leading
fields, the transaction id followed by the decision, which every transaction atom begins with.
The hash preimage schemas for a sidechain block header, one per shape the header has taken. The variant is
selected by SidechainBlockHeader::protocol_version, so the variant index is consensus-bound: entries are
append-only and never reordered.
A command as the sidechain commits to it in its command merkle root. Each variant’s discriminant is the first
byte of the command’s hash preimage, so it is load-bearing. 6 was the retired EvictNode command and must not be
reused.
The message a proposal vote signs, in the shape the block’s protocol version calls for. Signing and verifying
both go through this so that the two cannot select different shapes.
The maximum number of elements a commit proof may contain. A proof holds the three quorum certificates of the
3-chain that commits its block and at most one more element: a chain of links down to the block or, when the block
is the parent of the 3-chain’s last block, that block’s own certificate.
The maximum number of signatures a quorum certificate may contain. A valid quorum certificate contains at most one
signature per committee member, so this bound holds only while no committee exceeds 1000 members.
The committee that signs a quorum certificate, in ascending lexicographic order of the members’ 32-byte compressed
Ristretto public keys, with each key listed once. A SignerBitmap addresses members by their index in this order.
Validates that proof_elements prove header committed on network, signed by a quorum of committee.
quorum_threshold must be positive: a QC with no signatures holds no power, so a threshold of 0 would accept one.
Validates that proof_elements form a 3-chain of quorum certificates in header.epoch with consecutive descending
heights that, followed by any chain links, descends to header at header.height. A proof that passes proves
header only once each of its quorum certificates is validated against a committee, as check_proof_elements
does.
The JMT hash scheme a sidechain block’s command_merkle_root was built with, selected by the header’s
protocol_version. Ootle builds the root, so this mapping must match Ootle’s for every protocol version. A new
scheme is a new arm here.