pub struct Blake2bTranscript<E: PairingCurve> { /* private fields */ }Implementations§
Source§impl<E: PairingCurve> Blake2bTranscript<E>
impl<E: PairingCurve> Blake2bTranscript<E>
pub fn new(domain_label: &[u8]) -> Self
pub fn append_bytes_impl(&mut self, label: &[u8], bytes: &[u8])
pub fn append_field_impl<F: PrimeField>(&mut self, label: &[u8], x: &F)
pub fn append_group_impl<G: CanonicalSerialize>(&mut self, label: &[u8], g: &G)
pub fn append_serde_impl<S: Serialize>(&mut self, label: &[u8], s: &S)
pub fn challenge_scalar_impl<F: PrimeField>(&mut self, label: &[u8]) -> F
pub fn reset_impl(&mut self, domain_label: &[u8])
Trait Implementations§
Source§impl<E: Clone + PairingCurve> Clone for Blake2bTranscript<E>
impl<E: Clone + PairingCurve> Clone for Blake2bTranscript<E>
Source§fn clone(&self) -> Blake2bTranscript<E>
fn clone(&self) -> Blake2bTranscript<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Transcript for Blake2bTranscript<BN254>
impl Transcript for Blake2bTranscript<BN254>
type Curve = BN254
fn append_bytes(&mut self, label: &[u8], bytes: &[u8])
fn append_field( &mut self, label: &[u8], x: &<<BN254 as PairingCurve>::G1 as Group>::Scalar, )
fn append_group<G: Group + DorySerialize>(&mut self, label: &[u8], g: &G)
fn append_serde<S: DorySerialize>(&mut self, label: &[u8], s: &S)
fn challenge_scalar(&mut self, label: &[u8]) -> ArkFr
fn reset(&mut self, domain_label: &[u8])
Auto Trait Implementations§
impl<E> Freeze for Blake2bTranscript<E>
impl<E> RefUnwindSafe for Blake2bTranscript<E>where
E: RefUnwindSafe,
impl<E> Send for Blake2bTranscript<E>where
E: Send,
impl<E> Sync for Blake2bTranscript<E>where
E: Sync,
impl<E> Unpin for Blake2bTranscript<E>where
E: Unpin,
impl<E> UnwindSafe for Blake2bTranscript<E>where
E: 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