pub struct TranscriptWriter<Challenger> { /* private fields */ }
Expand description
Writable(Prover) transcript over some Challenger that CanWrite
and CanSample<F: TowerField>
A Transcript is an abstraction over Fiat-Shamir so the prover and verifier can send and receive data, everything that gets written to or read from the transcript will be observed
Implementations§
source§impl<Challenger: Default> TranscriptWriter<Challenger>
impl<Challenger: Default> TranscriptWriter<Challenger>
pub fn new() -> Self
pub fn finalize(self) -> Vec<u8> ⓘ
pub fn into_reader(self) -> TranscriptReader<Challenger>
Trait Implementations§
source§impl<P, Challenger_> CanObserve<MerkleCap<P>> for TranscriptWriter<Challenger_>
impl<P, Challenger_> CanObserve<MerkleCap<P>> for TranscriptWriter<Challenger_>
source§impl<P, Challenger_> CanObserve<P> for TranscriptWriter<Challenger_>
impl<P, Challenger_> CanObserve<P> for TranscriptWriter<Challenger_>
source§impl<F, Challenger_> CanSample<F> for TranscriptWriter<Challenger_>where
F: TowerField,
Challenger_: Challenger,
impl<F, Challenger_> CanSample<F> for TranscriptWriter<Challenger_>where
F: TowerField,
Challenger_: Challenger,
source§impl<Challenger_> CanSampleBits<usize> for TranscriptWriter<Challenger_>where
Challenger_: Challenger,
impl<Challenger_> CanSampleBits<usize> for TranscriptWriter<Challenger_>where
Challenger_: Challenger,
fn sample_bits(&mut self, bits: usize) -> usize
source§impl<Challenger_: Challenger> CanWrite for TranscriptWriter<Challenger_>
impl<Challenger_: Challenger> CanWrite for TranscriptWriter<Challenger_>
fn write_bytes(&mut self, data: &[u8])
fn write_scalar_slice<F: TowerField>(&mut self, elems: &[F])
fn write_scalar<F: TowerField>(&mut self, f: F)
fn write_packed<P: PackedField<Scalar: TowerField>>(&mut self, packed: P)
source§impl<Challenger: Debug> Debug for TranscriptWriter<Challenger>
impl<Challenger: Debug> Debug for TranscriptWriter<Challenger>
source§impl<Challenger: Default> Default for TranscriptWriter<Challenger>
impl<Challenger: Default> Default for TranscriptWriter<Challenger>
source§fn default() -> TranscriptWriter<Challenger>
fn default() -> TranscriptWriter<Challenger>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<Challenger> Freeze for TranscriptWriter<Challenger>where
Challenger: Freeze,
impl<Challenger> RefUnwindSafe for TranscriptWriter<Challenger>where
Challenger: RefUnwindSafe,
impl<Challenger> Send for TranscriptWriter<Challenger>where
Challenger: Send,
impl<Challenger> Sync for TranscriptWriter<Challenger>where
Challenger: Sync,
impl<Challenger> Unpin for TranscriptWriter<Challenger>where
Challenger: Unpin,
impl<Challenger> UnwindSafe for TranscriptWriter<Challenger>where
Challenger: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more