mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-05-13 03:00:26 -04:00
Adjust keccak test.
This commit is contained in:
@@ -13,8 +13,14 @@ pub extern "C" fn main() -> ! {
|
||||
let input = b"Solidity";
|
||||
let mut output = [0u8; 32];
|
||||
let mut hasher = Keccak::v256();
|
||||
//hasher.update(input);
|
||||
hasher.update(input);
|
||||
hasher.finalize(&mut output);
|
||||
// println!("{output:x?}");
|
||||
assert_eq!(
|
||||
output,
|
||||
[
|
||||
96, 41, 143, 120, 204, 11, 71, 23, 11, 167, 156, 16, 170, 56, 81, 215, 100, 139, 217,
|
||||
111, 47, 142, 70, 161, 157, 188, 119, 124, 54, 251, 12, 0,
|
||||
],
|
||||
);
|
||||
loop {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user