π 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] )
β’ Andrew Poelstra ( @Andrew Poelstra [ARCHIVE] )
β’ Pavol Rusnak ( @Pavol Rusnak [ARCHIVE] )
β’ Tobin Harding ( @Tobin Harding [ARCHIVE] )
β’ symphonicbtc ( @symphonicbtc [ARCHIVE] )
β’ Antoine Poinsot ( @Antoine Poinsot [ARCHIVE] )
β’ Andrew Poelstra ( @Andrew Poelstra [ARCHIVE] )
β’ Pavol Rusnak ( @Pavol Rusnak [ARCHIVE] )
β’ Tobin Harding ( @Tobin Harding [ARCHIVE] )
β’ symphonicbtc ( @symphonicbtc [ARCHIVE] )
π
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
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.
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
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
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.
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.