Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterChaincodeServer(s grpc.ServiceRegistrar, srv ChaincodeServer)
- func RegisterChaincodeSupportServer(s grpc.ServiceRegistrar, srv ChaincodeSupportServer)
- func RegisterDeliverServer(s grpc.ServiceRegistrar, srv DeliverServer)
- func RegisterEndorserServer(s grpc.ServiceRegistrar, srv EndorserServer)
- func RegisterSnapshotServer(s grpc.ServiceRegistrar, srv SnapshotServer)
- type ACLs
- type APIResource
- type AnchorPeer
- type AnchorPeers
- type ApplicationPolicy
- func (*ApplicationPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationPolicy) GetChannelConfigPolicyReference() string
- func (x *ApplicationPolicy) GetSignaturePolicy() *common.SignaturePolicyEnvelope
- func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type
- func (*ApplicationPolicy) ProtoMessage()
- func (x *ApplicationPolicy) ProtoReflect() protoreflect.Message
- func (x *ApplicationPolicy) Reset()
- func (x *ApplicationPolicy) String() string
- type ApplicationPolicy_ChannelConfigPolicyReference
- type ApplicationPolicy_SignaturePolicy
- type BlockAndPrivateData
- func (*BlockAndPrivateData) Descriptor() ([]byte, []int)deprecated
- func (x *BlockAndPrivateData) GetBlock() *common.Block
- func (x *BlockAndPrivateData) GetPrivateDataMap() map[uint64]*rwset.TxPvtReadWriteSet
- func (*BlockAndPrivateData) ProtoMessage()
- func (x *BlockAndPrivateData) ProtoReflect() protoreflect.Message
- func (x *BlockAndPrivateData) Reset()
- func (x *BlockAndPrivateData) String() string
- type CDSData
- type ChaincodeAction
- func (*ChaincodeAction) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeAction) GetChaincodeId() *ChaincodeID
- func (x *ChaincodeAction) GetEvents() []byte
- func (x *ChaincodeAction) GetResponse() *Response
- func (x *ChaincodeAction) GetResults() []byte
- func (*ChaincodeAction) ProtoMessage()
- func (x *ChaincodeAction) ProtoReflect() protoreflect.Message
- func (x *ChaincodeAction) Reset()
- func (x *ChaincodeAction) String() string
- type ChaincodeActionPayload
- func (*ChaincodeActionPayload) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeActionPayload) GetAction() *ChaincodeEndorsedAction
- func (x *ChaincodeActionPayload) GetChaincodeProposalPayload() []byte
- func (*ChaincodeActionPayload) ProtoMessage()
- func (x *ChaincodeActionPayload) ProtoReflect() protoreflect.Message
- func (x *ChaincodeActionPayload) Reset()
- func (x *ChaincodeActionPayload) String() string
- type ChaincodeAdditionalParams
- func (*ChaincodeAdditionalParams) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeAdditionalParams) GetMaxSizeWriteBatch() uint32
- func (x *ChaincodeAdditionalParams) GetUseWriteBatch() bool
- func (*ChaincodeAdditionalParams) ProtoMessage()
- func (x *ChaincodeAdditionalParams) ProtoReflect() protoreflect.Message
- func (x *ChaincodeAdditionalParams) Reset()
- func (x *ChaincodeAdditionalParams) String() string
- type ChaincodeCall
- func (*ChaincodeCall) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeCall) GetCollectionNames() []string
- func (x *ChaincodeCall) GetDisregardNamespacePolicy() bool
- func (x *ChaincodeCall) GetKeyPolicies() []*common.SignaturePolicyEnvelope
- func (x *ChaincodeCall) GetName() string
- func (x *ChaincodeCall) GetNoPrivateReads() bool
- func (x *ChaincodeCall) GetNoPublicWrites() bool
- func (*ChaincodeCall) ProtoMessage()
- func (x *ChaincodeCall) ProtoReflect() protoreflect.Message
- func (x *ChaincodeCall) Reset()
- func (x *ChaincodeCall) String() string
- type ChaincodeClient
- type ChaincodeData
- func (*ChaincodeData) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeData) GetData() []byte
- func (x *ChaincodeData) GetEscc() string
- func (x *ChaincodeData) GetId() []byte
- func (x *ChaincodeData) GetInstantiationPolicy() *common.SignaturePolicyEnvelope
- func (x *ChaincodeData) GetName() string
- func (x *ChaincodeData) GetPolicy() *common.SignaturePolicyEnvelope
- func (x *ChaincodeData) GetVersion() string
- func (x *ChaincodeData) GetVscc() string
- func (*ChaincodeData) ProtoMessage()
- func (x *ChaincodeData) ProtoReflect() protoreflect.Message
- func (x *ChaincodeData) Reset()
- func (x *ChaincodeData) String() string
- type ChaincodeDeploymentSpec
- func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec
- func (x *ChaincodeDeploymentSpec) GetCodePackage() []byte
- func (*ChaincodeDeploymentSpec) ProtoMessage()
- func (x *ChaincodeDeploymentSpec) ProtoReflect() protoreflect.Message
- func (x *ChaincodeDeploymentSpec) Reset()
- func (x *ChaincodeDeploymentSpec) String() string
- type ChaincodeEndorsedAction
- func (*ChaincodeEndorsedAction) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeEndorsedAction) GetEndorsements() []*Endorsement
- func (x *ChaincodeEndorsedAction) GetProposalResponsePayload() []byte
- func (*ChaincodeEndorsedAction) ProtoMessage()
- func (x *ChaincodeEndorsedAction) ProtoReflect() protoreflect.Message
- func (x *ChaincodeEndorsedAction) Reset()
- func (x *ChaincodeEndorsedAction) String() string
- type ChaincodeEndorsement
- func (*ChaincodeEndorsement) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeEndorsement) GetName() string
- func (*ChaincodeEndorsement) ProtoMessage()
- func (x *ChaincodeEndorsement) ProtoReflect() protoreflect.Message
- func (x *ChaincodeEndorsement) Reset()
- func (x *ChaincodeEndorsement) String() string
- type ChaincodeEvent
- func (*ChaincodeEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeEvent) GetChaincodeId() string
- func (x *ChaincodeEvent) GetEventName() string
- func (x *ChaincodeEvent) GetPayload() []byte
- func (x *ChaincodeEvent) GetTxId() string
- func (*ChaincodeEvent) ProtoMessage()
- func (x *ChaincodeEvent) ProtoReflect() protoreflect.Message
- func (x *ChaincodeEvent) Reset()
- func (x *ChaincodeEvent) String() string
- type ChaincodeHeaderExtension
- func (*ChaincodeHeaderExtension) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID
- func (*ChaincodeHeaderExtension) ProtoMessage()
- func (x *ChaincodeHeaderExtension) ProtoReflect() protoreflect.Message
- func (x *ChaincodeHeaderExtension) Reset()
- func (x *ChaincodeHeaderExtension) String() string
- type ChaincodeID
- func (*ChaincodeID) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeID) GetName() string
- func (x *ChaincodeID) GetPath() string
- func (x *ChaincodeID) GetVersion() string
- func (*ChaincodeID) ProtoMessage()
- func (x *ChaincodeID) ProtoReflect() protoreflect.Message
- func (x *ChaincodeID) Reset()
- func (x *ChaincodeID) String() string
- type ChaincodeIdentifier
- func (*ChaincodeIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeIdentifier) GetHash() []byte
- func (x *ChaincodeIdentifier) GetVersion() string
- func (*ChaincodeIdentifier) ProtoMessage()
- func (x *ChaincodeIdentifier) ProtoReflect() protoreflect.Message
- func (x *ChaincodeIdentifier) Reset()
- func (x *ChaincodeIdentifier) String() string
- type ChaincodeInfo
- func (*ChaincodeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeInfo) GetEscc() string
- func (x *ChaincodeInfo) GetId() []byte
- func (x *ChaincodeInfo) GetInput() string
- func (x *ChaincodeInfo) GetName() string
- func (x *ChaincodeInfo) GetPath() string
- func (x *ChaincodeInfo) GetVersion() string
- func (x *ChaincodeInfo) GetVscc() string
- func (*ChaincodeInfo) ProtoMessage()
- func (x *ChaincodeInfo) ProtoReflect() protoreflect.Message
- func (x *ChaincodeInfo) Reset()
- func (x *ChaincodeInfo) String() string
- type ChaincodeInput
- func (*ChaincodeInput) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeInput) GetArgs() [][]byte
- func (x *ChaincodeInput) GetDecorations() map[string][]byte
- func (x *ChaincodeInput) GetIsInit() bool
- func (*ChaincodeInput) ProtoMessage()
- func (x *ChaincodeInput) ProtoReflect() protoreflect.Message
- func (x *ChaincodeInput) Reset()
- func (x *ChaincodeInput) String() string
- type ChaincodeInterest
- func (*ChaincodeInterest) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeInterest) GetChaincodes() []*ChaincodeCall
- func (*ChaincodeInterest) ProtoMessage()
- func (x *ChaincodeInterest) ProtoReflect() protoreflect.Message
- func (x *ChaincodeInterest) Reset()
- func (x *ChaincodeInterest) String() string
- type ChaincodeInvocationSpec
- func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec
- func (*ChaincodeInvocationSpec) ProtoMessage()
- func (x *ChaincodeInvocationSpec) ProtoReflect() protoreflect.Message
- func (x *ChaincodeInvocationSpec) Reset()
- func (x *ChaincodeInvocationSpec) String() string
- type ChaincodeMessage
- func (*ChaincodeMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent
- func (x *ChaincodeMessage) GetChannelId() string
- func (x *ChaincodeMessage) GetPayload() []byte
- func (x *ChaincodeMessage) GetProposal() *SignedProposal
- func (x *ChaincodeMessage) GetTimestamp() *timestamppb.Timestamp
- func (x *ChaincodeMessage) GetTxid() string
- func (x *ChaincodeMessage) GetType() ChaincodeMessage_Type
- func (*ChaincodeMessage) ProtoMessage()
- func (x *ChaincodeMessage) ProtoReflect() protoreflect.Message
- func (x *ChaincodeMessage) Reset()
- func (x *ChaincodeMessage) String() string
- type ChaincodeMessage_Type
- func (ChaincodeMessage_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ChaincodeMessage_Type) Enum() *ChaincodeMessage_Type
- func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChaincodeMessage_Type) Number() protoreflect.EnumNumber
- func (x ChaincodeMessage_Type) String() string
- func (ChaincodeMessage_Type) Type() protoreflect.EnumType
- type ChaincodeProposalPayload
- func (*ChaincodeProposalPayload) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeProposalPayload) GetInput() []byte
- func (x *ChaincodeProposalPayload) GetTransientMap() map[string][]byte
- func (*ChaincodeProposalPayload) ProtoMessage()
- func (x *ChaincodeProposalPayload) ProtoReflect() protoreflect.Message
- func (x *ChaincodeProposalPayload) Reset()
- func (x *ChaincodeProposalPayload) String() string
- type ChaincodeQueryResponse
- func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo
- func (*ChaincodeQueryResponse) ProtoMessage()
- func (x *ChaincodeQueryResponse) ProtoReflect() protoreflect.Message
- func (x *ChaincodeQueryResponse) Reset()
- func (x *ChaincodeQueryResponse) String() string
- type ChaincodeServer
- type ChaincodeSpec
- func (*ChaincodeSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeSpec) GetChaincodeId() *ChaincodeID
- func (x *ChaincodeSpec) GetInput() *ChaincodeInput
- func (x *ChaincodeSpec) GetTimeout() int32
- func (x *ChaincodeSpec) GetType() ChaincodeSpec_Type
- func (*ChaincodeSpec) ProtoMessage()
- func (x *ChaincodeSpec) ProtoReflect() protoreflect.Message
- func (x *ChaincodeSpec) Reset()
- func (x *ChaincodeSpec) String() string
- type ChaincodeSpec_Type
- func (ChaincodeSpec_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ChaincodeSpec_Type) Enum() *ChaincodeSpec_Type
- func (ChaincodeSpec_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChaincodeSpec_Type) Number() protoreflect.EnumNumber
- func (x ChaincodeSpec_Type) String() string
- func (ChaincodeSpec_Type) Type() protoreflect.EnumType
- type ChaincodeSupportClient
- type ChaincodeSupportServer
- type ChaincodeSupport_RegisterClient
- type ChaincodeSupport_RegisterServer
- type ChaincodeValidation
- func (*ChaincodeValidation) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeValidation) GetArgument() []byte
- func (x *ChaincodeValidation) GetName() string
- func (*ChaincodeValidation) ProtoMessage()
- func (x *ChaincodeValidation) ProtoReflect() protoreflect.Message
- func (x *ChaincodeValidation) Reset()
- func (x *ChaincodeValidation) String() string
- type Chaincode_ConnectClient
- type Chaincode_ConnectServer
- type ChannelInfo
- type ChannelQueryResponse
- func (*ChannelQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelQueryResponse) GetChannels() []*ChannelInfo
- func (*ChannelQueryResponse) ProtoMessage()
- func (x *ChannelQueryResponse) ProtoReflect() protoreflect.Message
- func (x *ChannelQueryResponse) Reset()
- func (x *ChannelQueryResponse) String() string
- type CollectionConfig
- func (*CollectionConfig) Descriptor() ([]byte, []int)deprecated
- func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload
- func (x *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig
- func (*CollectionConfig) ProtoMessage()
- func (x *CollectionConfig) ProtoReflect() protoreflect.Message
- func (x *CollectionConfig) Reset()
- func (x *CollectionConfig) String() string
- type CollectionConfigPackage
- func (*CollectionConfigPackage) Descriptor() ([]byte, []int)deprecated
- func (x *CollectionConfigPackage) GetConfig() []*CollectionConfig
- func (*CollectionConfigPackage) ProtoMessage()
- func (x *CollectionConfigPackage) ProtoReflect() protoreflect.Message
- func (x *CollectionConfigPackage) Reset()
- func (x *CollectionConfigPackage) String() string
- type CollectionConfig_StaticCollectionConfig
- type CollectionPolicyConfig
- func (*CollectionPolicyConfig) Descriptor() ([]byte, []int)deprecated
- func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload
- func (x *CollectionPolicyConfig) GetSignaturePolicy() *common.SignaturePolicyEnvelope
- func (*CollectionPolicyConfig) ProtoMessage()
- func (x *CollectionPolicyConfig) ProtoReflect() protoreflect.Message
- func (x *CollectionPolicyConfig) Reset()
- func (x *CollectionPolicyConfig) String() string
- type CollectionPolicyConfig_SignaturePolicy
- type ConfigTree
- func (*ConfigTree) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigTree) GetChannelConfig() *common.Config
- func (x *ConfigTree) GetResourcesConfig() *common.Config
- func (*ConfigTree) ProtoMessage()
- func (x *ConfigTree) ProtoReflect() protoreflect.Message
- func (x *ConfigTree) Reset()
- func (x *ConfigTree) String() string
- type DelState
- type DeliverClient
- type DeliverResponse
- func (*DeliverResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeliverResponse) GetBlock() *common.Block
- func (x *DeliverResponse) GetBlockAndPrivateData() *BlockAndPrivateData
- func (x *DeliverResponse) GetFilteredBlock() *FilteredBlock
- func (x *DeliverResponse) GetStatus() common.Status
- func (m *DeliverResponse) GetType() isDeliverResponse_Type
- func (*DeliverResponse) ProtoMessage()
- func (x *DeliverResponse) ProtoReflect() protoreflect.Message
- func (x *DeliverResponse) Reset()
- func (x *DeliverResponse) String() string
- type DeliverResponse_Block
- type DeliverResponse_BlockAndPrivateData
- type DeliverResponse_FilteredBlock
- type DeliverResponse_Status
- type DeliverServer
- type Deliver_DeliverClient
- type Deliver_DeliverFilteredClient
- type Deliver_DeliverFilteredServer
- type Deliver_DeliverServer
- type Deliver_DeliverWithPrivateDataClient
- type Deliver_DeliverWithPrivateDataServer
- type Endorsement
- func (*Endorsement) Descriptor() ([]byte, []int)deprecated
- func (x *Endorsement) GetEndorser() []byte
- func (x *Endorsement) GetSignature() []byte
- func (*Endorsement) ProtoMessage()
- func (x *Endorsement) ProtoReflect() protoreflect.Message
- func (x *Endorsement) Reset()
- func (x *Endorsement) String() string
- type EndorserClient
- type EndorserServer
- type FilteredBlock
- func (*FilteredBlock) Descriptor() ([]byte, []int)deprecated
- func (x *FilteredBlock) GetChannelId() string
- func (x *FilteredBlock) GetFilteredTransactions() []*FilteredTransaction
- func (x *FilteredBlock) GetNumber() uint64
- func (*FilteredBlock) ProtoMessage()
- func (x *FilteredBlock) ProtoReflect() protoreflect.Message
- func (x *FilteredBlock) Reset()
- func (x *FilteredBlock) String() string
- type FilteredChaincodeAction
- func (*FilteredChaincodeAction) Descriptor() ([]byte, []int)deprecated
- func (x *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent
- func (*FilteredChaincodeAction) ProtoMessage()
- func (x *FilteredChaincodeAction) ProtoReflect() protoreflect.Message
- func (x *FilteredChaincodeAction) Reset()
- func (x *FilteredChaincodeAction) String() string
- type FilteredTransaction
- func (*FilteredTransaction) Descriptor() ([]byte, []int)deprecated
- func (m *FilteredTransaction) GetData() isFilteredTransaction_Data
- func (x *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions
- func (x *FilteredTransaction) GetTxValidationCode() TxValidationCode
- func (x *FilteredTransaction) GetTxid() string
- func (x *FilteredTransaction) GetType() common.HeaderType
- func (*FilteredTransaction) ProtoMessage()
- func (x *FilteredTransaction) ProtoReflect() protoreflect.Message
- func (x *FilteredTransaction) Reset()
- func (x *FilteredTransaction) String() string
- type FilteredTransactionActions
- func (*FilteredTransactionActions) Descriptor() ([]byte, []int)deprecated
- func (x *FilteredTransactionActions) GetChaincodeActions() []*FilteredChaincodeAction
- func (*FilteredTransactionActions) ProtoMessage()
- func (x *FilteredTransactionActions) ProtoReflect() protoreflect.Message
- func (x *FilteredTransactionActions) Reset()
- func (x *FilteredTransactionActions) String() string
- type FilteredTransaction_TransactionActions
- type GetHistoryForKey
- type GetQueryResult
- func (*GetQueryResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetQueryResult) GetCollection() string
- func (x *GetQueryResult) GetMetadata() []byte
- func (x *GetQueryResult) GetQuery() string
- func (*GetQueryResult) ProtoMessage()
- func (x *GetQueryResult) ProtoReflect() protoreflect.Message
- func (x *GetQueryResult) Reset()
- func (x *GetQueryResult) String() string
- type GetState
- type GetStateByRange
- func (*GetStateByRange) Descriptor() ([]byte, []int)deprecated
- func (x *GetStateByRange) GetCollection() string
- func (x *GetStateByRange) GetEndKey() string
- func (x *GetStateByRange) GetMetadata() []byte
- func (x *GetStateByRange) GetStartKey() string
- func (*GetStateByRange) ProtoMessage()
- func (x *GetStateByRange) ProtoReflect() protoreflect.Message
- func (x *GetStateByRange) Reset()
- func (x *GetStateByRange) String() string
- type GetStateMetadata
- func (*GetStateMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *GetStateMetadata) GetCollection() string
- func (x *GetStateMetadata) GetKey() string
- func (*GetStateMetadata) ProtoMessage()
- func (x *GetStateMetadata) ProtoReflect() protoreflect.Message
- func (x *GetStateMetadata) Reset()
- func (x *GetStateMetadata) String() string
- type JoinBySnapshotStatus
- func (*JoinBySnapshotStatus) Descriptor() ([]byte, []int)deprecated
- func (x *JoinBySnapshotStatus) GetBootstrappingSnapshotDir() string
- func (x *JoinBySnapshotStatus) GetInProgress() bool
- func (*JoinBySnapshotStatus) ProtoMessage()
- func (x *JoinBySnapshotStatus) ProtoReflect() protoreflect.Message
- func (x *JoinBySnapshotStatus) Reset()
- func (x *JoinBySnapshotStatus) String() string
- type LifecycleEvent
- type MetaDataKeys
- func (MetaDataKeys) Descriptor() protoreflect.EnumDescriptor
- func (x MetaDataKeys) Enum() *MetaDataKeys
- func (MetaDataKeys) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetaDataKeys) Number() protoreflect.EnumNumber
- func (x MetaDataKeys) String() string
- func (MetaDataKeys) Type() protoreflect.EnumType
- type ProcessedTransaction
- func (*ProcessedTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessedTransaction) GetTransactionEnvelope() *common.Envelope
- func (x *ProcessedTransaction) GetValidationCode() int32
- func (*ProcessedTransaction) ProtoMessage()
- func (x *ProcessedTransaction) ProtoReflect() protoreflect.Message
- func (x *ProcessedTransaction) Reset()
- func (x *ProcessedTransaction) String() string
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)deprecated
- func (x *Proposal) GetExtension() []byte
- func (x *Proposal) GetHeader() []byte
- func (x *Proposal) GetPayload() []byte
- func (*Proposal) ProtoMessage()
- func (x *Proposal) ProtoReflect() protoreflect.Message
- func (x *Proposal) Reset()
- func (x *Proposal) String() string
- type ProposalResponse
- func (*ProposalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalResponse) GetEndorsement() *Endorsement
- func (x *ProposalResponse) GetInterest() *ChaincodeInterest
- func (x *ProposalResponse) GetPayload() []byte
- func (x *ProposalResponse) GetResponse() *Response
- func (x *ProposalResponse) GetTimestamp() *timestamppb.Timestamp
- func (x *ProposalResponse) GetVersion() int32
- func (*ProposalResponse) ProtoMessage()
- func (x *ProposalResponse) ProtoReflect() protoreflect.Message
- func (x *ProposalResponse) Reset()
- func (x *ProposalResponse) String() string
- type ProposalResponsePayload
- func (*ProposalResponsePayload) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalResponsePayload) GetExtension() []byte
- func (x *ProposalResponsePayload) GetProposalHash() []byte
- func (*ProposalResponsePayload) ProtoMessage()
- func (x *ProposalResponsePayload) ProtoReflect() protoreflect.Message
- func (x *ProposalResponsePayload) Reset()
- func (x *ProposalResponsePayload) String() string
- type PurgePrivateState
- func (*PurgePrivateState) Descriptor() ([]byte, []int)deprecated
- func (x *PurgePrivateState) GetCollection() string
- func (x *PurgePrivateState) GetKey() string
- func (*PurgePrivateState) ProtoMessage()
- func (x *PurgePrivateState) ProtoReflect() protoreflect.Message
- func (x *PurgePrivateState) Reset()
- func (x *PurgePrivateState) String() string
- type PutState
- func (*PutState) Descriptor() ([]byte, []int)deprecated
- func (x *PutState) GetCollection() string
- func (x *PutState) GetKey() string
- func (x *PutState) GetValue() []byte
- func (*PutState) ProtoMessage()
- func (x *PutState) ProtoReflect() protoreflect.Message
- func (x *PutState) Reset()
- func (x *PutState) String() string
- type PutStateMetadata
- func (*PutStateMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *PutStateMetadata) GetCollection() string
- func (x *PutStateMetadata) GetKey() string
- func (x *PutStateMetadata) GetMetadata() *StateMetadata
- func (*PutStateMetadata) ProtoMessage()
- func (x *PutStateMetadata) ProtoReflect() protoreflect.Message
- func (x *PutStateMetadata) Reset()
- func (x *PutStateMetadata) String() string
- type QueryMetadata
- func (*QueryMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *QueryMetadata) GetBookmark() string
- func (x *QueryMetadata) GetPageSize() int32
- func (*QueryMetadata) ProtoMessage()
- func (x *QueryMetadata) ProtoReflect() protoreflect.Message
- func (x *QueryMetadata) Reset()
- func (x *QueryMetadata) String() string
- type QueryPendingSnapshotsResponse
- func (*QueryPendingSnapshotsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPendingSnapshotsResponse) GetBlockNumbers() []uint64
- func (*QueryPendingSnapshotsResponse) ProtoMessage()
- func (x *QueryPendingSnapshotsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPendingSnapshotsResponse) Reset()
- func (x *QueryPendingSnapshotsResponse) String() string
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResponse) GetHasMore() bool
- func (x *QueryResponse) GetId() string
- func (x *QueryResponse) GetMetadata() []byte
- func (x *QueryResponse) GetResults() []*QueryResultBytes
- func (*QueryResponse) ProtoMessage()
- func (x *QueryResponse) ProtoReflect() protoreflect.Message
- func (x *QueryResponse) Reset()
- func (x *QueryResponse) String() string
- type QueryResponseMetadata
- func (*QueryResponseMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResponseMetadata) GetBookmark() string
- func (x *QueryResponseMetadata) GetFetchedRecordsCount() int32
- func (*QueryResponseMetadata) ProtoMessage()
- func (x *QueryResponseMetadata) ProtoReflect() protoreflect.Message
- func (x *QueryResponseMetadata) Reset()
- func (x *QueryResponseMetadata) String() string
- type QueryResultBytes
- type QueryStateClose
- type QueryStateNext
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetMessage() string
- func (x *Response) GetPayload() []byte
- func (x *Response) GetStatus() int32
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type SignedChaincodeDeploymentSpec
- func (*SignedChaincodeDeploymentSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec() []byte
- func (x *SignedChaincodeDeploymentSpec) GetInstantiationPolicy() []byte
- func (x *SignedChaincodeDeploymentSpec) GetOwnerEndorsements() []*Endorsement
- func (*SignedChaincodeDeploymentSpec) ProtoMessage()
- func (x *SignedChaincodeDeploymentSpec) ProtoReflect() protoreflect.Message
- func (x *SignedChaincodeDeploymentSpec) Reset()
- func (x *SignedChaincodeDeploymentSpec) String() string
- type SignedProposal
- func (*SignedProposal) Descriptor() ([]byte, []int)deprecated
- func (x *SignedProposal) GetProposalBytes() []byte
- func (x *SignedProposal) GetSignature() []byte
- func (*SignedProposal) ProtoMessage()
- func (x *SignedProposal) ProtoReflect() protoreflect.Message
- func (x *SignedProposal) Reset()
- func (x *SignedProposal) String() string
- type SignedSnapshotRequest
- func (*SignedSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignedSnapshotRequest) GetRequest() []byte
- func (x *SignedSnapshotRequest) GetSignature() []byte
- func (*SignedSnapshotRequest) ProtoMessage()
- func (x *SignedSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *SignedSnapshotRequest) Reset()
- func (x *SignedSnapshotRequest) String() string
- type SnapshotClient
- type SnapshotQuery
- func (*SnapshotQuery) Descriptor() ([]byte, []int)deprecated
- func (x *SnapshotQuery) GetChannelId() string
- func (x *SnapshotQuery) GetSignatureHeader() *common.SignatureHeader
- func (*SnapshotQuery) ProtoMessage()
- func (x *SnapshotQuery) ProtoReflect() protoreflect.Message
- func (x *SnapshotQuery) Reset()
- func (x *SnapshotQuery) String() string
- type SnapshotRequest
- func (*SnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SnapshotRequest) GetBlockNumber() uint64
- func (x *SnapshotRequest) GetChannelId() string
- func (x *SnapshotRequest) GetSignatureHeader() *common.SignatureHeader
- func (*SnapshotRequest) ProtoMessage()
- func (x *SnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *SnapshotRequest) Reset()
- func (x *SnapshotRequest) String() string
- type SnapshotServer
- type StateMetadata
- func (*StateMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *StateMetadata) GetMetakey() string
- func (x *StateMetadata) GetValue() []byte
- func (*StateMetadata) ProtoMessage()
- func (x *StateMetadata) ProtoReflect() protoreflect.Message
- func (x *StateMetadata) Reset()
- func (x *StateMetadata) String() string
- type StateMetadataResult
- func (*StateMetadataResult) Descriptor() ([]byte, []int)deprecated
- func (x *StateMetadataResult) GetEntries() []*StateMetadata
- func (*StateMetadataResult) ProtoMessage()
- func (x *StateMetadataResult) ProtoReflect() protoreflect.Message
- func (x *StateMetadataResult) Reset()
- func (x *StateMetadataResult) String() string
- type StaticCollectionConfig
- func (*StaticCollectionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *StaticCollectionConfig) GetBlockToLive() uint64
- func (x *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy
- func (x *StaticCollectionConfig) GetMaximumPeerCount() int32
- func (x *StaticCollectionConfig) GetMemberOnlyRead() bool
- func (x *StaticCollectionConfig) GetMemberOnlyWrite() bool
- func (x *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig
- func (x *StaticCollectionConfig) GetName() string
- func (x *StaticCollectionConfig) GetRequiredPeerCount() int32
- func (*StaticCollectionConfig) ProtoMessage()
- func (x *StaticCollectionConfig) ProtoReflect() protoreflect.Message
- func (x *StaticCollectionConfig) Reset()
- func (x *StaticCollectionConfig) String() string
- type Transaction
- type TransactionAction
- func (*TransactionAction) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionAction) GetHeader() []byte
- func (x *TransactionAction) GetPayload() []byte
- func (*TransactionAction) ProtoMessage()
- func (x *TransactionAction) ProtoReflect() protoreflect.Message
- func (x *TransactionAction) Reset()
- func (x *TransactionAction) String() string
- type TxValidationCode
- func (TxValidationCode) Descriptor() protoreflect.EnumDescriptor
- func (x TxValidationCode) Enum() *TxValidationCode
- func (TxValidationCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x TxValidationCode) Number() protoreflect.EnumNumber
- func (x TxValidationCode) String() string
- func (TxValidationCode) Type() protoreflect.EnumType
- type UnimplementedChaincodeServer
- type UnimplementedChaincodeSupportServer
- type UnimplementedDeliverServer
- func (UnimplementedDeliverServer) Deliver(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error
- func (UnimplementedDeliverServer) DeliverFiltered(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error
- func (UnimplementedDeliverServer) DeliverWithPrivateData(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error
- type UnimplementedEndorserServer
- type UnimplementedSnapshotServer
- func (UnimplementedSnapshotServer) Cancel(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error)
- func (UnimplementedSnapshotServer) Generate(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error)
- func (UnimplementedSnapshotServer) QueryPendings(context.Context, *SignedSnapshotRequest) (*QueryPendingSnapshotsResponse, error)
- type UnsafeChaincodeServer
- type UnsafeChaincodeSupportServer
- type UnsafeDeliverServer
- type UnsafeEndorserServer
- type UnsafeSnapshotServer
- type VSCCArgs
- type WriteBatchState
- type WriteRecord
- func (*WriteRecord) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRecord) GetCollection() string
- func (x *WriteRecord) GetKey() string
- func (x *WriteRecord) GetMetadata() *StateMetadata
- func (x *WriteRecord) GetType() WriteRecord_Type
- func (x *WriteRecord) GetValue() []byte
- func (*WriteRecord) ProtoMessage()
- func (x *WriteRecord) ProtoReflect() protoreflect.Message
- func (x *WriteRecord) Reset()
- func (x *WriteRecord) String() string
- type WriteRecord_Type
- func (WriteRecord_Type) Descriptor() protoreflect.EnumDescriptor
- func (x WriteRecord_Type) Enum() *WriteRecord_Type
- func (WriteRecord_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x WriteRecord_Type) Number() protoreflect.EnumNumber
- func (x WriteRecord_Type) String() string
- func (WriteRecord_Type) Type() protoreflect.EnumType
Constants ¶
const ( Deliver_Deliver_FullMethodName = "/protos.Deliver/Deliver" Deliver_DeliverFiltered_FullMethodName = "/protos.Deliver/DeliverFiltered" Deliver_DeliverWithPrivateData_FullMethodName = "/protos.Deliver/DeliverWithPrivateData" )
const ( Snapshot_Generate_FullMethodName = "/protos.Snapshot/Generate" Snapshot_Cancel_FullMethodName = "/protos.Snapshot/Cancel" Snapshot_QueryPendings_FullMethodName = "/protos.Snapshot/QueryPendings" )
const (
ChaincodeSupport_Register_FullMethodName = "/protos.ChaincodeSupport/Register"
)
const (
Chaincode_Connect_FullMethodName = "/protos.Chaincode/Connect"
)
const (
Endorser_ProcessProposal_FullMethodName = "/protos.Endorser/ProcessProposal"
)
Variables ¶
var ( ChaincodeSpec_Type_name = map[int32]string{ 0: "UNDEFINED", 1: "GOLANG", 2: "NODE", 3: "CAR", 4: "JAVA", } ChaincodeSpec_Type_value = map[string]int32{ "UNDEFINED": 0, "GOLANG": 1, "NODE": 2, "CAR": 3, "JAVA": 4, } )
Enum value maps for ChaincodeSpec_Type.
var ( ChaincodeMessage_Type_name = map[int32]string{ 0: "UNDEFINED", 1: "REGISTER", 2: "REGISTERED", 3: "INIT", 4: "READY", 5: "TRANSACTION", 6: "COMPLETED", 7: "ERROR", 8: "GET_STATE", 9: "PUT_STATE", 10: "DEL_STATE", 11: "INVOKE_CHAINCODE", 13: "RESPONSE", 14: "GET_STATE_BY_RANGE", 15: "GET_QUERY_RESULT", 16: "QUERY_STATE_NEXT", 17: "QUERY_STATE_CLOSE", 18: "KEEPALIVE", 19: "GET_HISTORY_FOR_KEY", 20: "GET_STATE_METADATA", 21: "PUT_STATE_METADATA", 22: "GET_PRIVATE_DATA_HASH", 23: "PURGE_PRIVATE_DATA", 24: "WRITE_BATCH_STATE", } ChaincodeMessage_Type_value = map[string]int32{ "UNDEFINED": 0, "REGISTER": 1, "REGISTERED": 2, "INIT": 3, "READY": 4, "TRANSACTION": 5, "COMPLETED": 6, "ERROR": 7, "GET_STATE": 8, "PUT_STATE": 9, "DEL_STATE": 10, "INVOKE_CHAINCODE": 11, "RESPONSE": 13, "GET_STATE_BY_RANGE": 14, "GET_QUERY_RESULT": 15, "QUERY_STATE_NEXT": 16, "QUERY_STATE_CLOSE": 17, "KEEPALIVE": 18, "GET_HISTORY_FOR_KEY": 19, "GET_STATE_METADATA": 20, "PUT_STATE_METADATA": 21, "GET_PRIVATE_DATA_HASH": 22, "PURGE_PRIVATE_DATA": 23, "WRITE_BATCH_STATE": 24, } )
Enum value maps for ChaincodeMessage_Type.
var ( WriteRecord_Type_name = map[int32]string{ 0: "UNDEFINED", 9: "PUT_STATE", 10: "DEL_STATE", 21: "PUT_STATE_METADATA", 23: "PURGE_PRIVATE_DATA", } WriteRecord_Type_value = map[string]int32{ "UNDEFINED": 0, "PUT_STATE": 9, "DEL_STATE": 10, "PUT_STATE_METADATA": 21, "PURGE_PRIVATE_DATA": 23, } )
Enum value maps for WriteRecord_Type.
var ( TxValidationCode_name = map[int32]string{ 0: "VALID", 1: "NIL_ENVELOPE", 2: "BAD_PAYLOAD", 3: "BAD_COMMON_HEADER", 4: "BAD_CREATOR_SIGNATURE", 5: "INVALID_ENDORSER_TRANSACTION", 6: "INVALID_CONFIG_TRANSACTION", 7: "UNSUPPORTED_TX_PAYLOAD", 8: "BAD_PROPOSAL_TXID", 9: "DUPLICATE_TXID", 10: "ENDORSEMENT_POLICY_FAILURE", 11: "MVCC_READ_CONFLICT", 12: "PHANTOM_READ_CONFLICT", 13: "UNKNOWN_TX_TYPE", 14: "TARGET_CHAIN_NOT_FOUND", 15: "MARSHAL_TX_ERROR", 16: "NIL_TXACTION", 17: "EXPIRED_CHAINCODE", 18: "CHAINCODE_VERSION_CONFLICT", 19: "BAD_HEADER_EXTENSION", 20: "BAD_CHANNEL_HEADER", 21: "BAD_RESPONSE_PAYLOAD", 22: "BAD_RWSET", 23: "ILLEGAL_WRITESET", 24: "INVALID_WRITESET", 25: "INVALID_CHAINCODE", 254: "NOT_VALIDATED", 255: "INVALID_OTHER_REASON", } TxValidationCode_value = map[string]int32{ "VALID": 0, "NIL_ENVELOPE": 1, "BAD_PAYLOAD": 2, "BAD_COMMON_HEADER": 3, "BAD_CREATOR_SIGNATURE": 4, "INVALID_ENDORSER_TRANSACTION": 5, "INVALID_CONFIG_TRANSACTION": 6, "UNSUPPORTED_TX_PAYLOAD": 7, "BAD_PROPOSAL_TXID": 8, "DUPLICATE_TXID": 9, "ENDORSEMENT_POLICY_FAILURE": 10, "MVCC_READ_CONFLICT": 11, "PHANTOM_READ_CONFLICT": 12, "UNKNOWN_TX_TYPE": 13, "TARGET_CHAIN_NOT_FOUND": 14, "MARSHAL_TX_ERROR": 15, "NIL_TXACTION": 16, "EXPIRED_CHAINCODE": 17, "CHAINCODE_VERSION_CONFLICT": 18, "BAD_HEADER_EXTENSION": 19, "BAD_CHANNEL_HEADER": 20, "BAD_RESPONSE_PAYLOAD": 21, "BAD_RWSET": 22, "ILLEGAL_WRITESET": 23, "INVALID_WRITESET": 24, "INVALID_CHAINCODE": 25, "NOT_VALIDATED": 254, "INVALID_OTHER_REASON": 255, } )
Enum value maps for TxValidationCode.
var ( MetaDataKeys_name = map[int32]string{ 0: "VALIDATION_PARAMETER", 1: "VALIDATION_PARAMETER_V2", } MetaDataKeys_value = map[string]int32{ "VALIDATION_PARAMETER": 0, "VALIDATION_PARAMETER_V2": 1, } )
Enum value maps for MetaDataKeys.
var ChaincodeSupport_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.ChaincodeSupport", HandlerType: (*ChaincodeSupportServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Register", Handler: _ChaincodeSupport_Register_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "peer/chaincode_shim.proto", }
ChaincodeSupport_ServiceDesc is the grpc.ServiceDesc for ChaincodeSupport service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Chaincode_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Chaincode", HandlerType: (*ChaincodeServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Connect", Handler: _Chaincode_Connect_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "peer/chaincode_shim.proto", }
Chaincode_ServiceDesc is the grpc.ServiceDesc for Chaincode service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Deliver_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Deliver", HandlerType: (*DeliverServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Deliver", Handler: _Deliver_Deliver_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "DeliverFiltered", Handler: _Deliver_DeliverFiltered_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "DeliverWithPrivateData", Handler: _Deliver_DeliverWithPrivateData_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "peer/events.proto", }
Deliver_ServiceDesc is the grpc.ServiceDesc for Deliver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Endorser_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Endorser", HandlerType: (*EndorserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProcessProposal", Handler: _Endorser_ProcessProposal_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "peer/peer.proto", }
Endorser_ServiceDesc is the grpc.ServiceDesc for Endorser service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_peer_chaincode_event_proto protoreflect.FileDescriptor
var File_peer_chaincode_proto protoreflect.FileDescriptor
var File_peer_chaincode_shim_proto protoreflect.FileDescriptor
var File_peer_collection_proto protoreflect.FileDescriptor
var File_peer_configuration_proto protoreflect.FileDescriptor
var File_peer_events_proto protoreflect.FileDescriptor
var File_peer_peer_proto protoreflect.FileDescriptor
var File_peer_policy_proto protoreflect.FileDescriptor
var File_peer_proposal_proto protoreflect.FileDescriptor
var File_peer_proposal_response_proto protoreflect.FileDescriptor
var File_peer_query_proto protoreflect.FileDescriptor
var File_peer_resources_proto protoreflect.FileDescriptor
var File_peer_signed_cc_dep_spec_proto protoreflect.FileDescriptor
var File_peer_snapshot_proto protoreflect.FileDescriptor
var File_peer_transaction_proto protoreflect.FileDescriptor
var Snapshot_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Snapshot", HandlerType: (*SnapshotServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Generate", Handler: _Snapshot_Generate_Handler, }, { MethodName: "Cancel", Handler: _Snapshot_Cancel_Handler, }, { MethodName: "QueryPendings", Handler: _Snapshot_QueryPendings_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "peer/snapshot.proto", }
Snapshot_ServiceDesc is the grpc.ServiceDesc for Snapshot service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterChaincodeServer ¶
func RegisterChaincodeServer(s grpc.ServiceRegistrar, srv ChaincodeServer)
func RegisterChaincodeSupportServer ¶
func RegisterChaincodeSupportServer(s grpc.ServiceRegistrar, srv ChaincodeSupportServer)
func RegisterDeliverServer ¶
func RegisterDeliverServer(s grpc.ServiceRegistrar, srv DeliverServer)
func RegisterEndorserServer ¶
func RegisterEndorserServer(s grpc.ServiceRegistrar, srv EndorserServer)
func RegisterSnapshotServer ¶
func RegisterSnapshotServer(s grpc.ServiceRegistrar, srv SnapshotServer)
Types ¶
type ACLs ¶
type ACLs struct { Acls map[string]*APIResource `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
ACLs provides mappings for resources in a channel. APIResource encapsulates reference to a policy used to determine ACL for the resource
func (*ACLs) Descriptor
deprecated
func (*ACLs) GetAcls ¶
func (x *ACLs) GetAcls() map[string]*APIResource
func (*ACLs) ProtoMessage ¶
func (*ACLs) ProtoMessage()
func (*ACLs) ProtoReflect ¶
func (x *ACLs) ProtoReflect() protoreflect.Message
type APIResource ¶
type APIResource struct { PolicyRef string `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"` // The policy name to use for this API // contains filtered or unexported fields }
APIResource represents an API resource in the peer whose ACL is determined by the policy_ref field
func (*APIResource) Descriptor
deprecated
func (*APIResource) Descriptor() ([]byte, []int)
Deprecated: Use APIResource.ProtoReflect.Descriptor instead.
func (*APIResource) GetPolicyRef ¶
func (x *APIResource) GetPolicyRef() string
func (*APIResource) ProtoMessage ¶
func (*APIResource) ProtoMessage()
func (*APIResource) ProtoReflect ¶
func (x *APIResource) ProtoReflect() protoreflect.Message
func (*APIResource) Reset ¶
func (x *APIResource) Reset()
func (*APIResource) String ¶
func (x *APIResource) String() string
type AnchorPeer ¶
type AnchorPeer struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // DNS host name of the anchor peer Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // The port number // contains filtered or unexported fields }
AnchorPeer message structure which provides information about anchor peer, it includes host name, port number and peer certificate.
func (*AnchorPeer) Descriptor
deprecated
func (*AnchorPeer) Descriptor() ([]byte, []int)
Deprecated: Use AnchorPeer.ProtoReflect.Descriptor instead.
func (*AnchorPeer) GetHost ¶
func (x *AnchorPeer) GetHost() string
func (*AnchorPeer) GetPort ¶
func (x *AnchorPeer) GetPort() int32
func (*AnchorPeer) ProtoMessage ¶
func (*AnchorPeer) ProtoMessage()
func (*AnchorPeer) ProtoReflect ¶
func (x *AnchorPeer) ProtoReflect() protoreflect.Message
func (*AnchorPeer) Reset ¶
func (x *AnchorPeer) Reset()
func (*AnchorPeer) String ¶
func (x *AnchorPeer) String() string
type AnchorPeers ¶
type AnchorPeers struct { AnchorPeers []*AnchorPeer `protobuf:"bytes,1,rep,name=anchor_peers,json=anchorPeers,proto3" json:"anchor_peers,omitempty"` // contains filtered or unexported fields }
AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
func (*AnchorPeers) Descriptor
deprecated
func (*AnchorPeers) Descriptor() ([]byte, []int)
Deprecated: Use AnchorPeers.ProtoReflect.Descriptor instead.
func (*AnchorPeers) GetAnchorPeers ¶
func (x *AnchorPeers) GetAnchorPeers() []*AnchorPeer
func (*AnchorPeers) ProtoMessage ¶
func (*AnchorPeers) ProtoMessage()
func (*AnchorPeers) ProtoReflect ¶
func (x *AnchorPeers) ProtoReflect() protoreflect.Message
func (*AnchorPeers) Reset ¶
func (x *AnchorPeers) Reset()
func (*AnchorPeers) String ¶
func (x *AnchorPeers) String() string
type ApplicationPolicy ¶
type ApplicationPolicy struct { // Types that are assignable to Type: // // *ApplicationPolicy_SignaturePolicy // *ApplicationPolicy_ChannelConfigPolicyReference Type isApplicationPolicy_Type `protobuf_oneof:"Type"` // contains filtered or unexported fields }
ApplicationPolicy captures the diffenrent policy types that are set and evaluted at the application level.
func (*ApplicationPolicy) Descriptor
deprecated
func (*ApplicationPolicy) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationPolicy.ProtoReflect.Descriptor instead.
func (*ApplicationPolicy) GetChannelConfigPolicyReference ¶
func (x *ApplicationPolicy) GetChannelConfigPolicyReference() string
func (*ApplicationPolicy) GetSignaturePolicy ¶
func (x *ApplicationPolicy) GetSignaturePolicy() *common.SignaturePolicyEnvelope
func (*ApplicationPolicy) GetType ¶
func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type
func (*ApplicationPolicy) ProtoMessage ¶
func (*ApplicationPolicy) ProtoMessage()
func (*ApplicationPolicy) ProtoReflect ¶
func (x *ApplicationPolicy) ProtoReflect() protoreflect.Message
func (*ApplicationPolicy) Reset ¶
func (x *ApplicationPolicy) Reset()
func (*ApplicationPolicy) String ¶
func (x *ApplicationPolicy) String() string
type ApplicationPolicy_ChannelConfigPolicyReference ¶
type ApplicationPolicy_ChannelConfigPolicyReference struct { // ChannelConfigPolicyReference is used when the policy is // specified as a string that references a policy defined in // the configuration of the channel ChannelConfigPolicyReference string `protobuf:"bytes,2,opt,name=channel_config_policy_reference,json=channelConfigPolicyReference,proto3,oneof"` }
type ApplicationPolicy_SignaturePolicy ¶
type ApplicationPolicy_SignaturePolicy struct { // SignaturePolicy type is used if the policy is specified as // a combination (using threshold gates) of signatures from MSP // principals SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` }
type BlockAndPrivateData ¶
type BlockAndPrivateData struct { Block *common.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // map from tx_seq_in_block to rwset.TxPvtReadWriteSet PrivateDataMap map[uint64]*rwset.TxPvtReadWriteSet `` /* 194-byte string literal not displayed */ // contains filtered or unexported fields }
BlockAndPrivateData contains Block and a map from tx_seq_in_block to rwset.TxPvtReadWriteSet
func (*BlockAndPrivateData) Descriptor
deprecated
func (*BlockAndPrivateData) Descriptor() ([]byte, []int)
Deprecated: Use BlockAndPrivateData.ProtoReflect.Descriptor instead.
func (*BlockAndPrivateData) GetBlock ¶
func (x *BlockAndPrivateData) GetBlock() *common.Block
func (*BlockAndPrivateData) GetPrivateDataMap ¶
func (x *BlockAndPrivateData) GetPrivateDataMap() map[uint64]*rwset.TxPvtReadWriteSet
func (*BlockAndPrivateData) ProtoMessage ¶
func (*BlockAndPrivateData) ProtoMessage()
func (*BlockAndPrivateData) ProtoReflect ¶
func (x *BlockAndPrivateData) ProtoReflect() protoreflect.Message
func (*BlockAndPrivateData) Reset ¶
func (x *BlockAndPrivateData) Reset()
func (*BlockAndPrivateData) String ¶
func (x *BlockAndPrivateData) String() string
type CDSData ¶
type CDSData struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // hash of ChaincodeDeploymentSpec.code_package Metadatahash []byte `protobuf:"bytes,2,opt,name=metadatahash,proto3" json:"metadatahash,omitempty"` // hash of ChaincodeID.name + ChaincodeID.version // contains filtered or unexported fields }
CDSData is data stored in the LSCC on instantiation of a CC for CDSPackage. This needs to be serialized for ChaincodeData hence the protobuf format
func (*CDSData) Descriptor
deprecated
func (*CDSData) GetMetadatahash ¶
func (*CDSData) ProtoMessage ¶
func (*CDSData) ProtoMessage()
func (*CDSData) ProtoReflect ¶
func (x *CDSData) ProtoReflect() protoreflect.Message
type ChaincodeAction ¶
type ChaincodeAction struct { // This field contains the read set and the write set produced by the // chaincode executing this invocation. Results []byte `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"` // This field contains the event generated by the chaincode. // Only a single marshaled ChaincodeEvent is included. Events []byte `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty"` // This field contains the result of executing this invocation. Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // This field contains the ChaincodeID of executing this invocation. Endorser // will set it with the ChaincodeID called by endorser while simulating proposal. // Committer will validate the version matching with latest chaincode version. // Adding ChaincodeID to keep version opens up the possibility of multiple // ChaincodeAction per transaction. ChaincodeId *ChaincodeID `protobuf:"bytes,4,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` // contains filtered or unexported fields }
ChaincodeAction contains the executed chaincode results, response, and event.
func (*ChaincodeAction) Descriptor
deprecated
func (*ChaincodeAction) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeAction.ProtoReflect.Descriptor instead.
func (*ChaincodeAction) GetChaincodeId ¶
func (x *ChaincodeAction) GetChaincodeId() *ChaincodeID
func (*ChaincodeAction) GetEvents ¶
func (x *ChaincodeAction) GetEvents() []byte
func (*ChaincodeAction) GetResponse ¶
func (x *ChaincodeAction) GetResponse() *Response
func (*ChaincodeAction) GetResults ¶
func (x *ChaincodeAction) GetResults() []byte
func (*ChaincodeAction) ProtoMessage ¶
func (*ChaincodeAction) ProtoMessage()
func (*ChaincodeAction) ProtoReflect ¶
func (x *ChaincodeAction) ProtoReflect() protoreflect.Message
func (*ChaincodeAction) Reset ¶
func (x *ChaincodeAction) Reset()
func (*ChaincodeAction) String ¶
func (x *ChaincodeAction) String() string
type ChaincodeActionPayload ¶
type ChaincodeActionPayload struct { // This field contains the bytes of the ChaincodeProposalPayload message from // the original invocation (essentially the arguments) after the application // of the visibility function. The main visibility modes are "full" (the // entire ChaincodeProposalPayload message is included here), "hash" (only // the hash of the ChaincodeProposalPayload message is included) or // "nothing". This field will be used to check the consistency of // ProposalResponsePayload.proposalHash. For the CHAINCODE type, // ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || // f(ChaincodeProposalPayload)) where f is the visibility function. ChaincodeProposalPayload []byte `` /* 135-byte string literal not displayed */ // The list of actions to apply to the ledger Action *ChaincodeEndorsedAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
ChaincodeActionPayload is the message to be used for the TransactionAction's payload when the Header's type is set to CHAINCODE. It carries the chaincodeProposalPayload and an endorsed action to apply to the ledger.
func (*ChaincodeActionPayload) Descriptor
deprecated
func (*ChaincodeActionPayload) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeActionPayload.ProtoReflect.Descriptor instead.
func (*ChaincodeActionPayload) GetAction ¶
func (x *ChaincodeActionPayload) GetAction() *ChaincodeEndorsedAction
func (*ChaincodeActionPayload) GetChaincodeProposalPayload ¶
func (x *ChaincodeActionPayload) GetChaincodeProposalPayload() []byte
func (*ChaincodeActionPayload) ProtoMessage ¶
func (*ChaincodeActionPayload) ProtoMessage()
func (*ChaincodeActionPayload) ProtoReflect ¶
func (x *ChaincodeActionPayload) ProtoReflect() protoreflect.Message
func (*ChaincodeActionPayload) Reset ¶
func (x *ChaincodeActionPayload) Reset()
func (*ChaincodeActionPayload) String ¶
func (x *ChaincodeActionPayload) String() string
type ChaincodeAdditionalParams ¶ added in v0.3.5
type ChaincodeAdditionalParams struct { UseWriteBatch bool `protobuf:"varint,1,opt,name=use_write_batch,json=useWriteBatch,proto3" json:"use_write_batch,omitempty"` // an indication that the peer can handle state write batches MaxSizeWriteBatch uint32 `protobuf:"varint,2,opt,name=max_size_write_batch,json=maxSizeWriteBatch,proto3" json:"max_size_write_batch,omitempty"` // maximum size of batches with write state // contains filtered or unexported fields }
ChaincodeAdditionalParams - parameters passed to chaincode to notify about peer capabilities
func (*ChaincodeAdditionalParams) Descriptor
deprecated
added in
v0.3.5
func (*ChaincodeAdditionalParams) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeAdditionalParams.ProtoReflect.Descriptor instead.
func (*ChaincodeAdditionalParams) GetMaxSizeWriteBatch ¶ added in v0.3.5
func (x *ChaincodeAdditionalParams) GetMaxSizeWriteBatch() uint32
func (*ChaincodeAdditionalParams) GetUseWriteBatch ¶ added in v0.3.5
func (x *ChaincodeAdditionalParams) GetUseWriteBatch() bool
func (*ChaincodeAdditionalParams) ProtoMessage ¶ added in v0.3.5
func (*ChaincodeAdditionalParams) ProtoMessage()
func (*ChaincodeAdditionalParams) ProtoReflect ¶ added in v0.3.5
func (x *ChaincodeAdditionalParams) ProtoReflect() protoreflect.Message
func (*ChaincodeAdditionalParams) Reset ¶ added in v0.3.5
func (x *ChaincodeAdditionalParams) Reset()
func (*ChaincodeAdditionalParams) String ¶ added in v0.3.5
func (x *ChaincodeAdditionalParams) String() string
type ChaincodeCall ¶
type ChaincodeCall struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"` NoPrivateReads bool `protobuf:"varint,3,opt,name=no_private_reads,json=noPrivateReads,proto3" json:"no_private_reads,omitempty"` // Indicates we do not need to read from private data NoPublicWrites bool `protobuf:"varint,4,opt,name=no_public_writes,json=noPublicWrites,proto3" json:"no_public_writes,omitempty"` // Indicates we do not need to write to the chaincode namespace // The set of signature policies associated with states in the write-set // that have state-based endorsement policies. KeyPolicies []*common.SignaturePolicyEnvelope `protobuf:"bytes,5,rep,name=key_policies,json=keyPolicies,proto3" json:"key_policies,omitempty"` // Indicates we wish to ignore the namespace endorsement policy DisregardNamespacePolicy bool `` /* 136-byte string literal not displayed */ // contains filtered or unexported fields }
ChaincodeCall defines a call to a chaincode. It may have collections that are related to the chaincode
func (*ChaincodeCall) Descriptor
deprecated
func (*ChaincodeCall) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeCall.ProtoReflect.Descriptor instead.
func (*ChaincodeCall) GetCollectionNames ¶
func (x *ChaincodeCall) GetCollectionNames() []string
func (*ChaincodeCall) GetDisregardNamespacePolicy ¶
func (x *ChaincodeCall) GetDisregardNamespacePolicy() bool
func (*ChaincodeCall) GetKeyPolicies ¶
func (x *ChaincodeCall) GetKeyPolicies() []*common.SignaturePolicyEnvelope
func (*ChaincodeCall) GetName ¶
func (x *ChaincodeCall) GetName() string
func (*ChaincodeCall) GetNoPrivateReads ¶
func (x *ChaincodeCall) GetNoPrivateReads() bool
func (*ChaincodeCall) GetNoPublicWrites ¶
func (x *ChaincodeCall) GetNoPublicWrites() bool
func (*ChaincodeCall) ProtoMessage ¶
func (*ChaincodeCall) ProtoMessage()
func (*ChaincodeCall) ProtoReflect ¶
func (x *ChaincodeCall) ProtoReflect() protoreflect.Message
func (*ChaincodeCall) Reset ¶
func (x *ChaincodeCall) Reset()
func (*ChaincodeCall) String ¶
func (x *ChaincodeCall) String() string
type ChaincodeClient ¶
type ChaincodeClient interface {
Connect(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ChaincodeMessage, ChaincodeMessage], error)
}
ChaincodeClient is the client API for Chaincode service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Chaincode as a server - peer establishes a connection to the chaincode as a client Currently only supports a stream connection.
func NewChaincodeClient ¶
func NewChaincodeClient(cc grpc.ClientConnInterface) ChaincodeClient
type ChaincodeData ¶
type ChaincodeData struct { // Name of the chaincode Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Version of the chaincode Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Escc for the chaincode instance Escc string `protobuf:"bytes,3,opt,name=escc,proto3" json:"escc,omitempty"` // Vscc for the chaincode instance Vscc string `protobuf:"bytes,4,opt,name=vscc,proto3" json:"vscc,omitempty"` // Policy endorsement policy for the chaincode instance Policy *common.SignaturePolicyEnvelope `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"` // Data data specific to the package Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // Id of the chaincode that's the unique fingerprint for the CC This is not // currently used anywhere but serves as a good eyecatcher Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` // InstantiationPolicy for the chaincode InstantiationPolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,8,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"` // contains filtered or unexported fields }
ChaincodeData defines the datastructure for chaincodes to be serialized by proto Type provides an additional check by directing to use a specific package after instantiation Data is Type specific (see CDSPackage and SignedCDSPackage)
func (*ChaincodeData) Descriptor
deprecated
func (*ChaincodeData) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeData.ProtoReflect.Descriptor instead.
func (*ChaincodeData) GetData ¶
func (x *ChaincodeData) GetData() []byte
func (*ChaincodeData) GetEscc ¶
func (x *ChaincodeData) GetEscc() string
func (*ChaincodeData) GetId ¶
func (x *ChaincodeData) GetId() []byte
func (*ChaincodeData) GetInstantiationPolicy ¶
func (x *ChaincodeData) GetInstantiationPolicy() *common.SignaturePolicyEnvelope
func (*ChaincodeData) GetName ¶
func (x *ChaincodeData) GetName() string
func (*ChaincodeData) GetPolicy ¶
func (x *ChaincodeData) GetPolicy() *common.SignaturePolicyEnvelope
func (*ChaincodeData) GetVersion ¶
func (x *ChaincodeData) GetVersion() string
func (*ChaincodeData) GetVscc ¶
func (x *ChaincodeData) GetVscc() string
func (*ChaincodeData) ProtoMessage ¶
func (*ChaincodeData) ProtoMessage()
func (*ChaincodeData) ProtoReflect ¶
func (x *ChaincodeData) ProtoReflect() protoreflect.Message
func (*ChaincodeData) Reset ¶
func (x *ChaincodeData) Reset()
func (*ChaincodeData) String ¶
func (x *ChaincodeData) String() string
type ChaincodeDeploymentSpec ¶
type ChaincodeDeploymentSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` CodePackage []byte `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"` // contains filtered or unexported fields }
Specify the deployment of a chaincode. TODO: Define `codePackage`.
func (*ChaincodeDeploymentSpec) Descriptor
deprecated
func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeDeploymentSpec.ProtoReflect.Descriptor instead.
func (*ChaincodeDeploymentSpec) GetChaincodeSpec ¶
func (x *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec
func (*ChaincodeDeploymentSpec) GetCodePackage ¶
func (x *ChaincodeDeploymentSpec) GetCodePackage() []byte
func (*ChaincodeDeploymentSpec) ProtoMessage ¶
func (*ChaincodeDeploymentSpec) ProtoMessage()
func (*ChaincodeDeploymentSpec) ProtoReflect ¶
func (x *ChaincodeDeploymentSpec) ProtoReflect() protoreflect.Message
func (*ChaincodeDeploymentSpec) Reset ¶
func (x *ChaincodeDeploymentSpec) Reset()
func (*ChaincodeDeploymentSpec) String ¶
func (x *ChaincodeDeploymentSpec) String() string
type ChaincodeEndorsedAction ¶
type ChaincodeEndorsedAction struct { // This is the bytes of the ProposalResponsePayload message signed by the // endorsers. Recall that for the CHAINCODE type, the // ProposalResponsePayload's extenstion field carries a ChaincodeAction ProposalResponsePayload []byte `` /* 132-byte string literal not displayed */ // The endorsement of the proposal, basically the endorser's signature over // proposalResponsePayload Endorsements []*Endorsement `protobuf:"bytes,2,rep,name=endorsements,proto3" json:"endorsements,omitempty"` // contains filtered or unexported fields }
ChaincodeEndorsedAction carries information about the endorsement of a specific proposal
func (*ChaincodeEndorsedAction) Descriptor
deprecated
func (*ChaincodeEndorsedAction) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeEndorsedAction.ProtoReflect.Descriptor instead.
func (*ChaincodeEndorsedAction) GetEndorsements ¶
func (x *ChaincodeEndorsedAction) GetEndorsements() []*Endorsement
func (*ChaincodeEndorsedAction) GetProposalResponsePayload ¶
func (x *ChaincodeEndorsedAction) GetProposalResponsePayload() []byte
func (*ChaincodeEndorsedAction) ProtoMessage ¶
func (*ChaincodeEndorsedAction) ProtoMessage()
func (*ChaincodeEndorsedAction) ProtoReflect ¶
func (x *ChaincodeEndorsedAction) ProtoReflect() protoreflect.Message
func (*ChaincodeEndorsedAction) Reset ¶
func (x *ChaincodeEndorsedAction) Reset()
func (*ChaincodeEndorsedAction) String ¶
func (x *ChaincodeEndorsedAction) String() string
type ChaincodeEndorsement ¶
type ChaincodeEndorsement struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Specifies what code to run for endorsements, defaults 'escc' // contains filtered or unexported fields }
ChaincodeEndorsement instructs the peer how transactions should be endorsed. The only endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism. This code simply simulates the proposal to generate a RW set, then signs the result using the peer's local signing identity.
func (*ChaincodeEndorsement) Descriptor
deprecated
func (*ChaincodeEndorsement) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeEndorsement.ProtoReflect.Descriptor instead.
func (*ChaincodeEndorsement) GetName ¶
func (x *ChaincodeEndorsement) GetName() string
func (*ChaincodeEndorsement) ProtoMessage ¶
func (*ChaincodeEndorsement) ProtoMessage()
func (*ChaincodeEndorsement) ProtoReflect ¶
func (x *ChaincodeEndorsement) ProtoReflect() protoreflect.Message
func (*ChaincodeEndorsement) Reset ¶
func (x *ChaincodeEndorsement) Reset()
func (*ChaincodeEndorsement) String ¶
func (x *ChaincodeEndorsement) String() string
type ChaincodeEvent ¶
type ChaincodeEvent struct { ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` EventName string `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
ChaincodeEvent is used for events and registrations that are specific to chaincode string type - "chaincode"
func (*ChaincodeEvent) Descriptor
deprecated
func (*ChaincodeEvent) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeEvent.ProtoReflect.Descriptor instead.
func (*ChaincodeEvent) GetChaincodeId ¶
func (x *ChaincodeEvent) GetChaincodeId() string
func (*ChaincodeEvent) GetEventName ¶
func (x *ChaincodeEvent) GetEventName() string
func (*ChaincodeEvent) GetPayload ¶
func (x *ChaincodeEvent) GetPayload() []byte
func (*ChaincodeEvent) GetTxId ¶
func (x *ChaincodeEvent) GetTxId() string
func (*ChaincodeEvent) ProtoMessage ¶
func (*ChaincodeEvent) ProtoMessage()
func (*ChaincodeEvent) ProtoReflect ¶
func (x *ChaincodeEvent) ProtoReflect() protoreflect.Message
func (*ChaincodeEvent) Reset ¶
func (x *ChaincodeEvent) Reset()
func (*ChaincodeEvent) String ¶
func (x *ChaincodeEvent) String() string
type ChaincodeHeaderExtension ¶
type ChaincodeHeaderExtension struct { // The ID of the chaincode to target. ChaincodeId *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` // contains filtered or unexported fields }
ChaincodeHeaderExtension is the Header's extentions message to be used when the Header's type is CHAINCODE. This extensions is used to specify which chaincode to invoke and what should appear on the ledger.
func (*ChaincodeHeaderExtension) Descriptor
deprecated
func (*ChaincodeHeaderExtension) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeHeaderExtension.ProtoReflect.Descriptor instead.
func (*ChaincodeHeaderExtension) GetChaincodeId ¶
func (x *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID
func (*ChaincodeHeaderExtension) ProtoMessage ¶
func (*ChaincodeHeaderExtension) ProtoMessage()
func (*ChaincodeHeaderExtension) ProtoReflect ¶
func (x *ChaincodeHeaderExtension) ProtoReflect() protoreflect.Message
func (*ChaincodeHeaderExtension) Reset ¶
func (x *ChaincodeHeaderExtension) Reset()
func (*ChaincodeHeaderExtension) String ¶
func (x *ChaincodeHeaderExtension) String() string
type ChaincodeID ¶
type ChaincodeID struct { // deploy transaction will use the path Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // all other requests will use the name (really a hashcode) generated by // the deploy transaction Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // user friendly version name for the chaincode Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
ChaincodeID contains the path as specified by the deploy transaction that created it as well as the hashCode that is generated by the system for the path. From the user level (ie, CLI, REST API and so on) deploy transaction is expected to provide the path and other requests are expected to provide the hashCode. The other value will be ignored. Internally, the structure could contain both values. For instance, the hashCode will be set when first generated using the path
func (*ChaincodeID) Descriptor
deprecated
func (*ChaincodeID) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeID.ProtoReflect.Descriptor instead.
func (*ChaincodeID) GetName ¶
func (x *ChaincodeID) GetName() string
func (*ChaincodeID) GetPath ¶
func (x *ChaincodeID) GetPath() string
func (*ChaincodeID) GetVersion ¶
func (x *ChaincodeID) GetVersion() string
func (*ChaincodeID) ProtoMessage ¶
func (*ChaincodeID) ProtoMessage()
func (*ChaincodeID) ProtoReflect ¶
func (x *ChaincodeID) ProtoReflect() protoreflect.Message
func (*ChaincodeID) Reset ¶
func (x *ChaincodeID) Reset()
func (*ChaincodeID) String ¶
func (x *ChaincodeID) String() string
type ChaincodeIdentifier ¶
type ChaincodeIdentifier struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // The hash of the chaincode bytes Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // A user friendly human readable name corresponding to the ID // contains filtered or unexported fields }
ChaincodeIdentifier identifies a piece of chaincode. For a peer to accept invocations of this chaincode, the hash of the installed code must match, as must the version string included with the install command.
func (*ChaincodeIdentifier) Descriptor
deprecated
func (*ChaincodeIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeIdentifier.ProtoReflect.Descriptor instead.
func (*ChaincodeIdentifier) GetHash ¶
func (x *ChaincodeIdentifier) GetHash() []byte
func (*ChaincodeIdentifier) GetVersion ¶
func (x *ChaincodeIdentifier) GetVersion() string
func (*ChaincodeIdentifier) ProtoMessage ¶
func (*ChaincodeIdentifier) ProtoMessage()
func (*ChaincodeIdentifier) ProtoReflect ¶
func (x *ChaincodeIdentifier) ProtoReflect() protoreflect.Message
func (*ChaincodeIdentifier) Reset ¶
func (x *ChaincodeIdentifier) Reset()
func (*ChaincodeIdentifier) String ¶
func (x *ChaincodeIdentifier) String() string
type ChaincodeInfo ¶
type ChaincodeInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // the path as specified by the install/instantiate transaction Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // the chaincode function upon instantiation and its arguments. This will be // blank if the query is returning information about installed chaincodes. Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` // the name of the ESCC for this chaincode. This will be // blank if the query is returning information about installed chaincodes. Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"` // the name of the VSCC for this chaincode. This will be // blank if the query is returning information about installed chaincodes. Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"` // the chaincode unique id. // computed as: H( // // H(name || version) || // H(CodePackage) // ) Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
ChaincodeInfo contains general information about an installed/instantiated chaincode
func (*ChaincodeInfo) Descriptor
deprecated
func (*ChaincodeInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeInfo.ProtoReflect.Descriptor instead.
func (*ChaincodeInfo) GetEscc ¶
func (x *ChaincodeInfo) GetEscc() string
func (*ChaincodeInfo) GetId ¶
func (x *ChaincodeInfo) GetId() []byte
func (*ChaincodeInfo) GetInput ¶
func (x *ChaincodeInfo) GetInput() string
func (*ChaincodeInfo) GetName ¶
func (x *ChaincodeInfo) GetName() string
func (*ChaincodeInfo) GetPath ¶
func (x *ChaincodeInfo) GetPath() string
func (*ChaincodeInfo) GetVersion ¶
func (x *ChaincodeInfo) GetVersion() string
func (*ChaincodeInfo) GetVscc ¶
func (x *ChaincodeInfo) GetVscc() string
func (*ChaincodeInfo) ProtoMessage ¶
func (*ChaincodeInfo) ProtoMessage()
func (*ChaincodeInfo) ProtoReflect ¶
func (x *ChaincodeInfo) ProtoReflect() protoreflect.Message
func (*ChaincodeInfo) Reset ¶
func (x *ChaincodeInfo) Reset()
func (*ChaincodeInfo) String ¶
func (x *ChaincodeInfo) String() string
type ChaincodeInput ¶
type ChaincodeInput struct { Args [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` Decorations map[string][]byte `` /* 163-byte string literal not displayed */ // is_init is used for the application to signal that an invocation is to be routed // to the legacy 'Init' function for compatibility with chaincodes which handled // Init in the old way. New applications should manage their initialized state // themselves. IsInit bool `protobuf:"varint,3,opt,name=is_init,json=isInit,proto3" json:"is_init,omitempty"` // contains filtered or unexported fields }
Carries the chaincode function and its arguments. UnmarshalJSON in transaction.go converts the string-based REST/JSON input to the []byte-based current ChaincodeInput structure.
func (*ChaincodeInput) Descriptor
deprecated
func (*ChaincodeInput) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeInput.ProtoReflect.Descriptor instead.
func (*ChaincodeInput) GetArgs ¶
func (x *ChaincodeInput) GetArgs() [][]byte
func (*ChaincodeInput) GetDecorations ¶
func (x *ChaincodeInput) GetDecorations() map[string][]byte
func (*ChaincodeInput) GetIsInit ¶
func (x *ChaincodeInput) GetIsInit() bool
func (*ChaincodeInput) ProtoMessage ¶
func (*ChaincodeInput) ProtoMessage()
func (*ChaincodeInput) ProtoReflect ¶
func (x *ChaincodeInput) ProtoReflect() protoreflect.Message
func (*ChaincodeInput) Reset ¶
func (x *ChaincodeInput) Reset()
func (*ChaincodeInput) String ¶
func (x *ChaincodeInput) String() string
type ChaincodeInterest ¶
type ChaincodeInterest struct { Chaincodes []*ChaincodeCall `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` // contains filtered or unexported fields }
ChaincodeInterest defines an interest about an endorsement for a specific single chaincode invocation. Multiple chaincodes indicate chaincode to chaincode invocations.
func (*ChaincodeInterest) Descriptor
deprecated
func (*ChaincodeInterest) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeInterest.ProtoReflect.Descriptor instead.
func (*ChaincodeInterest) GetChaincodes ¶
func (x *ChaincodeInterest) GetChaincodes() []*ChaincodeCall
func (*ChaincodeInterest) ProtoMessage ¶
func (*ChaincodeInterest) ProtoMessage()
func (*ChaincodeInterest) ProtoReflect ¶
func (x *ChaincodeInterest) ProtoReflect() protoreflect.Message
func (*ChaincodeInterest) Reset ¶
func (x *ChaincodeInterest) Reset()
func (*ChaincodeInterest) String ¶
func (x *ChaincodeInterest) String() string
type ChaincodeInvocationSpec ¶
type ChaincodeInvocationSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` // contains filtered or unexported fields }
Carries the chaincode function and its arguments.
func (*ChaincodeInvocationSpec) Descriptor
deprecated
func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeInvocationSpec.ProtoReflect.Descriptor instead.
func (*ChaincodeInvocationSpec) GetChaincodeSpec ¶
func (x *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec
func (*ChaincodeInvocationSpec) ProtoMessage ¶
func (*ChaincodeInvocationSpec) ProtoMessage()
func (*ChaincodeInvocationSpec) ProtoReflect ¶
func (x *ChaincodeInvocationSpec) ProtoReflect() protoreflect.Message
func (*ChaincodeInvocationSpec) Reset ¶
func (x *ChaincodeInvocationSpec) Reset()
func (*ChaincodeInvocationSpec) String ¶
func (x *ChaincodeInvocationSpec) String() string
type ChaincodeMessage ¶
type ChaincodeMessage struct { Type ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeMessage_Type" json:"type,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` Txid string `protobuf:"bytes,4,opt,name=txid,proto3" json:"txid,omitempty"` Proposal *SignedProposal `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"` // event emitted by chaincode. Used only with Init or Invoke. // This event is then stored (currently) // with Block.NonHashData.TransactionResult ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,6,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` // channel id ChannelId string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*ChaincodeMessage) Descriptor
deprecated
func (*ChaincodeMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeMessage.ProtoReflect.Descriptor instead.
func (*ChaincodeMessage) GetChaincodeEvent ¶
func (x *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent
func (*ChaincodeMessage) GetChannelId ¶
func (x *ChaincodeMessage) GetChannelId() string
func (*ChaincodeMessage) GetPayload ¶
func (x *ChaincodeMessage) GetPayload() []byte
func (*ChaincodeMessage) GetProposal ¶
func (x *ChaincodeMessage) GetProposal() *SignedProposal
func (*ChaincodeMessage) GetTimestamp ¶
func (x *ChaincodeMessage) GetTimestamp() *timestamppb.Timestamp
func (*ChaincodeMessage) GetTxid ¶
func (x *ChaincodeMessage) GetTxid() string
func (*ChaincodeMessage) GetType ¶
func (x *ChaincodeMessage) GetType() ChaincodeMessage_Type
func (*ChaincodeMessage) ProtoMessage ¶
func (*ChaincodeMessage) ProtoMessage()
func (*ChaincodeMessage) ProtoReflect ¶
func (x *ChaincodeMessage) ProtoReflect() protoreflect.Message
func (*ChaincodeMessage) Reset ¶
func (x *ChaincodeMessage) Reset()
func (*ChaincodeMessage) String ¶
func (x *ChaincodeMessage) String() string
type ChaincodeMessage_Type ¶
type ChaincodeMessage_Type int32
const ( ChaincodeMessage_UNDEFINED ChaincodeMessage_Type = 0 ChaincodeMessage_REGISTER ChaincodeMessage_Type = 1 ChaincodeMessage_REGISTERED ChaincodeMessage_Type = 2 ChaincodeMessage_INIT ChaincodeMessage_Type = 3 ChaincodeMessage_READY ChaincodeMessage_Type = 4 ChaincodeMessage_TRANSACTION ChaincodeMessage_Type = 5 ChaincodeMessage_COMPLETED ChaincodeMessage_Type = 6 ChaincodeMessage_ERROR ChaincodeMessage_Type = 7 ChaincodeMessage_GET_STATE ChaincodeMessage_Type = 8 ChaincodeMessage_PUT_STATE ChaincodeMessage_Type = 9 ChaincodeMessage_DEL_STATE ChaincodeMessage_Type = 10 ChaincodeMessage_INVOKE_CHAINCODE ChaincodeMessage_Type = 11 ChaincodeMessage_RESPONSE ChaincodeMessage_Type = 13 ChaincodeMessage_GET_STATE_BY_RANGE ChaincodeMessage_Type = 14 ChaincodeMessage_GET_QUERY_RESULT ChaincodeMessage_Type = 15 ChaincodeMessage_QUERY_STATE_NEXT ChaincodeMessage_Type = 16 ChaincodeMessage_QUERY_STATE_CLOSE ChaincodeMessage_Type = 17 ChaincodeMessage_KEEPALIVE ChaincodeMessage_Type = 18 ChaincodeMessage_GET_HISTORY_FOR_KEY ChaincodeMessage_Type = 19 ChaincodeMessage_GET_STATE_METADATA ChaincodeMessage_Type = 20 ChaincodeMessage_PUT_STATE_METADATA ChaincodeMessage_Type = 21 ChaincodeMessage_GET_PRIVATE_DATA_HASH ChaincodeMessage_Type = 22 ChaincodeMessage_PURGE_PRIVATE_DATA ChaincodeMessage_Type = 23 ChaincodeMessage_WRITE_BATCH_STATE ChaincodeMessage_Type = 24 )
func (ChaincodeMessage_Type) Descriptor ¶
func (ChaincodeMessage_Type) Descriptor() protoreflect.EnumDescriptor
func (ChaincodeMessage_Type) Enum ¶
func (x ChaincodeMessage_Type) Enum() *ChaincodeMessage_Type
func (ChaincodeMessage_Type) EnumDescriptor
deprecated
func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChaincodeMessage_Type.Descriptor instead.
func (ChaincodeMessage_Type) Number ¶
func (x ChaincodeMessage_Type) Number() protoreflect.EnumNumber
func (ChaincodeMessage_Type) String ¶
func (x ChaincodeMessage_Type) String() string
func (ChaincodeMessage_Type) Type ¶
func (ChaincodeMessage_Type) Type() protoreflect.EnumType
type ChaincodeProposalPayload ¶
type ChaincodeProposalPayload struct { // Input contains the arguments for this invocation. If this invocation // deploys a new chaincode, ESCC/VSCC are part of this field. // This is usually a marshaled ChaincodeInvocationSpec Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // TransientMap contains data (e.g. cryptographic material) that might be used // to implement some form of application-level confidentiality. The contents // of this field are supposed to always be omitted from the transaction and // excluded from the ledger. TransientMap map[string][]byte `` /* 165-byte string literal not displayed */ // contains filtered or unexported fields }
ChaincodeProposalPayload is the Proposal's payload message to be used when the Header's type is CHAINCODE. It contains the arguments for this invocation.
func (*ChaincodeProposalPayload) Descriptor
deprecated
func (*ChaincodeProposalPayload) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeProposalPayload.ProtoReflect.Descriptor instead.
func (*ChaincodeProposalPayload) GetInput ¶
func (x *ChaincodeProposalPayload) GetInput() []byte
func (*ChaincodeProposalPayload) GetTransientMap ¶
func (x *ChaincodeProposalPayload) GetTransientMap() map[string][]byte
func (*ChaincodeProposalPayload) ProtoMessage ¶
func (*ChaincodeProposalPayload) ProtoMessage()
func (*ChaincodeProposalPayload) ProtoReflect ¶
func (x *ChaincodeProposalPayload) ProtoReflect() protoreflect.Message
func (*ChaincodeProposalPayload) Reset ¶
func (x *ChaincodeProposalPayload) Reset()
func (*ChaincodeProposalPayload) String ¶
func (x *ChaincodeProposalPayload) String() string
type ChaincodeQueryResponse ¶
type ChaincodeQueryResponse struct { Chaincodes []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` // contains filtered or unexported fields }
ChaincodeQueryResponse returns information about each chaincode that pertains to a query in lscc.go, such as GetChaincodes (returns all chaincodes instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes installed on a peer)
func (*ChaincodeQueryResponse) Descriptor
deprecated
func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeQueryResponse.ProtoReflect.Descriptor instead.
func (*ChaincodeQueryResponse) GetChaincodes ¶
func (x *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo
func (*ChaincodeQueryResponse) ProtoMessage ¶
func (*ChaincodeQueryResponse) ProtoMessage()
func (*ChaincodeQueryResponse) ProtoReflect ¶
func (x *ChaincodeQueryResponse) ProtoReflect() protoreflect.Message
func (*ChaincodeQueryResponse) Reset ¶
func (x *ChaincodeQueryResponse) Reset()
func (*ChaincodeQueryResponse) String ¶
func (x *ChaincodeQueryResponse) String() string
type ChaincodeServer ¶
type ChaincodeServer interface {
Connect(grpc.BidiStreamingServer[ChaincodeMessage, ChaincodeMessage]) error
}
ChaincodeServer is the server API for Chaincode service. All implementations should embed UnimplementedChaincodeServer for forward compatibility.
Chaincode as a server - peer establishes a connection to the chaincode as a client Currently only supports a stream connection.
type ChaincodeSpec ¶
type ChaincodeSpec struct { Type ChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeSpec_Type" json:"type,omitempty"` ChaincodeId *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` Input *ChaincodeInput `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Timeout int32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
Carries the chaincode specification. This is the actual metadata required for defining a chaincode.
func (*ChaincodeSpec) Descriptor
deprecated
func (*ChaincodeSpec) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeSpec.ProtoReflect.Descriptor instead.
func (*ChaincodeSpec) GetChaincodeId ¶
func (x *ChaincodeSpec) GetChaincodeId() *ChaincodeID
func (*ChaincodeSpec) GetInput ¶
func (x *ChaincodeSpec) GetInput() *ChaincodeInput
func (*ChaincodeSpec) GetTimeout ¶
func (x *ChaincodeSpec) GetTimeout() int32
func (*ChaincodeSpec) GetType ¶
func (x *ChaincodeSpec) GetType() ChaincodeSpec_Type
func (*ChaincodeSpec) ProtoMessage ¶
func (*ChaincodeSpec) ProtoMessage()
func (*ChaincodeSpec) ProtoReflect ¶
func (x *ChaincodeSpec) ProtoReflect() protoreflect.Message
func (*ChaincodeSpec) Reset ¶
func (x *ChaincodeSpec) Reset()
func (*ChaincodeSpec) String ¶
func (x *ChaincodeSpec) String() string
type ChaincodeSpec_Type ¶
type ChaincodeSpec_Type int32
const ( ChaincodeSpec_UNDEFINED ChaincodeSpec_Type = 0 ChaincodeSpec_GOLANG ChaincodeSpec_Type = 1 ChaincodeSpec_NODE ChaincodeSpec_Type = 2 ChaincodeSpec_CAR ChaincodeSpec_Type = 3 ChaincodeSpec_JAVA ChaincodeSpec_Type = 4 )
func (ChaincodeSpec_Type) Descriptor ¶
func (ChaincodeSpec_Type) Descriptor() protoreflect.EnumDescriptor
func (ChaincodeSpec_Type) Enum ¶
func (x ChaincodeSpec_Type) Enum() *ChaincodeSpec_Type
func (ChaincodeSpec_Type) EnumDescriptor
deprecated
func (ChaincodeSpec_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChaincodeSpec_Type.Descriptor instead.
func (ChaincodeSpec_Type) Number ¶
func (x ChaincodeSpec_Type) Number() protoreflect.EnumNumber
func (ChaincodeSpec_Type) String ¶
func (x ChaincodeSpec_Type) String() string
func (ChaincodeSpec_Type) Type ¶
func (ChaincodeSpec_Type) Type() protoreflect.EnumType
type ChaincodeSupportClient ¶
type ChaincodeSupportClient interface {
Register(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ChaincodeMessage, ChaincodeMessage], error)
}
ChaincodeSupportClient is the client API for ChaincodeSupport service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Interface that provides support to chaincode execution. ChaincodeContext provides the context necessary for the server to respond appropriately.
func NewChaincodeSupportClient ¶
func NewChaincodeSupportClient(cc grpc.ClientConnInterface) ChaincodeSupportClient
type ChaincodeSupportServer ¶
type ChaincodeSupportServer interface {
Register(grpc.BidiStreamingServer[ChaincodeMessage, ChaincodeMessage]) error
}
ChaincodeSupportServer is the server API for ChaincodeSupport service. All implementations should embed UnimplementedChaincodeSupportServer for forward compatibility.
Interface that provides support to chaincode execution. ChaincodeContext provides the context necessary for the server to respond appropriately.
type ChaincodeSupport_RegisterClient ¶
type ChaincodeSupport_RegisterClient = grpc.BidiStreamingClient[ChaincodeMessage, ChaincodeMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ChaincodeSupport_RegisterServer ¶
type ChaincodeSupport_RegisterServer = grpc.BidiStreamingServer[ChaincodeMessage, ChaincodeMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ChaincodeValidation ¶
type ChaincodeValidation struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Specifies which code to run to validate transactions, defaults to 'vscc' Argument []byte `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"` // When 'vscc' a marshaled VSCCArgs // contains filtered or unexported fields }
ChaincodeValidation instructs the peer how transactions for this chaincode should be validated. The only validation mechanism which ships with fabric today is the standard 'vscc' validation mechanism. This built in validation method utilizes an endorsement policy which checks that a sufficient number of signatures have been included. The 'arguement' field encodes any parameters required by the validation implementation.
func (*ChaincodeValidation) Descriptor
deprecated
func (*ChaincodeValidation) Descriptor() ([]byte, []int)
Deprecated: Use ChaincodeValidation.ProtoReflect.Descriptor instead.
func (*ChaincodeValidation) GetArgument ¶
func (x *ChaincodeValidation) GetArgument() []byte
func (*ChaincodeValidation) GetName ¶
func (x *ChaincodeValidation) GetName() string
func (*ChaincodeValidation) ProtoMessage ¶
func (*ChaincodeValidation) ProtoMessage()
func (*ChaincodeValidation) ProtoReflect ¶
func (x *ChaincodeValidation) ProtoReflect() protoreflect.Message
func (*ChaincodeValidation) Reset ¶
func (x *ChaincodeValidation) Reset()
func (*ChaincodeValidation) String ¶
func (x *ChaincodeValidation) String() string
type Chaincode_ConnectClient ¶
type Chaincode_ConnectClient = grpc.BidiStreamingClient[ChaincodeMessage, ChaincodeMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Chaincode_ConnectServer ¶
type Chaincode_ConnectServer = grpc.BidiStreamingServer[ChaincodeMessage, ChaincodeMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ChannelInfo ¶
type ChannelInfo struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
ChannelInfo contains general information about channels
func (*ChannelInfo) Descriptor
deprecated
func (*ChannelInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChannelInfo.ProtoReflect.Descriptor instead.
func (*ChannelInfo) GetChannelId ¶
func (x *ChannelInfo) GetChannelId() string
func (*ChannelInfo) ProtoMessage ¶
func (*ChannelInfo) ProtoMessage()
func (*ChannelInfo) ProtoReflect ¶
func (x *ChannelInfo) ProtoReflect() protoreflect.Message
func (*ChannelInfo) Reset ¶
func (x *ChannelInfo) Reset()
func (*ChannelInfo) String ¶
func (x *ChannelInfo) String() string
type ChannelQueryResponse ¶
type ChannelQueryResponse struct { Channels []*ChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` // contains filtered or unexported fields }
ChannelQueryResponse returns information about each channel that pertains to a query in lscc.go, such as GetChannels (returns all channels for a given peer)
func (*ChannelQueryResponse) Descriptor
deprecated
func (*ChannelQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChannelQueryResponse.ProtoReflect.Descriptor instead.
func (*ChannelQueryResponse) GetChannels ¶
func (x *ChannelQueryResponse) GetChannels() []*ChannelInfo
func (*ChannelQueryResponse) ProtoMessage ¶
func (*ChannelQueryResponse) ProtoMessage()
func (*ChannelQueryResponse) ProtoReflect ¶
func (x *ChannelQueryResponse) ProtoReflect() protoreflect.Message
func (*ChannelQueryResponse) Reset ¶
func (x *ChannelQueryResponse) Reset()
func (*ChannelQueryResponse) String ¶
func (x *ChannelQueryResponse) String() string
type CollectionConfig ¶
type CollectionConfig struct { // Types that are assignable to Payload: // // *CollectionConfig_StaticCollectionConfig Payload isCollectionConfig_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
CollectionConfig defines the configuration of a collection object; it currently contains a single, static type. Dynamic collections are deferred.
func (*CollectionConfig) Descriptor
deprecated
func (*CollectionConfig) Descriptor() ([]byte, []int)
Deprecated: Use CollectionConfig.ProtoReflect.Descriptor instead.
func (*CollectionConfig) GetPayload ¶
func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload
func (*CollectionConfig) GetStaticCollectionConfig ¶
func (x *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig
func (*CollectionConfig) ProtoMessage ¶
func (*CollectionConfig) ProtoMessage()
func (*CollectionConfig) ProtoReflect ¶
func (x *CollectionConfig) ProtoReflect() protoreflect.Message
func (*CollectionConfig) Reset ¶
func (x *CollectionConfig) Reset()
func (*CollectionConfig) String ¶
func (x *CollectionConfig) String() string
type CollectionConfigPackage ¶
type CollectionConfigPackage struct { Config []*CollectionConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
CollectionConfigPackage represents an array of CollectionConfig messages; the extra struct is required because repeated oneof is forbidden by the protobuf syntax
func (*CollectionConfigPackage) Descriptor
deprecated
func (*CollectionConfigPackage) Descriptor() ([]byte, []int)
Deprecated: Use CollectionConfigPackage.ProtoReflect.Descriptor instead.
func (*CollectionConfigPackage) GetConfig ¶
func (x *CollectionConfigPackage) GetConfig() []*CollectionConfig
func (*CollectionConfigPackage) ProtoMessage ¶
func (*CollectionConfigPackage) ProtoMessage()
func (*CollectionConfigPackage) ProtoReflect ¶
func (x *CollectionConfigPackage) ProtoReflect() protoreflect.Message
func (*CollectionConfigPackage) Reset ¶
func (x *CollectionConfigPackage) Reset()
func (*CollectionConfigPackage) String ¶
func (x *CollectionConfigPackage) String() string
type CollectionConfig_StaticCollectionConfig ¶
type CollectionConfig_StaticCollectionConfig struct {
StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"`
}
type CollectionPolicyConfig ¶
type CollectionPolicyConfig struct { // Types that are assignable to Payload: // // *CollectionPolicyConfig_SignaturePolicy Payload isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
Collection policy configuration. Initially, the configuration can only contain a SignaturePolicy. In the future, the SignaturePolicy may be a more general Policy. Instead of containing the actual policy, the configuration may in the future contain a string reference to a policy.
func (*CollectionPolicyConfig) Descriptor
deprecated
func (*CollectionPolicyConfig) Descriptor() ([]byte, []int)
Deprecated: Use CollectionPolicyConfig.ProtoReflect.Descriptor instead.
func (*CollectionPolicyConfig) GetPayload ¶
func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload
func (*CollectionPolicyConfig) GetSignaturePolicy ¶
func (x *CollectionPolicyConfig) GetSignaturePolicy() *common.SignaturePolicyEnvelope
func (*CollectionPolicyConfig) ProtoMessage ¶
func (*CollectionPolicyConfig) ProtoMessage()
func (*CollectionPolicyConfig) ProtoReflect ¶
func (x *CollectionPolicyConfig) ProtoReflect() protoreflect.Message
func (*CollectionPolicyConfig) Reset ¶
func (x *CollectionPolicyConfig) Reset()
func (*CollectionPolicyConfig) String ¶
func (x *CollectionPolicyConfig) String() string
type CollectionPolicyConfig_SignaturePolicy ¶
type CollectionPolicyConfig_SignaturePolicy struct { // Initially, only a signature policy is supported. SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` }
type ConfigTree ¶
type ConfigTree struct { ChannelConfig *common.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"` ResourcesConfig *common.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"` // contains filtered or unexported fields }
ConfigTree encapsulates channel and resources configuration of a channel. Both configurations are represented as common.Config
func (*ConfigTree) Descriptor
deprecated
func (*ConfigTree) Descriptor() ([]byte, []int)
Deprecated: Use ConfigTree.ProtoReflect.Descriptor instead.
func (*ConfigTree) GetChannelConfig ¶
func (x *ConfigTree) GetChannelConfig() *common.Config
func (*ConfigTree) GetResourcesConfig ¶
func (x *ConfigTree) GetResourcesConfig() *common.Config
func (*ConfigTree) ProtoMessage ¶
func (*ConfigTree) ProtoMessage()
func (*ConfigTree) ProtoReflect ¶
func (x *ConfigTree) ProtoReflect() protoreflect.Message
func (*ConfigTree) Reset ¶
func (x *ConfigTree) Reset()
func (*ConfigTree) String ¶
func (x *ConfigTree) String() string
type DelState ¶
type DelState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
DelState is the payload of a ChaincodeMessage. It contains a key which needs to be recorded in the transaction's write set as a delete operation. If the collection is specified, the key needs to be recorded in the transaction's private write set as a delete operation.
func (*DelState) Descriptor
deprecated
func (*DelState) GetCollection ¶
func (*DelState) ProtoMessage ¶
func (*DelState) ProtoMessage()
func (*DelState) ProtoReflect ¶
func (x *DelState) ProtoReflect() protoreflect.Message
type DeliverClient ¶
type DeliverClient interface { // Deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of block replies is received Deliver(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[common.Envelope, DeliverResponse], error) // DeliverFiltered first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of **filtered** block replies is received DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[common.Envelope, DeliverResponse], error) // DeliverWithPrivateData first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of block and private data replies is received DeliverWithPrivateData(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[common.Envelope, DeliverResponse], error) }
DeliverClient is the client API for Deliver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDeliverClient ¶
func NewDeliverClient(cc grpc.ClientConnInterface) DeliverClient
type DeliverResponse ¶
type DeliverResponse struct { // Types that are assignable to Type: // // *DeliverResponse_Status // *DeliverResponse_Block // *DeliverResponse_FilteredBlock // *DeliverResponse_BlockAndPrivateData Type isDeliverResponse_Type `protobuf_oneof:"Type"` // contains filtered or unexported fields }
DeliverResponse
func (*DeliverResponse) Descriptor
deprecated
func (*DeliverResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeliverResponse.ProtoReflect.Descriptor instead.
func (*DeliverResponse) GetBlock ¶
func (x *DeliverResponse) GetBlock() *common.Block
func (*DeliverResponse) GetBlockAndPrivateData ¶
func (x *DeliverResponse) GetBlockAndPrivateData() *BlockAndPrivateData
func (*DeliverResponse) GetFilteredBlock ¶
func (x *DeliverResponse) GetFilteredBlock() *FilteredBlock
func (*DeliverResponse) GetStatus ¶
func (x *DeliverResponse) GetStatus() common.Status
func (*DeliverResponse) GetType ¶
func (m *DeliverResponse) GetType() isDeliverResponse_Type
func (*DeliverResponse) ProtoMessage ¶
func (*DeliverResponse) ProtoMessage()
func (*DeliverResponse) ProtoReflect ¶
func (x *DeliverResponse) ProtoReflect() protoreflect.Message
func (*DeliverResponse) Reset ¶
func (x *DeliverResponse) Reset()
func (*DeliverResponse) String ¶
func (x *DeliverResponse) String() string
type DeliverResponse_Block ¶
type DeliverResponse_BlockAndPrivateData ¶
type DeliverResponse_BlockAndPrivateData struct {
BlockAndPrivateData *BlockAndPrivateData `protobuf:"bytes,4,opt,name=block_and_private_data,json=blockAndPrivateData,proto3,oneof"`
}
type DeliverResponse_FilteredBlock ¶
type DeliverResponse_FilteredBlock struct {
FilteredBlock *FilteredBlock `protobuf:"bytes,3,opt,name=filtered_block,json=filteredBlock,proto3,oneof"`
}
type DeliverResponse_Status ¶
type DeliverServer ¶
type DeliverServer interface { // Deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of block replies is received Deliver(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error // DeliverFiltered first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of **filtered** block replies is received DeliverFiltered(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error // DeliverWithPrivateData first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of block and private data replies is received DeliverWithPrivateData(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error }
DeliverServer is the server API for Deliver service. All implementations should embed UnimplementedDeliverServer for forward compatibility.
type Deliver_DeliverClient ¶
type Deliver_DeliverClient = grpc.BidiStreamingClient[common.Envelope, DeliverResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Deliver_DeliverFilteredClient ¶
type Deliver_DeliverFilteredClient = grpc.BidiStreamingClient[common.Envelope, DeliverResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Deliver_DeliverFilteredServer ¶
type Deliver_DeliverFilteredServer = grpc.BidiStreamingServer[common.Envelope, DeliverResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Deliver_DeliverServer ¶
type Deliver_DeliverServer = grpc.BidiStreamingServer[common.Envelope, DeliverResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Deliver_DeliverWithPrivateDataClient ¶
type Deliver_DeliverWithPrivateDataClient = grpc.BidiStreamingClient[common.Envelope, DeliverResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Deliver_DeliverWithPrivateDataServer ¶
type Deliver_DeliverWithPrivateDataServer = grpc.BidiStreamingServer[common.Envelope, DeliverResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Endorsement ¶
type Endorsement struct { // Identity of the endorser (e.g. its certificate) Endorser []byte `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"` // Signature of the payload included in ProposalResponse concatenated with // the endorser's certificate; ie, sign(ProposalResponse.payload + endorser) Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
An endorsement is a signature of an endorser over a proposal response. By producing an endorsement message, an endorser implicitly "approves" that proposal response and the actions contained therein. When enough endorsements have been collected, a transaction can be generated out of a set of proposal responses. Note that this message only contains an identity and a signature but no signed payload. This is intentional because endorsements are supposed to be collected in a transaction, and they are all expected to endorse a single proposal response/action (many endorsements over a single proposal response)
func (*Endorsement) Descriptor
deprecated
func (*Endorsement) Descriptor() ([]byte, []int)
Deprecated: Use Endorsement.ProtoReflect.Descriptor instead.
func (*Endorsement) GetEndorser ¶
func (x *Endorsement) GetEndorser() []byte
func (*Endorsement) GetSignature ¶
func (x *Endorsement) GetSignature() []byte
func (*Endorsement) ProtoMessage ¶
func (*Endorsement) ProtoMessage()
func (*Endorsement) ProtoReflect ¶
func (x *Endorsement) ProtoReflect() protoreflect.Message
func (*Endorsement) Reset ¶
func (x *Endorsement) Reset()
func (*Endorsement) String ¶
func (x *Endorsement) String() string
type EndorserClient ¶
type EndorserClient interface {
ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error)
}
EndorserClient is the client API for Endorser service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEndorserClient ¶
func NewEndorserClient(cc grpc.ClientConnInterface) EndorserClient
type EndorserServer ¶
type EndorserServer interface {
ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error)
}
EndorserServer is the server API for Endorser service. All implementations should embed UnimplementedEndorserServer for forward compatibility.
type FilteredBlock ¶
type FilteredBlock struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // The position in the blockchain FilteredTransactions []*FilteredTransaction `protobuf:"bytes,4,rep,name=filtered_transactions,json=filteredTransactions,proto3" json:"filtered_transactions,omitempty"` // contains filtered or unexported fields }
FilteredBlock is a minimal set of information about a block
func (*FilteredBlock) Descriptor
deprecated
func (*FilteredBlock) Descriptor() ([]byte, []int)
Deprecated: Use FilteredBlock.ProtoReflect.Descriptor instead.
func (*FilteredBlock) GetChannelId ¶
func (x *FilteredBlock) GetChannelId() string
func (*FilteredBlock) GetFilteredTransactions ¶
func (x *FilteredBlock) GetFilteredTransactions() []*FilteredTransaction
func (*FilteredBlock) GetNumber ¶
func (x *FilteredBlock) GetNumber() uint64
func (*FilteredBlock) ProtoMessage ¶
func (*FilteredBlock) ProtoMessage()
func (*FilteredBlock) ProtoReflect ¶
func (x *FilteredBlock) ProtoReflect() protoreflect.Message
func (*FilteredBlock) Reset ¶
func (x *FilteredBlock) Reset()
func (*FilteredBlock) String ¶
func (x *FilteredBlock) String() string
type FilteredChaincodeAction ¶
type FilteredChaincodeAction struct { ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,1,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` // contains filtered or unexported fields }
FilteredChaincodeAction is a minimal set of information about an action within a transaction
func (*FilteredChaincodeAction) Descriptor
deprecated
func (*FilteredChaincodeAction) Descriptor() ([]byte, []int)
Deprecated: Use FilteredChaincodeAction.ProtoReflect.Descriptor instead.
func (*FilteredChaincodeAction) GetChaincodeEvent ¶
func (x *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent
func (*FilteredChaincodeAction) ProtoMessage ¶
func (*FilteredChaincodeAction) ProtoMessage()
func (*FilteredChaincodeAction) ProtoReflect ¶
func (x *FilteredChaincodeAction) ProtoReflect() protoreflect.Message
func (*FilteredChaincodeAction) Reset ¶
func (x *FilteredChaincodeAction) Reset()
func (*FilteredChaincodeAction) String ¶
func (x *FilteredChaincodeAction) String() string
type FilteredTransaction ¶
type FilteredTransaction struct { Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Type common.HeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=common.HeaderType" json:"type,omitempty"` TxValidationCode TxValidationCode `` /* 141-byte string literal not displayed */ // Types that are assignable to Data: // // *FilteredTransaction_TransactionActions Data isFilteredTransaction_Data `protobuf_oneof:"Data"` // contains filtered or unexported fields }
FilteredTransaction is a minimal set of information about a transaction within a block
func (*FilteredTransaction) Descriptor
deprecated
func (*FilteredTransaction) Descriptor() ([]byte, []int)
Deprecated: Use FilteredTransaction.ProtoReflect.Descriptor instead.
func (*FilteredTransaction) GetData ¶
func (m *FilteredTransaction) GetData() isFilteredTransaction_Data
func (*FilteredTransaction) GetTransactionActions ¶
func (x *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions
func (*FilteredTransaction) GetTxValidationCode ¶
func (x *FilteredTransaction) GetTxValidationCode() TxValidationCode
func (*FilteredTransaction) GetTxid ¶
func (x *FilteredTransaction) GetTxid() string
func (*FilteredTransaction) GetType ¶
func (x *FilteredTransaction) GetType() common.HeaderType
func (*FilteredTransaction) ProtoMessage ¶
func (*FilteredTransaction) ProtoMessage()
func (*FilteredTransaction) ProtoReflect ¶
func (x *FilteredTransaction) ProtoReflect() protoreflect.Message
func (*FilteredTransaction) Reset ¶
func (x *FilteredTransaction) Reset()
func (*FilteredTransaction) String ¶
func (x *FilteredTransaction) String() string
type FilteredTransactionActions ¶
type FilteredTransactionActions struct { ChaincodeActions []*FilteredChaincodeAction `protobuf:"bytes,1,rep,name=chaincode_actions,json=chaincodeActions,proto3" json:"chaincode_actions,omitempty"` // contains filtered or unexported fields }
FilteredTransactionActions is a wrapper for array of TransactionAction message from regular block
func (*FilteredTransactionActions) Descriptor
deprecated
func (*FilteredTransactionActions) Descriptor() ([]byte, []int)
Deprecated: Use FilteredTransactionActions.ProtoReflect.Descriptor instead.
func (*FilteredTransactionActions) GetChaincodeActions ¶
func (x *FilteredTransactionActions) GetChaincodeActions() []*FilteredChaincodeAction
func (*FilteredTransactionActions) ProtoMessage ¶
func (*FilteredTransactionActions) ProtoMessage()
func (*FilteredTransactionActions) ProtoReflect ¶
func (x *FilteredTransactionActions) ProtoReflect() protoreflect.Message
func (*FilteredTransactionActions) Reset ¶
func (x *FilteredTransactionActions) Reset()
func (*FilteredTransactionActions) String ¶
func (x *FilteredTransactionActions) String() string
type FilteredTransaction_TransactionActions ¶
type FilteredTransaction_TransactionActions struct {
TransactionActions *FilteredTransactionActions `protobuf:"bytes,4,opt,name=transaction_actions,json=transactionActions,proto3,oneof"`
}
type GetHistoryForKey ¶
type GetHistoryForKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
GetHistoryForKey is the payload of a ChaincodeMessage. It contains a key for which the historical values need to be retrieved.
func (*GetHistoryForKey) Descriptor
deprecated
func (*GetHistoryForKey) Descriptor() ([]byte, []int)
Deprecated: Use GetHistoryForKey.ProtoReflect.Descriptor instead.
func (*GetHistoryForKey) GetKey ¶
func (x *GetHistoryForKey) GetKey() string
func (*GetHistoryForKey) ProtoMessage ¶
func (*GetHistoryForKey) ProtoMessage()
func (*GetHistoryForKey) ProtoReflect ¶
func (x *GetHistoryForKey) ProtoReflect() protoreflect.Message
func (*GetHistoryForKey) Reset ¶
func (x *GetHistoryForKey) Reset()
func (*GetHistoryForKey) String ¶
func (x *GetHistoryForKey) String() string
type GetQueryResult ¶
type GetQueryResult struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
GetQueryResult is the payload of a ChaincodeMessage. It contains a query string in the form that is supported by the underlying state database. If the collection is specified, the query needs to be executed on the private data. The metadata hold the byte representation of QueryMetadata.
func (*GetQueryResult) Descriptor
deprecated
func (*GetQueryResult) Descriptor() ([]byte, []int)
Deprecated: Use GetQueryResult.ProtoReflect.Descriptor instead.
func (*GetQueryResult) GetCollection ¶
func (x *GetQueryResult) GetCollection() string
func (*GetQueryResult) GetMetadata ¶
func (x *GetQueryResult) GetMetadata() []byte
func (*GetQueryResult) GetQuery ¶
func (x *GetQueryResult) GetQuery() string
func (*GetQueryResult) ProtoMessage ¶
func (*GetQueryResult) ProtoMessage()
func (*GetQueryResult) ProtoReflect ¶
func (x *GetQueryResult) ProtoReflect() protoreflect.Message
func (*GetQueryResult) Reset ¶
func (x *GetQueryResult) Reset()
func (*GetQueryResult) String ¶
func (x *GetQueryResult) String() string
type GetState ¶
type GetState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
GetState is the payload of a ChaincodeMessage. It contains a key which is to be fetched from the ledger. If the collection is specified, the key would be fetched from the collection (i.e., private state)
func (*GetState) Descriptor
deprecated
func (*GetState) GetCollection ¶
func (*GetState) ProtoMessage ¶
func (*GetState) ProtoMessage()
func (*GetState) ProtoReflect ¶
func (x *GetState) ProtoReflect() protoreflect.Message
type GetStateByRange ¶
type GetStateByRange struct { StartKey string `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"` EndKey string `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
GetStateByRange is the payload of a ChaincodeMessage. It contains a start key and a end key required to execute range query. If the collection is specified, the range query needs to be executed on the private data. The metadata hold the byte representation of QueryMetadata.
func (*GetStateByRange) Descriptor
deprecated
func (*GetStateByRange) Descriptor() ([]byte, []int)
Deprecated: Use GetStateByRange.ProtoReflect.Descriptor instead.
func (*GetStateByRange) GetCollection ¶
func (x *GetStateByRange) GetCollection() string
func (*GetStateByRange) GetEndKey ¶
func (x *GetStateByRange) GetEndKey() string
func (*GetStateByRange) GetMetadata ¶
func (x *GetStateByRange) GetMetadata() []byte
func (*GetStateByRange) GetStartKey ¶
func (x *GetStateByRange) GetStartKey() string
func (*GetStateByRange) ProtoMessage ¶
func (*GetStateByRange) ProtoMessage()
func (*GetStateByRange) ProtoReflect ¶
func (x *GetStateByRange) ProtoReflect() protoreflect.Message
func (*GetStateByRange) Reset ¶
func (x *GetStateByRange) Reset()
func (*GetStateByRange) String ¶
func (x *GetStateByRange) String() string
type GetStateMetadata ¶
type GetStateMetadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
func (*GetStateMetadata) Descriptor
deprecated
func (*GetStateMetadata) Descriptor() ([]byte, []int)
Deprecated: Use GetStateMetadata.ProtoReflect.Descriptor instead.
func (*GetStateMetadata) GetCollection ¶
func (x *GetStateMetadata) GetCollection() string
func (*GetStateMetadata) GetKey ¶
func (x *GetStateMetadata) GetKey() string
func (*GetStateMetadata) ProtoMessage ¶
func (*GetStateMetadata) ProtoMessage()
func (*GetStateMetadata) ProtoReflect ¶
func (x *GetStateMetadata) ProtoReflect() protoreflect.Message
func (*GetStateMetadata) Reset ¶
func (x *GetStateMetadata) Reset()
func (*GetStateMetadata) String ¶
func (x *GetStateMetadata) String() string
type JoinBySnapshotStatus ¶
type JoinBySnapshotStatus struct { InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"` BootstrappingSnapshotDir string `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
JoinBySnapshotStatus contains information about whether or a JoinBySnapshot operation is in progress and the related bootstrap dir if it is running.
func (*JoinBySnapshotStatus) Descriptor
deprecated
func (*JoinBySnapshotStatus) Descriptor() ([]byte, []int)
Deprecated: Use JoinBySnapshotStatus.ProtoReflect.Descriptor instead.
func (*JoinBySnapshotStatus) GetBootstrappingSnapshotDir ¶
func (x *JoinBySnapshotStatus) GetBootstrappingSnapshotDir() string
func (*JoinBySnapshotStatus) GetInProgress ¶
func (x *JoinBySnapshotStatus) GetInProgress() bool
func (*JoinBySnapshotStatus) ProtoMessage ¶
func (*JoinBySnapshotStatus) ProtoMessage()
func (*JoinBySnapshotStatus) ProtoReflect ¶
func (x *JoinBySnapshotStatus) ProtoReflect() protoreflect.Message
func (*JoinBySnapshotStatus) Reset ¶
func (x *JoinBySnapshotStatus) Reset()
func (*JoinBySnapshotStatus) String ¶
func (x *JoinBySnapshotStatus) String() string
type LifecycleEvent ¶
type LifecycleEvent struct { ChaincodeName string `protobuf:"bytes,1,opt,name=chaincode_name,json=chaincodeName,proto3" json:"chaincode_name,omitempty"` // contains filtered or unexported fields }
LifecycleEvent is used as the payload of the chaincode event emitted by LSCC
func (*LifecycleEvent) Descriptor
deprecated
func (*LifecycleEvent) Descriptor() ([]byte, []int)
Deprecated: Use LifecycleEvent.ProtoReflect.Descriptor instead.
func (*LifecycleEvent) GetChaincodeName ¶
func (x *LifecycleEvent) GetChaincodeName() string
func (*LifecycleEvent) ProtoMessage ¶
func (*LifecycleEvent) ProtoMessage()
func (*LifecycleEvent) ProtoReflect ¶
func (x *LifecycleEvent) ProtoReflect() protoreflect.Message
func (*LifecycleEvent) Reset ¶
func (x *LifecycleEvent) Reset()
func (*LifecycleEvent) String ¶
func (x *LifecycleEvent) String() string
type MetaDataKeys ¶
type MetaDataKeys int32
Reserved entries in the key-level metadata map
const ( MetaDataKeys_VALIDATION_PARAMETER MetaDataKeys = 0 MetaDataKeys_VALIDATION_PARAMETER_V2 MetaDataKeys = 1 )
func (MetaDataKeys) Descriptor ¶
func (MetaDataKeys) Descriptor() protoreflect.EnumDescriptor
func (MetaDataKeys) Enum ¶
func (x MetaDataKeys) Enum() *MetaDataKeys
func (MetaDataKeys) EnumDescriptor
deprecated
func (MetaDataKeys) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetaDataKeys.Descriptor instead.
func (MetaDataKeys) Number ¶
func (x MetaDataKeys) Number() protoreflect.EnumNumber
func (MetaDataKeys) String ¶
func (x MetaDataKeys) String() string
func (MetaDataKeys) Type ¶
func (MetaDataKeys) Type() protoreflect.EnumType
type ProcessedTransaction ¶
type ProcessedTransaction struct { // An Envelope which includes a processed transaction TransactionEnvelope *common.Envelope `protobuf:"bytes,1,opt,name=transactionEnvelope,proto3" json:"transactionEnvelope,omitempty"` // An indication of whether the transaction was validated or invalidated by committing peer ValidationCode int32 `protobuf:"varint,2,opt,name=validationCode,proto3" json:"validationCode,omitempty"` // contains filtered or unexported fields }
ProcessedTransaction wraps an Envelope that includes a transaction along with an indication of whether the transaction was validated or invalidated by committing peer. The use case is that GetTransactionByID API needs to retrieve the transaction Envelope from block storage, and return it to a client, and indicate whether the transaction was validated or invalidated by committing peer. So that the originally submitted transaction Envelope is not modified, the ProcessedTransaction wrapper is returned.
func (*ProcessedTransaction) Descriptor
deprecated
func (*ProcessedTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ProcessedTransaction.ProtoReflect.Descriptor instead.
func (*ProcessedTransaction) GetTransactionEnvelope ¶
func (x *ProcessedTransaction) GetTransactionEnvelope() *common.Envelope
func (*ProcessedTransaction) GetValidationCode ¶
func (x *ProcessedTransaction) GetValidationCode() int32
func (*ProcessedTransaction) ProtoMessage ¶
func (*ProcessedTransaction) ProtoMessage()
func (*ProcessedTransaction) ProtoReflect ¶
func (x *ProcessedTransaction) ProtoReflect() protoreflect.Message
func (*ProcessedTransaction) Reset ¶
func (x *ProcessedTransaction) Reset()
func (*ProcessedTransaction) String ¶
func (x *ProcessedTransaction) String() string
type Proposal ¶
type Proposal struct { // The header of the proposal. It is the bytes of the Header Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The payload of the proposal as defined by the type in the proposal // header. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // Optional extensions to the proposal. Its content depends on the Header's // type field. For the type CHAINCODE, it might be the bytes of a // ChaincodeAction message. Extension []byte `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"` // contains filtered or unexported fields }
A Proposal is sent to an endorser for endorsement. The proposal contains:
- A header which should be unmarshaled to a Header message. Note that Header is both the header of a Proposal and of a Transaction, in that i) both headers should be unmarshaled to this message; and ii) it is used to compute cryptographic hashes and signatures. The header has fields common to all proposals/transactions. In addition it has a type field for additional customization. An example of this is the ChaincodeHeaderExtension message used to extend the Header for type CHAINCODE.
- A payload whose type depends on the header's type field.
- An extension whose type depends on the header's type field.
Let us see an example. For type CHAINCODE (see the Header message), we have the following:
- The header is a Header message whose extensions field is a ChaincodeHeaderExtension message.
- The payload is a ChaincodeProposalPayload message.
- The extension is a ChaincodeAction that might be used to ask the endorsers to endorse a specific ChaincodeAction, thus emulating the submitting peer model.
func (*Proposal) Descriptor
deprecated
func (*Proposal) GetExtension ¶
func (*Proposal) GetPayload ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) ProtoReflect ¶
func (x *Proposal) ProtoReflect() protoreflect.Message
type ProposalResponse ¶
type ProposalResponse struct { // Version indicates message protocol version Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Timestamp is the time that the message // was created as defined by the sender Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A response message indicating whether the // endorsement of the action was successful Response *Response `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` // The payload of response. It is the bytes of ProposalResponsePayload Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // The endorsement of the proposal, basically // the endorser's signature over the payload Endorsement *Endorsement `protobuf:"bytes,6,opt,name=endorsement,proto3" json:"endorsement,omitempty"` // The chaincode interest derived from simulating the proposal. Interest *ChaincodeInterest `protobuf:"bytes,7,opt,name=interest,proto3" json:"interest,omitempty"` // contains filtered or unexported fields }
A ProposalResponse is returned from an endorser to the proposal submitter. The idea is that this message contains the endorser's response to the request of a client to perform an action over a chaincode (or more generically on the ledger); the response might be success/error (conveyed in the Response field) together with a description of the action and a signature over it by that endorser. If a sufficient number of distinct endorsers agree on the same action and produce signature to that effect, a transaction can be generated and sent for ordering.
func (*ProposalResponse) Descriptor
deprecated
func (*ProposalResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProposalResponse.ProtoReflect.Descriptor instead.
func (*ProposalResponse) GetEndorsement ¶
func (x *ProposalResponse) GetEndorsement() *Endorsement
func (*ProposalResponse) GetInterest ¶
func (x *ProposalResponse) GetInterest() *ChaincodeInterest
func (*ProposalResponse) GetPayload ¶
func (x *ProposalResponse) GetPayload() []byte
func (*ProposalResponse) GetResponse ¶
func (x *ProposalResponse) GetResponse() *Response
func (*ProposalResponse) GetTimestamp ¶
func (x *ProposalResponse) GetTimestamp() *timestamppb.Timestamp
func (*ProposalResponse) GetVersion ¶
func (x *ProposalResponse) GetVersion() int32
func (*ProposalResponse) ProtoMessage ¶
func (*ProposalResponse) ProtoMessage()
func (*ProposalResponse) ProtoReflect ¶
func (x *ProposalResponse) ProtoReflect() protoreflect.Message
func (*ProposalResponse) Reset ¶
func (x *ProposalResponse) Reset()
func (*ProposalResponse) String ¶
func (x *ProposalResponse) String() string
type ProposalResponsePayload ¶
type ProposalResponsePayload struct { // Hash of the proposal that triggered this response. The hash is used to // link a response with its proposal, both for bookeeping purposes on an // asynchronous system and for security reasons (accountability, // non-repudiation). The hash usually covers the entire Proposal message // (byte-by-byte). ProposalHash []byte `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"` // Extension should be unmarshaled to a type-specific message. The type of // the extension in any proposal response depends on the type of the proposal // that the client selected when the proposal was initially sent out. In // particular, this information is stored in the type field of a Header. For // chaincode, it's a ChaincodeAction message Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` // contains filtered or unexported fields }
ProposalResponsePayload is the payload of a proposal response. This message is the "bridge" between the client's request and the endorser's action in response to that request. Concretely, for chaincodes, it contains a hashed representation of the proposal (proposalHash) and a representation of the chaincode state changes and events inside the extension field.
func (*ProposalResponsePayload) Descriptor
deprecated
func (*ProposalResponsePayload) Descriptor() ([]byte, []int)
Deprecated: Use ProposalResponsePayload.ProtoReflect.Descriptor instead.
func (*ProposalResponsePayload) GetExtension ¶
func (x *ProposalResponsePayload) GetExtension() []byte
func (*ProposalResponsePayload) GetProposalHash ¶
func (x *ProposalResponsePayload) GetProposalHash() []byte
func (*ProposalResponsePayload) ProtoMessage ¶
func (*ProposalResponsePayload) ProtoMessage()
func (*ProposalResponsePayload) ProtoReflect ¶
func (x *ProposalResponsePayload) ProtoReflect() protoreflect.Message
func (*ProposalResponsePayload) Reset ¶
func (x *ProposalResponsePayload) Reset()
func (*ProposalResponsePayload) String ¶
func (x *ProposalResponsePayload) String() string
type PurgePrivateState ¶ added in v0.2.0
type PurgePrivateState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
func (*PurgePrivateState) Descriptor
deprecated
added in
v0.2.0
func (*PurgePrivateState) Descriptor() ([]byte, []int)
Deprecated: Use PurgePrivateState.ProtoReflect.Descriptor instead.
func (*PurgePrivateState) GetCollection ¶ added in v0.2.0
func (x *PurgePrivateState) GetCollection() string
func (*PurgePrivateState) GetKey ¶ added in v0.2.0
func (x *PurgePrivateState) GetKey() string
func (*PurgePrivateState) ProtoMessage ¶ added in v0.2.0
func (*PurgePrivateState) ProtoMessage()
func (*PurgePrivateState) ProtoReflect ¶ added in v0.2.0
func (x *PurgePrivateState) ProtoReflect() protoreflect.Message
func (*PurgePrivateState) Reset ¶ added in v0.2.0
func (x *PurgePrivateState) Reset()
func (*PurgePrivateState) String ¶ added in v0.2.0
func (x *PurgePrivateState) String() string
type PutState ¶
type PutState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
PutState is the payload of a ChaincodeMessage. It contains a key and value which needs to be written to the transaction's write set. If the collection is specified, the key and value would be written to the transaction's private write set.
func (*PutState) Descriptor
deprecated
func (*PutState) GetCollection ¶
func (*PutState) ProtoMessage ¶
func (*PutState) ProtoMessage()
func (*PutState) ProtoReflect ¶
func (x *PutState) ProtoReflect() protoreflect.Message
type PutStateMetadata ¶
type PutStateMetadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` Metadata *StateMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*PutStateMetadata) Descriptor
deprecated
func (*PutStateMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PutStateMetadata.ProtoReflect.Descriptor instead.
func (*PutStateMetadata) GetCollection ¶
func (x *PutStateMetadata) GetCollection() string
func (*PutStateMetadata) GetKey ¶
func (x *PutStateMetadata) GetKey() string
func (*PutStateMetadata) GetMetadata ¶
func (x *PutStateMetadata) GetMetadata() *StateMetadata
func (*PutStateMetadata) ProtoMessage ¶
func (*PutStateMetadata) ProtoMessage()
func (*PutStateMetadata) ProtoReflect ¶
func (x *PutStateMetadata) ProtoReflect() protoreflect.Message
func (*PutStateMetadata) Reset ¶
func (x *PutStateMetadata) Reset()
func (*PutStateMetadata) String ¶
func (x *PutStateMetadata) String() string
type QueryMetadata ¶
type QueryMetadata struct { PageSize int32 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` // contains filtered or unexported fields }
QueryMetadata is the metadata of a GetStateByRange and GetQueryResult. It contains a pageSize which denotes the number of records to be fetched and a bookmark.
func (*QueryMetadata) Descriptor
deprecated
func (*QueryMetadata) Descriptor() ([]byte, []int)
Deprecated: Use QueryMetadata.ProtoReflect.Descriptor instead.
func (*QueryMetadata) GetBookmark ¶
func (x *QueryMetadata) GetBookmark() string
func (*QueryMetadata) GetPageSize ¶
func (x *QueryMetadata) GetPageSize() int32
func (*QueryMetadata) ProtoMessage ¶
func (*QueryMetadata) ProtoMessage()
func (*QueryMetadata) ProtoReflect ¶
func (x *QueryMetadata) ProtoReflect() protoreflect.Message
func (*QueryMetadata) Reset ¶
func (x *QueryMetadata) Reset()
func (*QueryMetadata) String ¶
func (x *QueryMetadata) String() string
type QueryPendingSnapshotsResponse ¶
type QueryPendingSnapshotsResponse struct { BlockNumbers []uint64 `protobuf:"varint,1,rep,packed,name=block_numbers,json=blockNumbers,proto3" json:"block_numbers,omitempty"` // contains filtered or unexported fields }
QueryPendingSnapshotsResponse specifies the response payload of a query pending snapshots request
func (*QueryPendingSnapshotsResponse) Descriptor
deprecated
func (*QueryPendingSnapshotsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPendingSnapshotsResponse.ProtoReflect.Descriptor instead.
func (*QueryPendingSnapshotsResponse) GetBlockNumbers ¶
func (x *QueryPendingSnapshotsResponse) GetBlockNumbers() []uint64
func (*QueryPendingSnapshotsResponse) ProtoMessage ¶
func (*QueryPendingSnapshotsResponse) ProtoMessage()
func (*QueryPendingSnapshotsResponse) ProtoReflect ¶
func (x *QueryPendingSnapshotsResponse) ProtoReflect() protoreflect.Message
func (*QueryPendingSnapshotsResponse) Reset ¶
func (x *QueryPendingSnapshotsResponse) Reset()
func (*QueryPendingSnapshotsResponse) String ¶
func (x *QueryPendingSnapshotsResponse) String() string
type QueryResponse ¶
type QueryResponse struct { Results []*QueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
QueryResponse is returned by the peer as a result of a GetStateByRange, GetQueryResult, and GetHistoryForKey. It holds a bunch of records in results field, a flag to denote whether more results need to be fetched from the peer in has_more field, transaction id in id field, and a QueryResponseMetadata in metadata field.
func (*QueryResponse) Descriptor
deprecated
func (*QueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.
func (*QueryResponse) GetHasMore ¶
func (x *QueryResponse) GetHasMore() bool
func (*QueryResponse) GetId ¶
func (x *QueryResponse) GetId() string
func (*QueryResponse) GetMetadata ¶
func (x *QueryResponse) GetMetadata() []byte
func (*QueryResponse) GetResults ¶
func (x *QueryResponse) GetResults() []*QueryResultBytes
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) ProtoReflect ¶
func (x *QueryResponse) ProtoReflect() protoreflect.Message
func (*QueryResponse) Reset ¶
func (x *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (x *QueryResponse) String() string
type QueryResponseMetadata ¶
type QueryResponseMetadata struct { FetchedRecordsCount int32 `protobuf:"varint,1,opt,name=fetched_records_count,json=fetchedRecordsCount,proto3" json:"fetched_records_count,omitempty"` Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` // contains filtered or unexported fields }
QueryResponseMetadata is the metadata of a QueryResponse. It contains a count which denotes the number of records fetched from the ledger and a bookmark.
func (*QueryResponseMetadata) Descriptor
deprecated
func (*QueryResponseMetadata) Descriptor() ([]byte, []int)
Deprecated: Use QueryResponseMetadata.ProtoReflect.Descriptor instead.
func (*QueryResponseMetadata) GetBookmark ¶
func (x *QueryResponseMetadata) GetBookmark() string
func (*QueryResponseMetadata) GetFetchedRecordsCount ¶
func (x *QueryResponseMetadata) GetFetchedRecordsCount() int32
func (*QueryResponseMetadata) ProtoMessage ¶
func (*QueryResponseMetadata) ProtoMessage()
func (*QueryResponseMetadata) ProtoReflect ¶
func (x *QueryResponseMetadata) ProtoReflect() protoreflect.Message
func (*QueryResponseMetadata) Reset ¶
func (x *QueryResponseMetadata) Reset()
func (*QueryResponseMetadata) String ¶
func (x *QueryResponseMetadata) String() string
type QueryResultBytes ¶
type QueryResultBytes struct { ResultBytes []byte `protobuf:"bytes,1,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"` // contains filtered or unexported fields }
QueryResultBytes hold the byte representation of a record returned by the peer.
func (*QueryResultBytes) Descriptor
deprecated
func (*QueryResultBytes) Descriptor() ([]byte, []int)
Deprecated: Use QueryResultBytes.ProtoReflect.Descriptor instead.
func (*QueryResultBytes) GetResultBytes ¶
func (x *QueryResultBytes) GetResultBytes() []byte
func (*QueryResultBytes) ProtoMessage ¶
func (*QueryResultBytes) ProtoMessage()
func (*QueryResultBytes) ProtoReflect ¶
func (x *QueryResultBytes) ProtoReflect() protoreflect.Message
func (*QueryResultBytes) Reset ¶
func (x *QueryResultBytes) Reset()
func (*QueryResultBytes) String ¶
func (x *QueryResultBytes) String() string
type QueryStateClose ¶
type QueryStateClose struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QueryStateClose) Descriptor
deprecated
func (*QueryStateClose) Descriptor() ([]byte, []int)
Deprecated: Use QueryStateClose.ProtoReflect.Descriptor instead.
func (*QueryStateClose) GetId ¶
func (x *QueryStateClose) GetId() string
func (*QueryStateClose) ProtoMessage ¶
func (*QueryStateClose) ProtoMessage()
func (*QueryStateClose) ProtoReflect ¶
func (x *QueryStateClose) ProtoReflect() protoreflect.Message
func (*QueryStateClose) Reset ¶
func (x *QueryStateClose) Reset()
func (*QueryStateClose) String ¶
func (x *QueryStateClose) String() string
type QueryStateNext ¶
type QueryStateNext struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QueryStateNext) Descriptor
deprecated
func (*QueryStateNext) Descriptor() ([]byte, []int)
Deprecated: Use QueryStateNext.ProtoReflect.Descriptor instead.
func (*QueryStateNext) GetId ¶
func (x *QueryStateNext) GetId() string
func (*QueryStateNext) ProtoMessage ¶
func (*QueryStateNext) ProtoMessage()
func (*QueryStateNext) ProtoReflect ¶
func (x *QueryStateNext) ProtoReflect() protoreflect.Message
func (*QueryStateNext) Reset ¶
func (x *QueryStateNext) Reset()
func (*QueryStateNext) String ¶
func (x *QueryStateNext) String() string
type Response ¶
type Response struct { // A status code that should follow the HTTP status codes. Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // A message associated with the response code. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A payload that can be used to include metadata with this response. Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
A response with a representation similar to an HTTP response that can be used within another message.
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) GetPayload ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type SignedChaincodeDeploymentSpec ¶
type SignedChaincodeDeploymentSpec struct { // This is the bytes of the ChaincodeDeploymentSpec ChaincodeDeploymentSpec []byte `` /* 132-byte string literal not displayed */ // This is the instantiation policy which is identical in structure // to endorsement policy. This policy is checked by the VSCC at commit // time on the instantiation (all peers will get the same policy as it // will be part of the LSCC instantation record and will be part of the // hash as well) InstantiationPolicy []byte `protobuf:"bytes,2,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"` // The endorsements of the above deployment spec, the owner's signature over // chaincode_deployment_spec and Endorsement.endorser. OwnerEndorsements []*Endorsement `protobuf:"bytes,3,rep,name=owner_endorsements,json=ownerEndorsements,proto3" json:"owner_endorsements,omitempty"` // contains filtered or unexported fields }
SignedChaincodeDeploymentSpec carries the CDS along with endorsements
func (*SignedChaincodeDeploymentSpec) Descriptor
deprecated
func (*SignedChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
Deprecated: Use SignedChaincodeDeploymentSpec.ProtoReflect.Descriptor instead.
func (*SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec ¶
func (x *SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec() []byte
func (*SignedChaincodeDeploymentSpec) GetInstantiationPolicy ¶
func (x *SignedChaincodeDeploymentSpec) GetInstantiationPolicy() []byte
func (*SignedChaincodeDeploymentSpec) GetOwnerEndorsements ¶
func (x *SignedChaincodeDeploymentSpec) GetOwnerEndorsements() []*Endorsement
func (*SignedChaincodeDeploymentSpec) ProtoMessage ¶
func (*SignedChaincodeDeploymentSpec) ProtoMessage()
func (*SignedChaincodeDeploymentSpec) ProtoReflect ¶
func (x *SignedChaincodeDeploymentSpec) ProtoReflect() protoreflect.Message
func (*SignedChaincodeDeploymentSpec) Reset ¶
func (x *SignedChaincodeDeploymentSpec) Reset()
func (*SignedChaincodeDeploymentSpec) String ¶
func (x *SignedChaincodeDeploymentSpec) String() string
type SignedProposal ¶
type SignedProposal struct { // The bytes of Proposal ProposalBytes []byte `protobuf:"bytes,1,opt,name=proposal_bytes,json=proposalBytes,proto3" json:"proposal_bytes,omitempty"` // Signaure over proposalBytes; this signature is to be verified against // the creator identity contained in the header of the Proposal message // marshaled as proposalBytes Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
This structure is necessary to sign the proposal which contains the header and the payload. Without this structure, we would have to concatenate the header and the payload to verify the signature, which could be expensive with large payload
When an endorser receives a SignedProposal message, it should verify the signature over the proposal bytes. This verification requires the following steps:
- Verification of the validity of the certificate that was used to produce the signature. The certificate will be available once proposalBytes has been unmarshalled to a Proposal message, and Proposal.header has been unmarshalled to a Header message. While this unmarshalling-before-verifying might not be ideal, it is unavoidable because i) the signature needs to also protect the signing certificate; ii) it is desirable that Header is created once by the client and never changed (for the sake of accountability and non-repudiation). Note also that it is actually impossible to conclusively verify the validity of the certificate included in a Proposal, because the proposal needs to first be endorsed and ordered with respect to certificate expiration transactions. Still, it is useful to pre-filter expired certificates at this stage.
- Verification that the certificate is trusted (signed by a trusted CA) and that it is allowed to transact with us (with respect to some ACLs);
- Verification that the signature on proposalBytes is valid;
- Detect replay attacks;
func (*SignedProposal) Descriptor
deprecated
func (*SignedProposal) Descriptor() ([]byte, []int)
Deprecated: Use SignedProposal.ProtoReflect.Descriptor instead.
func (*SignedProposal) GetProposalBytes ¶
func (x *SignedProposal) GetProposalBytes() []byte
func (*SignedProposal) GetSignature ¶
func (x *SignedProposal) GetSignature() []byte
func (*SignedProposal) ProtoMessage ¶
func (*SignedProposal) ProtoMessage()
func (*SignedProposal) ProtoReflect ¶
func (x *SignedProposal) ProtoReflect() protoreflect.Message
func (*SignedProposal) Reset ¶
func (x *SignedProposal) Reset()
func (*SignedProposal) String ¶
func (x *SignedProposal) String() string
type SignedSnapshotRequest ¶
type SignedSnapshotRequest struct { // The bytes of SnapshotRequest or SnapshotQuery Request []byte `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // Signaure over request bytes; this signature is to be verified against the client identity Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
SignedSnapshotRequest contains marshalled request bytes and signature
func (*SignedSnapshotRequest) Descriptor
deprecated
func (*SignedSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignedSnapshotRequest.ProtoReflect.Descriptor instead.
func (*SignedSnapshotRequest) GetRequest ¶
func (x *SignedSnapshotRequest) GetRequest() []byte
func (*SignedSnapshotRequest) GetSignature ¶
func (x *SignedSnapshotRequest) GetSignature() []byte
func (*SignedSnapshotRequest) ProtoMessage ¶
func (*SignedSnapshotRequest) ProtoMessage()
func (*SignedSnapshotRequest) ProtoReflect ¶
func (x *SignedSnapshotRequest) ProtoReflect() protoreflect.Message
func (*SignedSnapshotRequest) Reset ¶
func (x *SignedSnapshotRequest) Reset()
func (*SignedSnapshotRequest) String ¶
func (x *SignedSnapshotRequest) String() string
type SnapshotClient ¶
type SnapshotClient interface { // Generate a snapshot reqeust. SignedSnapshotRequest contains marshalled bytes for SnaphostRequest Generate(ctx context.Context, in *SignedSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Cancel a snapshot reqeust. SignedSnapshotRequest contains marshalled bytes for SnaphostRequest Cancel(ctx context.Context, in *SignedSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Query pending snapshots query. SignedSnapshotRequest contains marshalled bytes for SnaphostQuery QueryPendings(ctx context.Context, in *SignedSnapshotRequest, opts ...grpc.CallOption) (*QueryPendingSnapshotsResponse, error) }
SnapshotClient is the client API for Snapshot service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSnapshotClient ¶
func NewSnapshotClient(cc grpc.ClientConnInterface) SnapshotClient
type SnapshotQuery ¶
type SnapshotQuery struct { // The signature header that contains creator identity and nonce SignatureHeader *common.SignatureHeader `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` // The channel ID ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
SnapshotQuery contains information for a query snapshot request
func (*SnapshotQuery) Descriptor
deprecated
func (*SnapshotQuery) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotQuery.ProtoReflect.Descriptor instead.
func (*SnapshotQuery) GetChannelId ¶
func (x *SnapshotQuery) GetChannelId() string
func (*SnapshotQuery) GetSignatureHeader ¶
func (x *SnapshotQuery) GetSignatureHeader() *common.SignatureHeader
func (*SnapshotQuery) ProtoMessage ¶
func (*SnapshotQuery) ProtoMessage()
func (*SnapshotQuery) ProtoReflect ¶
func (x *SnapshotQuery) ProtoReflect() protoreflect.Message
func (*SnapshotQuery) Reset ¶
func (x *SnapshotQuery) Reset()
func (*SnapshotQuery) String ¶
func (x *SnapshotQuery) String() string
type SnapshotRequest ¶
type SnapshotRequest struct { // The signature header that contains creator identity and nonce SignatureHeader *common.SignatureHeader `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` // The channel ID ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // The block number to generate a snapshot BlockNumber uint64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // contains filtered or unexported fields }
SnapshotRequest contains information for a generate/cancel snapshot request
func (*SnapshotRequest) Descriptor
deprecated
func (*SnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotRequest.ProtoReflect.Descriptor instead.
func (*SnapshotRequest) GetBlockNumber ¶
func (x *SnapshotRequest) GetBlockNumber() uint64
func (*SnapshotRequest) GetChannelId ¶
func (x *SnapshotRequest) GetChannelId() string
func (*SnapshotRequest) GetSignatureHeader ¶
func (x *SnapshotRequest) GetSignatureHeader() *common.SignatureHeader
func (*SnapshotRequest) ProtoMessage ¶
func (*SnapshotRequest) ProtoMessage()
func (*SnapshotRequest) ProtoReflect ¶
func (x *SnapshotRequest) ProtoReflect() protoreflect.Message
func (*SnapshotRequest) Reset ¶
func (x *SnapshotRequest) Reset()
func (*SnapshotRequest) String ¶
func (x *SnapshotRequest) String() string
type SnapshotServer ¶
type SnapshotServer interface { // Generate a snapshot reqeust. SignedSnapshotRequest contains marshalled bytes for SnaphostRequest Generate(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error) // Cancel a snapshot reqeust. SignedSnapshotRequest contains marshalled bytes for SnaphostRequest Cancel(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error) // Query pending snapshots query. SignedSnapshotRequest contains marshalled bytes for SnaphostQuery QueryPendings(context.Context, *SignedSnapshotRequest) (*QueryPendingSnapshotsResponse, error) }
SnapshotServer is the server API for Snapshot service. All implementations should embed UnimplementedSnapshotServer for forward compatibility.
type StateMetadata ¶
type StateMetadata struct { Metakey string `protobuf:"bytes,1,opt,name=metakey,proto3" json:"metakey,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*StateMetadata) Descriptor
deprecated
func (*StateMetadata) Descriptor() ([]byte, []int)
Deprecated: Use StateMetadata.ProtoReflect.Descriptor instead.
func (*StateMetadata) GetMetakey ¶
func (x *StateMetadata) GetMetakey() string
func (*StateMetadata) GetValue ¶
func (x *StateMetadata) GetValue() []byte
func (*StateMetadata) ProtoMessage ¶
func (*StateMetadata) ProtoMessage()
func (*StateMetadata) ProtoReflect ¶
func (x *StateMetadata) ProtoReflect() protoreflect.Message
func (*StateMetadata) Reset ¶
func (x *StateMetadata) Reset()
func (*StateMetadata) String ¶
func (x *StateMetadata) String() string
type StateMetadataResult ¶
type StateMetadataResult struct { Entries []*StateMetadata `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
func (*StateMetadataResult) Descriptor
deprecated
func (*StateMetadataResult) Descriptor() ([]byte, []int)
Deprecated: Use StateMetadataResult.ProtoReflect.Descriptor instead.
func (*StateMetadataResult) GetEntries ¶
func (x *StateMetadataResult) GetEntries() []*StateMetadata
func (*StateMetadataResult) ProtoMessage ¶
func (*StateMetadataResult) ProtoMessage()
func (*StateMetadataResult) ProtoReflect ¶
func (x *StateMetadataResult) ProtoReflect() protoreflect.Message
func (*StateMetadataResult) Reset ¶
func (x *StateMetadataResult) Reset()
func (*StateMetadataResult) String ¶
func (x *StateMetadataResult) String() string
type StaticCollectionConfig ¶
type StaticCollectionConfig struct { // the name of the collection inside the denoted chaincode Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // a reference to a policy residing / managed in the config block // to define which orgs have access to this collection’s private data MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"` // The minimum number of peers private data will be sent to upon // endorsement. The endorsement would fail if dissemination to at least // this number of peers is not achieved. RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"` // The maximum number of peers that private data will be sent to // upon endorsement. This number has to be bigger than required_peer_count. MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"` // The number of blocks after which the collection data expires. // For instance if the value is set to 10, a key last modified by block number 100 // will be purged at block number 111. A zero value is treated same as MaxUint64 BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"` // The member only read access denotes whether only collection member clients // can read the private data (if set to true), or even non members can // read the data (if set to false, for example if you want to implement more granular // access logic in the chaincode) MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"` // The member only write access denotes whether only collection member clients // can write the private data (if set to true), or even non members can // write the data (if set to false, for example if you want to implement more granular // access logic in the chaincode) MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"` // a reference to a policy residing / managed in the config block // to define the endorsement policy for this collection EndorsementPolicy *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"` // contains filtered or unexported fields }
StaticCollectionConfig constitutes the configuration parameters of a static collection object. Static collections are collections that are known at chaincode instantiation time, and that cannot be changed. Dynamic collections are deferred.
func (*StaticCollectionConfig) Descriptor
deprecated
func (*StaticCollectionConfig) Descriptor() ([]byte, []int)
Deprecated: Use StaticCollectionConfig.ProtoReflect.Descriptor instead.
func (*StaticCollectionConfig) GetBlockToLive ¶
func (x *StaticCollectionConfig) GetBlockToLive() uint64
func (*StaticCollectionConfig) GetEndorsementPolicy ¶
func (x *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy
func (*StaticCollectionConfig) GetMaximumPeerCount ¶
func (x *StaticCollectionConfig) GetMaximumPeerCount() int32
func (*StaticCollectionConfig) GetMemberOnlyRead ¶
func (x *StaticCollectionConfig) GetMemberOnlyRead() bool
func (*StaticCollectionConfig) GetMemberOnlyWrite ¶
func (x *StaticCollectionConfig) GetMemberOnlyWrite() bool
func (*StaticCollectionConfig) GetMemberOrgsPolicy ¶
func (x *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig
func (*StaticCollectionConfig) GetName ¶
func (x *StaticCollectionConfig) GetName() string
func (*StaticCollectionConfig) GetRequiredPeerCount ¶
func (x *StaticCollectionConfig) GetRequiredPeerCount() int32
func (*StaticCollectionConfig) ProtoMessage ¶
func (*StaticCollectionConfig) ProtoMessage()
func (*StaticCollectionConfig) ProtoReflect ¶
func (x *StaticCollectionConfig) ProtoReflect() protoreflect.Message
func (*StaticCollectionConfig) Reset ¶
func (x *StaticCollectionConfig) Reset()
func (*StaticCollectionConfig) String ¶
func (x *StaticCollectionConfig) String() string
type Transaction ¶
type Transaction struct { // The payload is an array of TransactionAction. An array is necessary to // accommodate multiple actions per transaction Actions []*TransactionAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
The transaction to be sent to the ordering service. A transaction contains one or more TransactionAction. Each TransactionAction binds a proposal to potentially multiple actions. The transaction is atomic meaning that either all actions in the transaction will be committed or none will. Note that while a Transaction might include more than one Header, the Header.creator field must be the same in each. A single client is free to issue a number of independent Proposal, each with their header (Header) and request payload (ChaincodeProposalPayload). Each proposal is independently endorsed generating an action (ProposalResponsePayload) with one signature per Endorser. Any number of independent proposals (and their action) might be included in a transaction to ensure that they are treated atomically.
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetActions ¶
func (x *Transaction) GetActions() []*TransactionAction
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionAction ¶
type TransactionAction struct { // The header of the proposal action, which is the proposal header Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The payload of the action as defined by the type in the header For // chaincode, it's the bytes of ChaincodeActionPayload Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
TransactionAction binds a proposal to its action. The type field in the header dictates the type of action to be applied to the ledger.
func (*TransactionAction) Descriptor
deprecated
func (*TransactionAction) Descriptor() ([]byte, []int)
Deprecated: Use TransactionAction.ProtoReflect.Descriptor instead.
func (*TransactionAction) GetHeader ¶
func (x *TransactionAction) GetHeader() []byte
func (*TransactionAction) GetPayload ¶
func (x *TransactionAction) GetPayload() []byte
func (*TransactionAction) ProtoMessage ¶
func (*TransactionAction) ProtoMessage()
func (*TransactionAction) ProtoReflect ¶
func (x *TransactionAction) ProtoReflect() protoreflect.Message
func (*TransactionAction) Reset ¶
func (x *TransactionAction) Reset()
func (*TransactionAction) String ¶
func (x *TransactionAction) String() string
type TxValidationCode ¶
type TxValidationCode int32
const ( TxValidationCode_VALID TxValidationCode = 0 TxValidationCode_NIL_ENVELOPE TxValidationCode = 1 TxValidationCode_BAD_PAYLOAD TxValidationCode = 2 TxValidationCode_BAD_COMMON_HEADER TxValidationCode = 3 TxValidationCode_BAD_CREATOR_SIGNATURE TxValidationCode = 4 TxValidationCode_INVALID_ENDORSER_TRANSACTION TxValidationCode = 5 TxValidationCode_INVALID_CONFIG_TRANSACTION TxValidationCode = 6 TxValidationCode_UNSUPPORTED_TX_PAYLOAD TxValidationCode = 7 TxValidationCode_BAD_PROPOSAL_TXID TxValidationCode = 8 TxValidationCode_DUPLICATE_TXID TxValidationCode = 9 TxValidationCode_ENDORSEMENT_POLICY_FAILURE TxValidationCode = 10 TxValidationCode_MVCC_READ_CONFLICT TxValidationCode = 11 TxValidationCode_PHANTOM_READ_CONFLICT TxValidationCode = 12 TxValidationCode_UNKNOWN_TX_TYPE TxValidationCode = 13 TxValidationCode_TARGET_CHAIN_NOT_FOUND TxValidationCode = 14 TxValidationCode_MARSHAL_TX_ERROR TxValidationCode = 15 TxValidationCode_NIL_TXACTION TxValidationCode = 16 TxValidationCode_EXPIRED_CHAINCODE TxValidationCode = 17 TxValidationCode_CHAINCODE_VERSION_CONFLICT TxValidationCode = 18 TxValidationCode_BAD_HEADER_EXTENSION TxValidationCode = 19 TxValidationCode_BAD_CHANNEL_HEADER TxValidationCode = 20 TxValidationCode_BAD_RESPONSE_PAYLOAD TxValidationCode = 21 TxValidationCode_BAD_RWSET TxValidationCode = 22 TxValidationCode_ILLEGAL_WRITESET TxValidationCode = 23 TxValidationCode_INVALID_WRITESET TxValidationCode = 24 TxValidationCode_INVALID_CHAINCODE TxValidationCode = 25 TxValidationCode_NOT_VALIDATED TxValidationCode = 254 TxValidationCode_INVALID_OTHER_REASON TxValidationCode = 255 )
func (TxValidationCode) Descriptor ¶
func (TxValidationCode) Descriptor() protoreflect.EnumDescriptor
func (TxValidationCode) Enum ¶
func (x TxValidationCode) Enum() *TxValidationCode
func (TxValidationCode) EnumDescriptor
deprecated
func (TxValidationCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use TxValidationCode.Descriptor instead.
func (TxValidationCode) Number ¶
func (x TxValidationCode) Number() protoreflect.EnumNumber
func (TxValidationCode) String ¶
func (x TxValidationCode) String() string
func (TxValidationCode) Type ¶
func (TxValidationCode) Type() protoreflect.EnumType
type UnimplementedChaincodeServer ¶
type UnimplementedChaincodeServer struct{}
UnimplementedChaincodeServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedChaincodeServer) Connect ¶
func (UnimplementedChaincodeServer) Connect(grpc.BidiStreamingServer[ChaincodeMessage, ChaincodeMessage]) error
type UnimplementedChaincodeSupportServer ¶
type UnimplementedChaincodeSupportServer struct{}
UnimplementedChaincodeSupportServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedChaincodeSupportServer) Register ¶
func (UnimplementedChaincodeSupportServer) Register(grpc.BidiStreamingServer[ChaincodeMessage, ChaincodeMessage]) error
type UnimplementedDeliverServer ¶
type UnimplementedDeliverServer struct{}
UnimplementedDeliverServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDeliverServer) Deliver ¶
func (UnimplementedDeliverServer) Deliver(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error
func (UnimplementedDeliverServer) DeliverFiltered ¶
func (UnimplementedDeliverServer) DeliverFiltered(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error
func (UnimplementedDeliverServer) DeliverWithPrivateData ¶
func (UnimplementedDeliverServer) DeliverWithPrivateData(grpc.BidiStreamingServer[common.Envelope, DeliverResponse]) error
type UnimplementedEndorserServer ¶
type UnimplementedEndorserServer struct{}
UnimplementedEndorserServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedEndorserServer) ProcessProposal ¶
func (UnimplementedEndorserServer) ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error)
type UnimplementedSnapshotServer ¶
type UnimplementedSnapshotServer struct{}
UnimplementedSnapshotServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSnapshotServer) Cancel ¶
func (UnimplementedSnapshotServer) Cancel(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error)
func (UnimplementedSnapshotServer) Generate ¶
func (UnimplementedSnapshotServer) Generate(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error)
func (UnimplementedSnapshotServer) QueryPendings ¶
func (UnimplementedSnapshotServer) QueryPendings(context.Context, *SignedSnapshotRequest) (*QueryPendingSnapshotsResponse, error)
type UnsafeChaincodeServer ¶
type UnsafeChaincodeServer interface {
// contains filtered or unexported methods
}
UnsafeChaincodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChaincodeServer will result in compilation errors.
type UnsafeChaincodeSupportServer ¶
type UnsafeChaincodeSupportServer interface {
// contains filtered or unexported methods
}
UnsafeChaincodeSupportServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChaincodeSupportServer will result in compilation errors.
type UnsafeDeliverServer ¶
type UnsafeDeliverServer interface {
// contains filtered or unexported methods
}
UnsafeDeliverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeliverServer will result in compilation errors.
type UnsafeEndorserServer ¶
type UnsafeEndorserServer interface {
// contains filtered or unexported methods
}
UnsafeEndorserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EndorserServer will result in compilation errors.
type UnsafeSnapshotServer ¶
type UnsafeSnapshotServer interface {
// contains filtered or unexported methods
}
UnsafeSnapshotServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SnapshotServer will result in compilation errors.
type VSCCArgs ¶
type VSCCArgs struct { EndorsementPolicyRef string `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"` // A named reference to an endorsement policy, // contains filtered or unexported fields }
VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the argument field of the ChaincodeValidation message.
func (*VSCCArgs) Descriptor
deprecated
func (*VSCCArgs) GetEndorsementPolicyRef ¶
func (*VSCCArgs) ProtoMessage ¶
func (*VSCCArgs) ProtoMessage()
func (*VSCCArgs) ProtoReflect ¶
func (x *VSCCArgs) ProtoReflect() protoreflect.Message
type WriteBatchState ¶ added in v0.3.5
type WriteBatchState struct { Rec []*WriteRecord `protobuf:"bytes,1,rep,name=rec,proto3" json:"rec,omitempty"` // contains filtered or unexported fields }
WriteBatchState - set of records for state changes sent by the batch
func (*WriteBatchState) Descriptor
deprecated
added in
v0.3.5
func (*WriteBatchState) Descriptor() ([]byte, []int)
Deprecated: Use WriteBatchState.ProtoReflect.Descriptor instead.
func (*WriteBatchState) GetRec ¶ added in v0.3.5
func (x *WriteBatchState) GetRec() []*WriteRecord
func (*WriteBatchState) ProtoMessage ¶ added in v0.3.5
func (*WriteBatchState) ProtoMessage()
func (*WriteBatchState) ProtoReflect ¶ added in v0.3.5
func (x *WriteBatchState) ProtoReflect() protoreflect.Message
func (*WriteBatchState) Reset ¶ added in v0.3.5
func (x *WriteBatchState) Reset()
func (*WriteBatchState) String ¶ added in v0.3.5
func (x *WriteBatchState) String() string
type WriteRecord ¶ added in v0.3.5
type WriteRecord struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` Metadata *StateMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` Type WriteRecord_Type `protobuf:"varint,5,opt,name=type,proto3,enum=protos.WriteRecord_Type" json:"type,omitempty"` // contains filtered or unexported fields }
WriteRecord - single record with changes in the state of different types. Filled in depending on the type.
func (*WriteRecord) Descriptor
deprecated
added in
v0.3.5
func (*WriteRecord) Descriptor() ([]byte, []int)
Deprecated: Use WriteRecord.ProtoReflect.Descriptor instead.
func (*WriteRecord) GetCollection ¶ added in v0.3.5
func (x *WriteRecord) GetCollection() string
func (*WriteRecord) GetKey ¶ added in v0.3.5
func (x *WriteRecord) GetKey() string
func (*WriteRecord) GetMetadata ¶ added in v0.3.5
func (x *WriteRecord) GetMetadata() *StateMetadata
func (*WriteRecord) GetType ¶ added in v0.3.5
func (x *WriteRecord) GetType() WriteRecord_Type
func (*WriteRecord) GetValue ¶ added in v0.3.5
func (x *WriteRecord) GetValue() []byte
func (*WriteRecord) ProtoMessage ¶ added in v0.3.5
func (*WriteRecord) ProtoMessage()
func (*WriteRecord) ProtoReflect ¶ added in v0.3.5
func (x *WriteRecord) ProtoReflect() protoreflect.Message
func (*WriteRecord) Reset ¶ added in v0.3.5
func (x *WriteRecord) Reset()
func (*WriteRecord) String ¶ added in v0.3.5
func (x *WriteRecord) String() string
type WriteRecord_Type ¶ added in v0.3.5
type WriteRecord_Type int32
const ( WriteRecord_UNDEFINED WriteRecord_Type = 0 WriteRecord_PUT_STATE WriteRecord_Type = 9 WriteRecord_DEL_STATE WriteRecord_Type = 10 WriteRecord_PUT_STATE_METADATA WriteRecord_Type = 21 WriteRecord_PURGE_PRIVATE_DATA WriteRecord_Type = 23 )
func (WriteRecord_Type) Descriptor ¶ added in v0.3.5
func (WriteRecord_Type) Descriptor() protoreflect.EnumDescriptor
func (WriteRecord_Type) Enum ¶ added in v0.3.5
func (x WriteRecord_Type) Enum() *WriteRecord_Type
func (WriteRecord_Type) EnumDescriptor
deprecated
added in
v0.3.5
func (WriteRecord_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use WriteRecord_Type.Descriptor instead.
func (WriteRecord_Type) Number ¶ added in v0.3.5
func (x WriteRecord_Type) Number() protoreflect.EnumNumber
func (WriteRecord_Type) String ¶ added in v0.3.5
func (x WriteRecord_Type) String() string
func (WriteRecord_Type) Type ¶ added in v0.3.5
func (WriteRecord_Type) Type() protoreflect.EnumType
Source Files ¶
- chaincode.pb.go
- chaincode_event.pb.go
- chaincode_shim.pb.go
- chaincode_shim_grpc.pb.go
- collection.pb.go
- configuration.pb.go
- events.pb.go
- events_grpc.pb.go
- peer.pb.go
- peer_grpc.pb.go
- policy.pb.go
- proposal.pb.go
- proposal_response.pb.go
- query.pb.go
- resources.pb.go
- signed_cc_dep_spec.pb.go
- snapshot.pb.go
- snapshot_grpc.pb.go
- transaction.pb.go