cd merkel
Compile the project using Cargo build:
cargo build --release
-
Generate a Merkle Proof
Generate a Merkle proof for a leaf at a specific position.
cargo run --release -- prove [LEAF_POSITION]
Replace
[LEAF_POSITION]
with the position of the leaf for which you want to generate the Merkle proof. -
Verify a Merkle Proof
Verify the validity of a provided Merkle proof using a proof file.
cargo run --release -- verify [PROOF_FILE]
Replace
[PROOF_FILE]
with the path to the file containing the Merkle proof to be verified.