How to Run

Clone the Repository

cd merkel

Build the Project

Compile the project using Cargo build:

cargo build --release

Execute Commands

  1. 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.

  2. 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.