singular_state_proof_fixtures

Shared synthetic proof fixtures for retained validator tests.

Constants

absentLeaf: ByteArray = #"00"

The synthetic absence encoding used by the tests.

terminalLeaf: ByteArray = #"02"

The synthetic terminal encoding used by the tests.

Functions

leafStep(
  otherKey: ByteArray,
  otherValue: ByteArray,
  myKey: ByteArray,
) -> ProofStep

Construct a test step from the explicit keys and value.

branchStep(entries: List<(Int, ByteArray)>, myKey: ByteArray) -> ProofStep

Construct a test branch step from explicit slot digests.

slotOf(key: ByteArray, value: ByteArray) -> (Int, ByteArray)

Derive a test slot entry from an explicit key and value.

Search Document