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§
sourcefn to_message(&self) -> String
fn to_message(&self) -> String
Return a String representation of the message.