Both JSON and SCALE formats conform to the specified ASN.1 schema provided here.
While the origin of the input data is irrelevant for these test vectors and has been randomly generated, it is important to outline the semantics of each input, as they play a crucial role in updating the state.
-
header_hash
: The hash of the current block header being processed. -
parent_state_root
($H_r$ ): The state root of the parent block, as found in the current block header. -
accumulate_root
: The Merkle root resulting from the accumulation process. -
work_packages
: A sequence of work package hashes.
The tests presented here are relatively straightforward, with the most
significant aspect being the MMR (Merkle Mountain Range) update, which relies on
the input accumulate_root
.
-
- Empty history queue.
-
- Not empty nor full history queue.
-
- Fill the history queue.
-
- Shift the history queue.