Expand description
Blocks signed by test quorums, and the answers a node would give for them, for tests of this crate and of the crates that verify block proofs through it.
A test quorum’s key is derived from its hash, so these are synthetic blocks, never
network trust anchors: a verifier accepts them only from a provider that answers a test
quorum’s key, as TestQuorum does. The sign hash is built here by hand, from
Tenderdash’s definition of it, so the verifier is checked against that definition and
not against itself.
Structs§
- Test
Quorum - A provider that knows the test quorum
QUORUM_HASHand records the Core heights reported to it as verified.
Constants§
- CHAIN_
ID - The chain of the test blocks.
- CORE_
HEIGHT - The Core height the test blocks are chain locked at.
- QUORUM_
HASH - The quorum that signs a block unless a test names another.
- QUORUM_
TYPE - The LLMQ type of the test quorums.
Functions§
- block_
answer block_answer_bythe test quorumQUORUM_HASH.- block_
answer_ by block_answer_ofthe block atheightunder the latest protocol version.- block_
answer_ of - The block an honest node returns from
getBlockswhen asked to prove the block ofheader, which holdstransactions, signed by the test quorumquorum_hash. Start fromheader_ofto give the block another protocol version or Core height. - block_
id_ of - The block id Tenderdash derives from
header. - header_
of - The header of a block at
heightthat holdstransactions, executed under the latest protocol version. - owner_
answer owner_answer_ofthe block atheightunder the latest protocol version.- owner_
answer_ of - What an honest node answers
getOwnerTransactionsInBlockwith when asked to prove the transactions atindexesof the block ofheader, which holdstransactions. The answer lists them in the order ofindexes, each with the paths of its own position. - quorum_
public_ key - The public key of the test quorum
quorum_hash. - sign
- Sign
proofas it stands, as the test quorum it names. - signed_
proof - The proof of the block of
header, signed by the test quorumQUORUM_HASH. - signed_
proof_ by - The proof of the block of
header, signed by the test quorumquorum_hash.
Type Aliases§
- Test
Transaction - A transaction of a test block: its bytes, and the code, data and gas of its result.