cryptoadvance / specter-diy

DIY airgapped hardware wallet that uses QR codes for communication with the host
MIT License
440 stars 73 forks source link

add support for wallet creation from xpubs #161

Closed stepansnigirev closed 3 years ago

stepansnigirev commented 3 years ago

Now whenever you go to the xpub screen you can save this key to SD card or create a new wallet using this key. If the key derivation follows bip84, bip49 rules DIY will recommend corresponding wallet type, but in principle you can go crazy and even use your multisig xpub in singlesig wallet (but you shouldn't...).

Also this PR adds cross-app communication that may be useful in the future development. Any app can now pretend to be a "host" and ask any other app to do something. All verification and confirmation rules still apply as for communication with the host.

Close https://github.com/cryptoadvance/specter-diy/issues/80

Next: add cosigners app that can store xpubs and derivations of your cosigners and assist in multisig wallet creation process. Creation of custom miniscript wallets is not supported in the GUI yet, but let me know if you want this.