Author: Johnson Lau 2018-11-28 08:31:48
Published on: 2018-11-28T08:31:48+00:00
A proposal for changes to the Bitcoin script has been put forth. The proposal includes: adding existing sighash flags plus NOINPUT and MASK, a new opcode called OP_MASKEDPUSH, a signature size of 64 with an optional sighash byte, computation of the sighash from various data about the spending transaction, output being spent, and script being executed, and using the hash of the scriptPubKey instead of distinguishing between p2sh and native segwit for MASKED NOINPUT. Additionally, there is a discussion on whether to limit the use of OP_MASKEDPUSH and how to handle unused sighash bits for hardfork replay-protection purposes. There are also suggestions to set H(scriptCode) to zero for direct key-spending and to ban MASKED NOINPUT for direct-spending.
Updated on: 2023-05-20T18:05:15.145200+00:00