Sometimes we want to backup our private keys from Bitcoin Core using the dumpprivkey command, but it fails because it only supports legacy wallets and does not support descriptor wallets. The solution to this is as follows:
Thank you for posting this here. I think there is a lack of software that calculates addresses independently of the core client. There is the Ian Coleman tool. See:
https://github.com/iancoleman/bip39But the tool does not support taproot, for example. It would be fantastic if there was an easy-to-use tool for this too.
I absolutely understand that you want to check the calculations twice. But let's assume we trust the core client and the math.
Why don't you simply save the output of
listdescriptors true
I have already used it to completely restore wallets (as a test). It can also be encrypted. Linux command line:
# Export your xprv descriptors:
bitcoin-cli -rpcwallet="yourWallet" listdescriptors true > listdescriptors_true.txt
# This compresses the redundant text file by a factor of about 6:
gzip listdescriptors_true.txt
# -> listdescriptors_true.txt.gz
# Now we encrypt the compressed file:
openssl aes-256-cbc -a -salt -pbkdf2 -in listdescriptors_true.txt.gz -out listdescriptors_true.txt.gz.enc
# Enter passphrase twice
# Done! Safe listdescriptors_true.txt.gz.enc wherever you like.
And it fits easily into a QR code.
# Now let's build the QR code:
base64 listdescriptors_true.txt.gz.enc > listdescriptors_true.txt.gz.enc.b64
qrencode -s5 -r listdescriptors_true.txt.gz.enc.b64 -o listdescriptors_true.txt.gz.enc.b64.png
Output QR code on screen:
display listdescriptors_true.txt.gz.enc.b64.png
You can of course also print out the QR code.
That's just an idea. And quite independently of that, I find your project very useful.