bip44 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bip44.rb +9 -0
  3. data/lib/bip44/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43aabf2b28fb8a724857ab058ed78740d64a7187
4
- data.tar.gz: 1aedfd422053d37e5068ac80894cfe952d039b1e
3
+ metadata.gz: f59ecca05123606e6b613fdaacd87eb1bfcd1d36
4
+ data.tar.gz: 42f5a8bf162f406c95daf4c6b868605abd35e694
5
5
  SHA512:
6
- metadata.gz: c58e2144b4a3ec9e3933f4ee742e348e5a29a502d206bcae8ce9584bc34c6ba520f0ad4e5427334a6936daac65957fd2c0204093a5156cc249d04c61da10ff70
7
- data.tar.gz: 6592e7786e4da97745823022a3258cb63378a45e43b94ac71539372a5a9eb14222931a516be7cbf262826daae6816634752c05a69b1fa7efb12532e767d9f21e
6
+ metadata.gz: a2ead1ba0ada4ff69192f520c8469fd84949a17d9f500620f5bfac7b46325cb11313e762f29256e0dfe4f26d0fe64303088c437c9c8ca32b901ab819e6b0152a
7
+ data.tar.gz: 2f0f3e683e27c669e956b694741f13ab82bd17b07321d5ef0bb0a61b18614c38b78c91b8c3997f83c43697e757aee67277a7a0c48a66edb11d2442f63af88405
@@ -10,4 +10,13 @@ require 'bip44/ethereum'
10
10
  require 'bip44/wallet'
11
11
 
12
12
  module Bip44
13
+ def self.create_mnemonic_wallet
14
+ words = BipMnemonic.to_mnemonic(bits: 128)
15
+ puts words
16
+ seed = BipMnemonic.to_seed(mnemonic: words)
17
+ ethereum_wallet = Bip44::Wallet.from_seed(seed, "m/44'/60'/0'/0")
18
+ puts 'ethereum xpub: ' + ethereum_wallet.xpub
19
+ bitcoin_wallet = Bip44::Wallet.from_seed(seed, "m/44'/0'/0'/0")
20
+ puts 'bitcoin xpub: ' + bitcoin_wallet.xpub
21
+ end
13
22
  end
@@ -1,3 +1,3 @@
1
1
  module Bip44
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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.4
4
+ version: 0.2.5
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-14 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler