grandpafinality

package
v0.0.3-rc-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (Equivocation) Encode

func (e Equivocation) Encode(buffer *bytes.Buffer) error

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

func (TargetHashAndNumber) Encode

func (c TargetHashAndNumber) Encode(buffer *bytes.Buffer) error

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

func (Tuple2HashSignature) Encode

func (t Tuple2HashSignature) Encode(buffer *bytes.Buffer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL