2021-01-25 18:17:42 +03:00
|
|
|
import core.unstable.blake2s.Blake2s;
|
|
|
|
|
|
|
|
function main(seed: [u8; 32], message: [u8; 32], expected: [u8; 32]) {
|
2021-05-03 22:32:11 +03:00
|
|
|
let actual = Blake2s::hash(seed, message);
|
2021-01-25 18:17:42 +03:00
|
|
|
|
|
|
|
console.assert(expected == actual);
|
|
|
|
}
|