validator

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Retries sets the number of retries done when reading message from storage.
	// They are run with exponential backoff, with 1 second to and 2 exponent,
	// so it is reasonable for it to stay below 10
	Retries uint `envconfig:"RETRIES" default:"6"`
}

type SignedValidator

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

func New

func New(messageReader storage.MessageReader, decoder storage.Decoder, config Config) (*SignedValidator, error)

func (*SignedValidator) Validate

func (s *SignedValidator) Validate(ctx context.Context, cid cid.Cid) error

Jump to

Keyboard shortcuts

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