Struct saito_rust::crypto::Message [−]
pub struct Message(_);
Expand description
A (hashed) message input to an ECDSA signature
Implementations
impl Message
impl Message
If you just want to sign an arbitrary message use Message::from_hashed_data
instead.
Converts a MESSAGE_SIZE
-byte slice to a message object. WARNING: the slice has to be a
cryptographically secure hash of the actual message that’s going to be signed. Otherwise
the result of signing isn’t a
secure signature.
impl Message
impl Message
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer for FFI interfacing
Trait Implementations
impl CPtr for Message
impl CPtr for Message
impl PartialOrd<Message> for Message
impl PartialOrd<Message> for Message
pub fn partial_cmp(&self, other: &Message) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Message) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more