Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Modules = []string{
"aclaccesscontrol",
"authz",
"acc",
"bank",
"capability",
"distribution",
"epoch",
"evidence",
"evm",
"feegrant",
"gov",
"ibc",
"mint",
"oracle",
"params",
"slashing",
"staking",
"tokenfactory",
"transfer",
"upgrade",
"wasm"}
Functions ¶
func IterateWithPrefix ¶
IterateWithPrefix returns the begin and end keys for an iterator over a domain and prefix.
func Serialize ¶
func Serialize(node types.RawSnapshotNode) []byte
Types ¶
type HashCalculator ¶
type HashCalculator interface {
HashSingle(data []byte) []byte
HashTwo(dataA []byte, dataB []byte) []byte
ComputeHashes() [][]byte
}
HashCalculator defines the interface for calculating chained state hash.
type XorHashCalculator ¶
type XorHashCalculator struct {
NumBlocksPerWorker int64
NumOfWorkers int
DataCh chan types.RawSnapshotNode
}
XorHashCalculator is the hash calculator backed by XoR hash.
func NewXorHashCalculator ¶
func NewXorHashCalculator(numBlocksPerWorker int64, numWorkers int, data chan types.RawSnapshotNode) XorHashCalculator
NewXorHashCalculator create a new XorHashCalculator.
func (XorHashCalculator) ComputeHashes ¶
func (x XorHashCalculator) ComputeHashes() [][]byte
func (XorHashCalculator) HashSingle ¶
func (x XorHashCalculator) HashSingle(data []byte) []byte
HashSingle computes the hash of a single data element.
Click to show internal directories.
Click to hide internal directories.