SignableMessageBody

Trait SignableMessageBody 

Source
pub trait SignableMessageBody: Serialize + Sealed {
    // Provided methods
    fn sign(self, key: &PrivateKey) -> SignedMessage<Self>
       where Self: Sized { ... }
    fn plaintext(&self) -> Vec<u8>  { ... }
}

Provided Methods§

Source

fn sign(self, key: &PrivateKey) -> SignedMessage<Self>
where Self: Sized,

Source

fn plaintext(&self) -> Vec<u8>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> SignableMessageBody for T
where T: Serialize + Sealed,