coldcore icon indicating copy to clipboard operation
coldcore copied to clipboard

setup fails to read xpub from public.txt generated by coldcard q

Open alexmat opened this issue 4 months ago • 1 comments

 ◰  waiting for public.txt 
 !  error parsing public.txt contents
 !  check your public.txt file and try this again, or file a bug:
 !    github.com/jamesob/coldcore/issues

Traceback (most recent call last):
  File "./coldcore", line 980, in run_setup
    wallet = CCWallet.from_io(io.StringIO(pubfile.read_text()), rpc)
  File "./coldcore", line 2432, in from_io
    raise ValueError("couldn't find xpub path")
ValueError: couldn't find xpub path

relevant section of public.txt

## Top-level, 'master' extended public key ('m/'):

xpub***

What follows are derived public keys and payment addresses, as may
be needed for different systems.


## For BIP-44 / Electrum: m/44h/0h/{account}h/{change}/{idx}

First 5 receive addresses (account=0, change=0):

m/44h/0h/0h => xpub***

## For BIP-49 (P2WPKH-nested-in-P2SH): m/49h/0h/{account}h/{change}/{idx}

First 5 receive addresses (account=0, change=0):

m/49h/0h/0h => xpub***
m/49h/0h/0h => ypub***

## For BIP-84 (Native Segwit P2WPKH): m/84h/0h/{account}h/{change}/{idx}

First 5 receive addresses (account=0, change=0):

m/84h/0h/0h => xpub***
m/84h/0h/0h => zpub***   ##SLIP-132##
m/84h/0h/0h/0/0 => ...

alexmat avatar Apr 26 '24 10:04 alexmat