Struct tendermint::validator::Info[][src]

pub struct Info {
    pub address: Id,
    pub pub_key: PublicKey,
    pub voting_power: Power,
    pub proposer_priority: ProposerPriority,
}

Validator information

Fields

address: Id

Validator account address

pub_key: PublicKey

Validator public key

voting_power: Power

Validator voting power

proposer_priority: ProposerPriority

Validator proposer priority

Implementations

impl Info[src]

pub fn power(&self) -> u64[src]

Return the voting power of the validator.

pub fn verify_signature(
    &self,
    sign_bytes: &[u8],
    signature: &Signature
) -> Result<(), Error>
[src]

Verify the given signature against the given sign_bytes using the validators public key.

impl Info[src]

pub fn new(pk: PublicKey, vp: Power) -> Info[src]

Create a new validator.

impl Info[src]

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

Returns the bytes to be hashed into the Merkle tree - the leaves of the tree.

Trait Implementations

impl Clone for Info[src]

impl Copy for Info[src]

impl Debug for Info[src]

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

impl Eq for Info[src]

impl From<&'_ Info> for SimpleValidator[src]

Info -> SimpleValidator

impl PartialEq<Info> for Info[src]

impl Serialize for Info[src]

impl StructuralEq for Info[src]

impl StructuralPartialEq for Info[src]

impl TryFrom<Validator> for Info[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Info

impl Send for Info

impl Sync for Info

impl Unpin for Info

impl UnwindSafe for Info

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,