Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func X_hashFromByteSlices ¶
X_hashFromByteSlices computes the Tendermint simple Merkle root. items is encoded as: [4-byte BE count][4-byte BE len][data]...
func X_innerHash ¶
X_innerHash returns SHA256(0x01 || left || right), the Tendermint inner node hash.
func X_leafHash ¶
X_leafHash returns SHA256(0x00 || leaf), the Tendermint leaf hash.
func X_verifySimpleProof ¶
func X_verifySimpleProof(m *gno.Machine, rootHash gno.TypedValue, 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.
Click to show internal directories.
Click to hide internal directories.