Merge branch 'master' into lmd-ghost

This commit is contained in:
Paul Hauner
2019-01-25 17:23:14 +11:00
37 changed files with 802 additions and 36 deletions

View File

@@ -1,4 +1,3 @@
use ssz::{ssz_encode, Encodable as SszEncodable};
use tiny_keccak::Keccak;
pub fn canonical_hash(input: &[u8]) -> Vec<u8> {
@@ -9,10 +8,6 @@ pub fn canonical_hash(input: &[u8]) -> Vec<u8> {
result
}
pub fn hash_tree_root<T: SszEncodable>(input: &T) -> Vec<u8> {
canonical_hash(&ssz_encode(input))
}
#[cfg(test)]
mod tests {
use super::*;