Closed axic closed 5 years ago
make_multiproof and insert_leaf make sense if the Node is root, I'm not sure about rebuild though.
make_multiproof
insert_leaf
rebuild
Alternative: add a Trie struct which has root: Node and define make_multiproof and insert_leaf on that?
Trie
root: Node
Redundant with #8 #9 #10, closing
@s1na why wouldn't rebuild make sense?
Node::rebuild_from_multiproof(&multiproof) -> Node, just like the ::new function.
Node::rebuild_from_multiproof(&multiproof) -> Node
::new
@axic that'll work, you're right
make_multiproof
andinsert_leaf
make sense if the Node is root, I'm not sure aboutrebuild
though.Alternative: add a
Trie
struct which hasroot: Node
and definemake_multiproof
andinsert_leaf
on that?