merkle

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func X_hashFromByteSlices

func X_hashFromByteSlices(encoded []byte) []byte

X_hashFromByteSlices computes the Tendermint simple Merkle root. items is encoded as: [4-byte BE count][4-byte BE len][data]...

func X_innerHash

func X_innerHash(left, right []byte) []byte

X_innerHash returns SHA256(0x01 || left || right), the Tendermint inner node hash.

func X_leafHash

func X_leafHash(leaf []byte) []byte

X_leafHash returns SHA256(0x00 || leaf), the Tendermint leaf hash.

func X_verifySimpleProof

func X_verifySimpleProof(rootHash, leaf []byte, index, total int, aunts []byte) bool

X_verifySimpleProof verifies a Tendermint SimpleProof. aunts is encoded as consecutive 32-byte hashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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