merkle_pdp

package
v1.14.0-beta Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROOF_LEN = 192
	MAX_DEPTH = 65536
)

Variables

This section is empty.

Functions

func CalcRootHash

func CalcRootHash(blocks []types.Block) ([]byte, error)

func MerkleProof

func MerkleProof(blocks []types.Block, c uint64) ([][]byte, error)

func VerifyMerkleProof

func VerifyMerkleProof(proof [][]byte, uniqueId []byte, i uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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