python-bip380 icon indicating copy to clipboard operation
python-bip380 copied to clipboard

Witness size worst case calculation

Open darosior opened this issue 3 years ago • 1 comments

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.

darosior avatar Apr 21 '22 09:04 darosior

The relevant data structure where we track those: https://github.com/darosior/python-bip380/blob/7b79c4719d3d311dec9c7bc5e6d63c79608a3b42/bip380/miniscript/satisfaction.py#L189-L206

darosior avatar May 25 '22 13:05 darosior