[][src]Struct exonum::messages::ProposeRequest

pub struct ProposeRequest { /* fields omitted */ }

Request for the Propose.

Validation

The message is ignored if its height is not equal to the node's height.

Processing

Propose is sent as the response.

Generation

A node can send ProposeRequest during Precommit and Prevote handling.

Methods

impl ProposeRequest
[src]

pub fn new(
    from: &PublicKey,
    to: &PublicKey,
    height: Height,
    propose_hash: &Hash,
    secret_key: &SecretKey
) -> ProposeRequest
[src]

Creates message and signs it.

pub fn new_with_signature(
    from: &PublicKey,
    to: &PublicKey,
    height: Height,
    propose_hash: &Hash,
    signature: &Signature
) -> ProposeRequest
[src]

Creates message and appends existing signature.

pub fn to_hex(&self) -> String
[src]

Returns the hex representation of the binary data. Lower case letters are used (e.g. f9b4ca).

pub fn from(&self) -> &PublicKey
[src]

The sender's public key.

pub fn to(&self) -> &PublicKey
[src]

Public key of the recipient.

pub fn height(&self) -> Height
[src]

The height to which the message is related.

pub fn propose_hash(&self) -> &Hash
[src]

Hash of the Propose.

Trait Implementations

impl ExonumJson for ProposeRequest
[src]

impl ExonumJsonDeserialize for ProposeRequest
[src]

impl<'a> SegmentField<'a> for ProposeRequest
[src]

impl ServiceMessage for ProposeRequest
[src]

impl Message for ProposeRequest
[src]

fn verify_signature(&self, pub_key: &PublicKey) -> bool
[src]

Verifies the message using given public key.

impl StorageValue for ProposeRequest
[src]

impl PartialEq<ProposeRequest> for ProposeRequest
[src]

impl AsRef<RawMessage> for ProposeRequest
[src]

impl Clone for ProposeRequest
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ProposeRequest
[src]

impl<'de> Deserialize<'de> for ProposeRequest
[src]

impl Serialize for ProposeRequest
[src]

impl FromHex for ProposeRequest
[src]

type Error = Error

Auto Trait Implementations

Blanket Implementations

impl<T> CryptoHash for T where
    T: Message
[src]

impl<T> SerializeContent for T where
    T: Serialize
[src]

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self