{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ledger\n\n## Types\n\n```go\ntype BlockAndPvtData struct {\n\tBlock          *common.Block\n\tPvtData        TxPvtDataMap\n\tMissingPvtData TxMissingPvtDataMap\n}\n```\nBlockAndPvtData encapsulates the block and a map that contains the tuples \\\u003cseqInBlock, \\*TxPvtData\u003e The map is expected to contain the entries only for the transactions that has associated pvt data\n\n```go\ntype BlockPvtData struct {\n\tBlockNum  uint64\n\tWriteSets TxPvtDataMap\n}\n```\nBlockPvtData contains the private data for a block\n\n```go\ntype ChaincodeLifecycleDetails struct {\n\tUpdated bool // true, if an existing chaincode is updated (false for newly deployed chaincodes).\n\t// Following attributes are meaningful only if 'Updated' is true\n\tHashChanged        bool     // true, if the chaincode code package is changed\n\tCollectionsUpdated []string // names of the collections that are either added or updated\n\tCollectionsRemoved []string // names of the collections that are removed\n}\n```\nChaincodeLifecycleDetails captures the finer details of chaincode lifecycle event\n\n```go\ntype ChaincodeLifecycleInfo struct {\n\tName    string\n\tDeleted bool\n\tDetails *ChaincodeLifecycleDetails // Can contain finer details about lifecycle event that can be used for certain optimization\n}\n```\nChaincodeLifecycleInfo captures the update info of a chaincode\n\n```go\ntype CollConfigNotDefinedError struct {\n\tNs string\n}\n```\nCollConfigNotDefinedError is returned whenever an operation is requested on a collection whose config has not been defined\n\n```go\nfunc (e *CollConfigNotDefinedError) Error() string\n```\n\n```go\ntype CollectionConfigInfo struct {\n\tCollectionConfig   *common.CollectionConfigPackage\n\tCommittingBlockNum uint64\n}\n```\nCollectionConfigInfo encapsulates a collection config for a chaincode and its committing block number\n\n```go\ntype CommitOptions struct {\n\tFetchPvtDataFromLedger bool\n}\n```\nCommitOptions encapsulates options associated with a block commit.\n\n```go\ntype ConfigHistoryRetriever interface {\n\tCollectionConfigAt(blockNum uint64, chaincodeName string) (*CollectionConfigInfo, error)\n\tMostRecentCollectionConfigBelow(blockNum uint64, chaincodeName string) (*CollectionConfigInfo, error)\n}\n```\nConfigHistoryRetriever allow retrieving history of collection configs\n\n```go\ntype DeployedChaincodeInfo struct {\n\tName                string\n\tHash                []byte\n\tVersion             string\n\tCollectionConfigPkg *common.CollectionConfigPackage\n}\n```\nDeployedChaincodeInfo encapsulates chaincode information from the deployed chaincodes\n\n```go\ntype DeployedChaincodeInfoProvider interface {\n\tNamespaces() []string\n\tUpdatedChaincodes(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ChaincodeLifecycleInfo, error)\n\tChaincodeInfo(chaincodeName string, qe SimpleQueryExecutor) (*DeployedChaincodeInfo, error)\n\tCollectionInfo(chaincodeName, collectionName string, qe SimpleQueryExecutor) (*common.StaticCollectionConfig, error)\n}\n```\nDeployedChaincodeInfoProvider is a dependency that is used by ledger to build collection config history LSCC module is expected to provide an implementation fo this dependencys\n\n```go\ntype ErrCollectionConfigNotYetAvailable struct {\n\tMaxBlockNumCommitted uint64\n\tMsg                  string\n}\n```\nErrCollectionConfigNotYetAvailable is an error which is returned from the function ConfigHistoryRetriever.CollectionConfigAt() if the latest block number committed is lower than the block number specified in the request.\n\n```go\nfunc (e *ErrCollectionConfigNotYetAvailable) Error() string\n```\n\n```go\ntype HealthCheckRegistry interface {\n\tRegisterChecker(string, healthz.HealthChecker) error\n}\n```\n\n```go\ntype HistoryQueryExecutor interface {\n\t// GetHistoryForKey retrieves the history of values for a key.\n\t// The returned ResultsIterator contains results of type *KeyModification which is defined in protos/ledger/queryresult.\n\tGetHistoryForKey(namespace string, key string) (commonledger.ResultsIterator, error)\n}\n```\nHistoryQueryExecutor executes the history queries\n\n```go\ntype Initializer struct {\n\tStateListeners                []StateListener\n\tDeployedChaincodeInfoProvider DeployedChaincodeInfoProvider\n\tMembershipInfoProvider        MembershipInfoProvider\n\tMetricsProvider               metrics.Provider\n\tHealthCheckRegistry           HealthCheckRegistry\n}\n```\nInitializer encapsulates dependencies for PeerLedgerProvider\n\n```go\ntype InvalidCollNameError struct {\n\tNs, Coll string\n}\n```\nInvalidCollNameError is returned whenever an operation is requested on a collection whose name is invalid\n\n```go\nfunc (e *InvalidCollNameError) Error() string\n```\n\n```go\ntype MembershipInfoProvider interface {\n\t// AmMemberOf checks whether the current peer is a member of the given collection\n\tAmMemberOf(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (bool, error)\n}\n```\nMembershipInfoProvider is a dependency that is used by ledger to determine whether the current peer is a member of a collection. Gossip module is expected to provide the dependency to ledger\n\n```go\ntype MissingBlockPvtdataInfo map[uint64][]*MissingCollectionPvtDataInfo\n```\nMissingBlockPvtdataInfo is a map of transaction number (within the block) to MissingCollectionPvtDataInfo\n\n```go\ntype MissingCollectionPvtDataInfo struct {\n\tNamespace, Collection string\n}\n```\nMissingCollectionPvtDataInfo includes the name of the chaincode and collection for which private data is missing\n\n```go\ntype MissingPvtData struct {\n\tNamespace  string\n\tCollection string\n\tIsEligible bool\n}\n```\nMissingPvtData contains a namespace and collection for which the pvtData is not present. It also denotes whether the missing pvtData is eligible (i.e., whether the peer is member of the \\[namespace, collection]\n\n```go\ntype MissingPvtDataInfo map[uint64]MissingBlockPvtdataInfo\n```\nMissingPvtDataInfo is a map of block number to MissingBlockPvtdataInfo\n\n```go\nfunc (missingPvtDataInfo MissingPvtDataInfo) Add(blkNum, txNum uint64, ns, coll string)\n```\nAdd adds a missing data entry to the MissingPvtDataInfo Map\n\n```go\ntype MissingPvtDataTracker interface {\n\tGetMissingPvtDataInfoForMostRecentBlocks(maxBlocks int) (MissingPvtDataInfo, error)\n}\n```\nMissingPvtDataTracker allows getting information about the private data that is not missing on the peer\n\n```go\ntype NotFoundInIndexErr string\n```\nNotFoundInIndexErr is used to indicate missing entry in the index\n\n```go\nfunc (NotFoundInIndexErr) Error() string\n```\n\n```go\ntype PeerLedger interface {\n\tcommonledger.Ledger\n\t// GetTransactionByID retrieves a transaction by id\n\tGetTransactionByID(txID string) (*peer.ProcessedTransaction, error)\n\t// GetBlockByHash returns a block given it's hash\n\tGetBlockByHash(blockHash []byte) (*common.Block, error)\n\t// GetBlockByTxID returns a block which contains a transaction\n\tGetBlockByTxID(txID string) (*common.Block, error)\n\t// GetTxValidationCodeByTxID returns reason code of transaction validation\n\tGetTxValidationCodeByTxID(txID string) (peer.TxValidationCode, error)\n\t// NewTxSimulator gives handle to a transaction simulator.\n\t// A client can obtain more than one 'TxSimulator's for parallel execution.\n\t// Any snapshoting/synchronization should be performed at the implementation level if required\n\tNewTxSimulator(txid string) (TxSimulator, error)\n\t// NewQueryExecutor gives handle to a query executor.\n\t// A client can obtain more than one 'QueryExecutor's for parallel execution.\n\t// Any synchronization should be performed at the implementation level if required\n\tNewQueryExecutor() (QueryExecutor, error)\n\t// NewHistoryQueryExecutor gives handle to a history query executor.\n\t// A client can obtain more than one 'HistoryQueryExecutor's for parallel execution.\n\t// Any synchronization should be performed at the implementation level if required\n\tNewHistoryQueryExecutor() (HistoryQueryExecutor, error)\n\t// GetPvtDataAndBlockByNum returns the block and the corresponding pvt data.\n\t// The pvt data is filtered by the list of 'ns/collections' supplied\n\t// A nil filter does not filter any results and causes retrieving all the pvt data for the given blockNum\n\tGetPvtDataAndBlockByNum(blockNum uint64, filter PvtNsCollFilter) (*BlockAndPvtData, error)\n\t// GetPvtDataByNum returns only the pvt data  corresponding to the given block number\n\t// The pvt data is filtered by the list of 'ns/collections' supplied in the filter\n\t// A nil filter does not filter any results and causes retrieving all the pvt data for the given blockNum\n\tGetPvtDataByNum(blockNum uint64, filter PvtNsCollFilter) ([]*TxPvtData, error)\n\t// CommitWithPvtData commits the block and the corresponding pvt data in an atomic operation\n\tCommitWithPvtData(blockAndPvtdata *BlockAndPvtData, commitOpts *CommitOptions) error\n\t// Purge removes private read-writes set generated by endorsers at block height lesser than\n\t// a given maxBlockNumToRetain. In other words, Purge only retains private read-write sets\n\t// that were generated at block height of maxBlockNumToRetain or higher.\n\tPurgePrivateData(maxBlockNumToRetain uint64) error\n\t// PrivateDataMinBlockNum returns the lowest retained endorsement block height\n\tPrivateDataMinBlockNum() (uint64, error)\n\t//Prune prunes the blocks/transactions that satisfy the given policy\n\tPrune(policy commonledger.PrunePolicy) error\n\t// GetConfigHistoryRetriever returns the ConfigHistoryRetriever\n\tGetConfigHistoryRetriever() (ConfigHistoryRetriever, error)\n\t// CommitPvtDataOfOldBlocks commits the private data corresponding to already committed block\n\t// If hashes for some of the private data supplied in this function does not match\n\t// the corresponding hash present in the block, the unmatched private data is not\n\t// committed and instead the mismatch inforation is returned back\n\tCommitPvtDataOfOldBlocks(blockPvtData []*BlockPvtData) ([]*PvtdataHashMismatch, error)\n\t// GetMissingPvtDataTracker return the MissingPvtDataTracker\n\tGetMissingPvtDataTracker() (MissingPvtDataTracker, error)\n\t// DoesPvtDataInfoExist returns true when\n\t// (1) the ledger has pvtdata associated with the given block number (or)\n\t// (2) a few or all pvtdata associated with the given block number is missing but the\n\t//     missing info is recorded in the ledger (or)\n\t// (3) the block is committed and does not contain any pvtData.\n\tDoesPvtDataInfoExist(blockNum uint64) (bool, error)\n}\n```\nPeerLedger differs from the OrdererLedger in that PeerLedger locally maintain a bitmask that tells apart valid transactions from invalid ones\n\n```go\ntype PeerLedgerProvider interface {\n\tInitialize(initializer *Initializer) error\n\t// Create creates a new ledger with the given genesis block.\n\t// This function guarantees that the creation of ledger and committing the genesis block would an atomic action\n\t// The chain id retrieved from the genesis block is treated as a ledger id\n\tCreate(genesisBlock *common.Block) (PeerLedger, error)\n\t// Open opens an already created ledger\n\tOpen(ledgerID string) (PeerLedger, error)\n\t// Exists tells whether the ledger with given id exists\n\tExists(ledgerID string) (bool, error)\n\t// List lists the ids of the existing ledgers\n\tList() ([]string, error)\n\t// Close closes the PeerLedgerProvider\n\tClose()\n}\n```\nPeerLedgerProvider provides handle to ledger instances\n\n```go\ntype PvtCollFilter map[string]bool\n```\nPvtCollFilter represents the set of the collection names (as keys of the map with value 'true')\n\n```go\ntype PvtNsCollFilter map[string]PvtCollFilter\n```\nPvtNsCollFilter specifies the tuple \\\u003cnamespace, PvtCollFilter\u003e\n\n```go\nfunc NewPvtNsCollFilter() PvtNsCollFilter\n```\nNewPvtNsCollFilter constructs an empty PvtNsCollFilter\n\n```go\nfunc (filter PvtNsCollFilter) Add(ns string, coll string)\n```\nAdd adds a namespace-collection tuple to the filter\n\n```go\nfunc (filter PvtNsCollFilter) Has(ns string, coll string) bool\n```\nHas returns true if the filter has the entry for tuple namespace-collection\n\n```go\ntype PvtdataHashMismatch struct {\n\tBlockNum, TxNum       uint64\n\tNamespace, Collection string\n\tExpectedHash          []byte\n}\n```\nPvtdataHashMismatch is used when the hash of private write-set does not match the corresponding hash present in the block See function \\`PeerLedger.CommitPvtData\\` for the usages\n\n```go\ntype QueryExecutor interface {\n\tSimpleQueryExecutor\n\t// GetStateMetadata returns the metadata for given namespace and key\n\tGetStateMetadata(namespace, key string) (map[string][]byte, error)\n\t// GetStateMultipleKeys gets the values for multiple keys in a single call\n\tGetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)\n\t// GetStateRangeScanIteratorWithMetadata returns an iterator that contains all the key-values between given key ranges.\n\t// startKey is included in the results and endKey is excluded. An empty startKey refers to the first available key\n\t// and an empty endKey refers to the last available key. For scanning all the keys, both the startKey and the endKey\n\t// can be supplied as empty strings. However, a full scan should be used judiciously for performance reasons.\n\t// metadata is a map of additional query parameters\n\t// The returned ResultsIterator contains results of type *KV which is defined in protos/ledger/queryresult.\n\tGetStateRangeScanIteratorWithMetadata(namespace string, startKey, endKey string, metadata map[string]interface{}) (QueryResultsIterator, error)\n\t// ExecuteQuery executes the given query and returns an iterator that contains results of type specific to the underlying data store.\n\t// Only used for state databases that support query\n\t// For a chaincode, the namespace corresponds to the chaincodeId\n\t// The returned ResultsIterator contains results of type *KV which is defined in protos/ledger/queryresult.\n\tExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error)\n\t// ExecuteQueryWithMetadata executes the given query and returns an iterator that contains results of type specific to the underlying data store.\n\t// metadata is a map of additional query parameters\n\t// Only used for state databases that support query\n\t// For a chaincode, the namespace corresponds to the chaincodeId\n\t// The returned ResultsIterator contains results of type *KV which is defined in protos/ledger/queryresult.\n\tExecuteQueryWithMetadata(namespace, query string, metadata map[string]interface{}) (QueryResultsIterator, error)\n\t// GetPrivateData gets the value of a private data item identified by a tuple \u003cnamespace, collection, key\u003e\n\tGetPrivateData(namespace, collection, key string) ([]byte, error)\n\t// GetPrivateDataHash gets the hash of the value of a private data item identified by a tuple \u003cnamespace, collection, key\u003e\n\t// Function `GetPrivateData` is only meaningful when it is invoked on a peer that is authorized to have the private data\n\t// for the collection \u003cnamespace, collection\u003e. However, the function `GetPrivateDataHash` can be invoked on any peer\n\t// to get the hash of the current value\n\tGetPrivateDataHash(namespace, collection, key string) ([]byte, error)\n\t// GetPrivateDataMetadata gets the metadata of a private data item identified by a tuple \u003cnamespace, collection, key\u003e\n\tGetPrivateDataMetadata(namespace, collection, key string) (map[string][]byte, error)\n\t// GetPrivateDataMetadataByHash gets the metadata of a private data item identified by a tuple \u003cnamespace, collection, keyhash\u003e\n\tGetPrivateDataMetadataByHash(namespace, collection string, keyhash []byte) (map[string][]byte, error)\n\t// GetPrivateDataMultipleKeys gets the values for the multiple private data items in a single call\n\tGetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)\n\t// GetPrivateDataRangeScanIterator returns an iterator that contains all the key-values between given key ranges.\n\t// startKey is included in the results and endKey is excluded. An empty startKey refers to the first available key\n\t// and an empty endKey refers to the last available key. For scanning all the keys, both the startKey and the endKey\n\t// can be supplied as empty strings. However, a full scan shuold be used judiciously for performance reasons.\n\t// The returned ResultsIterator contains results of type *KV which is defined in protos/ledger/queryresult.\n\tGetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error)\n\t// ExecuteQuery executes the given query and returns an iterator that contains results of type specific to the underlying data store.\n\t// Only used for state databases that support query\n\t// For a chaincode, the namespace corresponds to the chaincodeId\n\t// The returned ResultsIterator contains results of type *KV which is defined in protos/ledger/queryresult.\n\tExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error)\n\t// Done releases resources occupied by the QueryExecutor\n\tDone()\n}\n```\nQueryExecutor executes the queries Get\\* methods are for supporting KV-based data model. ExecuteQuery method is for supporting a rich datamodel and query support\n\nExecuteQuery method in the case of a rich data model is expected to support queries on latest state, historical state and on the intersection of state and transactions\n\n```go\ntype QueryResultsIterator interface {\n\tcommonledger.ResultsIterator\n\t// GetBookmarkAndClose returns a paging bookmark and releases resources occupied by the iterator\n\tGetBookmarkAndClose() string\n}\n```\nQueryResultsIterator - an iterator for query result set\n\n```go\ntype SimpleQueryExecutor interface {\n\t// GetState gets the value for given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId\n\tGetState(namespace string, key string) ([]byte, error)\n\t// GetStateRangeScanIterator returns an iterator that contains all the key-values between given key ranges.\n\t// startKey is included in the results and endKey is excluded. An empty startKey refers to the first available key\n\t// and an empty endKey refers to the last available key. For scanning all the keys, both the startKey and the endKey\n\t// can be supplied as empty strings. However, a full scan should be used judiciously for performance reasons.\n\t// The returned ResultsIterator contains results of type *KV which is defined in protos/ledger/queryresult.\n\tGetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)\n}\n```\nSimpleQueryExecutor encapsulates basic functions\n\n```go\ntype StateListener interface {\n\tInterestedInNamespaces() []string\n\tHandleStateUpdates(trigger *StateUpdateTrigger) error\n\tStateCommitDone(channelID string)\n}\n```\nStateListener allows a custom code for performing additional stuff upon state change for a perticular namespace against which the listener is registered. This helps to perform custom tasks other than the state updates. A ledger implemetation is expected to invoke Function \\`HandleStateUpdates\\` once per block and the \\`stateUpdates\\` parameter passed to the function captures the state changes caused by the block for the namespace. The actual data type of stateUpdates depends on the data model enabled. For instance, for KV data model, the actual type would be proto message \\`github.com/hyperledger/fabric/protos/ledger/rwset/kvrwset.KVWrite\\` Function \\`HandleStateUpdates\\` is expected to be invoked before block is committed and if this function returns an error, the ledger implementation is expected to halt block commit operation and result in a panic\n\n```go\ntype StateUpdateTrigger struct {\n\tLedgerID                    string\n\tStateUpdates                StateUpdates\n\tCommittingBlockNum          uint64\n\tCommittedStateQueryExecutor SimpleQueryExecutor\n\tPostCommitQueryExecutor     SimpleQueryExecutor\n}\n```\nStateUpdateTrigger encapsulates the information and helper tools that may be used by a StateListener\n\n```go\ntype StateUpdates map[string]interface{}\n```\nStateUpdates is the generic type to represent the state updates\n\n```go\ntype TxMissingPvtDataMap map[uint64][]*MissingPvtData\n```\nTxMissingPvtDataMap is a map from txNum to the list of missing pvtData\n\n```go\nfunc (txMissingPvtData TxMissingPvtDataMap) Add(txNum uint64, ns, coll string, isEligible bool)\n```\nAdd adds a given missing private data in the MissingPrivateDataList\n\n```go\ntype TxPvtData struct {\n\tSeqInBlock uint64\n\tWriteSet   *rwset.TxPvtReadWriteSet\n}\n```\nTxPvtData encapsulates the transaction number and pvt write-set for a transaction\n\n```go\nfunc (pvtdata *TxPvtData) Has(ns string, coll string) bool\n```\nHas returns true if the pvtdata includes the data for collection \\\u003cns,coll\u003e\n\n```go\ntype TxPvtDataMap map[uint64]*TxPvtData\n```\nTxPvtDataMap is a map from txNum to the pvtData\n\n```go\ntype TxSimulationResults struct {\n\tPubSimulationResults *rwset.TxReadWriteSet\n\tPvtSimulationResults *rwset.TxPvtReadWriteSet\n}\n```\nTxSimulationResults captures the details of the simulation results\n\n```go\nfunc (txSim *TxSimulationResults) ContainsPvtWrites() bool\n```\nContainsPvtWrites returns true if the simulation results include the private writes\n\n```go\nfunc (txSim *TxSimulationResults) GetPubSimulationBytes() ([]byte, error)\n```\nGetPubSimulationBytes returns the serialized bytes of public readwrite set\n\n```go\nfunc (txSim *TxSimulationResults) GetPvtSimulationBytes() ([]byte, error)\n```\nGetPvtSimulationBytes returns the serialized bytes of private readwrite set\n\n```go\ntype TxSimulator interface {\n\tQueryExecutor\n\t// SetState sets the given value for the given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId\n\tSetState(namespace string, key string, value []byte) error\n\t// DeleteState deletes the given namespace and key\n\tDeleteState(namespace string, key string) error\n\t// SetMultipleKeys sets the values for multiple keys in a single call\n\tSetStateMultipleKeys(namespace string, kvs map[string][]byte) error\n\t// SetStateMetadata sets the metadata associated with an existing key-tuple \u003cnamespace, key\u003e\n\tSetStateMetadata(namespace, key string, metadata map[string][]byte) error\n\t// DeleteStateMetadata deletes the metadata (if any) associated with an existing key-tuple \u003cnamespace, key\u003e\n\tDeleteStateMetadata(namespace, key string) error\n\t// ExecuteUpdate for supporting rich data model (see comments on QueryExecutor above)\n\tExecuteUpdate(query string) error\n\t// SetPrivateData sets the given value to a key in the private data state represented by the tuple \u003cnamespace, collection, key\u003e\n\tSetPrivateData(namespace, collection, key string, value []byte) error\n\t// SetPrivateDataMultipleKeys sets the values for multiple keys in the private data space in a single call\n\tSetPrivateDataMultipleKeys(namespace, collection string, kvs map[string][]byte) error\n\t// DeletePrivateData deletes the given tuple \u003cnamespace, collection, key\u003e from private data\n\tDeletePrivateData(namespace, collection, key string) error\n\t// SetPrivateDataMetadata sets the metadata associated with an existing key-tuple \u003cnamespace, collection, key\u003e\n\tSetPrivateDataMetadata(namespace, collection, key string, metadata map[string][]byte) error\n\t// DeletePrivateDataMetadata deletes the metadata associated with an existing key-tuple \u003cnamespace, collection, key\u003e\n\tDeletePrivateDataMetadata(namespace, collection, key string) error\n\t// GetTxSimulationResults encapsulates the results of the transaction simulation.\n\t// This should contain enough detail for\n\t// - The update in the state that would be caused if the transaction is to be committed\n\t// - The environment in which the transaction is executed so as to be able to decide the validity of the environment\n\t//   (at a later time on a different peer) during committing the transactions\n\t// Different ledger implementation (or configurations of a single implementation) may want to represent the above two pieces\n\t// of information in different way in order to support different data-models or optimize the information representations.\n\t// Returned type 'TxSimulationResults' contains the simulation results for both the public data and the private data.\n\t// The public data simulation results are expected to be used as in V1 while the private data simulation results are expected\n\t// to be used by the gossip to disseminate this to the other endorsers (in phase-2 of sidedb)\n\tGetTxSimulationResults() (*TxSimulationResults, error)\n}\n```\nTxSimulator simulates a transaction on a consistent snapshot of the 'as recent state as possible' Set\\* methods are for supporting KV-based data model. ExecuteUpdate method is for supporting a rich datamodel and query support\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/ledger","name":"ledger","synopsis":"","isRedistributable":true}
