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.
!
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.
The atomic exchange is delete the third organization, the third party is instead by a smart contract.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @zhangtiantian! You received a personal award!
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:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit