Merkle Tree to calculate Root.
Suppert Two Way:
```rust use rcmerkle::{BetterMerkleTreeSHA256, Hash, MerkleTreeSHA256, SHA256};
let list = [
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n",
];
let hashedlist: Vec
let mut better_merkle = BetterMerkleTreeSHA256::new();
for i in 0..hashedlist.len() { let root1 = MerkleTreeSHA256::root(hashedlist[0..i + 1].tovec()); let root2 = bettermerkle.root(hashedlist[i].clone()); asserteq!(root1, root2); } ```
This project is licensed under either of
at your option.