Bitcoin Taproot
Treasury natively supports Bitcoin taproot addresses and transactions. Support was added in v25.2.4
.
By default, segwit addresses will be used, but you can opt into Taproot by creating a "taproot" key first, and then deriving the address.
- CLI
- CSL
# generate a taproot key
treasury keys create my-taproot-key --algorithm taproot --internal
# derive a BTC address
treasury addresses create --key my-taproot-key BTC
# generate a taproot key
key = create internal key my-taproot-key { threshold = 2, algorithm = "taproot" }
until $key.state != "generating"
# derive a BTC address
create internal address for BTC { key = $key }
Any BTC address derived a taproot key will become a taproot address, and will be able to spend "P2TR" UTXO's.
For advanced use, see raw signing.