In this episode of “Bitcoin Explained,” host Sjors Provoost and guest Christian Decker discussed SIGHASH_ANYPREVOUT, a proposed new sighash flag that would enable a cleaner version of the Lightning Network and other Layer 2 protocols.
Sighash flags are included in Bitcoin transactions to indicate which part of the transaction is signed by the required private keys, exactly. This can be (almost) the entire transaction, or specific parts of it. Signing only specific parts allows for some flexibility to adjust the transaction even after it is signed, which can sometimes be useful.
Bitcoin Magazine is back in print!
Get Bitcoin Magazine shipped directly to your front door!
Get 21% off with promo code: MAG21
“The Deep Dive” delivers the latest Bitcoin on-chain market intelligence directly to your inbox!
Get 1 Month free with promo code: PODCAST
https://deepdivebtc.substack.com/01e06e79
Bitcoin 2022 will be the biggest Bitcoin conference ever! Miami, FL from April 6–9, 2022
Get 15% off tickets with promo code: MAG21
Decker and Provoost explained that SIGHASH_ANYPREVOUT is a new type of sighash flag, which would sign most of the transaction, but not the inputs. This means that the inputs could be swapped, as long as the new inputs would still be compatible with the signature.
SIGHASH_ANYPREVOUT would be especially useful in the context of Eltoo, a proposed Layer 2 protocol that would enable a new version of the Lightning Network. In place of how Lightning users currently need to store old channel data for security reasons, and could also be punished severely if they accidentally broadcast some of this data at the wrong time, Decker and Provoost explained how SIGHASH_ANYPREVOUT would do away with this requirement.