Skip to content

Commit e0c27dc

Browse files
committed
Add xprv xpub methods
1 parent 53ea577 commit e0c27dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/ethereum_tree/node.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,13 @@ def private_key
3131
def node_for_path(path)
3232
Node.new(@wallet_node.node_for_path(path))
3333
end
34+
35+
def xpub
36+
@wallet_node.to_bip32
37+
end
38+
39+
def xprv
40+
@wallet_node.to_bip32(:private)
41+
end
3442
end
3543
end

0 commit comments

Comments
 (0)