Why Nostr? What is Njump?
2023-08-12 09:56:45
in reply to

Antoine Poinsot [ARCHIVE] on Nostr: šŸ“… Original date posted:2023-08-11 šŸ—’ļø Summary of this message: Tobin is asking ...

šŸ“… Original date posted:2023-08-11
šŸ—’ļø Summary of this message: Tobin is asking if the function `is_segwit()` would return true or false for a P2TR transaction and if there is a better name for Segwit v0.
šŸ“ Original message:
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 at 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 at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
Author Public Key
npub16vff727dhdzcwqcnnqz7erguvtyvpamm2nms8y2lw36qtvpnq48sen474s