Remove default sizes
I didn't like the TX_INPUT_PUBKEYHASH and TX_OUTPUT_PUBKEYHASH in utils.js, because it might cause problems later (with some refactoring, or segwit lengths, etc).
It turned out to be bigger code change than I thought....
it's not that burning, and it's a big change in the end, so maybe it can wait after the other PRs
It would be a breaking change too, as you are forcing script.length to be defined?
Yes. I thought it would be better, since the caller can't accidentally forget it, at which point it fallbacks to default - and maybe wrong, if it's P2SH/native segwit/....
It is an API breaking change
ACK to breaking change. Options object for the defaults though. :+1:
I don't want users constantly guessing what their input lengths might be though.
Could we provide an options object that had nice defaults for unspecified input lengths maybe?
This is high priority.
Any bandwidth to get this through?
Comments should be addressed
You are free to overtake this PR, I have stopped any bitcoin-related development :)