chore: remove simple_smt::Store

This commit is contained in:
Augusto F. Hack
2023-03-30 23:23:46 +02:00
parent 49b9029b46
commit f8a62dae76
2 changed files with 33 additions and 63 deletions

View File

@@ -296,7 +296,7 @@ impl MerkleStore {
I: Iterator<Item = (u64, Word)> + ExactSizeIterator,
{
let smt = SimpleSmt::new(depth)?.with_leaves(entries)?;
for branch in smt.store.branches.values() {
for branch in smt.branches.values() {
let parent = Rpo256::merge(&[branch.left, branch.right]);
self.nodes.insert(
parent,