hyperledger-fabric-sdk 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/crypto_suite/ecdsa_aes.rb +86 -0
- data/lib/fabric/channel.rb +54 -0
- data/lib/fabric/client.rb +45 -0
- data/lib/fabric/configuration.rb +25 -0
- data/lib/fabric/constants.rb +18 -0
- data/lib/fabric/identity.rb +36 -0
- data/lib/fabric/orderer.rb +19 -0
- data/lib/fabric/peer.rb +58 -0
- data/lib/fabric/peer_endorser.rb +85 -0
- data/lib/fabric/transaction_id.rb +11 -0
- data/lib/fabric/user.rb +24 -0
- data/lib/fabric/version.rb +3 -0
- data/lib/fabric_ca/client.rb +51 -0
- data/lib/fabric_ca/configuration.rb +25 -0
- data/lib/fabric_ca/connection.rb +32 -0
- data/lib/fabric_ca/error.rb +11 -0
- data/lib/fabric_ca/faraday_middleware/basic_auth.rb +33 -0
- data/lib/fabric_ca/faraday_middleware/raise_http_exception.rb +47 -0
- data/lib/fabric_ca/faraday_middleware/token_auth.rb +38 -0
- data/lib/fabric_ca/request.rb +50 -0
- data/lib/fabric_ca/response.rb +10 -0
- data/lib/fabric_ca/tools.rb +35 -0
- data/lib/fabric_ca/version.rb +3 -0
- data/lib/hyperledger-fabric-sdk.rb +47 -0
- data/lib/protos/common/collection_pb.rb +42 -0
- data/lib/protos/common/common_pb.rb +106 -0
- data/lib/protos/common/configtx_pb.rb +71 -0
- data/lib/protos/common/configuration_pb.rb +33 -0
- data/lib/protos/common/ledger_pb.rb +16 -0
- data/lib/protos/common/policies_pb.rb +52 -0
- data/lib/protos/discovery/protocol_pb.rb +119 -0
- data/lib/protos/discovery/protocol_services_pb.rb +30 -0
- data/lib/protos/gossip/message_pb.rb +233 -0
- data/lib/protos/gossip/message_services_pb.rb +31 -0
- data/lib/protos/idemix/idemix_pb.rb +93 -0
- data/lib/protos/ledger/queryresult/kv_query_result_pb.rb +24 -0
- data/lib/protos/ledger/rwset/kvrwset/kv_rwset_pb.rb +85 -0
- data/lib/protos/ledger/rwset/rwset_pb.rb +46 -0
- data/lib/protos/msp/identities_pb.rb +23 -0
- data/lib/protos/msp/msp_config_pb.rb +72 -0
- data/lib/protos/msp/msp_principal_pb.rb +54 -0
- data/lib/protos/orderer/ab_pb.rb +52 -0
- data/lib/protos/orderer/ab_services_pb.rb +41 -0
- data/lib/protos/orderer/configuration_pb.rb +32 -0
- data/lib/protos/orderer/kafka_pb.rb +45 -0
- data/lib/protos/peer/admin_pb.rb +41 -0
- data/lib/protos/peer/admin_services_pb.rb +33 -0
- data/lib/protos/peer/chaincode_event_pb.rb +17 -0
- data/lib/protos/peer/chaincode_pb.rb +60 -0
- data/lib/protos/peer/chaincode_shim_pb.rb +94 -0
- data/lib/protos/peer/chaincode_shim_services_pb.rb +30 -0
- data/lib/protos/peer/configuration_pb.rb +27 -0
- data/lib/protos/peer/events_pb.rb +98 -0
- data/lib/protos/peer/events_services_pb.rb +59 -0
- data/lib/protos/peer/peer_pb.rb +21 -0
- data/lib/protos/peer/peer_services_pb.rb +37 -0
- data/lib/protos/peer/proposal_pb.rb +40 -0
- data/lib/protos/peer/proposal_response_pb.rb +35 -0
- data/lib/protos/peer/query_pb.rb +32 -0
- data/lib/protos/peer/resources_pb.rb +34 -0
- data/lib/protos/peer/signed_cc_dep_spec_pb.rb +17 -0
- data/lib/protos/peer/transaction_pb.rb +72 -0
- data/lib/protos/transientstore/transientstore_pb.rb +18 -0
- metadata +123 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: discovery/protocol.proto for package 'discovery'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright IBM Corp. All Rights Reserved.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: Apache-2.0
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'grpc'
|
10
|
+
require 'discovery/protocol_pb'
|
11
|
+
|
12
|
+
module Discovery
|
13
|
+
module Discovery
|
14
|
+
# Discovery defines a service that serves information about the fabric network
|
15
|
+
# like which peers, orderers, chaincodes, etc.
|
16
|
+
class Service
|
17
|
+
|
18
|
+
include GRPC::GenericService
|
19
|
+
|
20
|
+
self.marshal_class_method = :encode
|
21
|
+
self.unmarshal_class_method = :decode
|
22
|
+
self.service_name = 'discovery.Discovery'
|
23
|
+
|
24
|
+
# Discover receives a signed request, and returns a response.
|
25
|
+
rpc :Discover, SignedRequest, Response
|
26
|
+
end
|
27
|
+
|
28
|
+
Stub = Service.rpc_stub_class
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,233 @@
|
|
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
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: gossip/message.proto for package 'gossip'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright IBM Corp. All Rights Reserved.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: Apache-2.0
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'grpc'
|
10
|
+
require 'gossip/message_pb'
|
11
|
+
|
12
|
+
module Gossip
|
13
|
+
module Gossip
|
14
|
+
# Gossip
|
15
|
+
class Service
|
16
|
+
|
17
|
+
include GRPC::GenericService
|
18
|
+
|
19
|
+
self.marshal_class_method = :encode
|
20
|
+
self.unmarshal_class_method = :decode
|
21
|
+
self.service_name = 'gossip.Gossip'
|
22
|
+
|
23
|
+
# GossipStream is the gRPC stream used for sending and receiving messages
|
24
|
+
rpc :GossipStream, stream(Envelope), stream(Envelope)
|
25
|
+
# Ping is used to probe a remote peer's aliveness
|
26
|
+
rpc :Ping, Empty, Empty
|
27
|
+
end
|
28
|
+
|
29
|
+
Stub = Service.rpc_stub_class
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: idemix/idemix.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "ECP" do
|
8
|
+
optional :x, :bytes, 1
|
9
|
+
optional :y, :bytes, 2
|
10
|
+
end
|
11
|
+
add_message "ECP2" do
|
12
|
+
optional :xa, :bytes, 1
|
13
|
+
optional :xb, :bytes, 2
|
14
|
+
optional :ya, :bytes, 3
|
15
|
+
optional :yb, :bytes, 4
|
16
|
+
end
|
17
|
+
add_message "IssuerPublicKey" do
|
18
|
+
repeated :attribute_names, :string, 1
|
19
|
+
optional :h_sk, :message, 2, "ECP"
|
20
|
+
optional :h_rand, :message, 3, "ECP"
|
21
|
+
repeated :h_attrs, :message, 4, "ECP"
|
22
|
+
optional :w, :message, 5, "ECP2"
|
23
|
+
optional :bar_g1, :message, 6, "ECP"
|
24
|
+
optional :bar_g2, :message, 7, "ECP"
|
25
|
+
optional :proof_c, :bytes, 8
|
26
|
+
optional :proof_s, :bytes, 9
|
27
|
+
optional :hash, :bytes, 10
|
28
|
+
end
|
29
|
+
add_message "IssuerKey" do
|
30
|
+
optional :isk, :bytes, 1
|
31
|
+
optional :ipk, :message, 2, "IssuerPublicKey"
|
32
|
+
end
|
33
|
+
add_message "Credential" do
|
34
|
+
optional :a, :message, 1, "ECP"
|
35
|
+
optional :b, :message, 2, "ECP"
|
36
|
+
optional :e, :bytes, 3
|
37
|
+
optional :s, :bytes, 4
|
38
|
+
repeated :attrs, :bytes, 5
|
39
|
+
end
|
40
|
+
add_message "CredRequest" do
|
41
|
+
optional :nym, :message, 1, "ECP"
|
42
|
+
optional :issuer_nonce, :bytes, 2
|
43
|
+
optional :proof_c, :bytes, 3
|
44
|
+
optional :proof_s, :bytes, 4
|
45
|
+
end
|
46
|
+
add_message "Signature" do
|
47
|
+
optional :a_prime, :message, 1, "ECP"
|
48
|
+
optional :a_bar, :message, 2, "ECP"
|
49
|
+
optional :b_prime, :message, 3, "ECP"
|
50
|
+
optional :proof_c, :bytes, 4
|
51
|
+
optional :proof_s_sk, :bytes, 5
|
52
|
+
optional :proof_s_e, :bytes, 6
|
53
|
+
optional :proof_s_r2, :bytes, 7
|
54
|
+
optional :proof_s_r3, :bytes, 8
|
55
|
+
optional :proof_s_s_prime, :bytes, 9
|
56
|
+
repeated :proof_s_attrs, :bytes, 10
|
57
|
+
optional :nonce, :bytes, 11
|
58
|
+
optional :nym, :message, 12, "ECP"
|
59
|
+
optional :proof_s_r_nym, :bytes, 13
|
60
|
+
optional :revocation_epoch_pk, :message, 14, "ECP2"
|
61
|
+
optional :revocation_pk_sig, :bytes, 15
|
62
|
+
optional :epoch, :int64, 16
|
63
|
+
optional :non_revocation_proof, :message, 17, "NonRevocationProof"
|
64
|
+
end
|
65
|
+
add_message "NonRevocationProof" do
|
66
|
+
optional :revocation_alg, :int32, 1
|
67
|
+
optional :non_revocation_proof, :bytes, 2
|
68
|
+
end
|
69
|
+
add_message "NymSignature" do
|
70
|
+
optional :proof_c, :bytes, 1
|
71
|
+
optional :proof_s_sk, :bytes, 2
|
72
|
+
optional :proof_s_r_nym, :bytes, 3
|
73
|
+
optional :nonce, :bytes, 4
|
74
|
+
end
|
75
|
+
add_message "CredentialRevocationInformation" do
|
76
|
+
optional :epoch, :int64, 1
|
77
|
+
optional :epoch_pk, :message, 2, "ECP2"
|
78
|
+
optional :epoch_pk_sig, :bytes, 3
|
79
|
+
optional :revocation_alg, :int32, 4
|
80
|
+
optional :revocation_data, :bytes, 5
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
ECP = Google::Protobuf::DescriptorPool.generated_pool.lookup("ECP").msgclass
|
85
|
+
ECP2 = Google::Protobuf::DescriptorPool.generated_pool.lookup("ECP2").msgclass
|
86
|
+
IssuerPublicKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("IssuerPublicKey").msgclass
|
87
|
+
IssuerKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("IssuerKey").msgclass
|
88
|
+
Credential = Google::Protobuf::DescriptorPool.generated_pool.lookup("Credential").msgclass
|
89
|
+
CredRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("CredRequest").msgclass
|
90
|
+
Signature = Google::Protobuf::DescriptorPool.generated_pool.lookup("Signature").msgclass
|
91
|
+
NonRevocationProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("NonRevocationProof").msgclass
|
92
|
+
NymSignature = Google::Protobuf::DescriptorPool.generated_pool.lookup("NymSignature").msgclass
|
93
|
+
CredentialRevocationInformation = Google::Protobuf::DescriptorPool.generated_pool.lookup("CredentialRevocationInformation").msgclass
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: ledger/queryresult/kv_query_result.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/timestamp_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "queryresult.KV" do
|
9
|
+
optional :namespace, :string, 1
|
10
|
+
optional :key, :string, 2
|
11
|
+
optional :value, :bytes, 3
|
12
|
+
end
|
13
|
+
add_message "queryresult.KeyModification" do
|
14
|
+
optional :tx_id, :string, 1
|
15
|
+
optional :value, :bytes, 2
|
16
|
+
optional :timestamp, :message, 3, "google.protobuf.Timestamp"
|
17
|
+
optional :is_delete, :bool, 4
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Queryresult
|
22
|
+
KV = Google::Protobuf::DescriptorPool.generated_pool.lookup("queryresult.KV").msgclass
|
23
|
+
KeyModification = Google::Protobuf::DescriptorPool.generated_pool.lookup("queryresult.KeyModification").msgclass
|
24
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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
|