pub struct DefaultTranscript<F: IsField> { /* private fields */ }
Implementations§
source§impl<F> DefaultTranscript<F>
impl<F> DefaultTranscript<F>
Trait Implementations§
source§impl<F> Default for DefaultTranscript<F>
impl<F> Default for DefaultTranscript<F>
source§impl<F> IsTranscript<F> for DefaultTranscript<F>
impl<F> IsTranscript<F> for DefaultTranscript<F>
source§fn append_bytes(&mut self, new_bytes: &[u8])
fn append_bytes(&mut self, new_bytes: &[u8])
Appends a bytes to the transcript.
source§fn append_field_element(&mut self, element: &FieldElement<F>)
fn append_field_element(&mut self, element: &FieldElement<F>)
Appends a field element to the transcript.
source§fn state(&self) -> [u8; 32]
fn state(&self) -> [u8; 32]
Returns the inner state of the transcript that fully determines its outputs.
source§fn sample_field_element(&mut self) -> FieldElement<F>
fn sample_field_element(&mut self) -> FieldElement<F>
Returns a random field element.
source§fn sample_u64(&mut self, upper_bound: u64) -> u64
fn sample_u64(&mut self, upper_bound: u64) -> u64
Returns a random index between 0 and
upper_bound
.Auto Trait Implementations§
impl<F> Freeze for DefaultTranscript<F>
impl<F> RefUnwindSafe for DefaultTranscript<F>where
F: RefUnwindSafe,
impl<F> Send for DefaultTranscript<F>where
F: Send,
impl<F> Sync for DefaultTranscript<F>where
F: Sync,
impl<F> Unpin for DefaultTranscript<F>where
F: Unpin,
impl<F> UnwindSafe for DefaultTranscript<F>where
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