verifier

package
v0.0.0-...-7c2dc49 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier interface {
	// Start starts the verifier's routine
	Start() error

	// Stop stops the verifier.
	Stop()

	// SetVerifierAddr sets a verifier contract address on the target chain based on source and target chain.
	SetVerifierAddr(sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int, verifierContractAddr common.Address) error

	// GetVerifierAddr gets a verifier contract address for given source and target chain combination.
	GetVerifierAddr(sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int) (common.Address, error)
}

Verifier is an interface for the verifier in the system.

func NewVerifierImplV1

func NewVerifierImplV1(path string) Verifier

NewVerifierImplV1 creates a new verifier.

type VerifierImplV1

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

VerifierImplV1 implements the verifier interface.

func (*VerifierImplV1) GetVerifierAddr

func (v *VerifierImplV1) GetVerifierAddr(sourceChainID *big.Int, sourceAddr string,
	targetChainID *big.Int) (common.Address, error)

GetVerifierAddr gets a verifier contract address for given source and target chain combination.

func (*VerifierImplV1) SetVerifierAddr

func (v *VerifierImplV1) SetVerifierAddr(sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int, verifierContractAddr common.Address) error

SetVerifierAddr sets a verifier contract address on the target chain based on source and target chain.

func (*VerifierImplV1) Start

func (v *VerifierImplV1) Start() error

Start starts the verifier's routine

func (*VerifierImplV1) Stop

func (v *VerifierImplV1) Stop()

Stop stops the verifier.

Jump to

Keyboard shortcuts

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