now using the Hashtree macro for most struct types

This commit is contained in:
mjkeating
2019-02-22 13:07:04 -08:00
parent e9f4cc134e
commit f95a0134e6
26 changed files with 110 additions and 363 deletions

View File

@@ -32,6 +32,12 @@ impl TreeHash for usize {
}
}
impl TreeHash for bool {
fn hash_tree_root_internal(&self) -> Vec<u8> {
ssz_encode(self)
}
}
impl TreeHash for Address {
fn hash_tree_root_internal(&self) -> Vec<u8> {
ssz_encode(self)