For study purposes I have the private key, public key and P2SH
Address with redemption script and RIPEMD160
. The address string has been saved. address_P2SH.txt
.
We updated Bitcoin Core to version 26, and starting with version 0.21, Bitcoin uses descriptor wallets. Now unavailable importaddress
Because basically createwallet
Use descriptors.
ADDR_P2SH=`cat address_P2SH.txt`
bitcoin-cli importaddress $ADDR_P2SH
I know I can use descriptor=false
while createwallet
But I would like to know if I can migrate my “external” address to a descriptor and then sign the transaction. signrawtransactionwithwallet
. You can’t use it unless you make a mistake signrawtransactionwithkey
This is because the descriptor no longer allows importing the private key, only the master private key. This is true even if you have the private key from an external address.