I'm trying to test P2TR with Bitcoin Core, and I don't know how to get taproot addresses.
How should I create them using 22.0?
-
1If you want to experiment with taproot on testnet until it's available in a release: bitcoin.stackexchange.com/questions/108006/…– user103136Commented Nov 11, 2021 at 16:46
-
1You can experiment on testnet with existing releases e.g. Core 22.0. It just requires importing a descriptor rather than address generation from within the Core wallet.– Michael FolksonCommented Nov 11, 2021 at 16:54
-
Right, the steps also were tried on Bitcoin Core. I can't edit the comment but until everything is available and easy to do, those steps can be used to experiment with taproot.– user103136Commented Nov 12, 2021 at 7:54
1 Answer
This functionality in the Bitcoin Core wallet has deliberately not been merged pre activation to prevent users from easily generating and giving out Taproot addresses prior to the Taproot rules being enforced.
You can get around this by importing a Taproot descriptor into the wallet prior to this PR being merged as described here, here, here or here but that does require you to generate a private, public key pair outside of the Core wallet (or use an existing test vector but don't send to this on mainnet). Unless you know what you are doing I would wait until the Core wallet supports easy generation of Taproot addresses with e.g. the getnewaddress
RPC for mainnet Taproot address generation.