
Libra 2.0
若從 Libra 2.0 的設計來看,臉書要消除各國金融單位對臉書幣可能會成為超越國家主權幣的疑慮,並以發行的穩定幣不會影響國家的貨幣政策,以合規為前提與監管單位緊密合作。由於 Libra 是建構在區塊鏈系統上,從系統面來說,要符合支付系統需要的效能需求 (高 TPS),並穩定可靠,同時也要保障交易能夠安全地進行,關於這部分,第二版與第一版相異不大,不過開發者文件相較以前更為詳盡。
若從 Libra 2.0 的設計來看,臉書要消除各國金融單位對臉書幣可能會成為超越國家主權幣的疑慮,並以發行的穩定幣不會影響國家的貨幣政策,以合規為前提與監管單位緊密合作。由於 Libra 是建構在區塊鏈系統上,從系統面來說,要符合支付系統需要的效能需求 (高 TPS),並穩定可靠,同時也要保障交易能夠安全地進行,關於這部分,第二版與第一版相異不大,不過開發者文件相較以前更為詳盡。
在前面的文章中,我們介紹過 LibraSwap,但實際上透過 Libra SPV,我們可用於搭建 Libra 與 Ethereum 之間的橋樑,稱做 LibraBridge。利用 SPV validation 實作跨鏈的代幣交換不是新的創舉,過去有許多項目利用這個方法來橋接兩個不同的鏈上資產,如下。SPV 是一種用於輕節點驗證交易的方法,透過智能合約的協助,我們可以在合約上驗證來自 Libra 的交易。
In the previous article, we explain the concept of the LibraSwap. Next, we will introduce LibraBridge, which can be used to connect Libra with Ethereum by Libra SPV method. The idea to leverage SPV validation to implement cross-chain transfer is not new. It’s already done by several projects listed below. SPV proof is a way for light client to verify if interested transaction happened on the blockchain. With the help of smart contract, Libra SPV proof can be implemented on Ethereum. Namely, we can verify a Libra transaction through smart contract, along with some external information.
Generally, you need to have a client when connecting to the blockchain network. There are different types of nodes: full node, light node, mining node and relay node. In this article, we will focus on how a light client node works because not everyone can run a validator node (full node) in Libra since it is a permissioned blockchain. Instead of fully verifying all transactions and blocks, light clients only need to download block headers and verify if interested transactions are included in the block. Light clients are run by devices that do not have huge computation power and bandwidth.
本文我們將介紹 LibraSwap,這是個實驗性質的專案,旨在實作 MVP 來實現 Libra 與 ETH 之間的 Swap 互換。挑選這個專案的原因,一方面是為了學習 Libra 區塊鏈,另一方面是我們對於以太坊區塊鏈較為熟悉,但是考量目前 Libra 測試鏈上僅能收送交易,尚無法部署合約交易功能,所以這個專案我們將會實作單方向的 Swap 互換。
On June 18, Facebook unveiled its blockchain project, called Libra. The goal of Libra is to build a new financial infrastructure that empowers billions of people to access financial service efficiently and cheaply. According to the white paper, Libra is expected to launch in 2020. However, the emergence of Libra makes the US Congress ask Facebook to pause its development because the new global currency it brings would harm existing financial system. Libra published the white paper, open sourced the projects, and release the Testnet. Thus, developers can play around with the Libra and contribute to Libra Core. Currently, the Libra project is under ongoing development and the discussion forum is active too.
今年六月,臉書宣布其區塊鏈計畫 — Libra,旨在打造一個普惠金融 (Inclusive Financing) 的支付系統。按臉書原先的計畫,預計會在 2020 正式上線,雖然美國國會要求臉書暫緩 Libra 專案,除此之外,臉書也發佈了 Libra 白皮書,並且開源 Libra 原始碼以及測試鏈,讓開發者可以先嘗鮮。截至目前,Libra 的開源項目仍在持續開發,程式碼不停在更新,討論區也是相當活躍。
Facebook’s “Libra Coin” Explained