lib/bip44/wallet.rb in bip44-0.2.14 vs lib/bip44/wallet.rb in bip44-0.2.16

- old
+ new

@@ -40,11 +40,16 @@ def xprv @wallet_node.to_bip32(:private) end - def private_key + def private_key(wif: true) + return @wallet_node.private_key.to_wif if wif == true @wallet_node.private_key.to_hex + end + + def public_key + @wallet_node.public_key.uncompressed.to_hex end private def initialize(wallet_node)