Expand description
The prime field known as Goldilocks, defined as F_p where p = 2^64 - 2^32 + 1.
Modules§
- poseidon1
- Poseidon1 permutation for Goldilocks.
Structs§
- Generic
Poseidon2 Linear Layers Goldilocks - An implementation of the matrix multiplications in the internal and external layers of Poseidon2.
- Goldilocks
- The prime field known as Goldilocks, defined as
F_pwherep = 2^64 - 2^32 + 1. - MdsMatrix
Goldilocks - Poseidon2
External Layer Goldilocks - The external layers of the Poseidon2 permutation.
- Poseidon2
Internal Layer Goldilocks - The internal layers of the Poseidon2 permutation.
- Small
Convolve Goldilocks - Instantiate convolution for “small” RHS vectors over Goldilocks.
Constants§
- GOLDILOCKS_
POSEIDO N2_ HALF_ FULL_ ROUNDS - Number of full rounds per half for Goldilocks Poseidon2 (
RF / 2). - GOLDILOCKS_
POSEIDO N2_ PARTIAL_ ROUNDS_ 8 - Number of partial rounds for Goldilocks Poseidon2 (width 8).
- GOLDILOCKS_
POSEIDO N2_ PARTIAL_ ROUNDS_ 12 - Number of partial rounds for Goldilocks Poseidon2 (width 12).
- GOLDILOCKS_
POSEIDO N2_ RC_ 8_ EXTERNAL_ FINAL - Round constants for width-8 Poseidon2 on Goldilocks.
- GOLDILOCKS_
POSEIDO N2_ RC_ 8_ EXTERNAL_ INITIAL - Round constants for width-8 Poseidon2 on Goldilocks.
- GOLDILOCKS_
POSEIDO N2_ RC_ 8_ INTERNAL - Round constants for width-8 Poseidon2 on Goldilocks.
- GOLDILOCKS_
POSEIDO N2_ RC_ 12_ EXTERNAL_ FINAL - Round constants for width-12 Poseidon2 on Goldilocks.
- GOLDILOCKS_
POSEIDO N2_ RC_ 12_ EXTERNAL_ INITIAL - Round constants for width-12 Poseidon2 on Goldilocks.
- GOLDILOCKS_
POSEIDO N2_ RC_ 12_ INTERNAL - Round constants for width-12 Poseidon2 on Goldilocks.
- MATRIX_
CIRC_ MDS_ 8_ COL - First column of the circulant MDS matrix for width 8, derived from the first row.
- MATRIX_
CIRC_ MDS_ 12_ COL - First column of the circulant MDS matrix for width 12, derived from the first row.
- MATRIX_
DIAG_ 8_ GOLDILOCKS - MATRIX_
DIAG_ 12_ GOLDILOCKS - MATRIX_
DIAG_ 16_ GOLDILOCKS - MATRIX_
DIAG_ 20_ GOLDILOCKS
Functions§
- default_
goldilocks_ poseidon2_ 8 - Create a default width-8 Poseidon2 permutation for Goldilocks.
- default_
goldilocks_ poseidon2_ 12 - Create a default width-12 Poseidon2 permutation for Goldilocks.
Type Aliases§
- Poseidon2
Goldilocks - An implementation of the Poseidon2 hash function for the Goldilocks field.