merkletree

package module
v0.0.0-...-7fe1d63 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 3 Imported by: 0

README

Merkletree

A simple merkle tree in go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Merkletree

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

func New

func New(hasher hash.Hash, data []MerkletreeItem) *Merkletree

func NewSha256Tree

func NewSha256Tree(data []MerkletreeItem) *Merkletree

func (*Merkletree) GetRoot

func (mt *Merkletree) GetRoot() []byte

func (*Merkletree) GetTreeData

func (mt *Merkletree) GetTreeData() [][]byte

func (*Merkletree) SumTree

func (mt *Merkletree) SumTree()

type MerkletreeItem

type MerkletreeItem interface {
	Bytes() []byte
}

Jump to

Keyboard shortcuts

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