SIGHASH2 for version 1 witness programme



Summary:

In a message to the bitcoin-dev mailing list, Johnson Lau questioned whether the Double SHA256 algorithm used in Bitcoin should be replaced with a Single SHA256 algorithm. He suggested that there was no vulnerability to length extension attacks and asked if the robustness of Double SHA256 was necessary. Additionally, he proposed moving the `sigversion` parameter to the beginning of the format so that the first block of the SHA-256 compression function could be precomputed. Finally, he asked if a CHECKSIGFROMSTACK feature could be added or if it would require a separate BIP.


Updated on: 2023-06-13T03:02:25.912691+00:00