output script descriptors – The hardened character doesn’t work immediately with bitcoin core importdescriptors RPC – CoinNewsTrend

output script descriptors – The hardened character doesn’t work immediately with bitcoin core importdescriptors RPC


After I importdescriptors to a different Bitcoin Core pockets utilizing the descriptor proven in Bitcoin Core, the descriptor with hardened character cannot be used immediately.

instance: importdescriptors '[ "desc": "pkh(tpubD92TWW3UxPVt7kL1JwM6pQLqiYUotoKH5TfaKftUCtk7FkRr2iMyrKyqKr7ixPdisMZXdxQUBn2qU1X4fZyCDcYLfibLhxUjCPXiNHp6vb1/0')#vq6m7zrg", "timestamp":"now", "internal": true ]'

The Bitcoin-QT console reveals error: Error: Invalid command line

bitcoin-cli in command line reveals this error: -bash: syntax error close to surprising token )’`

I’ve to transform ' to h and regenerate checksum by hand,to this:

pkh(tpubD92TWW3UxPVt7kL1JwM6pQLqiYUotoKH5TfaKftUCtk7FkRr2iMyrKyqKr7ixPdisMZXdxQUBn2qU1X4fZyCDcYLfibLhxUjCPXiNHp6vb1/0h)#r7w93wm7

Bitcoin Core reveals descriptors’ hardened character all use ', and the descriptor usually makes use of importdescriptors RPC, but it surely’s very inconvenient to make use of in follow. Is it attainable to make Bitcoin Core present the descriptors’ hardened character as h?



Supply hyperlink