fabric-gateway 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0682847b6d6baf8c6c7e42969ea1df4ea1270a71c08ff738e7d50e437dc21f03'
4
- data.tar.gz: 2d810690b719fe2d821c52994f98ee075ca1d2d64f33cfd3ddfc92ca9b3d285c
3
+ metadata.gz: 26b462c9b71e8dc9e2926e0c24b7b626cb40e13358fb36418d3ce121692aa579
4
+ data.tar.gz: aff70180d2bdb947f0107cb3627fb7b95a4bde69068a8dc91acabb742dc78604
5
5
  SHA512:
6
- metadata.gz: 9af5b6d596e8044386b6cfd02de491c7ef40c16870ea2e70ea93e80402e06df6af87373b14c416644a19e08452509b2251d885da6fa2c35c5ab2c2332d49b900
7
- data.tar.gz: ba1cec9dc77522e98bb55bc44eabe9b17bea003abe79f13d2d9b189a572d9bd5b8e09f9459cbac933eedcd864672c99b83bf3011d9bf70887c60df6b50a0771d
6
+ metadata.gz: fb8ad49f7dd5e04c6b4c125fdb19e7b61927c0f622770c85added66ccd4cbcbea36df5a7922de0a0f8fbb1c73b31ebae31ed160e500a8fd601a085c2f2444168
7
+ data.tar.gz: 9cf3a1b4f2ce340052a31fcfc00f622326f885f833b0b158c5f4d2fc64a85557848c6573f47ce7690369d74d6ef8cc6521992ebe4f47b46bdfb2c8184d94d8ac
data/Gemfile.lock ADDED
@@ -0,0 +1,42 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fabric-gateway (0.0.1)
5
+ google-protobuf (>= 3.19.1)
6
+ grpc (~> 1.42)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.4.4)
12
+ google-protobuf (3.19.1)
13
+ googleapis-common-protos-types (1.3.0)
14
+ google-protobuf (~> 3.14)
15
+ grpc (1.42.0)
16
+ google-protobuf (~> 3.18)
17
+ googleapis-common-protos-types (~> 1.0)
18
+ rake (12.3.2)
19
+ rspec (3.10.0)
20
+ rspec-core (~> 3.10.0)
21
+ rspec-expectations (~> 3.10.0)
22
+ rspec-mocks (~> 3.10.0)
23
+ rspec-core (3.10.1)
24
+ rspec-support (~> 3.10.0)
25
+ rspec-expectations (3.10.1)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.10.0)
28
+ rspec-mocks (3.10.2)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.10.0)
31
+ rspec-support (3.10.3)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ fabric-gateway!
38
+ rake (~> 12.0)
39
+ rspec (~> 3.0)
40
+
41
+ BUNDLED WITH
42
+ 2.1.4
data/README.md CHANGED
@@ -22,17 +22,28 @@ Or install it yourself as:
22
22
 
23
23
  This is a pre-alpha library. None of the code has been tested or confirmed working yet.
24
24
 
25
+
26
+ non-working notes...
27
+
28
+ ```
29
+ $ bin/console
30
+
31
+ # how in the world do we grab a certificate and connect to the peer properly?
32
+ stub=Gateway::Gateway::Stub.new('localhost:7051', :this_channel_is_insecure)
33
+ stub.submit(Gateway::SubmitRequest.new(transaction_id: "123", channel_id: "2", prepared_transaction: Common::Envelope.new()))
34
+
35
+ ```
36
+
25
37
  ## Development
26
38
 
27
39
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
40
 
29
41
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
42
 
31
- To rebuild the proto code:
43
+ To rebuild the proto code, run the regenerate script:
32
44
 
33
45
  ```
34
- $ git submodule update --init --recursive
35
- $ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/gateway/gateway.proto
46
+ $ bin/regenerate
36
47
  ```
37
48
 
38
49
  ## Contributing
data/bin/regenerate ADDED
@@ -0,0 +1,18 @@
1
+ #!/bin/bash
2
+
3
+ if ! which grpc_tools_ruby_protoc > /dev/null; then
4
+ echo "grpc_tools_ruby_protoc missing, installing from ruby-gems..."
5
+ gem install grpc-tools
6
+ fi
7
+
8
+ git submodule update --init --recursive
9
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/gateway/gateway.proto
10
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/peer/chaincode.proto
11
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/peer/chaincode_event.proto
12
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/peer/proposal_response.proto
13
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/peer/proposal.proto
14
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/peer/transaction.proto
15
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/common/common.proto
16
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/orderer/ab.proto
17
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/gossip/message.proto
18
+ grpc_tools_ruby_protoc -I ./fabric-protos --ruby_out=./lib --grpc_out=./lib ./fabric-protos/msp/msp_principal.proto
@@ -26,4 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.bindir = "exe"
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
+ spec.add_dependency('google-protobuf', '>= 3.19.1')
30
+ spec.add_dependency('grpc', '~> 1.42')
29
31
  end
@@ -0,0 +1,113 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: common/common.proto
3
+
4
+ require 'google/protobuf/timestamp_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("common/common.proto", :syntax => :proto3) do
9
+ add_message "common.LastConfig" do
10
+ optional :index, :uint64, 1
11
+ end
12
+ add_message "common.Metadata" do
13
+ optional :value, :bytes, 1
14
+ repeated :signatures, :message, 2, "common.MetadataSignature"
15
+ end
16
+ add_message "common.MetadataSignature" do
17
+ optional :signature_header, :bytes, 1
18
+ optional :signature, :bytes, 2
19
+ end
20
+ add_message "common.Header" do
21
+ optional :channel_header, :bytes, 1
22
+ optional :signature_header, :bytes, 2
23
+ end
24
+ add_message "common.ChannelHeader" do
25
+ optional :type, :int32, 1
26
+ optional :version, :int32, 2
27
+ optional :timestamp, :message, 3, "google.protobuf.Timestamp"
28
+ optional :channel_id, :string, 4
29
+ optional :tx_id, :string, 5
30
+ optional :epoch, :uint64, 6
31
+ optional :extension, :bytes, 7
32
+ optional :tls_cert_hash, :bytes, 8
33
+ end
34
+ add_message "common.SignatureHeader" do
35
+ optional :creator, :bytes, 1
36
+ optional :nonce, :bytes, 2
37
+ end
38
+ add_message "common.Payload" do
39
+ optional :header, :message, 1, "common.Header"
40
+ optional :data, :bytes, 2
41
+ end
42
+ add_message "common.Envelope" do
43
+ optional :payload, :bytes, 1
44
+ optional :signature, :bytes, 2
45
+ end
46
+ add_message "common.Block" do
47
+ optional :header, :message, 1, "common.BlockHeader"
48
+ optional :data, :message, 2, "common.BlockData"
49
+ optional :metadata, :message, 3, "common.BlockMetadata"
50
+ end
51
+ add_message "common.BlockHeader" do
52
+ optional :number, :uint64, 1
53
+ optional :previous_hash, :bytes, 2
54
+ optional :data_hash, :bytes, 3
55
+ end
56
+ add_message "common.BlockData" do
57
+ repeated :data, :bytes, 1
58
+ end
59
+ add_message "common.BlockMetadata" do
60
+ repeated :metadata, :bytes, 1
61
+ end
62
+ add_message "common.OrdererBlockMetadata" do
63
+ optional :last_config, :message, 1, "common.LastConfig"
64
+ optional :consenter_metadata, :bytes, 2
65
+ end
66
+ add_enum "common.Status" do
67
+ value :UNKNOWN, 0
68
+ value :SUCCESS, 200
69
+ value :BAD_REQUEST, 400
70
+ value :FORBIDDEN, 403
71
+ value :NOT_FOUND, 404
72
+ value :REQUEST_ENTITY_TOO_LARGE, 413
73
+ value :INTERNAL_SERVER_ERROR, 500
74
+ value :NOT_IMPLEMENTED, 501
75
+ value :SERVICE_UNAVAILABLE, 503
76
+ end
77
+ add_enum "common.HeaderType" do
78
+ value :MESSAGE, 0
79
+ value :CONFIG, 1
80
+ value :CONFIG_UPDATE, 2
81
+ value :ENDORSER_TRANSACTION, 3
82
+ value :ORDERER_TRANSACTION, 4
83
+ value :DELIVER_SEEK_INFO, 5
84
+ value :CHAINCODE_PACKAGE, 6
85
+ end
86
+ add_enum "common.BlockMetadataIndex" do
87
+ value :SIGNATURES, 0
88
+ value :LAST_CONFIG, 1
89
+ value :TRANSACTIONS_FILTER, 2
90
+ value :ORDERER, 3
91
+ value :COMMIT_HASH, 4
92
+ end
93
+ end
94
+ end
95
+
96
+ module Common
97
+ LastConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.LastConfig").msgclass
98
+ Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Metadata").msgclass
99
+ MetadataSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.MetadataSignature").msgclass
100
+ Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Header").msgclass
101
+ ChannelHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.ChannelHeader").msgclass
102
+ SignatureHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.SignatureHeader").msgclass
103
+ Payload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Payload").msgclass
104
+ Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Envelope").msgclass
105
+ Block = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Block").msgclass
106
+ BlockHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.BlockHeader").msgclass
107
+ BlockData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.BlockData").msgclass
108
+ BlockMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.BlockMetadata").msgclass
109
+ OrdererBlockMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.OrdererBlockMetadata").msgclass
110
+ Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Status").enummodule
111
+ HeaderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.HeaderType").enummodule
112
+ BlockMetadataIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.BlockMetadataIndex").enummodule
113
+ end
@@ -0,0 +1,61 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: common/policies.proto
3
+
4
+ require 'msp/msp_principal_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("common/policies.proto", :syntax => :proto3) do
9
+ add_message "common.Policy" do
10
+ optional :type, :int32, 1
11
+ optional :value, :bytes, 2
12
+ end
13
+ add_enum "common.Policy.PolicyType" do
14
+ value :UNKNOWN, 0
15
+ value :SIGNATURE, 1
16
+ value :MSP, 2
17
+ value :IMPLICIT_META, 3
18
+ end
19
+ add_message "common.SignaturePolicyEnvelope" do
20
+ optional :version, :int32, 1
21
+ optional :rule, :message, 2, "common.SignaturePolicy"
22
+ repeated :identities, :message, 3, "common.MSPPrincipal"
23
+ end
24
+ add_message "common.SignaturePolicy" do
25
+ oneof :Type do
26
+ optional :signed_by, :int32, 1
27
+ optional :n_out_of, :message, 2, "common.SignaturePolicy.NOutOf"
28
+ end
29
+ end
30
+ add_message "common.SignaturePolicy.NOutOf" do
31
+ optional :n, :int32, 1
32
+ repeated :rules, :message, 2, "common.SignaturePolicy"
33
+ end
34
+ add_message "common.ImplicitMetaPolicy" do
35
+ optional :sub_policy, :string, 1
36
+ optional :rule, :enum, 2, "common.ImplicitMetaPolicy.Rule"
37
+ end
38
+ add_enum "common.ImplicitMetaPolicy.Rule" do
39
+ value :ANY, 0
40
+ value :ALL, 1
41
+ value :MAJORITY, 2
42
+ end
43
+ add_message "common.ApplicationPolicy" do
44
+ oneof :Type do
45
+ optional :signature_policy, :message, 1, "common.SignaturePolicyEnvelope"
46
+ optional :channel_config_policy_reference, :string, 2
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ module Common
53
+ Policy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Policy").msgclass
54
+ Policy::PolicyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.Policy.PolicyType").enummodule
55
+ SignaturePolicyEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.SignaturePolicyEnvelope").msgclass
56
+ SignaturePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.SignaturePolicy").msgclass
57
+ SignaturePolicy::NOutOf = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.SignaturePolicy.NOutOf").msgclass
58
+ ImplicitMetaPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.ImplicitMetaPolicy").msgclass
59
+ ImplicitMetaPolicy::Rule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.ImplicitMetaPolicy.Rule").enummodule
60
+ ApplicationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.ApplicationPolicy").msgclass
61
+ end
@@ -1,5 +1,5 @@
1
1
  module Fabric
2
2
  module Gateway
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -0,0 +1,236 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: gossip/message.proto
3
+
4
+ require 'peer/collection_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("gossip/message.proto", :syntax => :proto3) do
9
+ add_message "gossip.Envelope" do
10
+ optional :payload, :bytes, 1
11
+ optional :signature, :bytes, 2
12
+ optional :secret_envelope, :message, 3, "gossip.SecretEnvelope"
13
+ end
14
+ add_message "gossip.SecretEnvelope" do
15
+ optional :payload, :bytes, 1
16
+ optional :signature, :bytes, 2
17
+ end
18
+ add_message "gossip.Secret" do
19
+ oneof :content do
20
+ optional :internalEndpoint, :string, 1
21
+ end
22
+ end
23
+ add_message "gossip.GossipMessage" do
24
+ optional :nonce, :uint64, 1
25
+ optional :channel, :bytes, 2
26
+ optional :tag, :enum, 3, "gossip.GossipMessage.Tag"
27
+ oneof :content do
28
+ optional :alive_msg, :message, 5, "gossip.AliveMessage"
29
+ optional :mem_req, :message, 6, "gossip.MembershipRequest"
30
+ optional :mem_res, :message, 7, "gossip.MembershipResponse"
31
+ optional :data_msg, :message, 8, "gossip.DataMessage"
32
+ optional :hello, :message, 9, "gossip.GossipHello"
33
+ optional :data_dig, :message, 10, "gossip.DataDigest"
34
+ optional :data_req, :message, 11, "gossip.DataRequest"
35
+ optional :data_update, :message, 12, "gossip.DataUpdate"
36
+ optional :empty, :message, 13, "gossip.Empty"
37
+ optional :conn, :message, 14, "gossip.ConnEstablish"
38
+ optional :state_info, :message, 15, "gossip.StateInfo"
39
+ optional :state_snapshot, :message, 16, "gossip.StateInfoSnapshot"
40
+ optional :state_info_pull_req, :message, 17, "gossip.StateInfoPullRequest"
41
+ optional :state_request, :message, 18, "gossip.RemoteStateRequest"
42
+ optional :state_response, :message, 19, "gossip.RemoteStateResponse"
43
+ optional :leadership_msg, :message, 20, "gossip.LeadershipMessage"
44
+ optional :peer_identity, :message, 21, "gossip.PeerIdentity"
45
+ optional :ack, :message, 22, "gossip.Acknowledgement"
46
+ optional :privateReq, :message, 23, "gossip.RemotePvtDataRequest"
47
+ optional :privateRes, :message, 24, "gossip.RemotePvtDataResponse"
48
+ optional :private_data, :message, 25, "gossip.PrivateDataMessage"
49
+ end
50
+ end
51
+ add_enum "gossip.GossipMessage.Tag" do
52
+ value :UNDEFINED, 0
53
+ value :EMPTY, 1
54
+ value :ORG_ONLY, 2
55
+ value :CHAN_ONLY, 3
56
+ value :CHAN_AND_ORG, 4
57
+ value :CHAN_OR_ORG, 5
58
+ end
59
+ add_message "gossip.StateInfo" do
60
+ optional :timestamp, :message, 2, "gossip.PeerTime"
61
+ optional :pki_id, :bytes, 3
62
+ optional :channel_MAC, :bytes, 4
63
+ optional :properties, :message, 5, "gossip.Properties"
64
+ end
65
+ add_message "gossip.Properties" do
66
+ optional :ledger_height, :uint64, 1
67
+ optional :left_channel, :bool, 2
68
+ repeated :chaincodes, :message, 3, "gossip.Chaincode"
69
+ end
70
+ add_message "gossip.StateInfoSnapshot" do
71
+ repeated :elements, :message, 1, "gossip.Envelope"
72
+ end
73
+ add_message "gossip.StateInfoPullRequest" do
74
+ optional :channel_MAC, :bytes, 1
75
+ end
76
+ add_message "gossip.ConnEstablish" do
77
+ optional :pki_id, :bytes, 1
78
+ optional :identity, :bytes, 2
79
+ optional :tls_cert_hash, :bytes, 3
80
+ optional :probe, :bool, 4
81
+ end
82
+ add_message "gossip.PeerIdentity" do
83
+ optional :pki_id, :bytes, 1
84
+ optional :cert, :bytes, 2
85
+ optional :metadata, :bytes, 3
86
+ end
87
+ add_message "gossip.DataRequest" do
88
+ optional :nonce, :uint64, 1
89
+ repeated :digests, :bytes, 2
90
+ optional :msg_type, :enum, 3, "gossip.PullMsgType"
91
+ end
92
+ add_message "gossip.GossipHello" do
93
+ optional :nonce, :uint64, 1
94
+ optional :metadata, :bytes, 2
95
+ optional :msg_type, :enum, 3, "gossip.PullMsgType"
96
+ end
97
+ add_message "gossip.DataUpdate" do
98
+ optional :nonce, :uint64, 1
99
+ repeated :data, :message, 2, "gossip.Envelope"
100
+ optional :msg_type, :enum, 3, "gossip.PullMsgType"
101
+ end
102
+ add_message "gossip.DataDigest" do
103
+ optional :nonce, :uint64, 1
104
+ repeated :digests, :bytes, 2
105
+ optional :msg_type, :enum, 3, "gossip.PullMsgType"
106
+ end
107
+ add_message "gossip.DataMessage" do
108
+ optional :payload, :message, 1, "gossip.Payload"
109
+ end
110
+ add_message "gossip.PrivateDataMessage" do
111
+ optional :payload, :message, 1, "gossip.PrivatePayload"
112
+ end
113
+ add_message "gossip.Payload" do
114
+ optional :seq_num, :uint64, 1
115
+ optional :data, :bytes, 2
116
+ repeated :private_data, :bytes, 3
117
+ end
118
+ add_message "gossip.PrivatePayload" do
119
+ optional :collection_name, :string, 1
120
+ optional :namespace, :string, 2
121
+ optional :tx_id, :string, 3
122
+ optional :private_rwset, :bytes, 4
123
+ optional :private_sim_height, :uint64, 5
124
+ optional :collection_configs, :message, 6, "protos.CollectionConfigPackage"
125
+ end
126
+ add_message "gossip.AliveMessage" do
127
+ optional :membership, :message, 1, "gossip.Member"
128
+ optional :timestamp, :message, 2, "gossip.PeerTime"
129
+ optional :identity, :bytes, 4
130
+ end
131
+ add_message "gossip.LeadershipMessage" do
132
+ optional :pki_id, :bytes, 1
133
+ optional :timestamp, :message, 2, "gossip.PeerTime"
134
+ optional :is_declaration, :bool, 3
135
+ end
136
+ add_message "gossip.PeerTime" do
137
+ optional :inc_num, :uint64, 1
138
+ optional :seq_num, :uint64, 2
139
+ end
140
+ add_message "gossip.MembershipRequest" do
141
+ optional :self_information, :message, 1, "gossip.Envelope"
142
+ repeated :known, :bytes, 2
143
+ end
144
+ add_message "gossip.MembershipResponse" do
145
+ repeated :alive, :message, 1, "gossip.Envelope"
146
+ repeated :dead, :message, 2, "gossip.Envelope"
147
+ end
148
+ add_message "gossip.Member" do
149
+ optional :endpoint, :string, 1
150
+ optional :metadata, :bytes, 2
151
+ optional :pki_id, :bytes, 3
152
+ end
153
+ add_message "gossip.Empty" do
154
+ end
155
+ add_message "gossip.RemoteStateRequest" do
156
+ optional :start_seq_num, :uint64, 1
157
+ optional :end_seq_num, :uint64, 2
158
+ end
159
+ add_message "gossip.RemoteStateResponse" do
160
+ repeated :payloads, :message, 1, "gossip.Payload"
161
+ end
162
+ add_message "gossip.RemotePvtDataRequest" do
163
+ repeated :digests, :message, 1, "gossip.PvtDataDigest"
164
+ end
165
+ add_message "gossip.PvtDataDigest" do
166
+ optional :tx_id, :string, 1
167
+ optional :namespace, :string, 2
168
+ optional :collection, :string, 3
169
+ optional :block_seq, :uint64, 4
170
+ optional :seq_in_block, :uint64, 5
171
+ end
172
+ add_message "gossip.RemotePvtDataResponse" do
173
+ repeated :elements, :message, 1, "gossip.PvtDataElement"
174
+ end
175
+ add_message "gossip.PvtDataElement" do
176
+ optional :digest, :message, 1, "gossip.PvtDataDigest"
177
+ repeated :payload, :bytes, 2
178
+ end
179
+ add_message "gossip.PvtDataPayload" do
180
+ optional :tx_seq_in_block, :uint64, 1
181
+ optional :payload, :bytes, 2
182
+ end
183
+ add_message "gossip.Acknowledgement" do
184
+ optional :error, :string, 1
185
+ end
186
+ add_message "gossip.Chaincode" do
187
+ optional :name, :string, 1
188
+ optional :version, :string, 2
189
+ optional :metadata, :bytes, 3
190
+ end
191
+ add_enum "gossip.PullMsgType" do
192
+ value :UNDEFINED, 0
193
+ value :BLOCK_MSG, 1
194
+ value :IDENTITY_MSG, 2
195
+ end
196
+ end
197
+ end
198
+
199
+ module Gossip
200
+ Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Envelope").msgclass
201
+ SecretEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.SecretEnvelope").msgclass
202
+ Secret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Secret").msgclass
203
+ GossipMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.GossipMessage").msgclass
204
+ GossipMessage::Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.GossipMessage.Tag").enummodule
205
+ StateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.StateInfo").msgclass
206
+ Properties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Properties").msgclass
207
+ StateInfoSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.StateInfoSnapshot").msgclass
208
+ StateInfoPullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.StateInfoPullRequest").msgclass
209
+ ConnEstablish = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.ConnEstablish").msgclass
210
+ PeerIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PeerIdentity").msgclass
211
+ DataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataRequest").msgclass
212
+ GossipHello = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.GossipHello").msgclass
213
+ DataUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataUpdate").msgclass
214
+ DataDigest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataDigest").msgclass
215
+ DataMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.DataMessage").msgclass
216
+ PrivateDataMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PrivateDataMessage").msgclass
217
+ Payload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Payload").msgclass
218
+ PrivatePayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PrivatePayload").msgclass
219
+ AliveMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.AliveMessage").msgclass
220
+ LeadershipMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.LeadershipMessage").msgclass
221
+ PeerTime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PeerTime").msgclass
222
+ MembershipRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.MembershipRequest").msgclass
223
+ MembershipResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.MembershipResponse").msgclass
224
+ Member = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Member").msgclass
225
+ Empty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Empty").msgclass
226
+ RemoteStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemoteStateRequest").msgclass
227
+ RemoteStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemoteStateResponse").msgclass
228
+ RemotePvtDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemotePvtDataRequest").msgclass
229
+ PvtDataDigest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PvtDataDigest").msgclass
230
+ RemotePvtDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.RemotePvtDataResponse").msgclass
231
+ PvtDataElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PvtDataElement").msgclass
232
+ PvtDataPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PvtDataPayload").msgclass
233
+ Acknowledgement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Acknowledgement").msgclass
234
+ Chaincode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.Chaincode").msgclass
235
+ PullMsgType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gossip.PullMsgType").enummodule
236
+ 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 the Hyperledger Fabric contributors. 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(::Gossip::Envelope), stream(::Gossip::Envelope)
25
+ # Ping is used to probe a remote peer's aliveness
26
+ rpc :Ping, ::Gossip::Empty, ::Gossip::Empty
27
+ end
28
+
29
+ Stub = Service.rpc_stub_class
30
+ end
31
+ end
@@ -0,0 +1,57 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: msp/msp_principal.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("msp/msp_principal.proto", :syntax => :proto3) do
8
+ add_message "common.MSPPrincipal" do
9
+ optional :principal_classification, :enum, 1, "common.MSPPrincipal.Classification"
10
+ optional :principal, :bytes, 2
11
+ end
12
+ add_enum "common.MSPPrincipal.Classification" do
13
+ value :ROLE, 0
14
+ value :ORGANIZATION_UNIT, 1
15
+ value :IDENTITY, 2
16
+ value :ANONYMITY, 3
17
+ value :COMBINED, 4
18
+ end
19
+ add_message "common.OrganizationUnit" do
20
+ optional :msp_identifier, :string, 1
21
+ optional :organizational_unit_identifier, :string, 2
22
+ optional :certifiers_identifier, :bytes, 3
23
+ end
24
+ add_message "common.MSPRole" do
25
+ optional :msp_identifier, :string, 1
26
+ optional :role, :enum, 2, "common.MSPRole.MSPRoleType"
27
+ end
28
+ add_enum "common.MSPRole.MSPRoleType" do
29
+ value :MEMBER, 0
30
+ value :ADMIN, 1
31
+ value :CLIENT, 2
32
+ value :PEER, 3
33
+ value :ORDERER, 4
34
+ end
35
+ add_message "common.MSPIdentityAnonymity" do
36
+ optional :anonymity_type, :enum, 1, "common.MSPIdentityAnonymity.MSPIdentityAnonymityType"
37
+ end
38
+ add_enum "common.MSPIdentityAnonymity.MSPIdentityAnonymityType" do
39
+ value :NOMINAL, 0
40
+ value :ANONYMOUS, 1
41
+ end
42
+ add_message "common.CombinedPrincipal" do
43
+ repeated :principals, :message, 1, "common.MSPPrincipal"
44
+ end
45
+ end
46
+ end
47
+
48
+ module Common
49
+ MSPPrincipal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.MSPPrincipal").msgclass
50
+ MSPPrincipal::Classification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.MSPPrincipal.Classification").enummodule
51
+ OrganizationUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.OrganizationUnit").msgclass
52
+ MSPRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.MSPRole").msgclass
53
+ MSPRole::MSPRoleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.MSPRole.MSPRoleType").enummodule
54
+ MSPIdentityAnonymity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.MSPIdentityAnonymity").msgclass
55
+ MSPIdentityAnonymity::MSPIdentityAnonymityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.MSPIdentityAnonymity.MSPIdentityAnonymityType").enummodule
56
+ CombinedPrincipal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.CombinedPrincipal").msgclass
57
+ end
@@ -0,0 +1,64 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: orderer/ab.proto
3
+
4
+ require 'common/common_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("orderer/ab.proto", :syntax => :proto3) do
9
+ add_message "orderer.BroadcastResponse" do
10
+ optional :status, :enum, 1, "common.Status"
11
+ optional :info, :string, 2
12
+ end
13
+ add_message "orderer.SeekNewest" do
14
+ end
15
+ add_message "orderer.SeekOldest" do
16
+ end
17
+ add_message "orderer.SeekSpecified" do
18
+ optional :number, :uint64, 1
19
+ end
20
+ add_message "orderer.SeekNextCommit" do
21
+ end
22
+ add_message "orderer.SeekPosition" do
23
+ oneof :Type do
24
+ optional :newest, :message, 1, "orderer.SeekNewest"
25
+ optional :oldest, :message, 2, "orderer.SeekOldest"
26
+ optional :specified, :message, 3, "orderer.SeekSpecified"
27
+ optional :next_commit, :message, 4, "orderer.SeekNextCommit"
28
+ end
29
+ end
30
+ add_message "orderer.SeekInfo" do
31
+ optional :start, :message, 1, "orderer.SeekPosition"
32
+ optional :stop, :message, 2, "orderer.SeekPosition"
33
+ optional :behavior, :enum, 3, "orderer.SeekInfo.SeekBehavior"
34
+ optional :error_response, :enum, 4, "orderer.SeekInfo.SeekErrorResponse"
35
+ end
36
+ add_enum "orderer.SeekInfo.SeekBehavior" do
37
+ value :BLOCK_UNTIL_READY, 0
38
+ value :FAIL_IF_NOT_READY, 1
39
+ end
40
+ add_enum "orderer.SeekInfo.SeekErrorResponse" do
41
+ value :STRICT, 0
42
+ value :BEST_EFFORT, 1
43
+ end
44
+ add_message "orderer.DeliverResponse" do
45
+ oneof :Type do
46
+ optional :status, :enum, 1, "common.Status"
47
+ optional :block, :message, 2, "common.Block"
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ module Orderer
54
+ BroadcastResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.BroadcastResponse").msgclass
55
+ SeekNewest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekNewest").msgclass
56
+ SeekOldest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekOldest").msgclass
57
+ SeekSpecified = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekSpecified").msgclass
58
+ SeekNextCommit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekNextCommit").msgclass
59
+ SeekPosition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekPosition").msgclass
60
+ SeekInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekInfo").msgclass
61
+ SeekInfo::SeekBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekInfo.SeekBehavior").enummodule
62
+ SeekInfo::SeekErrorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.SeekInfo.SeekErrorResponse").enummodule
63
+ DeliverResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("orderer.DeliverResponse").msgclass
64
+ end
@@ -0,0 +1,30 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: orderer/ab.proto for package 'orderer'
3
+ # Original file comments:
4
+ # Copyright the Hyperledger Fabric contributors. All rights reserved.
5
+ #
6
+ # SPDX-License-Identifier: Apache-2.0
7
+ #
8
+
9
+ require 'grpc'
10
+ require 'orderer/ab_pb'
11
+
12
+ module Orderer
13
+ module AtomicBroadcast
14
+ class Service
15
+
16
+ include ::GRPC::GenericService
17
+
18
+ self.marshal_class_method = :encode
19
+ self.unmarshal_class_method = :decode
20
+ self.service_name = 'orderer.AtomicBroadcast'
21
+
22
+ # broadcast receives a reply of Acknowledgement for each common.Envelope in order, indicating success or type of failure
23
+ rpc :Broadcast, stream(::Common::Envelope), stream(::Orderer::BroadcastResponse)
24
+ # deliver first requires an Envelope of type DELIVER_SEEK_INFO with Payload data as a mashaled SeekInfo message, then a stream of block replies is received.
25
+ rpc :Deliver, stream(::Common::Envelope), stream(::Orderer::DeliverResponse)
26
+ end
27
+
28
+ Stub = Service.rpc_stub_class
29
+ end
30
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: peer/chaincode_event.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("peer/chaincode_event.proto", :syntax => :proto3) do
8
+ add_message "protos.ChaincodeEvent" do
9
+ optional :chaincode_id, :string, 1
10
+ optional :tx_id, :string, 2
11
+ optional :event_name, :string, 3
12
+ optional :payload, :bytes, 4
13
+ end
14
+ end
15
+ end
16
+
17
+ module Protos
18
+ ChaincodeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeEvent").msgclass
19
+ end
@@ -0,0 +1,69 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: peer/chaincode.proto
3
+
4
+ require 'common/policies_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("peer/chaincode.proto", :syntax => :proto3) do
9
+ add_message "protos.ChaincodeID" do
10
+ optional :path, :string, 1
11
+ optional :name, :string, 2
12
+ optional :version, :string, 3
13
+ end
14
+ add_message "protos.ChaincodeInput" do
15
+ repeated :args, :bytes, 1
16
+ map :decorations, :string, :bytes, 2
17
+ optional :is_init, :bool, 3
18
+ end
19
+ add_message "protos.ChaincodeSpec" do
20
+ optional :type, :enum, 1, "protos.ChaincodeSpec.Type"
21
+ optional :chaincode_id, :message, 2, "protos.ChaincodeID"
22
+ optional :input, :message, 3, "protos.ChaincodeInput"
23
+ optional :timeout, :int32, 4
24
+ end
25
+ add_enum "protos.ChaincodeSpec.Type" do
26
+ value :UNDEFINED, 0
27
+ value :GOLANG, 1
28
+ value :NODE, 2
29
+ value :CAR, 3
30
+ value :JAVA, 4
31
+ end
32
+ add_message "protos.ChaincodeDeploymentSpec" do
33
+ optional :chaincode_spec, :message, 1, "protos.ChaincodeSpec"
34
+ optional :code_package, :bytes, 3
35
+ end
36
+ add_message "protos.ChaincodeInvocationSpec" do
37
+ optional :chaincode_spec, :message, 1, "protos.ChaincodeSpec"
38
+ end
39
+ add_message "protos.LifecycleEvent" do
40
+ optional :chaincode_name, :string, 1
41
+ end
42
+ add_message "protos.CDSData" do
43
+ optional :hash, :bytes, 1
44
+ optional :metadatahash, :bytes, 2
45
+ end
46
+ add_message "protos.ChaincodeData" do
47
+ optional :name, :string, 1
48
+ optional :version, :string, 2
49
+ optional :escc, :string, 3
50
+ optional :vscc, :string, 4
51
+ optional :policy, :message, 5, "common.SignaturePolicyEnvelope"
52
+ optional :data, :bytes, 6
53
+ optional :id, :bytes, 7
54
+ optional :instantiation_policy, :message, 8, "common.SignaturePolicyEnvelope"
55
+ end
56
+ end
57
+ end
58
+
59
+ module Protos
60
+ ChaincodeID = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeID").msgclass
61
+ ChaincodeInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeInput").msgclass
62
+ ChaincodeSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeSpec").msgclass
63
+ ChaincodeSpec::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeSpec.Type").enummodule
64
+ ChaincodeDeploymentSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeDeploymentSpec").msgclass
65
+ ChaincodeInvocationSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeInvocationSpec").msgclass
66
+ LifecycleEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.LifecycleEvent").msgclass
67
+ CDSData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.CDSData").msgclass
68
+ ChaincodeData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeData").msgclass
69
+ end
@@ -0,0 +1,41 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: peer/proposal.proto
3
+
4
+ require 'peer/chaincode_pb'
5
+ require 'peer/proposal_response_pb'
6
+ require 'google/protobuf'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("peer/proposal.proto", :syntax => :proto3) do
10
+ add_message "protos.SignedProposal" do
11
+ optional :proposal_bytes, :bytes, 1
12
+ optional :signature, :bytes, 2
13
+ end
14
+ add_message "protos.Proposal" do
15
+ optional :header, :bytes, 1
16
+ optional :payload, :bytes, 2
17
+ optional :extension, :bytes, 3
18
+ end
19
+ add_message "protos.ChaincodeHeaderExtension" do
20
+ optional :chaincode_id, :message, 2, "protos.ChaincodeID"
21
+ end
22
+ add_message "protos.ChaincodeProposalPayload" do
23
+ optional :input, :bytes, 1
24
+ map :TransientMap, :string, :bytes, 2
25
+ end
26
+ add_message "protos.ChaincodeAction" do
27
+ optional :results, :bytes, 1
28
+ optional :events, :bytes, 2
29
+ optional :response, :message, 3, "protos.Response"
30
+ optional :chaincode_id, :message, 4, "protos.ChaincodeID"
31
+ end
32
+ end
33
+ end
34
+
35
+ module Protos
36
+ SignedProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.SignedProposal").msgclass
37
+ Proposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.Proposal").msgclass
38
+ ChaincodeHeaderExtension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeHeaderExtension").msgclass
39
+ ChaincodeProposalPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeProposalPayload").msgclass
40
+ ChaincodeAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeAction").msgclass
41
+ end
@@ -0,0 +1,52 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: peer/proposal_response.proto
3
+
4
+ require 'google/protobuf/timestamp_pb'
5
+ require 'common/policies_pb'
6
+ require 'google/protobuf'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("peer/proposal_response.proto", :syntax => :proto3) do
10
+ add_message "protos.ProposalResponse" do
11
+ optional :version, :int32, 1
12
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
13
+ optional :response, :message, 4, "protos.Response"
14
+ optional :payload, :bytes, 5
15
+ optional :endorsement, :message, 6, "protos.Endorsement"
16
+ optional :interest, :message, 7, "protos.ChaincodeInterest"
17
+ end
18
+ add_message "protos.Response" do
19
+ optional :status, :int32, 1
20
+ optional :message, :string, 2
21
+ optional :payload, :bytes, 3
22
+ end
23
+ add_message "protos.ProposalResponsePayload" do
24
+ optional :proposal_hash, :bytes, 1
25
+ optional :extension, :bytes, 2
26
+ end
27
+ add_message "protos.Endorsement" do
28
+ optional :endorser, :bytes, 1
29
+ optional :signature, :bytes, 2
30
+ end
31
+ add_message "protos.ChaincodeInterest" do
32
+ repeated :chaincodes, :message, 1, "protos.ChaincodeCall"
33
+ end
34
+ add_message "protos.ChaincodeCall" do
35
+ optional :name, :string, 1
36
+ repeated :collection_names, :string, 2
37
+ optional :no_private_reads, :bool, 3
38
+ optional :no_public_writes, :bool, 4
39
+ repeated :key_policies, :message, 5, "common.SignaturePolicyEnvelope"
40
+ optional :disregard_namespace_policy, :bool, 6
41
+ end
42
+ end
43
+ end
44
+
45
+ module Protos
46
+ ProposalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ProposalResponse").msgclass
47
+ Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.Response").msgclass
48
+ ProposalResponsePayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ProposalResponsePayload").msgclass
49
+ Endorsement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.Endorsement").msgclass
50
+ ChaincodeInterest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeInterest").msgclass
51
+ ChaincodeCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeCall").msgclass
52
+ end
@@ -0,0 +1,74 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: peer/transaction.proto
3
+
4
+ require 'peer/proposal_response_pb'
5
+ require 'common/common_pb'
6
+ require 'google/protobuf'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("peer/transaction.proto", :syntax => :proto3) do
10
+ add_message "protos.ProcessedTransaction" do
11
+ optional :transactionEnvelope, :message, 1, "common.Envelope"
12
+ optional :validationCode, :int32, 2
13
+ end
14
+ add_message "protos.Transaction" do
15
+ repeated :actions, :message, 1, "protos.TransactionAction"
16
+ end
17
+ add_message "protos.TransactionAction" do
18
+ optional :header, :bytes, 1
19
+ optional :payload, :bytes, 2
20
+ end
21
+ add_message "protos.ChaincodeActionPayload" do
22
+ optional :chaincode_proposal_payload, :bytes, 1
23
+ optional :action, :message, 2, "protos.ChaincodeEndorsedAction"
24
+ end
25
+ add_message "protos.ChaincodeEndorsedAction" do
26
+ optional :proposal_response_payload, :bytes, 1
27
+ repeated :endorsements, :message, 2, "protos.Endorsement"
28
+ end
29
+ add_enum "protos.TxValidationCode" do
30
+ value :VALID, 0
31
+ value :NIL_ENVELOPE, 1
32
+ value :BAD_PAYLOAD, 2
33
+ value :BAD_COMMON_HEADER, 3
34
+ value :BAD_CREATOR_SIGNATURE, 4
35
+ value :INVALID_ENDORSER_TRANSACTION, 5
36
+ value :INVALID_CONFIG_TRANSACTION, 6
37
+ value :UNSUPPORTED_TX_PAYLOAD, 7
38
+ value :BAD_PROPOSAL_TXID, 8
39
+ value :DUPLICATE_TXID, 9
40
+ value :ENDORSEMENT_POLICY_FAILURE, 10
41
+ value :MVCC_READ_CONFLICT, 11
42
+ value :PHANTOM_READ_CONFLICT, 12
43
+ value :UNKNOWN_TX_TYPE, 13
44
+ value :TARGET_CHAIN_NOT_FOUND, 14
45
+ value :MARSHAL_TX_ERROR, 15
46
+ value :NIL_TXACTION, 16
47
+ value :EXPIRED_CHAINCODE, 17
48
+ value :CHAINCODE_VERSION_CONFLICT, 18
49
+ value :BAD_HEADER_EXTENSION, 19
50
+ value :BAD_CHANNEL_HEADER, 20
51
+ value :BAD_RESPONSE_PAYLOAD, 21
52
+ value :BAD_RWSET, 22
53
+ value :ILLEGAL_WRITESET, 23
54
+ value :INVALID_WRITESET, 24
55
+ value :INVALID_CHAINCODE, 25
56
+ value :NOT_VALIDATED, 254
57
+ value :INVALID_OTHER_REASON, 255
58
+ end
59
+ add_enum "protos.MetaDataKeys" do
60
+ value :VALIDATION_PARAMETER, 0
61
+ value :VALIDATION_PARAMETER_V2, 1
62
+ end
63
+ end
64
+ end
65
+
66
+ module Protos
67
+ ProcessedTransaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ProcessedTransaction").msgclass
68
+ Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.Transaction").msgclass
69
+ TransactionAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.TransactionAction").msgclass
70
+ ChaincodeActionPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeActionPayload").msgclass
71
+ ChaincodeEndorsedAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.ChaincodeEndorsedAction").msgclass
72
+ TxValidationCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.TxValidationCode").enummodule
73
+ MetaDataKeys = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protos.MetaDataKeys").enummodule
74
+ end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabric-gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2021-12-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-protobuf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.19.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.19.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: grpc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.42'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.42'
13
41
  description: 'Hyperledger Fabric Gateway gRPC SDK generated directly from protos found
14
42
  at: https://github.com/hyperledger/fabric-protos.'
15
43
  email:
@@ -25,19 +53,33 @@ files:
25
53
  - CHANGELOG.md
26
54
  - CODE_OF_CONDUCT.md
27
55
  - Gemfile
56
+ - Gemfile.lock
28
57
  - LICENSE.txt
29
58
  - README.md
30
59
  - Rakefile
31
60
  - TAGS
32
61
  - bin/console
62
+ - bin/regenerate
33
63
  - bin/setup
34
64
  - fabric-gateway.gemspec
35
65
  - lib/.DS_Store
66
+ - lib/common/common_pb.rb
67
+ - lib/common/policies_pb.rb
36
68
  - lib/fabric/.DS_Store
37
69
  - lib/fabric/gateway.rb
38
70
  - lib/fabric/gateway/version.rb
39
71
  - lib/gateway/gateway_pb.rb
40
72
  - lib/gateway/gateway_services_pb.rb
73
+ - lib/gossip/message_pb.rb
74
+ - lib/gossip/message_services_pb.rb
75
+ - lib/msp/msp_principal_pb.rb
76
+ - lib/orderer/ab_pb.rb
77
+ - lib/orderer/ab_services_pb.rb
78
+ - lib/peer/chaincode_event_pb.rb
79
+ - lib/peer/chaincode_pb.rb
80
+ - lib/peer/proposal_pb.rb
81
+ - lib/peer/proposal_response_pb.rb
82
+ - lib/peer/transaction_pb.rb
41
83
  homepage: https://github.com/ethicalidentity/fabric-gateway-ruby
42
84
  licenses:
43
85
  - MIT