mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 21:38:31 +00:00
Rename canonical_hash to `hash
This commit is contained in:
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user