mithril_common::protocol

Trait 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§