Skip to content

Commit

Permalink
a print
Browse files Browse the repository at this point in the history
  • Loading branch information
kevjue committed Feb 9, 2024
1 parent 92e532e commit 3a8d172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion poseidon2/src/babybear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ impl<AF: PrimeField32> Permutation<[AF; 16]> for DiffusionMatrixBabybear {
// println!("cycle-tracker-start: permute_mut matmul_internal");

unconstrained! {
let mut new_state: [AF;16] = [AF::default(); 16];
let mut new_state: [AF; 16] = [AF::default(); 16];
new_state.copy_from_slice(state);
matmul_internal::<AF, 16>(&mut new_state, MATRIX_DIAG_16_BABYBEAR);
let bytes = state.map(|x| x.as_canonical_u32().to_le_bytes());
let mut flat_bytes = Vec::new();
for i in 0..16 {
flat_bytes.extend_from_slice(&bytes[i]);
}
println!("flat_bytes len is {:?}", flat_bytes.len());
io::hint_slice(&flat_bytes);
}

Expand Down

0 comments on commit 3a8d172

Please sign in to comment.