pull down to refresh
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?
reply
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?
Yes.
But wouldn't it be really hard to get the "private key to a single address derived from the xpub"?
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 would you do that without actually having access to the full extended private key?
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
reply
Got it. Thanks!
reply
xpub
, I am assuming you mean "eXtended public key`, per BIP-0032.Private key == Secret key
- it's the same thing. I'll stick toprivate
to reduce confusion now.xpub
, and thexpub
itself, 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".