Module v1

Source
Expand description

Structures related to Poseidon version 1 parameters.

Structs§

ArcMatrix
Represents an matrix of round constants.
Matrix
Represents a matrix over PrimeField elements.
MdsMatrix
Represents an MDS (maximum distance separable) matrix.
OptimizedArcMatrix
Represents an optimized matrix of round constants.
OptimizedMdsMatrices
Represents an optimized MDS (maximum distance separable) matrix.
PoseidonParameters
A set of Poseidon1 parameters for a given set of input parameters over decaf377::Fq.
RoundNumbers
RoundNumbers required for security based on known attacks.
SquareMatrix
Represents a square matrix over PrimeField elements

Enums§

Alpha
The exponent in Sbox(x) = x^\alpha.

Traits§

MatrixOperations
SquareMatrixOperations
Matrix operations that are defined on square matrices.

Functions§

mat_mul
Multiply two Matrix
square_mat_mul
Multiply two matrices