validators

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNegativeStake = errors.New("negative stake")

ErrNegativeStake signals that the stake is negative

View Source
var ErrNilPubKey = errors.New("nil public key")

ErrNilPubKey signals that the public key is nil

View Source
var ErrNilStake = errors.New("nil stake")

ErrNilStake signals that a nil stake structure has been provided

Functions

func NewValidator

func NewValidator(stake *big.Int, rating int32, pubKey []byte) (*validator, error)

NewValidator creates a new instance of a validator

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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