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_RANGE", 15: "GET_QUERY_RESULT", 16: "QUERY_STATE_NEXT", 17: "QUERY_STATE_CLOSE", 18: "KEEPALIVE", 19: "GET_HISTORY_FOR_KEY", 20: "GET_STATE_METADATA", 21: "PUT_STATE_METADATA", 22: "GET_PRIVATE_DATA_HASH", }
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_RANGE": 14, "GET_QUERY_RESULT": 15, "QUERY_STATE_NEXT": 16, "QUERY_STATE_CLOSE": 17, "KEEPALIVE": 18, "GET_HISTORY_FOR_KEY": 19, "GET_STATE_METADATA": 20, "PUT_STATE_METADATA": 21, "GET_PRIVATE_DATA_HASH": 22, }
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, }
var MetaDataKeys_name = map[int32]string{ 0: "VALIDATION_PARAMETER", }
var MetaDataKeys_value = map[string]int32{ "VALIDATION_PARAMETER": 0, }
var ServerStatus_StatusCode_name = map[int32]string{ 0: "UNDEFINED", 1: "STARTED", 2: "STOPPED", 3: "PAUSED", 4: "ERROR", 5: "UNKNOWN", }
var ServerStatus_StatusCode_value = map[string]int32{ "UNDEFINED": 0, "STARTED": 1, "STOPPED": 2, "PAUSED": 3, "ERROR": 4, "UNKNOWN": 5, }
var TxValidationCode_name = map[int32]string{ 0: "VALID", 1: "NIL_ENVELOPE", 2: "BAD_PAYLOAD", 3: "BAD_COMMON_HEADER", 4: "BAD_CREATOR_SIGNATURE", 5: "INVALID_ENDORSER_TRANSACTION", 6: "INVALID_CONFIG_TRANSACTION", 7: "UNSUPPORTED_TX_PAYLOAD", 8: "BAD_PROPOSAL_TXID", 9: "DUPLICATE_TXID", 10: "ENDORSEMENT_POLICY_FAILURE", 11: "MVCC_READ_CONFLICT", 12: "PHANTOM_READ_CONFLICT", 13: "UNKNOWN_TX_TYPE", 14: "TARGET_CHAIN_NOT_FOUND", 15: "MARSHAL_TX_ERROR", 16: "NIL_TXACTION", 17: "EXPIRED_CHAINCODE", 18: "CHAINCODE_VERSION_CONFLICT", 19: "BAD_HEADER_EXTENSION", 20: "BAD_CHANNEL_HEADER", 21: "BAD_RESPONSE_PAYLOAD", 22: "BAD_RWSET", 23: "ILLEGAL_WRITESET", 24: "INVALID_WRITESET", 254: "NOT_VALIDATED", 255: "INVALID_OTHER_REASON", }
var TxValidationCode_value = map[string]int32{ "VALID": 0, "NIL_ENVELOPE": 1, "BAD_PAYLOAD": 2, "BAD_COMMON_HEADER": 3, "BAD_CREATOR_SIGNATURE": 4, "INVALID_ENDORSER_TRANSACTION": 5, "INVALID_CONFIG_TRANSACTION": 6, "UNSUPPORTED_TX_PAYLOAD": 7, "BAD_PROPOSAL_TXID": 8, "DUPLICATE_TXID": 9, "ENDORSEMENT_POLICY_FAILURE": 10, "MVCC_READ_CONFLICT": 11, "PHANTOM_READ_CONFLICT": 12, "UNKNOWN_TX_TYPE": 13, "TARGET_CHAIN_NOT_FOUND": 14, "MARSHAL_TX_ERROR": 15, "NIL_TXACTION": 16, "EXPIRED_CHAINCODE": 17, "CHAINCODE_VERSION_CONFLICT": 18, "BAD_HEADER_EXTENSION": 19, "BAD_CHANNEL_HEADER": 20, "BAD_RESPONSE_PAYLOAD": 21, "BAD_RWSET": 22, "ILLEGAL_WRITESET": 23, "INVALID_WRITESET": 24, "NOT_VALIDATED": 254, "INVALID_OTHER_REASON": 255, }
func RegisterAdminServer(s *grpc.Server, srv AdminServer)
func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)
func RegisterDeliverServer(s *grpc.Server, srv DeliverServer)
func RegisterEndorserServer(s *grpc.Server, srv EndorserServer)
ACLs provides mappings for resources in a channel. APIResource encapsulates reference to a policy used to determine ACL for the resource
type ACLs struct { Acls map[string]*APIResource `protobuf:"bytes,1,rep,name=acls,proto3" json:"acls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ACLs) Descriptor() ([]byte, []int)
func (m *ACLs) GetAcls() map[string]*APIResource
func (*ACLs) ProtoMessage()
func (m *ACLs) Reset()
func (m *ACLs) String() string
func (m *ACLs) XXX_DiscardUnknown()
func (m *ACLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ACLs) XXX_Merge(src proto.Message)
func (m *ACLs) XXX_Size() int
func (m *ACLs) XXX_Unmarshal(b []byte) error
APIResource represents an API resource in the peer whose ACL is determined by the policy_ref field
type APIResource struct { PolicyRef string `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*APIResource) Descriptor() ([]byte, []int)
func (m *APIResource) GetPolicyRef() string
func (*APIResource) ProtoMessage()
func (m *APIResource) Reset()
func (m *APIResource) String() string
func (m *APIResource) XXX_DiscardUnknown()
func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *APIResource) XXX_Merge(src proto.Message)
func (m *APIResource) XXX_Size() int
func (m *APIResource) XXX_Unmarshal(b []byte) error
AdminClient is the client API for Admin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AdminClient interface { GetStatus(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error) StartServer(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error) GetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error) SetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error) RevertLogLevels(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*empty.Empty, error) GetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error) SetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error) }
func NewAdminClient(cc *grpc.ClientConn) AdminClient
type AdminOperation struct { // Types that are valid to be assigned to Content: // *AdminOperation_LogReq // *AdminOperation_LogSpecReq Content isAdminOperation_Content `protobuf_oneof:"content"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AdminOperation) Descriptor() ([]byte, []int)
func (m *AdminOperation) GetContent() isAdminOperation_Content
func (m *AdminOperation) GetLogReq() *LogLevelRequest
func (m *AdminOperation) GetLogSpecReq() *LogSpecRequest
func (*AdminOperation) ProtoMessage()
func (m *AdminOperation) Reset()
func (m *AdminOperation) String() string
func (m *AdminOperation) XXX_DiscardUnknown()
func (m *AdminOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *AdminOperation) XXX_Merge(src proto.Message)
func (*AdminOperation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *AdminOperation) XXX_Size() int
func (m *AdminOperation) XXX_Unmarshal(b []byte) error
type AdminOperation_LogReq struct { LogReq *LogLevelRequest `protobuf:"bytes,1,opt,name=logReq,proto3,oneof"` }
type AdminOperation_LogSpecReq struct { LogSpecReq *LogSpecRequest `protobuf:"bytes,2,opt,name=logSpecReq,proto3,oneof"` }
AdminServer is the server API for Admin service.
type AdminServer interface { GetStatus(context.Context, *common.Envelope) (*ServerStatus, error) StartServer(context.Context, *common.Envelope) (*ServerStatus, error) GetModuleLogLevel(context.Context, *common.Envelope) (*LogLevelResponse, error) SetModuleLogLevel(context.Context, *common.Envelope) (*LogLevelResponse, error) RevertLogLevels(context.Context, *common.Envelope) (*empty.Empty, error) GetLogSpec(context.Context, *common.Envelope) (*LogSpecResponse, error) SetLogSpec(context.Context, *common.Envelope) (*LogSpecResponse, error) }
AnchorPeer message structure which provides information about anchor peer, it includes host name, port number and peer certificate.
type AnchorPeer struct { // DNS host name of the anchor peer Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // The port number Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AnchorPeer) Descriptor() ([]byte, []int)
func (m *AnchorPeer) GetHost() string
func (m *AnchorPeer) GetPort() int32
func (*AnchorPeer) ProtoMessage()
func (m *AnchorPeer) Reset()
func (m *AnchorPeer) String() string
func (m *AnchorPeer) XXX_DiscardUnknown()
func (m *AnchorPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *AnchorPeer) XXX_Merge(src proto.Message)
func (m *AnchorPeer) XXX_Size() int
func (m *AnchorPeer) XXX_Unmarshal(b []byte) error
AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
type AnchorPeers struct { AnchorPeers []*AnchorPeer `protobuf:"bytes,1,rep,name=anchor_peers,json=anchorPeers,proto3" json:"anchor_peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AnchorPeers) Descriptor() ([]byte, []int)
func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer
func (*AnchorPeers) ProtoMessage()
func (m *AnchorPeers) Reset()
func (m *AnchorPeers) String() string
func (m *AnchorPeers) XXX_DiscardUnknown()
func (m *AnchorPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *AnchorPeers) XXX_Merge(src proto.Message)
func (m *AnchorPeers) XXX_Size() int
func (m *AnchorPeers) XXX_Unmarshal(b []byte) error
ChaincodeAction contains the actions the events generated by the execution of the chaincode.
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"` // This field contains the token expectation generated by the chaincode // executing this invocation TokenExpectation *token.TokenExpectation `protobuf:"bytes,5,opt,name=token_expectation,json=tokenExpectation,proto3" json:"token_expectation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 (m *ChaincodeAction) GetTokenExpectation() *token.TokenExpectation
func (*ChaincodeAction) ProtoMessage()
func (m *ChaincodeAction) Reset()
func (ca *ChaincodeAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (ca *ChaincodeAction) StaticallyOpaqueFields() []string
func (m *ChaincodeAction) String() string
func (m *ChaincodeAction) XXX_DiscardUnknown()
func (m *ChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeAction) XXX_Merge(src proto.Message)
func (m *ChaincodeAction) XXX_Size() int
func (m *ChaincodeAction) XXX_Unmarshal(b []byte) error
ChaincodeActionPayload is the message to be used for the TransactionAction's payload when the Header's type is set to CHAINCODE. It carries the chaincodeProposalPayload and an endorsed action to apply to the ledger.
type ChaincodeActionPayload struct { // This field contains the bytes of the ChaincodeProposalPayload message from // the original invocation (essentially the arguments) after the application // of the visibility function. The main visibility modes are "full" (the // entire ChaincodeProposalPayload message is included here), "hash" (only // the hash of the ChaincodeProposalPayload message is included) or // "nothing". This field will be used to check the consistency of // ProposalResponsePayload.proposalHash. For the CHAINCODE type, // ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || // f(ChaincodeProposalPayload)) where f is the visibility function. ChaincodeProposalPayload []byte `protobuf:"bytes,1,opt,name=chaincode_proposal_payload,json=chaincodeProposalPayload,proto3" json:"chaincode_proposal_payload,omitempty"` // The list of actions to apply to the ledger Action *ChaincodeEndorsedAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeActionPayload) Descriptor() ([]byte, []int)
func (m *ChaincodeActionPayload) GetAction() *ChaincodeEndorsedAction
func (m *ChaincodeActionPayload) GetChaincodeProposalPayload() []byte
func (*ChaincodeActionPayload) ProtoMessage()
func (m *ChaincodeActionPayload) Reset()
func (cap *ChaincodeActionPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (cap *ChaincodeActionPayload) StaticallyOpaqueFields() []string
func (m *ChaincodeActionPayload) String() string
func (m *ChaincodeActionPayload) XXX_DiscardUnknown()
func (m *ChaincodeActionPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeActionPayload) XXX_Merge(src proto.Message)
func (m *ChaincodeActionPayload) XXX_Size() int
func (m *ChaincodeActionPayload) XXX_Unmarshal(b []byte) error
Specify the deployment of a chaincode. TODO: Define `codePackage`.
type ChaincodeDeploymentSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` CodePackage []byte `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"` ExecEnv ChaincodeDeploymentSpec_ExecutionEnvironment `protobuf:"varint,4,opt,name=exec_env,json=execEnv,proto3,enum=protos.ChaincodeDeploymentSpec_ExecutionEnvironment" json:"exec_env,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (cds *ChaincodeDeploymentSpec) Bytes() []byte
Bytes implements the platforms.CodePackage interface
func (cds *ChaincodeDeploymentSpec) CCType() string
func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec
func (m *ChaincodeDeploymentSpec) GetCodePackage() []byte
func (m *ChaincodeDeploymentSpec) GetExecEnv() ChaincodeDeploymentSpec_ExecutionEnvironment
func (cds *ChaincodeDeploymentSpec) Name() string
func (cds *ChaincodeDeploymentSpec) Path() string
Path implements the platforms.PathDescriber interface
func (*ChaincodeDeploymentSpec) ProtoMessage()
func (m *ChaincodeDeploymentSpec) Reset()
func (m *ChaincodeDeploymentSpec) String() string
func (cds *ChaincodeDeploymentSpec) Version() string
func (m *ChaincodeDeploymentSpec) XXX_DiscardUnknown()
func (m *ChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
func (m *ChaincodeDeploymentSpec) XXX_Size() int
func (m *ChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
type ChaincodeDeploymentSpec_ExecutionEnvironment int32
const ( ChaincodeDeploymentSpec_DOCKER ChaincodeDeploymentSpec_ExecutionEnvironment = 0 ChaincodeDeploymentSpec_SYSTEM ChaincodeDeploymentSpec_ExecutionEnvironment = 1 )
func (ChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor() ([]byte, []int)
func (x ChaincodeDeploymentSpec_ExecutionEnvironment) String() string
ChaincodeEndorsedAction carries information about the endorsement of a specific proposal
type ChaincodeEndorsedAction struct { // This is the bytes of the ProposalResponsePayload message signed by the // endorsers. Recall that for the CHAINCODE type, the // ProposalResponsePayload's extenstion field carries a ChaincodeAction ProposalResponsePayload []byte `protobuf:"bytes,1,opt,name=proposal_response_payload,json=proposalResponsePayload,proto3" json:"proposal_response_payload,omitempty"` // The endorsement of the proposal, basically the endorser's signature over // proposalResponsePayload Endorsements []*Endorsement `protobuf:"bytes,2,rep,name=endorsements,proto3" json:"endorsements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeEndorsedAction) Descriptor() ([]byte, []int)
func (m *ChaincodeEndorsedAction) GetEndorsements() []*Endorsement
func (m *ChaincodeEndorsedAction) GetProposalResponsePayload() []byte
func (*ChaincodeEndorsedAction) ProtoMessage()
func (m *ChaincodeEndorsedAction) Reset()
func (cae *ChaincodeEndorsedAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (cae *ChaincodeEndorsedAction) StaticallyOpaqueFields() []string
func (m *ChaincodeEndorsedAction) String() string
func (m *ChaincodeEndorsedAction) XXX_DiscardUnknown()
func (m *ChaincodeEndorsedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeEndorsedAction) XXX_Merge(src proto.Message)
func (m *ChaincodeEndorsedAction) XXX_Size() int
func (m *ChaincodeEndorsedAction) XXX_Unmarshal(b []byte) error
ChaincodeEndorsement instructs the peer how transactions should be endorsed. The only endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism. This code simply simulates the proposal to generate a RW set, then signs the result using the peer's local signing identity.
type ChaincodeEndorsement struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeEndorsement) Descriptor() ([]byte, []int)
func (m *ChaincodeEndorsement) GetName() string
func (*ChaincodeEndorsement) ProtoMessage()
func (m *ChaincodeEndorsement) Reset()
func (m *ChaincodeEndorsement) String() string
func (m *ChaincodeEndorsement) XXX_DiscardUnknown()
func (m *ChaincodeEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeEndorsement) XXX_Merge(src proto.Message)
func (m *ChaincodeEndorsement) XXX_Size() int
func (m *ChaincodeEndorsement) XXX_Unmarshal(b []byte) error
ChaincodeEvent is used for events and registrations that are specific to chaincode string type - "chaincode"
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:"-"` }
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 (dst *ChaincodeEvent) XXX_Merge(src proto.Message)
func (m *ChaincodeEvent) XXX_Size() int
func (m *ChaincodeEvent) XXX_Unmarshal(b []byte) error
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.
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:"-"` }
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 (dst *ChaincodeHeaderExtension) XXX_Merge(src proto.Message)
func (m *ChaincodeHeaderExtension) XXX_Size() int
func (m *ChaincodeHeaderExtension) XXX_Unmarshal(b []byte) error
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
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:"-"` }
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 (dst *ChaincodeID) XXX_Merge(src proto.Message)
func (m *ChaincodeID) XXX_Size() int
func (m *ChaincodeID) XXX_Unmarshal(b []byte) error
ChaincodeIdentifier identifies a piece of chaincode. For a peer to accept invocations of this chaincode, the hash of the installed code must match, as must the version string included with the install command.
type ChaincodeIdentifier struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeIdentifier) Descriptor() ([]byte, []int)
func (m *ChaincodeIdentifier) GetHash() []byte
func (m *ChaincodeIdentifier) GetVersion() string
func (*ChaincodeIdentifier) ProtoMessage()
func (m *ChaincodeIdentifier) Reset()
func (m *ChaincodeIdentifier) String() string
func (m *ChaincodeIdentifier) XXX_DiscardUnknown()
func (m *ChaincodeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeIdentifier) XXX_Merge(src proto.Message)
func (m *ChaincodeIdentifier) XXX_Size() int
func (m *ChaincodeIdentifier) XXX_Unmarshal(b []byte) error
ChaincodeInfo contains general information about an installed/instantiated chaincode
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:"-"` }
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 (dst *ChaincodeInfo) XXX_Merge(src proto.Message)
func (m *ChaincodeInfo) XXX_Size() int
func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error
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.
type ChaincodeInput struct { Args [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` Decorations map[string][]byte `protobuf:"bytes,2,rep,name=decorations,proto3" json:"decorations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 (c *ChaincodeInput) UnmarshalJSON(b []byte) error
UnmarshalJSON converts the string-based REST/JSON input to the []byte-based current ChaincodeInput structure.
func (m *ChaincodeInput) XXX_DiscardUnknown()
func (m *ChaincodeInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeInput) XXX_Merge(src proto.Message)
func (m *ChaincodeInput) XXX_Size() int
func (m *ChaincodeInput) XXX_Unmarshal(b []byte) error
Carries the chaincode function and its arguments.
type ChaincodeInvocationSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)
func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec
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 (dst *ChaincodeInvocationSpec) XXX_Merge(src proto.Message)
func (m *ChaincodeInvocationSpec) XXX_Size() int
func (m *ChaincodeInvocationSpec) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeMessage) Descriptor() ([]byte, []int)
func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent
func (m *ChaincodeMessage) GetChannelId() string
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 (dst *ChaincodeMessage) XXX_Merge(src proto.Message)
func (m *ChaincodeMessage) XXX_Size() int
func (m *ChaincodeMessage) XXX_Unmarshal(b []byte) error
type ChaincodeMessage_Type int32
const ( ChaincodeMessage_UNDEFINED ChaincodeMessage_Type = 0 ChaincodeMessage_REGISTER ChaincodeMessage_Type = 1 ChaincodeMessage_REGISTERED ChaincodeMessage_Type = 2 ChaincodeMessage_INIT ChaincodeMessage_Type = 3 ChaincodeMessage_READY ChaincodeMessage_Type = 4 ChaincodeMessage_TRANSACTION ChaincodeMessage_Type = 5 ChaincodeMessage_COMPLETED ChaincodeMessage_Type = 6 ChaincodeMessage_ERROR ChaincodeMessage_Type = 7 ChaincodeMessage_GET_STATE ChaincodeMessage_Type = 8 ChaincodeMessage_PUT_STATE ChaincodeMessage_Type = 9 ChaincodeMessage_DEL_STATE ChaincodeMessage_Type = 10 ChaincodeMessage_INVOKE_CHAINCODE ChaincodeMessage_Type = 11 ChaincodeMessage_RESPONSE ChaincodeMessage_Type = 13 ChaincodeMessage_GET_STATE_BY_RANGE ChaincodeMessage_Type = 14 ChaincodeMessage_GET_QUERY_RESULT ChaincodeMessage_Type = 15 ChaincodeMessage_QUERY_STATE_NEXT ChaincodeMessage_Type = 16 ChaincodeMessage_QUERY_STATE_CLOSE ChaincodeMessage_Type = 17 ChaincodeMessage_KEEPALIVE ChaincodeMessage_Type = 18 ChaincodeMessage_GET_HISTORY_FOR_KEY ChaincodeMessage_Type = 19 ChaincodeMessage_GET_STATE_METADATA ChaincodeMessage_Type = 20 ChaincodeMessage_PUT_STATE_METADATA ChaincodeMessage_Type = 21 ChaincodeMessage_GET_PRIVATE_DATA_HASH ChaincodeMessage_Type = 22 )
func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int)
func (x ChaincodeMessage_Type) String() string
ChaincodeProposalPayload is the Proposal's payload message to be used when the Header's type is CHAINCODE. It contains the arguments for this invocation.
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 `protobuf:"bytes,2,rep,name=TransientMap,proto3" json:"TransientMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 (dst *ChaincodeProposalPayload) XXX_Merge(src proto.Message)
func (m *ChaincodeProposalPayload) XXX_Size() int
func (m *ChaincodeProposalPayload) XXX_Unmarshal(b []byte) error
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)
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:"-"` }
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 (dst *ChaincodeQueryResponse) XXX_Merge(src proto.Message)
func (m *ChaincodeQueryResponse) XXX_Size() int
func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error
Carries the chaincode specification. This is the actual metadata required for defining a chaincode.
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (cs *ChaincodeSpec) CCType() string
func (*ChaincodeSpec) Descriptor() ([]byte, []int)
func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID
func (m *ChaincodeSpec) GetInput() *ChaincodeInput
func (m *ChaincodeSpec) GetTimeout() int32
func (m *ChaincodeSpec) GetType() ChaincodeSpec_Type
func (cs *ChaincodeSpec) Name() string
Name implements the platforms.NameDescriber interface
func (cs *ChaincodeSpec) Path() string
Path implements the platforms.PathDescriber interface
func (*ChaincodeSpec) ProtoMessage()
func (m *ChaincodeSpec) Reset()
func (m *ChaincodeSpec) String() string
func (cs *ChaincodeSpec) Version() string
func (m *ChaincodeSpec) XXX_DiscardUnknown()
func (m *ChaincodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeSpec) XXX_Merge(src proto.Message)
func (m *ChaincodeSpec) XXX_Size() int
func (m *ChaincodeSpec) XXX_Unmarshal(b []byte) error
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() ([]byte, []int)
func (x ChaincodeSpec_Type) String() string
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.
type ChaincodeSupportClient interface { Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error) }
func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient
ChaincodeSupportServer is the server API for ChaincodeSupport service.
type ChaincodeSupportServer interface { Register(ChaincodeSupport_RegisterServer) error }
type ChaincodeSupport_RegisterClient interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ClientStream }
type ChaincodeSupport_RegisterServer interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ServerStream }
ChaincodeValidation instructs the peer how transactions for this chaincode should be validated. The only validation mechanism which ships with fabric today is the standard 'vscc' validation mechanism. This built in validation method utilizes an endorsement policy which checks that a sufficient number of signatures have been included. The 'arguement' field encodes any parameters required by the validation implementation.
type ChaincodeValidation struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Argument []byte `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeValidation) Descriptor() ([]byte, []int)
func (m *ChaincodeValidation) GetArgument() []byte
func (m *ChaincodeValidation) GetName() string
func (*ChaincodeValidation) ProtoMessage()
func (m *ChaincodeValidation) Reset()
func (m *ChaincodeValidation) String() string
func (m *ChaincodeValidation) XXX_DiscardUnknown()
func (m *ChaincodeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ChaincodeValidation) XXX_Merge(src proto.Message)
func (m *ChaincodeValidation) XXX_Size() int
func (m *ChaincodeValidation) XXX_Unmarshal(b []byte) error
ChannelInfo contains general information about channels
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:"-"` }
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 (dst *ChannelInfo) XXX_Merge(src proto.Message)
func (m *ChannelInfo) XXX_Size() int
func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
ChannelQueryResponse returns information about each channel that pertains to a query in lscc.go, such as GetChannels (returns all channels for a given peer)
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:"-"` }
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 (dst *ChannelQueryResponse) XXX_Merge(src proto.Message)
func (m *ChannelQueryResponse) XXX_Size() int
func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error
Confidentiality Levels
type ConfidentialityLevel int32
const ( ConfidentialityLevel_PUBLIC ConfidentialityLevel = 0 ConfidentialityLevel_CONFIDENTIAL ConfidentialityLevel = 1 )
func (ConfidentialityLevel) EnumDescriptor() ([]byte, []int)
func (x ConfidentialityLevel) String() string
ConfigTree encapsulates channel and resources configuration of a channel. Both configurations are represented as common.Config
type ConfigTree struct { ChannelConfig *common.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"` ResourcesConfig *common.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConfigTree) Descriptor() ([]byte, []int)
func (m *ConfigTree) GetChannelConfig() *common.Config
func (m *ConfigTree) GetResourcesConfig() *common.Config
func (*ConfigTree) ProtoMessage()
func (m *ConfigTree) Reset()
func (m *ConfigTree) String() string
func (m *ConfigTree) XXX_DiscardUnknown()
func (m *ConfigTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ConfigTree) XXX_Merge(src proto.Message)
func (m *ConfigTree) XXX_Size() int
func (m *ConfigTree) XXX_Unmarshal(b []byte) error
DelState is the payload of a ChaincodeMessage. It contains a key which needs to be recorded in the transaction's write set as a delete operation. If the collection is specified, the key needs to be recorded in the transaction's private write set as a delete operation.
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DelState) Descriptor() ([]byte, []int)
func (m *DelState) GetCollection() string
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 (dst *DelState) XXX_Merge(src proto.Message)
func (m *DelState) XXX_Size() int
func (m *DelState) XXX_Unmarshal(b []byte) error
DeliverClient is the client API for Deliver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DeliverClient interface { // deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of block replies is received Deliver(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverClient, error) // deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of **filtered** block replies is received DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverFilteredClient, error) }
func NewDeliverClient(cc *grpc.ClientConn) DeliverClient
DeliverResponse
type DeliverResponse struct { // Types that are valid to be assigned to Type: // *DeliverResponse_Status // *DeliverResponse_Block // *DeliverResponse_FilteredBlock Type isDeliverResponse_Type `protobuf_oneof:"Type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeliverResponse) Descriptor() ([]byte, []int)
func (m *DeliverResponse) GetBlock() *common.Block
func (m *DeliverResponse) GetFilteredBlock() *FilteredBlock
func (m *DeliverResponse) GetStatus() common.Status
func (m *DeliverResponse) GetType() isDeliverResponse_Type
func (*DeliverResponse) ProtoMessage()
func (m *DeliverResponse) Reset()
func (m *DeliverResponse) String() string
func (m *DeliverResponse) XXX_DiscardUnknown()
func (m *DeliverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *DeliverResponse) XXX_Merge(src proto.Message)
func (*DeliverResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *DeliverResponse) XXX_Size() int
func (m *DeliverResponse) XXX_Unmarshal(b []byte) error
type DeliverResponse_Block struct { Block *common.Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"` }
type DeliverResponse_FilteredBlock struct { FilteredBlock *FilteredBlock `protobuf:"bytes,3,opt,name=filtered_block,json=filteredBlock,proto3,oneof"` }
type DeliverResponse_Status struct { Status common.Status `protobuf:"varint,1,opt,name=status,proto3,enum=common.Status,oneof"` }
DeliverServer is the server API for Deliver service.
type DeliverServer interface { // deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of block replies is received Deliver(Deliver_DeliverServer) error // deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with // Payload data as a marshaled orderer.SeekInfo message, // then a stream of **filtered** block replies is received DeliverFiltered(Deliver_DeliverFilteredServer) error }
type Deliver_DeliverClient interface { Send(*common.Envelope) error Recv() (*DeliverResponse, error) grpc.ClientStream }
type Deliver_DeliverFilteredClient interface { Send(*common.Envelope) error Recv() (*DeliverResponse, error) grpc.ClientStream }
type Deliver_DeliverFilteredServer interface { Send(*DeliverResponse) error Recv() (*common.Envelope, error) grpc.ServerStream }
type Deliver_DeliverServer interface { Send(*DeliverResponse) error Recv() (*common.Envelope, error) grpc.ServerStream }
type DynamicApplicationConfigValue struct { *common.ConfigValue // contains filtered or unexported fields }
func (ccv *DynamicApplicationConfigValue) VariablyOpaqueFieldProto(name string) (proto.Message, error)
type DynamicApplicationGroup struct { *common.ConfigGroup }
func (dag *DynamicApplicationGroup) DynamicMapFieldProto(name string, key string, base proto.Message) (proto.Message, error)
type DynamicApplicationGroupFactory struct{}
func (dagf DynamicApplicationGroupFactory) DynamicConfigGroup(cg *common.ConfigGroup) proto.Message
type DynamicApplicationOrgConfigValue struct { *common.ConfigValue // contains filtered or unexported fields }
func (daocv *DynamicApplicationOrgConfigValue) VariablyOpaqueFieldProto(name string) (proto.Message, error)
type DynamicApplicationOrgGroup struct { *common.ConfigGroup }
func (dag *DynamicApplicationOrgGroup) DynamicMapFieldProto(name string, key string, base proto.Message) (proto.Message, error)
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)
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:"-"` }
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 (dst *Endorsement) XXX_Merge(src proto.Message)
func (m *Endorsement) XXX_Size() int
func (m *Endorsement) XXX_Unmarshal(b []byte) error
EndorserClient is the client API for Endorser service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type EndorserClient interface { ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error) }
func NewEndorserClient(cc *grpc.ClientConn) EndorserClient
EndorserServer is the server API for Endorser service.
type EndorserServer interface { ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error) }
FilteredBlock is a minimal set of information about a block
type FilteredBlock struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` FilteredTransactions []*FilteredTransaction `protobuf:"bytes,4,rep,name=filtered_transactions,json=filteredTransactions,proto3" json:"filtered_transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilteredBlock) Descriptor() ([]byte, []int)
func (m *FilteredBlock) GetChannelId() string
func (m *FilteredBlock) GetFilteredTransactions() []*FilteredTransaction
func (m *FilteredBlock) GetNumber() uint64
func (*FilteredBlock) ProtoMessage()
func (m *FilteredBlock) Reset()
func (m *FilteredBlock) String() string
func (m *FilteredBlock) XXX_DiscardUnknown()
func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *FilteredBlock) XXX_Merge(src proto.Message)
func (m *FilteredBlock) XXX_Size() int
func (m *FilteredBlock) XXX_Unmarshal(b []byte) error
FilteredChaincodeAction is a minimal set of information about an action within a transaction
type FilteredChaincodeAction struct { ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,1,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilteredChaincodeAction) Descriptor() ([]byte, []int)
func (m *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent
func (*FilteredChaincodeAction) ProtoMessage()
func (m *FilteredChaincodeAction) Reset()
func (m *FilteredChaincodeAction) String() string
func (m *FilteredChaincodeAction) XXX_DiscardUnknown()
func (m *FilteredChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *FilteredChaincodeAction) XXX_Merge(src proto.Message)
func (m *FilteredChaincodeAction) XXX_Size() int
func (m *FilteredChaincodeAction) XXX_Unmarshal(b []byte) error
FilteredTransaction is a minimal set of information about a transaction within a block
type FilteredTransaction struct { Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Type common.HeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=common.HeaderType" json:"type,omitempty"` TxValidationCode TxValidationCode `protobuf:"varint,3,opt,name=tx_validation_code,json=txValidationCode,proto3,enum=protos.TxValidationCode" json:"tx_validation_code,omitempty"` // Types that are valid to be assigned to Data: // *FilteredTransaction_TransactionActions Data isFilteredTransaction_Data `protobuf_oneof:"Data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilteredTransaction) Descriptor() ([]byte, []int)
func (m *FilteredTransaction) GetData() isFilteredTransaction_Data
func (m *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions
func (m *FilteredTransaction) GetTxValidationCode() TxValidationCode
func (m *FilteredTransaction) GetTxid() string
func (m *FilteredTransaction) GetType() common.HeaderType
func (*FilteredTransaction) ProtoMessage()
func (m *FilteredTransaction) Reset()
func (m *FilteredTransaction) String() string
func (m *FilteredTransaction) XXX_DiscardUnknown()
func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *FilteredTransaction) XXX_Merge(src proto.Message)
func (*FilteredTransaction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *FilteredTransaction) XXX_Size() int
func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error
FilteredTransactionActions is a wrapper for array of TransactionAction message from regular block
type FilteredTransactionActions struct { ChaincodeActions []*FilteredChaincodeAction `protobuf:"bytes,1,rep,name=chaincode_actions,json=chaincodeActions,proto3" json:"chaincode_actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilteredTransactionActions) Descriptor() ([]byte, []int)
func (m *FilteredTransactionActions) GetChaincodeActions() []*FilteredChaincodeAction
func (*FilteredTransactionActions) ProtoMessage()
func (m *FilteredTransactionActions) Reset()
func (m *FilteredTransactionActions) String() string
func (m *FilteredTransactionActions) XXX_DiscardUnknown()
func (m *FilteredTransactionActions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *FilteredTransactionActions) XXX_Merge(src proto.Message)
func (m *FilteredTransactionActions) XXX_Size() int
func (m *FilteredTransactionActions) XXX_Unmarshal(b []byte) error
type FilteredTransaction_TransactionActions struct { TransactionActions *FilteredTransactionActions `protobuf:"bytes,4,opt,name=transaction_actions,json=transactionActions,proto3,oneof"` }
GetHistoryForKey is the payload of a ChaincodeMessage. It contains a key for which the historical values need to be retrieved.
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() ([]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 (dst *GetHistoryForKey) XXX_Merge(src proto.Message)
func (m *GetHistoryForKey) XXX_Size() int
func (m *GetHistoryForKey) XXX_Unmarshal(b []byte) error
GetQueryResult is the payload of a ChaincodeMessage. It contains a query string in the form that is supported by the underlying state database. If the collection is specified, the query needs to be executed on the private data. The metadata hold the byte representation of QueryMetadata.
type GetQueryResult struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetQueryResult) Descriptor() ([]byte, []int)
func (m *GetQueryResult) GetCollection() string
func (m *GetQueryResult) GetMetadata() []byte
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 (dst *GetQueryResult) XXX_Merge(src proto.Message)
func (m *GetQueryResult) XXX_Size() int
func (m *GetQueryResult) XXX_Unmarshal(b []byte) error
GetState is the payload of a ChaincodeMessage. It contains a key which is to be fetched from the ledger. If the collection is specified, the key would be fetched from the collection (i.e., private state)
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetState) Descriptor() ([]byte, []int)
func (m *GetState) GetCollection() string
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 (dst *GetState) XXX_Merge(src proto.Message)
func (m *GetState) XXX_Size() int
func (m *GetState) XXX_Unmarshal(b []byte) error
GetStateByRange is the payload of a ChaincodeMessage. It contains a start key and a end key required to execute range query. If the collection is specified, the range query needs to be executed on the private data. The metadata hold the byte representation of QueryMetadata.
type GetStateByRange struct { StartKey string `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"` EndKey string `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStateByRange) Descriptor() ([]byte, []int)
func (m *GetStateByRange) GetCollection() string
func (m *GetStateByRange) GetEndKey() string
func (m *GetStateByRange) GetMetadata() []byte
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 (dst *GetStateByRange) XXX_Merge(src proto.Message)
func (m *GetStateByRange) XXX_Size() int
func (m *GetStateByRange) XXX_Unmarshal(b []byte) error
type GetStateMetadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStateMetadata) Descriptor() ([]byte, []int)
func (m *GetStateMetadata) GetCollection() string
func (m *GetStateMetadata) GetKey() string
func (*GetStateMetadata) ProtoMessage()
func (m *GetStateMetadata) Reset()
func (m *GetStateMetadata) String() string
func (m *GetStateMetadata) XXX_DiscardUnknown()
func (m *GetStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *GetStateMetadata) XXX_Merge(src proto.Message)
func (m *GetStateMetadata) XXX_Size() int
func (m *GetStateMetadata) XXX_Unmarshal(b []byte) error
LifecycleEvent is used as the payload of the chaincode event emitted by LSCC
type LifecycleEvent struct { ChaincodeName string `protobuf:"bytes,1,opt,name=chaincode_name,json=chaincodeName,proto3" json:"chaincode_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LifecycleEvent) Descriptor() ([]byte, []int)
func (m *LifecycleEvent) GetChaincodeName() string
func (*LifecycleEvent) ProtoMessage()
func (m *LifecycleEvent) Reset()
func (m *LifecycleEvent) String() string
func (m *LifecycleEvent) XXX_DiscardUnknown()
func (m *LifecycleEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *LifecycleEvent) XXX_Merge(src proto.Message)
func (m *LifecycleEvent) XXX_Size() int
func (m *LifecycleEvent) XXX_Unmarshal(b []byte) error
type LogLevelRequest struct { LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule,proto3" json:"log_module,omitempty"` LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogLevelRequest) Descriptor() ([]byte, []int)
func (m *LogLevelRequest) GetLogLevel() string
func (m *LogLevelRequest) GetLogModule() string
func (*LogLevelRequest) ProtoMessage()
func (m *LogLevelRequest) Reset()
func (m *LogLevelRequest) String() string
func (m *LogLevelRequest) XXX_DiscardUnknown()
func (m *LogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *LogLevelRequest) XXX_Merge(src proto.Message)
func (m *LogLevelRequest) XXX_Size() int
func (m *LogLevelRequest) XXX_Unmarshal(b []byte) error
type LogLevelResponse struct { LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule,proto3" json:"log_module,omitempty"` LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogLevelResponse) Descriptor() ([]byte, []int)
func (m *LogLevelResponse) GetLogLevel() string
func (m *LogLevelResponse) GetLogModule() string
func (*LogLevelResponse) ProtoMessage()
func (m *LogLevelResponse) Reset()
func (m *LogLevelResponse) String() string
func (m *LogLevelResponse) XXX_DiscardUnknown()
func (m *LogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *LogLevelResponse) XXX_Merge(src proto.Message)
func (m *LogLevelResponse) XXX_Size() int
func (m *LogLevelResponse) XXX_Unmarshal(b []byte) error
type LogSpecRequest struct { LogSpec string `protobuf:"bytes,1,opt,name=log_spec,json=logSpec,proto3" json:"log_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogSpecRequest) Descriptor() ([]byte, []int)
func (m *LogSpecRequest) GetLogSpec() string
func (*LogSpecRequest) ProtoMessage()
func (m *LogSpecRequest) Reset()
func (m *LogSpecRequest) String() string
func (m *LogSpecRequest) XXX_DiscardUnknown()
func (m *LogSpecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *LogSpecRequest) XXX_Merge(src proto.Message)
func (m *LogSpecRequest) XXX_Size() int
func (m *LogSpecRequest) XXX_Unmarshal(b []byte) error
type LogSpecResponse struct { LogSpec string `protobuf:"bytes,1,opt,name=log_spec,json=logSpec,proto3" json:"log_spec,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogSpecResponse) Descriptor() ([]byte, []int)
func (m *LogSpecResponse) GetError() string
func (m *LogSpecResponse) GetLogSpec() string
func (*LogSpecResponse) ProtoMessage()
func (m *LogSpecResponse) Reset()
func (m *LogSpecResponse) String() string
func (m *LogSpecResponse) XXX_DiscardUnknown()
func (m *LogSpecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *LogSpecResponse) XXX_Merge(src proto.Message)
func (m *LogSpecResponse) XXX_Size() int
func (m *LogSpecResponse) XXX_Unmarshal(b []byte) error
Reserved entries in the key-level metadata map
type MetaDataKeys int32
const ( MetaDataKeys_VALIDATION_PARAMETER MetaDataKeys = 0 )
func (MetaDataKeys) EnumDescriptor() ([]byte, []int)
func (x MetaDataKeys) String() string
type PeerEndpoint struct { Id *PeerID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerEndpoint) Descriptor() ([]byte, []int)
func (m *PeerEndpoint) GetAddress() string
func (m *PeerEndpoint) GetId() *PeerID
func (*PeerEndpoint) ProtoMessage()
func (m *PeerEndpoint) Reset()
func (m *PeerEndpoint) String() string
func (m *PeerEndpoint) XXX_DiscardUnknown()
func (m *PeerEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *PeerEndpoint) XXX_Merge(src proto.Message)
func (m *PeerEndpoint) XXX_Size() int
func (m *PeerEndpoint) XXX_Unmarshal(b []byte) error
type PeerID struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerID) Descriptor() ([]byte, []int)
func (m *PeerID) GetName() string
func (*PeerID) ProtoMessage()
func (m *PeerID) Reset()
func (m *PeerID) String() string
func (m *PeerID) XXX_DiscardUnknown()
func (m *PeerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *PeerID) XXX_Merge(src proto.Message)
func (m *PeerID) XXX_Size() int
func (m *PeerID) XXX_Unmarshal(b []byte) error
ProcessedTransaction wraps an Envelope that includes a transaction along with an indication of whether the transaction was validated or invalidated by committing peer. The use case is that GetTransactionByID API needs to retrieve the transaction Envelope from block storage, and return it to a client, and indicate whether the transaction was validated or invalidated by committing peer. So that the originally submitted transaction Envelope is not modified, the ProcessedTransaction wrapper is returned.
type ProcessedTransaction struct { // An Envelope which includes a processed transaction TransactionEnvelope *common.Envelope `protobuf:"bytes,1,opt,name=transactionEnvelope,proto3" json:"transactionEnvelope,omitempty"` // An indication of whether the transaction was validated or invalidated by committing peer ValidationCode int32 `protobuf:"varint,2,opt,name=validationCode,proto3" json:"validationCode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProcessedTransaction) Descriptor() ([]byte, []int)
func (m *ProcessedTransaction) GetTransactionEnvelope() *common.Envelope
func (m *ProcessedTransaction) GetValidationCode() int32
func (*ProcessedTransaction) ProtoMessage()
func (m *ProcessedTransaction) Reset()
func (m *ProcessedTransaction) String() string
func (m *ProcessedTransaction) XXX_DiscardUnknown()
func (m *ProcessedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ProcessedTransaction) XXX_Merge(src proto.Message)
func (m *ProcessedTransaction) XXX_Size() int
func (m *ProcessedTransaction) XXX_Unmarshal(b []byte) error
A Proposal is sent to an endorser for endorsement. The proposal contains: 1. 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.
2. A payload whose type depends on the header's type field. 3. 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: 1. The header is a Header message whose extensions field is a
ChaincodeHeaderExtension message.
2. The payload is a ChaincodeProposalPayload message. 3. The extension is a ChaincodeAction that might be used to ask the
endorsers to endorse a specific ChaincodeAction, thus emulating the submitting peer model.
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:"-"` }
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 (dst *Proposal) XXX_Merge(src proto.Message)
func (m *Proposal) XXX_Size() int
func (m *Proposal) XXX_Unmarshal(b []byte) error
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.
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:"-"` }
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 (dst *ProposalResponse) XXX_Merge(src proto.Message)
func (m *ProposalResponse) XXX_Size() int
func (m *ProposalResponse) XXX_Unmarshal(b []byte) error
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.
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:"-"` }
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 (dst *ProposalResponsePayload) XXX_Merge(src proto.Message)
func (m *ProposalResponsePayload) XXX_Size() int
func (m *ProposalResponsePayload) XXX_Unmarshal(b []byte) error
PutState is the payload of a ChaincodeMessage. It contains a key and value which needs to be written to the transaction's write set. If the collection is specified, the key and value would be written to the transaction's private write set.
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutState) Descriptor() ([]byte, []int)
func (m *PutState) GetCollection() string
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 (dst *PutState) XXX_Merge(src proto.Message)
func (m *PutState) XXX_Size() int
func (m *PutState) XXX_Unmarshal(b []byte) error
type PutStateMetadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` Metadata *StateMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutStateMetadata) Descriptor() ([]byte, []int)
func (m *PutStateMetadata) GetCollection() string
func (m *PutStateMetadata) GetKey() string
func (m *PutStateMetadata) GetMetadata() *StateMetadata
func (*PutStateMetadata) ProtoMessage()
func (m *PutStateMetadata) Reset()
func (m *PutStateMetadata) String() string
func (m *PutStateMetadata) XXX_DiscardUnknown()
func (m *PutStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *PutStateMetadata) XXX_Merge(src proto.Message)
func (m *PutStateMetadata) XXX_Size() int
func (m *PutStateMetadata) XXX_Unmarshal(b []byte) error
QueryMetadata is the metadata of a GetStateByRange and GetQueryResult. It contains a pageSize which denotes the number of records to be fetched and a bookmark.
type QueryMetadata struct { PageSize int32 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryMetadata) Descriptor() ([]byte, []int)
func (m *QueryMetadata) GetBookmark() string
func (m *QueryMetadata) GetPageSize() int32
func (*QueryMetadata) ProtoMessage()
func (m *QueryMetadata) Reset()
func (m *QueryMetadata) String() string
func (m *QueryMetadata) XXX_DiscardUnknown()
func (m *QueryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *QueryMetadata) XXX_Merge(src proto.Message)
func (m *QueryMetadata) XXX_Size() int
func (m *QueryMetadata) XXX_Unmarshal(b []byte) error
QueryResponse is returned by the peer as a result of a GetStateByRange, GetQueryResult, and GetHistoryForKey. It holds a bunch of records in results field, a flag to denote whether more results need to be fetched from the peer in has_more field, transaction id in id field, and a QueryResponseMetadata in metadata field.
type QueryResponse struct { Results []*QueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryResponse) Descriptor() ([]byte, []int)
func (m *QueryResponse) GetHasMore() bool
func (m *QueryResponse) GetId() string
func (m *QueryResponse) GetMetadata() []byte
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 (dst *QueryResponse) XXX_Merge(src proto.Message)
func (m *QueryResponse) XXX_Size() int
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
QueryResponseMetadata is the metadata of a QueryResponse. It contains a count which denotes the number of records fetched from the ledger and a bookmark.
type QueryResponseMetadata struct { FetchedRecordsCount int32 `protobuf:"varint,1,opt,name=fetched_records_count,json=fetchedRecordsCount,proto3" json:"fetched_records_count,omitempty"` Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryResponseMetadata) Descriptor() ([]byte, []int)
func (m *QueryResponseMetadata) GetBookmark() string
func (m *QueryResponseMetadata) GetFetchedRecordsCount() int32
func (*QueryResponseMetadata) ProtoMessage()
func (m *QueryResponseMetadata) Reset()
func (m *QueryResponseMetadata) String() string
func (m *QueryResponseMetadata) XXX_DiscardUnknown()
func (m *QueryResponseMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *QueryResponseMetadata) XXX_Merge(src proto.Message)
func (m *QueryResponseMetadata) XXX_Size() int
func (m *QueryResponseMetadata) XXX_Unmarshal(b []byte) error
QueryResultBytes hold the byte representation of a record returned by the peer.
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() ([]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 (dst *QueryResultBytes) XXX_Merge(src proto.Message)
func (m *QueryResultBytes) XXX_Size() int
func (m *QueryResultBytes) XXX_Unmarshal(b []byte) error
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() ([]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 (dst *QueryStateClose) XXX_Merge(src proto.Message)
func (m *QueryStateClose) XXX_Size() int
func (m *QueryStateClose) XXX_Unmarshal(b []byte) error
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() ([]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 (dst *QueryStateNext) XXX_Merge(src proto.Message)
func (m *QueryStateNext) XXX_Size() int
func (m *QueryStateNext) XXX_Unmarshal(b []byte) error
A response with a representation similar to an HTTP response that can be used within another message.
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:"-"` }
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 (dst *Response) XXX_Merge(src proto.Message)
func (m *Response) XXX_Size() int
func (m *Response) XXX_Unmarshal(b []byte) error
type ServerStatus struct { Status ServerStatus_StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=protos.ServerStatus_StatusCode" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServerStatus) Descriptor() ([]byte, []int)
func (m *ServerStatus) GetStatus() ServerStatus_StatusCode
func (*ServerStatus) ProtoMessage()
func (m *ServerStatus) Reset()
func (m *ServerStatus) String() string
func (m *ServerStatus) XXX_DiscardUnknown()
func (m *ServerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ServerStatus) XXX_Merge(src proto.Message)
func (m *ServerStatus) XXX_Size() int
func (m *ServerStatus) XXX_Unmarshal(b []byte) error
type ServerStatus_StatusCode int32
const ( ServerStatus_UNDEFINED ServerStatus_StatusCode = 0 ServerStatus_STARTED ServerStatus_StatusCode = 1 ServerStatus_STOPPED ServerStatus_StatusCode = 2 ServerStatus_PAUSED ServerStatus_StatusCode = 3 ServerStatus_ERROR ServerStatus_StatusCode = 4 ServerStatus_UNKNOWN ServerStatus_StatusCode = 5 )
func (ServerStatus_StatusCode) EnumDescriptor() ([]byte, []int)
func (x ServerStatus_StatusCode) String() string
SignedChaincodeDeploymentSpec carries the CDS along with endorsements
type SignedChaincodeDeploymentSpec struct { // This is the bytes of the ChaincodeDeploymentSpec ChaincodeDeploymentSpec []byte `protobuf:"bytes,1,opt,name=chaincode_deployment_spec,json=chaincodeDeploymentSpec,proto3" json:"chaincode_deployment_spec,omitempty"` // This is the instantiation policy which is identical in structure // to endorsement policy. This policy is checked by the VSCC at commit // time on the instantiation (all peers will get the same policy as it // will be part of the LSCC instantation record and will be part of the // hash as well) InstantiationPolicy []byte `protobuf:"bytes,2,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"` // The endorsements of the above deployment spec, the owner's signature over // chaincode_deployment_spec and Endorsement.endorser. OwnerEndorsements []*Endorsement `protobuf:"bytes,3,rep,name=owner_endorsements,json=ownerEndorsements,proto3" json:"owner_endorsements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
func (m *SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec() []byte
func (m *SignedChaincodeDeploymentSpec) GetInstantiationPolicy() []byte
func (m *SignedChaincodeDeploymentSpec) GetOwnerEndorsements() []*Endorsement
func (*SignedChaincodeDeploymentSpec) ProtoMessage()
func (m *SignedChaincodeDeploymentSpec) Reset()
func (m *SignedChaincodeDeploymentSpec) String() string
func (m *SignedChaincodeDeploymentSpec) XXX_DiscardUnknown()
func (m *SignedChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *SignedChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
func (m *SignedChaincodeDeploymentSpec) XXX_Size() int
func (m *SignedChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
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: 1. 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.
2. 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);
3. Verification that the signature on proposalBytes is valid; 4. Detect replay attacks;
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:"-"` }
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 (dst *SignedProposal) XXX_Merge(src proto.Message)
func (m *SignedProposal) XXX_Size() int
func (m *SignedProposal) XXX_Unmarshal(b []byte) error
This message is necessary to facilitate the verification of the signature (in the signature field) over the bytes of the transaction (in the transactionBytes field).
type SignedTransaction struct { // The bytes of the Transaction. NDD TransactionBytes []byte `protobuf:"bytes,1,opt,name=transaction_bytes,json=transactionBytes,proto3" json:"transaction_bytes,omitempty"` // Signature of the transactionBytes The public key of the signature is in // the header field of TransactionAction There might be multiple // TransactionAction, so multiple headers, but there should be same // transactor identity (cert) in all headers Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedTransaction) Descriptor() ([]byte, []int)
func (m *SignedTransaction) GetSignature() []byte
func (m *SignedTransaction) GetTransactionBytes() []byte
func (*SignedTransaction) ProtoMessage()
func (m *SignedTransaction) Reset()
func (m *SignedTransaction) String() string
func (m *SignedTransaction) XXX_DiscardUnknown()
func (m *SignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *SignedTransaction) XXX_Merge(src proto.Message)
func (m *SignedTransaction) XXX_Size() int
func (m *SignedTransaction) XXX_Unmarshal(b []byte) error
type StateMetadata struct { Metakey string `protobuf:"bytes,1,opt,name=metakey,proto3" json:"metakey,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StateMetadata) Descriptor() ([]byte, []int)
func (m *StateMetadata) GetMetakey() string
func (m *StateMetadata) GetValue() []byte
func (*StateMetadata) ProtoMessage()
func (m *StateMetadata) Reset()
func (m *StateMetadata) String() string
func (m *StateMetadata) XXX_DiscardUnknown()
func (m *StateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *StateMetadata) XXX_Merge(src proto.Message)
func (m *StateMetadata) XXX_Size() int
func (m *StateMetadata) XXX_Unmarshal(b []byte) error
type StateMetadataResult struct { Entries []*StateMetadata `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StateMetadataResult) Descriptor() ([]byte, []int)
func (m *StateMetadataResult) GetEntries() []*StateMetadata
func (*StateMetadataResult) ProtoMessage()
func (m *StateMetadataResult) Reset()
func (m *StateMetadataResult) String() string
func (m *StateMetadataResult) XXX_DiscardUnknown()
func (m *StateMetadataResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *StateMetadataResult) XXX_Merge(src proto.Message)
func (m *StateMetadataResult) XXX_Size() int
func (m *StateMetadataResult) XXX_Unmarshal(b []byte) error
The transaction to be sent to the ordering service. A transaction contains one or more TransactionAction. Each TransactionAction binds a proposal to potentially multiple actions. The transaction is atomic meaning that either all actions in the transaction will be committed or none will. Note that while a Transaction might include more than one Header, the Header.creator field must be the same in each. A single client is free to issue a number of independent Proposal, each with their header (Header) and request payload (ChaincodeProposalPayload). Each proposal is independently endorsed generating an action (ProposalResponsePayload) with one signature per Endorser. Any number of independent proposals (and their action) might be included in a transaction to ensure that they are treated atomically.
type Transaction struct { // The payload is an array of TransactionAction. An array is necessary to // accommodate multiple actions per transaction Actions []*TransactionAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Transaction) Descriptor() ([]byte, []int)
func (m *Transaction) GetActions() []*TransactionAction
func (*Transaction) ProtoMessage()
func (m *Transaction) Reset()
func (m *Transaction) String() string
func (m *Transaction) XXX_DiscardUnknown()
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *Transaction) XXX_Merge(src proto.Message)
func (m *Transaction) XXX_Size() int
func (m *Transaction) XXX_Unmarshal(b []byte) error
TransactionAction binds a proposal to its action. The type field in the header dictates the type of action to be applied to the ledger.
type TransactionAction struct { // The header of the proposal action, which is the proposal header Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The payload of the action as defined by the type in the header For // chaincode, it's the bytes of ChaincodeActionPayload Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionAction) Descriptor() ([]byte, []int)
func (m *TransactionAction) GetHeader() []byte
func (m *TransactionAction) GetPayload() []byte
func (*TransactionAction) ProtoMessage()
func (m *TransactionAction) Reset()
func (ta *TransactionAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (ta *TransactionAction) StaticallyOpaqueFields() []string
func (m *TransactionAction) String() string
func (m *TransactionAction) XXX_DiscardUnknown()
func (m *TransactionAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *TransactionAction) XXX_Merge(src proto.Message)
func (m *TransactionAction) XXX_Size() int
func (m *TransactionAction) XXX_Unmarshal(b []byte) error
type TxValidationCode int32
const ( TxValidationCode_VALID TxValidationCode = 0 TxValidationCode_NIL_ENVELOPE TxValidationCode = 1 TxValidationCode_BAD_PAYLOAD TxValidationCode = 2 TxValidationCode_BAD_COMMON_HEADER TxValidationCode = 3 TxValidationCode_BAD_CREATOR_SIGNATURE TxValidationCode = 4 TxValidationCode_INVALID_ENDORSER_TRANSACTION TxValidationCode = 5 TxValidationCode_INVALID_CONFIG_TRANSACTION TxValidationCode = 6 TxValidationCode_UNSUPPORTED_TX_PAYLOAD TxValidationCode = 7 TxValidationCode_BAD_PROPOSAL_TXID TxValidationCode = 8 TxValidationCode_DUPLICATE_TXID TxValidationCode = 9 TxValidationCode_ENDORSEMENT_POLICY_FAILURE TxValidationCode = 10 TxValidationCode_MVCC_READ_CONFLICT TxValidationCode = 11 TxValidationCode_PHANTOM_READ_CONFLICT TxValidationCode = 12 TxValidationCode_UNKNOWN_TX_TYPE TxValidationCode = 13 TxValidationCode_TARGET_CHAIN_NOT_FOUND TxValidationCode = 14 TxValidationCode_MARSHAL_TX_ERROR TxValidationCode = 15 TxValidationCode_NIL_TXACTION TxValidationCode = 16 TxValidationCode_EXPIRED_CHAINCODE TxValidationCode = 17 TxValidationCode_CHAINCODE_VERSION_CONFLICT TxValidationCode = 18 TxValidationCode_BAD_HEADER_EXTENSION TxValidationCode = 19 TxValidationCode_BAD_CHANNEL_HEADER TxValidationCode = 20 TxValidationCode_BAD_RESPONSE_PAYLOAD TxValidationCode = 21 TxValidationCode_BAD_RWSET TxValidationCode = 22 TxValidationCode_ILLEGAL_WRITESET TxValidationCode = 23 TxValidationCode_INVALID_WRITESET TxValidationCode = 24 TxValidationCode_NOT_VALIDATED TxValidationCode = 254 TxValidationCode_INVALID_OTHER_REASON TxValidationCode = 255 )
func (TxValidationCode) EnumDescriptor() ([]byte, []int)
func (x TxValidationCode) String() string
VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the argument field of the ChaincodeValidation message.
type VSCCArgs struct { EndorsementPolicyRef string `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VSCCArgs) Descriptor() ([]byte, []int)
func (m *VSCCArgs) GetEndorsementPolicyRef() string
func (*VSCCArgs) ProtoMessage()
func (m *VSCCArgs) Reset()
func (m *VSCCArgs) String() string
func (m *VSCCArgs) XXX_DiscardUnknown()
func (m *VSCCArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *VSCCArgs) XXX_Merge(src proto.Message)
func (m *VSCCArgs) XXX_Size() int
func (m *VSCCArgs) XXX_Unmarshal(b []byte) error