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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4204219efb7b95015dc2710f71dcfae2c60732f6
4
- data.tar.gz: 5ab250ff8f9f93440f6aee45e54ec4dda4ab08bf
3
+ metadata.gz: ba5af384e71d5a73c26a5912b5f0da009f8c5d83
4
+ data.tar.gz: 36fdb1314c82ebff71457cd677737a5753ab6b46
5
5
  SHA512:
6
- metadata.gz: 30a6a0dac309ceacc91baba4d8a07c6b27ccc81336d06f82bf82c4bebd47800784d598370bf82122098c480f0ccb33770a22b6f3ac908791de9234ea3ab9dae3
7
- data.tar.gz: 18e6debe22d457ed40e4f842ea43e99c806928c47f4ce91ca93811e03bbc152c56b975a9f8490e2f509b4d1a97200bdef802c3ac3b7b4e37b22c1912619c014c
6
+ metadata.gz: 092315318b9941dcc880dfafcbd8bbc0b9cd7e4825d395e16df310e89b54a82ebec6512828138301bf3a70b14be161173faf9a61f794283e6207896042afb44c
7
+ data.tar.gz: c58dc1d4ad309f9c5136749f7084bf49c1b8142eb7d1f541ffd586808a141a7b12fd248952f8692da06c6b00eb0414408f3e69b189c0b987604d43e8eb92b722
data/lib/bip44/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bip44
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
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.8
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-22 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler