An easy to use script to generate merkle proofs for an list of elements. This script is written in Rust utilizing Alloy's Merkle Tree Crate. It is currently used in production to generate Merkle Proofs for Market Makers and Borrowers who participate in swapping USDC for ib01 tokens on Bloom Protocol.
- Clone the repository
git clone https://github.com/0xSpraggins/merkle-proof.git
- Install Dependencies
cargo build
-
Update the
whitelist.txt
file with the list of elements you want to generate Merkle Proofs for. Each element should be on a new line. -
Run the script
cargo run
- The script will generate a
merkleData.json
file in the output directory of the project. This file will contain the Merkle Root and the Merkle Proof for each element in thewhitelist.txt
file.
For any questions or concerns, please reach out on Telegram: @baileyspraggins or twitter/x: @0xSpraggins