pub trait TranscriptRead<C, L>: Transcript<C, L>where
C: CurveAffine,
L: Loader<C>,{
// Required methods
fn read_scalar(&mut self) -> Result<L::LoadedScalar, Error>;
fn read_ec_point(&mut self) -> Result<L::LoadedEcPoint, Error>;
// Provided methods
fn read_n_scalars(
&mut self,
n: usize,
) -> Result<Vec<L::LoadedScalar>, Error> { ... }
fn read_n_ec_points(
&mut self,
n: usize,
) -> Result<Vec<L::LoadedEcPoint>, Error> { ... }
}
Expand description
Transcript for verifier.
Required Methods§
Sourcefn read_scalar(&mut self) -> Result<L::LoadedScalar, Error>
fn read_scalar(&mut self) -> Result<L::LoadedScalar, Error>
Read a scalar.
Sourcefn read_ec_point(&mut self) -> Result<L::LoadedEcPoint, Error>
fn read_ec_point(&mut self) -> Result<L::LoadedEcPoint, Error>
Read a elliptic curve point.
Provided Methods§
Sourcefn read_n_scalars(&mut self, n: usize) -> Result<Vec<L::LoadedScalar>, Error>
fn read_n_scalars(&mut self, n: usize) -> Result<Vec<L::LoadedScalar>, Error>
Read n
scalar.
Sourcefn read_n_ec_points(&mut self, n: usize) -> Result<Vec<L::LoadedEcPoint>, Error>
fn read_n_ec_points(&mut self, n: usize) -> Result<Vec<L::LoadedEcPoint>, Error>
Read n
elliptic curve point.