How to dynamically generate bitcoin receive address with a Nano Ledger S?

0

Is there a way for me to create an app for only my personal use, on my iPhone, that would create a valid receive address for my Nano Ledger S? I know that all of the address are derived from a master key, is there a way for me to determine what the master key is, and create software to create my own valid addresses?

I am looking for a way to easily accept BTC in person, with a new address, without having to carry a hardware wallet around.

Childishforlife

Posted 2018-05-09T18:26:32.177

Reputation: 211

Not really an answer: but depending on how often you need to accept a payment, you could just generate a bunch of receiving addresses on your ledger ahead of time, and then save them to your phone somehow (email, notes, etc). Your idea is certainly possible though; look up extended public keys (xpub keys).chytrik 2018-05-09T18:32:23.027

Thanks for the suggestion! Yeah I have a couple I have saved, but I thought the Nano needed to receive something on the address before generating a new one?Childishforlife 2018-05-09T18:44:37.773

I believe you could work around that issue by just creating many new ‘accounts’ on your ledger. Each will show a unique address. I believe you can also find an ‘export xpub key’ command in the settings.chytrik 2018-05-09T18:52:10.053

That is perfect, that is exactly what I need. If I can export the master public key I can make my own! Thanks.Childishforlife 2018-05-09T18:56:33.767

Answers

1

You can export your extended public key from the ledger app, by finding the appropriate command in the settings menu. Using the xpub and appropriate software, you can generate many receiving addresses that can be stored on your phone.

Alternatively, you can create many new ‘accounts’ in the ledger bitcoin app, and each will show you a unique address that you could copy to a text file on your phone. (This is a workaround to ledger only showing one receiving address at a time otherwise).

(Originally a comment, but it kinda turned into an answer)

chytrik

Posted 2018-05-09T18:26:32.177

Reputation: 10 276