pub struct RecordingTranscriptVar<F: PrimeField, T: TranscriptGadget<F>> { /* private fields */ }Expand description
RecordingTranscriptVar is the in-circuit variable of RecordingTranscript.
Trait Implementations§
Source§impl<F: Clone + PrimeField, T: Clone + TranscriptGadget<F>> Clone for RecordingTranscriptVar<F, T>
impl<F: Clone + PrimeField, T: Clone + TranscriptGadget<F>> Clone for RecordingTranscriptVar<F, T>
Source§fn clone(&self) -> RecordingTranscriptVar<F, T>
fn clone(&self) -> RecordingTranscriptVar<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: TranscriptGadget<F>> From<RecordingTranscriptVar<F, T>> for ReplayTranscriptVar<F>
impl<F: PrimeField, T: TranscriptGadget<F>> From<RecordingTranscriptVar<F, T>> for ReplayTranscriptVar<F>
Source§fn from(value: RecordingTranscriptVar<F, T>) -> Self
fn from(value: RecordingTranscriptVar<F, T>) -> Self
Converts to this type from the input type.
Source§impl<F: PrimeField, T: TranscriptGadget<F>> TranscriptGadget<F> for RecordingTranscriptVar<F, T>
impl<F: PrimeField, T: TranscriptGadget<F>> TranscriptGadget<F> for RecordingTranscriptVar<F, T>
Source§type Config = T
type Config = T
TranscriptGadget::Config is the configuration for the underlying
hash function of the transcript gadget.Source§type Widget = RecordingTranscript<F, <T as TranscriptGadget<F>>::Widget>
type Widget = RecordingTranscript<F, <T as TranscriptGadget<F>>::Widget>
TranscriptGadget::Widget points to the out-of-circuit widget for
this transcript gadget.Source§fn new(inner: Self::Config) -> Self
fn new(inner: Self::Config) -> Self
TranscriptGadget::new creates a new transcript / sponge variable
under the given configuration config.Source§fn add<A: AbsorbableVar<F>>(
&mut self,
input: &A,
) -> Result<&mut Self, SynthesisError>
fn add<A: AbsorbableVar<F>>( &mut self, input: &A, ) -> Result<&mut Self, SynthesisError>
TranscriptGadget::add absorbs a message input that can be any type
implementing the AbsorbableVar trait into the transcript / sponge
variable.Source§fn get_field_elements(
&mut self,
num_elements: usize,
) -> Result<Vec<FpVar<F>>, SynthesisError>
fn get_field_elements( &mut self, num_elements: usize, ) -> Result<Vec<FpVar<F>>, SynthesisError>
TranscriptGadget::get_field_elements squeezes num_elements field
element variables from the transcript / sponge variable.Source§fn new_with_pp_hash(
config: Self::Config,
pp_hash: &FpVar<F>,
) -> Result<Self, SynthesisError>
fn new_with_pp_hash( config: Self::Config, pp_hash: &FpVar<F>, ) -> Result<Self, SynthesisError>
TranscriptGadget::new_with_pp_hash is a convenience method for
creating a new transcript / sponge variable under the given
configuration config and additionally absorbing a hash of the public
parameters pp_hash.Source§fn get_bits(
&mut self,
num_bits: usize,
) -> Result<Vec<Boolean<F>>, SynthesisError>
fn get_bits( &mut self, num_bits: usize, ) -> Result<Vec<Boolean<F>>, SynthesisError>
TranscriptGadget::get_bits squeezes num_bits bit variables from
the transcript / sponge variable.Source§fn get_field_element(&mut self) -> Result<FpVar<F>, SynthesisError>
fn get_field_element(&mut self) -> Result<FpVar<F>, SynthesisError>
TranscriptGadget::get_field_element squeezes a single field element
variable from the transcript / sponge variable.Source§fn separate_domain(&self, domain: &[u8]) -> Result<Self, SynthesisError>
fn separate_domain(&self, domain: &[u8]) -> Result<Self, SynthesisError>
TranscriptGadget::separate_domain creates a new transcript / sponge
variable by applying domain separation using the provided domain byte
sequence.Source§fn challenge_field_element(&mut self) -> Result<FpVar<F>, SynthesisError>
fn challenge_field_element(&mut self) -> Result<FpVar<F>, SynthesisError>
TranscriptGadget::challenge_field_element squeezes a challenge from
the transcript variable as a field element variable. Read moreSource§fn challenge_bits(
&mut self,
num_bits: usize,
) -> Result<Vec<Boolean<F>>, SynthesisError>
fn challenge_bits( &mut self, num_bits: usize, ) -> Result<Vec<Boolean<F>>, SynthesisError>
TranscriptGadget::challenge_bits squeezes a challenge from the
transcript variable as a vector of bit variables. Read moreSource§fn challenge_field_elements(
&mut self,
n: usize,
) -> Result<Vec<FpVar<F>>, SynthesisError>
fn challenge_field_elements( &mut self, n: usize, ) -> Result<Vec<FpVar<F>>, SynthesisError>
TranscriptGadget::challenge_field_elements squeezes n challenges
from the transcript variable as field element variables. Read moreAuto Trait Implementations§
impl<F, T> !RefUnwindSafe for RecordingTranscriptVar<F, T>
impl<F, T> !Send for RecordingTranscriptVar<F, T>
impl<F, T> !Sync for RecordingTranscriptVar<F, T>
impl<F, T> !UnwindSafe for RecordingTranscriptVar<F, T>
impl<F, T> Freeze for RecordingTranscriptVar<F, T>where
T: Freeze,
impl<F, T> Unpin for RecordingTranscriptVar<F, T>
impl<F, T> UnsafeUnpin for RecordingTranscriptVar<F, T>where
T: UnsafeUnpin,
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