Skip to content

mu373/master-fingerprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xfp: master fingerprint

Reproduce master fingerprint from XPUB

Overview

Most wallet software provides 8-digit hex identifiers for each wallet. This is officially defined as a "key fingerprint" in BIP32, and is often labeled as a "master fingerprint" in major wallet hardware/software (e.g., COLDCARD and Sparrow). With this short identifier, you can easily ensure that you are accessing the intended wallet, for example, the wallet with the correct BIP39 passphrase.

The master fingerprint shown in COLDCARD is derived from the top-level (m/) master xpub, regardless of your choice of wallet systems such as Native Segwit (BIP-84). If you want to reproduce the master fingerprint from xpub by yourself, you can do so with this script.

Steps

  • Export Generic JSON wallet file from COLDCARD (link)
    • Note that xpub shown in Sparrow wallet is for a specific wallet system (e.g., Native Segwit). This is different from the xpub of the root path.
  • Copy the xpub from the root level, not for individual wallet systems
  • Paste the xpub in the script
  • Run the script: node fingerprint.js

Usage

npm install
vim fingerprint.js # Edit xpub
node fingerprint.js

License

MIT