Friday, November 22, 2024

bitcoind – How do I get the personal key of an deal with in descriptor wallets? Methods to dumpprivkey?

Grasp personal keys for the pockets might be retrieved by utilizing listdescriptors true and inspecting the output. There may be 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 at present not attainable to export personal keys from a descriptor pockets.

There may be at present an open pull request which permits the listdescriptors command to optionally return descriptors with personal keys. This would be the technique by which personal keys might be exported from a descriptor pockets.

Notice that solely the grasp personal key utilized in a descriptor will likely be allowed to be exported from descriptor wallets. It’s because descriptor wallets will likely be utilizing unhardened derivation for the kid keys and there’s a recognized problem the place having the mum or dad xpub and a baby key derived with unhardened derivation will enable the mum or dad xprv to be computed. So to be clear to customers that what they’re doing is doubtlessly unsafe, we’ll solely enable exporting the grasp personal key (it’s extra clearly unsafe when you’ve got the grasp personal key as customers are unlikely to learn about this weak point and might imagine that giving out youngster keys and the mum or dad xpub is protected).

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles