verify

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(verifiables ...Verifiable) error

All returns nil if all the verifiables were verified with no errors

func SameSubnet

func SameSubnet(ctx *snow.Context, peerChainID ids.ID) error

SameSubnet verifies that the provided [ctx] was provided to a chain in the same subnet as [peerChainID], but not the same chain. If this verification fails, a non-nil error will be returned.

Types

type State

type State interface {
	snow.ContextInitializable
	Verifiable
	VerifyState() error
}

State that can be verified

type Verifiable

type Verifiable interface {
	Verify() error
}

Verifiable can be verified

Jump to

Keyboard shortcuts

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