You can do so (
for testing purposes only) by following the same derivation path used in the descriptor and using your master private key as "
BIP32 Root Key" in IanColeman's BIP39 Tool.
You can set the derivation path in "
BIP32" tab, Custom Derivation path; "
m" represents that master private key, the ' signs or "
h" (
in Core) represent hardened derivation.
The prvikeys are derived same way as other address types, the derivation path may differ depending on the client.
The address generation however is different, here's the spec:
https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki Following @nc50lc's tip I did the following:
!!!Attention!!!, for Satoshi's sake, NEVER DO THE PROCEDURES BELOW IF YOU DON'T ABSOLUTELY KNOW WHAT YOU ARE DOING[/b], unless it is strictly necessary or for technical learning purposes.
Never send coins if you created a wallet using the procedures below without knowing what you are doing, no one here will be responsible any losses or any user error made.
The entire wallet generation procedure on the IanColeman page must be done Offline on an airgapped computer.
I created a new test mnemonic:
With the corresponding keys/addresses
BIP44,
BIP49 and
BIP84:
To obtain the
P2TR address keys, I just copy the
BIP86 derivation path below and paste it into the
BIP32 tab under BIP32 Derivation Path:
m/86'/0'/0'/0/0
Below we'll see the private keys of the taproot addresses, however we'll see them with the legacy addresses.
Explanation: for those who don't know, a
compressed private key can generate addresses for different scripts such as P2PKH, P2SH-P2WPKH and P2WPKH), iancoleman does not support P2TR, which is why it's showing addresses for other scripts.
We can do the same process in the
BIP141 tab only, again, replacing the Derivation Path to: m/86'/0'/0'/0
Note that the script is different, but the WIF private keys will be the same.
Using
another tool, you will see that these BIP86 keys are actually taproot addresses:
If you created your wallet in Core or Electrum, you'll not be able to use
this tool, as it only accepts inserting mnemonics, not mater private keys, so only in the iancoleman tool will you be able to obtain your Core private keys (if your wallet is descriptor). For wallets created in Electrum, the derivation path is another, as electrum does not create bip39 wallets).
Attention: as the Core does not create mnemonics, the procedure must be done with xpriv, inserting it in
BIP32 RootKey on IanColeman. Other than that, the procedure is the same.
Thank you @pooya87 and @nc50lc!