Trait kimchi::plonk_sponge::FrSponge
source · pub trait FrSponge<Fr: Field> {
// Required methods
fn new(p: &'static ArithmeticSpongeParams<Fr>) -> Self;
fn absorb(&mut self, x: &Fr);
fn absorb_multiple(&mut self, x: &[Fr]);
fn challenge(&mut self) -> ScalarChallenge<Fr>;
fn digest(self) -> Fr;
fn absorb_evaluations(
&mut self,
e: &ProofEvaluations<PointEvaluations<Vec<Fr>>>
);
}
Expand description
Required Methods§
sourcefn absorb_multiple(&mut self, x: &[Fr])
fn absorb_multiple(&mut self, x: &[Fr])
Absorbs a slice of field elements into the sponge.
sourcefn challenge(&mut self) -> ScalarChallenge<Fr>
fn challenge(&mut self) -> ScalarChallenge<Fr>
Creates a [ScalarChallenge
] by squeezing the sponge.
sourcefn absorb_evaluations(
&mut self,
e: &ProofEvaluations<PointEvaluations<Vec<Fr>>>
)
fn absorb_evaluations( &mut self, e: &ProofEvaluations<PointEvaluations<Vec<Fr>>> )
Absorbs the given evaluations into the sponge.