Struct tendermint::vote::SignedVote[][src]

pub struct SignedVote { /* fields omitted */ }

SignedVote is the union of a canonicalized vote, the signature on the sign bytes of that vote and the id of the validator who signed it.

Implementations

impl SignedVote[src]

pub fn new(
    vote: Vote,
    chain_id: ChainId,
    validator_address: Id,
    signature: Signature
) -> SignedVote
[src]

Create new SignedVote from provided canonicalized vote, validator id, and the signature of that validator.

pub fn validator_id(&self) -> Id[src]

Return the id of the validator that signed this vote.

pub fn sign_bytes(&self) -> Vec<u8>[src]

Return the bytes (of the canonicalized vote) that were signed.

pub fn signature(&self) -> &Signature[src]

Return the actual signature on the canonicalized vote.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,