Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Equivocation ¶
type Equivocation struct { // The round number equivocated in. RoundNumber sc.U64 // The identity of the equivocator. Identity primitives.Ed25519PublicKey // The first vote in the equivocation. First Tuple2HashSignature // The second vote in the equivocation. Second Tuple2HashSignature }
func DecodeEquivocation ¶
func DecodeEquivocation(buffer *bytes.Buffer) (Equivocation, error)
func (Equivocation) Bytes ¶
func (e Equivocation) Bytes() []byte
type TargetHashAndNumber ¶
type TargetHashAndNumber struct { // The target block's hash. TargetHash primitives.H256 // The target block's number. TargetNumber sc.U64 }
func DecodeTargetHashAndNumber ¶
func DecodeTargetHashAndNumber(buffer *bytes.Buffer) (TargetHashAndNumber, error)
func (TargetHashAndNumber) Bytes ¶
func (c TargetHashAndNumber) Bytes() []byte
type Tuple2HashSignature ¶
type Tuple2HashSignature struct { TargetHashAndNumber primitives.SignatureEd25519 }
func DecodeTuple2HashSignature ¶
func DecodeTuple2HashSignature(buffer *bytes.Buffer) (Tuple2HashSignature, error)
func (Tuple2HashSignature) Bytes ¶
func (t Tuple2HashSignature) Bytes() []byte
Click to show internal directories.
Click to hide internal directories.