snark_verifier::util::transcript

Trait TranscriptRead

Source
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§

Source

fn read_scalar(&mut self) -> Result<L::LoadedScalar, Error>

Read a scalar.

Source

fn read_ec_point(&mut self) -> Result<L::LoadedEcPoint, Error>

Read a elliptic curve point.

Provided Methods§

Source

fn read_n_scalars(&mut self, n: usize) -> Result<Vec<L::LoadedScalar>, Error>

Read n scalar.

Source

fn read_n_ec_points(&mut self, n: usize) -> Result<Vec<L::LoadedEcPoint>, Error>

Read n elliptic curve point.

Implementations on Foreign Types§

Source§

impl<C: CurveAffine, R: Read> TranscriptRead<C, NativeLoader> for Blake2bRead<R, C, Challenge255<C>>
where C::Scalar: FromUniformBytes<64>,

Source§

fn read_scalar(&mut self) -> Result<C::Scalar, Error>

Source§

fn read_ec_point(&mut self) -> Result<C, Error>

Implementors§

Source§

impl<C> TranscriptRead<C, Rc<EvmLoader>> for EvmTranscript<C, Rc<EvmLoader>, usize, MemoryChunk>
where C: CurveAffine, C::Scalar: PrimeField<Repr = [u8; 32]>,

Source§

impl<C, R, EccChip, const T: usize, const RATE: usize, const R_F: usize, const R_P: usize> TranscriptRead<C, Rc<Halo2Loader<C, EccChip>>> for PoseidonTranscript<C, Rc<Halo2Loader<C, EccChip>>, R, T, RATE, R_F, R_P>
where C: CurveAffine, R: Read, EccChip: NativeEncoding<C>,

Source§

impl<C, R, const T: usize, const RATE: usize, const R_F: usize, const R_P: usize> TranscriptRead<C, NativeLoader> for PoseidonTranscript<C, NativeLoader, R, T, RATE, R_F, R_P>
where C: CurveAffine, R: Read,

Source§

impl<C, S> TranscriptRead<C, NativeLoader> for EvmTranscript<C, NativeLoader, S, Vec<u8>>
where C: CurveAffine, C::Scalar: PrimeField<Repr = [u8; 32]>, S: Read,