Skip to main content

Module test_vectors

Module test_vectors 

Source
Expand description

Deterministic test vectors for the transparency log.

Generates reproducible Merkle tree fixtures with known-good roots and inclusion proofs. Used for:

  • Cross-implementation compatibility testing
  • Regression detection
  • Binding verification (Ruby, Python, WASM, Go)

Structs§

InclusionProofJson
JSON-serializable inclusion proof.
ProofStepJson
JSON-serializable proof step.
TestVector
A single test vector entry.

Functions§

generate_suite
Generate a suite of test vectors for common tree sizes.
generate_vector
Generate a test vector for a tree with n entries.
suite_to_json
Serialize a test vector suite to JSON.
verify_vector
Verify a test vector against the current MerkleTree implementation. Returns Ok(()) if all proofs verify, Err with details otherwise.