mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-08 08:43:06 +00:00
Comment for KeccakPermutation
This commit is contained in:
parent
df2b6e76b7
commit
77a2fc6100
@ -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] {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user