Trait IntoMessage

Source
pub trait IntoMessage: Sized {
    type Container: BinaryValue + From<Self> + TryInto<Self>;
}
Expand description

Message that can be converted into a unambiguous presentation for signing.

“Unambiguous” above means that any sequence of bytes produced by serializing Container obtained by converting this message can be interpreted in a single way. In other words, messages of different types have separated representation domains.

Required Associated Types§

Source

type Container: BinaryValue + From<Self> + TryInto<Self>

Container for the message.

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§