hdkey 1.0 → 1.0.1
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 +4 -4
- data/hdkey.gemspec +1 -1
- data/lib/hdkey/ext_key.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3127c2b4ced521532f460511c497e22f69519de
|
4
|
+
data.tar.gz: b40d18ff28f378e678eb726cd4f924fe8c3fbcf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c920c3f81438c9e1a47fec3bb43765a9449a254a38704f55ff709a7ebbb51114014c668da011e486f2b4033d2790edacc51ac09d13b0c3bd2dfa5cf9a99dc00a
|
7
|
+
data.tar.gz: 9a58cdd3427aa6ed45fda1e5366fa4a2cef4b271848e3e628928609e9a81fb2e76016f35538577290dbe36ccc9999920982909182850561e3fbffef42b0283ba
|
data/hdkey.gemspec
CHANGED
data/lib/hdkey/ext_key.rb
CHANGED
@@ -167,7 +167,7 @@ module Bitcoin
|
|
167
167
|
l = Bitcoin.hmac_sha512(chain_code, data)
|
168
168
|
left = OpenSSL::BN.from_hex(l[0..31].bth)
|
169
169
|
raise 'invalid key' if left.to_i >= CURVE_ORDER
|
170
|
-
new_key.pub_key = bitcoin_elliptic_curve.group.generator.mul(left).ec_add(pub_key)
|
170
|
+
new_key.pub_key = Bitcoin.bitcoin_elliptic_curve.group.generator.mul(left).ec_add(pub_key)
|
171
171
|
new_key.chain_code = l[32..-1]
|
172
172
|
new_key
|
173
173
|
end
|
@@ -181,7 +181,7 @@ module Bitcoin
|
|
181
181
|
key.parent_fingerprint = data.read(4).bth
|
182
182
|
key.number = data.read(4).unpack('N').first
|
183
183
|
key.chain_code = data.read(32)
|
184
|
-
key.pub_key = OpenSSL::PKey::EC::Point.from_hex(bitcoin_elliptic_curve.group, data.read(33).bth)
|
184
|
+
key.pub_key = OpenSSL::PKey::EC::Point.from_hex(Bitcoin.bitcoin_elliptic_curve.group, data.read(33).bth)
|
185
185
|
key
|
186
186
|
end
|
187
187
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hdkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shigeyuki Azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-ruby
|