buildroot

package
v0.0.0-...-f31a1f1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateReceiptsRoot

func CalculateReceiptsRoot(receipts []*types.Receipt) types.Hash

CalculateReceiptsRoot calculates the root of a list of receipts

func CalculateRoot

func CalculateRoot(num int, h func(indx int) []byte) types.Hash

CalculateRoot calculates a root with a callback

func CalculateTransactionsRoot

func CalculateTransactionsRoot(transactions []*types.Transaction) types.Hash

CalculateTransactionsRoot calculates the root of a list of transactions

func CalculateUncleRoot

func CalculateUncleRoot(uncles []*types.Header) types.Hash

CalculateUncleRoot calculates the root of a list of uncles

Types

type FastHasher

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

FastHasher is a fast hasher for the derive sha

func (*FastHasher) Hash

func (f *FastHasher) Hash(num int, cb func(i int) []byte) ([]byte, bool)

Hash hashes the values

Jump to

Keyboard shortcuts

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