Skip to main content

Transcript

Struct Transcript 

Source
pub struct Transcript(/* private fields */);

Implementations§

Source§

impl Transcript

Source

pub fn new(label: &'static [u8]) -> Self

Trait Implementations§

Source§

impl TranscriptProtocol for Transcript

Source§

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])

Absorb an arbitrary byte string under a label.
Source§

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])

Fill dest with challenge bytes derived from the transcript state.
Source§

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)

Absorb an elliptic-curve scalar in canonical representation.
Source§

fn challenge_scalar<C>(&mut self, label: &'static [u8]) -> C::Scalar

Derive a scalar challenge from the transcript.
Source§

fn new_dlog_proof( session_id: &[u8], party_id: usize, action: &[u8], label: &'static [u8], ) -> Self
where Self: Sized,

Construct the transcript context used by DLog proofs.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.