validators

package
v1.13.5-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package validators provides validator management functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set interface {
	// Add adds a validator to the set
	Add(validator Validator) error

	// Remove removes a validator from the set
	Remove(validatorID string) error

	// Get retrieves a validator by ID
	Get(validatorID string) (Validator, error)

	// Len returns the number of validators
	Len() int
}

Set manages a set of validators

type Validator

type Validator interface {
	// ID returns the validator's unique identifier
	ID() string

	// Weight returns the validator's stake weight
	Weight() uint64

	// PublicKey returns the validator's public key
	PublicKey() []byte
}

Validator represents a network validator

Directories

Path Synopsis
Package validatorsmock provides mock validators for testing
Package validatorsmock provides mock validators for testing
Package validatorstest provides test utilities for validators
Package validatorstest provides test utilities for validators

Jump to

Keyboard shortcuts

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