Enum tendermint::block::commit_sig::CommitSig [−][src]
pub enum CommitSig { BlockIdFlagAbsent, BlockIdFlagCommit { validator_address: Id, timestamp: Time, signature: Signature, }, BlockIdFlagNil { validator_address: Id, timestamp: Time, signature: Signature, }, }
Expand description
CommitSig represents a signature of a validator. It’s a part of the Commit and can be used to reconstruct the vote set given the validator set.
Variants
no vote was received from a validator.
voted for the Commit.BlockID.
Show fields
voted for nil.
Show fields
Implementations
Get the address of this validator if a vote was received.
Whether this signature is absent (no vote was received from validator)
Whether this signature is a commit (validator voted for the Commit.BlockId)
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CommitSig
impl UnwindSafe for CommitSig
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