transaction

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: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxFilter

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

TxFilter is an implemention of switch message filter, switch will use transaction filter to verify transaction message.

func NewTxFilter

func NewTxFilter(eventCenter types.EventCenter, verifySignature bool, chainId uint64) *TxFilter

create a new transaction filter instance.

func (*TxFilter) Verify

func (txValidator *TxFilter) Verify(portId int, msg interface{}) error

Verify verify a switch message whether is validated. return nil if message is validated, otherwise return relative error

Jump to

Keyboard shortcuts

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