merkle

package
v0.0.0-...-8c29382 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBundleHashes

func GetBundleHashes(bundle *[]types.DataItem) *[][32]byte

func GetBundleHashesHex

func GetBundleHashesHex(bundle *[]types.DataItem) []string

func GetHashesCompact

func GetHashesCompact(hashes *[][32]byte, leafIndex int) ([]types.MerkleNode, error)

GetHashesCompact creates a compact merkle tree for the given leaf this function will construct a merkle tree based on the hashes and construct only the necessary hashes for building the merkle tree

func GetMerkleRoot

func GetMerkleRoot(hashes [][32]byte) [32]byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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