... with both sets of coins. Atomic swaps can be used for trading between bitcoin and another cryptocurrency, or for trading bitcoins of privacy purposes.
source https://www.google.com/url?rct=j&sa=t&url=https://en.bitcoin.it/wiki/Atomic_swap&ct=ga&cd=CAIyGmM2Nzk3ODA2ZWViNjVjODI6Y29tOmVuOlVT&usg=AFQjCNHm7mdl_WqKmu_cFu2mH0CTbMn6Mg