types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalProofNodeHash

func CalProofNodeHash(node *ProofNode) []byte

CalProofNodeHash calculate hash for given ProofNode

func Validate

func Validate(key []byte, proof ProofPath) bool

Validate validates poof with given key

Types

type Inode

type Inode struct {
	Key   []byte
	Value []byte
	Hash  []byte
}

Inode struct

type Inodes

type Inodes []*Inode

Inodes struct

type ProofNode

type ProofNode struct {
	IsData bool
	Key    []byte
	Hash   []byte
	Inodes Inodes
	Index  int
}

ProofNode struct

type ProofPath

type ProofPath []*ProofNode

ProofPath struct

Jump to

Keyboard shortcuts

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