pub struct Message(_);
Expand description
A (hashed) message input to an ECDSA signature.
Implementations§
source§impl Message
impl Message
sourcepub 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
source§impl Message
impl Message
sourcepub fn from_slice(data: &[u8]) -> Result<Message, Error>
pub fn from_slice(data: &[u8]) -> Result<Message, Error>
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.
Trait Implementations§
source§impl<T: ThirtyTwoByteHash> From<T> for Message
impl<T: ThirtyTwoByteHash> From<T> for Message
source§impl Ord for Message
impl Ord for Message
source§impl PartialEq<Message> for Message
impl PartialEq<Message> for Message
source§impl PartialOrd<Message> for Message
impl PartialOrd<Message> for Message
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Message
impl Eq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more