Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + func AssemblePvtRWSet(channelName string, privData *rwset.TxPvtReadWriteSet, ...) (*transientstore.TxPvtReadWriteSetWithConfigInfo, error) + func CreateCCEventBytes(ccevent *pb.ChaincodeEvent) ([]byte, error) + type Channel struct + IdentityDeserializer msp.IdentityDeserializer + type ChannelFetcher interface + Channel func(channelID string) *Channel + type ChannelState struct + func (cs *ChannelState) FetchState() (endorsement.State, error) + type ChannelStateRetriever interface + NewQueryCreator func(channel string) (QueryCreator, error) + type CollectionConfigRetriever interface + GetState func(namespace string, key string) ([]byte, error) + type Context struct + ChaincodeID *pb.ChaincodeID + Channel string + Event []byte + PluginName string + Proposal *pb.Proposal + Response *pb.Response + SignedProposal *pb.SignedProposal + SimRes []byte + TxID string + Visibility []byte + func (c Context) String() string + type Endorser struct + ChannelFetcher ChannelFetcher + LocalMSP msp.IdentityDeserializer + Metrics *Metrics + PrivateDataDistributor PrivateDataDistributor + PvtRWSetAssembler PvtRWSetAssembler + Support Support + func (e *Endorser) ProcessProposal(ctx context.Context, signedProp *pb.SignedProposal) (*pb.ProposalResponse, error) + func (e *Endorser) ProcessProposalSuccessfullyOrError(up *UnpackedProposal) (*pb.ProposalResponse, error) + func (e *Endorser) SimulateProposal(txParams *ccprovider.TransactionParams, chaincodeName string, ...) (*pb.Response, []byte, *pb.ChaincodeEvent, error) + type MapBasedPluginMapper map[string]endorsement.PluginFactory + func (m MapBasedPluginMapper) PluginFactoryByName(name PluginName) endorsement.PluginFactory + type Metrics struct + DuplicateTxsFailure metrics.Counter + EndorsementsFailed metrics.Counter + InitFailed metrics.Counter + ProposalACLCheckFailed metrics.Counter + ProposalDuration metrics.Histogram + ProposalValidationFailed metrics.Counter + ProposalsReceived metrics.Counter + SimulationFailure metrics.Counter + SuccessfulProposals metrics.Counter + func NewMetrics(p metrics.Provider) *Metrics + type PeerOperations interface + GetApplicationConfig func(cid string) (channelconfig.Application, bool) + GetLedger func(cid string) ledger.PeerLedger + type PluginEndorser struct + func NewPluginEndorser(ps *PluginSupport) *PluginEndorser + func (pe *PluginEndorser) EndorseWithPlugin(pluginName, channelID string, prpBytes []byte, ...) (*pb.Endorsement, []byte, error) + type PluginMapper interface + PluginFactoryByName func(name PluginName) endorsement.PluginFactory + type PluginName string + type PluginSupport struct + type PrivateDataDistributor interface + DistributePrivateData func(channel string, txID string, ...) error + type PvtRWSetAssembler interface + AssemblePvtRWSet func(channelName string, privData *rwset.TxPvtReadWriteSet, ...) (*transientstore.TxPvtReadWriteSetWithConfigInfo, error) + type QueryCreator interface + NewQueryExecutor func() (ledger.QueryExecutor, error) + type StateContext struct + func (sc *StateContext) GetTransientByTXID(txID string) ([]*rwset.TxPvtReadWriteSet, error) + type Support interface + ChaincodeEndorsementInfo func(channelID, chaincodeID string, txsim ledger.QueryExecutor) (*lifecycle.ChaincodeEndorsementInfo, error) + CheckACL func(channelID string, signedProp *pb.SignedProposal) error + EndorseWithPlugin func(pluginName, channnelID string, prpBytes []byte, ...) (*pb.Endorsement, []byte, error) + Execute func(txParams *ccprovider.TransactionParams, name string, input *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error) + ExecuteLegacyInit func(txParams *ccprovider.TransactionParams, name, version string, ...) (*pb.Response, *pb.ChaincodeEvent, error) + GetDeployedCCInfoProvider func() ledger.DeployedChaincodeInfoProvider + GetHistoryQueryExecutor func(ledgername string) (ledger.HistoryQueryExecutor, error) + GetLedgerHeight func(channelID string) (uint64, error) + GetTransactionByID func(chid, txID string) (*pb.ProcessedTransaction, error) + GetTxSimulator func(ledgername string, txid string) (ledger.TxSimulator, error) + IsSysCC func(name string) bool + type SupportImpl struct + ACLProvider aclmgmt.ACLProvider + BuiltinSCCs scc.BuiltinSCCs + ChaincodeSupport *chaincode.ChaincodeSupport + Peer PeerOperations + func (s *SupportImpl) ChaincodeEndorsementInfo(channelID, chaincodeName string, txsim ledger.QueryExecutor) (*lifecycle.ChaincodeEndorsementInfo, error) + func (s *SupportImpl) CheckACL(channelID string, signedProp *pb.SignedProposal) error + func (s *SupportImpl) Execute(txParams *ccprovider.TransactionParams, name string, input *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error) + func (s *SupportImpl) ExecuteLegacyInit(txParams *ccprovider.TransactionParams, name, version string, ...) (*pb.Response, *pb.ChaincodeEvent, error) + func (s *SupportImpl) GetApplicationConfig(cid string) (channelconfig.Application, bool) + func (s *SupportImpl) GetDeployedCCInfoProvider() ledger.DeployedChaincodeInfoProvider + func (s *SupportImpl) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error) + func (s *SupportImpl) GetLedgerHeight(channelID string) (uint64, error) + func (s *SupportImpl) GetTransactionByID(chid, txID string) (*pb.ProcessedTransaction, error) + func (s *SupportImpl) GetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error) + func (s *SupportImpl) IsSysCC(name string) bool + func (s *SupportImpl) NewQueryCreator(channel string) (QueryCreator, error) + func (s *SupportImpl) SigningIdentityForRequest(*pb.SignedProposal) (endorsement.SigningIdentity, error) + type TransientStoreRetriever interface + StoreForChannel func(channel string) *transientstore.Store + type UnpackedProposal struct + ChaincodeName string + ChannelHeader *cb.ChannelHeader + Input *pb.ChaincodeInput + Proposal *pb.Proposal + ProposalHash []byte + SignatureHeader *cb.SignatureHeader + SignedProposal *pb.SignedProposal + func UnpackProposal(signedProp *pb.SignedProposal) (*UnpackedProposal, error) + func (up *UnpackedProposal) ChannelID() string + func (up *UnpackedProposal) TxID() string + func (up *UnpackedProposal) Validate(idDeserializer msp.IdentityDeserializer) error Other modules containing this package github.com/waszqt/fabric