Tuesday, October 1, 2024

bitcoind – How do I get the non-public key of an tackle in descriptor wallets? Easy methods to dumpprivkey?

Grasp non-public keys for the pockets will be retrieved through the use of listdescriptors true and inspecting the output. There’s additionally some ongoing work to make it simpler to export these keys with out having to interpret a descriptor.


Authentic reply from Aug 2021

It’s presently not potential to export non-public keys from a descriptor pockets.

There’s presently an open pull request which permits the listdescriptors command to optionally return descriptors with non-public keys. This would be the methodology by which non-public keys will be exported from a descriptor pockets.

Observe that solely the grasp non-public key utilized in a descriptor can be allowed to be exported from descriptor wallets. It’s because descriptor wallets can be utilizing unhardened derivation for the kid keys and there’s a recognized subject the place having the guardian xpub and a toddler key derived with unhardened derivation will permit the guardian xprv to be computed. So to be clear to customers that what they’re doing is doubtlessly unsafe, we’ll solely permit exporting the grasp non-public key (it’s extra clearly unsafe when you have got the grasp non-public key as customers are unlikely to find out about this weak spot and might imagine that giving out little one keys and the guardian xpub is protected).

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles