peer

package
Version: v0.0.0-...-9685156 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 5,299

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChaincodeMessage_Type_name = map[int32]string{
	0:  "UNDEFINED",
	1:  "REGISTER",
	2:  "REGISTERED",
	3:  "INIT",
	4:  "READY",
	5:  "TRANSACTION",
	6:  "COMPLETED",
	7:  "ERROR",
	8:  "GET_STATE",
	9:  "PUT_STATE",
	10: "DEL_STATE",
	11: "INVOKE_CHAINCODE",
	13: "RESPONSE",
	14: "GET_STATE_BY_RANGE",
	15: "GET_QUERY_RESULT",
	16: "QUERY_STATE_NEXT",
	17: "QUERY_STATE_CLOSE",
	18: "KEEPALIVE",
	19: "GET_HISTORY_FOR_KEY",
	20: "GET_STATE_METADATA",
	21: "PUT_STATE_METADATA",
	22: "GET_PRIVATE_DATA_HASH",
	23: "PURGE_PRIVATE_DATA",
}
View Source
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,
	"PURGE_PRIVATE_DATA":    23,
}
View Source
var ChaincodeSpec_Type_name = map[int32]string{
	0: "UNDEFINED",
	1: "GOLANG",
	2: "NODE",
	3: "CAR",
	4: "JAVA",
}
View Source
var ChaincodeSpec_Type_value = map[string]int32{
	"UNDEFINED": 0,
	"GOLANG":    1,
	"NODE":      2,
	"CAR":       3,
	"JAVA":      4,
}
View Source
var MetaDataKeys_name = map[int32]string{
	0: "VALIDATION_PARAMETER",
	1: "VALIDATION_PARAMETER_V2",
}
View Source
var MetaDataKeys_value = map[string]int32{
	"VALIDATION_PARAMETER":    0,
	"VALIDATION_PARAMETER_V2": 1,
}
View Source
var TxValidationCode_name = map[int32]string{
	0:   "VALID",
	1:   "NIL_ENVELOPE",
	2:   "BAD_PAYLOAD",
	3:   "BAD_COMMON_HEADER",
	4:   "BAD_CREATOR_SIGNATURE",
	5:   "INVALID_ENDORSER_TRANSACTION",
	6:   "INVALID_CONFIG_TRANSACTION",
	7:   "UNSUPPORTED_TX_PAYLOAD",
	8:   "BAD_PROPOSAL_TXID",
	9:   "DUPLICATE_TXID",
	10:  "ENDORSEMENT_POLICY_FAILURE",
	11:  "MVCC_READ_CONFLICT",
	12:  "PHANTOM_READ_CONFLICT",
	13:  "UNKNOWN_TX_TYPE",
	14:  "TARGET_CHAIN_NOT_FOUND",
	15:  "MARSHAL_TX_ERROR",
	16:  "NIL_TXACTION",
	17:  "EXPIRED_CHAINCODE",
	18:  "CHAINCODE_VERSION_CONFLICT",
	19:  "BAD_HEADER_EXTENSION",
	20:  "BAD_CHANNEL_HEADER",
	21:  "BAD_RESPONSE_PAYLOAD",
	22:  "BAD_RWSET",
	23:  "ILLEGAL_WRITESET",
	24:  "INVALID_WRITESET",
	25:  "INVALID_CHAINCODE",
	254: "NOT_VALIDATED",
	255: "INVALID_OTHER_REASON",
}
View Source
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,
	"INVALID_CHAINCODE":            25,
	"NOT_VALIDATED":                254,
	"INVALID_OTHER_REASON":         255,
}

Functions

func RegisterChaincodeServer

func RegisterChaincodeServer(s *grpc.Server, srv ChaincodeServer)

func RegisterChaincodeSupportServer

func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)

func RegisterDeliverServer

func RegisterDeliverServer(s *grpc.Server, srv DeliverServer)

func RegisterEndorserServer

func RegisterEndorserServer(s *grpc.Server, srv EndorserServer)

func RegisterSnapshotServer

func RegisterSnapshotServer(s *grpc.Server, srv SnapshotServer)

Types

type ACLs

type ACLs struct {
	Acls                 map[string]*APIResource `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

ACLs provides mappings for resources in a channel. APIResource encapsulates reference to a policy used to determine ACL for the resource

func (*ACLs) Descriptor

func (*ACLs) Descriptor() ([]byte, []int)

func (*ACLs) GetAcls

func (m *ACLs) GetAcls() map[string]*APIResource

func (*ACLs) ProtoMessage

func (*ACLs) ProtoMessage()

func (*ACLs) Reset

func (m *ACLs) Reset()

func (*ACLs) String

func (m *ACLs) String() string

func (*ACLs) XXX_DiscardUnknown

func (m *ACLs) XXX_DiscardUnknown()

func (*ACLs) XXX_Marshal

func (m *ACLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ACLs) XXX_Merge

func (m *ACLs) XXX_Merge(src proto.Message)

func (*ACLs) XXX_Size

func (m *ACLs) XXX_Size() int

func (*ACLs) XXX_Unmarshal

func (m *ACLs) XXX_Unmarshal(b []byte) error

type APIResource

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:"-"`
}

APIResource represents an API resource in the peer whose ACL is determined by the policy_ref field

func (*APIResource) Descriptor

func (*APIResource) Descriptor() ([]byte, []int)

func (*APIResource) GetPolicyRef

func (m *APIResource) GetPolicyRef() string

func (*APIResource) ProtoMessage

func (*APIResource) ProtoMessage()

func (*APIResource) Reset

func (m *APIResource) Reset()

func (*APIResource) String

func (m *APIResource) String() string

func (*APIResource) XXX_DiscardUnknown

func (m *APIResource) XXX_DiscardUnknown()

func (*APIResource) XXX_Marshal

func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*APIResource) XXX_Merge

func (m *APIResource) XXX_Merge(src proto.Message)

func (*APIResource) XXX_Size

func (m *APIResource) XXX_Size() int

func (*APIResource) XXX_Unmarshal

func (m *APIResource) XXX_Unmarshal(b []byte) error

type AnchorPeer

type AnchorPeer struct {
	Host                 string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port                 int32    `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AnchorPeer message structure which provides information about anchor peer, it includes host name, port number and peer certificate.

func (*AnchorPeer) Descriptor

func (*AnchorPeer) Descriptor() ([]byte, []int)

func (*AnchorPeer) GetHost

func (m *AnchorPeer) GetHost() string

func (*AnchorPeer) GetPort

func (m *AnchorPeer) GetPort() int32

func (*AnchorPeer) ProtoMessage

func (*AnchorPeer) ProtoMessage()

func (*AnchorPeer) Reset

func (m *AnchorPeer) Reset()

func (*AnchorPeer) String

func (m *AnchorPeer) String() string

func (*AnchorPeer) XXX_DiscardUnknown

func (m *AnchorPeer) XXX_DiscardUnknown()

func (*AnchorPeer) XXX_Marshal

func (m *AnchorPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnchorPeer) XXX_Merge

func (m *AnchorPeer) XXX_Merge(src proto.Message)

func (*AnchorPeer) XXX_Size

func (m *AnchorPeer) XXX_Size() int

func (*AnchorPeer) XXX_Unmarshal

func (m *AnchorPeer) XXX_Unmarshal(b []byte) error

type AnchorPeers

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:"-"`
}

AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem

func (*AnchorPeers) Descriptor

func (*AnchorPeers) Descriptor() ([]byte, []int)

func (*AnchorPeers) GetAnchorPeers

func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer

func (*AnchorPeers) ProtoMessage

func (*AnchorPeers) ProtoMessage()

func (*AnchorPeers) Reset

func (m *AnchorPeers) Reset()

func (*AnchorPeers) String

func (m *AnchorPeers) String() string

func (*AnchorPeers) XXX_DiscardUnknown

func (m *AnchorPeers) XXX_DiscardUnknown()

func (*AnchorPeers) XXX_Marshal

func (m *AnchorPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnchorPeers) XXX_Merge

func (m *AnchorPeers) XXX_Merge(src proto.Message)

func (*AnchorPeers) XXX_Size

func (m *AnchorPeers) XXX_Size() int

func (*AnchorPeers) XXX_Unmarshal

func (m *AnchorPeers) XXX_Unmarshal(b []byte) error

type ApplicationPolicy

type ApplicationPolicy struct {
	// Types that are valid to be assigned to Type:
	//	*ApplicationPolicy_SignaturePolicy
	//	*ApplicationPolicy_ChannelConfigPolicyReference
	Type                 isApplicationPolicy_Type `protobuf_oneof:"Type"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

ApplicationPolicy captures the diffenrent policy types that are set and evaluted at the application level.

func (*ApplicationPolicy) Descriptor

func (*ApplicationPolicy) Descriptor() ([]byte, []int)

func (*ApplicationPolicy) GetChannelConfigPolicyReference

func (m *ApplicationPolicy) GetChannelConfigPolicyReference() string

func (*ApplicationPolicy) GetSignaturePolicy

func (m *ApplicationPolicy) GetSignaturePolicy() *common.SignaturePolicyEnvelope

func (*ApplicationPolicy) GetType

func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type

func (*ApplicationPolicy) ProtoMessage

func (*ApplicationPolicy) ProtoMessage()

func (*ApplicationPolicy) Reset

func (m *ApplicationPolicy) Reset()

func (*ApplicationPolicy) String

func (m *ApplicationPolicy) String() string

func (*ApplicationPolicy) XXX_DiscardUnknown

func (m *ApplicationPolicy) XXX_DiscardUnknown()

func (*ApplicationPolicy) XXX_Marshal

func (m *ApplicationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplicationPolicy) XXX_Merge

func (m *ApplicationPolicy) XXX_Merge(src proto.Message)

func (*ApplicationPolicy) XXX_OneofWrappers

func (*ApplicationPolicy) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ApplicationPolicy) XXX_Size

func (m *ApplicationPolicy) XXX_Size() int

func (*ApplicationPolicy) XXX_Unmarshal

func (m *ApplicationPolicy) XXX_Unmarshal(b []byte) error

type ApplicationPolicy_ChannelConfigPolicyReference

type ApplicationPolicy_ChannelConfigPolicyReference struct {
	ChannelConfigPolicyReference string `protobuf:"bytes,2,opt,name=channel_config_policy_reference,json=channelConfigPolicyReference,proto3,oneof"`
}

type ApplicationPolicy_SignaturePolicy

type ApplicationPolicy_SignaturePolicy struct {
	SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}

type BlockAndPrivateData

type BlockAndPrivateData struct {
	Block *common.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// map from tx_seq_in_block to rwset.TxPvtReadWriteSet
	PrivateDataMap       map[uint64]*rwset.TxPvtReadWriteSet `` /* 194-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

BlockAndPrivateData contains Block and a map from tx_seq_in_block to rwset.TxPvtReadWriteSet

func (*BlockAndPrivateData) Descriptor

func (*BlockAndPrivateData) Descriptor() ([]byte, []int)

func (*BlockAndPrivateData) GetBlock

func (m *BlockAndPrivateData) GetBlock() *common.Block

func (*BlockAndPrivateData) GetPrivateDataMap

func (m *BlockAndPrivateData) GetPrivateDataMap() map[uint64]*rwset.TxPvtReadWriteSet

func (*BlockAndPrivateData) ProtoMessage

func (*BlockAndPrivateData) ProtoMessage()

func (*BlockAndPrivateData) Reset

func (m *BlockAndPrivateData) Reset()

func (*BlockAndPrivateData) String

func (m *BlockAndPrivateData) String() string

func (*BlockAndPrivateData) XXX_DiscardUnknown

func (m *BlockAndPrivateData) XXX_DiscardUnknown()

func (*BlockAndPrivateData) XXX_Marshal

func (m *BlockAndPrivateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockAndPrivateData) XXX_Merge

func (m *BlockAndPrivateData) XXX_Merge(src proto.Message)

func (*BlockAndPrivateData) XXX_Size

func (m *BlockAndPrivateData) XXX_Size() int

func (*BlockAndPrivateData) XXX_Unmarshal

func (m *BlockAndPrivateData) XXX_Unmarshal(b []byte) error

type CDSData

type CDSData struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Metadatahash         []byte   `protobuf:"bytes,2,opt,name=metadatahash,proto3" json:"metadatahash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CDSData is data stored in the LSCC on instantiation of a CC for CDSPackage. This needs to be serialized for ChaincodeData hence the protobuf format

func (*CDSData) Descriptor

func (*CDSData) Descriptor() ([]byte, []int)

func (*CDSData) GetHash

func (m *CDSData) GetHash() []byte

func (*CDSData) GetMetadatahash

func (m *CDSData) GetMetadatahash() []byte

func (*CDSData) ProtoMessage

func (*CDSData) ProtoMessage()

func (*CDSData) Reset

func (m *CDSData) Reset()

func (*CDSData) String

func (m *CDSData) String() string

func (*CDSData) XXX_DiscardUnknown

func (m *CDSData) XXX_DiscardUnknown()

func (*CDSData) XXX_Marshal

func (m *CDSData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CDSData) XXX_Merge

func (m *CDSData) XXX_Merge(src proto.Message)

func (*CDSData) XXX_Size

func (m *CDSData) XXX_Size() int

func (*CDSData) XXX_Unmarshal

func (m *CDSData) XXX_Unmarshal(b []byte) error

type ChaincodeAction

type ChaincodeAction struct {
	// This field contains the read set and the write set produced by the
	// chaincode executing this invocation.
	Results []byte `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"`
	// This field contains the event generated by the chaincode.
	// Only a single marshaled ChaincodeEvent is included.
	Events []byte `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty"`
	// This field contains the result of executing this invocation.
	Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// This field contains the ChaincodeID of executing this invocation. Endorser
	// will set it with the ChaincodeID called by endorser while simulating proposal.
	// Committer will validate the version matching with latest chaincode version.
	// Adding ChaincodeID to keep version opens up the possibility of multiple
	// ChaincodeAction per transaction.
	ChaincodeId          *ChaincodeID `protobuf:"bytes,4,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

ChaincodeAction contains the executed chaincode results, response, and event.

func (*ChaincodeAction) Descriptor

func (*ChaincodeAction) Descriptor() ([]byte, []int)

func (*ChaincodeAction) GetChaincodeId

func (m *ChaincodeAction) GetChaincodeId() *ChaincodeID

func (*ChaincodeAction) GetEvents

func (m *ChaincodeAction) GetEvents() []byte

func (*ChaincodeAction) GetResponse

func (m *ChaincodeAction) GetResponse() *Response

func (*ChaincodeAction) GetResults

func (m *ChaincodeAction) GetResults() []byte

func (*ChaincodeAction) ProtoMessage

func (*ChaincodeAction) ProtoMessage()

func (*ChaincodeAction) Reset

func (m *ChaincodeAction) Reset()

func (*ChaincodeAction) String

func (m *ChaincodeAction) String() string

func (*ChaincodeAction) XXX_DiscardUnknown

func (m *ChaincodeAction) XXX_DiscardUnknown()

func (*ChaincodeAction) XXX_Marshal

func (m *ChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeAction) XXX_Merge

func (m *ChaincodeAction) XXX_Merge(src proto.Message)

func (*ChaincodeAction) XXX_Size

func (m *ChaincodeAction) XXX_Size() int

func (*ChaincodeAction) XXX_Unmarshal

func (m *ChaincodeAction) XXX_Unmarshal(b []byte) error

type ChaincodeActionPayload

type ChaincodeActionPayload struct {
	// This field contains the bytes of the ChaincodeProposalPayload message from
	// the original invocation (essentially the arguments) after the application
	// of the visibility function. The main visibility modes are "full" (the
	// entire ChaincodeProposalPayload message is included here), "hash" (only
	// the hash of the ChaincodeProposalPayload message is included) or
	// "nothing".  This field will be used to check the consistency of
	// ProposalResponsePayload.proposalHash.  For the CHAINCODE type,
	// ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader ||
	// f(ChaincodeProposalPayload)) where f is the visibility function.
	ChaincodeProposalPayload []byte `` /* 135-byte string literal not displayed */
	// The list of actions to apply to the ledger
	Action               *ChaincodeEndorsedAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

ChaincodeActionPayload is the message to be used for the TransactionAction's payload when the Header's type is set to CHAINCODE. It carries the chaincodeProposalPayload and an endorsed action to apply to the ledger.

func (*ChaincodeActionPayload) Descriptor

func (*ChaincodeActionPayload) Descriptor() ([]byte, []int)

func (*ChaincodeActionPayload) GetAction

func (*ChaincodeActionPayload) GetChaincodeProposalPayload

func (m *ChaincodeActionPayload) GetChaincodeProposalPayload() []byte

func (*ChaincodeActionPayload) ProtoMessage

func (*ChaincodeActionPayload) ProtoMessage()

func (*ChaincodeActionPayload) Reset

func (m *ChaincodeActionPayload) Reset()

func (*ChaincodeActionPayload) String

func (m *ChaincodeActionPayload) String() string

func (*ChaincodeActionPayload) XXX_DiscardUnknown

func (m *ChaincodeActionPayload) XXX_DiscardUnknown()

func (*ChaincodeActionPayload) XXX_Marshal

func (m *ChaincodeActionPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeActionPayload) XXX_Merge

func (m *ChaincodeActionPayload) XXX_Merge(src proto.Message)

func (*ChaincodeActionPayload) XXX_Size

func (m *ChaincodeActionPayload) XXX_Size() int

func (*ChaincodeActionPayload) XXX_Unmarshal

func (m *ChaincodeActionPayload) XXX_Unmarshal(b []byte) error

type ChaincodeCall

type ChaincodeCall struct {
	Name            string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"`
	NoPrivateReads  bool     `protobuf:"varint,3,opt,name=no_private_reads,json=noPrivateReads,proto3" json:"no_private_reads,omitempty"`
	NoPublicWrites  bool     `protobuf:"varint,4,opt,name=no_public_writes,json=noPublicWrites,proto3" json:"no_public_writes,omitempty"`
	// The set of signature policies associated with states in the write-set
	// that have state-based endorsement policies.
	KeyPolicies []*common.SignaturePolicyEnvelope `protobuf:"bytes,5,rep,name=key_policies,json=keyPolicies,proto3" json:"key_policies,omitempty"`
	// Indicates we wish to ignore the namespace endorsement policy
	DisregardNamespacePolicy bool     `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral     struct{} `json:"-"`
	XXX_unrecognized         []byte   `json:"-"`
	XXX_sizecache            int32    `json:"-"`
}

ChaincodeCall defines a call to a chaincode. It may have collections that are related to the chaincode

func (*ChaincodeCall) Descriptor

func (*ChaincodeCall) Descriptor() ([]byte, []int)

func (*ChaincodeCall) GetCollectionNames

func (m *ChaincodeCall) GetCollectionNames() []string

func (*ChaincodeCall) GetDisregardNamespacePolicy

func (m *ChaincodeCall) GetDisregardNamespacePolicy() bool

func (*ChaincodeCall) GetKeyPolicies

func (m *ChaincodeCall) GetKeyPolicies() []*common.SignaturePolicyEnvelope

func (*ChaincodeCall) GetName

func (m *ChaincodeCall) GetName() string

func (*ChaincodeCall) GetNoPrivateReads

func (m *ChaincodeCall) GetNoPrivateReads() bool

func (*ChaincodeCall) GetNoPublicWrites

func (m *ChaincodeCall) GetNoPublicWrites() bool

func (*ChaincodeCall) ProtoMessage

func (*ChaincodeCall) ProtoMessage()

func (*ChaincodeCall) Reset

func (m *ChaincodeCall) Reset()

func (*ChaincodeCall) String

func (m *ChaincodeCall) String() string

func (*ChaincodeCall) XXX_DiscardUnknown

func (m *ChaincodeCall) XXX_DiscardUnknown()

func (*ChaincodeCall) XXX_Marshal

func (m *ChaincodeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeCall) XXX_Merge

func (m *ChaincodeCall) XXX_Merge(src proto.Message)

func (*ChaincodeCall) XXX_Size

func (m *ChaincodeCall) XXX_Size() int

func (*ChaincodeCall) XXX_Unmarshal

func (m *ChaincodeCall) XXX_Unmarshal(b []byte) error

type ChaincodeClient

type ChaincodeClient interface {
	Connect(ctx context.Context, opts ...grpc.CallOption) (Chaincode_ConnectClient, error)
}

ChaincodeClient is the client API for Chaincode service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChaincodeClient

func NewChaincodeClient(cc *grpc.ClientConn) ChaincodeClient

type ChaincodeData

type ChaincodeData struct {
	// Name of the chaincode
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Version of the chaincode
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Escc for the chaincode instance
	Escc string `protobuf:"bytes,3,opt,name=escc,proto3" json:"escc,omitempty"`
	// Vscc for the chaincode instance
	Vscc string `protobuf:"bytes,4,opt,name=vscc,proto3" json:"vscc,omitempty"`
	// Policy endorsement policy for the chaincode instance
	Policy *common.SignaturePolicyEnvelope `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"`
	// Data data specific to the package
	Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// Id of the chaincode that's the unique fingerprint for the CC This is not
	// currently used anywhere but serves as a good eyecatcher
	Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
	// InstantiationPolicy for the chaincode
	InstantiationPolicy  *common.SignaturePolicyEnvelope `protobuf:"bytes,8,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

ChaincodeData defines the datastructure for chaincodes to be serialized by proto Type provides an additional check by directing to use a specific package after instantiation Data is Type specific (see CDSPackage and SignedCDSPackage)

func (*ChaincodeData) Descriptor

func (*ChaincodeData) Descriptor() ([]byte, []int)

func (*ChaincodeData) GetData

func (m *ChaincodeData) GetData() []byte

func (*ChaincodeData) GetEscc

func (m *ChaincodeData) GetEscc() string

func (*ChaincodeData) GetId

func (m *ChaincodeData) GetId() []byte

func (*ChaincodeData) GetInstantiationPolicy

func (m *ChaincodeData) GetInstantiationPolicy() *common.SignaturePolicyEnvelope

func (*ChaincodeData) GetName

func (m *ChaincodeData) GetName() string

func (*ChaincodeData) GetPolicy

func (*ChaincodeData) GetVersion

func (m *ChaincodeData) GetVersion() string

func (*ChaincodeData) GetVscc

func (m *ChaincodeData) GetVscc() string

func (*ChaincodeData) ProtoMessage

func (*ChaincodeData) ProtoMessage()

func (*ChaincodeData) Reset

func (m *ChaincodeData) Reset()

func (*ChaincodeData) String

func (m *ChaincodeData) String() string

func (*ChaincodeData) XXX_DiscardUnknown

func (m *ChaincodeData) XXX_DiscardUnknown()

func (*ChaincodeData) XXX_Marshal

func (m *ChaincodeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeData) XXX_Merge

func (m *ChaincodeData) XXX_Merge(src proto.Message)

func (*ChaincodeData) XXX_Size

func (m *ChaincodeData) XXX_Size() int

func (*ChaincodeData) XXX_Unmarshal

func (m *ChaincodeData) XXX_Unmarshal(b []byte) error

type ChaincodeDeploymentSpec

type ChaincodeDeploymentSpec struct {
	ChaincodeSpec        *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"`
	CodePackage          []byte         `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Specify the deployment of a chaincode. TODO: Define `codePackage`.

func (*ChaincodeDeploymentSpec) Descriptor

func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)

func (*ChaincodeDeploymentSpec) GetChaincodeSpec

func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec

func (*ChaincodeDeploymentSpec) GetCodePackage

func (m *ChaincodeDeploymentSpec) GetCodePackage() []byte

func (*ChaincodeDeploymentSpec) ProtoMessage

func (*ChaincodeDeploymentSpec) ProtoMessage()

func (*ChaincodeDeploymentSpec) Reset

func (m *ChaincodeDeploymentSpec) Reset()

func (*ChaincodeDeploymentSpec) String

func (m *ChaincodeDeploymentSpec) String() string

func (*ChaincodeDeploymentSpec) XXX_DiscardUnknown

func (m *ChaincodeDeploymentSpec) XXX_DiscardUnknown()

func (*ChaincodeDeploymentSpec) XXX_Marshal

func (m *ChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeDeploymentSpec) XXX_Merge

func (m *ChaincodeDeploymentSpec) XXX_Merge(src proto.Message)

func (*ChaincodeDeploymentSpec) XXX_Size

func (m *ChaincodeDeploymentSpec) XXX_Size() int

func (*ChaincodeDeploymentSpec) XXX_Unmarshal

func (m *ChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error

type ChaincodeEndorsedAction

type ChaincodeEndorsedAction struct {
	// This is the bytes of the ProposalResponsePayload message signed by the
	// endorsers.  Recall that for the CHAINCODE type, the
	// ProposalResponsePayload's extenstion field carries a ChaincodeAction
	ProposalResponsePayload []byte `` /* 132-byte string literal not displayed */
	// The endorsement of the proposal, basically the endorser's signature over
	// proposalResponsePayload
	Endorsements         []*Endorsement `protobuf:"bytes,2,rep,name=endorsements,proto3" json:"endorsements,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

ChaincodeEndorsedAction carries information about the endorsement of a specific proposal

func (*ChaincodeEndorsedAction) Descriptor

func (*ChaincodeEndorsedAction) Descriptor() ([]byte, []int)

func (*ChaincodeEndorsedAction) GetEndorsements

func (m *ChaincodeEndorsedAction) GetEndorsements() []*Endorsement

func (*ChaincodeEndorsedAction) GetProposalResponsePayload

func (m *ChaincodeEndorsedAction) GetProposalResponsePayload() []byte

func (*ChaincodeEndorsedAction) ProtoMessage

func (*ChaincodeEndorsedAction) ProtoMessage()

func (*ChaincodeEndorsedAction) Reset

func (m *ChaincodeEndorsedAction) Reset()

func (*ChaincodeEndorsedAction) String

func (m *ChaincodeEndorsedAction) String() string

func (*ChaincodeEndorsedAction) XXX_DiscardUnknown

func (m *ChaincodeEndorsedAction) XXX_DiscardUnknown()

func (*ChaincodeEndorsedAction) XXX_Marshal

func (m *ChaincodeEndorsedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeEndorsedAction) XXX_Merge

func (m *ChaincodeEndorsedAction) XXX_Merge(src proto.Message)

func (*ChaincodeEndorsedAction) XXX_Size

func (m *ChaincodeEndorsedAction) XXX_Size() int

func (*ChaincodeEndorsedAction) XXX_Unmarshal

func (m *ChaincodeEndorsedAction) XXX_Unmarshal(b []byte) error

type ChaincodeEndorsement

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:"-"`
}

ChaincodeEndorsement instructs the peer how transactions should be endorsed. The only endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism. This code simply simulates the proposal to generate a RW set, then signs the result using the peer's local signing identity.

func (*ChaincodeEndorsement) Descriptor

func (*ChaincodeEndorsement) Descriptor() ([]byte, []int)

func (*ChaincodeEndorsement) GetName

func (m *ChaincodeEndorsement) GetName() string

func (*ChaincodeEndorsement) ProtoMessage

func (*ChaincodeEndorsement) ProtoMessage()

func (*ChaincodeEndorsement) Reset

func (m *ChaincodeEndorsement) Reset()

func (*ChaincodeEndorsement) String

func (m *ChaincodeEndorsement) String() string

func (*ChaincodeEndorsement) XXX_DiscardUnknown

func (m *ChaincodeEndorsement) XXX_DiscardUnknown()

func (*ChaincodeEndorsement) XXX_Marshal

func (m *ChaincodeEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeEndorsement) XXX_Merge

func (m *ChaincodeEndorsement) XXX_Merge(src proto.Message)

func (*ChaincodeEndorsement) XXX_Size

func (m *ChaincodeEndorsement) XXX_Size() int

func (*ChaincodeEndorsement) XXX_Unmarshal

func (m *ChaincodeEndorsement) XXX_Unmarshal(b []byte) error

type ChaincodeEvent

type ChaincodeEvent struct {
	ChaincodeId          string   `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	TxId                 string   `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	EventName            string   `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	Payload              []byte   `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChaincodeEvent is used for events and registrations that are specific to chaincode string type - "chaincode"

func (*ChaincodeEvent) Descriptor

func (*ChaincodeEvent) Descriptor() ([]byte, []int)

func (*ChaincodeEvent) GetChaincodeId

func (m *ChaincodeEvent) GetChaincodeId() string

func (*ChaincodeEvent) GetEventName

func (m *ChaincodeEvent) GetEventName() string

func (*ChaincodeEvent) GetPayload

func (m *ChaincodeEvent) GetPayload() []byte

func (*ChaincodeEvent) GetTxId

func (m *ChaincodeEvent) GetTxId() string

func (*ChaincodeEvent) ProtoMessage

func (*ChaincodeEvent) ProtoMessage()

func (*ChaincodeEvent) Reset

func (m *ChaincodeEvent) Reset()

func (*ChaincodeEvent) String

func (m *ChaincodeEvent) String() string

func (*ChaincodeEvent) XXX_DiscardUnknown

func (m *ChaincodeEvent) XXX_DiscardUnknown()

func (*ChaincodeEvent) XXX_Marshal

func (m *ChaincodeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeEvent) XXX_Merge

func (m *ChaincodeEvent) XXX_Merge(src proto.Message)

func (*ChaincodeEvent) XXX_Size

func (m *ChaincodeEvent) XXX_Size() int

func (*ChaincodeEvent) XXX_Unmarshal

func (m *ChaincodeEvent) XXX_Unmarshal(b []byte) error

type ChaincodeHeaderExtension

type ChaincodeHeaderExtension struct {
	// The ID of the chaincode to target.
	ChaincodeId          *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

ChaincodeHeaderExtension is the Header's extentions message to be used when the Header's type is CHAINCODE. This extensions is used to specify which chaincode to invoke and what should appear on the ledger.

func (*ChaincodeHeaderExtension) Descriptor

func (*ChaincodeHeaderExtension) Descriptor() ([]byte, []int)

func (*ChaincodeHeaderExtension) GetChaincodeId

func (m *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID

func (*ChaincodeHeaderExtension) ProtoMessage

func (*ChaincodeHeaderExtension) ProtoMessage()

func (*ChaincodeHeaderExtension) Reset

func (m *ChaincodeHeaderExtension) Reset()

func (*ChaincodeHeaderExtension) String

func (m *ChaincodeHeaderExtension) String() string

func (*ChaincodeHeaderExtension) XXX_DiscardUnknown

func (m *ChaincodeHeaderExtension) XXX_DiscardUnknown()

func (*ChaincodeHeaderExtension) XXX_Marshal

func (m *ChaincodeHeaderExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeHeaderExtension) XXX_Merge

func (m *ChaincodeHeaderExtension) XXX_Merge(src proto.Message)

func (*ChaincodeHeaderExtension) XXX_Size

func (m *ChaincodeHeaderExtension) XXX_Size() int

func (*ChaincodeHeaderExtension) XXX_Unmarshal

func (m *ChaincodeHeaderExtension) XXX_Unmarshal(b []byte) error

type ChaincodeID

type ChaincodeID struct {
	//deploy transaction will use the path
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	//all other requests will use the name (really a hashcode) generated by
	//the deploy transaction
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	//user friendly version name for the chaincode
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChaincodeID contains the path as specified by the deploy transaction that created it as well as the hashCode that is generated by the system for the path. From the user level (ie, CLI, REST API and so on) deploy transaction is expected to provide the path and other requests are expected to provide the hashCode. The other value will be ignored. Internally, the structure could contain both values. For instance, the hashCode will be set when first generated using the path

func (*ChaincodeID) Descriptor

func (*ChaincodeID) Descriptor() ([]byte, []int)

func (*ChaincodeID) GetName

func (m *ChaincodeID) GetName() string

func (*ChaincodeID) GetPath

func (m *ChaincodeID) GetPath() string

func (*ChaincodeID) GetVersion

func (m *ChaincodeID) GetVersion() string

func (*ChaincodeID) ProtoMessage

func (*ChaincodeID) ProtoMessage()

func (*ChaincodeID) Reset

func (m *ChaincodeID) Reset()

func (*ChaincodeID) String

func (m *ChaincodeID) String() string

func (*ChaincodeID) XXX_DiscardUnknown

func (m *ChaincodeID) XXX_DiscardUnknown()

func (*ChaincodeID) XXX_Marshal

func (m *ChaincodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeID) XXX_Merge

func (m *ChaincodeID) XXX_Merge(src proto.Message)

func (*ChaincodeID) XXX_Size

func (m *ChaincodeID) XXX_Size() int

func (*ChaincodeID) XXX_Unmarshal

func (m *ChaincodeID) XXX_Unmarshal(b []byte) error

type ChaincodeIdentifier

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:"-"`
}

ChaincodeIdentifier identifies a piece of chaincode. For a peer to accept invocations of this chaincode, the hash of the installed code must match, as must the version string included with the install command.

func (*ChaincodeIdentifier) Descriptor

func (*ChaincodeIdentifier) Descriptor() ([]byte, []int)

func (*ChaincodeIdentifier) GetHash

func (m *ChaincodeIdentifier) GetHash() []byte

func (*ChaincodeIdentifier) GetVersion

func (m *ChaincodeIdentifier) GetVersion() string

func (*ChaincodeIdentifier) ProtoMessage

func (*ChaincodeIdentifier) ProtoMessage()

func (*ChaincodeIdentifier) Reset

func (m *ChaincodeIdentifier) Reset()

func (*ChaincodeIdentifier) String

func (m *ChaincodeIdentifier) String() string

func (*ChaincodeIdentifier) XXX_DiscardUnknown

func (m *ChaincodeIdentifier) XXX_DiscardUnknown()

func (*ChaincodeIdentifier) XXX_Marshal

func (m *ChaincodeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeIdentifier) XXX_Merge

func (m *ChaincodeIdentifier) XXX_Merge(src proto.Message)

func (*ChaincodeIdentifier) XXX_Size

func (m *ChaincodeIdentifier) XXX_Size() int

func (*ChaincodeIdentifier) XXX_Unmarshal

func (m *ChaincodeIdentifier) XXX_Unmarshal(b []byte) error

type ChaincodeInfo

type ChaincodeInfo struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// the path as specified by the install/instantiate transaction
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// the chaincode function upon instantiation and its arguments. This will be
	// blank if the query is returning information about installed chaincodes.
	Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"`
	// the name of the ESCC for this chaincode. This will be
	// blank if the query is returning information about installed chaincodes.
	Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"`
	// the name of the VSCC for this chaincode. This will be
	// blank if the query is returning information about installed chaincodes.
	Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"`
	// the chaincode unique id.
	// computed as: H(
	//                H(name || version) ||
	//                H(CodePackage)
	//              )
	Id                   []byte   `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChaincodeInfo contains general information about an installed/instantiated chaincode

func (*ChaincodeInfo) Descriptor

func (*ChaincodeInfo) Descriptor() ([]byte, []int)

func (*ChaincodeInfo) GetEscc

func (m *ChaincodeInfo) GetEscc() string

func (*ChaincodeInfo) GetId

func (m *ChaincodeInfo) GetId() []byte

func (*ChaincodeInfo) GetInput

func (m *ChaincodeInfo) GetInput() string

func (*ChaincodeInfo) GetName

func (m *ChaincodeInfo) GetName() string

func (*ChaincodeInfo) GetPath

func (m *ChaincodeInfo) GetPath() string

func (*ChaincodeInfo) GetVersion

func (m *ChaincodeInfo) GetVersion() string

func (*ChaincodeInfo) GetVscc

func (m *ChaincodeInfo) GetVscc() string

func (*ChaincodeInfo) ProtoMessage

func (*ChaincodeInfo) ProtoMessage()

func (*ChaincodeInfo) Reset

func (m *ChaincodeInfo) Reset()

func (*ChaincodeInfo) String

func (m *ChaincodeInfo) String() string

func (*ChaincodeInfo) XXX_DiscardUnknown

func (m *ChaincodeInfo) XXX_DiscardUnknown()

func (*ChaincodeInfo) XXX_Marshal

func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeInfo) XXX_Merge

func (m *ChaincodeInfo) XXX_Merge(src proto.Message)

func (*ChaincodeInfo) XXX_Size

func (m *ChaincodeInfo) XXX_Size() int

func (*ChaincodeInfo) XXX_Unmarshal

func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error

type ChaincodeInput

type ChaincodeInput struct {
	Args        [][]byte          `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	Decorations map[string][]byte `` /* 163-byte string literal not displayed */
	// is_init is used for the application to signal that an invocation is to be routed
	// to the legacy 'Init' function for compatibility with chaincodes which handled
	// Init in the old way.  New applications should manage their initialized state
	// themselves.
	IsInit               bool     `protobuf:"varint,3,opt,name=is_init,json=isInit,proto3" json:"is_init,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Carries the chaincode function and its arguments. UnmarshalJSON in transaction.go converts the string-based REST/JSON input to the []byte-based current ChaincodeInput structure.

func (*ChaincodeInput) Descriptor

func (*ChaincodeInput) Descriptor() ([]byte, []int)

func (*ChaincodeInput) GetArgs

func (m *ChaincodeInput) GetArgs() [][]byte

func (*ChaincodeInput) GetDecorations

func (m *ChaincodeInput) GetDecorations() map[string][]byte

func (*ChaincodeInput) GetIsInit

func (m *ChaincodeInput) GetIsInit() bool

func (*ChaincodeInput) ProtoMessage

func (*ChaincodeInput) ProtoMessage()

func (*ChaincodeInput) Reset

func (m *ChaincodeInput) Reset()

func (*ChaincodeInput) String

func (m *ChaincodeInput) String() string

func (*ChaincodeInput) XXX_DiscardUnknown

func (m *ChaincodeInput) XXX_DiscardUnknown()

func (*ChaincodeInput) XXX_Marshal

func (m *ChaincodeInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeInput) XXX_Merge

func (m *ChaincodeInput) XXX_Merge(src proto.Message)

func (*ChaincodeInput) XXX_Size

func (m *ChaincodeInput) XXX_Size() int

func (*ChaincodeInput) XXX_Unmarshal

func (m *ChaincodeInput) XXX_Unmarshal(b []byte) error

type ChaincodeInterest

type ChaincodeInterest struct {
	Chaincodes           []*ChaincodeCall `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

ChaincodeInterest defines an interest about an endorsement for a specific single chaincode invocation. Multiple chaincodes indicate chaincode to chaincode invocations.

func (*ChaincodeInterest) Descriptor

func (*ChaincodeInterest) Descriptor() ([]byte, []int)

func (*ChaincodeInterest) GetChaincodes

func (m *ChaincodeInterest) GetChaincodes() []*ChaincodeCall

func (*ChaincodeInterest) ProtoMessage

func (*ChaincodeInterest) ProtoMessage()

func (*ChaincodeInterest) Reset

func (m *ChaincodeInterest) Reset()

func (*ChaincodeInterest) String

func (m *ChaincodeInterest) String() string

func (*ChaincodeInterest) XXX_DiscardUnknown

func (m *ChaincodeInterest) XXX_DiscardUnknown()

func (*ChaincodeInterest) XXX_Marshal

func (m *ChaincodeInterest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeInterest) XXX_Merge

func (m *ChaincodeInterest) XXX_Merge(src proto.Message)

func (*ChaincodeInterest) XXX_Size

func (m *ChaincodeInterest) XXX_Size() int

func (*ChaincodeInterest) XXX_Unmarshal

func (m *ChaincodeInterest) XXX_Unmarshal(b []byte) error

type ChaincodeInvocationSpec

type ChaincodeInvocationSpec struct {
	ChaincodeSpec        *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Carries the chaincode function and its arguments.

func (*ChaincodeInvocationSpec) Descriptor

func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)

func (*ChaincodeInvocationSpec) GetChaincodeSpec

func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec

func (*ChaincodeInvocationSpec) ProtoMessage

func (*ChaincodeInvocationSpec) ProtoMessage()

func (*ChaincodeInvocationSpec) Reset

func (m *ChaincodeInvocationSpec) Reset()

func (*ChaincodeInvocationSpec) String

func (m *ChaincodeInvocationSpec) String() string

func (*ChaincodeInvocationSpec) XXX_DiscardUnknown

func (m *ChaincodeInvocationSpec) XXX_DiscardUnknown()

func (*ChaincodeInvocationSpec) XXX_Marshal

func (m *ChaincodeInvocationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeInvocationSpec) XXX_Merge

func (m *ChaincodeInvocationSpec) XXX_Merge(src proto.Message)

func (*ChaincodeInvocationSpec) XXX_Size

func (m *ChaincodeInvocationSpec) XXX_Size() int

func (*ChaincodeInvocationSpec) XXX_Unmarshal

func (m *ChaincodeInvocationSpec) XXX_Unmarshal(b []byte) error

type ChaincodeMessage

type ChaincodeMessage struct {
	Type      ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeMessage_Type" json:"type,omitempty"`
	Timestamp *timestamp.Timestamp  `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Payload   []byte                `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	Txid      string                `protobuf:"bytes,4,opt,name=txid,proto3" json:"txid,omitempty"`
	Proposal  *SignedProposal       `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"`
	//event emitted by chaincode. Used only with Init or Invoke.
	// This event is then stored (currently)
	//with Block.NonHashData.TransactionResult
	ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,6,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"`
	//channel id
	ChannelId            string   `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChaincodeMessage) Descriptor

func (*ChaincodeMessage) Descriptor() ([]byte, []int)

func (*ChaincodeMessage) GetChaincodeEvent

func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent

func (*ChaincodeMessage) GetChannelId

func (m *ChaincodeMessage) GetChannelId() string

func (*ChaincodeMessage) GetPayload

func (m *ChaincodeMessage) GetPayload() []byte

func (*ChaincodeMessage) GetProposal

func (m *ChaincodeMessage) GetProposal() *SignedProposal

func (*ChaincodeMessage) GetTimestamp

func (m *ChaincodeMessage) GetTimestamp() *timestamp.Timestamp

func (*ChaincodeMessage) GetTxid

func (m *ChaincodeMessage) GetTxid() string

func (*ChaincodeMessage) GetType

func (*ChaincodeMessage) ProtoMessage

func (*ChaincodeMessage) ProtoMessage()

func (*ChaincodeMessage) Reset

func (m *ChaincodeMessage) Reset()

func (*ChaincodeMessage) String

func (m *ChaincodeMessage) String() string

func (*ChaincodeMessage) XXX_DiscardUnknown

func (m *ChaincodeMessage) XXX_DiscardUnknown()

func (*ChaincodeMessage) XXX_Marshal

func (m *ChaincodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeMessage) XXX_Merge

func (m *ChaincodeMessage) XXX_Merge(src proto.Message)

func (*ChaincodeMessage) XXX_Size

func (m *ChaincodeMessage) XXX_Size() int

func (*ChaincodeMessage) XXX_Unmarshal

func (m *ChaincodeMessage) XXX_Unmarshal(b []byte) error

type ChaincodeMessage_Type

type ChaincodeMessage_Type int32
const (
	ChaincodeMessage_UNDEFINED             ChaincodeMessage_Type = 0
	ChaincodeMessage_REGISTER              ChaincodeMessage_Type = 1
	ChaincodeMessage_REGISTERED            ChaincodeMessage_Type = 2
	ChaincodeMessage_INIT                  ChaincodeMessage_Type = 3
	ChaincodeMessage_READY                 ChaincodeMessage_Type = 4
	ChaincodeMessage_TRANSACTION           ChaincodeMessage_Type = 5
	ChaincodeMessage_COMPLETED             ChaincodeMessage_Type = 6
	ChaincodeMessage_ERROR                 ChaincodeMessage_Type = 7
	ChaincodeMessage_GET_STATE             ChaincodeMessage_Type = 8
	ChaincodeMessage_PUT_STATE             ChaincodeMessage_Type = 9
	ChaincodeMessage_DEL_STATE             ChaincodeMessage_Type = 10
	ChaincodeMessage_INVOKE_CHAINCODE      ChaincodeMessage_Type = 11
	ChaincodeMessage_RESPONSE              ChaincodeMessage_Type = 13
	ChaincodeMessage_GET_STATE_BY_RANGE    ChaincodeMessage_Type = 14
	ChaincodeMessage_GET_QUERY_RESULT      ChaincodeMessage_Type = 15
	ChaincodeMessage_QUERY_STATE_NEXT      ChaincodeMessage_Type = 16
	ChaincodeMessage_QUERY_STATE_CLOSE     ChaincodeMessage_Type = 17
	ChaincodeMessage_KEEPALIVE             ChaincodeMessage_Type = 18
	ChaincodeMessage_GET_HISTORY_FOR_KEY   ChaincodeMessage_Type = 19
	ChaincodeMessage_GET_STATE_METADATA    ChaincodeMessage_Type = 20
	ChaincodeMessage_PUT_STATE_METADATA    ChaincodeMessage_Type = 21
	ChaincodeMessage_GET_PRIVATE_DATA_HASH ChaincodeMessage_Type = 22
	ChaincodeMessage_PURGE_PRIVATE_DATA    ChaincodeMessage_Type = 23
)

func (ChaincodeMessage_Type) EnumDescriptor

func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int)

func (ChaincodeMessage_Type) String

func (x ChaincodeMessage_Type) String() string

type ChaincodeProposalPayload

type ChaincodeProposalPayload struct {
	// Input contains the arguments for this invocation. If this invocation
	// deploys a new chaincode, ESCC/VSCC are part of this field.
	// This is usually a marshaled ChaincodeInvocationSpec
	Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	// TransientMap contains data (e.g. cryptographic material) that might be used
	// to implement some form of application-level confidentiality. The contents
	// of this field are supposed to always be omitted from the transaction and
	// excluded from the ledger.
	TransientMap         map[string][]byte `` /* 165-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

ChaincodeProposalPayload is the Proposal's payload message to be used when the Header's type is CHAINCODE. It contains the arguments for this invocation.

func (*ChaincodeProposalPayload) Descriptor

func (*ChaincodeProposalPayload) Descriptor() ([]byte, []int)

func (*ChaincodeProposalPayload) GetInput

func (m *ChaincodeProposalPayload) GetInput() []byte

func (*ChaincodeProposalPayload) GetTransientMap

func (m *ChaincodeProposalPayload) GetTransientMap() map[string][]byte

func (*ChaincodeProposalPayload) ProtoMessage

func (*ChaincodeProposalPayload) ProtoMessage()

func (*ChaincodeProposalPayload) Reset

func (m *ChaincodeProposalPayload) Reset()

func (*ChaincodeProposalPayload) String

func (m *ChaincodeProposalPayload) String() string

func (*ChaincodeProposalPayload) XXX_DiscardUnknown

func (m *ChaincodeProposalPayload) XXX_DiscardUnknown()

func (*ChaincodeProposalPayload) XXX_Marshal

func (m *ChaincodeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeProposalPayload) XXX_Merge

func (m *ChaincodeProposalPayload) XXX_Merge(src proto.Message)

func (*ChaincodeProposalPayload) XXX_Size

func (m *ChaincodeProposalPayload) XXX_Size() int

func (*ChaincodeProposalPayload) XXX_Unmarshal

func (m *ChaincodeProposalPayload) XXX_Unmarshal(b []byte) error

type ChaincodeQueryResponse

type ChaincodeQueryResponse struct {
	Chaincodes           []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

ChaincodeQueryResponse returns information about each chaincode that pertains to a query in lscc.go, such as GetChaincodes (returns all chaincodes instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes installed on a peer)

func (*ChaincodeQueryResponse) Descriptor

func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int)

func (*ChaincodeQueryResponse) GetChaincodes

func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo

func (*ChaincodeQueryResponse) ProtoMessage

func (*ChaincodeQueryResponse) ProtoMessage()

func (*ChaincodeQueryResponse) Reset

func (m *ChaincodeQueryResponse) Reset()

func (*ChaincodeQueryResponse) String

func (m *ChaincodeQueryResponse) String() string

func (*ChaincodeQueryResponse) XXX_DiscardUnknown

func (m *ChaincodeQueryResponse) XXX_DiscardUnknown()

func (*ChaincodeQueryResponse) XXX_Marshal

func (m *ChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeQueryResponse) XXX_Merge

func (m *ChaincodeQueryResponse) XXX_Merge(src proto.Message)

func (*ChaincodeQueryResponse) XXX_Size

func (m *ChaincodeQueryResponse) XXX_Size() int

func (*ChaincodeQueryResponse) XXX_Unmarshal

func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error

type ChaincodeServer

type ChaincodeServer interface {
	Connect(Chaincode_ConnectServer) error
}

ChaincodeServer is the server API for Chaincode service.

type ChaincodeSpec

type ChaincodeSpec struct {
	Type                 ChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeSpec_Type" json:"type,omitempty"`
	ChaincodeId          *ChaincodeID       `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	Input                *ChaincodeInput    `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	Timeout              int32              `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Carries the chaincode specification. This is the actual metadata required for defining a chaincode.

func (*ChaincodeSpec) Descriptor

func (*ChaincodeSpec) Descriptor() ([]byte, []int)

func (*ChaincodeSpec) GetChaincodeId

func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID

func (*ChaincodeSpec) GetInput

func (m *ChaincodeSpec) GetInput() *ChaincodeInput

func (*ChaincodeSpec) GetTimeout

func (m *ChaincodeSpec) GetTimeout() int32

func (*ChaincodeSpec) GetType

func (m *ChaincodeSpec) GetType() ChaincodeSpec_Type

func (*ChaincodeSpec) ProtoMessage

func (*ChaincodeSpec) ProtoMessage()

func (*ChaincodeSpec) Reset

func (m *ChaincodeSpec) Reset()

func (*ChaincodeSpec) String

func (m *ChaincodeSpec) String() string

func (*ChaincodeSpec) XXX_DiscardUnknown

func (m *ChaincodeSpec) XXX_DiscardUnknown()

func (*ChaincodeSpec) XXX_Marshal

func (m *ChaincodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeSpec) XXX_Merge

func (m *ChaincodeSpec) XXX_Merge(src proto.Message)

func (*ChaincodeSpec) XXX_Size

func (m *ChaincodeSpec) XXX_Size() int

func (*ChaincodeSpec) XXX_Unmarshal

func (m *ChaincodeSpec) XXX_Unmarshal(b []byte) error

type ChaincodeSpec_Type

type ChaincodeSpec_Type int32
const (
	ChaincodeSpec_UNDEFINED ChaincodeSpec_Type = 0
	ChaincodeSpec_GOLANG    ChaincodeSpec_Type = 1
	ChaincodeSpec_NODE      ChaincodeSpec_Type = 2
	ChaincodeSpec_CAR       ChaincodeSpec_Type = 3
	ChaincodeSpec_JAVA      ChaincodeSpec_Type = 4
)

func (ChaincodeSpec_Type) EnumDescriptor

func (ChaincodeSpec_Type) EnumDescriptor() ([]byte, []int)

func (ChaincodeSpec_Type) String

func (x ChaincodeSpec_Type) String() string

type ChaincodeSupportClient

type ChaincodeSupportClient interface {
	Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error)
}

ChaincodeSupportClient is the client API for ChaincodeSupport service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChaincodeSupportClient

func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient

type ChaincodeSupportServer

type ChaincodeSupportServer interface {
	Register(ChaincodeSupport_RegisterServer) error
}

ChaincodeSupportServer is the server API for ChaincodeSupport service.

type ChaincodeSupport_RegisterClient

type ChaincodeSupport_RegisterClient interface {
	Send(*ChaincodeMessage) error
	Recv() (*ChaincodeMessage, error)
	grpc.ClientStream
}

type ChaincodeSupport_RegisterServer

type ChaincodeSupport_RegisterServer interface {
	Send(*ChaincodeMessage) error
	Recv() (*ChaincodeMessage, error)
	grpc.ServerStream
}

type ChaincodeValidation

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:"-"`
}

ChaincodeValidation instructs the peer how transactions for this chaincode should be validated. The only validation mechanism which ships with fabric today is the standard 'vscc' validation mechanism. This built in validation method utilizes an endorsement policy which checks that a sufficient number of signatures have been included. The 'arguement' field encodes any parameters required by the validation implementation.

func (*ChaincodeValidation) Descriptor

func (*ChaincodeValidation) Descriptor() ([]byte, []int)

func (*ChaincodeValidation) GetArgument

func (m *ChaincodeValidation) GetArgument() []byte

func (*ChaincodeValidation) GetName

func (m *ChaincodeValidation) GetName() string

func (*ChaincodeValidation) ProtoMessage

func (*ChaincodeValidation) ProtoMessage()

func (*ChaincodeValidation) Reset

func (m *ChaincodeValidation) Reset()

func (*ChaincodeValidation) String

func (m *ChaincodeValidation) String() string

func (*ChaincodeValidation) XXX_DiscardUnknown

func (m *ChaincodeValidation) XXX_DiscardUnknown()

func (*ChaincodeValidation) XXX_Marshal

func (m *ChaincodeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeValidation) XXX_Merge

func (m *ChaincodeValidation) XXX_Merge(src proto.Message)

func (*ChaincodeValidation) XXX_Size

func (m *ChaincodeValidation) XXX_Size() int

func (*ChaincodeValidation) XXX_Unmarshal

func (m *ChaincodeValidation) XXX_Unmarshal(b []byte) error

type Chaincode_ConnectClient

type Chaincode_ConnectClient interface {
	Send(*ChaincodeMessage) error
	Recv() (*ChaincodeMessage, error)
	grpc.ClientStream
}

type Chaincode_ConnectServer

type Chaincode_ConnectServer interface {
	Send(*ChaincodeMessage) error
	Recv() (*ChaincodeMessage, error)
	grpc.ServerStream
}

type ChannelInfo

type ChannelInfo struct {
	ChannelId            string   `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChannelInfo contains general information about channels

func (*ChannelInfo) Descriptor

func (*ChannelInfo) Descriptor() ([]byte, []int)

func (*ChannelInfo) GetChannelId

func (m *ChannelInfo) GetChannelId() string

func (*ChannelInfo) ProtoMessage

func (*ChannelInfo) ProtoMessage()

func (*ChannelInfo) Reset

func (m *ChannelInfo) Reset()

func (*ChannelInfo) String

func (m *ChannelInfo) String() string

func (*ChannelInfo) XXX_DiscardUnknown

func (m *ChannelInfo) XXX_DiscardUnknown()

func (*ChannelInfo) XXX_Marshal

func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChannelInfo) XXX_Merge

func (m *ChannelInfo) XXX_Merge(src proto.Message)

func (*ChannelInfo) XXX_Size

func (m *ChannelInfo) XXX_Size() int

func (*ChannelInfo) XXX_Unmarshal

func (m *ChannelInfo) XXX_Unmarshal(b []byte) error

type ChannelQueryResponse

type ChannelQueryResponse struct {
	Channels             []*ChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

ChannelQueryResponse returns information about each channel that pertains to a query in lscc.go, such as GetChannels (returns all channels for a given peer)

func (*ChannelQueryResponse) Descriptor

func (*ChannelQueryResponse) Descriptor() ([]byte, []int)

func (*ChannelQueryResponse) GetChannels

func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo

func (*ChannelQueryResponse) ProtoMessage

func (*ChannelQueryResponse) ProtoMessage()

func (*ChannelQueryResponse) Reset

func (m *ChannelQueryResponse) Reset()

func (*ChannelQueryResponse) String

func (m *ChannelQueryResponse) String() string

func (*ChannelQueryResponse) XXX_DiscardUnknown

func (m *ChannelQueryResponse) XXX_DiscardUnknown()

func (*ChannelQueryResponse) XXX_Marshal

func (m *ChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChannelQueryResponse) XXX_Merge

func (m *ChannelQueryResponse) XXX_Merge(src proto.Message)

func (*ChannelQueryResponse) XXX_Size

func (m *ChannelQueryResponse) XXX_Size() int

func (*ChannelQueryResponse) XXX_Unmarshal

func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error

type CollectionConfig

type CollectionConfig struct {
	// Types that are valid to be assigned to Payload:
	//	*CollectionConfig_StaticCollectionConfig
	Payload              isCollectionConfig_Payload `protobuf_oneof:"payload"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

CollectionConfig defines the configuration of a collection object; it currently contains a single, static type. Dynamic collections are deferred.

func (*CollectionConfig) Descriptor

func (*CollectionConfig) Descriptor() ([]byte, []int)

func (*CollectionConfig) GetPayload

func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload

func (*CollectionConfig) GetStaticCollectionConfig

func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig

func (*CollectionConfig) ProtoMessage

func (*CollectionConfig) ProtoMessage()

func (*CollectionConfig) Reset

func (m *CollectionConfig) Reset()

func (*CollectionConfig) String

func (m *CollectionConfig) String() string

func (*CollectionConfig) XXX_DiscardUnknown

func (m *CollectionConfig) XXX_DiscardUnknown()

func (*CollectionConfig) XXX_Marshal

func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionConfig) XXX_Merge

func (m *CollectionConfig) XXX_Merge(src proto.Message)

func (*CollectionConfig) XXX_OneofWrappers

func (*CollectionConfig) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CollectionConfig) XXX_Size

func (m *CollectionConfig) XXX_Size() int

func (*CollectionConfig) XXX_Unmarshal

func (m *CollectionConfig) XXX_Unmarshal(b []byte) error

type CollectionConfigPackage

type CollectionConfigPackage struct {
	Config               []*CollectionConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

CollectionConfigPackage represents an array of CollectionConfig messages; the extra struct is required because repeated oneof is forbidden by the protobuf syntax

func (*CollectionConfigPackage) Descriptor

func (*CollectionConfigPackage) Descriptor() ([]byte, []int)

func (*CollectionConfigPackage) GetConfig

func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig

func (*CollectionConfigPackage) ProtoMessage

func (*CollectionConfigPackage) ProtoMessage()

func (*CollectionConfigPackage) Reset

func (m *CollectionConfigPackage) Reset()

func (*CollectionConfigPackage) String

func (m *CollectionConfigPackage) String() string

func (*CollectionConfigPackage) XXX_DiscardUnknown

func (m *CollectionConfigPackage) XXX_DiscardUnknown()

func (*CollectionConfigPackage) XXX_Marshal

func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionConfigPackage) XXX_Merge

func (m *CollectionConfigPackage) XXX_Merge(src proto.Message)

func (*CollectionConfigPackage) XXX_Size

func (m *CollectionConfigPackage) XXX_Size() int

func (*CollectionConfigPackage) XXX_Unmarshal

func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error

type CollectionConfig_StaticCollectionConfig

type CollectionConfig_StaticCollectionConfig struct {
	StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"`
}

type CollectionPolicyConfig

type CollectionPolicyConfig struct {
	// Types that are valid to be assigned to Payload:
	//	*CollectionPolicyConfig_SignaturePolicy
	Payload              isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

Collection policy configuration. Initially, the configuration can only contain a SignaturePolicy. In the future, the SignaturePolicy may be a more general Policy. Instead of containing the actual policy, the configuration may in the future contain a string reference to a policy.

func (*CollectionPolicyConfig) Descriptor

func (*CollectionPolicyConfig) Descriptor() ([]byte, []int)

func (*CollectionPolicyConfig) GetPayload

func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload

func (*CollectionPolicyConfig) GetSignaturePolicy

func (m *CollectionPolicyConfig) GetSignaturePolicy() *common.SignaturePolicyEnvelope

func (*CollectionPolicyConfig) ProtoMessage

func (*CollectionPolicyConfig) ProtoMessage()

func (*CollectionPolicyConfig) Reset

func (m *CollectionPolicyConfig) Reset()

func (*CollectionPolicyConfig) String

func (m *CollectionPolicyConfig) String() string

func (*CollectionPolicyConfig) XXX_DiscardUnknown

func (m *CollectionPolicyConfig) XXX_DiscardUnknown()

func (*CollectionPolicyConfig) XXX_Marshal

func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionPolicyConfig) XXX_Merge

func (m *CollectionPolicyConfig) XXX_Merge(src proto.Message)

func (*CollectionPolicyConfig) XXX_OneofWrappers

func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CollectionPolicyConfig) XXX_Size

func (m *CollectionPolicyConfig) XXX_Size() int

func (*CollectionPolicyConfig) XXX_Unmarshal

func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error

type CollectionPolicyConfig_SignaturePolicy

type CollectionPolicyConfig_SignaturePolicy struct {
	SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}

type ConfigTree

type ConfigTree struct {
	ChannelConfig        *common.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"`
	ResourcesConfig      *common.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

ConfigTree encapsulates channel and resources configuration of a channel. Both configurations are represented as common.Config

func (*ConfigTree) Descriptor

func (*ConfigTree) Descriptor() ([]byte, []int)

func (*ConfigTree) GetChannelConfig

func (m *ConfigTree) GetChannelConfig() *common.Config

func (*ConfigTree) GetResourcesConfig

func (m *ConfigTree) GetResourcesConfig() *common.Config

func (*ConfigTree) ProtoMessage

func (*ConfigTree) ProtoMessage()

func (*ConfigTree) Reset

func (m *ConfigTree) Reset()

func (*ConfigTree) String

func (m *ConfigTree) String() string

func (*ConfigTree) XXX_DiscardUnknown

func (m *ConfigTree) XXX_DiscardUnknown()

func (*ConfigTree) XXX_Marshal

func (m *ConfigTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigTree) XXX_Merge

func (m *ConfigTree) XXX_Merge(src proto.Message)

func (*ConfigTree) XXX_Size

func (m *ConfigTree) XXX_Size() int

func (*ConfigTree) XXX_Unmarshal

func (m *ConfigTree) XXX_Unmarshal(b []byte) error

type DelState

type DelState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DelState is the payload of a ChaincodeMessage. It contains a key which needs to be recorded in the transaction's write set as a delete operation. If the collection is specified, the key needs to be recorded in the transaction's private write set as a delete operation.

func (*DelState) Descriptor

func (*DelState) Descriptor() ([]byte, []int)

func (*DelState) GetCollection

func (m *DelState) GetCollection() string

func (*DelState) GetKey

func (m *DelState) GetKey() string

func (*DelState) ProtoMessage

func (*DelState) ProtoMessage()

func (*DelState) Reset

func (m *DelState) Reset()

func (*DelState) String

func (m *DelState) String() string

func (*DelState) XXX_DiscardUnknown

func (m *DelState) XXX_DiscardUnknown()

func (*DelState) XXX_Marshal

func (m *DelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelState) XXX_Merge

func (m *DelState) XXX_Merge(src proto.Message)

func (*DelState) XXX_Size

func (m *DelState) XXX_Size() int

func (*DelState) XXX_Unmarshal

func (m *DelState) XXX_Unmarshal(b []byte) error

type DeliverClient

type DeliverClient interface {
	// Deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with
	// Payload data as a marshaled orderer.SeekInfo message,
	// then a stream of block replies is received
	Deliver(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverClient, error)
	// DeliverFiltered first requires an Envelope of type ab.DELIVER_SEEK_INFO with
	// Payload data as a marshaled orderer.SeekInfo message,
	// then a stream of **filtered** block replies is received
	DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverFilteredClient, error)
	// DeliverWithPrivateData first requires an Envelope of type ab.DELIVER_SEEK_INFO with
	// Payload data as a marshaled orderer.SeekInfo message,
	// then a stream of block and private data replies is received
	DeliverWithPrivateData(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverWithPrivateDataClient, error)
}

DeliverClient is the client API for Deliver service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDeliverClient

func NewDeliverClient(cc *grpc.ClientConn) DeliverClient

type DeliverResponse

type DeliverResponse struct {
	// Types that are valid to be assigned to Type:
	//	*DeliverResponse_Status
	//	*DeliverResponse_Block
	//	*DeliverResponse_FilteredBlock
	//	*DeliverResponse_BlockAndPrivateData
	Type                 isDeliverResponse_Type `protobuf_oneof:"Type"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

DeliverResponse

func (*DeliverResponse) Descriptor

func (*DeliverResponse) Descriptor() ([]byte, []int)

func (*DeliverResponse) GetBlock

func (m *DeliverResponse) GetBlock() *common.Block

func (*DeliverResponse) GetBlockAndPrivateData

func (m *DeliverResponse) GetBlockAndPrivateData() *BlockAndPrivateData

func (*DeliverResponse) GetFilteredBlock

func (m *DeliverResponse) GetFilteredBlock() *FilteredBlock

func (*DeliverResponse) GetStatus

func (m *DeliverResponse) GetStatus() common.Status

func (*DeliverResponse) GetType

func (m *DeliverResponse) GetType() isDeliverResponse_Type

func (*DeliverResponse) ProtoMessage

func (*DeliverResponse) ProtoMessage()

func (*DeliverResponse) Reset

func (m *DeliverResponse) Reset()

func (*DeliverResponse) String

func (m *DeliverResponse) String() string

func (*DeliverResponse) XXX_DiscardUnknown

func (m *DeliverResponse) XXX_DiscardUnknown()

func (*DeliverResponse) XXX_Marshal

func (m *DeliverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeliverResponse) XXX_Merge

func (m *DeliverResponse) XXX_Merge(src proto.Message)

func (*DeliverResponse) XXX_OneofWrappers

func (*DeliverResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*DeliverResponse) XXX_Size

func (m *DeliverResponse) XXX_Size() int

func (*DeliverResponse) XXX_Unmarshal

func (m *DeliverResponse) XXX_Unmarshal(b []byte) error

type DeliverResponse_Block

type DeliverResponse_Block struct {
	Block *common.Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}

type DeliverResponse_BlockAndPrivateData

type DeliverResponse_BlockAndPrivateData struct {
	BlockAndPrivateData *BlockAndPrivateData `protobuf:"bytes,4,opt,name=block_and_private_data,json=blockAndPrivateData,proto3,oneof"`
}

type DeliverResponse_FilteredBlock

type DeliverResponse_FilteredBlock struct {
	FilteredBlock *FilteredBlock `protobuf:"bytes,3,opt,name=filtered_block,json=filteredBlock,proto3,oneof"`
}

type DeliverResponse_Status

type DeliverResponse_Status struct {
	Status common.Status `protobuf:"varint,1,opt,name=status,proto3,enum=common.Status,oneof"`
}

type DeliverServer

type DeliverServer interface {
	// Deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with
	// Payload data as a marshaled orderer.SeekInfo message,
	// then a stream of block replies is received
	Deliver(Deliver_DeliverServer) error
	// DeliverFiltered first requires an Envelope of type ab.DELIVER_SEEK_INFO with
	// Payload data as a marshaled orderer.SeekInfo message,
	// then a stream of **filtered** block replies is received
	DeliverFiltered(Deliver_DeliverFilteredServer) error
	// DeliverWithPrivateData first requires an Envelope of type ab.DELIVER_SEEK_INFO with
	// Payload data as a marshaled orderer.SeekInfo message,
	// then a stream of block and private data replies is received
	DeliverWithPrivateData(Deliver_DeliverWithPrivateDataServer) error
}

DeliverServer is the server API for Deliver service.

type Deliver_DeliverClient

type Deliver_DeliverClient interface {
	Send(*common.Envelope) error
	Recv() (*DeliverResponse, error)
	grpc.ClientStream
}

type Deliver_DeliverFilteredClient

type Deliver_DeliverFilteredClient interface {
	Send(*common.Envelope) error
	Recv() (*DeliverResponse, error)
	grpc.ClientStream
}

type Deliver_DeliverFilteredServer

type Deliver_DeliverFilteredServer interface {
	Send(*DeliverResponse) error
	Recv() (*common.Envelope, error)
	grpc.ServerStream
}

type Deliver_DeliverServer

type Deliver_DeliverServer interface {
	Send(*DeliverResponse) error
	Recv() (*common.Envelope, error)
	grpc.ServerStream
}

type Deliver_DeliverWithPrivateDataClient

type Deliver_DeliverWithPrivateDataClient interface {
	Send(*common.Envelope) error
	Recv() (*DeliverResponse, error)
	grpc.ClientStream
}

type Deliver_DeliverWithPrivateDataServer

type Deliver_DeliverWithPrivateDataServer interface {
	Send(*DeliverResponse) error
	Recv() (*common.Envelope, error)
	grpc.ServerStream
}

type Endorsement

type Endorsement struct {
	// Identity of the endorser (e.g. its certificate)
	Endorser []byte `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"`
	// Signature of the payload included in ProposalResponse concatenated with
	// the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An endorsement is a signature of an endorser over a proposal response. By producing an endorsement message, an endorser implicitly "approves" that proposal response and the actions contained therein. When enough endorsements have been collected, a transaction can be generated out of a set of proposal responses. Note that this message only contains an identity and a signature but no signed payload. This is intentional because endorsements are supposed to be collected in a transaction, and they are all expected to endorse a single proposal response/action (many endorsements over a single proposal response)

func (*Endorsement) Descriptor

func (*Endorsement) Descriptor() ([]byte, []int)

func (*Endorsement) GetEndorser

func (m *Endorsement) GetEndorser() []byte

func (*Endorsement) GetSignature

func (m *Endorsement) GetSignature() []byte

func (*Endorsement) ProtoMessage

func (*Endorsement) ProtoMessage()

func (*Endorsement) Reset

func (m *Endorsement) Reset()

func (*Endorsement) String

func (m *Endorsement) String() string

func (*Endorsement) XXX_DiscardUnknown

func (m *Endorsement) XXX_DiscardUnknown()

func (*Endorsement) XXX_Marshal

func (m *Endorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Endorsement) XXX_Merge

func (m *Endorsement) XXX_Merge(src proto.Message)

func (*Endorsement) XXX_Size

func (m *Endorsement) XXX_Size() int

func (*Endorsement) XXX_Unmarshal

func (m *Endorsement) XXX_Unmarshal(b []byte) error

type EndorserClient

type EndorserClient interface {
	ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error)
}

EndorserClient is the client API for Endorser service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEndorserClient

func NewEndorserClient(cc *grpc.ClientConn) EndorserClient

type EndorserServer

type EndorserServer interface {
	ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error)
}

EndorserServer is the server API for Endorser service.

type FilteredBlock

type FilteredBlock struct {
	ChannelId            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:"-"`
}

FilteredBlock is a minimal set of information about a block

func (*FilteredBlock) Descriptor

func (*FilteredBlock) Descriptor() ([]byte, []int)

func (*FilteredBlock) GetChannelId

func (m *FilteredBlock) GetChannelId() string

func (*FilteredBlock) GetFilteredTransactions

func (m *FilteredBlock) GetFilteredTransactions() []*FilteredTransaction

func (*FilteredBlock) GetNumber

func (m *FilteredBlock) GetNumber() uint64

func (*FilteredBlock) ProtoMessage

func (*FilteredBlock) ProtoMessage()

func (*FilteredBlock) Reset

func (m *FilteredBlock) Reset()

func (*FilteredBlock) String

func (m *FilteredBlock) String() string

func (*FilteredBlock) XXX_DiscardUnknown

func (m *FilteredBlock) XXX_DiscardUnknown()

func (*FilteredBlock) XXX_Marshal

func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilteredBlock) XXX_Merge

func (m *FilteredBlock) XXX_Merge(src proto.Message)

func (*FilteredBlock) XXX_Size

func (m *FilteredBlock) XXX_Size() int

func (*FilteredBlock) XXX_Unmarshal

func (m *FilteredBlock) XXX_Unmarshal(b []byte) error

type FilteredChaincodeAction

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:"-"`
}

FilteredChaincodeAction is a minimal set of information about an action within a transaction

func (*FilteredChaincodeAction) Descriptor

func (*FilteredChaincodeAction) Descriptor() ([]byte, []int)

func (*FilteredChaincodeAction) GetChaincodeEvent

func (m *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent

func (*FilteredChaincodeAction) ProtoMessage

func (*FilteredChaincodeAction) ProtoMessage()

func (*FilteredChaincodeAction) Reset

func (m *FilteredChaincodeAction) Reset()

func (*FilteredChaincodeAction) String

func (m *FilteredChaincodeAction) String() string

func (*FilteredChaincodeAction) XXX_DiscardUnknown

func (m *FilteredChaincodeAction) XXX_DiscardUnknown()

func (*FilteredChaincodeAction) XXX_Marshal

func (m *FilteredChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilteredChaincodeAction) XXX_Merge

func (m *FilteredChaincodeAction) XXX_Merge(src proto.Message)

func (*FilteredChaincodeAction) XXX_Size

func (m *FilteredChaincodeAction) XXX_Size() int

func (*FilteredChaincodeAction) XXX_Unmarshal

func (m *FilteredChaincodeAction) XXX_Unmarshal(b []byte) error

type FilteredTransaction

type FilteredTransaction struct {
	Txid             string            `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	Type             common.HeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=common.HeaderType" json:"type,omitempty"`
	TxValidationCode TxValidationCode  `` /* 141-byte string literal not displayed */
	// Types that are 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:"-"`
}

FilteredTransaction is a minimal set of information about a transaction within a block

func (*FilteredTransaction) Descriptor

func (*FilteredTransaction) Descriptor() ([]byte, []int)

func (*FilteredTransaction) GetData

func (m *FilteredTransaction) GetData() isFilteredTransaction_Data

func (*FilteredTransaction) GetTransactionActions

func (m *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions

func (*FilteredTransaction) GetTxValidationCode

func (m *FilteredTransaction) GetTxValidationCode() TxValidationCode

func (*FilteredTransaction) GetTxid

func (m *FilteredTransaction) GetTxid() string

func (*FilteredTransaction) GetType

func (m *FilteredTransaction) GetType() common.HeaderType

func (*FilteredTransaction) ProtoMessage

func (*FilteredTransaction) ProtoMessage()

func (*FilteredTransaction) Reset

func (m *FilteredTransaction) Reset()

func (*FilteredTransaction) String

func (m *FilteredTransaction) String() string

func (*FilteredTransaction) XXX_DiscardUnknown

func (m *FilteredTransaction) XXX_DiscardUnknown()

func (*FilteredTransaction) XXX_Marshal

func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilteredTransaction) XXX_Merge

func (m *FilteredTransaction) XXX_Merge(src proto.Message)

func (*FilteredTransaction) XXX_OneofWrappers

func (*FilteredTransaction) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*FilteredTransaction) XXX_Size

func (m *FilteredTransaction) XXX_Size() int

func (*FilteredTransaction) XXX_Unmarshal

func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error

type FilteredTransactionActions

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:"-"`
}

FilteredTransactionActions is a wrapper for array of TransactionAction message from regular block

func (*FilteredTransactionActions) Descriptor

func (*FilteredTransactionActions) Descriptor() ([]byte, []int)

func (*FilteredTransactionActions) GetChaincodeActions

func (m *FilteredTransactionActions) GetChaincodeActions() []*FilteredChaincodeAction

func (*FilteredTransactionActions) ProtoMessage

func (*FilteredTransactionActions) ProtoMessage()

func (*FilteredTransactionActions) Reset

func (m *FilteredTransactionActions) Reset()

func (*FilteredTransactionActions) String

func (m *FilteredTransactionActions) String() string

func (*FilteredTransactionActions) XXX_DiscardUnknown

func (m *FilteredTransactionActions) XXX_DiscardUnknown()

func (*FilteredTransactionActions) XXX_Marshal

func (m *FilteredTransactionActions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilteredTransactionActions) XXX_Merge

func (m *FilteredTransactionActions) XXX_Merge(src proto.Message)

func (*FilteredTransactionActions) XXX_Size

func (m *FilteredTransactionActions) XXX_Size() int

func (*FilteredTransactionActions) XXX_Unmarshal

func (m *FilteredTransactionActions) XXX_Unmarshal(b []byte) error

type FilteredTransaction_TransactionActions

type FilteredTransaction_TransactionActions struct {
	TransactionActions *FilteredTransactionActions `protobuf:"bytes,4,opt,name=transaction_actions,json=transactionActions,proto3,oneof"`
}

type GetHistoryForKey

type GetHistoryForKey struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetHistoryForKey is the payload of a ChaincodeMessage. It contains a key for which the historical values need to be retrieved.

func (*GetHistoryForKey) Descriptor

func (*GetHistoryForKey) Descriptor() ([]byte, []int)

func (*GetHistoryForKey) GetKey

func (m *GetHistoryForKey) GetKey() string

func (*GetHistoryForKey) ProtoMessage

func (*GetHistoryForKey) ProtoMessage()

func (*GetHistoryForKey) Reset

func (m *GetHistoryForKey) Reset()

func (*GetHistoryForKey) String

func (m *GetHistoryForKey) String() string

func (*GetHistoryForKey) XXX_DiscardUnknown

func (m *GetHistoryForKey) XXX_DiscardUnknown()

func (*GetHistoryForKey) XXX_Marshal

func (m *GetHistoryForKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetHistoryForKey) XXX_Merge

func (m *GetHistoryForKey) XXX_Merge(src proto.Message)

func (*GetHistoryForKey) XXX_Size

func (m *GetHistoryForKey) XXX_Size() int

func (*GetHistoryForKey) XXX_Unmarshal

func (m *GetHistoryForKey) XXX_Unmarshal(b []byte) error

type GetQueryResult

type GetQueryResult struct {
	Query                string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	Metadata             []byte   `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetQueryResult is the payload of a ChaincodeMessage. It contains a query string in the form that is supported by the underlying state database. If the collection is specified, the query needs to be executed on the private data. The metadata hold the byte representation of QueryMetadata.

func (*GetQueryResult) Descriptor

func (*GetQueryResult) Descriptor() ([]byte, []int)

func (*GetQueryResult) GetCollection

func (m *GetQueryResult) GetCollection() string

func (*GetQueryResult) GetMetadata

func (m *GetQueryResult) GetMetadata() []byte

func (*GetQueryResult) GetQuery

func (m *GetQueryResult) GetQuery() string

func (*GetQueryResult) ProtoMessage

func (*GetQueryResult) ProtoMessage()

func (*GetQueryResult) Reset

func (m *GetQueryResult) Reset()

func (*GetQueryResult) String

func (m *GetQueryResult) String() string

func (*GetQueryResult) XXX_DiscardUnknown

func (m *GetQueryResult) XXX_DiscardUnknown()

func (*GetQueryResult) XXX_Marshal

func (m *GetQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetQueryResult) XXX_Merge

func (m *GetQueryResult) XXX_Merge(src proto.Message)

func (*GetQueryResult) XXX_Size

func (m *GetQueryResult) XXX_Size() int

func (*GetQueryResult) XXX_Unmarshal

func (m *GetQueryResult) XXX_Unmarshal(b []byte) error

type GetState

type GetState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetState is the payload of a ChaincodeMessage. It contains a key which is to be fetched from the ledger. If the collection is specified, the key would be fetched from the collection (i.e., private state)

func (*GetState) Descriptor

func (*GetState) Descriptor() ([]byte, []int)

func (*GetState) GetCollection

func (m *GetState) GetCollection() string

func (*GetState) GetKey

func (m *GetState) GetKey() string

func (*GetState) ProtoMessage

func (*GetState) ProtoMessage()

func (*GetState) Reset

func (m *GetState) Reset()

func (*GetState) String

func (m *GetState) String() string

func (*GetState) XXX_DiscardUnknown

func (m *GetState) XXX_DiscardUnknown()

func (*GetState) XXX_Marshal

func (m *GetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetState) XXX_Merge

func (m *GetState) XXX_Merge(src proto.Message)

func (*GetState) XXX_Size

func (m *GetState) XXX_Size() int

func (*GetState) XXX_Unmarshal

func (m *GetState) XXX_Unmarshal(b []byte) error

type GetStateByRange

type GetStateByRange struct {
	StartKey             string   `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"`
	EndKey               string   `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"`
	Collection           string   `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"`
	Metadata             []byte   `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetStateByRange is the payload of a ChaincodeMessage. It contains a start key and a end key required to execute range query. If the collection is specified, the range query needs to be executed on the private data. The metadata hold the byte representation of QueryMetadata.

func (*GetStateByRange) Descriptor

func (*GetStateByRange) Descriptor() ([]byte, []int)

func (*GetStateByRange) GetCollection

func (m *GetStateByRange) GetCollection() string

func (*GetStateByRange) GetEndKey

func (m *GetStateByRange) GetEndKey() string

func (*GetStateByRange) GetMetadata

func (m *GetStateByRange) GetMetadata() []byte

func (*GetStateByRange) GetStartKey

func (m *GetStateByRange) GetStartKey() string

func (*GetStateByRange) ProtoMessage

func (*GetStateByRange) ProtoMessage()

func (*GetStateByRange) Reset

func (m *GetStateByRange) Reset()

func (*GetStateByRange) String

func (m *GetStateByRange) String() string

func (*GetStateByRange) XXX_DiscardUnknown

func (m *GetStateByRange) XXX_DiscardUnknown()

func (*GetStateByRange) XXX_Marshal

func (m *GetStateByRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStateByRange) XXX_Merge

func (m *GetStateByRange) XXX_Merge(src proto.Message)

func (*GetStateByRange) XXX_Size

func (m *GetStateByRange) XXX_Size() int

func (*GetStateByRange) XXX_Unmarshal

func (m *GetStateByRange) XXX_Unmarshal(b []byte) error

type GetStateMetadata

type GetStateMetadata struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStateMetadata) Descriptor

func (*GetStateMetadata) Descriptor() ([]byte, []int)

func (*GetStateMetadata) GetCollection

func (m *GetStateMetadata) GetCollection() string

func (*GetStateMetadata) GetKey

func (m *GetStateMetadata) GetKey() string

func (*GetStateMetadata) ProtoMessage

func (*GetStateMetadata) ProtoMessage()

func (*GetStateMetadata) Reset

func (m *GetStateMetadata) Reset()

func (*GetStateMetadata) String

func (m *GetStateMetadata) String() string

func (*GetStateMetadata) XXX_DiscardUnknown

func (m *GetStateMetadata) XXX_DiscardUnknown()

func (*GetStateMetadata) XXX_Marshal

func (m *GetStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStateMetadata) XXX_Merge

func (m *GetStateMetadata) XXX_Merge(src proto.Message)

func (*GetStateMetadata) XXX_Size

func (m *GetStateMetadata) XXX_Size() int

func (*GetStateMetadata) XXX_Unmarshal

func (m *GetStateMetadata) XXX_Unmarshal(b []byte) error

type JoinBySnapshotStatus

type JoinBySnapshotStatus struct {
	InProgress               bool     `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"`
	BootstrappingSnapshotDir string   `` /* 135-byte string literal not displayed */
	XXX_NoUnkeyedLiteral     struct{} `json:"-"`
	XXX_unrecognized         []byte   `json:"-"`
	XXX_sizecache            int32    `json:"-"`
}

JoinBySnapshotStatus contains information about whether or a JoinBySnapshot operation is in progress and the related bootstrap dir if it is running.

func (*JoinBySnapshotStatus) Descriptor

func (*JoinBySnapshotStatus) Descriptor() ([]byte, []int)

func (*JoinBySnapshotStatus) GetBootstrappingSnapshotDir

func (m *JoinBySnapshotStatus) GetBootstrappingSnapshotDir() string

func (*JoinBySnapshotStatus) GetInProgress

func (m *JoinBySnapshotStatus) GetInProgress() bool

func (*JoinBySnapshotStatus) ProtoMessage

func (*JoinBySnapshotStatus) ProtoMessage()

func (*JoinBySnapshotStatus) Reset

func (m *JoinBySnapshotStatus) Reset()

func (*JoinBySnapshotStatus) String

func (m *JoinBySnapshotStatus) String() string

func (*JoinBySnapshotStatus) XXX_DiscardUnknown

func (m *JoinBySnapshotStatus) XXX_DiscardUnknown()

func (*JoinBySnapshotStatus) XXX_Marshal

func (m *JoinBySnapshotStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JoinBySnapshotStatus) XXX_Merge

func (m *JoinBySnapshotStatus) XXX_Merge(src proto.Message)

func (*JoinBySnapshotStatus) XXX_Size

func (m *JoinBySnapshotStatus) XXX_Size() int

func (*JoinBySnapshotStatus) XXX_Unmarshal

func (m *JoinBySnapshotStatus) XXX_Unmarshal(b []byte) error

type LifecycleEvent

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:"-"`
}

LifecycleEvent is used as the payload of the chaincode event emitted by LSCC

func (*LifecycleEvent) Descriptor

func (*LifecycleEvent) Descriptor() ([]byte, []int)

func (*LifecycleEvent) GetChaincodeName

func (m *LifecycleEvent) GetChaincodeName() string

func (*LifecycleEvent) ProtoMessage

func (*LifecycleEvent) ProtoMessage()

func (*LifecycleEvent) Reset

func (m *LifecycleEvent) Reset()

func (*LifecycleEvent) String

func (m *LifecycleEvent) String() string

func (*LifecycleEvent) XXX_DiscardUnknown

func (m *LifecycleEvent) XXX_DiscardUnknown()

func (*LifecycleEvent) XXX_Marshal

func (m *LifecycleEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LifecycleEvent) XXX_Merge

func (m *LifecycleEvent) XXX_Merge(src proto.Message)

func (*LifecycleEvent) XXX_Size

func (m *LifecycleEvent) XXX_Size() int

func (*LifecycleEvent) XXX_Unmarshal

func (m *LifecycleEvent) XXX_Unmarshal(b []byte) error

type MetaDataKeys

type MetaDataKeys int32

Reserved entries in the key-level metadata map

const (
	MetaDataKeys_VALIDATION_PARAMETER    MetaDataKeys = 0
	MetaDataKeys_VALIDATION_PARAMETER_V2 MetaDataKeys = 1
)

func (MetaDataKeys) EnumDescriptor

func (MetaDataKeys) EnumDescriptor() ([]byte, []int)

func (MetaDataKeys) String

func (x MetaDataKeys) String() string

type ProcessedTransaction

type ProcessedTransaction struct {
	// An Envelope which includes a processed transaction
	TransactionEnvelope *common.Envelope `protobuf:"bytes,1,opt,name=transactionEnvelope,proto3" json:"transactionEnvelope,omitempty"`
	// An indication of whether the transaction was validated or invalidated by committing peer
	ValidationCode       int32    `protobuf:"varint,2,opt,name=validationCode,proto3" json:"validationCode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ProcessedTransaction wraps an Envelope that includes a transaction along with an indication of whether the transaction was validated or invalidated by committing peer. The use case is that GetTransactionByID API needs to retrieve the transaction Envelope from block storage, and return it to a client, and indicate whether the transaction was validated or invalidated by committing peer. So that the originally submitted transaction Envelope is not modified, the ProcessedTransaction wrapper is returned.

func (*ProcessedTransaction) Descriptor

func (*ProcessedTransaction) Descriptor() ([]byte, []int)

func (*ProcessedTransaction) GetTransactionEnvelope

func (m *ProcessedTransaction) GetTransactionEnvelope() *common.Envelope

func (*ProcessedTransaction) GetValidationCode

func (m *ProcessedTransaction) GetValidationCode() int32

func (*ProcessedTransaction) ProtoMessage

func (*ProcessedTransaction) ProtoMessage()

func (*ProcessedTransaction) Reset

func (m *ProcessedTransaction) Reset()

func (*ProcessedTransaction) String

func (m *ProcessedTransaction) String() string

func (*ProcessedTransaction) XXX_DiscardUnknown

func (m *ProcessedTransaction) XXX_DiscardUnknown()

func (*ProcessedTransaction) XXX_Marshal

func (m *ProcessedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProcessedTransaction) XXX_Merge

func (m *ProcessedTransaction) XXX_Merge(src proto.Message)

func (*ProcessedTransaction) XXX_Size

func (m *ProcessedTransaction) XXX_Size() int

func (*ProcessedTransaction) XXX_Unmarshal

func (m *ProcessedTransaction) XXX_Unmarshal(b []byte) error

type Proposal

type Proposal struct {
	// The header of the proposal. It is the bytes of the Header
	Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// The payload of the proposal as defined by the type in the proposal
	// header.
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// Optional extensions to the proposal. Its content depends on the Header's
	// type field.  For the type CHAINCODE, it might be the bytes of a
	// ChaincodeAction message.
	Extension            []byte   `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Proposal is sent to an endorser for endorsement. The proposal contains: 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.

func (*Proposal) Descriptor

func (*Proposal) Descriptor() ([]byte, []int)

func (*Proposal) GetExtension

func (m *Proposal) GetExtension() []byte

func (*Proposal) GetHeader

func (m *Proposal) GetHeader() []byte

func (*Proposal) GetPayload

func (m *Proposal) GetPayload() []byte

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposal) XXX_Merge

func (m *Proposal) XXX_Merge(src proto.Message)

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

func (m *Proposal) XXX_Unmarshal(b []byte) error

type ProposalResponse

type ProposalResponse struct {
	// Version indicates message protocol version
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Timestamp is the time that the message
	// was created as  defined by the sender
	Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// A response message indicating whether the
	// endorsement of the action was successful
	Response *Response `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"`
	// The payload of response. It is the bytes of ProposalResponsePayload
	Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
	// The endorsement of the proposal, basically
	// the endorser's signature over the payload
	Endorsement *Endorsement `protobuf:"bytes,6,opt,name=endorsement,proto3" json:"endorsement,omitempty"`
	// The chaincode interest derived from simulating the proposal.
	Interest             *ChaincodeInterest `protobuf:"bytes,7,opt,name=interest,proto3" json:"interest,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

A ProposalResponse is returned from an endorser to the proposal submitter. The idea is that this message contains the endorser's response to the request of a client to perform an action over a chaincode (or more generically on the ledger); the response might be success/error (conveyed in the Response field) together with a description of the action and a signature over it by that endorser. If a sufficient number of distinct endorsers agree on the same action and produce signature to that effect, a transaction can be generated and sent for ordering.

func (*ProposalResponse) Descriptor

func (*ProposalResponse) Descriptor() ([]byte, []int)

func (*ProposalResponse) GetEndorsement

func (m *ProposalResponse) GetEndorsement() *Endorsement

func (*ProposalResponse) GetInterest

func (m *ProposalResponse) GetInterest() *ChaincodeInterest

func (*ProposalResponse) GetPayload

func (m *ProposalResponse) GetPayload() []byte

func (*ProposalResponse) GetResponse

func (m *ProposalResponse) GetResponse() *Response

func (*ProposalResponse) GetTimestamp

func (m *ProposalResponse) GetTimestamp() *timestamp.Timestamp

func (*ProposalResponse) GetVersion

func (m *ProposalResponse) GetVersion() int32

func (*ProposalResponse) ProtoMessage

func (*ProposalResponse) ProtoMessage()

func (*ProposalResponse) Reset

func (m *ProposalResponse) Reset()

func (*ProposalResponse) String

func (m *ProposalResponse) String() string

func (*ProposalResponse) XXX_DiscardUnknown

func (m *ProposalResponse) XXX_DiscardUnknown()

func (*ProposalResponse) XXX_Marshal

func (m *ProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalResponse) XXX_Merge

func (m *ProposalResponse) XXX_Merge(src proto.Message)

func (*ProposalResponse) XXX_Size

func (m *ProposalResponse) XXX_Size() int

func (*ProposalResponse) XXX_Unmarshal

func (m *ProposalResponse) XXX_Unmarshal(b []byte) error

type ProposalResponsePayload

type ProposalResponsePayload struct {
	// Hash of the proposal that triggered this response. The hash is used to
	// link a response with its proposal, both for bookeeping purposes on an
	// asynchronous system and for security reasons (accountability,
	// non-repudiation). The hash usually covers the entire Proposal message
	// (byte-by-byte).
	ProposalHash []byte `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"`
	// Extension should be unmarshaled to a type-specific message. The type of
	// the extension in any proposal response depends on the type of the proposal
	// that the client selected when the proposal was initially sent out.  In
	// particular, this information is stored in the type field of a Header.  For
	// chaincode, it's a ChaincodeAction message
	Extension            []byte   `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ProposalResponsePayload is the payload of a proposal response. This message is the "bridge" between the client's request and the endorser's action in response to that request. Concretely, for chaincodes, it contains a hashed representation of the proposal (proposalHash) and a representation of the chaincode state changes and events inside the extension field.

func (*ProposalResponsePayload) Descriptor

func (*ProposalResponsePayload) Descriptor() ([]byte, []int)

func (*ProposalResponsePayload) GetExtension

func (m *ProposalResponsePayload) GetExtension() []byte

func (*ProposalResponsePayload) GetProposalHash

func (m *ProposalResponsePayload) GetProposalHash() []byte

func (*ProposalResponsePayload) ProtoMessage

func (*ProposalResponsePayload) ProtoMessage()

func (*ProposalResponsePayload) Reset

func (m *ProposalResponsePayload) Reset()

func (*ProposalResponsePayload) String

func (m *ProposalResponsePayload) String() string

func (*ProposalResponsePayload) XXX_DiscardUnknown

func (m *ProposalResponsePayload) XXX_DiscardUnknown()

func (*ProposalResponsePayload) XXX_Marshal

func (m *ProposalResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalResponsePayload) XXX_Merge

func (m *ProposalResponsePayload) XXX_Merge(src proto.Message)

func (*ProposalResponsePayload) XXX_Size

func (m *ProposalResponsePayload) XXX_Size() int

func (*ProposalResponsePayload) XXX_Unmarshal

func (m *ProposalResponsePayload) XXX_Unmarshal(b []byte) error

type PurgePrivateState

type PurgePrivateState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PurgePrivateState) Descriptor

func (*PurgePrivateState) Descriptor() ([]byte, []int)

func (*PurgePrivateState) GetCollection

func (m *PurgePrivateState) GetCollection() string

func (*PurgePrivateState) GetKey

func (m *PurgePrivateState) GetKey() string

func (*PurgePrivateState) ProtoMessage

func (*PurgePrivateState) ProtoMessage()

func (*PurgePrivateState) Reset

func (m *PurgePrivateState) Reset()

func (*PurgePrivateState) String

func (m *PurgePrivateState) String() string

func (*PurgePrivateState) XXX_DiscardUnknown

func (m *PurgePrivateState) XXX_DiscardUnknown()

func (*PurgePrivateState) XXX_Marshal

func (m *PurgePrivateState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PurgePrivateState) XXX_Merge

func (m *PurgePrivateState) XXX_Merge(src proto.Message)

func (*PurgePrivateState) XXX_Size

func (m *PurgePrivateState) XXX_Size() int

func (*PurgePrivateState) XXX_Unmarshal

func (m *PurgePrivateState) XXX_Unmarshal(b []byte) error

type PutState

type PutState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Collection           string   `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PutState is the payload of a ChaincodeMessage. It contains a key and value which needs to be written to the transaction's write set. If the collection is specified, the key and value would be written to the transaction's private write set.

func (*PutState) Descriptor

func (*PutState) Descriptor() ([]byte, []int)

func (*PutState) GetCollection

func (m *PutState) GetCollection() string

func (*PutState) GetKey

func (m *PutState) GetKey() string

func (*PutState) GetValue

func (m *PutState) GetValue() []byte

func (*PutState) ProtoMessage

func (*PutState) ProtoMessage()

func (*PutState) Reset

func (m *PutState) Reset()

func (*PutState) String

func (m *PutState) String() string

func (*PutState) XXX_DiscardUnknown

func (m *PutState) XXX_DiscardUnknown()

func (*PutState) XXX_Marshal

func (m *PutState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutState) XXX_Merge

func (m *PutState) XXX_Merge(src proto.Message)

func (*PutState) XXX_Size

func (m *PutState) XXX_Size() int

func (*PutState) XXX_Unmarshal

func (m *PutState) XXX_Unmarshal(b []byte) error

type PutStateMetadata

type PutStateMetadata struct {
	Key                  string         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string         `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"`
	Metadata             *StateMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*PutStateMetadata) Descriptor

func (*PutStateMetadata) Descriptor() ([]byte, []int)

func (*PutStateMetadata) GetCollection

func (m *PutStateMetadata) GetCollection() string

func (*PutStateMetadata) GetKey

func (m *PutStateMetadata) GetKey() string

func (*PutStateMetadata) GetMetadata

func (m *PutStateMetadata) GetMetadata() *StateMetadata

func (*PutStateMetadata) ProtoMessage

func (*PutStateMetadata) ProtoMessage()

func (*PutStateMetadata) Reset

func (m *PutStateMetadata) Reset()

func (*PutStateMetadata) String

func (m *PutStateMetadata) String() string

func (*PutStateMetadata) XXX_DiscardUnknown

func (m *PutStateMetadata) XXX_DiscardUnknown()

func (*PutStateMetadata) XXX_Marshal

func (m *PutStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutStateMetadata) XXX_Merge

func (m *PutStateMetadata) XXX_Merge(src proto.Message)

func (*PutStateMetadata) XXX_Size

func (m *PutStateMetadata) XXX_Size() int

func (*PutStateMetadata) XXX_Unmarshal

func (m *PutStateMetadata) XXX_Unmarshal(b []byte) error

type QueryMetadata

type QueryMetadata struct {
	PageSize             int32    `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Bookmark             string   `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

QueryMetadata is the metadata of a GetStateByRange and GetQueryResult. It contains a pageSize which denotes the number of records to be fetched and a bookmark.

func (*QueryMetadata) Descriptor

func (*QueryMetadata) Descriptor() ([]byte, []int)

func (*QueryMetadata) GetBookmark

func (m *QueryMetadata) GetBookmark() string

func (*QueryMetadata) GetPageSize

func (m *QueryMetadata) GetPageSize() int32

func (*QueryMetadata) ProtoMessage

func (*QueryMetadata) ProtoMessage()

func (*QueryMetadata) Reset

func (m *QueryMetadata) Reset()

func (*QueryMetadata) String

func (m *QueryMetadata) String() string

func (*QueryMetadata) XXX_DiscardUnknown

func (m *QueryMetadata) XXX_DiscardUnknown()

func (*QueryMetadata) XXX_Marshal

func (m *QueryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMetadata) XXX_Merge

func (m *QueryMetadata) XXX_Merge(src proto.Message)

func (*QueryMetadata) XXX_Size

func (m *QueryMetadata) XXX_Size() int

func (*QueryMetadata) XXX_Unmarshal

func (m *QueryMetadata) XXX_Unmarshal(b []byte) error

type QueryPendingSnapshotsResponse

type QueryPendingSnapshotsResponse struct {
	BlockNumbers         []uint64 `protobuf:"varint,1,rep,packed,name=block_numbers,json=blockNumbers,proto3" json:"block_numbers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

QueryPendingSnapshotsResponse specifies the response payload of a query pending snapshots request

func (*QueryPendingSnapshotsResponse) Descriptor

func (*QueryPendingSnapshotsResponse) Descriptor() ([]byte, []int)

func (*QueryPendingSnapshotsResponse) GetBlockNumbers

func (m *QueryPendingSnapshotsResponse) GetBlockNumbers() []uint64

func (*QueryPendingSnapshotsResponse) ProtoMessage

func (*QueryPendingSnapshotsResponse) ProtoMessage()

func (*QueryPendingSnapshotsResponse) Reset

func (m *QueryPendingSnapshotsResponse) Reset()

func (*QueryPendingSnapshotsResponse) String

func (*QueryPendingSnapshotsResponse) XXX_DiscardUnknown

func (m *QueryPendingSnapshotsResponse) XXX_DiscardUnknown()

func (*QueryPendingSnapshotsResponse) XXX_Marshal

func (m *QueryPendingSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPendingSnapshotsResponse) XXX_Merge

func (m *QueryPendingSnapshotsResponse) XXX_Merge(src proto.Message)

func (*QueryPendingSnapshotsResponse) XXX_Size

func (m *QueryPendingSnapshotsResponse) XXX_Size() int

func (*QueryPendingSnapshotsResponse) XXX_Unmarshal

func (m *QueryPendingSnapshotsResponse) XXX_Unmarshal(b []byte) error

type QueryResponse

type QueryResponse struct {
	Results              []*QueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	HasMore              bool                `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	Id                   string              `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Metadata             []byte              `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

QueryResponse is returned by the peer as a result of a GetStateByRange, GetQueryResult, and GetHistoryForKey. It holds a bunch of records in results field, a flag to denote whether more results need to be fetched from the peer in has_more field, transaction id in id field, and a QueryResponseMetadata in metadata field.

func (*QueryResponse) Descriptor

func (*QueryResponse) Descriptor() ([]byte, []int)

func (*QueryResponse) GetHasMore

func (m *QueryResponse) GetHasMore() bool

func (*QueryResponse) GetId

func (m *QueryResponse) GetId() string

func (*QueryResponse) GetMetadata

func (m *QueryResponse) GetMetadata() []byte

func (*QueryResponse) GetResults

func (m *QueryResponse) GetResults() []*QueryResultBytes

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) Reset

func (m *QueryResponse) Reset()

func (*QueryResponse) String

func (m *QueryResponse) String() string

func (*QueryResponse)