BIP-118 / SigHash "what's covered" Cheatsheet



Summary:

A chart was created as part of an ongoing review of BIP-118 to assist those evaluating it. The chart is not free of errors but may be helpful for understanding the conditional logic involved in evaluating BIP-118. The chart shows that input index is never signed, APO signs the amounts but APOAS never does, APO signs both the SPK and Tapleaf hash, and the signature binds APO to a specific script fragment within a Taproot key. Additionally, there are 16 different possible modes in total, including | Default and | All which overlap, leaving an opportunity to reserve or assign four additional sighash modes if desired. Furthermore, because BIP-118 defines a new key type, the notion that sighash flags are "flags" could be done away with and converted to an enum, giving each signature type a sensible name.


Updated on: 2023-05-21T03:17:50.002585+00:00