Skip to content

Commit

Permalink
Multiproof with tree trait (#44)
Browse files Browse the repository at this point in the history
* Turn insert_leaf into self.insert + add tree trait

* First attempt at implementing the iterator

* Attempt at rewrite

* Rewrite iterator so that it works

* Move `trait Tree` to its own module
Also, set the number of children reported by Node::Branch to 16 instead
of the number of non-empty nodes.

* Remove insert_leaf and associated code duplication

* multiproof generation independent from tree type

* Fix test build

* Fix cargo build

* Fix unit tests

This commit effectively makes the parameter in LEAF() obsolete,
because it is assumed that the leaf only contains the label that
it needs.
  • Loading branch information
gballet authored Nov 30, 2019
1 parent f04ecda commit 38a3619
Show file tree
Hide file tree
Showing 6 changed files with 944 additions and 687 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ edition = "2018"
[dependencies]
sha3 = "0.8.2"
rlp = "0.4.2"
hex = "0.3.2"
hex = "0.4.0"
serde_json = "1.0.40"

[dev-dependencies]
hex = "0.3.2"
Loading

0 comments on commit 38a3619

Please sign in to comment.