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-devPublished at
2023-08-12 09:56:45Event JSON
{
"id": "fbeb002b1276ee2c124a1d1beb53582cae257f9021fd58409718a4ea00e0184a",
"pubkey": "d3129f2bcdbb458703139805ec8d1c62c8c0f77b54f703915f747405b033054f",
"created_at": 1691834205,
"kind": 1,
"tags": [
[
"e",
"64ca1bd3fbb204c1049c0bc82688fa0a61c9ecff2f6316123a3f7b3f057b0127",
"",
"root"
],
[
"e",
"101ec45f95909361dc22d7ec7788148f88cd09fd92cac3826799d9e53c4c8cf1",
"",
"reply"
],
[
"p",
"58b97713abc0e7cc1096f3d69a02d15a0b357385a84c02fab5c8732e70404d06"
]
],
"content": "š
Original date posted:2023-08-11\nšļø 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.\nš Original message:\nHey Tobin,\n\nI would assume `is_segwit()` is true for P2TR, since Taproot is Segwit.\n\nI'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.\n\nCheers,\nAntoine\n\n\n------- Original Message -------\nOn Friday, August 11th, 2023 at 6:45 AM, Tobin Harding via bitcoin-dev \u003cbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\n\n\u003e Question for OG bitcoin API designers please.\n\u003e \n\u003e If you were to see the following function\n\u003e \n\u003e `is_segwit()`\n\u003e \n\u003e would you assume it returns `true` or `false` for a p2tr transaction?\n\u003e \n\u003e \n\u003e Currently we (rust-bitcoin) are being liberal with the use of `v0` but\n\u003e its a pretty ugly. Is there an official, or widely used, name for segwit v0?\n\u003e \n\u003e \n\u003e Thanks,\n\u003e Tobin.\n\u003e _______________________________________________\n\u003e bitcoin-dev mailing list\n\u003e bitcoin-dev at lists.linuxfoundation.org\n\u003e https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev",
"sig": "27cfef4e075e9e65578eb62100a93dc71d43d17a3f2618e9cd52a8fd52eb53209775721694e9f545f5d91a6cb565b29a77a3ab8f7e3bbbf40683419fa1f498c1"
}