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

View Source

Creates an inclusion proof for an event at a given ledger position.

The proof can be used to verify that a specific event is part of the committed event history without requiring access to the full database.

Usage

mix fact.merkle.create_proof -p <path> --position <N>
mix fact.merkle.create_proof -p <path> --position <N> --output proof.json

Options

  • -p, --path - (required) Path to the database directory.
  • --position - (required) The store position of the event to prove.
  • -o, --output - Write the proof as JSON to the given file path. Without this flag the proof is printed in human-readable format.