[−][src]Struct schnorr::tools::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]
fn clone(&self) -> SigningContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for SigningContext
impl Unpin for SigningContext
impl Sync for SigningContext
impl UnwindSafe for SigningContext
impl RefUnwindSafe for SigningContext
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self