[][src]Struct schnorr::SigningContext

pub struct SigningContext(_);

A Signing Context Provides an abstraction for signature protocol Merlin Transcript

Methods

impl SigningContext[src]

pub fn new(context: &'static [u8]) -> SigningContext[src]

Initialize a signing context from a static byte string that identifies the signature's role in the larger protocol.

pub fn to_owned(&mut self) -> Transcript[src]

pub fn bytes(&self, bytes: &[u8]) -> Transcript[src]

Initalize an owned signing transcript on a message provided as a byte array

pub fn xof<D: ExtendableOutput>(&self, h: D) -> Transcript[src]

Initalize an owned signing transcript on a message provided as a hash function with extensible output

pub fn from_hash256<D: FixedOutput<OutputSize = U32>>(&self, h: D) -> Transcript[src]

Initalize an owned signing transcript on a message provided as a hash function with 256 bit output.

pub fn from_hash512<D: FixedOutput<OutputSize = U64>>(&self, h: D) -> Transcript[src]

Initalize an owned signing transcript on a message provided as a hash function with 512 bit output, usually a gross over kill.

Trait Implementations

impl Clone for SigningContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,