bip44 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bip44/version.rb +1 -1
- data/lib/bip44/wallet.rb +12 -0
- 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: ba5af384e71d5a73c26a5912b5f0da009f8c5d83
|
4
|
+
data.tar.gz: 36fdb1314c82ebff71457cd677737a5753ab6b46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 092315318b9941dcc880dfafcbd8bbc0b9cd7e4825d395e16df310e89b54a82ebec6512828138301bf3a70b14be161173faf9a61f794283e6207896042afb44c
|
7
|
+
data.tar.gz: c58dc1d4ad309f9c5136749f7084bf49c1b8142eb7d1f541ffd586808a141a7b12fd248952f8692da06c6b00eb0414408f3e69b189c0b987604d43e8eb92b722
|
data/lib/bip44/version.rb
CHANGED
data/lib/bip44/wallet.rb
CHANGED
@@ -30,6 +30,10 @@ module Bip44
|
|
30
30
|
Wallet.new(wallet_node)
|
31
31
|
end
|
32
32
|
|
33
|
+
def sub_wallet(path)
|
34
|
+
Wallet.new(@wallet_node.node_for_path(path))
|
35
|
+
end
|
36
|
+
|
33
37
|
def xpub
|
34
38
|
@wallet_node.to_bip32
|
35
39
|
end
|
@@ -38,6 +42,14 @@ module Bip44
|
|
38
42
|
@wallet_node.to_bip32(:private)
|
39
43
|
end
|
40
44
|
|
45
|
+
def public_key
|
46
|
+
@wallet_node.public_key.to_hex
|
47
|
+
end
|
48
|
+
|
49
|
+
def private_key
|
50
|
+
@wallet_node.private_key.to_hex
|
51
|
+
end
|
52
|
+
|
41
53
|
private
|
42
54
|
|
43
55
|
def initialize(wallet_node)
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wuminzhe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|