mst

package
v0.0.0-...-a50775b Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MAXLEVEL = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name string
	Keys []string
}

type Inverted_list

type Inverted_list struct {
	Db ethdb.Database
	// contains filtered or unexported fields
}

func (*Inverted_list) RenewList

func (index *Inverted_list) RenewList()

type MST

type MST struct {
	Root     *node
	RootHash [32]byte
	Db       ethdb.Database
}

func CreateIndex

func CreateIndex(f1 File, blockNumber uint, in *Inverted_list, t *MST) *MST

func (*MST) PrintMst

func (t *MST) PrintMst()

func (*MST) PutRootHash

func (t *MST) PutRootHash()

func (*MST) ReNewMst

func (t *MST) ReNewMst()

func (*MST) Search

func (t *MST) Search(keys []string) []uint

type MSTIiterator

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

Jump to

Keyboard shortcuts

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