Trait exonum::messages::Message
[−]
[src]
pub trait Message: Debug + Send + Sync { fn raw(&self) -> &RawMessage; fn hash(&self) -> Hash { ... } fn verify_signature(&self, pub_key: &PublicKey) -> bool { ... } }
Represents generic message interface.
Required Methods
fn raw(&self) -> &RawMessage
Returns raw message.
Provided Methods
fn hash(&self) -> Hash
Returns hash of the RawMessage
.
fn verify_signature(&self, pub_key: &PublicKey) -> bool
Verifies the message using given public key.
Implementors
impl Message for RawMessage
impl Message for Connect
impl Message for Propose
impl Message for Prevote
impl Message for Precommit
impl Message for Status
impl Message for BlockResponse
impl Message for ProposeRequest
impl Message for TransactionsRequest
impl Message for PrevotesRequest
impl Message for PeersRequest
impl Message for BlockRequest