Hey Tobin,

I would assume `is_segwit()` is true for P2TR, since Taproot is Segwit.

I'm not aware of a different term for "is P2WPKH or P2WSH" that "is Segwit v0". 
Maybe look into Murch's BIP about wording? He could have a better name for 
Segwit v0 there.

Cheers,
Antoine


------- Original Message -------
On Friday, August 11th, 2023 at 6:45 AM, Tobin Harding via bitcoin-dev 
<bitcoin-dev@lists.linuxfoundation.org> wrote:


> Question for OG bitcoin API designers please.
> 
> If you were to see the following function
> 
> `is_segwit()`
> 
> would you assume it returns `true` or `false` for a p2tr transaction?
> 
> 
> Currently we (rust-bitcoin) are being liberal with the use of `v0` but
> its a pretty ugly. Is there an official, or widely used, name for segwit v0?
> 
> 
> Thanks,
> Tobin.
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev

Reply via email to