Enum schnorr_fun::MessageKind [−][src]
Describes the kind of messages that will be signed with a Schnorr
instance.
Variants
Sign a pre-hashed message. This is used by BIP-341 to authorize transactions. If you also want to sign hashed messages in your applicatin you should use a tagged hash specific to your application.
Sign an ordinary variable length message.
Fields of Plain
tag: &'static str
You must provide a tag to separate signatures from your application
from other applications. If two Schnorr
instances are created
with a different tag
then a signature valid for one will never be
valid for the other. It will also never be valid for Prehashed
instances. The specific method of domain separation used is
described here.
Trait Implementations
impl Clone for MessageKind
[src]
fn clone(&self) -> MessageKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MessageKind
[src]
impl Debug for MessageKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnwindSafe for MessageKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Mark for T
[src]
#[must_use]pub fn mark<M>(self) -> <M as ChangeMark<T>>::Out where
M: ChangeMark<T>,
[src]
M: ChangeMark<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,