validator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package validator contains file-oriented chunk validation implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContentAddressValidator

func NewContentAddressValidator() swarm.ChunkValidator

New constructs a new ContentAddressValidator

Types

type ContentAddressValidator

type ContentAddressValidator struct {
}

ContentAddressValidator validates that the address of a given chunk is the content address of its contents

func (*ContentAddressValidator) Validate

func (v *ContentAddressValidator) Validate(ch swarm.Chunk) (valid bool)

Validate performs the validation check

Jump to

Keyboard shortcuts

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