Understanding of atomic exchange.

in atomic •  7 years ago 

The following is an understanding of the current realization of the atomic exchange, please correct.
If you have more novel ideas about atomic exchange, welcome to discuss it.

Atomic exchange
Definition:
Atomic exchange is to decentralize (without third party participation), the two people realize the atomic cross - chain fair trade, realize cross - chain transaction security.
Atomicity:
What about atomicity?It is either the exchange of success or failure, there is no intermediate state.
Principle:
Atomic exchange: there are smart contracts on both sides, both on both sides, to generate the key to trade when the smart contract conditions are met.

1522328677(1).png!

A first executes contract 1 and input requirements (e.g. 10 ETH)
Contract 1 generates key 1.
B gets the contract 1 and then USES the corresponding demand (e.g., 1 BTC) to execute the contract 2, producing key 2.
B USES key 2 to execute contract 1 and the transaction is successful.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

The atomic exchange is delete the third organization, the third party is instead by a smart contract.

Congratulations @zhangtiantian! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

3 years on Steem - The distribution of commemorative badges has begun!
Happy Birthday! The Steem blockchain is running for 3 years.
Vote for @Steemitboard as a witness to get one more award and increased upvotes!