OP_EXPIRE: Mitigating replacing cycling attacks

Yes, I started this project knowing this. But someone has to start the conversation somehow. Could be moonshot but I believe that OP_EXPIRE has potential to be beneficial for Bitcoin. Doing a draft implementation and one “real world scenario” could help move this forward.

Even though, OP_EXPIRE is the main thing here, I’m quite motivated to solve this problem as well. On Peter Todd’s side, main issue is the race condition of scripts. I don’t know if using any covenant or other solutions could help us build better HTLC contracts, so we don’t depend going on-chain for channel resolution. Lighter-weight solutions already implemented are focused on winning the race itself as I described.

That’s a great insight. I think this is really LN script oriented problem. I haven’t found any Warnet for LN itself to deploy this.

Thanks @instagibbs !

1 Like