Here is a guide explaining how you can do this in Riecoin-Qt. You should be able to figure out if you are using command line, but you can still ask if unsure.
Firstly, check if you are not already using Descriptor Wallets. For this, you must use Use Riecoin Core 22.03 or more recent. In Windows > Console, type "getwalletinfo", and if you see the mentions ""format": "sqlite" and ""descriptors": true", you are good. Do that for all you wallets in the top left drop down list.
Otherwise, it means that you have a Legacy Wallet that should be moved. Here is one way to move funds to a Descriptor Wallet.
- Use Riecoin Core 22.03 or more recent;
- Go to File > Create Wallet;
- Give a name to the new wallet, leave the Disable Private Keys and Make Blank Wallet options unchecked;
- The new wallet will be created and you should be able to access it via the Overview page's top right Drop Down List (and you should also see your old wallet(s));
- Select your new wallet in the Drop Down List. You will see 0 RIC in this wallet, this is normal;
- Go to the "Receive" page and click on the "Create new receiving address" button. Copy-paste the new Riecoin address somewhere;
- Select an old wallet in the Drop Down List, and send all your coins to this new address. Repeat this with any wallet your had (you can of course also create more addresses or more Descriptor Wallets, just remember to not forget to select the correct wallet).
You now successfully moved your funds to a Descriptor Wallet. Be sure that you never use any address from old wallets again. Then, you can close old wallets by selecting them and doing File > Close Wallet, close Riecoin Core, and delete their files (be careful to not delete the wrong files).
If for some reason, you want to reuse an existing Bech32 address, this becomes a bit more complicated. You can dump the private key of an address from a Legacy Wallet by going to Windows > Console, choosing the right wallet in the top left Drop Down List, and executing the command
Code: Select all
dumpprivkey ric1...
Then, create if needed a new Descriptor Wallet, choose it in the console's Drop Down List, and get the Descriptor Checksum using
Code: Select all
getdescriptorinfo "wpkh(...)"
Code: Select all
importdescriptors '[{"desc": "wpkh(...)#checksum", "timestamp":0}]'
In a Descriptor Wallet, you can retrieve your Private Descriptors by running
Code: Select all
listdescriptors true