bitcoin-php
bitcoin-php copied to clipboard
SigHashInterface - API needs improvement
V1Hasher takes $amount in the constructor, effectively binding that object to that input.. This is at odds with SigHashInterface::calculate() taking $inputToSign as a parameter.
Maybe refactor? Also look into precomputing hashPrevOuts/hashSequences/hashOutputs?