Struct schnorr_fun::Message [−][src]
Expand description
A message to be signed.
The S
parameter is a Secrecy
which is used when signing a verifying to check whether the
challenge scalar produced with the message should be secret.
Fields
bytes: Slice<'a, S>
The message bytes
app_tag: Option<&'static str>
The optional application tag to separate the signature from other applications.
Implementations
Create a raw message with no app_tag
. The message bytes will be passed straight into the
challenge hash. Usually, you only use this when signing a pre-hashed message.
Trait Implementations
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for Message<'a, S> where
S: RefUnwindSafe,
impl<'a, S> UnwindSafe for Message<'a, S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a new instance of the invocant that will be marked with M
. Read more
type Output = T
type Output = T
Should always be Self