mrkl

package module
v0.0.0-...-cd0ce1d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 5 Imported by: 0

README

Merkle Tree Implementation

type MTree interface {
    GetRootHash() string
    Lookup(payload string)bool
    TreeHeight() int
    Dispose()
}
Init(payload []string) MTree 

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MTree

type MTree interface {
	Dispose()
	GetRootHash() string
	Lookup(payload string) bool
	TreeHeight() int
}

func Init

func Init(payload []string) MTree

type Mkl

type Mkl []mkl
var MrKl Mkl

type Tree

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

func (*Tree) Dispose

func (t *Tree) Dispose()

func (*Tree) GetRootHash

func (t *Tree) GetRootHash() string

func (*Tree) Lookup

func (t *Tree) Lookup(payload string) bool

func (*Tree) TreeHeight

func (t *Tree) TreeHeight() int

Jump to

Keyboard shortcuts

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