10 Commits

Author SHA1 Message Date
90f31ef641 Fix warnings and deprecation notices 2020-07-09 23:10:10 +02:00
c5f9ea9136 Fix benchmarks 2019-07-23 15:11:21 +02:00
c65560d9f4 Fix clippy warnings and disable benchmarks temporarily 2019-07-23 15:11:21 +02:00
5e3ed116f1 Rustfmt 2018-05-15 18:17:36 +02:00
958c8c8353 Formatting. 2017-09-24 13:10:40 +02:00
bce59c9f39 Separate the leafs hash domain from the internal nodes' one (#22)
* Separate the leafs hash domain from the internal nodes' one.

This change prevents an internal node from having the same hash as a leaf,
and thus from potentially ending up with two different trees with the same root hash.

Close #20

* Align with the CT spec, and allows building a tree from an empty dataset.

Fixes #20. Prepares #24.
2016-12-19 16:14:41 +01:00
a1968efbfc Implement Iterator and IntoIterator for MerkleTree. 2016-12-02 16:39:00 +01:00
4503258724 Port to ring. (#15) 2016-11-29 21:38:47 +01:00
e621241f2f Removing MerkleTree::from_vec_unsafe. (#13)
We can leave it up to the developer to implement the unwrap behaviour.
2016-11-24 10:06:10 +01:00
60ec820139 Add a few benchmarks (#6) 2016-11-22 21:53:34 +01:00