Question: atomic swaps with other crypto

will diem support atomic swaps:

https://en.bitcoin.it/wiki/Atomic_swap

specifically:

  • 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/dip-169.md 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