bip44 0.2.3 → 0.2.4

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
  SHA1:
3
- metadata.gz: a68ccc8deaf3247f9edb42e17a160387c8fd0178
4
- data.tar.gz: b49f202bcacc58829947959554a7389e1a83e749
3
+ metadata.gz: 43aabf2b28fb8a724857ab058ed78740d64a7187
4
+ data.tar.gz: 1aedfd422053d37e5068ac80894cfe952d039b1e
5
5
  SHA512:
6
- metadata.gz: 486cbc9d73416d2332b79438e4aeeade8323bc70ddd8fffb9df5ec39b20fdfbbbd73b0e1da0ba8638bb6203fb954f3e17c6f6107a520535f4165063cac386b42
7
- data.tar.gz: 7a329cea53cb232be7a96adb7ec54a0263d348a2ab2c831b246038e1f9d8ccb6d02035b68d9da57497a0e93971dfa716bbf16c9fa0482b9f6e311d241265146d
6
+ metadata.gz: c58e2144b4a3ec9e3933f4ee742e348e5a29a502d206bcae8ce9584bc34c6ba520f0ad4e5427334a6936daac65957fd2c0204093a5156cc249d04c61da10ff70
7
+ data.tar.gz: 6592e7786e4da97745823022a3258cb63378a45e43b94ac71539372a5a9eb14222931a516be7cbf262826daae6816634752c05a69b1fa7efb12532e767d9f21e
@@ -1,7 +1,7 @@
1
1
  module Bip44
2
2
  module Bitcoin
3
- def get_bitcoin_address(index)
4
- node = @wallet_node.node_for_path("M/0/#{index}")
3
+ def get_bitcoin_address(path)
4
+ node = @wallet_node.node_for_path(path)
5
5
  node.to_address
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module Bip44
2
2
  module Ethereum
3
- def get_ethereum_address(index)
4
- node = @wallet_node.node_for_path("M/0/#{index}")
3
+ def get_ethereum_address(path)
4
+ node = @wallet_node.node_for_path(path)
5
5
 
6
6
  # from bitcoin public key to ethereum public key
7
7
  group = ECDSA::Group::Secp256k1
@@ -1,3 +1,3 @@
1
1
  module Bip44
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bip44
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - wuminzhe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-13 00:00:00.000000000 Z
11
+ date: 2018-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler