bip44 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bip44.rb +9 -0
- data/lib/bip44/version.rb +1 -1
- 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: f59ecca05123606e6b613fdaacd87eb1bfcd1d36
|
4
|
+
data.tar.gz: 42f5a8bf162f406c95daf4c6b868605abd35e694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2ead1ba0ada4ff69192f520c8469fd84949a17d9f500620f5bfac7b46325cb11313e762f29256e0dfe4f26d0fe64303088c437c9c8ca32b901ab819e6b0152a
|
7
|
+
data.tar.gz: 2f0f3e683e27c669e956b694741f13ab82bd17b07321d5ef0bb0a61b18614c38b78c91b8c3997f83c43697e757aee67277a7a0c48a66edb11d2442f63af88405
|
data/lib/bip44.rb
CHANGED
@@ -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
|
data/lib/bip44/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|