SIGHASH2 for version 1 witness programme



Summary:

The email conversation between Johnson Lau and Russell O'Connor discusses the use of Double SHA256 in Bitcoin, suggesting the possibility of using a Single SHA256 instead. They also discuss the placement of 'sigversion' in the format and its length, with Lau suggesting it should be at the beginning of the format. The use of CHECKSIGFROMSTACK is also mentioned, with O'Connor preferring a separate opcode for it. Additionally, they discuss the implementation of a fixed 64-byte constant at the beginning of SHA-256 algorithm which would result in zero overhead for those 64 bytes. Lau raises concerns about SHA256 optimization and whether the message should be made 64-byte longer. Overall, the conversation provides insights into possible improvements to the Bitcoin protocol.


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