Trait exonum::messages::Message [] [src]

pub trait Message: CryptoHash + Debug + Send + Sync {
    fn from_raw(raw: RawMessage) -> Result<Self, Error>
    where
        Self: Sized
;
fn raw(&self) -> &RawMessage; fn verify_signature(&self, pub_key: &PublicKey) -> bool { ... } }

Represents generic message interface.

An Exonum message is a piece of data that is signed by the creator's Ed25519 key; the resulting digital signature is a part of the message.

Required Methods

Converts the raw message into the specific one.

Returns raw message.

Provided Methods

Verifies the message using given public key.

Implementors