Is it possible to check if a bitcoin address "belongs to" a master public key from a deterministic wallet?

5

Let's say I have a Master Public Key (MPK) and have a derived some addresses from it.

How can I check later if a given address was derived from my MPK?

Robert-Reinder Nederhoed

Posted 2014-06-23T10:08:32.293

Reputation: 176

Answers

2

No, except by exhaustively iterating the whole derivation tree below the master.

Pieter Wuille

Posted 2014-06-23T10:08:32.293

Reputation: 54 032

0

After I generate the Master-wallet I use the MPK to generate the sub-wallet and the fingerprint and chaincode seems to point to the right master-wallet. I tried using the salt (brain-wallet style) to generate the sub-wallets and this did not match up to the fingerprint or the chain code. hope this works

gAtOmAlO

Posted 2014-06-23T10:08:32.293

Reputation: 9

0

That's not possible with an address only. You need the exact path to the address to generate it. Also make sure what kind of MPK you have, a BIP32 vs BIP44.

Penquin

Posted 2014-06-23T10:08:32.293

Reputation: 609