logo
pub struct SignedVote { /* private fields */ }
Expand description

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

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

Create a new SignedVote from the provided Vote, which may or may not be signed. If the vote is not signed, this function will return None.

Return the id of the validator that signed this vote.

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

Return the actual signature on the canonicalized vote.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.