fabric-protos-go: github.com/hyperledger/fabric-protos-go/peer Index | Files | Directories

package peer

import "github.com/hyperledger/fabric-protos-go/peer"

Index

Package Files

chaincode.pb.go chaincode_event.pb.go chaincode_shim.pb.go collection.pb.go configuration.pb.go events.pb.go peer.pb.go policy.pb.go proposal.pb.go proposal_response.pb.go query.pb.go resources.pb.go signed_cc_dep_spec.pb.go transaction.pb.go

Variables

var ChaincodeMessage_Type_name = map[int32]string{
    0:  "UNDEFINED",
    1:  "REGISTER",
    2:  "REGISTERED",
    3:  "INIT",
    4:  "READY",
    5:  "TRANSACTION",
    6:  "COMPLETED",
    7:  "ERROR",
    8:  "GET_STATE",
    9:  "PUT_STATE",
    10: "DEL_STATE",
    11: "INVOKE_CHAINCODE",
    13: "RESPONSE",
    14: "GET_STATE_BY_RANGE",
    15: "GET_QUERY_RESULT",
    16: "QUERY_STATE_NEXT",
    17: "QUERY_STATE_CLOSE",
    18: "KEEPALIVE",
    19: "GET_HISTORY_FOR_KEY",
    20: "GET_STATE_METADATA",
    21: "PUT_STATE_METADATA",
    22: "GET_PRIVATE_DATA_HASH",
}
var ChaincodeMessage_Type_value = map[string]int32{
    "UNDEFINED":             0,
    "REGISTER":              1,
    "REGISTERED":            2,
    "INIT":                  3,
    "READY":                 4,
    "TRANSACTION":           5,
    "COMPLETED":             6,
    "ERROR":                 7,
    "GET_STATE":             8,
    "PUT_STATE":             9,
    "DEL_STATE":             10,
    "INVOKE_CHAINCODE":      11,
    "RESPONSE":              13,
    "GET_STATE_BY_RANGE":    14,
    "GET_QUERY_RESULT":      15,
    "QUERY_STATE_NEXT":      16,
    "QUERY_STATE_CLOSE":     17,
    "KEEPALIVE":             18,
    "GET_HISTORY_FOR_KEY":   19,
    "GET_STATE_METADATA":    20,
    "PUT_STATE_METADATA":    21,
    "GET_PRIVATE_DATA_HASH": 22,
}
var ChaincodeSpec_Type_name = map[int32]string{
    0:  "UNDEFINED",
    1:  "GOLANG",
    2:  "NODE",
    3:  "CAR",
    4:  "JAVA",
}
var ChaincodeSpec_Type_value = map[string]int32{
    "UNDEFINED": 0,
    "GOLANG":    1,
    "NODE":      2,
    "CAR":       3,
    "JAVA":      4,
}
var MetaDataKeys_name = map[int32]string{
    0:  "VALIDATION_PARAMETER",
    1:  "VALIDATION_PARAMETER_V2",
}
var MetaDataKeys_value = map[string]int32{
    "VALIDATION_PARAMETER":    0,
    "VALIDATION_PARAMETER_V2": 1,
}
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",
}
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,
}

func RegisterChaincodeServer Uses

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

func RegisterChaincodeSupportServer Uses

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

func RegisterDeliverServer Uses

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

func RegisterEndorserServer Uses

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

type ACLs Uses

type ACLs struct {
    Acls                 map[string]*APIResource `protobuf:"bytes,1,rep,name=acls,proto3" json:"acls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

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

func (*ACLs) Descriptor Uses

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

func (*ACLs) GetAcls Uses

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

func (*ACLs) ProtoMessage Uses

func (*ACLs) ProtoMessage()

func (*ACLs) Reset Uses

func (m *ACLs) Reset()

func (*ACLs) String Uses

func (m *ACLs) String() string

func (*ACLs) XXX_DiscardUnknown Uses

func (m *ACLs) XXX_DiscardUnknown()

func (*ACLs) XXX_Marshal Uses

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

func (*ACLs) XXX_Merge Uses

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

func (*ACLs) XXX_Size Uses

func (m *ACLs) XXX_Size() int

func (*ACLs) XXX_Unmarshal Uses

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

type APIResource Uses

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 Uses

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

func (*APIResource) GetPolicyRef Uses

func (m *APIResource) GetPolicyRef() string

func (*APIResource) ProtoMessage Uses

func (*APIResource) ProtoMessage()

func (*APIResource) Reset Uses

func (m *APIResource) Reset()

func (*APIResource) String Uses

func (m *APIResource) String() string

func (*APIResource) XXX_DiscardUnknown Uses

func (m *APIResource) XXX_DiscardUnknown()

func (*APIResource) XXX_Marshal Uses

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

func (*APIResource) XXX_Merge Uses

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

func (*APIResource) XXX_Size Uses

func (m *APIResource) XXX_Size() int

func (*APIResource) XXX_Unmarshal Uses

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

type AnchorPeer Uses

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 Uses

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

func (*AnchorPeer) GetHost Uses

func (m *AnchorPeer) GetHost() string

func (*AnchorPeer) GetPort Uses

func (m *AnchorPeer) GetPort() int32

func (*AnchorPeer) ProtoMessage Uses

func (*AnchorPeer) ProtoMessage()

func (*AnchorPeer) Reset Uses

func (m *AnchorPeer) Reset()

func (*AnchorPeer) String Uses

func (m *AnchorPeer) String() string

func (*AnchorPeer) XXX_DiscardUnknown Uses

func (m *AnchorPeer) XXX_DiscardUnknown()

func (*AnchorPeer) XXX_Marshal Uses

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

func (*AnchorPeer) XXX_Merge Uses

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

func (*AnchorPeer) XXX_Size Uses

func (m *AnchorPeer) XXX_Size() int

func (*AnchorPeer) XXX_Unmarshal Uses

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

type AnchorPeers Uses

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 Uses

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

func (*AnchorPeers) GetAnchorPeers Uses

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

func (*AnchorPeers) ProtoMessage Uses

func (*AnchorPeers) ProtoMessage()

func (*AnchorPeers) Reset Uses

func (m *AnchorPeers) Reset()

func (*AnchorPeers) String Uses

func (m *AnchorPeers) String() string

func (*AnchorPeers) XXX_DiscardUnknown Uses

func (m *AnchorPeers) XXX_DiscardUnknown()

func (*AnchorPeers) XXX_Marshal Uses

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

func (*AnchorPeers) XXX_Merge Uses

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

func (*AnchorPeers) XXX_Size Uses

func (m *AnchorPeers) XXX_Size() int

func (*AnchorPeers) XXX_Unmarshal Uses

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

type ApplicationPolicy Uses

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 Uses

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

func (*ApplicationPolicy) GetChannelConfigPolicyReference Uses

func (m *ApplicationPolicy) GetChannelConfigPolicyReference() string

func (*ApplicationPolicy) GetSignaturePolicy Uses

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

func (*ApplicationPolicy) GetType Uses

func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type

func (*ApplicationPolicy) ProtoMessage Uses

func (*ApplicationPolicy) ProtoMessage()

func (*ApplicationPolicy) Reset Uses

func (m *ApplicationPolicy) Reset()

func (*ApplicationPolicy) String Uses

func (m *ApplicationPolicy) String() string

func (*ApplicationPolicy) XXX_DiscardUnknown Uses

func (m *ApplicationPolicy) XXX_DiscardUnknown()

func (*ApplicationPolicy) XXX_Marshal Uses

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

func (*ApplicationPolicy) XXX_Merge Uses

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

func (*ApplicationPolicy) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*ApplicationPolicy) XXX_Size Uses

func (m *ApplicationPolicy) XXX_Size() int

func (*ApplicationPolicy) XXX_Unmarshal Uses

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

type ApplicationPolicy_ChannelConfigPolicyReference Uses

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

type ApplicationPolicy_SignaturePolicy Uses

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

type BlockAndPrivateData Uses

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 `protobuf:"bytes,2,rep,name=private_data_map,json=privateDataMap,proto3" json:"private_data_map,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
    XXX_unrecognized     []byte                              `json:"-"`
    XXX_sizecache        int32                               `json:"-"`
}

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

func (*BlockAndPrivateData) Descriptor Uses

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

func (*BlockAndPrivateData) GetBlock Uses

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

func (*BlockAndPrivateData) GetPrivateDataMap Uses

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

func (*BlockAndPrivateData) ProtoMessage Uses

func (*BlockAndPrivateData) ProtoMessage()

func (*BlockAndPrivateData) Reset Uses

func (m *BlockAndPrivateData) Reset()

func (*BlockAndPrivateData) String Uses

func (m *BlockAndPrivateData) String() string

func (*BlockAndPrivateData) XXX_DiscardUnknown Uses

func (m *BlockAndPrivateData) XXX_DiscardUnknown()

func (*BlockAndPrivateData) XXX_Marshal Uses

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

func (*BlockAndPrivateData) XXX_Merge Uses

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

func (*BlockAndPrivateData) XXX_Size Uses

func (m *BlockAndPrivateData) XXX_Size() int

func (*BlockAndPrivateData) XXX_Unmarshal Uses

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

type CDSData Uses

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 Uses

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

func (*CDSData) GetHash Uses

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

func (*CDSData) GetMetadatahash Uses

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

func (*CDSData) ProtoMessage Uses

func (*CDSData) ProtoMessage()

func (*CDSData) Reset Uses

func (m *CDSData) Reset()

func (*CDSData) String Uses

func (m *CDSData) String() string

func (*CDSData) XXX_DiscardUnknown Uses

func (m *CDSData) XXX_DiscardUnknown()

func (*CDSData) XXX_Marshal Uses

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

func (*CDSData) XXX_Merge Uses

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

func (*CDSData) XXX_Size Uses

func (m *CDSData) XXX_Size() int

func (*CDSData) XXX_Unmarshal Uses

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

type ChaincodeAction Uses

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

ChaincodeAction contains the actions the events generated by the execution of the chaincode.

func (*ChaincodeAction) Descriptor Uses

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

func (*ChaincodeAction) GetChaincodeId Uses

func (m *ChaincodeAction) GetChaincodeId() *ChaincodeID

func (*ChaincodeAction) GetEvents Uses

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

func (*ChaincodeAction) GetResponse Uses

func (m *ChaincodeAction) GetResponse() *Response

func (*ChaincodeAction) GetResults Uses

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

func (*ChaincodeAction) ProtoMessage Uses

func (*ChaincodeAction) ProtoMessage()

func (*ChaincodeAction) Reset Uses

func (m *ChaincodeAction) Reset()

func (*ChaincodeAction) String Uses

func (m *ChaincodeAction) String() string

func (*ChaincodeAction) XXX_DiscardUnknown Uses

func (m *ChaincodeAction) XXX_DiscardUnknown()

func (*ChaincodeAction) XXX_Marshal Uses

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

func (*ChaincodeAction) XXX_Merge Uses

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

func (*ChaincodeAction) XXX_Size Uses

func (m *ChaincodeAction) XXX_Size() int

func (*ChaincodeAction) XXX_Unmarshal Uses

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

type ChaincodeActionPayload Uses

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

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 Uses

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

func (*ChaincodeActionPayload) GetAction Uses

func (m *ChaincodeActionPayload) GetAction() *ChaincodeEndorsedAction

func (*ChaincodeActionPayload) GetChaincodeProposalPayload Uses

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

func (*ChaincodeActionPayload) ProtoMessage Uses

func (*ChaincodeActionPayload) ProtoMessage()

func (*ChaincodeActionPayload) Reset Uses

func (m *ChaincodeActionPayload) Reset()

func (*ChaincodeActionPayload) String Uses

func (m *ChaincodeActionPayload) String() string

func (*ChaincodeActionPayload) XXX_DiscardUnknown Uses

func (m *ChaincodeActionPayload) XXX_DiscardUnknown()

func (*ChaincodeActionPayload) XXX_Marshal Uses

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

func (*ChaincodeActionPayload) XXX_Merge Uses

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

func (*ChaincodeActionPayload) XXX_Size Uses

func (m *ChaincodeActionPayload) XXX_Size() int

func (*ChaincodeActionPayload) XXX_Unmarshal Uses

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

type ChaincodeClient Uses

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 Uses

func NewChaincodeClient(cc *grpc.ClientConn) ChaincodeClient

type ChaincodeData Uses

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 Uses

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

func (*ChaincodeData) GetData Uses

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

func (*ChaincodeData) GetEscc Uses

func (m *ChaincodeData) GetEscc() string

func (*ChaincodeData) GetId Uses

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

func (*ChaincodeData) GetInstantiationPolicy Uses

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

func (*ChaincodeData) GetName Uses

func (m *ChaincodeData) GetName() string

func (*ChaincodeData) GetPolicy Uses

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

func (*ChaincodeData) GetVersion Uses

func (m *ChaincodeData) GetVersion() string

func (*ChaincodeData) GetVscc Uses

func (m *ChaincodeData) GetVscc() string

func (*ChaincodeData) ProtoMessage Uses

func (*ChaincodeData) ProtoMessage()

func (*ChaincodeData) Reset Uses

func (m *ChaincodeData) Reset()

func (*ChaincodeData) String Uses

func (m *ChaincodeData) String() string

func (*ChaincodeData) XXX_DiscardUnknown Uses

func (m *ChaincodeData) XXX_DiscardUnknown()

func (*ChaincodeData) XXX_Marshal Uses

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

func (*ChaincodeData) XXX_Merge Uses

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

func (*ChaincodeData) XXX_Size Uses

func (m *ChaincodeData) XXX_Size() int

func (*ChaincodeData) XXX_Unmarshal Uses

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

type ChaincodeDeploymentSpec Uses

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 Uses

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

func (*ChaincodeDeploymentSpec) GetChaincodeSpec Uses

func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec

func (*ChaincodeDeploymentSpec) GetCodePackage Uses

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

func (*ChaincodeDeploymentSpec) ProtoMessage Uses

func (*ChaincodeDeploymentSpec) ProtoMessage()

func (*ChaincodeDeploymentSpec) Reset Uses

func (m *ChaincodeDeploymentSpec) Reset()

func (*ChaincodeDeploymentSpec) String Uses

func (m *ChaincodeDeploymentSpec) String() string

func (*ChaincodeDeploymentSpec) XXX_DiscardUnknown Uses

func (m *ChaincodeDeploymentSpec) XXX_DiscardUnknown()

func (*ChaincodeDeploymentSpec) XXX_Marshal Uses

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

func (*ChaincodeDeploymentSpec) XXX_Merge Uses

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

func (*ChaincodeDeploymentSpec) XXX_Size Uses

func (m *ChaincodeDeploymentSpec) XXX_Size() int

func (*ChaincodeDeploymentSpec) XXX_Unmarshal Uses

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

type ChaincodeEndorsedAction Uses

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

ChaincodeEndorsedAction carries information about the endorsement of a specific proposal

func (*ChaincodeEndorsedAction) Descriptor Uses

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

func (*ChaincodeEndorsedAction) GetEndorsements Uses

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

func (*ChaincodeEndorsedAction) GetProposalResponsePayload Uses

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

func (*ChaincodeEndorsedAction) ProtoMessage Uses

func (*ChaincodeEndorsedAction) ProtoMessage()

func (*ChaincodeEndorsedAction) Reset Uses

func (m *ChaincodeEndorsedAction) Reset()

func (*ChaincodeEndorsedAction) String Uses

func (m *ChaincodeEndorsedAction) String() string

func (*ChaincodeEndorsedAction) XXX_DiscardUnknown Uses

func (m *ChaincodeEndorsedAction) XXX_DiscardUnknown()

func (*ChaincodeEndorsedAction) XXX_Marshal Uses

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

func (*ChaincodeEndorsedAction) XXX_Merge Uses

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

func (*ChaincodeEndorsedAction) XXX_Size Uses

func (m *ChaincodeEndorsedAction) XXX_Size() int

func (*ChaincodeEndorsedAction) XXX_Unmarshal Uses

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

type ChaincodeEndorsement Uses

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 Uses

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

func (*ChaincodeEndorsement) GetName Uses

func (m *ChaincodeEndorsement) GetName() string

func (*ChaincodeEndorsement) ProtoMessage Uses

func (*ChaincodeEndorsement) ProtoMessage()

func (*ChaincodeEndorsement) Reset Uses

func (m *ChaincodeEndorsement) Reset()

func (*ChaincodeEndorsement) String Uses

func (m *ChaincodeEndorsement) String() string

func (*ChaincodeEndorsement) XXX_DiscardUnknown Uses

func (m *ChaincodeEndorsement) XXX_DiscardUnknown()

func (*ChaincodeEndorsement) XXX_Marshal Uses

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

func (*ChaincodeEndorsement) XXX_Merge Uses

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

func (*ChaincodeEndorsement) XXX_Size Uses

func (m *ChaincodeEndorsement) XXX_Size() int

func (*ChaincodeEndorsement) XXX_Unmarshal Uses

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

type ChaincodeEvent Uses

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 Uses

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

func (*ChaincodeEvent) GetChaincodeId Uses

func (m *ChaincodeEvent) GetChaincodeId() string

func (*ChaincodeEvent) GetEventName Uses

func (m *ChaincodeEvent) GetEventName() string

func (*ChaincodeEvent) GetPayload Uses

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

func (*ChaincodeEvent) GetTxId Uses

func (m *ChaincodeEvent) GetTxId() string

func (*ChaincodeEvent) ProtoMessage Uses

func (*ChaincodeEvent) ProtoMessage()

func (*ChaincodeEvent) Reset Uses

func (m *ChaincodeEvent) Reset()

func (*ChaincodeEvent) String Uses

func (m *ChaincodeEvent) String() string

func (*ChaincodeEvent) XXX_DiscardUnknown Uses

func (m *ChaincodeEvent) XXX_DiscardUnknown()

func (*ChaincodeEvent) XXX_Marshal Uses

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

func (*ChaincodeEvent) XXX_Merge Uses

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

func (*ChaincodeEvent) XXX_Size Uses

func (m *ChaincodeEvent) XXX_Size() int

func (*ChaincodeEvent) XXX_Unmarshal Uses

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

type ChaincodeHeaderExtension Uses

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 Uses

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

func (*ChaincodeHeaderExtension) GetChaincodeId Uses

func (m *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID

func (*ChaincodeHeaderExtension) ProtoMessage Uses

func (*ChaincodeHeaderExtension) ProtoMessage()

func (*ChaincodeHeaderExtension) Reset Uses

func (m *ChaincodeHeaderExtension) Reset()

func (*ChaincodeHeaderExtension) String Uses

func (m *ChaincodeHeaderExtension) String() string

func (*ChaincodeHeaderExtension) XXX_DiscardUnknown Uses

func (m *ChaincodeHeaderExtension) XXX_DiscardUnknown()

func (*ChaincodeHeaderExtension) XXX_Marshal Uses

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

func (*ChaincodeHeaderExtension) XXX_Merge Uses

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

func (*ChaincodeHeaderExtension) XXX_Size Uses

func (m *ChaincodeHeaderExtension) XXX_Size() int

func (*ChaincodeHeaderExtension) XXX_Unmarshal Uses

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

type ChaincodeID Uses

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 Uses

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

func (*ChaincodeID) GetName Uses

func (m *ChaincodeID) GetName() string

func (*ChaincodeID) GetPath Uses

func (m *ChaincodeID) GetPath() string

func (*ChaincodeID) GetVersion Uses

func (m *ChaincodeID) GetVersion() string

func (*ChaincodeID) ProtoMessage Uses

func (*ChaincodeID) ProtoMessage()

func (*ChaincodeID) Reset Uses

func (m *ChaincodeID) Reset()

func (*ChaincodeID) String Uses

func (m *ChaincodeID) String() string

func (*ChaincodeID) XXX_DiscardUnknown Uses

func (m *ChaincodeID) XXX_DiscardUnknown()

func (*ChaincodeID) XXX_Marshal Uses

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

func (*ChaincodeID) XXX_Merge Uses

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

func (*ChaincodeID) XXX_Size Uses

func (m *ChaincodeID) XXX_Size() int

func (*ChaincodeID) XXX_Unmarshal Uses

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

type ChaincodeIdentifier Uses

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 Uses

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

func (*ChaincodeIdentifier) GetHash Uses

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

func (*ChaincodeIdentifier) GetVersion Uses

func (m *ChaincodeIdentifier) GetVersion() string

func (*ChaincodeIdentifier) ProtoMessage Uses

func (*ChaincodeIdentifier) ProtoMessage()

func (*ChaincodeIdentifier) Reset Uses

func (m *ChaincodeIdentifier) Reset()

func (*ChaincodeIdentifier) String Uses

func (m *ChaincodeIdentifier) String() string

func (*ChaincodeIdentifier) XXX_DiscardUnknown Uses

func (m *ChaincodeIdentifier) XXX_DiscardUnknown()

func (*ChaincodeIdentifier) XXX_Marshal Uses

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

func (*ChaincodeIdentifier) XXX_Merge Uses

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

func (*ChaincodeIdentifier) XXX_Size Uses

func (m *ChaincodeIdentifier) XXX_Size() int

func (*ChaincodeIdentifier) XXX_Unmarshal Uses

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

type ChaincodeInfo Uses

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 Uses

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

func (*ChaincodeInfo) GetEscc Uses

func (m *ChaincodeInfo) GetEscc() string

func (*ChaincodeInfo) GetId Uses

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

func (*ChaincodeInfo) GetInput Uses

func (m *ChaincodeInfo) GetInput() string

func (*ChaincodeInfo) GetName Uses

func (m *ChaincodeInfo) GetName() string

func (*ChaincodeInfo) GetPath Uses

func (m *ChaincodeInfo) GetPath() string

func (*ChaincodeInfo) GetVersion Uses

func (m *ChaincodeInfo) GetVersion() string

func (*ChaincodeInfo) GetVscc Uses

func (m *ChaincodeInfo) GetVscc() string

func (*ChaincodeInfo) ProtoMessage Uses

func (*ChaincodeInfo) ProtoMessage()

func (*ChaincodeInfo) Reset Uses

func (m *ChaincodeInfo) Reset()

func (*ChaincodeInfo) String Uses

func (m *ChaincodeInfo) String() string

func (*ChaincodeInfo) XXX_DiscardUnknown Uses

func (m *ChaincodeInfo) XXX_DiscardUnknown()

func (*ChaincodeInfo) XXX_Marshal Uses

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

func (*ChaincodeInfo) XXX_Merge Uses

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

func (*ChaincodeInfo) XXX_Size Uses

func (m *ChaincodeInfo) XXX_Size() int

func (*ChaincodeInfo) XXX_Unmarshal Uses

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

type ChaincodeInput Uses

type ChaincodeInput struct {
    Args        [][]byte          `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
    Decorations map[string][]byte `protobuf:"bytes,2,rep,name=decorations,proto3" json:"decorations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // 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 Uses

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

func (*ChaincodeInput) GetArgs Uses

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

func (*ChaincodeInput) GetDecorations Uses

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

func (*ChaincodeInput) GetIsInit Uses

func (m *ChaincodeInput) GetIsInit() bool

func (*ChaincodeInput) ProtoMessage Uses

func (*ChaincodeInput) ProtoMessage()

func (*ChaincodeInput) Reset Uses

func (m *ChaincodeInput) Reset()

func (*ChaincodeInput) String Uses

func (m *ChaincodeInput) String() string

func (*ChaincodeInput) XXX_DiscardUnknown Uses

func (m *ChaincodeInput) XXX_DiscardUnknown()

func (*ChaincodeInput) XXX_Marshal Uses

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

func (*ChaincodeInput) XXX_Merge Uses

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

func (*ChaincodeInput) XXX_Size Uses

func (m *ChaincodeInput) XXX_Size() int

func (*ChaincodeInput) XXX_Unmarshal Uses

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

type ChaincodeInvocationSpec Uses

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 Uses

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

func (*ChaincodeInvocationSpec) GetChaincodeSpec Uses

func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec

func (*ChaincodeInvocationSpec) ProtoMessage Uses

func (*ChaincodeInvocationSpec) ProtoMessage()

func (*ChaincodeInvocationSpec) Reset Uses

func (m *ChaincodeInvocationSpec) Reset()

func (*ChaincodeInvocationSpec) String Uses

func (m *ChaincodeInvocationSpec) String() string

func (*ChaincodeInvocationSpec) XXX_DiscardUnknown Uses

func (m *ChaincodeInvocationSpec) XXX_DiscardUnknown()

func (*ChaincodeInvocationSpec) XXX_Marshal Uses

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

func (*ChaincodeInvocationSpec) XXX_Merge Uses

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

func (*ChaincodeInvocationSpec) XXX_Size Uses

func (m *ChaincodeInvocationSpec) XXX_Size() int

func (*ChaincodeInvocationSpec) XXX_Unmarshal Uses

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

type ChaincodeMessage Uses

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 Uses

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

func (*ChaincodeMessage) GetChaincodeEvent Uses

func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent

func (*ChaincodeMessage) GetChannelId Uses

func (m *ChaincodeMessage) GetChannelId() string

func (*ChaincodeMessage) GetPayload Uses

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

func (*ChaincodeMessage) GetProposal Uses

func (m *ChaincodeMessage) GetProposal() *SignedProposal

func (*ChaincodeMessage) GetTimestamp Uses

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

func (*ChaincodeMessage) GetTxid Uses

func (m *ChaincodeMessage) GetTxid() string

func (*ChaincodeMessage) GetType Uses

func (m *ChaincodeMessage) GetType() ChaincodeMessage_Type

func (*ChaincodeMessage) ProtoMessage Uses

func (*ChaincodeMessage) ProtoMessage()

func (*ChaincodeMessage) Reset Uses

func (m *ChaincodeMessage) Reset()

func (*ChaincodeMessage) String Uses

func (m *ChaincodeMessage) String() string

func (*ChaincodeMessage) XXX_DiscardUnknown Uses

func (m *ChaincodeMessage) XXX_DiscardUnknown()

func (*ChaincodeMessage) XXX_Marshal Uses

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

func (*ChaincodeMessage) XXX_Merge Uses

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

func (*ChaincodeMessage) XXX_Size Uses

func (m *ChaincodeMessage) XXX_Size() int

func (*ChaincodeMessage) XXX_Unmarshal Uses

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

type ChaincodeMessage_Type Uses

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

func (ChaincodeMessage_Type) EnumDescriptor Uses

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

func (ChaincodeMessage_Type) String Uses

func (x ChaincodeMessage_Type) String() string

type ChaincodeProposalPayload Uses

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

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 Uses

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

func (*ChaincodeProposalPayload) GetInput Uses

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

func (*ChaincodeProposalPayload) GetTransientMap Uses

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

func (*ChaincodeProposalPayload) ProtoMessage Uses

func (*ChaincodeProposalPayload) ProtoMessage()

func (*ChaincodeProposalPayload) Reset Uses

func (m *ChaincodeProposalPayload) Reset()

func (*ChaincodeProposalPayload) String Uses

func (m *ChaincodeProposalPayload) String() string

func (*ChaincodeProposalPayload) XXX_DiscardUnknown Uses

func (m *ChaincodeProposalPayload) XXX_DiscardUnknown()

func (*ChaincodeProposalPayload) XXX_Marshal Uses

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

func (*ChaincodeProposalPayload) XXX_Merge Uses

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

func (*ChaincodeProposalPayload) XXX_Size Uses

func (m *ChaincodeProposalPayload) XXX_Size() int

func (*ChaincodeProposalPayload) XXX_Unmarshal Uses

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

type ChaincodeQueryResponse Uses

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 Uses

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

func (*ChaincodeQueryResponse) GetChaincodes Uses

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

func (*ChaincodeQueryResponse) ProtoMessage Uses

func (*ChaincodeQueryResponse) ProtoMessage()

func (*ChaincodeQueryResponse) Reset Uses

func (m *ChaincodeQueryResponse) Reset()

func (*ChaincodeQueryResponse) String Uses

func (m *ChaincodeQueryResponse) String() string

func (*ChaincodeQueryResponse) XXX_DiscardUnknown Uses

func (m *ChaincodeQueryResponse) XXX_DiscardUnknown()

func (*ChaincodeQueryResponse) XXX_Marshal Uses

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

func (*ChaincodeQueryResponse) XXX_Merge Uses

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

func (*ChaincodeQueryResponse) XXX_Size Uses

func (m *ChaincodeQueryResponse) XXX_Size() int

func (*ChaincodeQueryResponse) XXX_Unmarshal Uses

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

type ChaincodeServer Uses

type ChaincodeServer interface {
    Connect(Chaincode_ConnectServer) error
}

ChaincodeServer is the server API for Chaincode service.

type ChaincodeSpec Uses

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 Uses

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

func (*ChaincodeSpec) GetChaincodeId Uses

func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID

func (*ChaincodeSpec) GetInput Uses

func (m *ChaincodeSpec) GetInput() *ChaincodeInput

func (*ChaincodeSpec) GetTimeout Uses

func (m *ChaincodeSpec) GetTimeout() int32

func (*ChaincodeSpec) GetType Uses

func (m *ChaincodeSpec) GetType() ChaincodeSpec_Type

func (*ChaincodeSpec) ProtoMessage Uses

func (*ChaincodeSpec) ProtoMessage()

func (*ChaincodeSpec) Reset Uses

func (m *ChaincodeSpec) Reset()

func (*ChaincodeSpec) String Uses

func (m *ChaincodeSpec) String() string

func (*ChaincodeSpec) XXX_DiscardUnknown Uses

func (m *ChaincodeSpec) XXX_DiscardUnknown()

func (*ChaincodeSpec) XXX_Marshal Uses

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

func (*ChaincodeSpec) XXX_Merge Uses

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

func (*ChaincodeSpec) XXX_Size Uses

func (m *ChaincodeSpec) XXX_Size() int

func (*ChaincodeSpec) XXX_Unmarshal Uses

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

type ChaincodeSpec_Type Uses

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 Uses

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

func (ChaincodeSpec_Type) String Uses

func (x ChaincodeSpec_Type) String() string

type ChaincodeSupportClient Uses

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 Uses

func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient

type ChaincodeSupportServer Uses

type ChaincodeSupportServer interface {
    Register(ChaincodeSupport_RegisterServer) error
}

ChaincodeSupportServer is the server API for ChaincodeSupport service.

type ChaincodeSupport_RegisterClient Uses

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

type ChaincodeSupport_RegisterServer Uses

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

type ChaincodeValidation Uses

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 Uses

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

func (*ChaincodeValidation) GetArgument Uses

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

func (*ChaincodeValidation) GetName Uses

func (m *ChaincodeValidation) GetName() string

func (*ChaincodeValidation) ProtoMessage Uses

func (*ChaincodeValidation) ProtoMessage()

func (*ChaincodeValidation) Reset Uses

func (m *ChaincodeValidation) Reset()

func (*ChaincodeValidation) String Uses

func (m *ChaincodeValidation) String() string

func (*ChaincodeValidation) XXX_DiscardUnknown Uses

func (m *ChaincodeValidation) XXX_DiscardUnknown()

func (*ChaincodeValidation) XXX_Marshal Uses

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

func (*ChaincodeValidation) XXX_Merge Uses

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

func (*ChaincodeValidation) XXX_Size Uses

func (m *ChaincodeValidation) XXX_Size() int

func (*ChaincodeValidation) XXX_Unmarshal Uses

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

type Chaincode_ConnectClient Uses

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

type Chaincode_ConnectServer Uses

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

type ChannelInfo Uses

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 Uses

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

func (*ChannelInfo) GetChannelId Uses

func (m *ChannelInfo) GetChannelId() string

func (*ChannelInfo) ProtoMessage Uses

func (*ChannelInfo) ProtoMessage()

func (*ChannelInfo) Reset Uses

func (m *ChannelInfo) Reset()

func (*ChannelInfo) String Uses

func (m *ChannelInfo) String() string

func (*ChannelInfo) XXX_DiscardUnknown Uses

func (m *ChannelInfo) XXX_DiscardUnknown()

func (*ChannelInfo) XXX_Marshal Uses

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

func (*ChannelInfo) XXX_Merge Uses

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

func (*ChannelInfo) XXX_Size Uses

func (m *ChannelInfo) XXX_Size() int

func (*ChannelInfo) XXX_Unmarshal Uses

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

type ChannelQueryResponse Uses

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 Uses

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

func (*ChannelQueryResponse) GetChannels Uses

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

func (*ChannelQueryResponse) ProtoMessage Uses

func (*ChannelQueryResponse) ProtoMessage()

func (*ChannelQueryResponse) Reset Uses

func (m *ChannelQueryResponse) Reset()

func (*ChannelQueryResponse) String Uses

func (m *ChannelQueryResponse) String() string

func (*ChannelQueryResponse) XXX_DiscardUnknown Uses

func (m *ChannelQueryResponse) XXX_DiscardUnknown()

func (*ChannelQueryResponse) XXX_Marshal Uses

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

func (*ChannelQueryResponse) XXX_Merge Uses

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

func (*ChannelQueryResponse) XXX_Size Uses

func (m *ChannelQueryResponse) XXX_Size() int

func (*ChannelQueryResponse) XXX_Unmarshal Uses

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

type CollectionConfig Uses

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 Uses

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

func (*CollectionConfig) GetPayload Uses

func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload

func (*CollectionConfig) GetStaticCollectionConfig Uses

func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig

func (*CollectionConfig) ProtoMessage Uses

func (*CollectionConfig) ProtoMessage()

func (*CollectionConfig) Reset Uses

func (m *CollectionConfig) Reset()

func (*CollectionConfig) String Uses

func (m *CollectionConfig) String() string

func (*CollectionConfig) XXX_DiscardUnknown Uses

func (m *CollectionConfig) XXX_DiscardUnknown()

func (*CollectionConfig) XXX_Marshal Uses

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

func (*CollectionConfig) XXX_Merge Uses

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

func (*CollectionConfig) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*CollectionConfig) XXX_Size Uses

func (m *CollectionConfig) XXX_Size() int

func (*CollectionConfig) XXX_Unmarshal Uses

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

type CollectionConfigPackage Uses

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 Uses

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

func (*CollectionConfigPackage) GetConfig Uses

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

func (*CollectionConfigPackage) ProtoMessage Uses

func (*CollectionConfigPackage) ProtoMessage()

func (*CollectionConfigPackage) Reset Uses

func (m *CollectionConfigPackage) Reset()

func (*CollectionConfigPackage) String Uses

func (m *CollectionConfigPackage) String() string

func (*CollectionConfigPackage) XXX_DiscardUnknown Uses

func (m *CollectionConfigPackage) XXX_DiscardUnknown()

func (*CollectionConfigPackage) XXX_Marshal Uses

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

func (*CollectionConfigPackage) XXX_Merge Uses

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

func (*CollectionConfigPackage) XXX_Size Uses

func (m *CollectionConfigPackage) XXX_Size() int

func (*CollectionConfigPackage) XXX_Unmarshal Uses

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

type CollectionConfig_StaticCollectionConfig Uses

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

type CollectionPolicyConfig Uses

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 Uses

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

func (*CollectionPolicyConfig) GetPayload Uses

func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload

func (*CollectionPolicyConfig) GetSignaturePolicy Uses

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

func (*CollectionPolicyConfig) ProtoMessage Uses

func (*CollectionPolicyConfig) ProtoMessage()

func (*CollectionPolicyConfig) Reset Uses

func (m *CollectionPolicyConfig) Reset()

func (*CollectionPolicyConfig) String Uses

func (m *CollectionPolicyConfig) String() string

func (*CollectionPolicyConfig) XXX_DiscardUnknown Uses

func (m *CollectionPolicyConfig) XXX_DiscardUnknown()

func (*CollectionPolicyConfig) XXX_Marshal Uses

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

func (*CollectionPolicyConfig) XXX_Merge Uses

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

func (*CollectionPolicyConfig) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*CollectionPolicyConfig) XXX_Size Uses

func (m *CollectionPolicyConfig) XXX_Size() int

func (*CollectionPolicyConfig) XXX_Unmarshal Uses

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

type CollectionPolicyConfig_SignaturePolicy Uses

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

type ConfigTree Uses

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 Uses

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

func (*ConfigTree) GetChannelConfig Uses

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

func (*ConfigTree) GetResourcesConfig Uses

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

func (*ConfigTree) ProtoMessage Uses

func (*ConfigTree) ProtoMessage()

func (*ConfigTree) Reset Uses

func (m *ConfigTree) Reset()

func (*ConfigTree) String Uses

func (m *ConfigTree) String() string

func (*ConfigTree) XXX_DiscardUnknown Uses

func (m *ConfigTree) XXX_DiscardUnknown()

func (*ConfigTree) XXX_Marshal Uses

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

func (*ConfigTree) XXX_Merge Uses

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

func (*ConfigTree) XXX_Size Uses

func (m *ConfigTree) XXX_Size() int

func (*ConfigTree) XXX_Unmarshal Uses

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

type DelState Uses

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 Uses

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

func (*DelState) GetCollection Uses

func (m *DelState) GetCollection() string

func (*DelState) GetKey Uses

func (m *DelState) GetKey() string

func (*DelState) ProtoMessage Uses

func (*DelState) ProtoMessage()

func (*DelState) Reset Uses

func (m *DelState) Reset()

func (*DelState) String Uses

func (m *DelState) String() string

func (*DelState) XXX_DiscardUnknown Uses

func (m *DelState) XXX_DiscardUnknown()

func (*DelState) XXX_Marshal Uses

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

func (*DelState) XXX_Merge Uses

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

func (*DelState) XXX_Size Uses

func (m *DelState) XXX_Size() int

func (*DelState) XXX_Unmarshal Uses

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

type DeliverClient Uses

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 Uses

func NewDeliverClient(cc *grpc.ClientConn) DeliverClient

type DeliverResponse Uses

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 Uses

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

func (*DeliverResponse) GetBlock Uses

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

func (*DeliverResponse) GetBlockAndPrivateData Uses

func (m *DeliverResponse) GetBlockAndPrivateData() *BlockAndPrivateData

func (*DeliverResponse) GetFilteredBlock Uses

func (m *DeliverResponse) GetFilteredBlock() *FilteredBlock

func (*DeliverResponse) GetStatus Uses

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

func (*DeliverResponse) GetType Uses

func (m *DeliverResponse) GetType() isDeliverResponse_Type

func (*DeliverResponse) ProtoMessage Uses

func (*DeliverResponse) ProtoMessage()

func (*DeliverResponse) Reset Uses

func (m *DeliverResponse) Reset()

func (*DeliverResponse) String Uses

func (m *DeliverResponse) String() string

func (*DeliverResponse) XXX_DiscardUnknown Uses

func (m *DeliverResponse) XXX_DiscardUnknown()

func (*DeliverResponse) XXX_Marshal Uses

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

func (*DeliverResponse) XXX_Merge Uses

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

func (*DeliverResponse) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*DeliverResponse) XXX_Size Uses

func (m *DeliverResponse) XXX_Size() int

func (*DeliverResponse) XXX_Unmarshal Uses

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

type DeliverResponse_Block Uses

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

type DeliverResponse_BlockAndPrivateData Uses

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

type DeliverResponse_FilteredBlock Uses

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

type DeliverResponse_Status Uses

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

type DeliverServer Uses

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 Uses

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

type Deliver_DeliverFilteredClient Uses

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

type Deliver_DeliverFilteredServer Uses

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

type Deliver_DeliverServer Uses

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

type Deliver_DeliverWithPrivateDataClient Uses

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

type Deliver_DeliverWithPrivateDataServer Uses

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

type Endorsement Uses

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 Uses

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

func (*Endorsement) GetEndorser Uses

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

func (*Endorsement) GetSignature Uses

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

func (*Endorsement) ProtoMessage Uses

func (*Endorsement) ProtoMessage()

func (*Endorsement) Reset Uses

func (m *Endorsement) Reset()

func (*Endorsement) String Uses

func (m *Endorsement) String() string

func (*Endorsement) XXX_DiscardUnknown Uses

func (m *Endorsement) XXX_DiscardUnknown()

func (*Endorsement) XXX_Marshal Uses

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

func (*Endorsement) XXX_Merge Uses

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

func (*Endorsement) XXX_Size Uses

func (m *Endorsement) XXX_Size() int

func (*Endorsement) XXX_Unmarshal Uses

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

type EndorserClient Uses

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 Uses

func NewEndorserClient(cc *grpc.ClientConn) EndorserClient

type EndorserServer Uses

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

EndorserServer is the server API for Endorser service.

type FilteredBlock Uses

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 Uses

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

func (*FilteredBlock) GetChannelId Uses

func (m *FilteredBlock) GetChannelId() string

func (*FilteredBlock) GetFilteredTransactions Uses

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

func (*FilteredBlock) GetNumber Uses

func (m *FilteredBlock) GetNumber() uint64

func (*FilteredBlock) ProtoMessage Uses

func (*FilteredBlock) ProtoMessage()

func (*FilteredBlock) Reset Uses

func (m *FilteredBlock) Reset()

func (*FilteredBlock) String Uses

func (m *FilteredBlock) String() string

func (*FilteredBlock) XXX_DiscardUnknown Uses

func (m *FilteredBlock) XXX_DiscardUnknown()

func (*FilteredBlock) XXX_Marshal Uses

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

func (*FilteredBlock) XXX_Merge Uses

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

func (*FilteredBlock) XXX_Size Uses

func (m *FilteredBlock) XXX_Size() int

func (*FilteredBlock) XXX_Unmarshal Uses

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

type FilteredChaincodeAction Uses

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 Uses

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

func (*FilteredChaincodeAction) GetChaincodeEvent Uses

func (m *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent

func (*FilteredChaincodeAction) ProtoMessage Uses

func (*FilteredChaincodeAction) ProtoMessage()

func (*FilteredChaincodeAction) Reset Uses

func (m *FilteredChaincodeAction) Reset()

func (*FilteredChaincodeAction) String Uses

func (m *FilteredChaincodeAction) String() string

func (*FilteredChaincodeAction) XXX_DiscardUnknown Uses

func (m *FilteredChaincodeAction) XXX_DiscardUnknown()

func (*FilteredChaincodeAction) XXX_Marshal Uses

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

func (*FilteredChaincodeAction) XXX_Merge Uses

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

func (*FilteredChaincodeAction) XXX_Size Uses

func (m *FilteredChaincodeAction) XXX_Size() int

func (*FilteredChaincodeAction) XXX_Unmarshal Uses

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

type FilteredTransaction Uses

type FilteredTransaction struct {
    Txid             string            `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
    Type             common.HeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=common.HeaderType" json:"type,omitempty"`
    TxValidationCode TxValidationCode  `protobuf:"varint,3,opt,name=tx_validation_code,json=txValidationCode,proto3,enum=protos.TxValidationCode" json:"tx_validation_code,omitempty"`
    // Types that are valid to be assigned to Data:
    //	*FilteredTransaction_TransactionActions
    Data                 isFilteredTransaction_Data `protobuf_oneof:"Data"`
    XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
    XXX_unrecognized     []byte                     `json:"-"`
    XXX_sizecache        int32                      `json:"-"`
}

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

func (*FilteredTransaction) Descriptor Uses

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

func (*FilteredTransaction) GetData Uses

func (m *FilteredTransaction) GetData() isFilteredTransaction_Data

func (*FilteredTransaction) GetTransactionActions Uses

func (m *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions

func (*FilteredTransaction) GetTxValidationCode Uses

func (m *FilteredTransaction) GetTxValidationCode() TxValidationCode

func (*FilteredTransaction) GetTxid Uses

func (m *FilteredTransaction) GetTxid() string

func (*FilteredTransaction) GetType Uses

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

func (*FilteredTransaction) ProtoMessage Uses

func (*FilteredTransaction) ProtoMessage()

func (*FilteredTransaction) Reset Uses

func (m *FilteredTransaction) Reset()

func (*FilteredTransaction) String Uses

func (m *FilteredTransaction) String() string

func (*FilteredTransaction) XXX_DiscardUnknown Uses

func (m *FilteredTransaction) XXX_DiscardUnknown()

func (*FilteredTransaction) XXX_Marshal Uses

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

func (*FilteredTransaction) XXX_Merge Uses

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

func (*FilteredTransaction) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*FilteredTransaction) XXX_Size Uses

func (m *FilteredTransaction) XXX_Size() int

func (*FilteredTransaction) XXX_Unmarshal Uses

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

type FilteredTransactionActions Uses

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 Uses

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

func (*FilteredTransactionActions) GetChaincodeActions Uses

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

func (*FilteredTransactionActions) ProtoMessage Uses

func (*FilteredTransactionActions) ProtoMessage()

func (*FilteredTransactionActions) Reset Uses

func (m *FilteredTransactionActions) Reset()

func (*FilteredTransactionActions) String Uses

func (m *FilteredTransactionActions) String() string

func (*FilteredTransactionActions) XXX_DiscardUnknown Uses

func (m *FilteredTransactionActions) XXX_DiscardUnknown()

func (*FilteredTransactionActions) XXX_Marshal Uses

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

func (*FilteredTransactionActions) XXX_Merge Uses

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

func (*FilteredTransactionActions) XXX_Size Uses

func (m *FilteredTransactionActions) XXX_Size() int

func (*FilteredTransactionActions) XXX_Unmarshal Uses

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

type FilteredTransaction_TransactionActions Uses

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

type GetHistoryForKey Uses

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 Uses

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

func (*GetHistoryForKey) GetKey Uses

func (m *GetHistoryForKey) GetKey() string

func (*GetHistoryForKey) ProtoMessage Uses

func (*GetHistoryForKey) ProtoMessage()

func (*GetHistoryForKey) Reset Uses

func (m *GetHistoryForKey) Reset()

func (*GetHistoryForKey) String Uses

func (m *GetHistoryForKey) String() string

func (*GetHistoryForKey) XXX_DiscardUnknown Uses

func (m *GetHistoryForKey) XXX_DiscardUnknown()

func (*GetHistoryForKey) XXX_Marshal Uses

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

func (*GetHistoryForKey) XXX_Merge Uses

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

func (*GetHistoryForKey) XXX_Size Uses

func (m *GetHistoryForKey) XXX_Size() int

func (*GetHistoryForKey) XXX_Unmarshal Uses

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

type GetQueryResult Uses

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 Uses

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

func (*GetQueryResult) GetCollection Uses

func (m *GetQueryResult) GetCollection() string

func (*GetQueryResult) GetMetadata Uses

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

func (*GetQueryResult) GetQuery Uses

func (m *GetQueryResult) GetQuery() string

func (*GetQueryResult) ProtoMessage Uses

func (*GetQueryResult) ProtoMessage()

func (*GetQueryResult) Reset Uses

func (m *GetQueryResult) Reset()

func (*GetQueryResult) String Uses

func (m *GetQueryResult) String() string

func (*GetQueryResult) XXX_DiscardUnknown Uses

func (m *GetQueryResult) XXX_DiscardUnknown()

func (*GetQueryResult) XXX_Marshal Uses

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

func (*GetQueryResult) XXX_Merge Uses

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

func (*GetQueryResult) XXX_Size Uses

func (m *GetQueryResult) XXX_Size() int

func (*GetQueryResult) XXX_Unmarshal Uses

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

type GetState Uses

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 Uses

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

func (*GetState) GetCollection Uses

func (m *GetState) GetCollection() string

func (*GetState) GetKey Uses

func (m *GetState) GetKey() string

func (*GetState) ProtoMessage Uses

func (*GetState) ProtoMessage()

func (*GetState) Reset Uses

func (m *GetState) Reset()

func (*GetState) String Uses

func (m *GetState) String() string

func (*GetState) XXX_DiscardUnknown Uses

func (m *GetState) XXX_DiscardUnknown()

func (*GetState) XXX_Marshal Uses

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

func (*GetState) XXX_Merge Uses

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

func (*GetState) XXX_Size Uses

func (m *GetState) XXX_Size() int

func (*GetState) XXX_Unmarshal Uses

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

type GetStateByRange Uses

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 Uses

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

func (*GetStateByRange) GetCollection Uses

func (m *GetStateByRange) GetCollection() string

func (*GetStateByRange) GetEndKey Uses

func (m *GetStateByRange) GetEndKey() string

func (*GetStateByRange) GetMetadata Uses

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

func (*GetStateByRange) GetStartKey Uses

func (m *GetStateByRange) GetStartKey() string

func (*GetStateByRange) ProtoMessage Uses

func (*GetStateByRange) ProtoMessage()

func (*GetStateByRange) Reset Uses

func (m *GetStateByRange) Reset()

func (*GetStateByRange) String Uses

func (m *GetStateByRange) String() string

func (*GetStateByRange) XXX_DiscardUnknown Uses

func (m *GetStateByRange) XXX_DiscardUnknown()

func (*GetStateByRange) XXX_Marshal Uses

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

func (*GetStateByRange) XXX_Merge Uses

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

func (*GetStateByRange) XXX_Size Uses

func (m *GetStateByRange) XXX_Size() int

func (*GetStateByRange) XXX_Unmarshal Uses

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

type GetStateMetadata Uses

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 Uses

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

func (*GetStateMetadata) GetCollection Uses

func (m *GetStateMetadata) GetCollection() string

func (*GetStateMetadata) GetKey Uses

func (m *GetStateMetadata) GetKey() string

func (*GetStateMetadata) ProtoMessage Uses

func (*GetStateMetadata) ProtoMessage()

func (*GetStateMetadata) Reset Uses

func (m *GetStateMetadata) Reset()

func (*GetStateMetadata) String Uses

func (m *GetStateMetadata) String() string

func (*GetStateMetadata) XXX_DiscardUnknown Uses

func (m *GetStateMetadata) XXX_DiscardUnknown()

func (*GetStateMetadata) XXX_Marshal Uses

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

func (*GetStateMetadata) XXX_Merge Uses

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

func (*GetStateMetadata) XXX_Size Uses

func (m *GetStateMetadata) XXX_Size() int

func (*GetStateMetadata) XXX_Unmarshal Uses

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

type LifecycleEvent Uses

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 Uses

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

func (*LifecycleEvent) GetChaincodeName Uses

func (m *LifecycleEvent) GetChaincodeName() string

func (*LifecycleEvent) ProtoMessage Uses

func (*LifecycleEvent) ProtoMessage()

func (*LifecycleEvent) Reset Uses

func (m *LifecycleEvent) Reset()

func (*LifecycleEvent) String Uses

func (m *LifecycleEvent) String() string

func (*LifecycleEvent) XXX_DiscardUnknown Uses

func (m *LifecycleEvent) XXX_DiscardUnknown()

func (*LifecycleEvent) XXX_Marshal Uses

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

func (*LifecycleEvent) XXX_Merge Uses

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

func (*LifecycleEvent) XXX_Size Uses

func (m *LifecycleEvent) XXX_Size() int

func (*LifecycleEvent) XXX_Unmarshal Uses

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

type MetaDataKeys Uses

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 Uses

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

func (MetaDataKeys) String Uses

func (x MetaDataKeys) String() string

type ProcessedTransaction Uses

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 Uses

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

func (*ProcessedTransaction) GetTransactionEnvelope Uses

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

func (*ProcessedTransaction) GetValidationCode Uses

func (m *ProcessedTransaction) GetValidationCode() int32

func (*ProcessedTransaction) ProtoMessage Uses

func (*ProcessedTransaction) ProtoMessage()

func (*ProcessedTransaction) Reset Uses

func (m *ProcessedTransaction) Reset()

func (*ProcessedTransaction) String Uses

func (m *ProcessedTransaction) String() string

func (*ProcessedTransaction) XXX_DiscardUnknown Uses

func (m *ProcessedTransaction) XXX_DiscardUnknown()

func (*ProcessedTransaction) XXX_Marshal Uses

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

func (*ProcessedTransaction) XXX_Merge Uses

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

func (*ProcessedTransaction) XXX_Size Uses

func (m *ProcessedTransaction) XXX_Size() int

func (*ProcessedTransaction) XXX_Unmarshal Uses

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

type Proposal Uses

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 Uses

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

func (*Proposal) GetExtension Uses

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

func (*Proposal) GetHeader Uses

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

func (*Proposal) GetPayload Uses

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

func (*Proposal) ProtoMessage Uses

func (*Proposal) ProtoMessage()

func (*Proposal) Reset Uses

func (m *Proposal) Reset()

func (*Proposal) String Uses

func (m *Proposal) String() string

func (*Proposal) XXX_DiscardUnknown Uses

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal Uses

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

func (*Proposal) XXX_Merge Uses

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

func (*Proposal) XXX_Size Uses

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal Uses

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

type ProposalResponse Uses

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

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

func (*ProposalResponse) Descriptor Uses

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

func (*ProposalResponse) GetEndorsement Uses

func (m *ProposalResponse) GetEndorsement() *Endorsement

func (*ProposalResponse) GetPayload Uses

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

func (*ProposalResponse) GetResponse Uses

func (m *ProposalResponse) GetResponse() *Response

func (*ProposalResponse) GetTimestamp Uses

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

func (*ProposalResponse) GetVersion Uses

func (m *ProposalResponse) GetVersion() int32

func (*ProposalResponse) ProtoMessage Uses

func (*ProposalResponse) ProtoMessage()

func (*ProposalResponse) Reset Uses

func (m *ProposalResponse) Reset()

func (*ProposalResponse) String Uses

func (m *ProposalResponse) String() string

func (*ProposalResponse) XXX_DiscardUnknown Uses

func (m *ProposalResponse) XXX_DiscardUnknown()

func (*ProposalResponse) XXX_Marshal Uses

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

func (*ProposalResponse) XXX_Merge Uses

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

func (*ProposalResponse) XXX_Size Uses

func (m *ProposalResponse) XXX_Size() int

func (*ProposalResponse) XXX_Unmarshal Uses

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

type ProposalResponsePayload Uses

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 Uses

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

func (*ProposalResponsePayload) GetExtension Uses

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

func (*ProposalResponsePayload) GetProposalHash Uses

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

func (*ProposalResponsePayload) ProtoMessage Uses

func (*ProposalResponsePayload) ProtoMessage()

func (*ProposalResponsePayload) Reset Uses

func (m *ProposalResponsePayload) Reset()

func (*ProposalResponsePayload) String Uses

func (m *ProposalResponsePayload) String() string

func (*ProposalResponsePayload) XXX_DiscardUnknown Uses

func (m *ProposalResponsePayload) XXX_DiscardUnknown()

func (*ProposalResponsePayload) XXX_Marshal Uses

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

func (*ProposalResponsePayload) XXX_Merge Uses

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

func (*ProposalResponsePayload) XXX_Size Uses

func (m *ProposalResponsePayload) XXX_Size() int

func (*ProposalResponsePayload) XXX_Unmarshal Uses

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

type PutState Uses

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 Uses

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

func (*PutState) GetCollection Uses

func (m *PutState) GetCollection() string

func (*PutState) GetKey Uses

func (m *PutState) GetKey() string

func (*PutState) GetValue Uses

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

func (*PutState) ProtoMessage Uses

func (*PutState) ProtoMessage()

func (*PutState) Reset Uses

func (m *PutState) Reset()

func (*PutState) String Uses

func (m *PutState) String() string

func (*PutState) XXX_DiscardUnknown Uses

func (m *PutState) XXX_DiscardUnknown()

func (*PutState) XXX_Marshal Uses

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

func (*PutState) XXX_Merge Uses

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

func (*PutState) XXX_Size Uses

func (m *PutState) XXX_Size() int

func (*PutState) XXX_Unmarshal Uses

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

type PutStateMetadata Uses

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 Uses

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

func (*PutStateMetadata) GetCollection Uses

func (m *PutStateMetadata) GetCollection() string

func (*PutStateMetadata) GetKey Uses

func (m *PutStateMetadata) GetKey() string

func (*PutStateMetadata) GetMetadata Uses

func (m *PutStateMetadata) GetMetadata() *StateMetadata

func (*PutStateMetadata) ProtoMessage Uses

func (*PutStateMetadata) ProtoMessage()

func (*PutStateMetadata) Reset Uses

func (m *PutStateMetadata) Reset()

func (*PutStateMetadata) String Uses

func (m *PutStateMetadata) String() string

func (*PutStateMetadata) XXX_DiscardUnknown Uses

func (m *PutStateMetadata) XXX_DiscardUnknown()

func (*PutStateMetadata) XXX_Marshal Uses

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

func (*PutStateMetadata) XXX_Merge Uses

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

func (*PutStateMetadata) XXX_Size Uses

func (m *PutStateMetadata) XXX_Size() int

func (*PutStateMetadata) XXX_Unmarshal Uses

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

type QueryMetadata Uses

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 Uses

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

func (*QueryMetadata) GetBookmark Uses

func (m *QueryMetadata) GetBookmark() string

func (*QueryMetadata) GetPageSize Uses

func (m *QueryMetadata) GetPageSize() int32

func (*QueryMetadata) ProtoMessage Uses

func (*QueryMetadata) ProtoMessage()

func (*QueryMetadata) Reset Uses

func (m *QueryMetadata) Reset()

func (*QueryMetadata) String Uses

func (m *QueryMetadata) String() string

func (*QueryMetadata) XXX_DiscardUnknown Uses

func (m *QueryMetadata) XXX_DiscardUnknown()

func (*QueryMetadata) XXX_Marshal Uses

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

func (*QueryMetadata) XXX_Merge Uses

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

func (*QueryMetadata) XXX_Size Uses

func (m *QueryMetadata) XXX_Size() int

func (*QueryMetadata) XXX_Unmarshal Uses

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

type QueryResponse Uses

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 Uses

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

func (*QueryResponse) GetHasMore Uses

func (m *QueryResponse) GetHasMore() bool

func (*QueryResponse) GetId Uses

func (m *QueryResponse) GetId() string

func (*QueryResponse) GetMetadata Uses

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

func (*QueryResponse) GetResults Uses

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

func (*QueryResponse) ProtoMessage Uses

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) Reset Uses

func (m *QueryResponse) Reset()

func (*QueryResponse) String Uses

func (m *QueryResponse) String() string

func (*QueryResponse) XXX_DiscardUnknown Uses

func (m *QueryResponse) XXX_DiscardUnknown()

func (*QueryResponse) XXX_Marshal Uses

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

func (*QueryResponse) XXX_Merge Uses

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

func (*QueryResponse) XXX_Size Uses

func (m *QueryResponse) XXX_Size() int

func (*QueryResponse) XXX_Unmarshal Uses

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

type QueryResponseMetadata Uses

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

QueryResponseMetadata is the metadata of a QueryResponse. It contains a count which denotes the number of records fetched from the ledger and a bookmark.

func (*QueryResponseMetadata) Descriptor Uses

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

func (*QueryResponseMetadata) GetBookmark Uses

func (m *QueryResponseMetadata) GetBookmark() string

func (*QueryResponseMetadata) GetFetchedRecordsCount Uses

func (m *QueryResponseMetadata) GetFetchedRecordsCount() int32

func (*QueryResponseMetadata) ProtoMessage Uses

func (*QueryResponseMetadata) ProtoMessage()

func (*QueryResponseMetadata) Reset Uses

func (m *QueryResponseMetadata) Reset()

func (*QueryResponseMetadata) String Uses

func (m *QueryResponseMetadata) String() string

func (*QueryResponseMetadata) XXX_DiscardUnknown Uses

func (m *QueryResponseMetadata) XXX_DiscardUnknown()

func (*QueryResponseMetadata) XXX_Marshal Uses

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

func (*QueryResponseMetadata) XXX_Merge Uses

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

func (*QueryResponseMetadata) XXX_Size Uses

func (m *QueryResponseMetadata) XXX_Size() int

func (*QueryResponseMetadata) XXX_Unmarshal Uses

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

type QueryResultBytes Uses

type QueryResultBytes struct {
    ResultBytes          []byte   `protobuf:"bytes,1,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

QueryResultBytes hold the byte representation of a record returned by the peer.

func (*QueryResultBytes) Descriptor Uses

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

func (*QueryResultBytes) GetResultBytes Uses

func (m *QueryResultBytes) GetResultBytes() []byte

func (*QueryResultBytes) ProtoMessage Uses

func (*QueryResultBytes) ProtoMessage()

func (*QueryResultBytes) Reset Uses

func (m *QueryResultBytes) Reset()

func (*QueryResultBytes) String Uses

func (m *QueryResultBytes) String() string

func (*QueryResultBytes) XXX_DiscardUnknown Uses

func (m *QueryResultBytes) XXX_DiscardUnknown()

func (*QueryResultBytes) XXX_Marshal Uses

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

func (*QueryResultBytes) XXX_Merge Uses

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

func (*QueryResultBytes) XXX_Size Uses

func (m *QueryResultBytes) XXX_Size() int

func (*QueryResultBytes) XXX_Unmarshal Uses

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

type QueryStateClose Uses

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

func (*QueryStateClose) Descriptor Uses

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

func (*QueryStateClose) GetId Uses

func (m *QueryStateClose) GetId() string

func (*QueryStateClose) ProtoMessage Uses

func (*QueryStateClose) ProtoMessage()

func (*QueryStateClose) Reset Uses

func (m *QueryStateClose) Reset()

func (*QueryStateClose) String Uses

func (m *QueryStateClose) String() string

func (*QueryStateClose) XXX_DiscardUnknown Uses

func (m *QueryStateClose) XXX_DiscardUnknown()

func (*QueryStateClose) XXX_Marshal Uses

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

func (*QueryStateClose) XXX_Merge Uses

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

func (*QueryStateClose) XXX_Size Uses

func (m *QueryStateClose) XXX_Size() int

func (*QueryStateClose) XXX_Unmarshal Uses

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

type QueryStateNext Uses

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

func (*QueryStateNext) Descriptor Uses

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

func (*QueryStateNext) GetId Uses

func (m *QueryStateNext) GetId() string

func (*QueryStateNext) ProtoMessage Uses

func (*QueryStateNext) ProtoMessage()

func (*QueryStateNext) Reset Uses

func (m *QueryStateNext) Reset()

func (*QueryStateNext) String Uses

func (m *QueryStateNext) String() string

func (*QueryStateNext) XXX_DiscardUnknown Uses

func (m *QueryStateNext) XXX_DiscardUnknown()

func (*QueryStateNext) XXX_Marshal Uses

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

func (*QueryStateNext) XXX_Merge Uses

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

func (*QueryStateNext) XXX_Size Uses

func (m *QueryStateNext) XXX_Size() int

func (*QueryStateNext) XXX_Unmarshal Uses

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

type Response Uses

type Response struct {
    // A status code that should follow the HTTP status codes.
    Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
    // A message associated with the response code.
    Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
    // A payload that can be used to include metadata with this response.
    Payload              []byte   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A response with a representation similar to an HTTP response that can be used within another message.

func (*Response) Descriptor Uses

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

func (*Response) GetMessage Uses

func (m *Response) GetMessage() string

func (*Response) GetPayload Uses

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

func (*Response) GetStatus Uses

func (m *Response) GetStatus() int32

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) String Uses

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown Uses

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal Uses

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

func (*Response) XXX_Merge Uses

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

func (*Response) XXX_Size Uses

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal Uses

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

type SignedChaincodeDeploymentSpec Uses

type SignedChaincodeDeploymentSpec struct {
    // This is the bytes of the ChaincodeDeploymentSpec
    ChaincodeDeploymentSpec []byte `protobuf:"bytes,1,opt,name=chaincode_deployment_spec,json=chaincodeDeploymentSpec,proto3" json:"chaincode_deployment_spec,omitempty"`
    // This is the instantiation policy which is identical in structure
    // to endorsement policy.  This policy is checked by the VSCC at commit
    // time on the instantiation (all peers will get the same policy as it
    // will be part of the LSCC instantation record and will be part of the
    // hash as well)
    InstantiationPolicy []byte `protobuf:"bytes,2,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"`
    // The endorsements of the above deployment spec, the owner's signature over
    // chaincode_deployment_spec and Endorsement.endorser.
    OwnerEndorsements    []*Endorsement `protobuf:"bytes,3,rep,name=owner_endorsements,json=ownerEndorsements,proto3" json:"owner_endorsements,omitempty"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

SignedChaincodeDeploymentSpec carries the CDS along with endorsements

func (*SignedChaincodeDeploymentSpec) Descriptor Uses

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

func (*SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec Uses

func (m *SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec() []byte

func (*SignedChaincodeDeploymentSpec) GetInstantiationPolicy Uses

func (m *SignedChaincodeDeploymentSpec) GetInstantiationPolicy() []byte

func (*SignedChaincodeDeploymentSpec) GetOwnerEndorsements Uses

func (m *SignedChaincodeDeploymentSpec) GetOwnerEndorsements() []*Endorsement

func (*SignedChaincodeDeploymentSpec) ProtoMessage Uses

func (*SignedChaincodeDeploymentSpec) ProtoMessage()

func (*SignedChaincodeDeploymentSpec) Reset Uses

func (m *SignedChaincodeDeploymentSpec) Reset()

func (*SignedChaincodeDeploymentSpec) String Uses

func (m *SignedChaincodeDeploymentSpec) String() string

func (*SignedChaincodeDeploymentSpec) XXX_DiscardUnknown Uses

func (m *SignedChaincodeDeploymentSpec) XXX_DiscardUnknown()

func (*SignedChaincodeDeploymentSpec) XXX_Marshal Uses

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

func (*SignedChaincodeDeploymentSpec) XXX_Merge Uses

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

func (*SignedChaincodeDeploymentSpec) XXX_Size Uses

func (m *SignedChaincodeDeploymentSpec) XXX_Size() int

func (*SignedChaincodeDeploymentSpec) XXX_Unmarshal Uses

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

type SignedProposal Uses

type SignedProposal struct {
    // The bytes of Proposal
    ProposalBytes []byte `protobuf:"bytes,1,opt,name=proposal_bytes,json=proposalBytes,proto3" json:"proposal_bytes,omitempty"`
    // Signaure over proposalBytes; this signature is to be verified against
    // the creator identity contained in the header of the Proposal message
    // marshaled as proposalBytes
    Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

This structure is necessary to sign the proposal which contains the header and the payload. Without this structure, we would have to concatenate the header and the payload to verify the signature, which could be expensive with large payload

When an endorser receives a SignedProposal message, it should verify the signature over the proposal bytes. This verification requires the following steps: 1. Verification of the validity of the certificate that was used to produce

the signature.  The certificate will be available once proposalBytes has
been unmarshalled to a Proposal message, and Proposal.header has been
unmarshalled to a Header message. While this unmarshalling-before-verifying
might not be ideal, it is unavoidable because i) the signature needs to also
protect the signing certificate; ii) it is desirable that Header is created
once by the client and never changed (for the sake of accountability and
non-repudiation). Note also that it is actually impossible to conclusively
verify the validity of the certificate included in a Proposal, because the
proposal needs to first be endorsed and ordered with respect to certificate
expiration transactions. Still, it is useful to pre-filter expired
certificates at this stage.

2. Verification that the certificate is trusted (signed by a trusted CA) and

that it is allowed to transact with us (with respect to some ACLs);

3. Verification that the signature on proposalBytes is valid; 4. Detect replay attacks;

func (*SignedProposal) Descriptor Uses

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

func (*SignedProposal) GetProposalBytes Uses

func (m *SignedProposal) GetProposalBytes() []byte

func (*SignedProposal) GetSignature Uses

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

func (*SignedProposal) ProtoMessage Uses

func (*SignedProposal) ProtoMessage()

func (*SignedProposal) Reset Uses

func (m *SignedProposal) Reset()

func (*SignedProposal) String Uses

func (m *SignedProposal) String() string

func (*SignedProposal) XXX_DiscardUnknown Uses

func (m *SignedProposal) XXX_DiscardUnknown()

func (*SignedProposal) XXX_Marshal Uses

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

func (*SignedProposal) XXX_Merge Uses

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

func (*SignedProposal) XXX_Size Uses

func (m *SignedProposal) XXX_Size() int

func (*SignedProposal) XXX_Unmarshal Uses

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

type StateMetadata Uses

type StateMetadata struct {
    Metakey              string   `protobuf:"bytes,1,opt,name=metakey,proto3" json:"metakey,omitempty"`
    Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StateMetadata) Descriptor Uses

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

func (*StateMetadata) GetMetakey Uses

func (m *StateMetadata) GetMetakey() string

func (*StateMetadata) GetValue Uses

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

func (*StateMetadata) ProtoMessage Uses

func (*StateMetadata) ProtoMessage()

func (*StateMetadata) Reset Uses

func (m *StateMetadata) Reset()

func (*StateMetadata) String Uses

func (m *StateMetadata) String() string

func (*StateMetadata) XXX_DiscardUnknown Uses

func (m *StateMetadata) XXX_DiscardUnknown()

func (*StateMetadata) XXX_Marshal Uses

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

func (*StateMetadata) XXX_Merge Uses

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

func (*StateMetadata) XXX_Size Uses

func (m *StateMetadata) XXX_Size() int

func (*StateMetadata) XXX_Unmarshal Uses

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

type StateMetadataResult Uses

type StateMetadataResult struct {
    Entries              []*StateMetadata `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

func (*StateMetadataResult) Descriptor Uses

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

func (*StateMetadataResult) GetEntries Uses

func (m *StateMetadataResult) GetEntries() []*StateMetadata

func (*StateMetadataResult) ProtoMessage Uses

func (*StateMetadataResult) ProtoMessage()

func (*StateMetadataResult) Reset Uses

func (m *StateMetadataResult) Reset()

func (*StateMetadataResult) String Uses

func (m *StateMetadataResult) String() string

func (*StateMetadataResult) XXX_DiscardUnknown Uses

func (m *StateMetadataResult) XXX_DiscardUnknown()

func (*StateMetadataResult) XXX_Marshal Uses

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

func (*StateMetadataResult) XXX_Merge Uses

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

func (*StateMetadataResult) XXX_Size Uses

func (m *StateMetadataResult) XXX_Size() int

func (*StateMetadataResult) XXX_Unmarshal Uses

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

type StaticCollectionConfig Uses

type StaticCollectionConfig struct {
    // the name of the collection inside the denoted chaincode
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // a reference to a policy residing / managed in the config block
    // to define which orgs have access to this collection’s private data
    MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"`
    // The minimum number of peers private data will be sent to upon
    // endorsement. The endorsement would fail if dissemination to at least
    // this number of peers is not achieved.
    RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"`
    // The maximum number of peers that private data will be sent to
    // upon endorsement. This number has to be bigger than required_peer_count.
    MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"`
    // The number of blocks after which the collection data expires.
    // For instance if the value is set to 10, a key last modified by block number 100
    // will be purged at block number 111. A zero value is treated same as MaxUint64
    BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"`
    // The member only read access denotes whether only collection member clients
    // can read the private data (if set to true), or even non members can
    // read the data (if set to false, for example if you want to implement more granular
    // access logic in the chaincode)
    MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"`
    // The member only write access denotes whether only collection member clients
    // can write the private data (if set to true), or even non members can
    // write the data (if set to false, for example if you want to implement more granular
    // access logic in the chaincode)
    MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"`
    // a reference to a policy residing / managed in the config block
    // to define the endorsement policy for this collection
    EndorsementPolicy    *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

StaticCollectionConfig constitutes the configuration parameters of a static collection object. Static collections are collections that are known at chaincode instantiation time, and that cannot be changed. Dynamic collections are deferred.

func (*StaticCollectionConfig) Descriptor Uses

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

func (*StaticCollectionConfig) GetBlockToLive Uses

func (m *StaticCollectionConfig) GetBlockToLive() uint64

func (*StaticCollectionConfig) GetEndorsementPolicy Uses

func (m *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy

func (*StaticCollectionConfig) GetMaximumPeerCount Uses

func (m *StaticCollectionConfig) GetMaximumPeerCount() int32

func (*StaticCollectionConfig) GetMemberOnlyRead Uses

func (m *StaticCollectionConfig) GetMemberOnlyRead() bool

func (*StaticCollectionConfig) GetMemberOnlyWrite Uses

func (m *StaticCollectionConfig) GetMemberOnlyWrite() bool

func (*StaticCollectionConfig) GetMemberOrgsPolicy Uses

func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig

func (*StaticCollectionConfig) GetName Uses

func (m *StaticCollectionConfig) GetName() string

func (*StaticCollectionConfig) GetRequiredPeerCount Uses

func (m *StaticCollectionConfig) GetRequiredPeerCount() int32

func (*StaticCollectionConfig) ProtoMessage Uses

func (*StaticCollectionConfig) ProtoMessage()

func (*StaticCollectionConfig) Reset Uses

func (m *StaticCollectionConfig) Reset()

func (*StaticCollectionConfig) String Uses

func (m *StaticCollectionConfig) String() string

func (*StaticCollectionConfig) XXX_DiscardUnknown Uses

func (m *StaticCollectionConfig) XXX_DiscardUnknown()

func (*StaticCollectionConfig) XXX_Marshal Uses

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

func (*StaticCollectionConfig) XXX_Merge Uses

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

func (*StaticCollectionConfig) XXX_Size Uses

func (m *StaticCollectionConfig) XXX_Size() int

func (*StaticCollectionConfig) XXX_Unmarshal Uses

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

type Transaction Uses

type Transaction struct {
    // The payload is an array of TransactionAction. An array is necessary to
    // accommodate multiple actions per transaction
    Actions              []*TransactionAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

The transaction to be sent to the ordering service. A transaction contains one or more TransactionAction. Each TransactionAction binds a proposal to potentially multiple actions. The transaction is atomic meaning that either all actions in the transaction will be committed or none will. Note that while a Transaction might include more than one Header, the Header.creator field must be the same in each. A single client is free to issue a number of independent Proposal, each with their header (Header) and request payload (ChaincodeProposalPayload). Each proposal is independently endorsed generating an action (ProposalResponsePayload) with one signature per Endorser. Any number of independent proposals (and their action) might be included in a transaction to ensure that they are treated atomically.

func (*Transaction) Descriptor Uses

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

func (*Transaction) GetActions Uses

func (m *Transaction) GetActions() []*TransactionAction

func (*Transaction) ProtoMessage Uses

func (*Transaction) ProtoMessage()

func (*Transaction) Reset Uses

func (m *Transaction) Reset()

func (*Transaction) String Uses

func (m *Transaction) String() string

func (*Transaction) XXX_DiscardUnknown Uses

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal Uses

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

func (*Transaction) XXX_Merge Uses

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

func (*Transaction) XXX_Size Uses

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal Uses

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

type TransactionAction Uses

type TransactionAction struct {
    // The header of the proposal action, which is the proposal header
    Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
    // The payload of the action as defined by the type in the header For
    // chaincode, it's the bytes of ChaincodeActionPayload
    Payload              []byte   `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

TransactionAction binds a proposal to its action. The type field in the header dictates the type of action to be applied to the ledger.

func (*TransactionAction) Descriptor Uses

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

func (*TransactionAction) GetHeader Uses

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

func (*TransactionAction) GetPayload Uses

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

func (*TransactionAction) ProtoMessage Uses

func (*TransactionAction) ProtoMessage()

func (*TransactionAction) Reset Uses

func (m *TransactionAction) Reset()

func (*TransactionAction) String Uses

func (m *TransactionAction) String() string

func (*TransactionAction) XXX_DiscardUnknown Uses

func (m *TransactionAction) XXX_DiscardUnknown()

func (*TransactionAction) XXX_Marshal Uses

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

func (*TransactionAction) XXX_Merge Uses

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

func (*TransactionAction) XXX_Size Uses

func (m *TransactionAction) XXX_Size() int

func (*TransactionAction) XXX_Unmarshal Uses

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

type TxValidationCode Uses

type TxValidationCode int32
const (
    TxValidationCode_VALID                        TxValidationCode = 0
    TxValidationCode_NIL_ENVELOPE                 TxValidationCode = 1
    TxValidationCode_BAD_PAYLOAD                  TxValidationCode = 2
    TxValidationCode_BAD_COMMON_HEADER            TxValidationCode = 3
    TxValidationCode_BAD_CREATOR_SIGNATURE        TxValidationCode = 4
    TxValidationCode_INVALID_ENDORSER_TRANSACTION TxValidationCode = 5
    TxValidationCode_INVALID_CONFIG_TRANSACTION   TxValidationCode = 6
    TxValidationCode_UNSUPPORTED_TX_PAYLOAD       TxValidationCode = 7
    TxValidationCode_BAD_PROPOSAL_TXID            TxValidationCode = 8
    TxValidationCode_DUPLICATE_TXID               TxValidationCode = 9
    TxValidationCode_ENDORSEMENT_POLICY_FAILURE   TxValidationCode = 10
    TxValidationCode_MVCC_READ_CONFLICT           TxValidationCode = 11
    TxValidationCode_PHANTOM_READ_CONFLICT        TxValidationCode = 12
    TxValidationCode_UNKNOWN_TX_TYPE              TxValidationCode = 13
    TxValidationCode_TARGET_CHAIN_NOT_FOUND       TxValidationCode = 14
    TxValidationCode_MARSHAL_TX_ERROR             TxValidationCode = 15
    TxValidationCode_NIL_TXACTION                 TxValidationCode = 16
    TxValidationCode_EXPIRED_CHAINCODE            TxValidationCode = 17
    TxValidationCode_CHAINCODE_VERSION_CONFLICT   TxValidationCode = 18
    TxValidationCode_BAD_HEADER_EXTENSION         TxValidationCode = 19
    TxValidationCode_BAD_CHANNEL_HEADER           TxValidationCode = 20
    TxValidationCode_BAD_RESPONSE_PAYLOAD         TxValidationCode = 21
    TxValidationCode_BAD_RWSET                    TxValidationCode = 22
    TxValidationCode_ILLEGAL_WRITESET             TxValidationCode = 23
    TxValidationCode_INVALID_WRITESET             TxValidationCode = 24
    TxValidationCode_INVALID_CHAINCODE            TxValidationCode = 25
    TxValidationCode_NOT_VALIDATED                TxValidationCode = 254
    TxValidationCode_INVALID_OTHER_REASON         TxValidationCode = 255
)

func (TxValidationCode) EnumDescriptor Uses

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

func (TxValidationCode) String Uses

func (x TxValidationCode) String() string

type UnimplementedChaincodeServer Uses

type UnimplementedChaincodeServer struct {
}

UnimplementedChaincodeServer can be embedded to have forward compatible implementations.

func (*UnimplementedChaincodeServer) Connect Uses

func (*UnimplementedChaincodeServer) Connect(srv Chaincode_ConnectServer) error

type UnimplementedChaincodeSupportServer Uses

type UnimplementedChaincodeSupportServer struct {
}

UnimplementedChaincodeSupportServer can be embedded to have forward compatible implementations.

func (*UnimplementedChaincodeSupportServer) Register Uses

func (*UnimplementedChaincodeSupportServer) Register(srv ChaincodeSupport_RegisterServer) error

type UnimplementedDeliverServer Uses

type UnimplementedDeliverServer struct {
}

UnimplementedDeliverServer can be embedded to have forward compatible implementations.

func (*UnimplementedDeliverServer) Deliver Uses

func (*UnimplementedDeliverServer) Deliver(srv Deliver_DeliverServer) error

func (*UnimplementedDeliverServer) DeliverFiltered Uses

func (*UnimplementedDeliverServer) DeliverFiltered(srv Deliver_DeliverFilteredServer) error

func (*UnimplementedDeliverServer) DeliverWithPrivateData Uses

func (*UnimplementedDeliverServer) DeliverWithPrivateData(srv Deliver_DeliverWithPrivateDataServer) error

type UnimplementedEndorserServer Uses

type UnimplementedEndorserServer struct {
}

UnimplementedEndorserServer can be embedded to have forward compatible implementations.

func (*UnimplementedEndorserServer) ProcessProposal Uses

func (*UnimplementedEndorserServer) ProcessProposal(ctx context.Context, req *SignedProposal) (*ProposalResponse, error)

type VSCCArgs Uses

type VSCCArgs struct {
    EndorsementPolicyRef string   `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the argument field of the ChaincodeValidation message.

func (*VSCCArgs) Descriptor Uses

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

func (*VSCCArgs) GetEndorsementPolicyRef Uses

func (m *VSCCArgs) GetEndorsementPolicyRef() string

func (*VSCCArgs) ProtoMessage Uses

func (*VSCCArgs) ProtoMessage()

func (*VSCCArgs) Reset Uses

func (m *VSCCArgs) Reset()

func (*VSCCArgs) String Uses

func (m *VSCCArgs) String() string

func (*VSCCArgs) XXX_DiscardUnknown Uses

func (m *VSCCArgs) XXX_DiscardUnknown()

func (*VSCCArgs) XXX_Marshal Uses

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

func (*VSCCArgs) XXX_Merge Uses

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

func (*VSCCArgs) XXX_Size Uses

func (m *VSCCArgs) XXX_Size() int

func (*VSCCArgs) XXX_Unmarshal Uses

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

Directories

PathSynopsis
lifecycle

Package peer imports 10 packages (graph) and is imported by 130 packages. Updated 2019-11-22. Refresh now. Tools for package owners.