Understanding Fingerprints in XPUBs

7 replies 213 views
jake.novaSenior Member
Posts: 7 · Reputation: 1556
#1Mar 8, 2018, 03:10 PM
So what’s the deal with the 5183a8d8 in this xpub? Is that the fingerprint?
3 Reply Quote Share
0xChadNewbie
Posts: 186 · Reputation: 3
#2Mar 8, 2018, 04:19 PM
You need to hash the compressed public key of the ECDSA private key. The fingerprint can't be pulled from just an extended public key, though.
1 Reply Quote Share
jake.novaSenior Member
Posts: 7 · Reputation: 1556
#3Mar 8, 2018, 04:43 PM
Here's how to do it: 1. Get the base58 encoded tprv 2. Extract the master private key Boom, you get your master fingerprint.
2 Reply Quote Share
0xChadNewbie
Posts: 186 · Reputation: 3
#4Mar 8, 2018, 08:25 PM
But your code is using an Extended Private Key from that path. Fingerprint is different. You need the master private key.
2 Reply Quote Share
jake.novaSenior Member
Posts: 7 · Reputation: 1556
#5Mar 10, 2018, 05:44 PM
Wait, so you're saying the final value is wrong? I thought it was right.
3 Reply Quote Share
jake.novaSenior Member
Posts: 7 · Reputation: 1556
#6Mar 10, 2018, 07:28 PM
Are there multiple private keys involved in this process?
1 Reply Quote Share
jake.novaSenior Member
Posts: 7 · Reputation: 1556
#7Mar 10, 2018, 09:20 PM
Thanks for the info! Just tested it and got 133a3b3.
3 Reply Quote Share
0xChadNewbie
Posts: 186 · Reputation: 3
#8Mar 10, 2018, 10:43 PM
Just to clarify, the keys below the master are child keys. If you derive from them, you get extended private keys. The master fingerprint comes from the master private key, not from child keys.
4 Reply Quote Share

Related topics