merkleTree

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

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

func (*Tree) AddData

func (t *Tree) AddData(data [][]byte)

func (*Tree) AddHash

func (t *Tree) AddHash(hash []byte)

func (*Tree) Calculate

func (t *Tree) Calculate() (root []byte, err error)

func (Tree) Verify

func (t Tree) Verify() (passed bool, err error)

func (Tree) VerifyData

func (t Tree) VerifyData(data []byte) (passed bool, err error)

func (Tree) VerifyHash

func (t Tree) VerifyHash(hash []byte) (passed bool, err error)

Jump to

Keyboard shortcuts

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