package
0.0.0-20250110235132-9a64979de632
Repository: https://github.com/renegade-fi/golang-sdk.git
Documentation: pkg.go.dev
# Functions
NewPoseidon2Sponge creates a new Poseidon2Sponge instance.
NewPoseidonCSPRNG creates a new PoseidonCSPRNG instance.
# Constants
ALPHA is the constant used to parameterize the S-box in the Poseidon permutation.
CAPACITY is the capacity of the sponge construction layered on the permutation.
nolint:revive.
nolint:revive.
RATE is the rate of the sponge construction layered on the permutation.
WIDTH is the width of the Poseidon permutation's code.
# Structs
Poseidon2Sponge represents a sponge construction on top of the Poseidon2 permutation Modeled after the implementation in: https://github.com/renegade-fi/renegade/blob/main/renegade-crypto/src/hash/poseidon2.rs The original paper can be found at: https://eprint.iacr.org/2023/323.
PoseidonCSPRNG is a CSPRNG based on the Poseidon2 permutation.