Documentation ¶
Index ¶
- Variables
- func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)
- type ChaincodeAction
- func (*ChaincodeAction) Descriptor() ([]byte, []int)
- func (m *ChaincodeAction) GetChaincodeId() *ChaincodeID
- func (m *ChaincodeAction) GetEvents() []byte
- func (m *ChaincodeAction) GetResponse() *Response
- func (m *ChaincodeAction) GetResults() []byte
- func (*ChaincodeAction) ProtoMessage()
- func (m *ChaincodeAction) Reset()
- func (m *ChaincodeAction) String() string
- func (m *ChaincodeAction) XXX_DiscardUnknown()
- func (m *ChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeAction) XXX_Merge(src proto.Message)
- func (m *ChaincodeAction) XXX_Size() int
- func (m *ChaincodeAction) XXX_Unmarshal(b []byte) error
- type ChaincodeDeploymentSpec
- func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
- func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec
- func (m *ChaincodeDeploymentSpec) GetCodePackage() []byte
- func (m *ChaincodeDeploymentSpec) GetExecEnv() ChaincodeDeploymentSpec_ExecutionEnvironment
- func (*ChaincodeDeploymentSpec) ProtoMessage()
- func (m *ChaincodeDeploymentSpec) Reset()
- func (m *ChaincodeDeploymentSpec) String() string
- func (m *ChaincodeDeploymentSpec) XXX_DiscardUnknown()
- func (m *ChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
- func (m *ChaincodeDeploymentSpec) XXX_Size() int
- func (m *ChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
- type ChaincodeDeploymentSpec_ExecutionEnvironment
- type ChaincodeEvent
- func (*ChaincodeEvent) Descriptor() ([]byte, []int)
- func (m *ChaincodeEvent) GetChaincodeId() string
- func (m *ChaincodeEvent) GetEventName() string
- func (m *ChaincodeEvent) GetPayload() []byte
- func (m *ChaincodeEvent) GetTxId() string
- func (*ChaincodeEvent) ProtoMessage()
- func (m *ChaincodeEvent) Reset()
- func (m *ChaincodeEvent) String() string
- func (m *ChaincodeEvent) XXX_DiscardUnknown()
- func (m *ChaincodeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeEvent) XXX_Merge(src proto.Message)
- func (m *ChaincodeEvent) XXX_Size() int
- func (m *ChaincodeEvent) XXX_Unmarshal(b []byte) error
- type ChaincodeHeaderExtension
- func (*ChaincodeHeaderExtension) Descriptor() ([]byte, []int)
- func (m *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID
- func (m *ChaincodeHeaderExtension) GetPayloadVisibility() []byte
- func (*ChaincodeHeaderExtension) ProtoMessage()
- func (m *ChaincodeHeaderExtension) Reset()
- func (m *ChaincodeHeaderExtension) String() string
- func (m *ChaincodeHeaderExtension) XXX_DiscardUnknown()
- func (m *ChaincodeHeaderExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeHeaderExtension) XXX_Merge(src proto.Message)
- func (m *ChaincodeHeaderExtension) XXX_Size() int
- func (m *ChaincodeHeaderExtension) XXX_Unmarshal(b []byte) error
- type ChaincodeID
- func (*ChaincodeID) Descriptor() ([]byte, []int)
- func (m *ChaincodeID) GetName() string
- func (m *ChaincodeID) GetPath() string
- func (m *ChaincodeID) GetVersion() string
- func (*ChaincodeID) ProtoMessage()
- func (m *ChaincodeID) Reset()
- func (m *ChaincodeID) String() string
- func (m *ChaincodeID) XXX_DiscardUnknown()
- func (m *ChaincodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeID) XXX_Merge(src proto.Message)
- func (m *ChaincodeID) XXX_Size() int
- func (m *ChaincodeID) XXX_Unmarshal(b []byte) error
- type ChaincodeInfo
- func (*ChaincodeInfo) Descriptor() ([]byte, []int)
- func (m *ChaincodeInfo) GetEscc() string
- func (m *ChaincodeInfo) GetId() []byte
- func (m *ChaincodeInfo) GetInput() string
- func (m *ChaincodeInfo) GetName() string
- func (m *ChaincodeInfo) GetPath() string
- func (m *ChaincodeInfo) GetVersion() string
- func (m *ChaincodeInfo) GetVscc() string
- func (*ChaincodeInfo) ProtoMessage()
- func (m *ChaincodeInfo) Reset()
- func (m *ChaincodeInfo) String() string
- func (m *ChaincodeInfo) XXX_DiscardUnknown()
- func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeInfo) XXX_Merge(src proto.Message)
- func (m *ChaincodeInfo) XXX_Size() int
- func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error
- type ChaincodeInput
- func (*ChaincodeInput) Descriptor() ([]byte, []int)
- func (m *ChaincodeInput) GetArgs() [][]byte
- func (m *ChaincodeInput) GetDecorations() map[string][]byte
- func (*ChaincodeInput) ProtoMessage()
- func (m *ChaincodeInput) Reset()
- func (m *ChaincodeInput) String() string
- func (m *ChaincodeInput) XXX_DiscardUnknown()
- func (m *ChaincodeInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeInput) XXX_Merge(src proto.Message)
- func (m *ChaincodeInput) XXX_Size() int
- func (m *ChaincodeInput) XXX_Unmarshal(b []byte) error
- type ChaincodeInvocationSpec
- func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)
- func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec
- func (m *ChaincodeInvocationSpec) GetIdGenerationAlg() string
- func (*ChaincodeInvocationSpec) ProtoMessage()
- func (m *ChaincodeInvocationSpec) Reset()
- func (m *ChaincodeInvocationSpec) String() string
- func (m *ChaincodeInvocationSpec) XXX_DiscardUnknown()
- func (m *ChaincodeInvocationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeInvocationSpec) XXX_Merge(src proto.Message)
- func (m *ChaincodeInvocationSpec) XXX_Size() int
- func (m *ChaincodeInvocationSpec) XXX_Unmarshal(b []byte) error
- type ChaincodeMessage
- func (*ChaincodeMessage) Descriptor() ([]byte, []int)
- func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent
- func (m *ChaincodeMessage) GetChannelId() string
- func (m *ChaincodeMessage) GetContractId() []byte
- func (m *ChaincodeMessage) GetPayload() []byte
- func (m *ChaincodeMessage) GetProposal() *SignedProposal
- func (m *ChaincodeMessage) GetTimestamp() *timestamp.Timestamp
- func (m *ChaincodeMessage) GetTxid() string
- func (m *ChaincodeMessage) GetType() ChaincodeMessage_Type
- func (*ChaincodeMessage) ProtoMessage()
- func (m *ChaincodeMessage) Reset()
- func (m *ChaincodeMessage) String() string
- func (m *ChaincodeMessage) XXX_DiscardUnknown()
- func (m *ChaincodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeMessage) XXX_Merge(src proto.Message)
- func (m *ChaincodeMessage) XXX_Size() int
- func (m *ChaincodeMessage) XXX_Unmarshal(b []byte) error
- type ChaincodeMessage_Type
- type ChaincodeProposalPayload
- func (*ChaincodeProposalPayload) Descriptor() ([]byte, []int)
- func (m *ChaincodeProposalPayload) GetInput() []byte
- func (m *ChaincodeProposalPayload) GetTransientMap() map[string][]byte
- func (*ChaincodeProposalPayload) ProtoMessage()
- func (m *ChaincodeProposalPayload) Reset()
- func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFields() []string
- func (m *ChaincodeProposalPayload) String() string
- func (m *ChaincodeProposalPayload) XXX_DiscardUnknown()
- func (m *ChaincodeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeProposalPayload) XXX_Merge(src proto.Message)
- func (m *ChaincodeProposalPayload) XXX_Size() int
- func (m *ChaincodeProposalPayload) XXX_Unmarshal(b []byte) error
- type ChaincodeQueryResponse
- func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int)
- func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo
- func (*ChaincodeQueryResponse) ProtoMessage()
- func (m *ChaincodeQueryResponse) Reset()
- func (m *ChaincodeQueryResponse) String() string
- func (m *ChaincodeQueryResponse) XXX_DiscardUnknown()
- func (m *ChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeQueryResponse) XXX_Merge(src proto.Message)
- func (m *ChaincodeQueryResponse) XXX_Size() int
- func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error
- type ChaincodeSpec
- func (*ChaincodeSpec) Descriptor() ([]byte, []int)
- func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID
- func (m *ChaincodeSpec) GetCpuQuota() int64
- func (m *ChaincodeSpec) GetCpuShare() int64
- func (m *ChaincodeSpec) GetInput() *ChaincodeInput
- func (m *ChaincodeSpec) GetMemory() int64
- func (m *ChaincodeSpec) GetTimeout() int32
- func (m *ChaincodeSpec) GetType() ChaincodeSpec_Type
- func (*ChaincodeSpec) ProtoMessage()
- func (m *ChaincodeSpec) Reset()
- func (m *ChaincodeSpec) String() string
- func (m *ChaincodeSpec) XXX_DiscardUnknown()
- func (m *ChaincodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChaincodeSpec) XXX_Merge(src proto.Message)
- func (m *ChaincodeSpec) XXX_Size() int
- func (m *ChaincodeSpec) XXX_Unmarshal(b []byte) error
- type ChaincodeSpec_Type
- type ChaincodeSupportClient
- type ChaincodeSupportServer
- type ChaincodeSupport_RegisterClient
- type ChaincodeSupport_RegisterServer
- type ChannelInfo
- func (*ChannelInfo) Descriptor() ([]byte, []int)
- func (m *ChannelInfo) GetChannelId() string
- func (*ChannelInfo) ProtoMessage()
- func (m *ChannelInfo) Reset()
- func (m *ChannelInfo) String() string
- func (m *ChannelInfo) XXX_DiscardUnknown()
- func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelInfo) XXX_Merge(src proto.Message)
- func (m *ChannelInfo) XXX_Size() int
- func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
- type ChannelQueryResponse
- func (*ChannelQueryResponse) Descriptor() ([]byte, []int)
- func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo
- func (*ChannelQueryResponse) ProtoMessage()
- func (m *ChannelQueryResponse) Reset()
- func (m *ChannelQueryResponse) String() string
- func (m *ChannelQueryResponse) XXX_DiscardUnknown()
- func (m *ChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelQueryResponse) XXX_Merge(src proto.Message)
- func (m *ChannelQueryResponse) XXX_Size() int
- func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error
- type ConfidentialityLevel
- type ContractDeployPayload
- type ContractInvokePayload
- type DefineToken
- func (*DefineToken) Descriptor() ([]byte, []int)
- func (m *DefineToken) GetCreator() string
- func (m *DefineToken) GetDefine() []byte
- func (m *DefineToken) GetTokenType() int32
- func (*DefineToken) ProtoMessage()
- func (m *DefineToken) Reset()
- func (m *DefineToken) String() string
- func (m *DefineToken) XXX_DiscardUnknown()
- func (m *DefineToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DefineToken) XXX_Merge(src proto.Message)
- func (m *DefineToken) XXX_Size() int
- func (m *DefineToken) XXX_Unmarshal(b []byte) error
- type DelState
- func (*DelState) Descriptor() ([]byte, []int)
- func (m *DelState) GetCollection() string
- func (m *DelState) GetContractId() []byte
- func (m *DelState) GetKey() string
- func (*DelState) ProtoMessage()
- func (m *DelState) Reset()
- func (m *DelState) String() string
- func (m *DelState) XXX_DiscardUnknown()
- func (m *DelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelState) XXX_Merge(src proto.Message)
- func (m *DelState) XXX_Size() int
- func (m *DelState) XXX_Unmarshal(b []byte) error
- type Endorsement
- func (*Endorsement) Descriptor() ([]byte, []int)
- func (m *Endorsement) GetEndorser() []byte
- func (m *Endorsement) GetSignature() []byte
- func (*Endorsement) ProtoMessage()
- func (m *Endorsement) Reset()
- func (m *Endorsement) String() string
- func (m *Endorsement) XXX_DiscardUnknown()
- func (m *Endorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Endorsement) XXX_Merge(src proto.Message)
- func (m *Endorsement) XXX_Size() int
- func (m *Endorsement) XXX_Unmarshal(b []byte) error
- type EndorserServer
- type GetCertState
- func (*GetCertState) Descriptor() ([]byte, []int)
- func (m *GetCertState) GetCollection() string
- func (m *GetCertState) GetKey() string
- func (*GetCertState) ProtoMessage()
- func (m *GetCertState) Reset()
- func (m *GetCertState) String() string
- func (m *GetCertState) XXX_DiscardUnknown()
- func (m *GetCertState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCertState) XXX_Merge(src proto.Message)
- func (m *GetCertState) XXX_Size() int
- func (m *GetCertState) XXX_Unmarshal(b []byte) error
- type GetHistoryForKey
- func (*GetHistoryForKey) Descriptor() ([]byte, []int)
- func (m *GetHistoryForKey) GetKey() string
- func (*GetHistoryForKey) ProtoMessage()
- func (m *GetHistoryForKey) Reset()
- func (m *GetHistoryForKey) String() string
- func (m *GetHistoryForKey) XXX_DiscardUnknown()
- func (m *GetHistoryForKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetHistoryForKey) XXX_Merge(src proto.Message)
- func (m *GetHistoryForKey) XXX_Size() int
- func (m *GetHistoryForKey) XXX_Unmarshal(b []byte) error
- type GetQueryResult
- func (*GetQueryResult) Descriptor() ([]byte, []int)
- func (m *GetQueryResult) GetCollection() string
- func (m *GetQueryResult) GetQuery() string
- func (*GetQueryResult) ProtoMessage()
- func (m *GetQueryResult) Reset()
- func (m *GetQueryResult) String() string
- func (m *GetQueryResult) XXX_DiscardUnknown()
- func (m *GetQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetQueryResult) XXX_Merge(src proto.Message)
- func (m *GetQueryResult) XXX_Size() int
- func (m *GetQueryResult) XXX_Unmarshal(b []byte) error
- type GetStableTransaction
- func (*GetStableTransaction) Descriptor() ([]byte, []int)
- func (m *GetStableTransaction) GetTxHash() string
- func (*GetStableTransaction) ProtoMessage()
- func (m *GetStableTransaction) Reset()
- func (m *GetStableTransaction) String() string
- func (m *GetStableTransaction) XXX_DiscardUnknown()
- func (m *GetStableTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStableTransaction) XXX_Merge(src proto.Message)
- func (m *GetStableTransaction) XXX_Size() int
- func (m *GetStableTransaction) XXX_Unmarshal(b []byte) error
- type GetStableUnit
- func (*GetStableUnit) Descriptor() ([]byte, []int)
- func (m *GetStableUnit) GetUnitHash() string
- func (m *GetStableUnit) GetUnitNumber() uint64
- func (*GetStableUnit) ProtoMessage()
- func (m *GetStableUnit) Reset()
- func (m *GetStableUnit) String() string
- func (m *GetStableUnit) XXX_DiscardUnknown()
- func (m *GetStableUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStableUnit) XXX_Merge(src proto.Message)
- func (m *GetStableUnit) XXX_Size() int
- func (m *GetStableUnit) XXX_Unmarshal(b []byte) error
- type GetState
- func (*GetState) Descriptor() ([]byte, []int)
- func (m *GetState) GetCollection() string
- func (m *GetState) GetContractId() []byte
- func (m *GetState) GetKey() string
- func (*GetState) ProtoMessage()
- func (m *GetState) Reset()
- func (m *GetState) String() string
- func (m *GetState) XXX_DiscardUnknown()
- func (m *GetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetState) XXX_Merge(src proto.Message)
- func (m *GetState) XXX_Size() int
- func (m *GetState) XXX_Unmarshal(b []byte) error
- type GetStateByPrefix
- func (*GetStateByPrefix) Descriptor() ([]byte, []int)
- func (m *GetStateByPrefix) GetContractId() []byte
- func (m *GetStateByPrefix) GetPrefix() string
- func (*GetStateByPrefix) ProtoMessage()
- func (m *GetStateByPrefix) Reset()
- func (m *GetStateByPrefix) String() string
- func (m *GetStateByPrefix) XXX_DiscardUnknown()
- func (m *GetStateByPrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStateByPrefix) XXX_Merge(src proto.Message)
- func (m *GetStateByPrefix) XXX_Size() int
- func (m *GetStateByPrefix) XXX_Unmarshal(b []byte) error
- type GetStateByPrefixKv
- func (*GetStateByPrefixKv) Descriptor() ([]byte, []int)
- func (m *GetStateByPrefixKv) GetKey() string
- func (m *GetStateByPrefixKv) GetResultBytes() []byte
- func (*GetStateByPrefixKv) ProtoMessage()
- func (m *GetStateByPrefixKv) Reset()
- func (m *GetStateByPrefixKv) String() string
- func (m *GetStateByPrefixKv) XXX_DiscardUnknown()
- func (m *GetStateByPrefixKv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStateByPrefixKv) XXX_Merge(src proto.Message)
- func (m *GetStateByPrefixKv) XXX_Size() int
- func (m *GetStateByPrefixKv) XXX_Unmarshal(b []byte) error
- type GetStateByRange
- func (*GetStateByRange) Descriptor() ([]byte, []int)
- func (m *GetStateByRange) GetCollection() string
- func (m *GetStateByRange) GetEndKey() string
- func (m *GetStateByRange) GetStartKey() string
- func (*GetStateByRange) ProtoMessage()
- func (m *GetStateByRange) Reset()
- func (m *GetStateByRange) String() string
- func (m *GetStateByRange) XXX_DiscardUnknown()
- func (m *GetStateByRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStateByRange) XXX_Merge(src proto.Message)
- func (m *GetStateByRange) XXX_Size() int
- func (m *GetStateByRange) XXX_Unmarshal(b []byte) error
- type GetTimestamp
- func (*GetTimestamp) Descriptor() ([]byte, []int)
- func (m *GetTimestamp) GetCollection() string
- func (m *GetTimestamp) GetRangeNumber() uint32
- func (*GetTimestamp) ProtoMessage()
- func (m *GetTimestamp) Reset()
- func (m *GetTimestamp) String() string
- func (m *GetTimestamp) XXX_DiscardUnknown()
- func (m *GetTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTimestamp) XXX_Merge(src proto.Message)
- func (m *GetTimestamp) XXX_Size() int
- func (m *GetTimestamp) XXX_Unmarshal(b []byte) error
- type GetTokenBalance
- func (*GetTokenBalance) Descriptor() ([]byte, []int)
- func (m *GetTokenBalance) GetAddress() string
- func (m *GetTokenBalance) GetAsset() string
- func (*GetTokenBalance) ProtoMessage()
- func (m *GetTokenBalance) Reset()
- func (m *GetTokenBalance) String() string
- func (m *GetTokenBalance) XXX_DiscardUnknown()
- func (m *GetTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenBalance) XXX_Merge(src proto.Message)
- func (m *GetTokenBalance) XXX_Size() int
- func (m *GetTokenBalance) XXX_Unmarshal(b []byte) error
- type KeyForSystemConfig
- func (*KeyForSystemConfig) Descriptor() ([]byte, []int)
- func (m *KeyForSystemConfig) GetKey() string
- func (*KeyForSystemConfig) ProtoMessage()
- func (m *KeyForSystemConfig) Reset()
- func (m *KeyForSystemConfig) String() string
- func (m *KeyForSystemConfig) XXX_DiscardUnknown()
- func (m *KeyForSystemConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyForSystemConfig) XXX_Merge(src proto.Message)
- func (m *KeyForSystemConfig) XXX_Size() int
- func (m *KeyForSystemConfig) XXX_Unmarshal(b []byte) error
- type OutChainCall
- func (*OutChainCall) Descriptor() ([]byte, []int)
- func (m *OutChainCall) GetCollection() string
- func (m *OutChainCall) GetMethod() string
- func (m *OutChainCall) GetOutChainName() string
- func (m *OutChainCall) GetParams() []byte
- func (*OutChainCall) ProtoMessage()
- func (m *OutChainCall) Reset()
- func (m *OutChainCall) String() string
- func (m *OutChainCall) XXX_DiscardUnknown()
- func (m *OutChainCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OutChainCall) XXX_Merge(src proto.Message)
- func (m *OutChainCall) XXX_Size() int
- func (m *OutChainCall) XXX_Unmarshal(b []byte) error
- type PayOutToken
- func (*PayOutToken) Descriptor() ([]byte, []int)
- func (m *PayOutToken) GetAddress() string
- func (m *PayOutToken) GetAmount() uint64
- func (m *PayOutToken) GetAsset() []byte
- func (m *PayOutToken) GetLocktime() uint32
- func (*PayOutToken) ProtoMessage()
- func (m *PayOutToken) Reset()
- func (m *PayOutToken) String() string
- func (m *PayOutToken) XXX_DiscardUnknown()
- func (m *PayOutToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayOutToken) XXX_Merge(src proto.Message)
- func (m *PayOutToken) XXX_Size() int
- func (m *PayOutToken) XXX_Unmarshal(b []byte) error
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetExtension() []byte
- func (m *Proposal) GetHeader() []byte
- func (m *Proposal) GetPayload() []byte
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) String() string
- func (m *Proposal) XXX_DiscardUnknown()
- func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proposal) XXX_Merge(src proto.Message)
- func (m *Proposal) XXX_Size() int
- func (m *Proposal) XXX_Unmarshal(b []byte) error
- type ProposalResponse
- func (*ProposalResponse) Descriptor() ([]byte, []int)
- func (m *ProposalResponse) GetEndorsement() *Endorsement
- func (m *ProposalResponse) GetPayload() []byte
- func (m *ProposalResponse) GetResponse() *Response
- func (m *ProposalResponse) GetTimestamp() *timestamp.Timestamp
- func (m *ProposalResponse) GetVersion() int32
- func (*ProposalResponse) ProtoMessage()
- func (m *ProposalResponse) Reset()
- func (m *ProposalResponse) String() string
- func (m *ProposalResponse) XXX_DiscardUnknown()
- func (m *ProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalResponse) XXX_Merge(src proto.Message)
- func (m *ProposalResponse) XXX_Size() int
- func (m *ProposalResponse) XXX_Unmarshal(b []byte) error
- type ProposalResponsePayload
- func (*ProposalResponsePayload) Descriptor() ([]byte, []int)
- func (m *ProposalResponsePayload) GetExtension() []byte
- func (m *ProposalResponsePayload) GetProposalHash() []byte
- func (*ProposalResponsePayload) ProtoMessage()
- func (m *ProposalResponsePayload) Reset()
- func (ppr *ProposalResponsePayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (ppr *ProposalResponsePayload) StaticallyOpaqueFields() []string
- func (m *ProposalResponsePayload) String() string
- func (m *ProposalResponsePayload) XXX_DiscardUnknown()
- func (m *ProposalResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalResponsePayload) XXX_Merge(src proto.Message)
- func (m *ProposalResponsePayload) XXX_Size() int
- func (m *ProposalResponsePayload) XXX_Unmarshal(b []byte) error
- type PutState
- func (*PutState) Descriptor() ([]byte, []int)
- func (m *PutState) GetCollection() string
- func (m *PutState) GetContractId() []byte
- func (m *PutState) GetKey() string
- func (m *PutState) GetValue() []byte
- func (*PutState) ProtoMessage()
- func (m *PutState) Reset()
- func (m *PutState) String() string
- func (m *PutState) XXX_DiscardUnknown()
- func (m *PutState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutState) XXX_Merge(src proto.Message)
- func (m *PutState) XXX_Size() int
- func (m *PutState) XXX_Unmarshal(b []byte) error
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)
- func (m *QueryResponse) GetHasMore() bool
- func (m *QueryResponse) GetId() string
- func (m *QueryResponse) GetResults() []*QueryResultBytes
- func (*QueryResponse) ProtoMessage()
- func (m *QueryResponse) Reset()
- func (m *QueryResponse) String() string
- func (m *QueryResponse) XXX_DiscardUnknown()
- func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResponse) XXX_Merge(src proto.Message)
- func (m *QueryResponse) XXX_Size() int
- func (m *QueryResponse) XXX_Unmarshal(b []byte) error
- type QueryResultBytes
- func (*QueryResultBytes) Descriptor() ([]byte, []int)
- func (m *QueryResultBytes) GetResultBytes() []byte
- func (*QueryResultBytes) ProtoMessage()
- func (m *QueryResultBytes) Reset()
- func (m *QueryResultBytes) String() string
- func (m *QueryResultBytes) XXX_DiscardUnknown()
- func (m *QueryResultBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResultBytes) XXX_Merge(src proto.Message)
- func (m *QueryResultBytes) XXX_Size() int
- func (m *QueryResultBytes) XXX_Unmarshal(b []byte) error
- type QueryStateClose
- func (*QueryStateClose) Descriptor() ([]byte, []int)
- func (m *QueryStateClose) GetId() string
- func (*QueryStateClose) ProtoMessage()
- func (m *QueryStateClose) Reset()
- func (m *QueryStateClose) String() string
- func (m *QueryStateClose) XXX_DiscardUnknown()
- func (m *QueryStateClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryStateClose) XXX_Merge(src proto.Message)
- func (m *QueryStateClose) XXX_Size() int
- func (m *QueryStateClose) XXX_Unmarshal(b []byte) error
- type QueryStateNext
- func (*QueryStateNext) Descriptor() ([]byte, []int)
- func (m *QueryStateNext) GetId() string
- func (*QueryStateNext) ProtoMessage()
- func (m *QueryStateNext) Reset()
- func (m *QueryStateNext) String() string
- func (m *QueryStateNext) XXX_DiscardUnknown()
- func (m *QueryStateNext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryStateNext) XXX_Merge(src proto.Message)
- func (m *QueryStateNext) XXX_Size() int
- func (m *QueryStateNext) XXX_Unmarshal(b []byte) error
- type RecvJury
- func (*RecvJury) Descriptor() ([]byte, []int)
- func (m *RecvJury) GetCollection() string
- func (m *RecvJury) GetConsultContent() []byte
- func (m *RecvJury) GetMsgType() uint32
- func (m *RecvJury) GetTimeout() uint32
- func (*RecvJury) ProtoMessage()
- func (m *RecvJury) Reset()
- func (m *RecvJury) String() string
- func (m *RecvJury) XXX_DiscardUnknown()
- func (m *RecvJury) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecvJury) XXX_Merge(src proto.Message)
- func (m *RecvJury) XXX_Size() int
- func (m *RecvJury) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetMessage() string
- func (m *Response) GetPayload() []byte
- func (m *Response) GetStatus() int32
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type SendJury
- func (*SendJury) Descriptor() ([]byte, []int)
- func (m *SendJury) GetCollection() string
- func (m *SendJury) GetConsultContent() []byte
- func (m *SendJury) GetMsgType() uint32
- func (m *SendJury) GetMyAnswer() []byte
- func (*SendJury) ProtoMessage()
- func (m *SendJury) Reset()
- func (m *SendJury) String() string
- func (m *SendJury) XXX_DiscardUnknown()
- func (m *SendJury) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendJury) XXX_Merge(src proto.Message)
- func (m *SendJury) XXX_Size() int
- func (m *SendJury) XXX_Unmarshal(b []byte) error
- type SignedProposal
- func (*SignedProposal) Descriptor() ([]byte, []int)
- func (m *SignedProposal) GetProposalBytes() []byte
- func (m *SignedProposal) GetSignature() []byte
- func (*SignedProposal) ProtoMessage()
- func (m *SignedProposal) Reset()
- func (m *SignedProposal) String() string
- func (m *SignedProposal) XXX_DiscardUnknown()
- func (m *SignedProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedProposal) XXX_Merge(src proto.Message)
- func (m *SignedProposal) XXX_Size() int
- func (m *SignedProposal) XXX_Unmarshal(b []byte) error
- type SupplyToken
- func (*SupplyToken) Descriptor() ([]byte, []int)
- func (m *SupplyToken) GetAmount() uint64
- func (m *SupplyToken) GetAssetId() []byte
- func (m *SupplyToken) GetCreator() string
- func (m *SupplyToken) GetUniqueId() []byte
- func (*SupplyToken) ProtoMessage()
- func (m *SupplyToken) Reset()
- func (m *SupplyToken) String() string
- func (m *SupplyToken) XXX_DiscardUnknown()
- func (m *SupplyToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SupplyToken) XXX_Merge(src proto.Message)
- func (m *SupplyToken) XXX_Size() int
- func (m *SupplyToken) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ChaincodeDeploymentSpec_ExecutionEnvironment_name = map[int32]string{
0: "DOCKER",
1: "SYSTEM",
}
var ChaincodeDeploymentSpec_ExecutionEnvironment_value = map[string]int32{
"DOCKER": 0,
"SYSTEM": 1,
}
var ChaincodeMessage_Type_name = map[int32]string{
0: "UNDEFINED",
1: "REGISTER",
2: "REGISTERED",
3: "INIT",
4: "READY",
5: "TRANSACTION",
6: "COMPLETED",
7: "ERROR",
8: "GET_STATE",
9: "PUT_STATE",
10: "DEL_STATE",
11: "INVOKE_CHAINCODE",
13: "RESPONSE",
14: "GET_STATE_BY_PREFIX",
18: "KEEPALIVE",
23: "GET_SYSTEM_CONFIG_REQUEST",
24: "GET_CONTRACT_ALL_STATE",
25: "GET_TOKEN_BALANCE",
26: "PAY_OUT_TOKEN",
27: "DEFINE_TOKEN",
28: "SUPPLY_TOKEN",
29: "GET_TIMESTAMP",
30: "SEND_JURY",
31: "RECV_JURY",
32: "GET_CERT_STATE",
33: "OUTCHAIN_CALL",
34: "GET_STABLE_TRANSACTION",
35: "GET_STABLE_UNIT",
}
var ChaincodeMessage_Type_value = map[string]int32{
"UNDEFINED": 0,
"REGISTER": 1,
"REGISTERED": 2,
"INIT": 3,
"READY": 4,
"TRANSACTION": 5,
"COMPLETED": 6,
"ERROR": 7,
"GET_STATE": 8,
"PUT_STATE": 9,
"DEL_STATE": 10,
"INVOKE_CHAINCODE": 11,
"RESPONSE": 13,
"GET_STATE_BY_PREFIX": 14,
"KEEPALIVE": 18,
"GET_SYSTEM_CONFIG_REQUEST": 23,
"GET_CONTRACT_ALL_STATE": 24,
"GET_TOKEN_BALANCE": 25,
"PAY_OUT_TOKEN": 26,
"DEFINE_TOKEN": 27,
"SUPPLY_TOKEN": 28,
"GET_TIMESTAMP": 29,
"SEND_JURY": 30,
"RECV_JURY": 31,
"GET_CERT_STATE": 32,
"OUTCHAIN_CALL": 33,
"GET_STABLE_TRANSACTION": 34,
"GET_STABLE_UNIT": 35,
}
var ChaincodeSpec_Type_name = map[int32]string{
0: "UNDEFINED",
1: "GOLANG",
2: "NODE",
3: "CAR",
4: "JAVA",
}
var ChaincodeSpec_Type_value = map[string]int32{
"UNDEFINED": 0,
"GOLANG": 1,
"NODE": 2,
"CAR": 3,
"JAVA": 4,
}
var ConfidentialityLevel_name = map[int32]string{
0: "PUBLIC",
1: "CONFIDENTIAL",
}
var ConfidentialityLevel_value = map[string]int32{
"PUBLIC": 0,
"CONFIDENTIAL": 1,
}
Functions ¶
func RegisterChaincodeSupportServer ¶
func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)
Types ¶
type ChaincodeAction ¶
type ChaincodeAction struct { // This field contains the read set and the write set produced by the // chaincode executing this invocation. Results []byte `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"` // This field contains the events generated by the chaincode executing this // invocation. Events []byte `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty"` // This field contains the result of executing this invocation. Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // This field contains the ChaincodeID of executing this invocation. Endorser // will set it with the ChaincodeID called by endorser while simulating proposal. // Committer will validate the version matching with latest chaincode version. // Adding ChaincodeID to keep version opens up the possibility of multiple // ChaincodeAction per transaction. ChaincodeId *ChaincodeID `protobuf:"bytes,4,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeAction contains the actions the events generated by the execution of the chaincode.
func (*ChaincodeAction) Descriptor ¶
func (*ChaincodeAction) Descriptor() ([]byte, []int)
func (*ChaincodeAction) GetChaincodeId ¶
func (m *ChaincodeAction) GetChaincodeId() *ChaincodeID
func (*ChaincodeAction) GetEvents ¶
func (m *ChaincodeAction) GetEvents() []byte
func (*ChaincodeAction) GetResponse ¶
func (m *ChaincodeAction) GetResponse() *Response
func (*ChaincodeAction) GetResults ¶
func (m *ChaincodeAction) GetResults() []byte
func (*ChaincodeAction) ProtoMessage ¶
func (*ChaincodeAction) ProtoMessage()
func (*ChaincodeAction) Reset ¶
func (m *ChaincodeAction) Reset()
func (*ChaincodeAction) String ¶
func (m *ChaincodeAction) String() string
func (*ChaincodeAction) XXX_DiscardUnknown ¶
func (m *ChaincodeAction) XXX_DiscardUnknown()
func (*ChaincodeAction) XXX_Marshal ¶
func (m *ChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeAction) XXX_Merge ¶
func (m *ChaincodeAction) XXX_Merge(src proto.Message)
func (*ChaincodeAction) XXX_Size ¶
func (m *ChaincodeAction) XXX_Size() int
func (*ChaincodeAction) XXX_Unmarshal ¶
func (m *ChaincodeAction) XXX_Unmarshal(b []byte) error
type ChaincodeDeploymentSpec ¶
type ChaincodeDeploymentSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` // Controls when the chaincode becomes executable. // google.protobuf.Timestamp effective_date = 2; CodePackage []byte `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"` ExecEnv ChaincodeDeploymentSpec_ExecutionEnvironment `` /* 140-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Specify the deployment of a chaincode. TODO: Define `codePackage`.
func (*ChaincodeDeploymentSpec) Descriptor ¶
func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
func (*ChaincodeDeploymentSpec) GetChaincodeSpec ¶
func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec
func (*ChaincodeDeploymentSpec) GetCodePackage ¶
func (m *ChaincodeDeploymentSpec) GetCodePackage() []byte
func (*ChaincodeDeploymentSpec) GetExecEnv ¶
func (m *ChaincodeDeploymentSpec) GetExecEnv() ChaincodeDeploymentSpec_ExecutionEnvironment
func (*ChaincodeDeploymentSpec) ProtoMessage ¶
func (*ChaincodeDeploymentSpec) ProtoMessage()
func (*ChaincodeDeploymentSpec) Reset ¶
func (m *ChaincodeDeploymentSpec) Reset()
func (*ChaincodeDeploymentSpec) String ¶
func (m *ChaincodeDeploymentSpec) String() string
func (*ChaincodeDeploymentSpec) XXX_DiscardUnknown ¶
func (m *ChaincodeDeploymentSpec) XXX_DiscardUnknown()
func (*ChaincodeDeploymentSpec) XXX_Marshal ¶
func (m *ChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeDeploymentSpec) XXX_Merge ¶
func (m *ChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
func (*ChaincodeDeploymentSpec) XXX_Size ¶
func (m *ChaincodeDeploymentSpec) XXX_Size() int
func (*ChaincodeDeploymentSpec) XXX_Unmarshal ¶
func (m *ChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
type ChaincodeDeploymentSpec_ExecutionEnvironment ¶
type ChaincodeDeploymentSpec_ExecutionEnvironment int32
const ( ChaincodeDeploymentSpec_DOCKER ChaincodeDeploymentSpec_ExecutionEnvironment = 0 ChaincodeDeploymentSpec_SYSTEM ChaincodeDeploymentSpec_ExecutionEnvironment = 1 )
func (ChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor ¶
func (ChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor() ([]byte, []int)
func (ChaincodeDeploymentSpec_ExecutionEnvironment) String ¶
func (x ChaincodeDeploymentSpec_ExecutionEnvironment) String() string
type ChaincodeEvent ¶
type ChaincodeEvent struct { ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` EventName string `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeEvent is used for events and registrations that are specific to chaincode string type - "chaincode"
func (*ChaincodeEvent) Descriptor ¶
func (*ChaincodeEvent) Descriptor() ([]byte, []int)
func (*ChaincodeEvent) GetChaincodeId ¶
func (m *ChaincodeEvent) GetChaincodeId() string
func (*ChaincodeEvent) GetEventName ¶
func (m *ChaincodeEvent) GetEventName() string
func (*ChaincodeEvent) GetPayload ¶
func (m *ChaincodeEvent) GetPayload() []byte
func (*ChaincodeEvent) GetTxId ¶
func (m *ChaincodeEvent) GetTxId() string
func (*ChaincodeEvent) ProtoMessage ¶
func (*ChaincodeEvent) ProtoMessage()
func (*ChaincodeEvent) Reset ¶
func (m *ChaincodeEvent) Reset()
func (*ChaincodeEvent) String ¶
func (m *ChaincodeEvent) String() string
func (*ChaincodeEvent) XXX_DiscardUnknown ¶
func (m *ChaincodeEvent) XXX_DiscardUnknown()
func (*ChaincodeEvent) XXX_Marshal ¶
func (m *ChaincodeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeEvent) XXX_Merge ¶
func (m *ChaincodeEvent) XXX_Merge(src proto.Message)
func (*ChaincodeEvent) XXX_Size ¶
func (m *ChaincodeEvent) XXX_Size() int
func (*ChaincodeEvent) XXX_Unmarshal ¶
func (m *ChaincodeEvent) XXX_Unmarshal(b []byte) error
type ChaincodeHeaderExtension ¶
type ChaincodeHeaderExtension struct { // The PayloadVisibility field controls to what extent the Proposal's payload // (recall that for the type CHAINCODE, it is ChaincodeProposalPayload // message) field will be visible in the final transaction and in the ledger. // Ideally, it would be configurable, supporting at least 3 main visibility // modes: // 1. all bytes of the payload are visible; // 2. only a hash of the payload is visible; // 3. nothing is visible. // Notice that the visibility function may be potentially part of the ESCC. // In that case it overrides PayloadVisibility field. Finally notice that // this field impacts the content of ProposalResponsePayload.proposalHash. PayloadVisibility []byte `protobuf:"bytes,1,opt,name=payload_visibility,json=payloadVisibility,proto3" json:"payload_visibility,omitempty"` // The ID of the chaincode to target. ChaincodeId *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeHeaderExtension is the Header's extentions message to be used when the Header's type is CHAINCODE. This extensions is used to specify which chaincode to invoke and what should appear on the ledger.
func (*ChaincodeHeaderExtension) Descriptor ¶
func (*ChaincodeHeaderExtension) Descriptor() ([]byte, []int)
func (*ChaincodeHeaderExtension) GetChaincodeId ¶
func (m *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID
func (*ChaincodeHeaderExtension) GetPayloadVisibility ¶
func (m *ChaincodeHeaderExtension) GetPayloadVisibility() []byte
func (*ChaincodeHeaderExtension) ProtoMessage ¶
func (*ChaincodeHeaderExtension) ProtoMessage()
func (*ChaincodeHeaderExtension) Reset ¶
func (m *ChaincodeHeaderExtension) Reset()
func (*ChaincodeHeaderExtension) String ¶
func (m *ChaincodeHeaderExtension) String() string
func (*ChaincodeHeaderExtension) XXX_DiscardUnknown ¶
func (m *ChaincodeHeaderExtension) XXX_DiscardUnknown()
func (*ChaincodeHeaderExtension) XXX_Marshal ¶
func (m *ChaincodeHeaderExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeHeaderExtension) XXX_Merge ¶
func (m *ChaincodeHeaderExtension) XXX_Merge(src proto.Message)
func (*ChaincodeHeaderExtension) XXX_Size ¶
func (m *ChaincodeHeaderExtension) XXX_Size() int
func (*ChaincodeHeaderExtension) XXX_Unmarshal ¶
func (m *ChaincodeHeaderExtension) XXX_Unmarshal(b []byte) error
type ChaincodeID ¶
type ChaincodeID struct { //deploy transaction will use the path Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` //all other requests will use the name (really a hashcode) generated by //the deploy transaction Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //user friendly version name for the chaincode Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeID contains the path as specified by the deploy transaction that created it as well as the hashCode that is generated by the system for the path. From the user level (ie, CLI, REST API and so on) deploy transaction is expected to provide the path and other requests are expected to provide the hashCode. The other value will be ignored. Internally, the structure could contain both values. For instance, the hashCode will be set when first generated using the path
func (*ChaincodeID) Descriptor ¶
func (*ChaincodeID) Descriptor() ([]byte, []int)
func (*ChaincodeID) GetName ¶
func (m *ChaincodeID) GetName() string
func (*ChaincodeID) GetPath ¶
func (m *ChaincodeID) GetPath() string
func (*ChaincodeID) GetVersion ¶
func (m *ChaincodeID) GetVersion() string
func (*ChaincodeID) ProtoMessage ¶
func (*ChaincodeID) ProtoMessage()
func (*ChaincodeID) Reset ¶
func (m *ChaincodeID) Reset()
func (*ChaincodeID) String ¶
func (m *ChaincodeID) String() string
func (*ChaincodeID) XXX_DiscardUnknown ¶
func (m *ChaincodeID) XXX_DiscardUnknown()
func (*ChaincodeID) XXX_Marshal ¶
func (m *ChaincodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeID) XXX_Merge ¶
func (m *ChaincodeID) XXX_Merge(src proto.Message)
func (*ChaincodeID) XXX_Size ¶
func (m *ChaincodeID) XXX_Size() int
func (*ChaincodeID) XXX_Unmarshal ¶
func (m *ChaincodeID) XXX_Unmarshal(b []byte) error
type ChaincodeInfo ¶
type ChaincodeInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // the path as specified by the install/instantiate transaction Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // the chaincode function upon instantiation and its arguments. This will be // blank if the query is returning information about installed chaincodes. Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` // the name of the ESCC for this chaincode. This will be // blank if the query is returning information about installed chaincodes. Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"` // the name of the VSCC for this chaincode. This will be // blank if the query is returning information about installed chaincodes. Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"` // the chaincode unique id. // computed as: H( // H(name || version) || // H(CodePackage) // ) Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeInfo contains general information about an installed/instantiated chaincode
func (*ChaincodeInfo) Descriptor ¶
func (*ChaincodeInfo) Descriptor() ([]byte, []int)
func (*ChaincodeInfo) GetEscc ¶
func (m *ChaincodeInfo) GetEscc() string
func (*ChaincodeInfo) GetId ¶
func (m *ChaincodeInfo) GetId() []byte
func (*ChaincodeInfo) GetInput ¶
func (m *ChaincodeInfo) GetInput() string
func (*ChaincodeInfo) GetName ¶
func (m *ChaincodeInfo) GetName() string
func (*ChaincodeInfo) GetPath ¶
func (m *ChaincodeInfo) GetPath() string
func (*ChaincodeInfo) GetVersion ¶
func (m *ChaincodeInfo) GetVersion() string
func (*ChaincodeInfo) GetVscc ¶
func (m *ChaincodeInfo) GetVscc() string
func (*ChaincodeInfo) ProtoMessage ¶
func (*ChaincodeInfo) ProtoMessage()
func (*ChaincodeInfo) Reset ¶
func (m *ChaincodeInfo) Reset()
func (*ChaincodeInfo) String ¶
func (m *ChaincodeInfo) String() string
func (*ChaincodeInfo) XXX_DiscardUnknown ¶
func (m *ChaincodeInfo) XXX_DiscardUnknown()
func (*ChaincodeInfo) XXX_Marshal ¶
func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeInfo) XXX_Merge ¶
func (m *ChaincodeInfo) XXX_Merge(src proto.Message)
func (*ChaincodeInfo) XXX_Size ¶
func (m *ChaincodeInfo) XXX_Size() int
func (*ChaincodeInfo) XXX_Unmarshal ¶
func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error
type ChaincodeInput ¶
type ChaincodeInput struct { Args [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` Decorations map[string][]byte `` /* 163-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Carries the chaincode function and its arguments. UnmarshalJSON in transaction.go converts the string-based REST/JSON input to the []byte-based current ChaincodeInput structure.
func (*ChaincodeInput) Descriptor ¶
func (*ChaincodeInput) Descriptor() ([]byte, []int)
func (*ChaincodeInput) GetArgs ¶
func (m *ChaincodeInput) GetArgs() [][]byte
func (*ChaincodeInput) GetDecorations ¶
func (m *ChaincodeInput) GetDecorations() map[string][]byte
func (*ChaincodeInput) ProtoMessage ¶
func (*ChaincodeInput) ProtoMessage()
func (*ChaincodeInput) Reset ¶
func (m *ChaincodeInput) Reset()
func (*ChaincodeInput) String ¶
func (m *ChaincodeInput) String() string
func (*ChaincodeInput) XXX_DiscardUnknown ¶
func (m *ChaincodeInput) XXX_DiscardUnknown()
func (*ChaincodeInput) XXX_Marshal ¶
func (m *ChaincodeInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeInput) XXX_Merge ¶
func (m *ChaincodeInput) XXX_Merge(src proto.Message)
func (*ChaincodeInput) XXX_Size ¶
func (m *ChaincodeInput) XXX_Size() int
func (*ChaincodeInput) XXX_Unmarshal ¶
func (m *ChaincodeInput) XXX_Unmarshal(b []byte) error
type ChaincodeInvocationSpec ¶
type ChaincodeInvocationSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` // This field can contain a user-specified ID generation algorithm // If supplied, this will be used to generate a ID // If not supplied (left empty), sha256base64 will be used // The algorithm consists of two parts: // 1, a hash function // 2, a decoding used to decode user (string) input to bytes // Currently, SHA256 with BASE64 is supported (e.g. idGenerationAlg='sha256base64') IdGenerationAlg string `protobuf:"bytes,2,opt,name=id_generation_alg,json=idGenerationAlg,proto3" json:"id_generation_alg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Carries the chaincode function and its arguments.
func (*ChaincodeInvocationSpec) Descriptor ¶
func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)
func (*ChaincodeInvocationSpec) GetChaincodeSpec ¶
func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec
func (*ChaincodeInvocationSpec) GetIdGenerationAlg ¶
func (m *ChaincodeInvocationSpec) GetIdGenerationAlg() string
func (*ChaincodeInvocationSpec) ProtoMessage ¶
func (*ChaincodeInvocationSpec) ProtoMessage()
func (*ChaincodeInvocationSpec) Reset ¶
func (m *ChaincodeInvocationSpec) Reset()
func (*ChaincodeInvocationSpec) String ¶
func (m *ChaincodeInvocationSpec) String() string
func (*ChaincodeInvocationSpec) XXX_DiscardUnknown ¶
func (m *ChaincodeInvocationSpec) XXX_DiscardUnknown()
func (*ChaincodeInvocationSpec) XXX_Marshal ¶
func (m *ChaincodeInvocationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeInvocationSpec) XXX_Merge ¶
func (m *ChaincodeInvocationSpec) XXX_Merge(src proto.Message)
func (*ChaincodeInvocationSpec) XXX_Size ¶
func (m *ChaincodeInvocationSpec) XXX_Size() int
func (*ChaincodeInvocationSpec) XXX_Unmarshal ¶
func (m *ChaincodeInvocationSpec) XXX_Unmarshal(b []byte) error
type ChaincodeMessage ¶
type ChaincodeMessage struct { Type ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeMessage_Type" json:"type,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` Txid string `protobuf:"bytes,4,opt,name=txid,proto3" json:"txid,omitempty"` Proposal *SignedProposal `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"` //event emitted by chaincode. Used only with Init or Invoke. // This event is then stored (currently) //with Block.NonHashData.TransactionResult ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,6,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` //channel id ChannelId string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` //contract id ContractId []byte `protobuf:"bytes,8,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeMessage) Descriptor ¶
func (*ChaincodeMessage) Descriptor() ([]byte, []int)
func (*ChaincodeMessage) GetChaincodeEvent ¶
func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent
func (*ChaincodeMessage) GetChannelId ¶
func (m *ChaincodeMessage) GetChannelId() string
func (*ChaincodeMessage) GetContractId ¶
func (m *ChaincodeMessage) GetContractId() []byte
func (*ChaincodeMessage) GetPayload ¶
func (m *ChaincodeMessage) GetPayload() []byte
func (*ChaincodeMessage) GetProposal ¶
func (m *ChaincodeMessage) GetProposal() *SignedProposal
func (*ChaincodeMessage) GetTimestamp ¶
func (m *ChaincodeMessage) GetTimestamp() *timestamp.Timestamp
func (*ChaincodeMessage) GetTxid ¶
func (m *ChaincodeMessage) GetTxid() string
func (*ChaincodeMessage) GetType ¶
func (m *ChaincodeMessage) GetType() ChaincodeMessage_Type
func (*ChaincodeMessage) ProtoMessage ¶
func (*ChaincodeMessage) ProtoMessage()
func (*ChaincodeMessage) Reset ¶
func (m *ChaincodeMessage) Reset()
func (*ChaincodeMessage) String ¶
func (m *ChaincodeMessage) String() string
func (*ChaincodeMessage) XXX_DiscardUnknown ¶
func (m *ChaincodeMessage) XXX_DiscardUnknown()
func (*ChaincodeMessage) XXX_Marshal ¶
func (m *ChaincodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeMessage) XXX_Merge ¶
func (m *ChaincodeMessage) XXX_Merge(src proto.Message)
func (*ChaincodeMessage) XXX_Size ¶
func (m *ChaincodeMessage) XXX_Size() int
func (*ChaincodeMessage) XXX_Unmarshal ¶
func (m *ChaincodeMessage) XXX_Unmarshal(b []byte) error
type ChaincodeMessage_Type ¶
type ChaincodeMessage_Type int32
const ( ChaincodeMessage_UNDEFINED ChaincodeMessage_Type = 0 ChaincodeMessage_REGISTER ChaincodeMessage_Type = 1 ChaincodeMessage_REGISTERED ChaincodeMessage_Type = 2 ChaincodeMessage_INIT ChaincodeMessage_Type = 3 ChaincodeMessage_READY ChaincodeMessage_Type = 4 ChaincodeMessage_TRANSACTION ChaincodeMessage_Type = 5 ChaincodeMessage_COMPLETED ChaincodeMessage_Type = 6 ChaincodeMessage_ERROR ChaincodeMessage_Type = 7 ChaincodeMessage_GET_STATE ChaincodeMessage_Type = 8 ChaincodeMessage_PUT_STATE ChaincodeMessage_Type = 9 ChaincodeMessage_DEL_STATE ChaincodeMessage_Type = 10 ChaincodeMessage_INVOKE_CHAINCODE ChaincodeMessage_Type = 11 ChaincodeMessage_RESPONSE ChaincodeMessage_Type = 13 ChaincodeMessage_GET_STATE_BY_PREFIX ChaincodeMessage_Type = 14 // GET_QUERY_RESULT = 15; // QUERY_STATE_NEXT = 16; // QUERY_STATE_CLOSE = 17; ChaincodeMessage_KEEPALIVE ChaincodeMessage_Type = 18 // GET_HISTORY_FOR_KEY = 19; ChaincodeMessage_GET_SYSTEM_CONFIG_REQUEST ChaincodeMessage_Type = 23 ChaincodeMessage_GET_CONTRACT_ALL_STATE ChaincodeMessage_Type = 24 ChaincodeMessage_GET_TOKEN_BALANCE ChaincodeMessage_Type = 25 ChaincodeMessage_PAY_OUT_TOKEN ChaincodeMessage_Type = 26 ChaincodeMessage_DEFINE_TOKEN ChaincodeMessage_Type = 27 ChaincodeMessage_SUPPLY_TOKEN ChaincodeMessage_Type = 28 ChaincodeMessage_GET_TIMESTAMP ChaincodeMessage_Type = 29 ChaincodeMessage_SEND_JURY ChaincodeMessage_Type = 30 ChaincodeMessage_RECV_JURY ChaincodeMessage_Type = 31 ChaincodeMessage_GET_CERT_STATE ChaincodeMessage_Type = 32 ChaincodeMessage_OUTCHAIN_CALL ChaincodeMessage_Type = 33 ChaincodeMessage_GET_STABLE_TRANSACTION ChaincodeMessage_Type = 34 ChaincodeMessage_GET_STABLE_UNIT ChaincodeMessage_Type = 35 )
func (ChaincodeMessage_Type) EnumDescriptor ¶
func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int)
func (ChaincodeMessage_Type) String ¶
func (x ChaincodeMessage_Type) String() string
type ChaincodeProposalPayload ¶
type ChaincodeProposalPayload struct { // Input contains the arguments for this invocation. If this invocation // deploys a new chaincode, ESCC/VSCC are part of this field. // This is usually a marshaled ChaincodeInvocationSpec Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // TransientMap contains data (e.g. cryptographic material) that might be used // to implement some form of application-level confidentiality. The contents // of this field are supposed to always be omitted from the transaction and // excluded from the ledger. TransientMap map[string][]byte `` /* 165-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeProposalPayload is the Proposal's payload message to be used when the Header's type is CHAINCODE. It contains the arguments for this invocation.
func (*ChaincodeProposalPayload) Descriptor ¶
func (*ChaincodeProposalPayload) Descriptor() ([]byte, []int)
func (*ChaincodeProposalPayload) GetInput ¶
func (m *ChaincodeProposalPayload) GetInput() []byte
func (*ChaincodeProposalPayload) GetTransientMap ¶
func (m *ChaincodeProposalPayload) GetTransientMap() map[string][]byte
func (*ChaincodeProposalPayload) ProtoMessage ¶
func (*ChaincodeProposalPayload) ProtoMessage()
func (*ChaincodeProposalPayload) Reset ¶
func (m *ChaincodeProposalPayload) Reset()
func (*ChaincodeProposalPayload) StaticallyOpaqueFieldProto ¶
func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*ChaincodeProposalPayload) StaticallyOpaqueFields ¶
func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFields() []string
func (*ChaincodeProposalPayload) String ¶
func (m *ChaincodeProposalPayload) String() string
func (*ChaincodeProposalPayload) XXX_DiscardUnknown ¶
func (m *ChaincodeProposalPayload) XXX_DiscardUnknown()
func (*ChaincodeProposalPayload) XXX_Marshal ¶
func (m *ChaincodeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeProposalPayload) XXX_Merge ¶
func (m *ChaincodeProposalPayload) XXX_Merge(src proto.Message)
func (*ChaincodeProposalPayload) XXX_Size ¶
func (m *ChaincodeProposalPayload) XXX_Size() int
func (*ChaincodeProposalPayload) XXX_Unmarshal ¶
func (m *ChaincodeProposalPayload) XXX_Unmarshal(b []byte) error
type ChaincodeQueryResponse ¶
type ChaincodeQueryResponse struct { Chaincodes []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeQueryResponse returns information about each chaincode that pertains to a query in lscc.go, such as GetChaincodes (returns all chaincodes instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes installed on a peer)
func (*ChaincodeQueryResponse) Descriptor ¶
func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int)
func (*ChaincodeQueryResponse) GetChaincodes ¶
func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo
func (*ChaincodeQueryResponse) ProtoMessage ¶
func (*ChaincodeQueryResponse) ProtoMessage()
func (*ChaincodeQueryResponse) Reset ¶
func (m *ChaincodeQueryResponse) Reset()
func (*ChaincodeQueryResponse) String ¶
func (m *ChaincodeQueryResponse) String() string
func (*ChaincodeQueryResponse) XXX_DiscardUnknown ¶
func (m *ChaincodeQueryResponse) XXX_DiscardUnknown()
func (*ChaincodeQueryResponse) XXX_Marshal ¶
func (m *ChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeQueryResponse) XXX_Merge ¶
func (m *ChaincodeQueryResponse) XXX_Merge(src proto.Message)
func (*ChaincodeQueryResponse) XXX_Size ¶
func (m *ChaincodeQueryResponse) XXX_Size() int
func (*ChaincodeQueryResponse) XXX_Unmarshal ¶
func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error
type ChaincodeSpec ¶
type ChaincodeSpec struct { Type ChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeSpec_Type" json:"type,omitempty"` ChaincodeId *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` Input *ChaincodeInput `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Timeout int32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` Memory int64 `protobuf:"varint,5,opt,name=Memory,proto3" json:"Memory,omitempty"` CpuQuota int64 `protobuf:"varint,6,opt,name=CpuQuota,proto3" json:"CpuQuota,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Carries the chaincode specification. This is the actual metadata required for defining a chaincode.
func (*ChaincodeSpec) Descriptor ¶
func (*ChaincodeSpec) Descriptor() ([]byte, []int)
func (*ChaincodeSpec) GetChaincodeId ¶
func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID
func (*ChaincodeSpec) GetCpuQuota ¶ added in v1.0.1
func (m *ChaincodeSpec) GetCpuQuota() int64
func (*ChaincodeSpec) GetCpuShare ¶ added in v1.0.1
func (m *ChaincodeSpec) GetCpuShare() int64
func (*ChaincodeSpec) GetInput ¶
func (m *ChaincodeSpec) GetInput() *ChaincodeInput
func (*ChaincodeSpec) GetMemory ¶ added in v1.0.1
func (m *ChaincodeSpec) GetMemory() int64
func (*ChaincodeSpec) GetTimeout ¶
func (m *ChaincodeSpec) GetTimeout() int32
func (*ChaincodeSpec) GetType ¶
func (m *ChaincodeSpec) GetType() ChaincodeSpec_Type
func (*ChaincodeSpec) ProtoMessage ¶
func (*ChaincodeSpec) ProtoMessage()
func (*ChaincodeSpec) Reset ¶
func (m *ChaincodeSpec) Reset()
func (*ChaincodeSpec) String ¶
func (m *ChaincodeSpec) String() string
func (*ChaincodeSpec) XXX_DiscardUnknown ¶
func (m *ChaincodeSpec) XXX_DiscardUnknown()
func (*ChaincodeSpec) XXX_Marshal ¶
func (m *ChaincodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeSpec) XXX_Merge ¶
func (m *ChaincodeSpec) XXX_Merge(src proto.Message)
func (*ChaincodeSpec) XXX_Size ¶
func (m *ChaincodeSpec) XXX_Size() int
func (*ChaincodeSpec) XXX_Unmarshal ¶
func (m *ChaincodeSpec) XXX_Unmarshal(b []byte) error
type ChaincodeSpec_Type ¶
type ChaincodeSpec_Type int32
const ( ChaincodeSpec_UNDEFINED ChaincodeSpec_Type = 0 ChaincodeSpec_GOLANG ChaincodeSpec_Type = 1 ChaincodeSpec_NODE ChaincodeSpec_Type = 2 ChaincodeSpec_CAR ChaincodeSpec_Type = 3 ChaincodeSpec_JAVA ChaincodeSpec_Type = 4 )
func (ChaincodeSpec_Type) EnumDescriptor ¶
func (ChaincodeSpec_Type) EnumDescriptor() ([]byte, []int)
func (ChaincodeSpec_Type) String ¶
func (x ChaincodeSpec_Type) String() string
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.ClientConn) 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 ChannelInfo ¶
type ChannelInfo struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChannelInfo contains general information about channels
func (*ChannelInfo) Descriptor ¶
func (*ChannelInfo) Descriptor() ([]byte, []int)
func (*ChannelInfo) GetChannelId ¶
func (m *ChannelInfo) GetChannelId() string
func (*ChannelInfo) ProtoMessage ¶
func (*ChannelInfo) ProtoMessage()
func (*ChannelInfo) Reset ¶
func (m *ChannelInfo) Reset()
func (*ChannelInfo) String ¶
func (m *ChannelInfo) String() string
func (*ChannelInfo) XXX_DiscardUnknown ¶
func (m *ChannelInfo) XXX_DiscardUnknown()
func (*ChannelInfo) XXX_Marshal ¶
func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelInfo) XXX_Merge ¶
func (m *ChannelInfo) XXX_Merge(src proto.Message)
func (*ChannelInfo) XXX_Size ¶
func (m *ChannelInfo) XXX_Size() int
func (*ChannelInfo) XXX_Unmarshal ¶
func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
type ChannelQueryResponse ¶
type ChannelQueryResponse struct { Channels []*ChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChannelQueryResponse returns information about each channel that pertains to a query in lscc.go, such as GetChannels (returns all channels for a given peer)
func (*ChannelQueryResponse) Descriptor ¶
func (*ChannelQueryResponse) Descriptor() ([]byte, []int)
func (*ChannelQueryResponse) GetChannels ¶
func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo
func (*ChannelQueryResponse) ProtoMessage ¶
func (*ChannelQueryResponse) ProtoMessage()
func (*ChannelQueryResponse) Reset ¶
func (m *ChannelQueryResponse) Reset()
func (*ChannelQueryResponse) String ¶
func (m *ChannelQueryResponse) String() string
func (*ChannelQueryResponse) XXX_DiscardUnknown ¶
func (m *ChannelQueryResponse) XXX_DiscardUnknown()
func (*ChannelQueryResponse) XXX_Marshal ¶
func (m *ChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelQueryResponse) XXX_Merge ¶
func (m *ChannelQueryResponse) XXX_Merge(src proto.Message)
func (*ChannelQueryResponse) XXX_Size ¶
func (m *ChannelQueryResponse) XXX_Size() int
func (*ChannelQueryResponse) XXX_Unmarshal ¶
func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error
type ConfidentialityLevel ¶
type ConfidentialityLevel int32
Confidentiality Levels
const ( ConfidentialityLevel_PUBLIC ConfidentialityLevel = 0 ConfidentialityLevel_CONFIDENTIAL ConfidentialityLevel = 1 )
func (ConfidentialityLevel) EnumDescriptor ¶
func (ConfidentialityLevel) EnumDescriptor() ([]byte, []int)
func (ConfidentialityLevel) String ¶
func (x ConfidentialityLevel) String() string
type ContractDeployPayload ¶
type ContractDeployPayload struct { ContractId string `json:"contract_id"` // contract id Function []byte `json:"function"` // serialized value of invoked function with call parameters ReadSet map[string]interface{} `json:"read_set"` // the set data of read, and value could be any type WriteSet map[string]interface{} `json:"write_set"` // the set data of write, and value could be any type }
type ContractInvokePayload ¶
type ContractInvokePayload struct { ContractId string `json:"contract_id"` // contract id Function []byte `json:"function"` // serialized value of invoked function with call parameters ReadSet map[string]interface{} `json:"read_set"` // the set data of read, and value could be any type WriteSet map[string]interface{} `json:"write_set"` // the set data of write, and value could be any type }
type DefineToken ¶
type DefineToken struct { TokenType int32 `protobuf:"varint,1,opt,name=tokenType,proto3" json:"tokenType,omitempty"` Define []byte `protobuf:"bytes,2,opt,name=define,proto3" json:"define,omitempty"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DefineToken) Descriptor ¶
func (*DefineToken) Descriptor() ([]byte, []int)
func (*DefineToken) GetCreator ¶
func (m *DefineToken) GetCreator() string
func (*DefineToken) GetDefine ¶
func (m *DefineToken) GetDefine() []byte
func (*DefineToken) GetTokenType ¶
func (m *DefineToken) GetTokenType() int32
func (*DefineToken) ProtoMessage ¶
func (*DefineToken) ProtoMessage()
func (*DefineToken) Reset ¶
func (m *DefineToken) Reset()
func (*DefineToken) String ¶
func (m *DefineToken) String() string
func (*DefineToken) XXX_DiscardUnknown ¶
func (m *DefineToken) XXX_DiscardUnknown()
func (*DefineToken) XXX_Marshal ¶
func (m *DefineToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DefineToken) XXX_Merge ¶
func (m *DefineToken) XXX_Merge(src proto.Message)
func (*DefineToken) XXX_Size ¶
func (m *DefineToken) XXX_Size() int
func (*DefineToken) XXX_Unmarshal ¶
func (m *DefineToken) XXX_Unmarshal(b []byte) error
type DelState ¶
type DelState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` ContractId []byte `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DelState) Descriptor ¶
func (*DelState) GetCollection ¶
func (*DelState) GetContractId ¶
func (*DelState) ProtoMessage ¶
func (*DelState) ProtoMessage()
func (*DelState) XXX_DiscardUnknown ¶
func (m *DelState) XXX_DiscardUnknown()
func (*DelState) XXX_Marshal ¶
func (*DelState) XXX_Unmarshal ¶
type Endorsement ¶
type Endorsement struct { // Identity of the endorser (e.g. its certificate) Endorser []byte `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"` // Signature of the payload included in ProposalResponse concatenated with // the endorser's certificate; ie, sign(ProposalResponse.payload + endorser) Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An endorsement is a signature of an endorser over a proposal response. By producing an endorsement message, an endorser implicitly "approves" that proposal response and the actions contained therein. When enough endorsements have been collected, a transaction can be generated out of a set of proposal responses. Note that this message only contains an identity and a signature but no signed payload. This is intentional because endorsements are supposed to be collected in a transaction, and they are all expected to endorse a single proposal response/action (many endorsements over a single proposal response)
func (*Endorsement) Descriptor ¶
func (*Endorsement) Descriptor() ([]byte, []int)
func (*Endorsement) GetEndorser ¶
func (m *Endorsement) GetEndorser() []byte
func (*Endorsement) GetSignature ¶
func (m *Endorsement) GetSignature() []byte
func (*Endorsement) ProtoMessage ¶
func (*Endorsement) ProtoMessage()
func (*Endorsement) Reset ¶
func (m *Endorsement) Reset()
func (*Endorsement) String ¶
func (m *Endorsement) String() string
func (*Endorsement) XXX_DiscardUnknown ¶
func (m *Endorsement) XXX_DiscardUnknown()
func (*Endorsement) XXX_Marshal ¶
func (m *Endorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Endorsement) XXX_Merge ¶
func (m *Endorsement) XXX_Merge(src proto.Message)
func (*Endorsement) XXX_Size ¶
func (m *Endorsement) XXX_Size() int
func (*Endorsement) XXX_Unmarshal ¶
func (m *Endorsement) XXX_Unmarshal(b []byte) error
type EndorserServer ¶
type EndorserServer interface {
ProcessProposal(rwset.TxManager, dboperation.IContractDag, []byte, context.Context, *SignedProposal, *Proposal, string, *ChaincodeID, time.Duration) (*ProposalResponse, *modules.ContractInvokeResult, error)
}
type GetCertState ¶
type GetCertState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCertState) Descriptor ¶
func (*GetCertState) Descriptor() ([]byte, []int)
func (*GetCertState) GetCollection ¶
func (m *GetCertState) GetCollection() string
func (*GetCertState) GetKey ¶
func (m *GetCertState) GetKey() string
func (*GetCertState) ProtoMessage ¶
func (*GetCertState) ProtoMessage()
func (*GetCertState) Reset ¶
func (m *GetCertState) Reset()
func (*GetCertState) String ¶
func (m *GetCertState) String() string
func (*GetCertState) XXX_DiscardUnknown ¶
func (m *GetCertState) XXX_DiscardUnknown()
func (*GetCertState) XXX_Marshal ¶
func (m *GetCertState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCertState) XXX_Merge ¶
func (m *GetCertState) XXX_Merge(src proto.Message)
func (*GetCertState) XXX_Size ¶
func (m *GetCertState) XXX_Size() int
func (*GetCertState) XXX_Unmarshal ¶
func (m *GetCertState) XXX_Unmarshal(b []byte) error
type GetHistoryForKey ¶
type GetHistoryForKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetHistoryForKey) Descriptor ¶
func (*GetHistoryForKey) Descriptor() ([]byte, []int)
func (*GetHistoryForKey) GetKey ¶
func (m *GetHistoryForKey) GetKey() string
func (*GetHistoryForKey) ProtoMessage ¶
func (*GetHistoryForKey) ProtoMessage()
func (*GetHistoryForKey) Reset ¶
func (m *GetHistoryForKey) Reset()
func (*GetHistoryForKey) String ¶
func (m *GetHistoryForKey) String() string
func (*GetHistoryForKey) XXX_DiscardUnknown ¶
func (m *GetHistoryForKey) XXX_DiscardUnknown()
func (*GetHistoryForKey) XXX_Marshal ¶
func (m *GetHistoryForKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHistoryForKey) XXX_Merge ¶
func (m *GetHistoryForKey) XXX_Merge(src proto.Message)
func (*GetHistoryForKey) XXX_Size ¶
func (m *GetHistoryForKey) XXX_Size() int
func (*GetHistoryForKey) XXX_Unmarshal ¶
func (m *GetHistoryForKey) XXX_Unmarshal(b []byte) error
type GetQueryResult ¶
type GetQueryResult struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetQueryResult) Descriptor ¶
func (*GetQueryResult) Descriptor() ([]byte, []int)
func (*GetQueryResult) GetCollection ¶
func (m *GetQueryResult) GetCollection() string
func (*GetQueryResult) GetQuery ¶
func (m *GetQueryResult) GetQuery() string
func (*GetQueryResult) ProtoMessage ¶
func (*GetQueryResult) ProtoMessage()
func (*GetQueryResult) Reset ¶
func (m *GetQueryResult) Reset()
func (*GetQueryResult) String ¶
func (m *GetQueryResult) String() string
func (*GetQueryResult) XXX_DiscardUnknown ¶
func (m *GetQueryResult) XXX_DiscardUnknown()
func (*GetQueryResult) XXX_Marshal ¶
func (m *GetQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetQueryResult) XXX_Merge ¶
func (m *GetQueryResult) XXX_Merge(src proto.Message)
func (*GetQueryResult) XXX_Size ¶
func (m *GetQueryResult) XXX_Size() int
func (*GetQueryResult) XXX_Unmarshal ¶
func (m *GetQueryResult) XXX_Unmarshal(b []byte) error
type GetStableTransaction ¶ added in v1.0.5
type GetStableTransaction struct { TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStableTransaction) Descriptor ¶ added in v1.0.5
func (*GetStableTransaction) Descriptor() ([]byte, []int)
func (*GetStableTransaction) GetTxHash ¶ added in v1.0.5
func (m *GetStableTransaction) GetTxHash() string
func (*GetStableTransaction) ProtoMessage ¶ added in v1.0.5
func (*GetStableTransaction) ProtoMessage()
func (*GetStableTransaction) Reset ¶ added in v1.0.5
func (m *GetStableTransaction) Reset()
func (*GetStableTransaction) String ¶ added in v1.0.5
func (m *GetStableTransaction) String() string
func (*GetStableTransaction) XXX_DiscardUnknown ¶ added in v1.0.5
func (m *GetStableTransaction) XXX_DiscardUnknown()
func (*GetStableTransaction) XXX_Marshal ¶ added in v1.0.5
func (m *GetStableTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStableTransaction) XXX_Merge ¶ added in v1.0.5
func (m *GetStableTransaction) XXX_Merge(src proto.Message)
func (*GetStableTransaction) XXX_Size ¶ added in v1.0.5
func (m *GetStableTransaction) XXX_Size() int
func (*GetStableTransaction) XXX_Unmarshal ¶ added in v1.0.5
func (m *GetStableTransaction) XXX_Unmarshal(b []byte) error
type GetStableUnit ¶ added in v1.0.5
type GetStableUnit struct { UnitHash string `protobuf:"bytes,1,opt,name=unitHash,proto3" json:"unitHash,omitempty"` UnitNumber uint64 `protobuf:"varint,2,opt,name=unitNumber,proto3" json:"unitNumber,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStableUnit) Descriptor ¶ added in v1.0.5
func (*GetStableUnit) Descriptor() ([]byte, []int)
func (*GetStableUnit) GetUnitHash ¶ added in v1.0.5
func (m *GetStableUnit) GetUnitHash() string
func (*GetStableUnit) GetUnitNumber ¶ added in v1.0.5
func (m *GetStableUnit) GetUnitNumber() uint64
func (*GetStableUnit) ProtoMessage ¶ added in v1.0.5
func (*GetStableUnit) ProtoMessage()
func (*GetStableUnit) Reset ¶ added in v1.0.5
func (m *GetStableUnit) Reset()
func (*GetStableUnit) String ¶ added in v1.0.5
func (m *GetStableUnit) String() string
func (*GetStableUnit) XXX_DiscardUnknown ¶ added in v1.0.5
func (m *GetStableUnit) XXX_DiscardUnknown()
func (*GetStableUnit) XXX_Marshal ¶ added in v1.0.5
func (m *GetStableUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStableUnit) XXX_Merge ¶ added in v1.0.5
func (m *GetStableUnit) XXX_Merge(src proto.Message)
func (*GetStableUnit) XXX_Size ¶ added in v1.0.5
func (m *GetStableUnit) XXX_Size() int
func (*GetStableUnit) XXX_Unmarshal ¶ added in v1.0.5
func (m *GetStableUnit) XXX_Unmarshal(b []byte) error
type GetState ¶
type GetState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` ContractId []byte `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetState) Descriptor ¶
func (*GetState) GetCollection ¶
func (*GetState) GetContractId ¶
func (*GetState) ProtoMessage ¶
func (*GetState) ProtoMessage()
func (*GetState) XXX_DiscardUnknown ¶
func (m *GetState) XXX_DiscardUnknown()
func (*GetState) XXX_Marshal ¶
func (*GetState) XXX_Unmarshal ¶
type GetStateByPrefix ¶
type GetStateByPrefix struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` ContractId []byte `protobuf:"bytes,2,opt,name=contractId,proto3" json:"contractId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStateByPrefix) Descriptor ¶
func (*GetStateByPrefix) Descriptor() ([]byte, []int)
func (*GetStateByPrefix) GetContractId ¶
func (m *GetStateByPrefix) GetContractId() []byte
func (*GetStateByPrefix) GetPrefix ¶
func (m *GetStateByPrefix) GetPrefix() string
func (*GetStateByPrefix) ProtoMessage ¶
func (*GetStateByPrefix) ProtoMessage()
func (*GetStateByPrefix) Reset ¶
func (m *GetStateByPrefix) Reset()
func (*GetStateByPrefix) String ¶
func (m *GetStateByPrefix) String() string
func (*GetStateByPrefix) XXX_DiscardUnknown ¶
func (m *GetStateByPrefix) XXX_DiscardUnknown()
func (*GetStateByPrefix) XXX_Marshal ¶
func (m *GetStateByPrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStateByPrefix) XXX_Merge ¶
func (m *GetStateByPrefix) XXX_Merge(src proto.Message)
func (*GetStateByPrefix) XXX_Size ¶
func (m *GetStateByPrefix) XXX_Size() int
func (*GetStateByPrefix) XXX_Unmarshal ¶
func (m *GetStateByPrefix) XXX_Unmarshal(b []byte) error
type GetStateByPrefixKv ¶
type GetStateByPrefixKv struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ResultBytes []byte `protobuf:"bytes,2,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStateByPrefixKv) Descriptor ¶
func (*GetStateByPrefixKv) Descriptor() ([]byte, []int)
func (*GetStateByPrefixKv) GetKey ¶
func (m *GetStateByPrefixKv) GetKey() string
func (*GetStateByPrefixKv) GetResultBytes ¶
func (m *GetStateByPrefixKv) GetResultBytes() []byte
func (*GetStateByPrefixKv) ProtoMessage ¶
func (*GetStateByPrefixKv) ProtoMessage()
func (*GetStateByPrefixKv) Reset ¶
func (m *GetStateByPrefixKv) Reset()
func (*GetStateByPrefixKv) String ¶
func (m *GetStateByPrefixKv) String() string
func (*GetStateByPrefixKv) XXX_DiscardUnknown ¶
func (m *GetStateByPrefixKv) XXX_DiscardUnknown()
func (*GetStateByPrefixKv) XXX_Marshal ¶
func (m *GetStateByPrefixKv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStateByPrefixKv) XXX_Merge ¶
func (m *GetStateByPrefixKv) XXX_Merge(src proto.Message)
func (*GetStateByPrefixKv) XXX_Size ¶
func (m *GetStateByPrefixKv) XXX_Size() int
func (*GetStateByPrefixKv) XXX_Unmarshal ¶
func (m *GetStateByPrefixKv) XXX_Unmarshal(b []byte) error
type GetStateByRange ¶
type GetStateByRange struct { StartKey string `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"` EndKey string `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStateByRange) Descriptor ¶
func (*GetStateByRange) Descriptor() ([]byte, []int)
func (*GetStateByRange) GetCollection ¶
func (m *GetStateByRange) GetCollection() string
func (*GetStateByRange) GetEndKey ¶
func (m *GetStateByRange) GetEndKey() string
func (*GetStateByRange) GetStartKey ¶
func (m *GetStateByRange) GetStartKey() string
func (*GetStateByRange) ProtoMessage ¶
func (*GetStateByRange) ProtoMessage()
func (*GetStateByRange) Reset ¶
func (m *GetStateByRange) Reset()
func (*GetStateByRange) String ¶
func (m *GetStateByRange) String() string
func (*GetStateByRange) XXX_DiscardUnknown ¶
func (m *GetStateByRange) XXX_DiscardUnknown()
func (*GetStateByRange) XXX_Marshal ¶
func (m *GetStateByRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStateByRange) XXX_Merge ¶
func (m *GetStateByRange) XXX_Merge(src proto.Message)
func (*GetStateByRange) XXX_Size ¶
func (m *GetStateByRange) XXX_Size() int
func (*GetStateByRange) XXX_Unmarshal ¶
func (m *GetStateByRange) XXX_Unmarshal(b []byte) error
type GetTimestamp ¶
type GetTimestamp struct { RangeNumber uint32 `protobuf:"varint,1,opt,name=rangeNumber,proto3" json:"rangeNumber,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTimestamp) Descriptor ¶
func (*GetTimestamp) Descriptor() ([]byte, []int)
func (*GetTimestamp) GetCollection ¶
func (m *GetTimestamp) GetCollection() string
func (*GetTimestamp) GetRangeNumber ¶
func (m *GetTimestamp) GetRangeNumber() uint32
func (*GetTimestamp) ProtoMessage ¶
func (*GetTimestamp) ProtoMessage()
func (*GetTimestamp) Reset ¶
func (m *GetTimestamp) Reset()
func (*GetTimestamp) String ¶
func (m *GetTimestamp) String() string
func (*GetTimestamp) XXX_DiscardUnknown ¶
func (m *GetTimestamp) XXX_DiscardUnknown()
func (*GetTimestamp) XXX_Marshal ¶
func (m *GetTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTimestamp) XXX_Merge ¶
func (m *GetTimestamp) XXX_Merge(src proto.Message)
func (*GetTimestamp) XXX_Size ¶
func (m *GetTimestamp) XXX_Size() int
func (*GetTimestamp) XXX_Unmarshal ¶
func (m *GetTimestamp) XXX_Unmarshal(b []byte) error
type GetTokenBalance ¶
type GetTokenBalance struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTokenBalance) Descriptor ¶
func (*GetTokenBalance) Descriptor() ([]byte, []int)
func (*GetTokenBalance) GetAddress ¶
func (m *GetTokenBalance) GetAddress() string
func (*GetTokenBalance) GetAsset ¶
func (m *GetTokenBalance) GetAsset() string
func (*GetTokenBalance) ProtoMessage ¶
func (*GetTokenBalance) ProtoMessage()
func (*GetTokenBalance) Reset ¶
func (m *GetTokenBalance) Reset()
func (*GetTokenBalance) String ¶
func (m *GetTokenBalance) String() string
func (*GetTokenBalance) XXX_DiscardUnknown ¶
func (m *GetTokenBalance) XXX_DiscardUnknown()
func (*GetTokenBalance) XXX_Marshal ¶
func (m *GetTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenBalance) XXX_Merge ¶
func (m *GetTokenBalance) XXX_Merge(src proto.Message)
func (*GetTokenBalance) XXX_Size ¶
func (m *GetTokenBalance) XXX_Size() int
func (*GetTokenBalance) XXX_Unmarshal ¶
func (m *GetTokenBalance) XXX_Unmarshal(b []byte) error
type KeyForSystemConfig ¶
type KeyForSystemConfig struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyForSystemConfig) Descriptor ¶
func (*KeyForSystemConfig) Descriptor() ([]byte, []int)
func (*KeyForSystemConfig) GetKey ¶
func (m *KeyForSystemConfig) GetKey() string
func (*KeyForSystemConfig) ProtoMessage ¶
func (*KeyForSystemConfig) ProtoMessage()
func (*KeyForSystemConfig) Reset ¶
func (m *KeyForSystemConfig) Reset()
func (*KeyForSystemConfig) String ¶
func (m *KeyForSystemConfig) String() string
func (*KeyForSystemConfig) XXX_DiscardUnknown ¶
func (m *KeyForSystemConfig) XXX_DiscardUnknown()
func (*KeyForSystemConfig) XXX_Marshal ¶
func (m *KeyForSystemConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyForSystemConfig) XXX_Merge ¶
func (m *KeyForSystemConfig) XXX_Merge(src proto.Message)
func (*KeyForSystemConfig) XXX_Size ¶
func (m *KeyForSystemConfig) XXX_Size() int
func (*KeyForSystemConfig) XXX_Unmarshal ¶
func (m *KeyForSystemConfig) XXX_Unmarshal(b []byte) error
type OutChainCall ¶
type OutChainCall struct { OutChainName string `protobuf:"bytes,1,opt,name=OutChainName,proto3" json:"OutChainName,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Params []byte `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` Collection string `protobuf:"bytes,4,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OutChainCall) Descriptor ¶
func (*OutChainCall) Descriptor() ([]byte, []int)
func (*OutChainCall) GetCollection ¶
func (m *OutChainCall) GetCollection() string
func (*OutChainCall) GetMethod ¶
func (m *OutChainCall) GetMethod() string
func (*OutChainCall) GetOutChainName ¶
func (m *OutChainCall) GetOutChainName() string
func (*OutChainCall) GetParams ¶
func (m *OutChainCall) GetParams() []byte
func (*OutChainCall) ProtoMessage ¶
func (*OutChainCall) ProtoMessage()
func (*OutChainCall) Reset ¶
func (m *OutChainCall) Reset()
func (*OutChainCall) String ¶
func (m *OutChainCall) String() string
func (*OutChainCall) XXX_DiscardUnknown ¶
func (m *OutChainCall) XXX_DiscardUnknown()
func (*OutChainCall) XXX_Marshal ¶
func (m *OutChainCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OutChainCall) XXX_Merge ¶
func (m *OutChainCall) XXX_Merge(src proto.Message)
func (*OutChainCall) XXX_Size ¶
func (m *OutChainCall) XXX_Size() int
func (*OutChainCall) XXX_Unmarshal ¶
func (m *OutChainCall) XXX_Unmarshal(b []byte) error
type PayOutToken ¶
type PayOutToken struct { Asset []byte `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Locktime uint32 `protobuf:"varint,3,opt,name=locktime,proto3" json:"locktime,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayOutToken) Descriptor ¶
func (*PayOutToken) Descriptor() ([]byte, []int)
func (*PayOutToken) GetAddress ¶
func (m *PayOutToken) GetAddress() string
func (*PayOutToken) GetAmount ¶
func (m *PayOutToken) GetAmount() uint64
func (*PayOutToken) GetAsset ¶
func (m *PayOutToken) GetAsset() []byte
func (*PayOutToken) GetLocktime ¶
func (m *PayOutToken) GetLocktime() uint32
func (*PayOutToken) ProtoMessage ¶
func (*PayOutToken) ProtoMessage()
func (*PayOutToken) Reset ¶
func (m *PayOutToken) Reset()
func (*PayOutToken) String ¶
func (m *PayOutToken) String() string
func (*PayOutToken) XXX_DiscardUnknown ¶
func (m *PayOutToken) XXX_DiscardUnknown()
func (*PayOutToken) XXX_Marshal ¶
func (m *PayOutToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayOutToken) XXX_Merge ¶
func (m *PayOutToken) XXX_Merge(src proto.Message)
func (*PayOutToken) XXX_Size ¶
func (m *PayOutToken) XXX_Size() int
func (*PayOutToken) XXX_Unmarshal ¶
func (m *PayOutToken) XXX_Unmarshal(b []byte) error
type Proposal ¶
type Proposal struct { // The header of the proposal. It is the bytes of the Header Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The payload of the proposal as defined by the type in the proposal // header. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // Optional extensions to the proposal. Its content depends on the Header's // type field. For the type CHAINCODE, it might be the bytes of a // ChaincodeAction message. Extension []byte `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Proposal is sent to an endorser for endorsement. The proposal contains:
- A header which should be unmarshaled to a Header message. Note that Header is both the header of a Proposal and of a Transaction, in that i) both headers should be unmarshaled to this message; and ii) it is used to compute cryptographic hashes and signatures. The header has fields common to all proposals/transactions. In addition it has a type field for additional customization. An example of this is the ChaincodeHeaderExtension message used to extend the Header for type CHAINCODE.
- A payload whose type depends on the header's type field.
- An extension whose type depends on the header's type field.
Let us see an example. For type CHAINCODE (see the Header message), we have the following:
- The header is a Header message whose extensions field is a ChaincodeHeaderExtension message.
- The payload is a ChaincodeProposalPayload message.
- The extension is a ChaincodeAction that might be used to ask the endorsers to endorse a specific ChaincodeAction, thus emulating the submitting peer model.
func (*Proposal) Descriptor ¶
func (*Proposal) GetExtension ¶
func (*Proposal) GetPayload ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) XXX_DiscardUnknown ¶
func (m *Proposal) XXX_DiscardUnknown()
func (*Proposal) XXX_Marshal ¶
func (*Proposal) XXX_Unmarshal ¶
type ProposalResponse ¶
type ProposalResponse struct { // Version indicates message protocol version Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Timestamp is the time that the message // was created as defined by the sender Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A response message indicating whether the // endorsement of the action was successful Response *Response `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` // The payload of response. It is the bytes of ProposalResponsePayload Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // The endorsement of the proposal, basically // the endorser's signature over the payload Endorsement *Endorsement `protobuf:"bytes,6,opt,name=endorsement,proto3" json:"endorsement,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A ProposalResponse is returned from an endorser to the proposal submitter. The idea is that this message contains the endorser's response to the request of a client to perform an action over a chaincode (or more generically on the ledger); the response might be success/error (conveyed in the Response field) together with a description of the action and a signature over it by that endorser. If a sufficient number of distinct endorsers agree on the same action and produce signature to that effect, a transaction can be generated and sent for ordering.
func (*ProposalResponse) Descriptor ¶
func (*ProposalResponse) Descriptor() ([]byte, []int)
func (*ProposalResponse) GetEndorsement ¶
func (m *ProposalResponse) GetEndorsement() *Endorsement
func (*ProposalResponse) GetPayload ¶
func (m *ProposalResponse) GetPayload() []byte
func (*ProposalResponse) GetResponse ¶
func (m *ProposalResponse) GetResponse() *Response
func (*ProposalResponse) GetTimestamp ¶
func (m *ProposalResponse) GetTimestamp() *timestamp.Timestamp
func (*ProposalResponse) GetVersion ¶
func (m *ProposalResponse) GetVersion() int32
func (*ProposalResponse) ProtoMessage ¶
func (*ProposalResponse) ProtoMessage()
func (*ProposalResponse) Reset ¶
func (m *ProposalResponse) Reset()
func (*ProposalResponse) String ¶
func (m *ProposalResponse) String() string
func (*ProposalResponse) XXX_DiscardUnknown ¶
func (m *ProposalResponse) XXX_DiscardUnknown()
func (*ProposalResponse) XXX_Marshal ¶
func (m *ProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalResponse) XXX_Merge ¶
func (m *ProposalResponse) XXX_Merge(src proto.Message)
func (*ProposalResponse) XXX_Size ¶
func (m *ProposalResponse) XXX_Size() int
func (*ProposalResponse) XXX_Unmarshal ¶
func (m *ProposalResponse) XXX_Unmarshal(b []byte) error
type ProposalResponsePayload ¶
type ProposalResponsePayload struct { // Hash of the proposal that triggered this response. The hash is used to // link a response with its proposal, both for bookeeping purposes on an // asynchronous system and for security reasons (accountability, // non-repudiation). The hash usually covers the entire Proposal message // (byte-by-byte). However this implies that the hash can only be verified // if the entire proposal message is available when ProposalResponsePayload is // included in a transaction or stored in the ledger. For confidentiality // reasons, with chaincodes it might be undesirable to store the proposal // payload in the ledger. If the type is CHAINCODE, this is handled by // separating the proposal's header and // the payload: the header is always hashed in its entirety whereas the // payload can either be hashed fully, or only its hash may be hashed, or // nothing from the payload can be hashed. The PayloadVisibility field in the // Header's extension controls to which extent the proposal payload is // "visible" in the sense that was just explained. ProposalHash []byte `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"` // Extension should be unmarshaled to a type-specific message. The type of // the extension in any proposal response depends on the type of the proposal // that the client selected when the proposal was initially sent out. In // particular, this information is stored in the type field of a Header. For // chaincode, it's a ChaincodeAction message Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ProposalResponsePayload is the payload of a proposal response. This message is the "bridge" between the client's request and the endorser's action in response to that request. Concretely, for chaincodes, it contains a hashed representation of the proposal (proposalHash) and a representation of the chaincode state changes and events inside the extension field.
func (*ProposalResponsePayload) Descriptor ¶
func (*ProposalResponsePayload) Descriptor() ([]byte, []int)
func (*ProposalResponsePayload) GetExtension ¶
func (m *ProposalResponsePayload) GetExtension() []byte
func (*ProposalResponsePayload) GetProposalHash ¶
func (m *ProposalResponsePayload) GetProposalHash() []byte
func (*ProposalResponsePayload) ProtoMessage ¶
func (*ProposalResponsePayload) ProtoMessage()
func (*ProposalResponsePayload) Reset ¶
func (m *ProposalResponsePayload) Reset()
func (*ProposalResponsePayload) StaticallyOpaqueFieldProto ¶
func (ppr *ProposalResponsePayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*ProposalResponsePayload) StaticallyOpaqueFields ¶
func (ppr *ProposalResponsePayload) StaticallyOpaqueFields() []string
func (*ProposalResponsePayload) String ¶
func (m *ProposalResponsePayload) String() string
func (*ProposalResponsePayload) XXX_DiscardUnknown ¶
func (m *ProposalResponsePayload) XXX_DiscardUnknown()
func (*ProposalResponsePayload) XXX_Marshal ¶
func (m *ProposalResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalResponsePayload) XXX_Merge ¶
func (m *ProposalResponsePayload) XXX_Merge(src proto.Message)
func (*ProposalResponsePayload) XXX_Size ¶
func (m *ProposalResponsePayload) XXX_Size() int
func (*ProposalResponsePayload) XXX_Unmarshal ¶
func (m *ProposalResponsePayload) XXX_Unmarshal(b []byte) error
type PutState ¶
type PutState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` ContractId []byte `protobuf:"bytes,4,opt,name=contractId,proto3" json:"contractId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutState) Descriptor ¶
func (*PutState) GetCollection ¶
func (*PutState) GetContractId ¶
func (*PutState) ProtoMessage ¶
func (*PutState) ProtoMessage()
func (*PutState) XXX_DiscardUnknown ¶
func (m *PutState) XXX_DiscardUnknown()
func (*PutState) XXX_Marshal ¶
func (*PutState) XXX_Unmarshal ¶
type QueryResponse ¶
type QueryResponse struct { Results []*QueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) GetHasMore ¶
func (m *QueryResponse) GetHasMore() bool
func (*QueryResponse) GetId ¶
func (m *QueryResponse) GetId() string
func (*QueryResponse) GetResults ¶
func (m *QueryResponse) GetResults() []*QueryResultBytes
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
func (*QueryResponse) XXX_DiscardUnknown ¶
func (m *QueryResponse) XXX_DiscardUnknown()
func (*QueryResponse) XXX_Marshal ¶
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponse) XXX_Merge ¶
func (m *QueryResponse) XXX_Merge(src proto.Message)
func (*QueryResponse) XXX_Size ¶
func (m *QueryResponse) XXX_Size() int
func (*QueryResponse) XXX_Unmarshal ¶
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
type QueryResultBytes ¶
type QueryResultBytes struct { ResultBytes []byte `protobuf:"bytes,1,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryResultBytes) Descriptor ¶
func (*QueryResultBytes) Descriptor() ([]byte, []int)
func (*QueryResultBytes) GetResultBytes ¶
func (m *QueryResultBytes) GetResultBytes() []byte
func (*QueryResultBytes) ProtoMessage ¶
func (*QueryResultBytes) ProtoMessage()
func (*QueryResultBytes) Reset ¶
func (m *QueryResultBytes) Reset()
func (*QueryResultBytes) String ¶
func (m *QueryResultBytes) String() string
func (*QueryResultBytes) XXX_DiscardUnknown ¶
func (m *QueryResultBytes) XXX_DiscardUnknown()
func (*QueryResultBytes) XXX_Marshal ¶
func (m *QueryResultBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResultBytes) XXX_Merge ¶
func (m *QueryResultBytes) XXX_Merge(src proto.Message)
func (*QueryResultBytes) XXX_Size ¶
func (m *QueryResultBytes) XXX_Size() int
func (*QueryResultBytes) XXX_Unmarshal ¶
func (m *QueryResultBytes) XXX_Unmarshal(b []byte) error
type QueryStateClose ¶
type QueryStateClose struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryStateClose) Descriptor ¶
func (*QueryStateClose) Descriptor() ([]byte, []int)
func (*QueryStateClose) GetId ¶
func (m *QueryStateClose) GetId() string
func (*QueryStateClose) ProtoMessage ¶
func (*QueryStateClose) ProtoMessage()
func (*QueryStateClose) Reset ¶
func (m *QueryStateClose) Reset()
func (*QueryStateClose) String ¶
func (m *QueryStateClose) String() string
func (*QueryStateClose) XXX_DiscardUnknown ¶
func (m *QueryStateClose) XXX_DiscardUnknown()
func (*QueryStateClose) XXX_Marshal ¶
func (m *QueryStateClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStateClose) XXX_Merge ¶
func (m *QueryStateClose) XXX_Merge(src proto.Message)
func (*QueryStateClose) XXX_Size ¶
func (m *QueryStateClose) XXX_Size() int
func (*QueryStateClose) XXX_Unmarshal ¶
func (m *QueryStateClose) XXX_Unmarshal(b []byte) error
type QueryStateNext ¶
type QueryStateNext struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryStateNext) Descriptor ¶
func (*QueryStateNext) Descriptor() ([]byte, []int)
func (*QueryStateNext) GetId ¶
func (m *QueryStateNext) GetId() string
func (*QueryStateNext) ProtoMessage ¶
func (*QueryStateNext) ProtoMessage()
func (*QueryStateNext) Reset ¶
func (m *QueryStateNext) Reset()
func (*QueryStateNext) String ¶
func (m *QueryStateNext) String() string
func (*QueryStateNext) XXX_DiscardUnknown ¶
func (m *QueryStateNext) XXX_DiscardUnknown()
func (*QueryStateNext) XXX_Marshal ¶
func (m *QueryStateNext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStateNext) XXX_Merge ¶
func (m *QueryStateNext) XXX_Merge(src proto.Message)
func (*QueryStateNext) XXX_Size ¶
func (m *QueryStateNext) XXX_Size() int
func (*QueryStateNext) XXX_Unmarshal ¶
func (m *QueryStateNext) XXX_Unmarshal(b []byte) error
type RecvJury ¶
type RecvJury struct { MsgType uint32 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` ConsultContent []byte `protobuf:"bytes,2,opt,name=consultContent,proto3" json:"consultContent,omitempty"` Timeout uint32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` Collection string `protobuf:"bytes,4,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecvJury) Descriptor ¶
func (*RecvJury) GetCollection ¶
func (*RecvJury) GetConsultContent ¶
func (*RecvJury) GetMsgType ¶
func (*RecvJury) GetTimeout ¶
func (*RecvJury) ProtoMessage ¶
func (*RecvJury) ProtoMessage()
func (*RecvJury) XXX_DiscardUnknown ¶
func (m *RecvJury) XXX_DiscardUnknown()
func (*RecvJury) XXX_Marshal ¶
func (*RecvJury) XXX_Unmarshal ¶
type Response ¶
type Response struct { // A status code that should follow the HTTP status codes. Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // A message associated with the response code. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A payload that can be used to include metadata with this response. Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A response with a representation similar to an HTTP response that can be used within another message.
func (*Response) Descriptor ¶
func (*Response) GetMessage ¶
func (*Response) GetPayload ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type SendJury ¶
type SendJury struct { MsgType uint32 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` ConsultContent []byte `protobuf:"bytes,2,opt,name=consultContent,proto3" json:"consultContent,omitempty"` MyAnswer []byte `protobuf:"bytes,3,opt,name=myAnswer,proto3" json:"myAnswer,omitempty"` Collection string `protobuf:"bytes,4,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendJury) Descriptor ¶
func (*SendJury) GetCollection ¶
func (*SendJury) GetConsultContent ¶
func (*SendJury) GetMsgType ¶
func (*SendJury) GetMyAnswer ¶
func (*SendJury) ProtoMessage ¶
func (*SendJury) ProtoMessage()
func (*SendJury) XXX_DiscardUnknown ¶
func (m *SendJury) XXX_DiscardUnknown()
func (*SendJury) XXX_Marshal ¶
func (*SendJury) XXX_Unmarshal ¶
type SignedProposal ¶
type SignedProposal struct { // The bytes of Proposal ProposalBytes []byte `protobuf:"bytes,1,opt,name=proposal_bytes,json=proposalBytes,proto3" json:"proposal_bytes,omitempty"` // Signaure over proposalBytes; this signature is to be verified against // the creator identity contained in the header of the Proposal message // marshaled as proposalBytes Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This structure is necessary to sign the proposal which contains the header and the payload. Without this structure, we would have to concatenate the header and the payload to verify the signature, which could be expensive with large payload
When an endorser receives a SignedProposal message, it should verify the signature over the proposal bytes. This verification requires the following steps:
- Verification of the validity of the certificate that was used to produce the signature. The certificate will be available once proposalBytes has been unmarshalled to a Proposal message, and Proposal.header has been unmarshalled to a Header message. While this unmarshalling-before-verifying might not be ideal, it is unavoidable because i) the signature needs to also protect the signing certificate; ii) it is desirable that Header is created once by the client and never changed (for the sake of accountability and non-repudiation). Note also that it is actually impossible to conclusively verify the validity of the certificate included in a Proposal, because the proposal needs to first be endorsed and ordered with respect to certificate expiration transactions. Still, it is useful to pre-filter expired certificates at this stage.
- Verification that the certificate is trusted (signed by a trusted CA) and that it is allowed to transact with us (with respect to some ACLs);
- Verification that the signature on proposalBytes is valid;
- Detect replay attacks;
func (*SignedProposal) Descriptor ¶
func (*SignedProposal) Descriptor() ([]byte, []int)
func (*SignedProposal) GetProposalBytes ¶
func (m *SignedProposal) GetProposalBytes() []byte
func (*SignedProposal) GetSignature ¶
func (m *SignedProposal) GetSignature() []byte
func (*SignedProposal) ProtoMessage ¶
func (*SignedProposal) ProtoMessage()
func (*SignedProposal) Reset ¶
func (m *SignedProposal) Reset()
func (*SignedProposal) String ¶
func (m *SignedProposal) String() string
func (*SignedProposal) XXX_DiscardUnknown ¶
func (m *SignedProposal) XXX_DiscardUnknown()
func (*SignedProposal) XXX_Marshal ¶
func (m *SignedProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedProposal) XXX_Merge ¶
func (m *SignedProposal) XXX_Merge(src proto.Message)
func (*SignedProposal) XXX_Size ¶
func (m *SignedProposal) XXX_Size() int
func (*SignedProposal) XXX_Unmarshal ¶
func (m *SignedProposal) XXX_Unmarshal(b []byte) error
type SupplyToken ¶
type SupplyToken struct { AssetId []byte `protobuf:"bytes,1,opt,name=assetId,proto3" json:"assetId,omitempty"` UniqueId []byte `protobuf:"bytes,2,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SupplyToken) Descriptor ¶
func (*SupplyToken) Descriptor() ([]byte, []int)
func (*SupplyToken) GetAmount ¶
func (m *SupplyToken) GetAmount() uint64
func (*SupplyToken) GetAssetId ¶
func (m *SupplyToken) GetAssetId() []byte
func (*SupplyToken) GetCreator ¶
func (m *SupplyToken) GetCreator() string
func (*SupplyToken) GetUniqueId ¶
func (m *SupplyToken) GetUniqueId() []byte
func (*SupplyToken) ProtoMessage ¶
func (*SupplyToken) ProtoMessage()
func (*SupplyToken) Reset ¶
func (m *SupplyToken) Reset()
func (*SupplyToken) String ¶
func (m *SupplyToken) String() string
func (*SupplyToken) XXX_DiscardUnknown ¶
func (m *SupplyToken) XXX_DiscardUnknown()
func (*SupplyToken) XXX_Marshal ¶
func (m *SupplyToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SupplyToken) XXX_Merge ¶
func (m *SupplyToken) XXX_Merge(src proto.Message)
func (*SupplyToken) XXX_Size ¶
func (m *SupplyToken) XXX_Size() int
func (*SupplyToken) XXX_Unmarshal ¶
func (m *SupplyToken) XXX_Unmarshal(b []byte) error