Trait mithril_common::protocol::ToMessage

source ·
pub trait ToMessage: Sync + Send {
    // Required method
    fn to_message(&self) -> String;
}
Expand description

Trait to convert a type to a message that can be signed or verified by the Mithril protocol.

Required Methods§

source

fn to_message(&self) -> String

Return a String representation of the message.

Implementations on Foreign Types§

source§

impl ToMessage for &str

source§

impl ToMessage for String

Implementors§