Skip to main content

Module sponge

Module sponge 

Source

Re-exportsΒ§

use crate::constants::PlonkSpongeConstantsKimchi; πŸ”’
use crate::constants::SpongeConstants; πŸ”’
use crate::poseidon::ArithmeticSponge; πŸ”’
use crate::poseidon::ArithmeticSpongeParams; πŸ”’
use crate::poseidon::Sponge; πŸ”’
use alloc::vec; πŸ”’
use alloc::vec; πŸ”’
use alloc::vec::Vec; πŸ”’
use ark_ec::models::short_weierstrass::Affine; πŸ”’
use ark_ec::models::short_weierstrass::SWCurveConfig; πŸ”’
use ark_ff::BigInteger; πŸ”’
use ark_ff::Field; πŸ”’
use ark_ff::One; πŸ”’
use ark_ff::PrimeField; πŸ”’
use ark_ff::Zero; πŸ”’

ModulesΒ§

caml

StructsΒ§

DefaultFqSponge
DefaultFrSponge
ScalarChallenge
A challenge which is used as a scalar on a group element in the verifier.

ConstantsΒ§

CHALLENGE_LENGTH_IN_LIMBS
Number of 64-bit limbs used to represent a scalar challenge.
HIGH_ENTROPY_LIMBS πŸ”’

TraitsΒ§

FqSponge
Abstracts a sponge operating on a base field Fq of the curve G. The parameter Fr is modelling the scalar field of the curve.

FunctionsΒ§

endo_coefficient
Computes a primitive cube root of unity ΞΎ in the field F.
get_bit πŸ”’
pack πŸ”’