Skip to main content

Module permutation

Module permutation 

Source
Expand description

The permutation module contains the function implementing the permutation used in Poseidon.

Re-exportsยง

use crate::constants::SpongeConstants; ๐Ÿ”’
use crate::poseidon::sbox; ๐Ÿ”’
use crate::poseidon::ArithmeticSpongeParams; ๐Ÿ”’
use ark_ff::Field; ๐Ÿ”’

Constantsยง

MDS_WIDTH ๐Ÿ”’

Functionsยง

apply_mds_matrix ๐Ÿ”’
full_round ๐Ÿ”’
Apply a full round of the permutation. A full round is composed of the following steps:
half_rounds
poseidon_block_cipher
Run a single instance of the Poseidon permutation.