# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AssertIteratorContains - tests wether the iterator (itr) contains expected results (provided in map).
ConstructCompositeKey returns a []byte that uniquely represents a given chaincodeID and key.
Copy returns a copy of given bytes.
DecodeCompositeKey decodes the compositeKey constructed by ConstructCompositeKey method back to the original chaincodeID and key form.
NewStateDelta constructs an empty StateDelta struct.
NewStateDeltaRangeScanIterator - return an iterator for performing a range scan over a state-delta object.
# Structs
Code below is for maintaining state for a chaincode.
StateDelta holds the changes to existing state.
StateDeltaIterator - An iterator implementation over state-delta.
UpdatedValue holds the value for a key.
# Interfaces
HashableState - Interface that is be implemented by state management Different state management implementation can be effiecient for computing crypto-hash for state under different workload conditions.
RangeScanIterator - is to be implemented by the return value of GetRangeScanIterator method in the implementation of HashableState interface.
StateSnapshotIterator An interface that is to be implemented by the return value of GetStateSnapshotIterator method in the implementation of HashableState interface.