Comment for KeccakPermutation

This commit is contained in:
wborgeaud 2021-12-29 16:58:31 +01:00
parent df2b6e76b7
commit 77a2fc6100

View File

@ -6,6 +6,8 @@ use crate::plonk::config::Hasher;
use crate::util::serialization::Buffer;
/// Keccak-256 permutation used in the challenger.
/// A state `input: [F; 12]` is sent to the field representation of `H(input) || H(H(input)) || H(H(H(input)))`
/// where `H` is the Keccak-256 hash.
pub struct KeccakPermutation;
impl<F: RichField> PlonkyPermutation<F> for KeccakPermutation {
fn permute(input: [F; SPONGE_WIDTH]) -> [F; SPONGE_WIDTH] {