lib/bip44/wallet.rb in bip44-0.2.6 vs lib/bip44/wallet.rb in bip44-0.2.7
- old
+ new
@@ -23,9 +23,14 @@
def self.from_xpub(xpub)
wallet_node = MoneyTree::Node.from_bip32(xpub)
Wallet.new(wallet_node)
end
+ def self.from_xprv(xprv)
+ wallet_node = MoneyTree::Node.from_bip32(xprv)
+ Wallet.new(wallet_node)
+ end
+
def xpub
@wallet_node.to_bip32
end
def xprv