package discovery

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service Discovery

protocol.proto:17

Discovery defines a service that serves information about the fabric network like which peers, orderers, chaincodes, etc.

message AuthInfo

protocol.proto:49

AuthInfo aggregates authentication information that the server uses to authenticate the client

Used in: Request

message ChaincodeCall

protocol.proto:156

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

Used in: ChaincodeInterest

message ChaincodeInterest

protocol.proto:150

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

Used in: ChaincodeQuery, PeerMembershipQuery

message ChaincodeQuery

protocol.proto:143

ChaincodeQuery requests ChaincodeQueryResults for a given list of chaincode invocations. Each invocation is a separate one, and the endorsement policy is evaluated independantly for each given interest.

Used in: Query

message ChaincodeQueryResult

protocol.proto:165

ChaincodeQueryResult contains EndorsementDescriptors for chaincodes

Used in: QueryResult

message ConfigQuery

protocol.proto:114

ConfigQuery requests a ConfigResult

Used in: Query

(message has no fields)

message ConfigResult

protocol.proto:118

Used in: QueryResult

message EndorsementDescriptor

protocol.proto:185

EndorsementDescriptor contains information about which peers can be used to request endorsement from, such that the endorsement policy would be fulfilled. Here is how to compute a set of peers to ask an endorsement from, given an EndorsementDescriptor: Let e: G --> P be the endorsers_by_groups field that maps a group to a set of peers. Note that applying e on a group g yields a set of peers. 1) Select a layout l: G --> N out of the layouts given. l is the quantities_by_group field of a Layout, and it maps a group to an integer. 2) R = {} (an empty set of peers) 3) For each group g in the layout l, compute n = l(g) 3.1) Denote P_g as a set of n random peers {p0, p1, ... p_n} selected from e(g) 3.2) R = R U P_g (add P_g to R) 4) The set of peers R is the peers the client needs to request endorsements from

Used in: ChaincodeQueryResult

message Endpoint

protocol.proto:232

Endpoint is a combination of a host and a port

Used in: Endpoints

message Endpoints

protocol.proto:227

Endpoints is a list of Endpoint(s)

Used in: ConfigResult

message Error

protocol.proto:222

Error denotes that something went wrong and contains the error message

Used in: QueryResult

message Layout

protocol.proto:198

Layout contains a mapping from a group name to number of peers that are needed for fulfilling an endorsement policy

Used in: EndorsementDescriptor

message LocalPeerQuery

protocol.proto:170

LocalPeerQuery queries for peers in a non channel context

Used in: Query

(message has no fields)

message Peer

protocol.proto:211

Peer contains information about the peer such as its channel specific state, and membership information.

Used in: Peers

message PeerMembershipQuery

protocol.proto:130

PeerMembershipQuery requests PeerMembershipResult. The filter field may be optionally populated in order for the peer membership to be filtered according to chaincodes that are installed on peers and collection access control policies.

Used in: Query

message PeerMembershipResult

protocol.proto:135

PeerMembershipResult contains peers mapped by their organizations (MSP_ID)

Used in: QueryResult

message Peers

protocol.proto:205

Peers contains a list of Peer(s)

Used in: EndorsementDescriptor, PeerMembershipResult

message Query

protocol.proto:66

Query asks for information in the context of a specific channel

Used in: Request

message QueryResult

protocol.proto:94

QueryResult contains a result for a given Query. The corresponding Query can be inferred by the index of the QueryResult from its enclosing Response message. QueryResults are ordered in the same order as the Queries are ordered in their enclosing Request.

Used in: Response

message Request

protocol.proto:34

Request contains authentication info about the client that sent the request and the queries it wishes to query the service