ElementsProject / peerswap-spec

6 stars 3 forks source link

Add `min_final_cltv_expiry` and `first_csv_expiry` to `swap_in_request` #8

Open ZmnSCPxj-jr opened 1 year ago

ZmnSCPxj-jr commented 1 year ago

As discussed in detail about forwardable peerswaps, these need to be added to the protocol so that forwarders can decide whether it is safe to further forward the peerswap, or if it has to be handled here.

first_csv_expiry is the R parameter currently hardcoded to 1008 for Bitcoin and 60 for Liquid.

min_final_cltv_expiry promises to issue the invoice with the c field set to that value.

In the forwarding case, a potential forwarder MUST: