merklize

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMerkleTree

func NewMerkleTree(list []merkletree.Content) *merkletree.MerkleTree

Types

type MerkleTree

type MerkleTree struct {
	*merkletree.MerkleTree
}

type MerkleTreeContent

type MerkleTreeContent struct {
	Value string
}

func (MerkleTreeContent) CalculateHash

func (t MerkleTreeContent) CalculateHash() ([]byte, error)

CalculateHash hashes the values of a MerkleTreeContent

func (MerkleTreeContent) Equals

func (t MerkleTreeContent) Equals(other merkletree.Content) (bool, error)

Equals tests for equality of two Contents

Jump to

Keyboard shortcuts

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