package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Functions
IsKVWriteDelete returns true if the kvWrite indicates a delete operation.
IsKVWriteHashDelete returns true if the kvWriteHash indicates a delete operation.
NewKVRead helps constructing proto message kvrwset.KVRead.
NewRangeQueryResultsHelper constructs a RangeQueryResultsHelper.
NewRWSetBuilder constructs a new instance of RWSetBuilder.
NewVersion helps converting proto message kvrwset.Version to version.Height.
SetMerkelSummary sets the 'readsInfo' field to merkle summary of the raw KVReads of query results.
SetRawReads sets the 'readsInfo' field to raw KVReads performed by the query.
TxPvtRwSetFromProtoMsg transforms the proto message into a struct for ease of use.
TxRwSetFromProtoMsg transforms the proto message into a struct for ease of use.
# Structs
CollHashedRwSet encapsulates 'kvrwset.HashedRWSet' proto message for a specific collection.
CollPvtRwSet encapsulates 'kvrwset.KVRWSet' proto message for a private rwset for a specific collection KvRwSet in a private RwSet should not contain range query info.
NsPvtRwSet represents 'rwset.NsPvtReadWriteSet' proto message.
NsRwSet encapsulates 'kvrwset.KVRWSet' proto message for a specific name space (chaincode).
RangeQueryResultsHelper helps preparing range query results for phantom items detection during validation.
RWSetBuilder helps building the read-write set.
TxPvtRwSet represents 'rwset.TxPvtReadWriteSet' proto message.
TxRwSet acts as a proxy of 'rwset.TxReadWriteSet' proto message and helps constructing Read-write set specifically for KV data model.
# Type aliases
Hash represents bytes of a hash.
HashFunc - the function signature for the hash function that is used in building and validating the merkle tree in the rwset, for the range query results.
MerkleTreeLevel used for representing a level of the merkle tree.