Are atomic transactions a good idea?

Hi,
this is kind of a generic question.
Let’s consider a case where I have one public chain, and I want to have an ERC20. Cool. Now, I want to be able to exchange tokens from this ERC20 with another ERC20 in the ethereum mainnet.

Are atomic swaps a good idea? If so, how should it work exactly?
I’ve heard about Cosmos as well (https://cosmos.network/).

Cheers.

1 Like

Atomic swaps are a very useful primitive. As for how they can be implemented, here is an ongoing discussion about an implementation that could be included in OpenZeppelin:

2 Likes

Cool, thank you so much.

Do you know about any good article about atomic swaps that you can share? I would appreciate.

2 Likes

A Bitcoin wiki article (Bitcoin focused):
https://en.bitcoin.it/wiki/Atomic_swap

@jimthematrix do you have any recommendations for reading on Atomic swaps?

1 Like