Skip to main content

SignedVotePayload

Trait SignedVotePayload 

Source
pub trait SignedVotePayload { }
Expand description

Definition (Signed vote payload). A validator never signs a bare value; it signs a VoteValue, the six-tuple

(value_hash, round, kind, unlocking_round, first_round, justification_commitment)

where kind is a CertificateKind. VoteValue implements BcsSignable, so the signed byte string is the BCS encoding of that tuple prefixed by the type name. Two payloads differing in any component are distinct signed messages, and a signature over one is not a signature over the other.

Throughout the specification, “a validator signed X” means: it produced a ValidatorSignature over the VoteValue whose components are X.

Implementors§