mix fact.merkle.verify_proof (Fact v0.3.1)

View Source

Verifies an MMR inclusion proof from a JSON file.

This task does not require access to the database. It reads a proof previously exported by mix fact.merkle.create_proof --output proof.json, recomputes the hash path from the leaf through the sibling hashes, and checks that the result matches one of the peaks. This allows an auditor to independently confirm that an event is part of the committed history.

Usage

mix fact.merkle.verify_proof --proof proof.json

Options

  • --proof - (required) Path to the JSON proof file produced by mix fact.merkle.create_proof -o.