This repository contains the Solana programs for the solana merkle tree implementation.
cargo-build-sbf
cargo test-sbf
Start the solana localnet
solana-test-validator
Airdrop some sol to your localnet
solana airdrop 100 -u localhost
Build the program
cargo build-sbf
Deploy the program and copy the program id.
solana program deploy ./target/sbf-solana-solana/release/solana_program_mtree.so
Replace the program id with the program id you copied and run program.
cargo run --bin client -- insert-leaf -p ApB1EumsEaq7GsAFXuZKxUhyDwSzT9NfYqwpSfDg8zUc "hello world"