peercoin / coinlib

The most feature-complete *coin library in the entire Dart/Flutter ecosystem.
BSD 3-Clause "New" or "Revised" License
5 stars 8 forks source link

Base P2TRInput #11

Closed MatthewLM closed 9 months ago

MatthewLM commented 10 months ago

Create an abstract P2TRInput class to extend WitnessInput to represent all Taproot inputs. This should provide an optional annex witness stack item and any number of additional witness stack elements before the annex. A nullable annex getter will be provided.

MatthewLM commented 9 months ago

Since the annex is not used and is reserved for future extensions, this class is not needed and instead the annex will always be assumed to be absent. Taproot inputs can instead extend from WitnessInput.