Friday, November 22, 2024

bitcoind – How do I get the non-public key of an handle in descriptor wallets? Find out how to dumpprivkey?

Grasp non-public keys for the pockets will be retrieved by utilizing 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.


Unique reply from Aug 2021

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

There’s at the moment 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.

Word that solely the grasp non-public key utilized in a descriptor might be allowed to be exported from descriptor wallets. It is because descriptor wallets might be utilizing unhardened derivation for the kid keys and there’s a identified challenge the place having the guardian xpub and a toddler key derived with unhardened derivation will enable the guardian xprv to be computed. So to be clear to customers that what they’re doing is probably unsafe, we’ll solely enable exporting the grasp non-public key (it’s extra clearly unsafe when you will have the grasp non-public key as customers are unlikely to learn about this weak spot and might imagine that giving out baby keys and the guardian xpub is secure).

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles