Struct tendermint::validator::SimpleValidator [−][src]
Expand description
SimpleValidator is the form of the validator used for computing the Merkle tree. It does not include the address, as that is redundant with the pubkey, nor the proposer priority, as that changes with every block even if the validator set didn’t. It contains only the pubkey and the voting power. TODO: currently only works for Ed25519 pubkeys
Fields
pub_key: Option<PublicKey>
Public key
voting_power: Power
Voting power
Trait Implementations
Info -> SimpleValidator
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Encode into a buffer in Protobuf format. Read more
Encode with a length-delimiter to a buffer in Protobuf format. Read more
Constructor that attempts to decode an instance from a buffer. Read more
Constructor that attempts to decode a length-delimited instance from the buffer. Read more
Returns the encoded length of the message without a length delimiter. Read more
Encodes into a Protobuf-encoded Vec<u8>
.
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent). Read more
Encode with a length-delimiter to a Vec<u8>
Protobuf-encoded message.
Auto Trait Implementations
impl RefUnwindSafe for SimpleValidator
impl Send for SimpleValidator
impl Sync for SimpleValidator
impl Unpin for SimpleValidator
impl UnwindSafe for SimpleValidator
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V