What is Nostr?
Tobin Harding [ARCHIVE] /
npub1sju…h28y
2023-08-12 09:56:44
in reply to nevent1q…0wnq

Tobin Harding [ARCHIVE] on Nostr: 📅 Original date posted:2023-08-11 🗒️ Summary of this message: The author is ...

📅 Original date posted:2023-08-11
🗒️ Summary of this message: The author is asking for clarification on the expected return value of the function `is_segwit()` for a p2tr transaction and if there is an official name for segwit v0.
📝 Original message:
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.
Author Public Key
npub1sjul23khr55e77kqjwk78k329gvvz97ynuzx92zkppxc7xnyyt9s5uh28y