Rename canonical_hash to `hash

This commit is contained in:
Paul Hauner
2019-01-25 17:40:22 +11:00
parent 73d86bcc3b
commit f9acc42aca
11 changed files with 22 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
use hashing::canonical_hash;
use hashing::hash;
const SSZ_CHUNK_SIZE: usize = 128;
const HASHSIZE: usize = 32;
@@ -64,10 +64,6 @@ fn list_to_blob(list: &mut Vec<Vec<u8>>) -> (usize, Vec<u8>) {
(chunk_size, data)
}
pub fn hash(data: &[u8]) -> Vec<u8> {
canonical_hash(data)
}
#[cfg(test)]
mod tests {
use super::*;