pub struct RecordingTranscript<F: PrimeField, T: Transcript<F>> { /* private fields */ }Expand description
RecordingTranscript wraps a regular transcript to record all challenges
it produces.
Trait Implementations§
Source§impl<F: Clone + PrimeField, T: Clone + Transcript<F>> Clone for RecordingTranscript<F, T>
impl<F: Clone + PrimeField, T: Clone + Transcript<F>> Clone for RecordingTranscript<F, T>
Source§fn clone(&self) -> RecordingTranscript<F, T>
fn clone(&self) -> RecordingTranscript<F, T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: PrimeField, T: Transcript<F>> From<RecordingTranscript<F, T>> for ReplayTranscript<F>
impl<F: PrimeField, T: Transcript<F>> From<RecordingTranscript<F, T>> for ReplayTranscript<F>
Source§fn from(value: RecordingTranscript<F, T>) -> Self
fn from(value: RecordingTranscript<F, T>) -> Self
Converts to this type from the input type.
Source§impl<F: PrimeField, T: Transcript<F>> Transcript<F> for RecordingTranscript<F, T>
impl<F: PrimeField, T: Transcript<F>> Transcript<F> for RecordingTranscript<F, T>
Source§type Config = T
type Config = T
Transcript::Config is the configuration for the underlying hash
function of the transcript.Source§type Gadget = RecordingTranscriptVar<F, <T as Transcript<F>>::Gadget>
type Gadget = RecordingTranscriptVar<F, <T as Transcript<F>>::Gadget>
Transcript::Gadget is the in-circuit gadget corresponding to this
widget.Source§fn new(inner: Self::Config) -> Self
fn new(inner: Self::Config) -> Self
Transcript::new creates a new transcript / sponge under the given
configuration config.Source§fn add_field_elements(&mut self, input: &[F]) -> &mut Self
fn add_field_elements(&mut self, input: &[F]) -> &mut Self
Transcript::add_field_elements absorbs a message input that is
represented as field elements into the transcript / sponge.Source§fn get_field_elements(&mut self, num_elements: usize) -> Vec<F>
fn get_field_elements(&mut self, num_elements: usize) -> Vec<F>
Transcript::get_field_elements squeezes num_elements field
elements from the transcript / sponge.Source§fn new_with_pp_hash(config: Self::Config, pp_hash: F) -> Self
fn new_with_pp_hash(config: Self::Config, pp_hash: F) -> Self
Transcript::new_with_pp_hash is a convenience method for creating a
new transcript / sponge under the given configuration config and
additionally absorbing a hash of the public parameters pp_hash.Source§fn add<A: Absorbable + ?Sized>(&mut self, input: &A) -> &mut Self
fn add<A: Absorbable + ?Sized>(&mut self, input: &A) -> &mut Self
Transcript::add absorbs a message input that can be any type
implementing the Absorbable trait into the transcript / sponge.Source§fn get_bits(&mut self, num_bits: usize) -> Vec<bool>
fn get_bits(&mut self, num_bits: usize) -> Vec<bool>
Transcript::get_bits squeezes num_bits bits from the transcript /
sponge.Source§fn get_field_element(&mut self) -> F
fn get_field_element(&mut self) -> F
Transcript::get_field_element squeezes a single field element from
the transcript / sponge.Source§fn separate_domain(&self, domain: &[u8]) -> Self
fn separate_domain(&self, domain: &[u8]) -> Self
Transcript::separate_domain creates a new transcript / sponge by
applying domain separation using the provided domain byte sequence.Source§fn challenge_field_element(&mut self) -> F
fn challenge_field_element(&mut self) -> F
Transcript::challenge_field_element squeezes a challenge from the
transcript as a field element. Read moreSource§fn challenge_bits(&mut self, num_bits: usize) -> Vec<bool>
fn challenge_bits(&mut self, num_bits: usize) -> Vec<bool>
Transcript::challenge_bits squeezes a challenge from the transcript
as a bit vector. Read moreSource§fn challenge_field_elements(&mut self, n: usize) -> Vec<F>
fn challenge_field_elements(&mut self, n: usize) -> Vec<F>
Transcript::challenge_field_elements squeezes n challenges from
the transcript as field elements. Read moreAuto Trait Implementations§
impl<F, T> Freeze for RecordingTranscript<F, T>where
T: Freeze,
impl<F, T> RefUnwindSafe for RecordingTranscript<F, T>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, T> Send for RecordingTranscript<F, T>where
T: Send,
impl<F, T> Sync for RecordingTranscript<F, T>where
T: Sync,
impl<F, T> Unpin for RecordingTranscript<F, T>
impl<F, T> UnsafeUnpin for RecordingTranscript<F, T>where
T: UnsafeUnpin,
impl<F, T> UnwindSafe for RecordingTranscript<F, T>where
T: UnwindSafe,
F: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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