Discover Packages
github.com/ci123chain/ci123chain
pkg
abci
store
internal
maps
package
Version:
v1.5.9
Opens a new window with list of versions in this module.
Published: Aug 18, 2021
License: Apache-2.0, 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.