Bitcoin Forum
May 02, 2024, 04:54:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Export as watch only  (Read 112 times)
takuma sato (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 417


View Profile
November 22, 2021, 04:25:55 AM
Merited by bitmover (1)
 #1

Is there a way to export a wallet that has 1000's of different addresses as a "watch only" wallet? Perhaps it would be a good idea to have a new file format, like wallet.wol (watch only wallet), and this would be all your public keys that can then be imported as watch only on your online laptop. Similar to how .psbt file makes things easier, this would be the same. The goal is to minimize command line usage and automate these things because you can screw up by accident specially if dealing with tons of addresses.
1714668877
Hero Member
*
Offline Offline

Posts: 1714668877

View Profile Personal Message (Offline)

Ignore
1714668877
Reply with quote  #2

1714668877
Report to moderator
1714668877
Hero Member
*
Offline Offline

Posts: 1714668877

View Profile Personal Message (Offline)

Ignore
1714668877
Reply with quote  #2

1714668877
Report to moderator
1714668877
Hero Member
*
Offline Offline

Posts: 1714668877

View Profile Personal Message (Offline)

Ignore
1714668877
Reply with quote  #2

1714668877
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
NeuroticFish
Legendary
*
Offline Offline

Activity: 3654
Merit: 6371


Looking for campaign manager? Contact icopress!


View Profile
November 22, 2021, 08:48:41 AM
Merited by bitmover (3), pooya87 (2), ABCbits (1), hosseinimr93 (1)
 #2

Is there a way to export a wallet that has 1000's of different addresses as a "watch only" wallet? Perhaps it would be a good idea to have a new file format, like wallet.wol (watch only wallet), and this would be all your public keys that can then be imported as watch only on your online laptop. Similar to how .psbt file makes things easier, this would be the same. The goal is to minimize command line usage and automate these things because you can screw up by accident specially if dealing with tons of addresses.

If the wallet you want to "export" is a HD wallet, the master public key (xPub) would do the job. You can see how this is done in Electrum in the first part of this tutorial: https://electrum.readthedocs.io/en/latest/coldstorage.html

If there are just separate addresses... I don't know a better way than making a list with those addresses (although this would be indeed unnatural).

However, I think that xPub is what you're looking for.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
bitmover
Legendary
*
Online Online

Activity: 2296
Merit: 5914


bitcoindata.science


View Profile WWW
November 22, 2021, 12:30:52 PM
Merited by NeuroticFish (3), pooya87 (2), n0nce (2)
 #3


However, I think that xPub is what you're looking for.

Xpub looks to be what the OP is looking. But you should be careful with your xpub as well.

Although XPUB is very convenient, they are also risky to be used. If one private key leeks, all private keys might be compromised.

Take a look at mastering bitcoin, where Antonopoulos explains that:

Quote
The ability to derive a branch of public keys from an extended public key is very useful, but it comes with a potential risk. Access to an extended public key does not give access to child private keys. However, because the extended public key contains the chain code, if a child private key is known, or somehow leaked, it can be used with the chain code to derive all the other child private keys. A single leaked child private key, together with a parent chain code, reveals all the private keys of all the children. Worse, the child private key together with a parent chain code can be used to deduce the parent private key.
https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch04.html

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5581


Self-proclaimed Genius


View Profile
November 23, 2021, 04:31:32 AM
Merited by n0nce (3), ABCbits (1)
 #4

Is there a way to export a wallet that has 1000's of different addresses as a "watch only" wallet? -snip-
Since the thread is not in a specific wallet software board, I assume that you're referring to Bitcoin Core.

There's a workaround but it involves using iancoleman's BIP39 tool and will not work with "Descriptor wallets".
For reference, here's the steps (Air-gap machine is recommended):
  • Use dumpwallet command to export your wallet's "extended private master key" [dumpwallet]
  • Open the dump file using a text editor to view the 'extended private master key'
  • Launch iancoleman's BIP39 tool [github.com/iancoleman/bip39]
  • Paste the 'master key' to the BIP39 tool's "BIP32 Root Key" input box.
  • Select "BIP32" under 'Derivation Path' for legacy addresses or "BIP141" for Native SegWit and P2SH-SegWit (select the correct script), then change "BIP32 Derivation Path" into m/0'/0' or m/0'/1' (change addresses)
  • Tick "Use hardened addresses" under 'Derived Addresses', then toggle: "Private Key" and "Public Key".
  • Scroll down and type 1000 (addresses) to "Show" and 0 to "starting from index" input boxes, then click "More Rows".
  • There's you'll have a list of 1000 addresses derived from your master key, you can use the "CSV" tab on top if you want to export the list.

Then use the list to create a watch-only wallet.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!