When I importdescriptors
to another bitcoin core wallet using the descriptor shown in the bitcoin core, the descriptor with hardened character can not used directly.
example: importdescriptors '[{ "desc": "pkh(tpubD92TWW3UxPVt7kL1JwM6pQLqiYUotoKH5TfaKftUCtk7FkRr2iMyrKyqKr7ixPdisMZXdxQUBn2qU1X4fZyCDcYLfibLhxUjCPXiNHp6vb1/0')#vq6m7zrg", "timestamp":"now", "internal": true }]'
bitcoin core-QT console shows error: Error: Invalid command line
bitcoin-cli
in command line shows this error: -bash: syntax error near unexpected token `)’
I have to convert '
to h
and regenerate checksum by hand,to this:
pkh(tpubD92TWW3UxPVt7kL1JwM6pQLqiYUotoKH5TfaKftUCtk7FkRr2iMyrKyqKr7ixPdisMZXdxQUBn2qU1X4fZyCDcYLfibLhxUjCPXiNHp6vb1/0h)#r7w93wm7
The bitcoin core shows descriptors’ hardened character all use '
, and the descriptor often uses importdescriptors
RPC, but it’s very inconvenient to use in practice. Is it possible to make bitcoin core shows the descriptors’ hardened character as h
?