Question: atomic swaps with other crypto

will diem support atomic swaps:


  • transactions with future-dated lock times
1 Like

Diem transactions do not have a lock time parameter. However, Diem supports atomic swaps via multi-agent transactions: dip/ at main · diem/dip · GitHub.

A Bitcoin-style HTLC could be simulated via a transaction script with a time assertion (e.g., assert(DiemTimestamp::now_microseconds() == <desired_lock_time>); <desired action(s)>).

1 Like