RFCs icon indicating copy to clipboard operation
RFCs copied to clipboard

Add timelocks and fee strategy in reveal protocol messages

Open h4sh3d opened this issue 5 years ago • 1 comments

Instead of adding a new round of communication as proposed in #48 we can add in the reveal message:

  • cancel timelock
  • punish timelock; and
  • fee strategy

these parameters are derived form the local public offer, thus if a mismatch is found we can early quit the swap process.

h4sh3d avatar Apr 16 '21 09:04 h4sh3d

It is worth noting that if a mismatch is present, and incompatible (mismatch can be compatible with the fee strategy e.g.), it will be catch anyway downstream by the validations, thus this may force going on-chain to cancel the swap.

h4sh3d avatar Apr 16 '21 09:04 h4sh3d