pub trait Transcript<C, L>where
C: CurveAffine,
L: Loader<C>,{
// Required methods
fn loader(&self) -> &L;
fn squeeze_challenge(&mut self) -> L::LoadedScalar;
fn common_ec_point(
&mut self,
ec_point: &L::LoadedEcPoint,
) -> Result<(), Error>;
fn common_scalar(&mut self, scalar: &L::LoadedScalar) -> Result<(), Error>;
// Provided method
fn squeeze_n_challenges(&mut self, n: usize) -> Vec<L::LoadedScalar> { ... }
}
Expand description
Common methods for prover and verifier.
Required Methods§
Sourcefn squeeze_challenge(&mut self) -> L::LoadedScalar
fn squeeze_challenge(&mut self) -> L::LoadedScalar
Squeeze a challenge.
Sourcefn common_ec_point(&mut self, ec_point: &L::LoadedEcPoint) -> Result<(), Error>
fn common_ec_point(&mut self, ec_point: &L::LoadedEcPoint) -> Result<(), Error>
Update with an elliptic curve point.
Sourcefn common_scalar(&mut self, scalar: &L::LoadedScalar) -> Result<(), Error>
fn common_scalar(&mut self, scalar: &L::LoadedScalar) -> Result<(), Error>
Update with a scalar.
Provided Methods§
Sourcefn squeeze_n_challenges(&mut self, n: usize) -> Vec<L::LoadedScalar>
fn squeeze_n_challenges(&mut self, n: usize) -> Vec<L::LoadedScalar>
Squeeze n
challenges.