pub struct Transcript(/* private fields */);Implementations§
Trait Implementations§
Source§impl TranscriptProtocol for Transcript
impl TranscriptProtocol for Transcript
Source§fn new(label: &'static [u8]) -> Self
fn new(label: &'static [u8]) -> Self
Create a new transcript with the given domain-separation label.
Source§fn append_message(&mut self, label: &'static [u8], message: &[u8])
fn append_message(&mut self, label: &'static [u8], message: &[u8])
Absorb an arbitrary byte string under a label.
Source§fn append_u64(&mut self, label: &'static [u8], value: u64)
fn append_u64(&mut self, label: &'static [u8], value: u64)
Absorb a
u64 value under a label.Source§fn challenge_bytes(&mut self, label: &'static [u8], dest: &mut [u8])
fn challenge_bytes(&mut self, label: &'static [u8], dest: &mut [u8])
Fill
dest with challenge bytes derived from the transcript state.Source§fn append_point<C>(&mut self, label: &'static [u8], point: &C::ProjectivePoint)
fn append_point<C>(&mut self, label: &'static [u8], point: &C::ProjectivePoint)
Absorb an elliptic-curve point in compressed form.
Source§fn append_scalar<C>(&mut self, label: &'static [u8], scalar: &C::Scalar)
fn append_scalar<C>(&mut self, label: &'static [u8], scalar: &C::Scalar)
Absorb an elliptic-curve scalar in canonical representation.
Source§fn challenge_scalar<C>(&mut self, label: &'static [u8]) -> C::Scalar
fn challenge_scalar<C>(&mut self, label: &'static [u8]) -> C::Scalar
Derive a scalar challenge from the transcript.
Auto Trait Implementations§
impl Freeze for Transcript
impl RefUnwindSafe for Transcript
impl Send for Transcript
impl Sync for Transcript
impl Unpin for Transcript
impl UnsafeUnpin for Transcript
impl UnwindSafe for Transcript
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