Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
wrap up
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Nov 10, 2023
1 parent cdf04cf commit 4a3b4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zkevm-circuits/src/keccak_circuit/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ fn verify<F: Field>(k: u32, inputs: Vec<Vec<u8>>, digests: Vec<String>, success:
assert_eq!(inputs.len(), digests.len());
for (input, digest, hash) in izip!(&inputs, &digests, &hash_lookup_table) {
let len = F::from(input.len() as u64);
let di_slice: [u8; 32] = hex::decode(digest).unwrap().try_into().unwrap();
let (lo, hi): (F, F) = Word::from(H256::from(di_slice)).to_lo_hi();
let digest_slice: [u8; 32] = hex::decode(digest).unwrap().try_into().unwrap();
let (lo, hi): (F, F) = Word::from(H256::from(digest_slice)).to_lo_hi();

let expected = (rlc_input(input), len, lo, hi);

Expand Down

0 comments on commit 4a3b4ef

Please sign in to comment.