Skip to content

A Merkle Proof Generator for validating a list of inputs. Used for swap verification in Bloom Protocol.

Notifications You must be signed in to change notification settings

0xSpraggins/merkle-proof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merkle Proof Generator | Rust

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.

Usage

  1. Clone the repository
git clone https://github.com/0xSpraggins/merkle-proof.git
  1. Install Dependencies
cargo build
  1. 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.

  2. Run the script

cargo run
  1. 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 the whitelist.txt file.

Dependencies

Help

For any questions or concerns, please reach out on Telegram: @baileyspraggins or twitter/x: @0xSpraggins

About

A Merkle Proof Generator for validating a list of inputs. Used for swap verification in Bloom Protocol.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages