merkrs
A Rust Merkle tree library compatible with OpenZeppelin's JavaScript implementation.
Features
- [
StandardMerkleTree] — ABI-encoded Solidity values with double leaf hashing - [
SimpleMerkleTree] — raw[u8; 32]values with single leaf hashing - Single-leaf and multi-proof generation / verification
- Serialisation compatible with the OZ JavaScript
standard-v1/simple-v1formats - Keccak-256 hashing (Ethereum compatible)
Quick start
use ;
let values: = vec!;
let tree = new.unwrap;
let proof = tree.proof.unwrap;
assert!;