bip44 0.2.6 → 0.2.7

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: 830fc64f52f041172bd2f34851530903f66c8274
4
- data.tar.gz: 82791e16e1d5cc0d9b31fbf81352aa5b218907b4
3
+ metadata.gz: 28a040599b05a5971a042296f6bed5ec0cb11d04
4
+ data.tar.gz: 359d0350e0ef5cd491c133064e8e8f1b4278e8d1
5
5
  SHA512:
6
- metadata.gz: 06bc9b086c9ba6bd693e325051834e4216473af62e3878c643e04e5bf94f6689283ad7238c1373547318734697db1d572e76b89bfe98397f46e81222c44ac7cd
7
- data.tar.gz: d6a0816b649af21aa0a39dbb8cb8eeed1e06ee175de56a958bf8e63ccd094c2d72d5fdc58e0be52ff9db6841e68f3b07e9af41b5c1d896973f1833a889397ae6
6
+ metadata.gz: 6cc9052ae80fbb0e04c659c97d3502087c20ef39b218359d02d889386c67884eeaffa09d6821a8095e2e48414305ddad434e3b5a8122dc9706aff5ed4ab1dafd
7
+ data.tar.gz: 15f4ba2b7bb81304532bdf5eb0d28ef1ca7a81025299a1cec1e759adffd4e580b2656492a3577b2b23bd6eac2a3c1f71b8cfb0e5bafae72e9061c0c1b16e5d22
@@ -18,6 +18,7 @@ module Bip44
18
18
  puts 'ethereum xprv: ' + ethereum_wallet.xprv
19
19
  puts 'ethereum xpub: ' + ethereum_wallet.xpub
20
20
  bitcoin_wallet = Bip44::Wallet.from_seed(seed, "m/44'/0'/0'/0")
21
+ puts 'bitcoin xprv: ' + bitcoin_wallet.xprv
21
22
  puts 'bitcoin xpub: ' + bitcoin_wallet.xpub
22
23
  end
23
24
 
@@ -1,3 +1,3 @@
1
1
  module Bip44
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -25,6 +25,11 @@ module Bip44
25
25
  Wallet.new(wallet_node)
26
26
  end
27
27
 
28
+ def self.from_xprv(xprv)
29
+ wallet_node = MoneyTree::Node.from_bip32(xprv)
30
+ Wallet.new(wallet_node)
31
+ end
32
+
28
33
  def xpub
29
34
  @wallet_node.to_bip32
30
35
  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.6
4
+ version: 0.2.7
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-23 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler