paytotaproot
Pay-to-Taproot (P2TR) is a Bitcoin transaction output type introduced with the Taproot upgrade (BIP341) and activated in 2021. It enables spending conditions to be satisfied either through a key-path spend using Schnorr signatures or through a script-path spend using tapscript, while concealing the underlying scripts unless a script path is actually used. This design aims to improve privacy, efficiency, and flexibility for complex spending conditions.
The P2TR output uses a version 1 witness program with a 32-byte program. This 32-byte value encodes
Bech32m addresses are used for P2TR on mainnet, and they begin with bc1p. These addresses benefit from
Adoption and considerations: P2TR has broad support among modern wallets and nodes that implement Taproot, Bech32m,