fabric-gateway 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/fabric-gateway.gemspec +1 -1
- data/lib/fabric/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51017a36a52c447bd52777486b764ddc09fcfc1c19bca1943da465c49cbc4294
|
4
|
+
data.tar.gz: 52e5b9b209eb53cfe246c4a41b9f7d91d1abee940162cc9c23599f75d0c0e6b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8f61a0b72d738c832c48bbdc56b4c4aa182802e9f892eb12c701b755ff158c560e106aca0ce914e411fca58a322139d6ebd8ee09c7cf921d6ab671322912f8d
|
7
|
+
data.tar.gz: 63b48fe7fa040153d0142f537fe6d73a7285c0d7652d5e73901df816101c536108ade11f438918c69eabbb0c43a8fdd5d594b015b8140dea4d8b5208e79d3c29
|
data/README.md
CHANGED
@@ -44,8 +44,8 @@ def load_certs
|
|
44
44
|
data_dir ='/your/certs/directory' # aka test-network/organizations
|
45
45
|
files = [
|
46
46
|
'peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem',
|
47
|
-
'peerOrganizations/org1.example.com/users/Admin
|
48
|
-
'peerOrganizations/org1.example.com/users/Admin
|
47
|
+
'peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/9f7c67dd4dd6562d258593c0d5011a3bff9121e65e67ff7fd3212919ae400a88_sk',
|
48
|
+
'peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/cert.pem'
|
49
49
|
]
|
50
50
|
files.map { |f| File.open(File.join(data_dir, f)).read }
|
51
51
|
end
|
@@ -65,13 +65,13 @@ default_call_options = {
|
|
65
65
|
chaincode_events_options: { deadline: GRPC::Core::TimeConsts.from_relative_time(60) }
|
66
66
|
}
|
67
67
|
creds = GRPC::Core::ChannelCredentials.new(load_certs[0])
|
68
|
-
client=Fabric::Client.new('localhost:7051', creds, default_call_options: default_call_options, **client_opts)
|
68
|
+
client=Fabric::Client.new(host: 'localhost:7051', creds: creds, default_call_options: default_call_options, **client_opts)
|
69
69
|
|
70
|
-
identity = Fabric::
|
70
|
+
identity = Fabric::Identity.new(
|
71
71
|
{
|
72
72
|
msp_id: 'Org1MSP',
|
73
|
-
private_key: Fabric
|
74
|
-
|
73
|
+
private_key: Fabric.crypto_suite.key_from_pem(load_certs[1]),
|
74
|
+
certificate: load_certs[2],
|
75
75
|
}
|
76
76
|
)
|
77
77
|
|
data/fabric-gateway.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency('grpc', '~> 1.42')
|
33
33
|
spec.add_development_dependency('codecov', '~> 0.6.0')
|
34
34
|
spec.add_development_dependency('factory_bot', '~> 6.2.0')
|
35
|
-
spec.add_development_dependency('grpc-tools', '~> 1.
|
35
|
+
spec.add_development_dependency('grpc-tools', '~> 1.46.2')
|
36
36
|
spec.add_development_dependency('rake-notes', '~> 0.2.0')
|
37
37
|
spec.add_development_dependency('rubocop', '~> 1.23.0')
|
38
38
|
spec.add_development_dependency('rubocop-rspec', '~> 2.6.0')
|
data/lib/fabric/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabric-gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.46.2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.46.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake-notes
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|