LibraSwap introduction

In this article, we will introduce LibraSwap, an experimental project to bridge Libra with Ethereum. It aims to implement a minimum viable prototype to fulfill token swap between Libra and Ethereum. There are two reasons why we choose this fun project. On the one hand, we want to learn more on how Libra works. On the other hand, we are familiar with Ethereum blockchain. However, due to the limitation of Libra testnet, we can not deploy and interact with Libra smart contract. We implement a unilateral Libra swap instead of the standard atomic swap.

Background

Problem statement

Overview of LibraSwap

standard atomic swap
LibraSwap

Process flow

DEMO

1. deploy contract
2. generate secret
3. initiate
4. transfer
5. verify
6. redeem

Conclusion

Thanks to AMIS徐粲邦. He provides this article.

Original Article

推薦文章