At that time, we asked ourselves four questions: (1) is there any profit? According to many reports, the business of block chain based in 2020 will reach US $100 billion. Two is government support? Governments are positive and encourage exploration of application scenarios. Three, what is the support of community and standard organizations? It can be seen that the 18 year is the first year of block chain application, and the acceleration of open source and standards has gradually matured. Four, is there any application scenario? Block chains may create innovative new markets or restructure and optimize existing markets, such as housing rental is centralized, the future may be that everyone puts their own housing information on the chain, forming a P2P de-centralized model.
Based on these four questions and answers, we can see the future of the block chain. We have come to our own judgment: the application of block chain industry will accelerate the spread of digital money from financial and social fields.
What is the second choice? Alliance chain or public chain?
In 2009, Bencong published the Bitcoin White Paper, which opened the Block Chain 1.0 era, but because of the single trading performance and trading function, its application can only be in the form of digital currency. With the emergence of intelligent contract in Ethernet square, block chain ushered in the era of 2.0, the trading capacity of block chain has greatly improved, but the performance is still not high enough, can only be used in high value and low frequency trading scenarios. In 2017, the emergence of superbooks ushered in the advent of the alliance chain, the overall transaction performance further improved, can be used in some more complex scenarios, we believe this is the era of programmable block chains 3.0. Based on this consideration, we think alliance chain / private chain will be the main battlefield of enterprise application.
What is the third option? The BaaS platform is the final choice.
After a series of considerations, such as landing scene, culture, entertainment, finance, medical treatment, copyright, education and so on, we finally think that the public cloud is the best carrier of the block chain. Because of its openness, network performance and resource availability, the cloud conforms to some characteristics of the block chain itself. In order to improve its performance, the alliance chain needs to have certain nodes trustworthy, reliable and controllable, and it is simpler to implement security in the public cloud. So we conclude that the combination of block chains and cloud computing is getting closer and closer, and BaaS is expected to become a public trust infrastructure.
Three points innovative design of HUAWEI block chain BCS
This is a logical structure of HUAWEI cloud block chaining service. According to Zhang Ziyi, Huawei Block Chain BCS is built on Docker and Kubermates, with high scalability, and will be fully connected with other cloud services, providing dynamic membership to build, flexible node scaling, supporting flexible deployment of private chains and alliance chains, and interconnection with existing IT infrastructure. At the same time, Zhang Ziyi explained the three innovative designs of HUAWEI based on super books.
I. high performance Byzantine fault-tolerant consensus algorithm to solve low throughput problem
How to improve the efficiency of consensus is a problem that everyone will encounter. At present, open source hyperledger fabric is only suitable for private chain action. It can achieve certain performance on kafka. When constructing alliance chain, a Byzantine algorithm is needed. Hyperledger fabric provides a PBFT algorithm in version 0.6, but the performance is very poor. Huawei has proposed a fast Byzantine algorithm to solve this problem. Because we are relatively reliable nodes based on Huawei Cloud, we actually tilt towards availability in commonality and availability by monitoring the primary nodes.
We divide the consensus algorithm into two categories, one is the proof of class consensus, the other is the consensus of voting class. How to understand it simply, consensus algorithm is to solve the problem of many people jointly bookkeeping, who remembers as the standard problem. Who will guess the first question? It is the POW proof mechanism of bitcoin workload. Who has more shares and who has greater probability of bookkeeping? Is the stock ownership certificate POS mechanism? A spokesperson with a large number of shares will vote for the endorser. It is the DPOS mechanism; every time a leader is elected, does everyone vote by hand to agree with the leaders account? Is a Byzantine fault-tolerant protocol that uses the trusted hardware to roll the dice and select the smallest number? It is the smallest lucky number algorithm.
Huaweis consensus algorithm has two innovations: one is signature + two-stage submission, the other is multi-instance consensus mutual supervision to ensure fairness. Based on the PBFT algorithm, we reduce unnecessary communication and signature consumption. The complexity of information quantity is reduced from n^2 to N, which improves the efficiency of algorithm. The performance of the previous tests has reached 5000TPS, and is now higher.
Two. Block chain based on relational model to enhance usability and query performance.
Huawei platform has three block chain deployment model, the first is Huawei hardware + Huawei BCS software, that is, neutral deployment, all business deployment in Huawei cloud. Huawei Cloud Platform supports multi-tenancy block chain service deployment, each tenant has its own VPC, the network and data between each other is isolated, only through the external network can exchange, so there is no centralization. The second is online and offline, part of Huawei hardware + Huawei BCS software, that is, hybrid deployment, allowing offline data centers to put your block chain service nodes, offline access. A part of the business is deployed in HUAWEI public cloud and another business is deployed in the customer private data center. The third method is decentralized deployment, completely offline, private hardware + Huawei BCS software, business deployment in the customer private data center.
There are three main starting points for improving usability based on relational model block chains. First, can we use block chains like databases? Two, is it possible to switch existing applications from database to block chain at low cost? Three, can we support efficient and complex queries? In order to reduce the cost of learning, we have made a low-level relational database storage, you can seamlessly switch to familiar code writing. First, you can do data analysis. Second, it supports efficient and complex products. Generally speaking, our design is divided into three parts: one is the block chain access of SQL; the other is the intelligent contract development framework based on SQL; the third is the block chain data management based on relational database.
Three, comprehensive protection of block chain from three levels and five modules.
At the level of safety design, we have comprehensively protected the block chain from three levels and five modules. For example, the security above the cloud, we passed the level Four. Then identity management, we provide encryption algorithm, standard encryption algorithm, homomorphic encryption algorithm, as well as the ability of the security container, chain code sandbox, and malicious code detection, and then chain code formal verification, adaptive control algorithm.
For example, the national secret algorithm is an essential part of the financial industry. When you deploy HUAWEI cloud, you can choose it. How to solve the privacy and availability of block chaining technology in finance? One of our solutions is to introduce homomorphic encryption to solve the privacy problem, and the other is to propose a range proof / equality proof to solve the financial business availability problem. This is a range verifiable homomorphic encryption method. In fact, homomorphic encryption technology realizes the computation of secret key pairs, which can not only reduce the communication cost, but also complete the calculation task. By using homomorphic encryption technology, the decrypting party can only get the final result but can not get each secret message, thus improving security.
Cloud + Network + terminal Trinity block chain end to end solution
Finally, lets talk about the thinking of HUAWEI cloud. What do we hope to achieve?
Our strategy is to focus on the four value directions (data, LOT, finance, operators), with the block chain platform as the core, combined with network and chip, to form a three-in-one end-to-end solution. Through the BaaS (BCS) platform as the core, we build the strategy of BCS+ HUAWEI public cloud. Network nodes and edge computing should also be nodes of block chain network to ensure the authenticity and security of block chain network. The terminal is a chip, built-in block chain SDK and API, which can be transmitted to Huaweis BCS platform through Huaweis telecommunication network, integrating some information on the mobile phone or edge, collecting trusted data, building a whole block chain solution, and creating a real block chain application scenario for customers. The source of this article: Babbitt editor in charge: Wu Mengyang _NBJ11200
Our strategy is to focus on the four value directions (data, LOT, finance, operators), with the block chain platform as the core, combined with network and chip, to form a three-in-one end-to-end solution.
Through the BaaS (BCS) platform as the core, we build the strategy of BCS+ HUAWEI public cloud. Network nodes and edge computing should also be nodes of block chain network to ensure the authenticity and security of block chain network.
The terminal is a chip, built-in block chain SDK and API, which can be transmitted to Huaweis BCS platform through Huaweis telecommunication network, integrating some information on the mobile phone or edge, collecting trusted data, building a whole block chain solution, and creating a real block chain application scenario for customers.