validator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func New

func New(params dps.Params, index dps.Reader) *Validator

func (*Validator) Account

func (v *Validator) Account(account identifier.Account) error

func (*Validator) Block

func (v *Validator) Block(rosBlockID identifier.Block) (identifier.Block, error)

Block identifier tries to extrapolate the block identifier to a full version of itself. For now, we will always need a height. NOTE: We always pass a block identifier that in principle at least could be valid, so we will have at least a height or a hash.

func (*Validator) Currency

func (v *Validator) Currency(currency identifier.Currency) (identifier.Currency, error)

func (*Validator) Transaction

func (v *Validator) Transaction(transaction identifier.Transaction) error

Jump to

Keyboard shortcuts

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