Documentation
¶
Index ¶
- Variables
- func RegisterChaincodeServer(s *grpc.Server, srv ChaincodeServer)
- func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)
- func RegisterDeliverServer(s *grpc.Server, srv DeliverServer)
- func RegisterEndorserServer(s *grpc.Server, srv EndorserServer)
- func RegisterSnapshotServer(s *grpc.Server, 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() *pcommon.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() *pcommon.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 ChaincodeCall
- func (*ChaincodeCall) Descriptor() ([]byte, []int)deprecated
- func (x *ChaincodeCall) GetCollectionNames() []string
- func (x *ChaincodeCall) GetDisregardNamespacePolicy() bool
- func (x *ChaincodeCall) GetKeyPolicies() []*pcommon.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() *pcommon.SignaturePolicyEnvelope
- func (x *ChaincodeData) GetName() string
- func (x *ChaincodeData) GetPolicy() *pcommon.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) GetReference() string
- func (x *CollectionPolicyConfig) GetSignaturePolicy() *pcommon.SignaturePolicyEnvelope
- func (*CollectionPolicyConfig) ProtoMessage()
- func (x *CollectionPolicyConfig) ProtoReflect() protoreflect.Message
- func (x *CollectionPolicyConfig) Reset()
- func (x *CollectionPolicyConfig) String() string
- type CollectionPolicyConfig_Reference
- type CollectionPolicyConfig_SignaturePolicy
- type ConfigTree
- func (*ConfigTree) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigTree) GetChannelConfig() *pcommon.Config
- func (x *ConfigTree) GetResourcesConfig() *pcommon.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() *pcommon.Block
- func (x *DeliverResponse) GetBlockAndPrivateData() *BlockAndPrivateData
- func (x *DeliverResponse) GetFilteredBlock() *FilteredBlock
- func (x *DeliverResponse) GetStatus() pcommon.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() pcommon.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() *pcommon.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
- type QueryPendingSnapshotResponse
- func (*QueryPendingSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPendingSnapshotResponse) GetBlockNumbers() []uint64
- func (*QueryPendingSnapshotResponse) ProtoMessage()
- func (x *QueryPendingSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPendingSnapshotResponse) Reset()
- func (x *QueryPendingSnapshotResponse) 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() *pcommon.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() *pcommon.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
- 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) (*QueryPendingSnapshotResponse, error)
- type VSCCArgs
Constants ¶
This section is empty.
Variables ¶
var ( ChaincodeSpec_Type_name = map[int32]string{ 0: "UNDEFINED", 1: "GOLANG", } ChaincodeSpec_Type_value = map[string]int32{ "UNDEFINED": 0, "GOLANG": 1, } )
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", 12: "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", } 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": 12, "GET_STATE_BY_RANGE": 13, "GET_QUERY_RESULT": 14, "QUERY_STATE_NEXT": 15, "QUERY_STATE_CLOSE": 16, "KEEPALIVE": 17, "GET_HISTORY_FOR_KEY": 18, "GET_STATE_METADATA": 19, "PUT_STATE_METADATA": 20, "GET_PRIVATE_DATA_HASH": 21, "PURGE_PRIVATE_DATA": 22, } )
Enum value maps for ChaincodeMessage_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", 26: "NOT_VALIDATED", 27: "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": 26, "INVALID_OTHER_REASON": 27, } )
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 File_chaincode_event_proto protoreflect.FileDescriptor
var File_chaincode_proto protoreflect.FileDescriptor
var File_chaincode_shim_proto protoreflect.FileDescriptor
var File_collection_proto protoreflect.FileDescriptor
var File_configuration_proto protoreflect.FileDescriptor
var File_events_proto protoreflect.FileDescriptor
var File_peer_proto protoreflect.FileDescriptor
var File_policy_proto protoreflect.FileDescriptor
var File_proposal_proto protoreflect.FileDescriptor
var File_query_proto protoreflect.FileDescriptor
var File_resources_proto protoreflect.FileDescriptor
var File_signed_cc_dep_spec_proto protoreflect.FileDescriptor
var File_snapshot_proto protoreflect.FileDescriptor
var File_transaction_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChaincodeServer ¶
func RegisterChaincodeServer(s *grpc.Server, srv ChaincodeServer)
func RegisterChaincodeSupportServer ¶
func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)
func RegisterDeliverServer ¶
func RegisterDeliverServer(s *grpc.Server, srv DeliverServer)
func RegisterEndorserServer ¶
func RegisterEndorserServer(s *grpc.Server, srv EndorserServer)
func RegisterSnapshotServer ¶
func RegisterSnapshotServer(s *grpc.Server, srv SnapshotServer)
Types ¶
type ACLs ¶
type ACLs struct { Acls map[string]*APIResource `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
ACLs 结构体表示通道中资源的 ACL 映射,它包含一个 Acls 字段,是一个字符串到 APIResource 的映射。这个映射可以用于指定每个资源对应的访问控制策略。
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"` // contains filtered or unexported fields }
APIResource 表示一个 API 资源,其中包含一个 PolicyRef 字段,用于指定该 API 资源 的访问控制策略的名称。
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 锚节点的 DNS 主机名。 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Port 锚节点的端口号。 Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
AnchorPeer 结构体表示一个锚节点的详细信息,包括 host(锚节点的 DNS 主机名)和 port(端口号)。
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 用于存储多个锚节点的信息。
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 用于捕获在应用程序级别设置和评估的不同策略类型。
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() *pcommon.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 如果此策略是作为引用通道配置中定义的策略的字符 // 串指定的,则使用此类型。它是一个字符串字段,用于引用通道配置中的策略。 ChannelConfigPolicyReference string `protobuf:"bytes,2,opt,name=channel_config_policy_reference,json=channelConfigPolicyReference,proto3,oneof"` }
type ApplicationPolicy_SignaturePolicy ¶
type ApplicationPolicy_SignaturePolicy struct { // SignaturePolicy 如果策略是使用 MSP 主体的签名组合(阈值门限)指定的,则使用 // 此类型。它是 pcommon.SignaturePolicy 类型的字段。 SignaturePolicy *pcommon.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` }
type BlockAndPrivateData ¶
type BlockAndPrivateData struct { // Block 表示一个完整的区块。 Block *pcommon.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // PrivateDataMap 表示从交易序列号到 rwset.TxPvtReadWriteSet 的私有数据映射。 PrivateDataMap map[uint64]*rwset.TxPvtReadWriteSet `` /* 194-byte string literal not displayed */ // contains filtered or unexported fields }
BlockAndPrivateData 表示一个区块及其私有数据。
func (*BlockAndPrivateData) Descriptor
deprecated
func (*BlockAndPrivateData) Descriptor() ([]byte, []int)
Deprecated: Use BlockAndPrivateData.ProtoReflect.Descriptor instead.
func (*BlockAndPrivateData) GetBlock ¶
func (x *BlockAndPrivateData) GetBlock() *pcommon.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 表示 ChaincodeDeploymentSpec.CodePackage 的哈希值,ChaincodeDeploymentSpec.CodePackage // 存放了链码代码和相关代码依赖包。 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Metadatahash 表示 ChaincodeID.Name + ChaincodeID.Version 的哈希值。 Metadatahash []byte `protobuf:"bytes,2,opt,name=metadatahash,proto3" json:"metadatahash,omitempty"` // contains filtered or unexported fields }
CDSData 是在实例化链码时存储在 LSCC 中的数据,用于 CDSPackage,它需要以 protobuf 格式进行序列化, 以用于 ChaincodeData。
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 { // Results 包含由执行此次调用的链码产生的读集合写集,它是一个字节数组。 Results []byte `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"` // Events 包含由链码生成的事件,只包含一个序列化的 ChaincodeEvent。 Events []byte `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty"` // Response 包含执行此次调用链码的结果,它是一个 Response 类型。 Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // ChaincodeId 包含执行此次调用的链码的 id,背书节点在模拟提案时会设置它为所调用的链码的 ChaincodeID。 // 提交者将验证其与最新链码版本匹配。通过添加 ChaincodeID,可以在一个交易中出现多个 ChaincodeAction 的 // 可能性。 ChaincodeId *ChaincodeID `protobuf:"bytes,4,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` // contains filtered or unexported fields }
ChaincodeAction 包含了链码执行的结果、响应和事件。
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 { // ChaincodeProposalPayload 字段包含了原始调用的 ChaincodeProposalPayload 消息的字节。 ChaincodeProposalPayload []byte `` /* 135-byte string literal not displayed */ // Action 字段是要应用于分类账的操作列表,它包含了已背书的操作,用于将更改作用于分类账。 Action *ChaincodeEndorsedAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
ChaincodeActionPayload 结构体用于 TransactionAction 的负载,当 Header 的类型设置为 CHAINCODE 时使用。 它包含了一个 ChaincodeProposalPayload 和一个已背书的操作,应用于分类账。
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 ChaincodeCall ¶
type ChaincodeCall struct { // Name 表示要调用的链码的名称。 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // CollectionNames 表示与链码相关的集合的名称,集合是用于存储链码私有数据的特定数据集。 CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"` // NoPrivateReads 指示我们需不需要从私有数据进行读取。如果为 true,则表示调用链码时不需要读取私有数据。 NoPrivateReads bool `protobuf:"varint,3,opt,name=no_private_reads,json=noPrivateReads,proto3" json:"no_private_reads,omitempty"` // NoPublicWrites 指示我们需不需要向链码的命名空间进行写入。如果为 true,则不需要向链码的命名空间写入数据。 NoPublicWrites bool `protobuf:"varint,4,opt,name=no_public_writes,json=noPublicWrites,proto3" json:"no_public_writes,omitempty"` // KeyPolicies 表示与写入集中具有基于状态的背书策略相关联的状态的签名策略集合。 KeyPolicies []*pcommon.SignaturePolicyEnvelope `protobuf:"bytes,5,rep,name=key_policies,json=keyPolicies,proto3" json:"key_policies,omitempty"` // DisregardNamespacePolicy 指示我们希不希望忽略命名空间的背书策略。如果为 true,则表示希望在调用链码时 // 忽略命名空间的背书策略。 DisregardNamespacePolicy bool `` /* 136-byte string literal not displayed */ // contains filtered or unexported fields }
ChaincodeCall 结构体用于定义对链码的调用,它包含与链码相关的集合。ChaincodeCall 结构体的目的是指定对链 码的调用,并提供与调用相关的信息,如链码名称、集合名称、私有数据读取需求、命名空间写入需求以及背书策略等。 这些信息用于确保在调用链码时满足相应的需求和策略。
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() []*pcommon.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) (Chaincode_ConnectClient, error)
}
ChaincodeClient is the client API for Chaincode service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChaincodeClient ¶
func NewChaincodeClient(cc grpc.ClientConnInterface) ChaincodeClient
type ChaincodeData ¶
type ChaincodeData struct { // Name 链码名称。 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Version 链码的版本。 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Escc 链码实例使用的 ESCC (Endorsement System Chaincode)。 Escc string `protobuf:"bytes,3,opt,name=escc,proto3" json:"escc,omitempty"` // Vscc 链码实例使用的 VSCC (Validation System Chaincode)。 Vscc string `protobuf:"bytes,4,opt,name=vscc,proto3" json:"vscc,omitempty"` // Policy 链码实例的背书策略。 Policy *pcommon.SignaturePolicyEnvelope `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"` // Data 特定于包的数据,这个字段可以根据不同的链码包类型来存储不同的数据。 Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // Id 链码的唯一指纹,用作标识,目前没有在任何地方使用,仅作为标识符。 Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` // InstantiationPolicy 链码的实例化策略。 InstantiationPolicy *pcommon.SignaturePolicyEnvelope `protobuf:"bytes,8,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"` // contains filtered or unexported fields }
ChaincodeData 用于将链码序列化的数据结构。
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() *pcommon.SignaturePolicyEnvelope
func (*ChaincodeData) GetName ¶
func (x *ChaincodeData) GetName() string
func (*ChaincodeData) GetPolicy ¶
func (x *ChaincodeData) GetPolicy() *pcommon.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 *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` // CodePackage 链码包,它是一个字节类型的字段,用于指定链码的部署包,链码包是一个二进制文件,包含了 // 链码的实现代码和所依赖的库文件。 CodePackage []byte `protobuf:"bytes,2,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"` // contains filtered or unexported fields }
ChaincodeDeploymentSpec 用于定义链码部署的元数据。
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 { // ProposalResponsePayload 字段是背书者签名的 ProposalResponsePayload 消息的字节表示形式。 // 对于 CHAINCODE 类型,ProposalResponsePayload 的扩展字段包含一个 ChaincodeAction。 ProposalResponsePayload []byte `` /* 132-byte string literal not displayed */ // Endorsements 字段是提案的背书,一般来说是背书节点对 ProposalResponsePayload 字节数组的 // 签名,这是一个 Endorsement 类型数组,表示可能有多个背书节点对提案进行了背书。 Endorsements []*Endorsement `protobuf:"bytes,2,rep,name=endorsements,proto3" json:"endorsements,omitempty"` // contains filtered or unexported fields }
ChaincodeEndorsedAction 结构体用于携带关于特定提案的背书信息。
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 指定用于背书的代码的名称。默认情况下,使用标准的 ECSS(Endorsement System Chaincode)背书机 // 制。ESCC 背书机制模拟了提案生成读写集并使用 peer 节点的本地签名身份对结果进行签名的过程。 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
ChaincodeEndorsement 结构体用于指示 peer 节点如何对事务进行背书。
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 表示与事件相关的 chaincode 的标识符。 ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` // TxId 表示与事件相关的的交易标识符。 TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // EventName 表示事件的名称。 EventName string `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` // Payload 表示事件的有效载荷。 Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
ChaincodeEvent 结构体用于表示与 chaincode 相关的事件和注册信息。通过使用 ChaincodeEvent 结构体,可以在链码 中定义和触发特定的事件,并通过有效载荷传递相关数据。这使得链码在执行特定操作时能够通知其他链码或外部系统。
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 { ChaincodeId *ChaincodeID `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` // contains filtered or unexported fields }
ChaincodeHeaderExtension 是头部的扩展信息,当头部的类型是 CHAINCODE 时,此扩展将会被使用,用于确定 哪个链码会被调用然后应该出现在账本中。
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 { // Path 链码的路径,由部署交易指定。 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Name 链码的名称。 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Version 链码的版本号。 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
ChaincodeID 包含了链码的标识信息。
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 链码字节的哈希值,哈希值用于验证已安装的链码与被调用的链码是否一致。 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Version 与安装命令一起提供的用户友好的人类可读名称,用于标识链码的版本。 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
ChaincodeIdentifier 链码标识符标识一段链码。对于一个对等体来接受这个链码的调用,安装的代码 的散列必须匹配,安装命令中包含的版本字符串也必须匹配。
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 链码名。 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Version 链码版本。 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Path 安装/实例化链码的事务所指定的路径。 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Input 字段指向实例化链码时输入的函数和参数,如果查询的是已安装的链码,则此字段被置为空。 Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` // Escc 链码的 Escc (Endorsing System Chaincode) 名称,如果查询的是已安装的链码,则此字段 // 被置为空。 Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"` // Vscc 链码的 Vscc (Validation System Chaincode) 名称,如果查询的是已安装的链码,则此字段 // 被置为空。 Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"` // Id 是链码的唯一标识符,计算方式为:H(H(name || version H(CodePackage)))。 Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
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 函数参数,它是一个字节数组类型的字段,用于存储函数的参数,Args 字段是一个重复字段,可以包含 // 多个字段。 Args [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` // Decorations 函数修饰符,它是一个键值对类型的字段,用于存储函数的修饰符,键是一个字符串类型,表示 // 修饰符的名称,值是一个字节数组类型,表示修饰符的值。 Decorations map[string][]byte `` /* 163-byte string literal not displayed */ // IsInit 初始化函数标志,它是布尔类型的字段,用于指示该函数是否是链码的初始化函数。当 IsInit 字段 // 为 true 时,表示该函数是用于初始化链码的函数。IsInit 字段主要用于向后兼容旧版本的链码,新版本的 // 链码应该自行管理其初始化状态。 IsInit bool `protobuf:"varint,3,opt,name=is_init,json=isInit,proto3" json:"is_init,omitempty"` // contains filtered or unexported fields }
ChaincodeInput 结构体用于携带链码函数及其参数。
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 表示一个链码调用的信息,它包括链码 // 名称、调用函数和传入的参数等。 Chaincodes []*ChaincodeCall `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` // contains filtered or unexported fields }
ChaincodeInterest 结构体用于定义对于特定单个链码调用的背书的兴趣,多个链码表示链码对链码的调用。
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 }
ChaincodeInvocationSpec 携带了调用的链码中的函数名和传入的函数参数。
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 枚举类型,定义了诸如注册、初始化、交易等操作类型。 Type ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=ppeer.ChaincodeMessage_Type" json:"type,omitempty"` // Timestamp 表示时间的时间戳,用于记录消息的创建时间。 Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Payload 表示消息的有效载荷,以字节形式存储。 Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // Txid 表示与消息相关的交易的标识符。 Txid string `protobuf:"bytes,4,opt,name=txid,proto3" json:"txid,omitempty"` // Proposal 表示包含签名的提案。 Proposal *SignedProposal `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"` // ChaincodeEvent 表示由链码发出的事件,该事件仅在初始化或调用链码时使用,被储存在区块的哈希中的 TransactionResult 字段中。 ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,6,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` // ChannelId 表示消息所属的通道的标识符。 ChannelId string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
ChaincodeMessage 结构体用于在链码与区块链之间传递消息和执行操作。
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
Type 枚举类型,定义了诸如注册、初始化、交易等操作类型。
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 = 12 ChaincodeMessage_GET_STATE_BY_RANGE ChaincodeMessage_Type = 13 ChaincodeMessage_GET_QUERY_RESULT ChaincodeMessage_Type = 14 ChaincodeMessage_QUERY_STATE_NEXT ChaincodeMessage_Type = 15 ChaincodeMessage_QUERY_STATE_CLOSE ChaincodeMessage_Type = 16 ChaincodeMessage_KEEPALIVE ChaincodeMessage_Type = 17 ChaincodeMessage_GET_HISTORY_FOR_KEY ChaincodeMessage_Type = 18 ChaincodeMessage_GET_STATE_METADATA ChaincodeMessage_Type = 19 ChaincodeMessage_PUT_STATE_METADATA ChaincodeMessage_Type = 20 ChaincodeMessage_GET_PRIVATE_DATA_HASH ChaincodeMessage_Type = 21 ChaincodeMessage_PURGE_PRIVATE_DATA ChaincodeMessage_Type = 22 )
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 包含此次调用的参数,如果此次调用新的链码,则 ESCC/VSCC 也包含在此字段中,通常情况下,它是一 // 个序列化的 ChaincodeInvocationSpec。 Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // TransientMap 可能用于实现某种方式的应用级机密性的数据,此字段的内容应始终从交易中省略,并从账本中 // 排除。 TransientMap map[string][]byte `` /* 165-byte string literal not displayed */ // contains filtered or unexported fields }
ChaincodeProposalPayload 是用于区块链提案的有效载荷信息,用于在 Header 类型为 CHAINCODE 时使用,它 包含了此次调用所使用的参数。
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 类型的数组。 Chaincodes []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` // contains filtered or unexported fields }
ChaincodeQueryResponse 结构体内可以通过 Chaincodes 字段包含多个链码信息,每条链码信息是一个 ChaincodeInfo 结构体。例如返回对应查询方法 GetChaincodes 所要查询的所有链码信息,或者返回对应 查询方法 GetInstalledChaincodes 所要查询的所有已被安装在某个 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(Chaincode_ConnectServer) error
}
ChaincodeServer is the server API for Chaincode service.
type ChaincodeSpec ¶
type ChaincodeSpec struct { // Type 字段指示了链码的实现语言,目前仅支持 go 语言。 Type ChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,proto3,enum=ppeer.ChaincodeSpec_Type" json:"type,omitempty"` // ChaincodeId 链码标识,它是一个 ChaincodeID 类型的字段,用于标识链码的唯一 ID。 ChaincodeId *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` // Input 链码输入,它是一个 ChaincodeInput 类型字段,用于传递给链码的输入参数。 Input *ChaincodeInput `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` // Timeout 链码执行的超时时间,表示链码执行的最大时间限制。 Timeout int32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
ChaincodeSpec 结构体用于定义链码的元数据。
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 )
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) (ChaincodeSupport_RegisterClient, error)
}
ChaincodeSupportClient is the client API for ChaincodeSupport service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChaincodeSupportClient ¶
func NewChaincodeSupportClient(cc grpc.ClientConnInterface) ChaincodeSupportClient
type ChaincodeSupportServer ¶
type ChaincodeSupportServer interface {
Register(ChaincodeSupport_RegisterServer) error
}
ChaincodeSupportServer is the server API for ChaincodeSupport service.
type ChaincodeSupport_RegisterClient ¶
type ChaincodeSupport_RegisterClient interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ClientStream }
type ChaincodeSupport_RegisterServer ¶
type ChaincodeSupport_RegisterServer interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ServerStream }
type ChaincodeValidation ¶
type ChaincodeValidation struct { // Name 指定用于验证事务的代码的名称,默认情况下,使用标准的 VSCC(Validation System Chaincode) // 验证机制。VSCC 验证机制利用背书策略来检查是否包含了足够数量的背书签名。 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Argument 当使用 VSCC 验证机制时,该字段用于传递给验证实现的参数,它是一个字节数组,需要使用特定 // 的编码方式进行序列化,以便验证过程可以正确解析参数。 Argument []byte `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"` // contains filtered or unexported fields }
ChaincodeValidation 可以为特定的链码指定验证逻辑,以确保只有满足指定条件的事务才会被接收和执行。
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 interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ClientStream }
type Chaincode_ConnectServer ¶
type Chaincode_ConnectServer interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ServerStream }
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 结构体仅包含通道的 Id 信息。
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 返回所查询的通道信息,例如返回对应查询方法 GetChannels 所要查询的所有通道信息。
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 用于定义集合对象的配置。
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 是一个装载了 CollectionConfig 消息数组的结构体。
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 // *CollectionPolicyConfig_Reference Payload isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
CollectionPolicyConfig(集合策略配置)是一个消息类型,用于定义集合的策略配置。初始情况下,策略配置只能包含 一个 SignaturePolicyEnvelope。将来,SignaturePolicy 可能会被更通用的 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) GetReference ¶
func (x *CollectionPolicyConfig) GetReference() string
func (*CollectionPolicyConfig) GetSignaturePolicy ¶
func (x *CollectionPolicyConfig) GetSignaturePolicy() *pcommon.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_Reference ¶
type CollectionPolicyConfig_Reference struct { // Reference 计划在将来添加对策略的引用。这个字段是一个字符串,表示将来可能会引用其他策。 Reference string `protobuf:"bytes,2,opt,name=reference,proto3,oneof"` }
type CollectionPolicyConfig_SignaturePolicy ¶
type CollectionPolicyConfig_SignaturePolicy struct { // SignaturePolicy 初始情况下,仅支持 SignaturePolicyEnvelope 作为略。SignaturePolicyEnvelope 是一个表示签名策略的消息类型。 SignaturePolicy *pcommon.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` }
type ConfigTree ¶
type ConfigTree struct { // ChannelConfig 通道的配置信息,以 pcommon.Config 类型表示,通道配置包括通道的名称、 // 背书策略、访问控制规则等。 ChannelConfig *pcommon.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"` // ResourcesConfig 资源的配置信息,以 pcommon.Config 类型表示,资源配置包括链码的背书策略、 // 访问控制规则、背书策略等。 ResourcesConfig *pcommon.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"` // contains filtered or unexported fields }
ConfigTree 结构体用于封装通道(channel)和资源(resources)的配置信息
func (*ConfigTree) Descriptor
deprecated
func (*ConfigTree) Descriptor() ([]byte, []int)
Deprecated: Use ConfigTree.ProtoReflect.Descriptor instead.
func (*ConfigTree) GetChannelConfig ¶
func (x *ConfigTree) GetChannelConfig() *pcommon.Config
func (*ConfigTree) GetResourcesConfig ¶
func (x *ConfigTree) GetResourcesConfig() *pcommon.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 要删除的状态的键。 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Collection 可选字段,用于指定将删除操作记录在私有集合中。 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
DelState 用于在事务的写集合中记录删除操作的状态。
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 该方法用于向订购者请求交付区块,并返回一个流式的交付响应。在请求中,需要传递一个类型 // 为 ab.DELIVER_SEEK_INFO 的 Envelope,其中的 Payload 数据是一个序列化的 orderer.SeekInfo // 消息。该方法会返回一个流式的 DeliverResponse,其中包含了一系列的区块回复。 Deliver(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverClient, error) // DeliverFiltered 该方法与 Deliver 方法类似,但返回的是过滤后的区块回复。同样需要传递一个类型为 // ab.DELIVER_SEEK_INFO 的 Envelope,并返回一个流式的 DeliverResponse,其中包含了一系列的过 // 滤后的区块回复。 DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverFilteredClient, error) // DeliverWithPrivateData 该方法与 Deliver 方法类似,但返回的是包含区块及其私有数据的回复。同样 // 需要传递一个类型为 ab.DELIVER_SEEK_INFO 的 Envelope,并返回一个流式的 DeliverResponse,其中 // 包含了一系列的区块和私有数据的回复。 DeliverWithPrivateData(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverWithPrivateDataClient, error) }
DeliverClient is the client API for Deliver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDeliverClient ¶
func NewDeliverClient(cc grpc.ClientConnInterface) DeliverClient
type DeliverResponse ¶
type DeliverResponse struct { // Type 表示一个选择器,用于确定响应的具体类型。 // // 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() *pcommon.Block
func (*DeliverResponse) GetBlockAndPrivateData ¶
func (x *DeliverResponse) GetBlockAndPrivateData() *BlockAndPrivateData
func (*DeliverResponse) GetFilteredBlock ¶
func (x *DeliverResponse) GetFilteredBlock() *FilteredBlock
func (*DeliverResponse) GetStatus ¶
func (x *DeliverResponse) GetStatus() pcommon.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 *BlockAndPrivateData `protobuf:"bytes,4,opt,name=block_and_private_data,json=blockAndPrivateData,proto3,oneof"` }
type DeliverResponse_FilteredBlock ¶
type DeliverResponse_FilteredBlock struct { // FilteredBlock 表示一个过滤后的区块。 FilteredBlock *FilteredBlock `protobuf:"bytes,3,opt,name=filtered_block,json=filteredBlock,proto3,oneof"` }
type DeliverResponse_Status ¶
type DeliverServer ¶
type DeliverServer interface { // Deliver 该方法用于向订购者请求交付区块,并返回一个流式的交付响应。在请求中,需要传递一个类型 // 为 ab.DELIVER_SEEK_INFO 的 Envelope,其中的 Payload 数据是一个序列化的 orderer.SeekInfo // 消息。该方法会返回一个流式的 DeliverResponse,其中包含了一系列的区块回复。 Deliver(Deliver_DeliverServer) error // DeliverFiltered 该方法与 Deliver 方法类似,但返回的是过滤后的区块回复。同样需要传递一个类型为 // ab.DELIVER_SEEK_INFO 的 Envelope,并返回一个流式的 DeliverResponse,其中包含了一系列的过 // 滤后的区块回复。 DeliverFiltered(Deliver_DeliverFilteredServer) error // DeliverWithPrivateData 该方法与 Deliver 方法类似,但返回的是包含区块及其私有数据的回复。同样 // 需要传递一个类型为 ab.DELIVER_SEEK_INFO 的 Envelope,并返回一个流式的 DeliverResponse,其中 // 包含了一系列的区块和私有数据的回复。 DeliverWithPrivateData(Deliver_DeliverWithPrivateDataServer) error }
DeliverServer is the server API for Deliver service.
type Deliver_DeliverClient ¶
type Deliver_DeliverClient interface { Send(*pcommon.Envelope) error Recv() (*DeliverResponse, error) grpc.ClientStream }
type Deliver_DeliverFilteredClient ¶
type Deliver_DeliverFilteredClient interface { Send(*pcommon.Envelope) error Recv() (*DeliverResponse, error) grpc.ClientStream }
type Deliver_DeliverFilteredServer ¶
type Deliver_DeliverFilteredServer interface { Send(*DeliverResponse) error Recv() (*pcommon.Envelope, error) grpc.ServerStream }
type Deliver_DeliverServer ¶
type Deliver_DeliverServer interface { Send(*DeliverResponse) error Recv() (*pcommon.Envelope, error) grpc.ServerStream }
type Deliver_DeliverWithPrivateDataClient ¶
type Deliver_DeliverWithPrivateDataClient interface { Send(*pcommon.Envelope) error Recv() (*DeliverResponse, error) grpc.ClientStream }
type Deliver_DeliverWithPrivateDataServer ¶
type Deliver_DeliverWithPrivateDataServer interface { Send(*DeliverResponse) error Recv() (*pcommon.Envelope, error) grpc.ServerStream }
type Endorsement ¶
type Endorsement struct { // Endorser 表示背书者的身份,例如其证书,用于标识背书者的身份信息。 Endorser []byte `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"` // Signature 表示提案响应中包含的有效载荷与背书者的证书连接在一起后的签名,即 sign(ProposalResponse.Payload + Endorser), // 它用于证明背书者对提案响应的认可。 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
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://godoc.org/google.golang.org/grpc#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.
type FilteredBlock ¶
type FilteredBlock struct { // ChannelId 表示区块所属的通道的标识符。 ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // Number 表示该区块在区块链中的位置。 Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // FilteredTransactions 表示过滤后的区块中包含的过滤后的交易列表。 FilteredTransactions []*FilteredTransaction `protobuf:"bytes,3,rep,name=filtered_transactions,json=filteredTransactions,proto3" json:"filtered_transactions,omitempty"` // contains filtered or unexported fields }
FilteredBlock 表示过滤后的区块。
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 *ChaincodeEvent `protobuf:"bytes,1,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` // contains filtered or unexported fields }
FilteredChaincodeAction 表示过滤后的与链码相关的行为。
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 表示交易的唯一标识符。 Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` // Type 表示交易的类型 Type pcommon.HeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=pcommon.HeaderType" json:"type,omitempty"` // TxValidationCode 表示交易的验证结果。 TxValidationCode TxValidationCode `` /* 140-byte string literal not displayed */ // Data 是一个选择器,用于确定交易的具体信息,在这里,它是 FilteredTransactionActions 类型的交易操作。 // // Types that are assignable to Data: // // *FilteredTransaction_TransactionActions Data isFilteredTransaction_Data `protobuf_oneof:"Data"` // contains filtered or unexported fields }
FilteredTransaction 表示过滤后的交易。
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() pcommon.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 表示过滤后的交易中包含的过滤后的链码的操作的列表。 ChaincodeActions []*FilteredChaincodeAction `protobuf:"bytes,1,rep,name=chaincode_actions,json=chaincodeActions,proto3" json:"chaincode_actions,omitempty"` // contains filtered or unexported fields }
FilteredTransactionActions 表示过滤后的交易中的操作。
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 要获取历史值的键。 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
GetHistoryForKey 定义了一个用于获取历史的有效载荷。
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 查询字符串,以由底层状态数据库支持的形式表示。 Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // Collection 指定查询私有数据时执行的集合,若未指定,则查询将在公共数据上执行。 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // Metadata QueryMetadata 结构体的字节表示形式。 Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
GetQueryResult 消息定义了一个用于获取查询结果的有效负载。
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 要从账本中获取状态的键。 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Collection 是一个可选字段,用于指定从私有状态集合中获取状态。 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
GetState 用于读取账本中的状态。
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 范围查询的起始键。 StartKey string `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"` // EndKey 范围查询的结束键。 EndKey string `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"` // Collection 可选字段,用于指定在私有数据上执行范围查询。 Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` // Metadata 用于存储查询元数据的字节表示形式。 Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
GetStateByRange 用于范围查询的操作。
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 要获取元数据的状态的键。 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Collection 可选字段,用于指定从私有状态集合中获取元数据。 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
GetStateMetadata 用于获取状态的元数据。
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 一个布尔值,指示 JoinBySnapshot 操作是否正在进行中。如果正在进行中,则值 // 为 true;否则为 false。 InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"` // BootstrappingSnapshotDir 一个字符串,表示正在运行 JoinBySnapshot 操作的引导目录。如 // 果 JoinBySnapshot 操作没有在运行,则该字段为空。 BootstrappingSnapshotDir string `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
JoinBySnapshotStatus 是一种用于在 Mayy 网络中加入新的对等节点的操作。当新的对等节点加入 网络时,可以使用先前生成的快照(snapshot)来加快同步过程。JoinBySnapshotStatus 结构体提 供了关于 JoinBySnapshot 操作的状态信息,以及正在使用的引导目录。这些信息对于监视和管理节 点的加入过程非常有用。
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 是用作 LSCC 发出的链码事件的有效载体,它包含一个字段 ChaincodeName,表示链码的名称。
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
MetaDataKeys 定义了在键级元数据映射中的保留条目。
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 { TransactionEnvelope *pcommon.Envelope `protobuf:"bytes,1,opt,name=transaction_envelope,json=transactionEnvelope,proto3" json:"transaction_envelope,omitempty"` ValidationCode int32 `protobuf:"varint,2,opt,name=validation_code,json=validationCode,proto3" json:"validation_code,omitempty"` // contains filtered or unexported fields }
ProcessedTransaction 结构体用于封装一个 Envelope,该 Envelope 包含了一个已经处理过的事务 transaction, 并且还包含了一个指示该事务是否被提交节点验证的标志。
func (*ProcessedTransaction) Descriptor
deprecated
func (*ProcessedTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ProcessedTransaction.ProtoReflect.Descriptor instead.
func (*ProcessedTransaction) GetTransactionEnvelope ¶
func (x *ProcessedTransaction) GetTransactionEnvelope() *pcommon.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 { // Header 是 Header 结构体序列化化后的字节数组表现形式。 Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Payload Header 字段中的 Type 字段可指定 Payload 存储的数据类型。 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // Extension 扩展字段存储的内容取决于 Header 字段中的 Type 字段,如果 Type 是 CHAINCODE, // 则 Extension 可能是 ChaincodeAction 结构体的字节数组表现形式。 Extension []byte `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"` // contains filtered or unexported fields }
Proposal 被发送给背书节点以获得背书支持,一个 proposal 包含以下内容:
- Header:既是 proposal 的头部也是交易的头部,它用于计算哈希值和签名,Header 具有 所有 proposal 和交易的共有字段,此外它还具有额外定制化的类型字段,其中一个例子是 ChaincodeHeaderExtension 消息,用于扩展 CHAINCODE 类型的 Header。
- Payload:其类型取决于 Header 的 Type 字段。
- Extension:其类型取决于 Header 的 Type 字段。
下面给出一个例子:对于 CHAINCODE 类型,我们有以下内容:
- Header:是一个拥有 Extension 字段为 ChaincodeHeaderExtension 消息的 Header 消息。
- Payload:是 ChaincodeProposalPayload 消息。
- Extension:可能是 ChaincodeAction,可用来要求背书节点对特定 ChaincodeAction 进行背书。
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 消息协议版本。 Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Timestamp 消息创建时的时间戳,由发送方定义。 Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Response 响应消息,指示操作的背书是否成功。 Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // Payload 响应的有效载荷,它是 ProposalResponsePayload 结构体序列化后的字节数组。 Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // Endorsement 背书节点对有效负载的签名。 Endorsement *Endorsement `protobuf:"bytes,5,opt,name=endorsement,proto3" json:"endorsement,omitempty"` // Interest 从模拟提案中得出的链码利益。 Interest *ChaincodeInterest `protobuf:"bytes,6,opt,name=interest,proto3" json:"interest,omitempty"` // contains filtered or unexported fields }
ProposalResponse 结构体表示背书节点对请求的响应,当客户端请求在链码上执行操作时,背书节点将返回 此消息作为响应。响应包含了背书节点对请求的结果(成功或错误),以及对该操作的描述和背书节点的签名。 如果足够数量的不同的背书节点就相同的操作达成一致并生成相应的签名,那么可以生成并发送一个交易进行 排序。
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 { // PropoaslHash 表示触发此响应的提案的哈希值,哈希值用于在异步系统中将响应与其提案关联起来,通常哈 // 希会覆盖整个提案消息(逐字节)。 ProposalHash []byte `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"` // Extension 应解析为某个特定类型的消息,在提案响应中,扩展字段的类型取决于客户端在最初发送提案时所 // 选择的提案类型。具体来说,这些信息存储在 Header 的 Type 中。对于链码,是一个 ChaincodeAction 消 // 息。 Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` // contains filtered or unexported fields }
ProposalResponsePayload 结构体用于表示一个提案响应的有效载荷,它在客户端的请求和背书者对该请求的响 应之间起到一个“桥梁”的作用,具体来说,对于链码,它包含了提案的哈希表示以及扩展字段中链码状态变化和事 件的表示。
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 ¶
type PurgePrivateState struct { // Key 要清除的私有状态的键。 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Collection 可选字段,用于指定将清除操作记录在私有写集中。 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
PurgePrivateState 用于在事务的写集中记录清除私有状态的操作。
func (*PurgePrivateState) Descriptor
deprecated
func (*PurgePrivateState) Descriptor() ([]byte, []int)
Deprecated: Use PurgePrivateState.ProtoReflect.Descriptor instead.
func (*PurgePrivateState) GetCollection ¶
func (x *PurgePrivateState) GetCollection() string
func (*PurgePrivateState) GetKey ¶
func (x *PurgePrivateState) GetKey() string
func (*PurgePrivateState) ProtoMessage ¶
func (*PurgePrivateState) ProtoMessage()
func (*PurgePrivateState) ProtoReflect ¶
func (x *PurgePrivateState) ProtoReflect() protoreflect.Message
func (*PurgePrivateState) Reset ¶
func (x *PurgePrivateState) Reset()
func (*PurgePrivateState) String ¶
func (x *PurgePrivateState) String() string
type PutState ¶
type PutState struct { // Key 要写入的状态的键。 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Values 要写入的状态的值。 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Collection 可选字段,用于指定将状态写入私有集合。 Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
PutState 用于将状态写入事务。
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 要写入的状态的键。 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Collection 可选字段,用于指定将元数据写入私有集合。 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` Metadata *StateMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
PutStateMetadata 用于将状态的元数据写入事务。
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 要获取的记录数量。 PageSize int32 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // Bookmark 书签,用于从特定位置开始获取记录。 // contains filtered or unexported fields }
QueryMetadata 定义了 GetStateByRange 和 GetQueryResult 的查询元数据。
func (*QueryMetadata) Descriptor
deprecated
func (*QueryMetadata) Descriptor() ([]byte, []int)
Deprecated: Use QueryMetadata.ProtoReflect.Descriptor instead.
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 QueryPendingSnapshotResponse ¶
type QueryPendingSnapshotResponse struct { // BlockNumbers 用于存储待处理快照请求的区块号。 BlockNumbers []uint64 `protobuf:"varint,1,rep,packed,name=block_numbers,json=blockNumbers,proto3" json:"block_numbers,omitempty"` // contains filtered or unexported fields }
QueryPendingSnapshotResponse 该结构体用于指定查询待处理快照请求的响应内容,它包含一个重复的字段, 用于存储待处理快照请求的区块号列表。
func (*QueryPendingSnapshotResponse) Descriptor
deprecated
func (*QueryPendingSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPendingSnapshotResponse.ProtoReflect.Descriptor instead.
func (*QueryPendingSnapshotResponse) GetBlockNumbers ¶
func (x *QueryPendingSnapshotResponse) GetBlockNumbers() []uint64
func (*QueryPendingSnapshotResponse) ProtoMessage ¶
func (*QueryPendingSnapshotResponse) ProtoMessage()
func (*QueryPendingSnapshotResponse) ProtoReflect ¶
func (x *QueryPendingSnapshotResponse) ProtoReflect() protoreflect.Message
func (*QueryPendingSnapshotResponse) Reset ¶
func (x *QueryPendingSnapshotResponse) Reset()
func (*QueryPendingSnapshotResponse) String ¶
func (x *QueryPendingSnapshotResponse) String() string
type QueryResponse ¶
type QueryResponse struct { // Results 一组 QueryResultBytes。 Results []*QueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // HasMore 一个 bool 标志,表示是否需要从对等方获取更多结果。 HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // Id 事务 id。 Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // Metadata QueryResponseMetadata 的字节表示形式。 Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
QueryResponse 消息被对等方作为 GetStateRange、GetQueryResult 和 GetHistoryForKey 的结果返回。
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 从账本中获取的记录数量。 FetchedRecordsCount int32 `protobuf:"varint,1,opt,name=fetched_records_count,json=fetchedRecordsCount,proto3" json:"fetched_records_count,omitempty"` // Bookmark 用于从特定地方继续查询。 Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` // contains filtered or unexported fields }
QueryResponseMetadata 定义了 QueryResponse 的元数据。
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 返回的记录的字节表示形式的有效载荷。 ResultBytes []byte `protobuf:"bytes,1,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"` // contains filtered or unexported fields }
QueryResultBytes 定义了一个存储由对等方返回的记录的字节表示形式的有效载荷。
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 查询的标识符。 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
QueryStateClose 定义了一个用于关闭查询状态的有效载荷。
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 查询的标识符。 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
QueryStateNext 定义了一个用于获取下一个查询状态的有效载荷。
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 { // Status 表示响应状态,遵循 HTTP 状态码的规范。 Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // Message 表示与响应代码相关的消息,可以用于提供关于响应的更多详细信息。 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Payload 表示可以与此响应一起发送的元数据,可以用于传递任意类型的二进制数据。 Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
Response 结构体用于表示一个类似于 HTTP 响应的响应消息。
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 { // ChaincodeDeploymentSpec 链码部署规范的字节表示形式,它包含了链码的元数据、代码和 // 依赖项等信息。 ChaincodeDeploymentSpec []byte `` /* 132-byte string literal not displayed */ // Instantiation 与背书策略结构相同的实例化策略,该策略在实例化时由 VSCC (验证系统链码) // 进行验证,所有对等体将获得相同的策略,因为它将成为 LSCC(生命周期系统链码)实例化记录的 // 一部分,并且也将成为哈希的一部分。 InstantiationPolicy []byte `protobuf:"bytes,2,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"` // OwnerEndorsements 对上述部署规范的背书,拥有者通过对 ChaincodeDeploymentSpec 和 // Endorsement.Endorser 的签名来背书。 OwnerEndorsements []*Endorsement `protobuf:"bytes,3,rep,name=owner_endorsements,json=ownerEndorsements,proto3" json:"owner_endorsements,omitempty"` // contains filtered or unexported fields }
SignedChaincodeDeploymentSpec 是一个带有背书的链码部署规范的消息。
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 { // Signature 关于 ProposalBytes 的签名,该签名将使用客户端(即 SignedProposal // 消息的创建者)的证书进行验证,证书被包含在 Proposal 的 Header 中,而 Proposal // 被编码为 ProposalBytes 字节数组。 Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // ProposalBytes 将 Proposal 编码为字节数组得到的 ProposalBytes。 ProposalBytes []byte `protobuf:"bytes,2,opt,name=proposal_bytes,json=proposalBytes,proto3" json:"proposal_bytes,omitempty"` // contains filtered or unexported fields }
SignedProposal 这个结构对于签署包含头部和有效载荷的 proposal 而言是非常必要 的,如果没有这个结构,则不得不连接头和有效载荷来验证签名,对于大型有效载荷来说 可能会很昂贵。
当背书节点收到一个 SignedProposal 消息时,它应该验证其中的签名,这个验证需要执行 以下步骤:
- 验证用于生成签名的证书的有效性,只要 ProposalBytes 被解码为一个 Proposal 消息,并且 Proposal.Header 被解码为一个 Header 消息,则证书可用,虽然在验 证之前进行解码可能不是理想的行为。
- 验证该证书是否受信任(由受信任 CA 签发);
- 验证签名是否有效;
- 检测重放攻击。
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 { // Request 存储了序列化后的 SnapshotRequest 或 SnapshotQuery 的字节数据。 Request []byte `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // Signature 对快照请求进行签名后得到的数字签名,可以利用客户端的身份证书进行验证。 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
SignedSnapshotRequest 一个被签名包裹的快照查询请求,该结构体用于将请求的字节数据和相 应的签名一起打包,以便在快照请求中进行验证。
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 输入 SignedSnapshotRequest,包含序列化的快照请求字节数据和相应的签名,不返回任何结果。 // 该方法用于生成一个快照请求。客户端需要提供签名后的快照请求数据作为输入。服务器将根据请求生成相应 // 的快照。 Generate(ctx context.Context, in *SignedSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Cancel 输入 SignedSnapshotRequest,包含序列化的快照请求字节数据和相应的签名,不返回任何结果。 // 该方法用于取消一个快照请求。客户端需要提供签名后的快照请求数据作为输入。服务器将根据请求取消对 // 应的快照生成。 Cancel(ctx context.Context, in *SignedSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // QueryPendings 输入 SignedSnapshotRequest,包含序列化的快照请求字节数据和相应的签名,返回 // QueryPendingSnapshotResponse,包含待处理快照请求的区块号列表。该方法用于查询待处理的快照 // 请求。客户端需要提供签名后的快照查询请求数据作为输入。服务器将返回待处理快照请求的区块号列表 // 作为响应结果。 QueryPendings(ctx context.Context, in *SignedSnapshotRequest, opts ...grpc.CallOption) (*QueryPendingSnapshotResponse, error) }
SnapshotClient is the client API for Snapshot service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSnapshotClient ¶
func NewSnapshotClient(cc grpc.ClientConnInterface) SnapshotClient
type SnapshotQuery ¶
type SnapshotQuery struct { // SignatureHeader 用于存储创建者身份和随机数的签名头。 SignatureHeader *pcommon.SignatureHeader `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` // ChannelId 表示要查询快照的通道 ID。 ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
SnapshotQuery 结构体用于生成查询快照的请求。
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() *pcommon.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 { // SignatureHeader 用于存储创建者身份和随机数的签名头。 SignatureHeader *pcommon.SignatureHeader `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` // ChannelId 表示要生成快照的通道。 ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // BlockNumber 要生成快照的区块号。 BlockNumber uint64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // contains filtered or unexported fields }
SnapshotRequest 结构体用于生成查询或取消快照的请求。
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() *pcommon.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 输入 SignedSnapshotRequest,包含序列化的快照请求字节数据和相应的签名,不返回任何结果。 // 该方法用于生成一个快照请求。客户端需要提供签名后的快照请求数据作为输入。服务器将根据请求生成相应 // 的快照。 Generate(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error) // Cancel 输入 SignedSnapshotRequest,包含序列化的快照请求字节数据和相应的签名,不返回任何结果。 // 该方法用于取消一个快照请求。客户端需要提供签名后的快照请求数据作为输入。服务器将根据请求取消对 // 应的快照生成。 Cancel(context.Context, *SignedSnapshotRequest) (*emptypb.Empty, error) // QueryPendings 输入 SignedSnapshotRequest,包含序列化的快照请求字节数据和相应的签名,返回 // QueryPendingSnapshotResponse,包含待处理快照请求的区块号列表。该方法用于查询待处理的快照 // 请求。客户端需要提供签名后的快照查询请求数据作为输入。服务器将返回待处理快照请求的区块号列表 // 作为响应结果。 QueryPendings(context.Context, *SignedSnapshotRequest) (*QueryPendingSnapshotResponse, error) }
SnapshotServer is the server API for Snapshot service.
type StateMetadata ¶
type StateMetadata struct { // Metakey 元数据的键。 Metakey string `protobuf:"bytes,1,opt,name=metakey,proto3" json:"metakey,omitempty"` // Value 元数据值的字节表示形式。 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
StateMetadata 定义了状态元数据的键值对。
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。 Entries []*StateMetadata `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
StateMetadataResult 定义了状态元数据的查询结果。
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 { // Name 表示在指定链码内的集合名称。 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // MemberOrgsPolicy 表示一个指向配置块中的策略的引用,用于定义哪些组织可以访问该集合的私有数据。 MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"` // RequiredPeerCount 表示在背书时私有数据必须发送到的最小对等节点数量。如果无法发送到至少这么多的对等节点,则背书将失败。 RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"` // MaximumPeerCount 表示在背书时私有数据将发送到的最大对等节点数量。该值必须大于 RequiredPeerCount。 MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"` // BlockToLive 表示集合数据过期的块数。例如,如果将值设置为 10,则在块号为 100 的键最后修改后,将在块号 111 时 // 清除。如果该值为零,则视为 MaxUint64。 BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"` // MemberOnlyRead 表示是否只有集合成员客户端可以读取私有数据(如果设置为 true),或者连非成员也可以读取数 // 据(如果设置为 false,例如,如果您想在链码中实现更细粒度的访问逻辑)。 MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"` // MemberOnlyWrite 表示是否只有集合成员客户端可以写入私有数据(如果设置为 true),或者连非成员也可以写入数 // 据(如果设置为 false,例如,如果您想在链码中实现更细粒度的访问逻辑)。 MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"` // EndorsementPolicy 表示一个指向配置块中的策略的引用,用于定义该集合的背书策略。 EndorsementPolicy *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"` // contains filtered or unexported fields }
StaticCollectionConfig(静态集合配置)是一个消息类型,用于定义静态集合对象的配置参数。静态集合是在链码实例化时已知且不可更改的集合。
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 { Actions []*TransactionAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
Transaction 结构体表示要发送给排序服务的事务,一个事务包含一个或多个 TransactionAction。每个 TransactionAction 将一个提案与可能的多个操作绑定在一起。事务是原子性的,这意味着要么所有的操作都会被提交,要么都不会被提交。 注意,虽然一个事务可能包含多个 Header,但是每个 Header 的 Creator 字段必须相同。 一个客户端可以自由的发出多个独立的提案,每个提案都有自己的头部 Header 和请求负载 ChaincodeProposalPayload。 每个提案都会独立地获得背书,生成一个操作 ProposalResponsePayload,每个背书者为其生成一个签名。任意数量的提案 可以包含在一个事务中,以确保它们会被作为一个整体进行处理(原子性)。
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 { // Header 字段是 ProposalAction 的头部,也是 Proposal 的头部 Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Payload 字段是操作的负载,根据头部中的类型字段定义,对于链码来说,它是 ChaincodeActionPayload。 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
TransactionAction 结构体表示将提案与其操作绑定在一起。头部 Header 中的字段决定了要应用于分类账的操作类型。
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 // 事务的 Envelope 为空。 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 // 提案的事务 ID 存在问题。 TxValidationCode_DUPLICATE_TXID TxValidationCode = 9 // 重复出现的事务 ID。 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 = 26 // 未验证。 TxValidationCode_INVALID_OTHER_REASON TxValidationCode = 27 // 其他原因导致验证失败。 )
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 can be embedded to have forward compatible implementations.
func (*UnimplementedChaincodeServer) Connect ¶
func (*UnimplementedChaincodeServer) Connect(Chaincode_ConnectServer) error
type UnimplementedChaincodeSupportServer ¶
type UnimplementedChaincodeSupportServer struct { }
UnimplementedChaincodeSupportServer can be embedded to have forward compatible implementations.
func (*UnimplementedChaincodeSupportServer) Register ¶
func (*UnimplementedChaincodeSupportServer) Register(ChaincodeSupport_RegisterServer) error
type UnimplementedDeliverServer ¶
type UnimplementedDeliverServer struct { }
UnimplementedDeliverServer can be embedded to have forward compatible implementations.
func (*UnimplementedDeliverServer) Deliver ¶
func (*UnimplementedDeliverServer) Deliver(Deliver_DeliverServer) error
func (*UnimplementedDeliverServer) DeliverFiltered ¶
func (*UnimplementedDeliverServer) DeliverFiltered(Deliver_DeliverFilteredServer) error
func (*UnimplementedDeliverServer) DeliverWithPrivateData ¶
func (*UnimplementedDeliverServer) DeliverWithPrivateData(Deliver_DeliverWithPrivateDataServer) error
type UnimplementedEndorserServer ¶
type UnimplementedEndorserServer struct { }
UnimplementedEndorserServer can be embedded to have forward compatible implementations.
func (*UnimplementedEndorserServer) ProcessProposal ¶
func (*UnimplementedEndorserServer) ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error)
type UnimplementedSnapshotServer ¶
type UnimplementedSnapshotServer struct { }
UnimplementedSnapshotServer can be embedded to have forward compatible implementations.
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) (*QueryPendingSnapshotResponse, error)
type VSCCArgs ¶
type VSCCArgs struct { // EndorsementPolicyRef 一个命名引用,指向一个背书策略,背书策略确定了在验证事务时需要多少个背书签名。 // 它使用路径形式的命名约定,例如 Channel/Application/Writes。此字段指定了一个指向背书策略的引用,验证 // 实现将根据该引用找到相应的背书策略。 EndorsementPolicyRef string `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"` // contains filtered or unexported fields }
VSCCArgs 结构体的主要目的是将背书策略的引用传递给验证实现,以便验证实现可以根据指定的背书策略来验证事 务。通过指定正确的背书策略引用,可以根据需求定制链码的验证机制,确保只有满足背书策略要求的事务才能被接 受和执行。
func (*VSCCArgs) Descriptor
deprecated
func (*VSCCArgs) GetEndorsementPolicyRef ¶
func (*VSCCArgs) ProtoMessage ¶
func (*VSCCArgs) ProtoMessage()
func (*VSCCArgs) ProtoReflect ¶
func (x *VSCCArgs) ProtoReflect() protoreflect.Message