types

package
v0.0.0-...-e976260 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 0 Imported by: 7

Documentation

Overview

Package types containt the general types needed by merkle and mmr packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher interface {
	Hash(data []byte) ([]byte, error)
}

Hasher is an interface used to provide a hashing algorithm for the library.

type Leaf

type Leaf struct {
	Index uint64
	Hash  []byte
}

Leaf is the type of leaf used in the merkle tree and mmr

Jump to

Keyboard shortcuts

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