qp-poseidon-constants

Crates.ioqp-poseidon-constants
lib.rsqp-poseidon-constants
version0.0.1
created_at2025-10-30 23:07:38.261926+00
updated_at2025-11-28 10:59:04.83459+00
descriptionPrecomputed Poseidon2 constants for Goldilocks field
homepagehttps://quantus.com
repositoryhttps://github.com/Quantus-Network/qp-poseidon-constants
max_upload_size
id1909100
size52,257
Quantus Network CI (quantus-network-ci)

documentation

README

qp-poseidon-constants

Precomputed Poseidon2 constants for the Goldilocks field with a binary located at build_helpers/extract_constants.rs for extracting the constants and a library for creating a new poseidon2 instance using plonky3 with them.

Basic Usage

use p3_goldilocks::Goldilocks;
use p3_field::integers::QuotientMap;
use qp_poseidon_constants::create_poseidon;

// Create a Poseidon2 instance with precomputed constants
let poseidon = create_poseidon();

// Initialize state with width of 12 field element 
let mut state = [Goldilocks::ZERO; 12];

// Permute the state using Poseidon2
poseidon.permute_mut(&mut state);

NOTE: this crate used to be part of the qp-poseidon repo, but moved to its own repo since version 1.0.2

Commit count: 0

cargo fmt