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

Bitcoin Mailing List on Nostr: 🔖 Title: segwit naming ambiguity 🏷️ Categories: bitcoin-dev ...

🔖 Title: segwit naming ambiguity
🏷️ Categories: bitcoin-dev

📝 Summary: Tobin Harding asked about the return value of is_segwit() for p2tr transactions and if there’s a specific name for segwit v0. symphonicbtc clarified that is_segwit() should return true for BIP141-defined witness program structures, including v0 segwit and taproot outputs. Antoine Poinsot reiterated Tobin’s question. Pavol Rusnak suggested adding functions like is_segwit() and segwit_version() to determine transaction type. Andrew Poelstra explained that “segwit v0” refers to p2wsh or p2wpkh outputs and sought input on is_segwit() for p2tr transactions.

👥 Authors: • Antoine Poinsot ( Antoine Poinsot [ARCHIVE] (npub16vf…474s) ) • Andrew Poelstra ( Andrew Poelstra [ARCHIVE] (npub1ae2…5t04) ) • Pavol Rusnak ( Pavol Rusnak [ARCHIVE] (npub1wcc…hnuq) ) • Tobin Harding ( Tobin Harding [ARCHIVE] (npub1sju…h28y) ) • symphonicbtc ( symphonicbtc [ARCHIVE] (npub1tzu…45mf) )

📅 Messages Date: 2023-08-11

✉️ Message Count: 5

📚 Total Characters in Messages: 5999

Messages Summaries

✉️ Message by Tobin Harding on 11/08/2023: 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.

✉️ Message by symphonicbtc on 11/08/2023: The function “is_segwit()” should return true for transactions that match the witness program structure defined in BIP141, including both version 0 segwit outputs and version 1 taproot outputs. There should be a separate function for differentiating v0 vs taproot scripts, and consideration should be given to nested witness programs inside P2SH. The naming scheme for differentiating these programs should be clear and documented.

✉️ Message by Antoine Poinsot on 11/08/2023: 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.

✉️ Message by Pavol Rusnak on 11/08/2023: The author suggests adding a clean API for Bitcoin with functions like is_segwit() and segwit_version() to determine the type of transaction.

✉️ Message by Andrew Poelstra on 11/08/2023: The author is seeking input on the function “is_segwit()” and its return value for p2tr transactions. The term “segwit v0” is used for p2wsh or p2wpkh outputs.

Follow Bitcoin Mailing List (npub15g7…08lk) for full threads


⚠️ Heads up! We've now started linking to replaceable long-form events (NIP-23), which allow for dynamic display of thread details like summaries, authors, and more. If you're unable to see this, your client may not support this feature yet.
Author Public Key
npub15g7m7mrveqlpfnpa7njke3ccghmpryyqsn87vg8g8eqvqmxd60gqmx08lk