Are there any of these around? Not bitcoin addresses, but bitcoin xpubs - public keys, from which you could create a watch-only wallet.
I'm thinking maybe from entities that want to prove that they truly own the bitcoin that they say they own?
Or from anywhere, really. I just want to experiment.
Mnemonic:
abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon aboutFor
m/84'/0'/0'/0:zpub6rFR7y4Q2AijBEqTUquhVz398htDFrtymD9xYYfG1m4wAcvPhXNfE3EfH1r1ADqtfSdVCToUG868RvUUkgDKf31mGDtKsAYz2oz2AGutZYsAh, that worked great! 219 transactions on that one.
🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓 🥓
Bacon yummy?
You generally don't want to publish these because if someone manages to get one secret key and the xpub, they can derive all the secret keys within the non-hardened keyspace.
I've always translated this to a requirement that says: xpubs still need secure and encrypted storage - but it's possible that I'm too paranoid.
Thanks for the reply.
When you say "secret key" - do you mean - if someone has the private key to the wallet? Then they'd be able to just transfer all the bitcoin to a wallet they control, right?
Or does secret key mean the key to one address, and then people could reverse engineer the private key from that one?
I'm probably just not understanding. I'm just looking for an xpub - a public key, with which you could set up a watch only wallet, and see the transactions.
When you say
xpub, I am assuming you mean "eXtended public key`, per BIP-0032.Private key == Secret key- it's the same thing. I'll stick toprivateto reduce confusion now.If someone has the private key to a single address derived from the
xpub, and thexpubitself, then they can calculate all the private keys underneath thatxpub- i.e. essentially thexprv. And yes, "your key, your coin" is also valid, so if you know the private key for any funds on chain, they are "yours".See the BIP:
Thanks for your reply. I think I should have said "Master public key" or "extended public key", right?
So, if they had this - "private key to a single address derived from the xpub" -- AND they had the extended public key, then they could figure out the extended PRIVATE key, and basically steal your bitcoin, is that right?
But wouldn't it be really hard to get the "private key to a single address derived from the xpub"? How would you do that without actually having access to the full extended private key?
Yes.
Yes, but "hard" does not equate impossible. And if you publish your extpub to prove that yes, you really have 2000 BTC, you're a target, congrats.
How it was done with bybit (#898258): trick you into signing something for 1 of the addresses, something low risk, and then just sweep the whole address range under the xpub
Got it. Thanks!