Reduced tree encode/decode (#624)

* Fix custom derive macros

* Add `ReducedTreeSsz` to encode/decode `ReducedTree` to/from bytes

* Add test for bytes conversion

* Improve error handling

* Improve conversion functions

* Remove unnecessary modifiers

* Address Paul's review comments
This commit is contained in:
Pawan Dhananjay
2019-11-29 07:51:31 +05:30
committed by Paul Hauner
parent a310292712
commit 3a05c6f924
3 changed files with 119 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ parking_lot = "0.9.0"
store = { path = "../../beacon_node/store" }
types = { path = "../types" }
itertools = "0.8.1"
eth2_ssz = "0.1.2"
eth2_ssz_derive = "0.1.0"
[dev-dependencies]
criterion = "0.3.0"