Skip to content

Commit

Permalink
read_hint_slice
Browse files Browse the repository at this point in the history
kevjue committed Feb 9, 2024
1 parent 3a8d172 commit f924861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poseidon2/src/babybear.rs
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ impl<AF: PrimeField32> Permutation<[AF; 16]> for DiffusionMatrixBabybear {
}

let mut bytes: [u8; 64] = [0; 64];
io::read_slice(&mut bytes);
io::read_hint_slice(&mut bytes);
let ret = bytes.chunks(4).map(|chunk| AF::from_canonical_u32(u32::from_le_bytes(chunk.try_into().unwrap()))).collect::<Vec<AF>>();
for i in 0..16 {
state[i] = ret[i];

0 comments on commit f924861

Please sign in to comment.