/// Creates a new signed message from the given binary value.
Creates a new signed message from the given binary value.
Creates a new signed message from the given binary value .
pub fn new(payload: impl BinaryValue, author: PublicKey, secret_key: &SecretKey) -> Self {
        let payload = payload.into_bytes();
        let signature = crypto::sign(payload.as_ref(), secret_key);
        Self {
            payload,
            author,
            signature,
        }
    }
pub fn new ( payload : impl BinaryValue , author : PublicKey , secret_key : & SecretKey ) -> Self { let payload = payload . into_bytes ( ) ; let signature = crypto :: sign ( payload . as_ref ( ) , secret_key ) ; Self { payload , author , signature , } }
Creates a new signed message from the given binary value.
Creates a new signed message from the given binary value .
payload
impl BinaryValue
author
PublicKey
secret_key
&SecretKey