|
@ -242,6 +242,7 @@ pub fn decompress_point(bb: [u8; 32]) -> Result { |
|
|
// }
|
|
|
// }
|
|
|
|
|
|
|
|
|
fn blh(b: &[u8]) -> Vec<u8> {
|
|
|
fn blh(b: &[u8]) -> Vec<u8> {
|
|
|
|
|
|
println!("TODO: add test that this new blake512 function is giving correct output. Not doing so could have unlikely yet critical implications");
|
|
|
let mut h = Blake2b512::new();
|
|
|
let mut h = Blake2b512::new();
|
|
|
h.update(b);
|
|
|
h.update(b);
|
|
|
let digest = h.finalize();
|
|
|
let digest = h.finalize();
|
|
|