Begin implementing cached hashing in types

This commit is contained in:
Paul Hauner
2019-04-26 15:24:18 +10:00
parent ecff8f0007
commit f65e981f6f
41 changed files with 590 additions and 47 deletions

View File

@@ -52,7 +52,7 @@ impl TreeHash for bool {
impl TreeHash for [u8; 4] {
fn tree_hash_type() -> TreeHashType {
TreeHashType::List
TreeHashType::Vector
}
fn tree_hash_packed_encoding(&self) -> Vec<u8> {