Discover Packages
github.com/cosmos/cosmos-sdk
store
internal
maps
package
Version:
v0.45.14-ics
Opens a new window with list of versions in this module.
Published: Feb 22, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
HashFromMap computes a merkle tree from sorted map and returns the merkle
root.
ProofsFromMap generates proofs from a map. The keys/values of the map will be used as the keys/values
in the underlying key-value pairs.
The keys are sorted before the proofs are computed.
A local extension to KVPair that can be hashed.
Key and value are length prefixed and concatenated,
then hashed.
NewKVPair takes in a key and value and creates a kv.Pair
wrapped in the local extension KVPair
Bytes returns key || value, with both the
key and value length prefixed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.