Commit Graph

17 Commits

Author SHA1 Message Date
6634a824c5 Add README, LICENSE, and setup Travis. 2016-11-11 14:09:55 +01:00
e509b5ac15 Remove type bounds on MerkleTree struct. 2016-11-11 00:31:28 +01:00
14571085f6 Fix tree construction.
Nodes were popped instead of being removed from the head of the vector.
2016-11-10 22:44:17 +01:00
226ec93b1a Fix tests. Still failing but now they're right. 2016-11-10 22:43:28 +01:00
7f7059ad99 Add ugliest tests ever. 2016-11-10 21:55:59 +01:00
039c03b7dc Add height, count and root_hash to MerkleTree. 2016-11-10 21:55:41 +01:00
8d5a13edda Use Vecs instead of slices in MerkleDigest. 2016-11-10 21:54:17 +01:00
d7f2b6a043 Move make_hash and combine_hashes into a trait with an impl for Digest. 2016-11-10 14:59:10 +01:00
a30b4ac75c Reverse Vec and use pop() instead of remove(0) for effiency. 2016-11-10 14:42:45 +01:00
60d3158619 Rewrite MerkleTree::from_vec without iterators, to avoid having to copy the whole world. 2016-11-10 14:31:43 +01:00
de38c3b7c2 Cleanup 2016-11-09 03:00:18 +01:00
a0b6546a1c First attempt at building a tree from a list of values. 2016-11-09 01:58:39 +01:00
c9411fdbd5 cut down all the trees 2016-11-09 01:27:14 +01:00
336370b61d Clone wars 2016-11-09 01:24:31 +01:00
7fbfff165e WIP 2016-11-09 01:03:12 +01:00
673f5e6c24 wip 2016-11-08 23:19:31 +01:00
9863803b2f Initial commit 2016-11-08 21:30:07 +01:00