Open darosior opened 2 years ago
We have this calculation for the number of executed OPs and the number of stack elements. It would be nice to implement it for the witness size as well, as it would allow to compute feerate of presigned transactions in advance.
The relevant data structure where we track those: https://github.com/darosior/python-bip380/blob/7b79c4719d3d311dec9c7bc5e6d63c79608a3b42/bip380/miniscript/satisfaction.py#L189-L206
We have this calculation for the number of executed OPs and the number of stack elements. It would be nice to implement it for the witness size as well, as it would allow to compute feerate of presigned transactions in advance.