types

package
v1.22.45 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision int

Decision represents a consensus decision outcome

const (
	DecideUndecided Decision = iota
	DecideAccept
	DecideReject
)

type Hash

type Hash = ids.ID

Hash represents a hash value

type Hash20

type Hash20 interface{ ~[20]byte }

Hash20 represents a 20-byte hash interface

type Hash32

type Hash32 interface{ ~[32]byte }

Hash32 represents a 32-byte hash interface

type ID

type ID = ids.ID

ID represents a generic identifier

type NodeID

type NodeID = ids.NodeID

NodeID represents a node identifier

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Number represents numeric types for consensus operations

type PrivateKey

type PrivateKey []byte

PrivateKey represents a private key

type PublicKey

type PublicKey []byte

PublicKey represents a public key

type Round

type Round uint64

Round represents a consensus round number

type Seed

type Seed uint64

Seed represents a random seed value

type Signature

type Signature []byte

Signature represents a signature

Jump to

Keyboard shortcuts

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