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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5f0568b7e6de9981790fc25887fb4b063d2a2b4b4013b3762f0ae5cb5255aaf
4
- data.tar.gz: 88c6ba3db543a3c1bc0a138e7e40325a1cdfd680bd6bcb39c907ba7aa848f6b1
3
+ metadata.gz: 51017a36a52c447bd52777486b764ddc09fcfc1c19bca1943da465c49cbc4294
4
+ data.tar.gz: 52e5b9b209eb53cfe246c4a41b9f7d91d1abee940162cc9c23599f75d0c0e6b0
5
5
  SHA512:
6
- metadata.gz: a51e59cdc705fd1891221933f0ee146f685d64602fe75ef0ae71a125eb14023b927f5b86990225369b115bf3f96fc5d9d2aa851c52492dc4a7211a7f6f3cba88
7
- data.tar.gz: 926eafcb4b4c5047099cffca1d4ca9d1d2ea2a761e352e8300b08ae7c01f7c7340940b613096562e77f1448e7599c87a5f84ea55dad5779eded99c374dfd7246
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\@org1.example.com/msp/keystore/9f7c67dd4dd6562d258593c0d5011a3bff9121e65e67ff7fd3212919ae400a88_sk',
48
- 'peerOrganizations/org1.example.com/users/Admin\@org1.example.com/msp/signcerts/cert.pem'
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::Gateway::Identity.new(
70
+ identity = Fabric::Identity.new(
71
71
  {
72
72
  msp_id: 'Org1MSP',
73
- private_key: Fabric::Gateway.crypto_suite.key_from_pem(load_certs[1]),
74
- pem_certificate: load_certs[2],
73
+ private_key: Fabric.crypto_suite.key_from_pem(load_certs[1]),
74
+ certificate: load_certs[2],
75
75
  }
76
76
  )
77
77
 
@@ -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.42')
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')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fabric
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
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.0
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-01-11 00:00:00.000000000 Z
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: '1.42'
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: '1.42'
82
+ version: 1.46.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake-notes
85
85
  requirement: !ruby/object:Gem::Requirement