triehash

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTrie

func BuildTrie(input [][][]uint8, cursor int) []uint8

BuildTrie ... FIXME: This is problematic, the stream implementation is Substrate-only as is the branch here

func TrieRoot

func TrieRoot(input []*TriePair) []byte

TrieRoot creates a trie hash from the supplied pairs.

func TrieRootOrdered

func TrieRootOrdered(input [][]uint8) []byte

TrieRootOrdered creates a trie hash from the supplied pairs.

func UnhashedTrie

func UnhashedTrie(input []*TriePair) []uint8

UnhashedTrie ...

Types

type TriePair

type TriePair struct {
	K []uint8
	V []uint8
}

TriePair ...

Jump to

Keyboard shortcuts

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