filter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashAlg added in v1.0.0

func HashAlg() hash.Hash

get hash algorithm by global config

func HeaderHash added in v1.0.0

func HeaderHash(block *types.Block) (hash types.Hash)

HeaderHash calculate block's hash

func TxHash added in v1.0.0

func TxHash(tx *types.Transaction) (hash types.Hash)

TxHash calculate tx's hash

Types

type RefAddress added in v1.0.0

type RefAddress struct {
	Addr types.Address
}

func NewRefAddress added in v1.0.0

func NewRefAddress(addr types.Address) *RefAddress

func (*RefAddress) Address added in v1.0.0

func (self *RefAddress) Address() types.Address

type SwitchFilter

type SwitchFilter interface {
	Verify(portId int, msg interface{}) error
}

Filter is used to verify SwitchMsg

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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