Repot and fix a ser/de bug.

This commit is contained in:
Gav
2018-01-27 19:52:24 +01:00
parent f82e30bac3
commit 5b337e3a9c
20 changed files with 713 additions and 533 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ pub fn twox_256(data: &[u8]) -> [u8; 32] {
result
}
/// Conduct two XX hashes to give a 256-bit result.
/// Conduct two XX hashes to give a 128-bit result.
pub fn twox_128(data: &[u8]) -> [u8; 16] {
let mut result: [u8; 16] = Default::default();
// guaranteed to write into result.