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.
Published at
2023-08-12 09:56:44Event JSON
{
"id": "2ab07f5d13a27d92d4249589e2226c057e0c74e5f17123d2e844cac9e76e35e2",
"pubkey": "84b9f546d71d299f7ac093ade3da2a2a18c117c49f0462a856084d8f1a6422cb",
"created_at": 1691834204,
"kind": 1,
"tags": [
[
"e",
"64ca1bd3fbb204c1049c0bc82688fa0a61c9ecff2f6316123a3f7b3f057b0127",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📅 Original date posted:2023-08-11\n🗒️ 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.\n📝 Original message:\nQuestion for OG bitcoin API designers please.\n\nIf you were to see the following function\n\n `is_segwit()`\n\nwould you assume it returns `true` or `false` for a p2tr transaction?\n\n\nCurrently we (rust-bitcoin) are being liberal with the use of `v0` but\nits a pretty ugly. Is there an official, or widely used, name for segwit v0?\n\n\nThanks,\nTobin.",
"sig": "f07c6cb435cb6a4ada1c010352adb70698035a8981ccd865621729c445f03469034e3a4bfeff9d963f8551456a6b908a0c5f0acc32bc5ade88636f88576e9fcd"
}