Conversation Details on Nostr: 📝 Summary: Tobin Harding asked about the return value of `is_segwit()` for p2tr ...
📝 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
Published at
2023-08-12 09:56:44Event JSON
{
"id": "afbb2ea80a630320e497319b401b56442fee934ae1656def814843ef43ed200d",
"pubkey": "57fe4c4ae74215fb92bd0dcb8a7787c5e907db74e987f30f1acaaad9c3a0271f",
"created_at": 1691834204,
"kind": 30023,
"tags": [
[
"d",
"10906d05-2564-4926-8ea2-7101868fe402"
],
[
"title",
"Conversation Details"
],
[
"image",
"https://nostr.build/i/dbc5bd7993c8d036431edeefea63a2b3b796e1f49baf96bf6b09e13c8c662833.jpg"
],
[
"p",
"d3129f2bcdbb458703139805ec8d1c62c8c0f77b54f703915f747405b033054f"
],
[
"p",
"ee55eb03423bd4db01d5c92ad434d52c602d9da1de37ed37cc5bf7d2a13a4cab"
],
[
"p",
"7631397e469f47f3535567311f5f7c17129e0ff2cb253df015e3d92ddfd92c63"
],
[
"p",
"84b9f546d71d299f7ac093ade3da2a2a18c117c49f0462a856084d8f1a6422cb"
],
[
"p",
"58b97713abc0e7cc1096f3d69a02d15a0b357385a84c02fab5c8732e70404d06"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📝 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.\n\n👥 Authors: \n• Antoine Poinsot ( nostr:npub16vff727dhdzcwqcnnqz7erguvtyvpamm2nms8y2lw36qtvpnq48sen474s )\n• Andrew Poelstra ( nostr:npub1ae27kq6z802dkqw4ey4dgdx493szm8dpmcm76d7vt0ma9gf6fj4svz5t04 )\n• Pavol Rusnak ( nostr:npub1wccnjljxnarlx564vuc37hmuzuffurljevjnmuq4u0vjmh7e933sn3hnuq )\n• Tobin Harding ( nostr:npub1sjul23khr55e77kqjwk78k329gvvz97ynuzx92zkppxc7xnyyt9s5uh28y )\n• symphonicbtc ( nostr:npub1tzuhwyatcrnucyyk70tf5qk3tg9n2uu94pxq9744epejuuzqf5rqw445mf )\n\n📅 Messages Date: 2023-08-11\n\n✉️ Message Count: 5\n\n📚 Total Characters in Messages: 5999\n\n## Messages Summaries\n\n✉️ Message by Tobin Harding on 11/08/2023:\nThe 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.\n\n✉️ Message by symphonicbtc on 11/08/2023:\nThe 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.\n\n✉️ Message by Antoine Poinsot on 11/08/2023:\nTobin 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.\n\n✉️ Message by Pavol Rusnak on 11/08/2023:\nThe author suggests adding a clean API for Bitcoin with functions like `is_segwit()` and `segwit_version()` to determine the type of transaction.\n\n✉️ Message by Andrew Poelstra on 11/08/2023:\nThe 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.\n\n\nFollow nostr:npub15g7m7mrveqlpfnpa7njke3ccghmpryyqsn87vg8g8eqvqmxd60gqmx08lk for full threads",
"sig": "51a8312562afbe205380d7b4bf0a52496b52dc4208e9b51e6ff1599bf806077cbb2e544c3e71eaad54f76c27ffb10694463b422f840e571ec942cf4716e025d6"
}