Universal opt-in replay protection?

Not sure that’s necessary or desirable for the particular situation where this feature would provide the most value.

Why would it be a problem to wait 100 blocks on one side of a fork? Once you’ve moved coins on the fast side, and waited enough confirmations, you no longer need replay protection on the slow side.

Note that I’m assuming this replay protection mechanism will have been deployed well before a contentious hard fork, so both sides inherit it by default. Because the block hash is implicit, and needed to validate signatures, neither side can easily remove the protection. They’d have to e.g. extend transaction serialization to include the hash, and have the block include it without modifying (witness) transaction hashes.

I suppose that for a hardware wallet to safely sign a replay-protected transaction, a PSBT needs to include all headers between the committed block and the intended lock height. This could also be useful for offline height proofs[1] and proving the passage of time[2].

There’s no way for an offline device to know which side of a fork its on of course.


  1. Great Consensus Cleanup Revival, August 2024. ↩︎

  2. The Cryptographic Relay, July 2020. ↩︎

1 Like