Hi Guys,
I created a watch only wallet and using the ColdCard generated importmulti command to generate Bech32 addresses. All good.
Unfortunately ColdCard is not producing/has BIP44 address commands as an option
hence I have to do it manually.
I have the XPUB and I run the getdescriptorinfo to get the hashes than importmulti (Testnet).
Problem is:
Generated addresses seem to be incorrect
, ColdCard refuses to sign "BIP32 path doesn't match actual address".
What I changed from original BIP84 ColdCard generated text is in red.
I use pkh instead of wpkh and use 44h instead of 84h.
Any idea how should I import an XPUB to get BIP44 addresses (or better yet what am I doing wrong below)?
Thanks
Modified 44 Main
getdescriptorinfo "
pkh([c09dbfcb/
44h/
1h/0h]tpubDDrejUjS6BXjB2MQBpzxVqED68xiooU7bSHB1qavnUHA5M1gnoNxy8k6UubVoGLgSM28bnTnexc
NDg874eVpDVUaPDKyKtA8sD1DZwuhKar/0/*)"
{
"descriptor": "pkh([c09dbfcb/44'/1'/0']tpubDDrejUjS6BXjB2MQBpzxVqED68xiooU7bSHB1qavnUHA5M1gnoNxy8k6UubVoGLgSM28bnTnexc
NDg874eVpDVUaPDKyKtA8sD1DZwuhKar/0/*)#xmx56jg3",
"checksum": "42etqglj",
"isrange": true,
"issolvable": true,
"hasprivatekeys": false
}
Modified 44 Change
getdescriptorinfo "
pkh([c09dbfcb/
44h/
1h/0h]tpubDDrejUjS6BXjB2MQBpzxVqED68xiooU7bSHB1qavnUHA5M1gnoNxy8k6UubVoGLgSM28bnTnexc
NDg874eVpDVUaPDKyKtA8sD1DZwuhKar/1/*)"
{
"descriptor": "pkh([c09dbfcb/44'/1'/0']tpubDDrejUjS6BXjB2MQBpzxVqED68xiooU7bSHB1qavnUHA5M1gnoNxy8k6UubVoGLgSM28bnTnexc
NDg874eVpDVUaPDKyKtA8sD1DZwuhKar/1/*)#h0r488cf",
"checksum": "y7u2aa02",
"isrange": true,
"issolvable": true,
"hasprivatekeys": false
}
importmulti '[{"range": [0, 199], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "pkh([c09dbfcb/44h/1h/0h]tpubDDrejUjS6BXjB2MQBpzxVqED68xiooU7bSHB1qavnUHA5M1gnoNxy8k6UubVoGLgSM28bnTnexc
NDg874eVpDVUaPDKyKtA8sD1DZwuhKar/0/*)#42etqglj", "internal": false}, {"range": [0, 199], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "pkh([c09dbfcb/44h/1h/0h]tpubDDrejUjS6BXjB2MQBpzxVqED68xiooU7bSHB1qavnUHA5M1gnoNxy8k6UubVoGLgSM28bnTnexc
NDg874eVpDVUaPDKyKtA8sD1DZwuhKar/1/*)#y7u2aa02", "internal": true}]'
[
{
"success": true
},
{
"success": true
}
]