[bitcoin-dev] Quadratic Hashing in BIP 134

Russell O'Connor roconnor at blockstream.io
Fri Apr 28 20:53:05 UTC 2017

I noticed that the the latest BIP 134
now supports SIGHASH_SINGLE and friends.  However, this support seems to
reintroduce some quadratic hashing behavior because it calls
per non-SIGHASH_ALL input
In particular, if each input in a transaction has one SIGHASH_SINGLE
CHECKSIG operation then the total amount of hashing done for the
transaction will be quadratic in the number of inputs.  While amount of
hashing is not as severe as with the SIGHASH_ALL case, the amount of
hashing done is still non-linear.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20170428/e70f4f4f/attachment.html>

More information about the bitcoin-dev mailing list