当前位置: 首页 > 文档资料 > Libra 中文文档 >

欢迎

优质
小牛编辑
143浏览
2023-12-01

欢迎来到 Libra 开发者站点! Libra 的使命是建立一套简单的全球货币和金融基础设施,为数十亿人服务。

The world truly needs a reliable digital currency and infrastructure that together can deliver on the promise of “the internet of money.” Securing your financial assets on your mobile device should be simple and intuitive. Moving money around globally should be as easy and cost-effective as — and even more safe and secure than — sending a text message or sharing a photo, no matter where you live, what you do, or how much you earn. — Libra White Paper

Libra is built on a secure, scalable, and reliable blockchain. It is backed by a reserve of assets designed to give it intrinsic value and is governed by the independent Libra Association tasked with evolving the ecosystem.

The goal of the Libra Blockchain is to serve as a solid foundation for financial services, including a new global currency, which could meet the daily financial needs of billions of people. The blockchain has been built from the ground up to prioritize scalability, security, efficiency in storage and throughput, and future adaptability. — Libra White Paper

The Libra currency is built on the Libra Blockchain. This site documents Libra Core, an open source prototype of the Libra protocol, which powers this new blockchain. The site also documents the testnet, a demonstration of this new system. In contrast to the forthcoming Libra mainnet, the testnet uses a digital currency with no real-world value.

The documentation discusses:

  • How to experiment with the prototype first-hand by sending transactions to the testnet.
  • Where to learn about new technology, such as the Libra protocol, the Move language, and LibraBFT.
  • How to be part of the community built around this new ecosystem.

Note: This project is at an early prototype stage. The Libra protocol and Libra Core APIs are not final. One of the key tasks in evolving the prototype is formalizing the protocol and APIs. Currently, our focus is on the infrastructure and building the CLI client. A public API and associated libraries are on our immediate roadmap. We welcome experimentation with the software on the testnet, but developers should expect that work may be required to publish applications using these APIs. As part of our regular communication, we will publish our progress towards stable APIs.

Move: 一个新的区块链编程语言

“Move” is a new programming language for implementing custom transaction logic and "smart contracts" on the Libra Blockchain. Because of Libra’s goal to serve billions of people one day, Move is designed with safety and security as the highest priorities.

Move takes insights from past security incidents with smart contracts and creates a language that makes it inherently easier to write code that fulfills the author’s intent. This lessens the risk of unintended bugs or security incidents. Specifically, Move is designed to prevent assets from being cloned. It enables “resource types” that constrain digital assets to the same properties as physical assets: a resource has a single owner, it can only be spent once, and the creation of new resources is restricted.

Move makes the development of critical transaction code easier. It enables the secure implementation of the Libra ecosystem’s governance policies, such as the management of the Libra currency and the network of validator nodes. We anticipate that the ability for developers to create contracts will be available over time. This will support the evolution and validation of Move.

Refer to Getting Started With Move for further information.

Libra 生态

The Libra ecosystem consists of different types of entities:

  • Clients

    A Libra client:

    • Is a piece of software that has the capability to interact with the Libra Blockchain.
    • Can be run by the end-user or on behalf of the end user (for example, for a custodial client).
    • Allows the user to construct, sign, and submit transactions to a validator node.
    • Can issue queries to the Libra Blockchain (through the validator node), request the status of a transaction or account, and verify the response.

    Libra Core contains a client, which can submit transactions to the testnet. My First Transaction guides you through executing your first transaction on the Libra Blockchain using the Libra CLI client.

    Validator Nodes

    Validator nodes are entities in the Libra ecosystem that collectively decide which transactions will be added to the Libra Blockchain. The validators use a consensus protocol so that they can tolerate the presence of malicious validators. A validator node maintains the history of all the transactions on the blockchain. Internally, a validator node needs to keep the current state to execute transactions and to calculate the next state. We will learn more about the components of a validator node in Life of a Transaction.

    The testnet is a publicly available set of validator nodes, which can be used to try the system. You can also run validator nodes yourself using Libra Core.

    Developers

    The Libra ecosystem supports a wide variety of developers, ranging from people who contribute to Libra Core to those who build applications that use the blockchain. The term “developer” encompasses all of these groups. Developers might:

    • Build Libra clients.
    • Build applications to interact with a Libra client.
    • Write smart contracts to execute on the blockchain.
    • Contribute to the Libra Blockchain software.

    This site is intended for developers.

    Reference

    • Libra Protocol: Key Concepts — Introduces you to the fundamental concepts of the Libra protocol.
    • My First Transaction — Guides you through executing your very first transaction on the Libra Blockchain using the Libra CLI client.
    • Getting Started With Move — Introduces you to a new blockchain programming language called Move.
    • Life of a Transaction — Provides a look at what happens "under the hood" when a transaction is submitted and executed.
    • Libra Core Overview — Provides the concept and implementation details of the Libra Core components through READMEs.
    • CLI Guide — Lists the commands of the Libra CLI client and their usage.
    • Libra Glossary — Provides a quick reference to Libra terminology.