miden-crypto/src/merkle
Victor Lopez 84086bdb95
feat: add merkle path containers and return them on tree update
Returning tuples is often confusing as they don't convey meaning and it
should be used only when there is no possible ambiguity.

For `MerkleStore`, we had a couple of tuples being returned, and reading
the implementation was required in order to distinguish if they were
leaf values or computed roots.

This commit introduces two containers that will self-document these
returns: `RootPath` and `ValuePath`. It will also update `set_node` to
return both the new root & the new path, so we can prevent duplicated
traversals downstream when updating a node (one to update, the second to
fetch the new path/root).
2023-03-21 20:45:01 +01:00
..
mmr feat: merkle mountain range 2023-03-02 13:07:55 +01:00
simple_smt feat: add merkle store 2023-03-15 17:34:42 +01:00
store feat: add merkle path containers and return them on tree update 2023-03-21 20:45:01 +01:00
empty_roots.rs feat: refactor simple smt to use empty subtree constants 2023-03-07 20:44:42 +01:00
index.rs feat: add merkle store 2023-03-15 17:34:42 +01:00
merkle_tree.rs feat: add merkle store 2023-03-15 17:34:42 +01:00
mod.rs feat: add merkle path containers and return them on tree update 2023-03-21 20:45:01 +01:00
path.rs feat: add merkle path containers and return them on tree update 2023-03-21 20:45:01 +01:00
path_set.rs fix: merkle store panics on bounds 2023-03-18 02:20:11 +01:00