pub struct SignedMessage { /* private fields */ }Expand description
A signed message.
Implementations§
Source§impl SignedMessage
impl SignedMessage
Sourcepub fn new(sk: &SigningKey, msg: Message) -> Self
pub fn new(sk: &SigningKey, msg: Message) -> Self
Creates a new signed message.
Sourcepub fn deserialize_and_verify(buf: &[u8]) -> Result<Self>
pub fn deserialize_and_verify(buf: &[u8]) -> Result<Self>
Deserializes this message and verifies its signature.
Trait Implementations§
Source§impl Clone for SignedMessage
impl Clone for SignedMessage
Source§fn clone(&self) -> SignedMessage
fn clone(&self) -> SignedMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignedMessage
impl RefUnwindSafe for SignedMessage
impl Send for SignedMessage
impl Sync for SignedMessage
impl Unpin for SignedMessage
impl UnsafeUnpin for SignedMessage
impl UnwindSafe for SignedMessage
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