verifier

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MPL-2.0 Imports: 2 Imported by: 0

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[discover.NodeID]struct{}
}

LocalVerifier verifies nodes based on a provided local list.

func NewLocalVerifier

func NewLocalVerifier(peers []discover.NodeID) *LocalVerifier

NewLocalVerifier returns a new LocalVerifier instance.

func (*LocalVerifier) VerifyNode

func (v *LocalVerifier) VerifyNode(_ context.Context, nodeID discover.NodeID) 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