Tuesday, October 1, 2024

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

Grasp non-public keys for the pockets might be retrieved through the use of 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.


Unique reply from Aug 2021

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

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

Observe 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 recognized difficulty 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 are going to solely enable exporting the grasp non-public key (it’s extra clearly unsafe when you could have the grasp non-public key as customers are unlikely to find out 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