verifier

package
v0.92.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MPL-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalVerifier

type LocalVerifier struct {
	KnownPeers map[enode.ID]struct{}
}

LocalVerifier verifies nodes based on a provided local list.

func NewLocalVerifier

func NewLocalVerifier(peers []enode.ID) *LocalVerifier

NewLocalVerifier returns a new LocalVerifier instance.

func (*LocalVerifier) VerifyNode

func (v *LocalVerifier) VerifyNode(_ context.Context, nodeID enode.ID) bool

VerifyNode checks if a given node is trusted using a local list.

Jump to

Keyboard shortcuts

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