[][src]Struct sawtooth_sdk::consensus::engine::PeerMessageHeader

pub struct PeerMessageHeader {
    pub signer_id: Vec<u8>,
    pub content_sha512: Vec<u8>,
    pub message_type: String,
    pub name: String,
    pub version: String,
}

A header associated with a consensus-related message sent from a peer, can be used to verify the origin of the message

Fields

signer_id: Vec<u8>

The public key of the validator where this message originated

NOTE: This may not be the validator that sent the message

content_sha512: Vec<u8>message_type: Stringname: Stringversion: String

Trait Implementations

impl Clone for PeerMessageHeader[src]

impl Default for PeerMessageHeader[src]

impl Debug for PeerMessageHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]