hyperledger-fabric-sdk 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fabric/block_decoder.rb +299 -0
  3. data/lib/fabric/chaincode_response.rb +47 -0
  4. data/lib/fabric/channel.rb +55 -34
  5. data/lib/fabric/client.rb +107 -25
  6. data/lib/fabric/configuration.rb +12 -4
  7. data/lib/fabric/constants.rb +1 -1
  8. data/lib/fabric/crypto_suite.rb +145 -0
  9. data/lib/fabric/enumerator_queue.rb +26 -0
  10. data/lib/fabric/error.rb +52 -0
  11. data/lib/fabric/event_hub.rb +81 -0
  12. data/lib/fabric/helper.rb +31 -0
  13. data/lib/fabric/identity.rb +25 -19
  14. data/lib/fabric/logger.rb +37 -0
  15. data/lib/fabric/orderer.rb +18 -2
  16. data/lib/fabric/peer.rb +15 -36
  17. data/lib/fabric/proposal.rb +100 -0
  18. data/lib/{protos → fabric/protos}/common/collection_pb.rb +14 -14
  19. data/lib/{protos → fabric/protos}/common/common_pb.rb +37 -36
  20. data/lib/fabric/protos/common/configtx_pb.rb +71 -0
  21. data/lib/{protos → fabric/protos}/common/configuration_pb.rb +13 -13
  22. data/lib/{protos → fabric/protos}/common/ledger_pb.rb +2 -2
  23. data/lib/{protos → fabric/protos}/common/policies_pb.rb +19 -19
  24. data/lib/fabric/protos/discovery/protocol_pb.rb +120 -0
  25. data/lib/{protos → fabric/protos}/discovery/protocol_services_pb.rb +0 -1
  26. data/lib/fabric/protos/gossip/message_pb.rb +233 -0
  27. data/lib/{protos → fabric/protos}/gossip/message_services_pb.rb +0 -1
  28. data/lib/{protos → fabric/protos}/idemix/idemix_pb.rb +37 -37
  29. data/lib/{protos → fabric/protos}/ledger/queryresult/kv_query_result_pb.rb +5 -5
  30. data/lib/fabric/protos/ledger/rwset/kvrwset/kv_rwset_pb.rb +85 -0
  31. data/lib/fabric/protos/ledger/rwset/rwset_pb.rb +46 -0
  32. data/lib/{protos → fabric/protos}/msp/identities_pb.rb +4 -4
  33. data/lib/{protos → fabric/protos}/msp/msp_config_pb.rb +27 -27
  34. data/lib/{protos → fabric/protos}/msp/msp_principal_pb.rb +20 -20
  35. data/lib/fabric/protos/orderer/ab_pb.rb +52 -0
  36. data/lib/{protos → fabric/protos}/orderer/ab_services_pb.rb +0 -1
  37. data/lib/fabric/protos/orderer/cluster_pb.rb +31 -0
  38. data/lib/fabric/protos/orderer/cluster_services_pb.rb +31 -0
  39. data/lib/{protos → fabric/protos}/orderer/configuration_pb.rb +11 -10
  40. data/lib/fabric/protos/orderer/etcdraft/configuration_pb.rb +21 -0
  41. data/lib/{protos → fabric/protos}/orderer/kafka_pb.rb +16 -16
  42. data/lib/{protos → fabric/protos}/peer/admin_pb.rb +12 -12
  43. data/lib/{protos → fabric/protos}/peer/admin_services_pb.rb +0 -1
  44. data/lib/{protos → fabric/protos}/peer/chaincode_event_pb.rb +2 -2
  45. data/lib/fabric/protos/peer/chaincode_pb.rb +60 -0
  46. data/lib/fabric/protos/peer/chaincode_shim_pb.rb +129 -0
  47. data/lib/{protos → fabric/protos}/peer/chaincode_shim_services_pb.rb +0 -1
  48. data/lib/{protos → fabric/protos}/peer/configuration_pb.rb +10 -10
  49. data/lib/fabric/protos/peer/events_pb.rb +45 -0
  50. data/lib/fabric/protos/peer/events_services_pb.rb +34 -0
  51. data/lib/{protos → fabric/protos}/peer/peer_pb.rb +5 -5
  52. data/lib/{protos → fabric/protos}/peer/peer_services_pb.rb +0 -1
  53. data/lib/{protos → fabric/protos}/peer/proposal_pb.rb +13 -13
  54. data/lib/{protos → fabric/protos}/peer/proposal_response_pb.rb +11 -11
  55. data/lib/{protos → fabric/protos}/peer/query_pb.rb +10 -10
  56. data/lib/{protos → fabric/protos}/peer/resources_pb.rb +12 -12
  57. data/lib/{protos → fabric/protos}/peer/signed_cc_dep_spec_pb.rb +3 -3
  58. data/lib/{protos → fabric/protos}/peer/transaction_pb.rb +22 -18
  59. data/lib/fabric/protos/token/prover_pb.rb +66 -0
  60. data/lib/fabric/protos/token/prover_services_pb.rb +33 -0
  61. data/lib/fabric/protos/token/transaction_pb.rb +41 -0
  62. data/lib/{protos → fabric/protos}/transientstore/transientstore_pb.rb +4 -4
  63. data/lib/fabric/queue.rb +26 -0
  64. data/lib/fabric/transaction.rb +51 -0
  65. data/lib/fabric/transaction_info.rb +20 -0
  66. data/lib/fabric/version.rb +1 -1
  67. data/lib/fabric.rb +74 -0
  68. data/lib/fabric_ca/attribute.rb +7 -0
  69. data/lib/fabric_ca/client.rb +11 -19
  70. data/lib/fabric_ca/configuration.rb +4 -2
  71. data/lib/fabric_ca/connection.rb +22 -20
  72. data/lib/fabric_ca/error.rb +3 -2
  73. data/lib/fabric_ca/faraday_middleware/basic_auth.rb +3 -3
  74. data/lib/fabric_ca/faraday_middleware/raise_http_exception.rb +13 -13
  75. data/lib/fabric_ca/faraday_middleware/token_auth.rb +10 -12
  76. data/lib/fabric_ca/request.rb +13 -24
  77. data/lib/fabric_ca/version.rb +1 -1
  78. data/lib/fabric_ca.rb +16 -0
  79. data/lib/hyperledger-fabric-sdk.rb +2 -47
  80. metadata +161 -61
  81. data/lib/crypto_suite/ecdsa_aes.rb +0 -86
  82. data/lib/fabric/peer_endorser.rb +0 -85
  83. data/lib/fabric/transaction_id.rb +0 -11
  84. data/lib/fabric/user.rb +0 -24
  85. data/lib/fabric_ca/tools.rb +0 -35
  86. data/lib/protos/common/configtx_pb.rb +0 -71
  87. data/lib/protos/discovery/protocol_pb.rb +0 -119
  88. data/lib/protos/gossip/message_pb.rb +0 -233
  89. data/lib/protos/ledger/rwset/kvrwset/kv_rwset_pb.rb +0 -85
  90. data/lib/protos/ledger/rwset/rwset_pb.rb +0 -46
  91. data/lib/protos/orderer/ab_pb.rb +0 -52
  92. data/lib/protos/peer/chaincode_pb.rb +0 -60
  93. data/lib/protos/peer/chaincode_shim_pb.rb +0 -94
  94. data/lib/protos/peer/events_pb.rb +0 -98
  95. data/lib/protos/peer/events_services_pb.rb +0 -59
@@ -1,119 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: discovery/protocol.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'gossip/message_pb'
7
- require 'msp/msp_config_pb'
8
- require 'msp/identities_pb'
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_message "discovery.SignedRequest" do
11
- optional :payload, :bytes, 1
12
- optional :signature, :bytes, 2
13
- end
14
- add_message "discovery.Request" do
15
- optional :authentication, :message, 1, "discovery.AuthInfo"
16
- repeated :queries, :message, 2, "discovery.Query"
17
- end
18
- add_message "discovery.Response" do
19
- repeated :results, :message, 1, "discovery.QueryResult"
20
- end
21
- add_message "discovery.AuthInfo" do
22
- optional :client_identity, :bytes, 1
23
- optional :client_tls_cert_hash, :bytes, 2
24
- end
25
- add_message "discovery.Query" do
26
- optional :channel, :string, 1
27
- oneof :query do
28
- optional :config_query, :message, 2, "discovery.ConfigQuery"
29
- optional :peer_query, :message, 3, "discovery.PeerMembershipQuery"
30
- optional :cc_query, :message, 4, "discovery.ChaincodeQuery"
31
- optional :local_peers, :message, 5, "discovery.LocalPeerQuery"
32
- end
33
- end
34
- add_message "discovery.QueryResult" do
35
- oneof :result do
36
- optional :error, :message, 1, "discovery.Error"
37
- optional :config_result, :message, 2, "discovery.ConfigResult"
38
- optional :cc_query_res, :message, 3, "discovery.ChaincodeQueryResult"
39
- optional :members, :message, 4, "discovery.PeerMembershipResult"
40
- end
41
- end
42
- add_message "discovery.ConfigQuery" do
43
- end
44
- add_message "discovery.ConfigResult" do
45
- map :msps, :string, :message, 1, "msp.FabricMSPConfig"
46
- map :orderers, :string, :message, 2, "discovery.Endpoints"
47
- end
48
- add_message "discovery.PeerMembershipQuery" do
49
- end
50
- add_message "discovery.PeerMembershipResult" do
51
- map :peers_by_org, :string, :message, 1, "discovery.Peers"
52
- end
53
- add_message "discovery.ChaincodeQuery" do
54
- repeated :interests, :message, 1, "discovery.ChaincodeInterest"
55
- end
56
- add_message "discovery.ChaincodeInterest" do
57
- repeated :chaincodes, :message, 1, "discovery.ChaincodeCall"
58
- end
59
- add_message "discovery.ChaincodeCall" do
60
- optional :name, :string, 1
61
- repeated :collection_names, :string, 2
62
- end
63
- add_message "discovery.ChaincodeQueryResult" do
64
- repeated :content, :message, 1, "discovery.EndorsementDescriptor"
65
- end
66
- add_message "discovery.LocalPeerQuery" do
67
- end
68
- add_message "discovery.EndorsementDescriptor" do
69
- optional :chaincode, :string, 1
70
- map :endorsers_by_groups, :string, :message, 2, "discovery.Peers"
71
- repeated :layouts, :message, 3, "discovery.Layout"
72
- end
73
- add_message "discovery.Layout" do
74
- map :quantities_by_group, :string, :uint32, 1
75
- end
76
- add_message "discovery.Peers" do
77
- repeated :peers, :message, 1, "discovery.Peer"
78
- end
79
- add_message "discovery.Peer" do
80
- optional :state_info, :message, 1, "gossip.Envelope"
81
- optional :membership_info, :message, 2, "gossip.Envelope"
82
- optional :identity, :bytes, 3
83
- end
84
- add_message "discovery.Error" do
85
- optional :content, :string, 1
86
- end
87
- add_message "discovery.Endpoints" do
88
- repeated :endpoint, :message, 1, "discovery.Endpoint"
89
- end
90
- add_message "discovery.Endpoint" do
91
- optional :host, :string, 1
92
- optional :port, :uint32, 2
93
- end
94
- end
95
-
96
- module Discovery
97
- SignedRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.SignedRequest").msgclass
98
- Request = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Request").msgclass
99
- Response = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Response").msgclass
100
- AuthInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.AuthInfo").msgclass
101
- Query = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Query").msgclass
102
- QueryResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.QueryResult").msgclass
103
- ConfigQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.ConfigQuery").msgclass
104
- ConfigResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.ConfigResult").msgclass
105
- PeerMembershipQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.PeerMembershipQuery").msgclass
106
- PeerMembershipResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.PeerMembershipResult").msgclass
107
- ChaincodeQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.ChaincodeQuery").msgclass
108
- ChaincodeInterest = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.ChaincodeInterest").msgclass
109
- ChaincodeCall = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.ChaincodeCall").msgclass
110
- ChaincodeQueryResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.ChaincodeQueryResult").msgclass
111
- LocalPeerQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.LocalPeerQuery").msgclass
112
- EndorsementDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.EndorsementDescriptor").msgclass
113
- Layout = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Layout").msgclass
114
- Peers = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Peers").msgclass
115
- Peer = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Peer").msgclass
116
- Error = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Error").msgclass
117
- Endpoints = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Endpoints").msgclass
118
- Endpoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("discovery.Endpoint").msgclass
119
- end
@@ -1,233 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: gossip/message.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'common/collection_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "gossip.Envelope" do
9
- optional :payload, :bytes, 1
10
- optional :signature, :bytes, 2
11
- optional :secret_envelope, :message, 3, "gossip.SecretEnvelope"
12
- end
13
- add_message "gossip.SecretEnvelope" do
14
- optional :payload, :bytes, 1
15
- optional :signature, :bytes, 2
16
- end
17
- add_message "gossip.Secret" do
18
- oneof :content do
19
- optional :internalEndpoint, :string, 1
20
- end
21
- end
22
- add_message "gossip.GossipMessage" do
23
- optional :nonce, :uint64, 1
24
- optional :channel, :bytes, 2
25
- optional :tag, :enum, 3, "gossip.GossipMessage.Tag"
26
- oneof :content do
27
- optional :alive_msg, :message, 5, "gossip.AliveMessage"
28
- optional :mem_req, :message, 6, "gossip.MembershipRequest"
29
- optional :mem_res, :message, 7, "gossip.MembershipResponse"
30
- optional :data_msg, :message, 8, "gossip.DataMessage"
31
- optional :hello, :message, 9, "gossip.GossipHello"
32
- optional :data_dig, :message, 10, "gossip.DataDigest"
33
- optional :data_req, :message, 11, "gossip.DataRequest"
34
- optional :data_update, :message, 12, "gossip.DataUpdate"
35
- optional :empty, :message, 13, "gossip.Empty"
36
- optional :conn, :message, 14, "gossip.ConnEstablish"
37
- optional :state_info, :message, 15, "gossip.StateInfo"
38
- optional :state_snapshot, :message, 16, "gossip.StateInfoSnapshot"
39
- optional :state_info_pull_req, :message, 17, "gossip.StateInfoPullRequest"
40
- optional :state_request, :message, 18, "gossip.RemoteStateRequest"
41
- optional :state_response, :message, 19, "gossip.RemoteStateResponse"
42
- optional :leadership_msg, :message, 20, "gossip.LeadershipMessage"
43
- optional :peer_identity, :message, 21, "gossip.PeerIdentity"
44
- optional :ack, :message, 22, "gossip.Acknowledgement"
45
- optional :privateReq, :message, 23, "gossip.RemotePvtDataRequest"
46
- optional :privateRes, :message, 24, "gossip.RemotePvtDataResponse"
47
- optional :private_data, :message, 25, "gossip.PrivateDataMessage"
48
- end
49
- end
50
- add_enum "gossip.GossipMessage.Tag" do
51
- value :UNDEFINED, 0
52
- value :EMPTY, 1
53
- value :ORG_ONLY, 2
54
- value :CHAN_ONLY, 3
55
- value :CHAN_AND_ORG, 4
56
- value :CHAN_OR_ORG, 5
57
- end
58
- add_message "gossip.StateInfo" do
59
- optional :timestamp, :message, 2, "gossip.PeerTime"
60
- optional :pki_id, :bytes, 3
61
- optional :channel_MAC, :bytes, 4
62
- optional :properties, :message, 5, "gossip.Properties"
63
- end
64
- add_message "gossip.Properties" do
65
- optional :ledger_height, :uint64, 1
66
- optional :left_channel, :bool, 2
67
- repeated :chaincodes, :message, 3, "gossip.Chaincode"
68
- end
69
- add_message "gossip.StateInfoSnapshot" do
70
- repeated :elements, :message, 1, "gossip.Envelope"
71
- end
72
- add_message "gossip.StateInfoPullRequest" do
73
- optional :channel_MAC, :bytes, 1
74
- end
75
- add_message "gossip.ConnEstablish" do
76
- optional :pki_id, :bytes, 1
77
- optional :identity, :bytes, 2
78
- optional :tls_cert_hash, :bytes, 3
79
- end
80
- add_message "gossip.PeerIdentity" do
81
- optional :pki_id, :bytes, 1
82
- optional :cert, :bytes, 2
83
- optional :metadata, :bytes, 3
84
- end
85
- add_message "gossip.DataRequest" do
86
- optional :nonce, :uint64, 1
87
- repeated :digests, :string, 2
88
- optional :msg_type, :enum, 3, "gossip.PullMsgType"
89
- end
90
- add_message "gossip.GossipHello" do
91
- optional :nonce, :uint64, 1
92
- optional :metadata, :bytes, 2
93
- optional :msg_type, :enum, 3, "gossip.PullMsgType"
94
- end
95
- add_message "gossip.DataUpdate" do
96
- optional :nonce, :uint64, 1
97
- repeated :data, :message, 2, "gossip.Envelope"
98
- optional :msg_type, :enum, 3, "gossip.PullMsgType"
99
- end
100
- add_message "gossip.DataDigest" do
101
- optional :nonce, :uint64, 1
102
- repeated :digests, :string, 2
103
- optional :msg_type, :enum, 3, "gossip.PullMsgType"
104
- end
105
- add_message "gossip.DataMessage" do
106
- optional :payload, :message, 1, "gossip.Payload"
107
- end
108
- add_message "gossip.PrivateDataMessage" do
109
- optional :payload, :message, 1, "gossip.PrivatePayload"
110
- end
111
- add_message "gossip.Payload" do
112
- optional :seq_num, :uint64, 1
113
- optional :data, :bytes, 2
114
- repeated :private_data, :bytes, 3
115
- end
116
- add_message "gossip.PrivatePayload" do
117
- optional :collection_name, :string, 1
118
- optional :namespace, :string, 2
119
- optional :tx_id, :string, 3
120
- optional :private_rwset, :bytes, 4
121
- optional :private_sim_height, :uint64, 5
122
- optional :collection_configs, :message, 6, "common.CollectionConfigPackage"
123
- end
124
- add_message "gossip.AliveMessage" do
125
- optional :membership, :message, 1, "gossip.Member"
126
- optional :timestamp, :message, 2, "gossip.PeerTime"
127
- optional :identity, :bytes, 4
128
- end
129
- add_message "gossip.LeadershipMessage" do
130
- optional :pki_id, :bytes, 1
131
- optional :timestamp, :message, 2, "gossip.PeerTime"
132
- optional :is_declaration, :bool, 3
133
- end
134
- add_message "gossip.PeerTime" do
135
- optional :inc_num, :uint64, 1
136
- optional :seq_num, :uint64, 2
137
- end
138
- add_message "gossip.MembershipRequest" do
139
- optional :self_information, :message, 1, "gossip.Envelope"
140
- repeated :known, :bytes, 2
141
- end
142
- add_message "gossip.MembershipResponse" do
143
- repeated :alive, :message, 1, "gossip.Envelope"
144
- repeated :dead, :message, 2, "gossip.Envelope"
145
- end
146
- add_message "gossip.Member" do
147
- optional :endpoint, :string, 1
148
- optional :metadata, :bytes, 2
149
- optional :pki_id, :bytes, 3
150
- end
151
- add_message "gossip.Empty" do
152
- end
153
- add_message "gossip.RemoteStateRequest" do
154
- optional :start_seq_num, :uint64, 1
155
- optional :end_seq_num, :uint64, 2
156
- end
157
- add_message "gossip.RemoteStateResponse" do
158
- repeated :payloads, :message, 1, "gossip.Payload"
159
- end
160
- add_message "gossip.RemotePvtDataRequest" do
161
- repeated :digests, :message, 1, "gossip.PvtDataDigest"
162
- end
163
- add_message "gossip.PvtDataDigest" do
164
- optional :tx_id, :string, 1
165
- optional :namespace, :string, 2
166
- optional :collection, :string, 3
167
- optional :block_seq, :uint64, 4
168
- optional :seq_in_block, :uint64, 5
169
- end
170
- add_message "gossip.RemotePvtDataResponse" do
171
- repeated :elements, :message, 1, "gossip.PvtDataElement"
172
- end
173
- add_message "gossip.PvtDataElement" do
174
- optional :digest, :message, 1, "gossip.PvtDataDigest"
175
- repeated :payload, :bytes, 2
176
- end
177
- add_message "gossip.PvtDataPayload" do
178
- optional :tx_seq_in_block, :uint64, 1
179
- optional :payload, :bytes, 2
180
- end
181
- add_message "gossip.Acknowledgement" do
182
- optional :error, :string, 1
183
- end
184
- add_message "gossip.Chaincode" do
185
- optional :name, :string, 1
186
- optional :version, :string, 2
187
- optional :metadata, :bytes, 3
188
- end
189
- add_enum "gossip.PullMsgType" do
190
- value :UNDEFINED, 0
191
- value :BLOCK_MSG, 1
192
- value :IDENTITY_MSG, 2
193
- end
194
- end
195
-
196
- module Gossip
197
- Envelope = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Envelope").msgclass
198
- SecretEnvelope = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.SecretEnvelope").msgclass
199
- Secret = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Secret").msgclass
200
- GossipMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.GossipMessage").msgclass
201
- GossipMessage::Tag = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.GossipMessage.Tag").enummodule
202
- StateInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.StateInfo").msgclass
203
- Properties = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Properties").msgclass
204
- StateInfoSnapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.StateInfoSnapshot").msgclass
205
- StateInfoPullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.StateInfoPullRequest").msgclass
206
- ConnEstablish = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.ConnEstablish").msgclass
207
- PeerIdentity = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PeerIdentity").msgclass
208
- DataRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataRequest").msgclass
209
- GossipHello = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.GossipHello").msgclass
210
- DataUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataUpdate").msgclass
211
- DataDigest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataDigest").msgclass
212
- DataMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataMessage").msgclass
213
- PrivateDataMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PrivateDataMessage").msgclass
214
- Payload = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Payload").msgclass
215
- PrivatePayload = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PrivatePayload").msgclass
216
- AliveMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.AliveMessage").msgclass
217
- LeadershipMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.LeadershipMessage").msgclass
218
- PeerTime = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PeerTime").msgclass
219
- MembershipRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.MembershipRequest").msgclass
220
- MembershipResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.MembershipResponse").msgclass
221
- Member = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Member").msgclass
222
- Empty = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Empty").msgclass
223
- RemoteStateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemoteStateRequest").msgclass
224
- RemoteStateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemoteStateResponse").msgclass
225
- RemotePvtDataRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemotePvtDataRequest").msgclass
226
- PvtDataDigest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PvtDataDigest").msgclass
227
- RemotePvtDataResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemotePvtDataResponse").msgclass
228
- PvtDataElement = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PvtDataElement").msgclass
229
- PvtDataPayload = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PvtDataPayload").msgclass
230
- Acknowledgement = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Acknowledgement").msgclass
231
- Chaincode = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Chaincode").msgclass
232
- PullMsgType = Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PullMsgType").enummodule
233
- end
@@ -1,85 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: ledger/rwset/kvrwset/kv_rwset.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "kvrwset.KVRWSet" do
8
- repeated :reads, :message, 1, "kvrwset.KVRead"
9
- repeated :range_queries_info, :message, 2, "kvrwset.RangeQueryInfo"
10
- repeated :writes, :message, 3, "kvrwset.KVWrite"
11
- repeated :metadata_writes, :message, 4, "kvrwset.KVMetadataWrite"
12
- end
13
- add_message "kvrwset.HashedRWSet" do
14
- repeated :hashed_reads, :message, 1, "kvrwset.KVReadHash"
15
- repeated :hashed_writes, :message, 2, "kvrwset.KVWriteHash"
16
- repeated :metadata_writes, :message, 3, "kvrwset.KVMetadataWriteHash"
17
- end
18
- add_message "kvrwset.KVRead" do
19
- optional :key, :string, 1
20
- optional :version, :message, 2, "kvrwset.Version"
21
- end
22
- add_message "kvrwset.KVWrite" do
23
- optional :key, :string, 1
24
- optional :is_delete, :bool, 2
25
- optional :value, :bytes, 3
26
- end
27
- add_message "kvrwset.KVMetadataWrite" do
28
- optional :key, :string, 1
29
- repeated :entries, :message, 2, "kvrwset.KVMetadataEntry"
30
- end
31
- add_message "kvrwset.KVReadHash" do
32
- optional :key_hash, :bytes, 1
33
- optional :version, :message, 2, "kvrwset.Version"
34
- end
35
- add_message "kvrwset.KVWriteHash" do
36
- optional :key_hash, :bytes, 1
37
- optional :is_delete, :bool, 2
38
- optional :value_hash, :bytes, 3
39
- end
40
- add_message "kvrwset.KVMetadataWriteHash" do
41
- optional :key_hash, :bytes, 1
42
- repeated :entries, :message, 2, "kvrwset.KVMetadataEntry"
43
- end
44
- add_message "kvrwset.KVMetadataEntry" do
45
- optional :name, :string, 1
46
- optional :value, :bytes, 2
47
- end
48
- add_message "kvrwset.Version" do
49
- optional :block_num, :uint64, 1
50
- optional :tx_num, :uint64, 2
51
- end
52
- add_message "kvrwset.RangeQueryInfo" do
53
- optional :start_key, :string, 1
54
- optional :end_key, :string, 2
55
- optional :itr_exhausted, :bool, 3
56
- oneof :reads_info do
57
- optional :raw_reads, :message, 4, "kvrwset.QueryReads"
58
- optional :reads_merkle_hashes, :message, 5, "kvrwset.QueryReadsMerkleSummary"
59
- end
60
- end
61
- add_message "kvrwset.QueryReads" do
62
- repeated :kv_reads, :message, 1, "kvrwset.KVRead"
63
- end
64
- add_message "kvrwset.QueryReadsMerkleSummary" do
65
- optional :max_degree, :uint32, 1
66
- optional :max_level, :uint32, 2
67
- repeated :max_level_hashes, :bytes, 3
68
- end
69
- end
70
-
71
- module Kvrwset
72
- KVRWSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVRWSet").msgclass
73
- HashedRWSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.HashedRWSet").msgclass
74
- KVRead = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVRead").msgclass
75
- KVWrite = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVWrite").msgclass
76
- KVMetadataWrite = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVMetadataWrite").msgclass
77
- KVReadHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVReadHash").msgclass
78
- KVWriteHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVWriteHash").msgclass
79
- KVMetadataWriteHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVMetadataWriteHash").msgclass
80
- KVMetadataEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.KVMetadataEntry").msgclass
81
- Version = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.Version").msgclass
82
- RangeQueryInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.RangeQueryInfo").msgclass
83
- QueryReads = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.QueryReads").msgclass
84
- QueryReadsMerkleSummary = Google::Protobuf::DescriptorPool.generated_pool.lookup("kvrwset.QueryReadsMerkleSummary").msgclass
85
- end
@@ -1,46 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: ledger/rwset/rwset.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "rwset.TxReadWriteSet" do
8
- optional :data_model, :enum, 1, "rwset.TxReadWriteSet.DataModel"
9
- repeated :ns_rwset, :message, 2, "rwset.NsReadWriteSet"
10
- end
11
- add_enum "rwset.TxReadWriteSet.DataModel" do
12
- value :KV, 0
13
- end
14
- add_message "rwset.NsReadWriteSet" do
15
- optional :namespace, :string, 1
16
- optional :rwset, :bytes, 2
17
- repeated :collection_hashed_rwset, :message, 3, "rwset.CollectionHashedReadWriteSet"
18
- end
19
- add_message "rwset.CollectionHashedReadWriteSet" do
20
- optional :collection_name, :string, 1
21
- optional :hashed_rwset, :bytes, 2
22
- optional :pvt_rwset_hash, :bytes, 3
23
- end
24
- add_message "rwset.TxPvtReadWriteSet" do
25
- optional :data_model, :enum, 1, "rwset.TxReadWriteSet.DataModel"
26
- repeated :ns_pvt_rwset, :message, 2, "rwset.NsPvtReadWriteSet"
27
- end
28
- add_message "rwset.NsPvtReadWriteSet" do
29
- optional :namespace, :string, 1
30
- repeated :collection_pvt_rwset, :message, 2, "rwset.CollectionPvtReadWriteSet"
31
- end
32
- add_message "rwset.CollectionPvtReadWriteSet" do
33
- optional :collection_name, :string, 1
34
- optional :rwset, :bytes, 2
35
- end
36
- end
37
-
38
- module Rwset
39
- TxReadWriteSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("rwset.TxReadWriteSet").msgclass
40
- TxReadWriteSet::DataModel = Google::Protobuf::DescriptorPool.generated_pool.lookup("rwset.TxReadWriteSet.DataModel").enummodule
41
- NsReadWriteSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("rwset.NsReadWriteSet").msgclass
42
- CollectionHashedReadWriteSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("rwset.CollectionHashedReadWriteSet").msgclass
43
- TxPvtReadWriteSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("rwset.TxPvtReadWriteSet").msgclass
44
- NsPvtReadWriteSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("rwset.NsPvtReadWriteSet").msgclass
45
- CollectionPvtReadWriteSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("rwset.CollectionPvtReadWriteSet").msgclass
46
- end
@@ -1,52 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: orderer/ab.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'common/common_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "orderer.BroadcastResponse" do
9
- optional :status, :enum, 1, "common.Status"
10
- optional :info, :string, 2
11
- end
12
- add_message "orderer.SeekNewest" do
13
- end
14
- add_message "orderer.SeekOldest" do
15
- end
16
- add_message "orderer.SeekSpecified" do
17
- optional :number, :uint64, 1
18
- end
19
- add_message "orderer.SeekPosition" do
20
- oneof :Type do
21
- optional :newest, :message, 1, "orderer.SeekNewest"
22
- optional :oldest, :message, 2, "orderer.SeekOldest"
23
- optional :specified, :message, 3, "orderer.SeekSpecified"
24
- end
25
- end
26
- add_message "orderer.SeekInfo" do
27
- optional :start, :message, 1, "orderer.SeekPosition"
28
- optional :stop, :message, 2, "orderer.SeekPosition"
29
- optional :behavior, :enum, 3, "orderer.SeekInfo.SeekBehavior"
30
- end
31
- add_enum "orderer.SeekInfo.SeekBehavior" do
32
- value :BLOCK_UNTIL_READY, 0
33
- value :FAIL_IF_NOT_READY, 1
34
- end
35
- add_message "orderer.DeliverResponse" do
36
- oneof :Type do
37
- optional :status, :enum, 1, "common.Status"
38
- optional :block, :message, 2, "common.Block"
39
- end
40
- end
41
- end
42
-
43
- module Orderer
44
- BroadcastResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.BroadcastResponse").msgclass
45
- SeekNewest = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekNewest").msgclass
46
- SeekOldest = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekOldest").msgclass
47
- SeekSpecified = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekSpecified").msgclass
48
- SeekPosition = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekPosition").msgclass
49
- SeekInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekInfo").msgclass
50
- SeekInfo::SeekBehavior = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekInfo.SeekBehavior").enummodule
51
- DeliverResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.DeliverResponse").msgclass
52
- end
@@ -1,60 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: peer/chaincode.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "protos.ChaincodeID" do
8
- optional :path, :string, 1
9
- optional :name, :string, 2
10
- optional :version, :string, 3
11
- end
12
- add_message "protos.ChaincodeInput" do
13
- repeated :args, :bytes, 1
14
- map :decorations, :string, :bytes, 2
15
- end
16
- add_message "protos.ChaincodeSpec" do
17
- optional :type, :enum, 1, "protos.ChaincodeSpec.Type"
18
- optional :chaincode_id, :message, 2, "protos.ChaincodeID"
19
- optional :input, :message, 3, "protos.ChaincodeInput"
20
- optional :timeout, :int32, 4
21
- end
22
- add_enum "protos.ChaincodeSpec.Type" do
23
- value :UNDEFINED, 0
24
- value :GOLANG, 1
25
- value :NODE, 2
26
- value :CAR, 3
27
- value :JAVA, 4
28
- end
29
- add_message "protos.ChaincodeDeploymentSpec" do
30
- optional :chaincode_spec, :message, 1, "protos.ChaincodeSpec"
31
- optional :code_package, :bytes, 3
32
- optional :exec_env, :enum, 4, "protos.ChaincodeDeploymentSpec.ExecutionEnvironment"
33
- end
34
- add_enum "protos.ChaincodeDeploymentSpec.ExecutionEnvironment" do
35
- value :DOCKER, 0
36
- value :SYSTEM, 1
37
- end
38
- add_message "protos.ChaincodeInvocationSpec" do
39
- optional :chaincode_spec, :message, 1, "protos.ChaincodeSpec"
40
- end
41
- add_message "protos.LifecycleEvent" do
42
- optional :chaincode_name, :string, 1
43
- end
44
- add_enum "protos.ConfidentialityLevel" do
45
- value :PUBLIC, 0
46
- value :CONFIDENTIAL, 1
47
- end
48
- end
49
-
50
- module Protos
51
- ChaincodeID = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeID").msgclass
52
- ChaincodeInput = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeInput").msgclass
53
- ChaincodeSpec = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeSpec").msgclass
54
- ChaincodeSpec::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeSpec.Type").enummodule
55
- ChaincodeDeploymentSpec = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeDeploymentSpec").msgclass
56
- ChaincodeDeploymentSpec::ExecutionEnvironment = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeDeploymentSpec.ExecutionEnvironment").enummodule
57
- ChaincodeInvocationSpec = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeInvocationSpec").msgclass
58
- LifecycleEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.LifecycleEvent").msgclass
59
- ConfidentialityLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ConfidentialityLevel").enummodule
60
- end