segwit naming ambiguity



Summary:

The proposed idea for a clean API includes the following features: 1. The `is_segwit()` function, which returns true if a p2tr output is present.2. A function called `segwit_version()`, which returns an integer indicating the segwit version used.3. Helper functions such as `is_p2wpkh()`, `is_p2tr()`, and `is_p2wsh()`, which are available for all script types and return a boolean value.Pavol "Stick" Rusnak, Co-Founder of SatoshiLabs, suggests implementing these features in the API.


Updated on: 2023-08-12T01:47:39.941869+00:00