BlockCenter – the core engine of Bystack

1, the threshold of the blockchain

In the development process of the blockchain, in addition to technical scalability and performance issues, there is also the issue of ease of use, that is, the threshold of use, very unfriendly to the novice, simply to give a few examples:

Private key / mnemonic: If you use blockchain wallet, this is an inevitable thing. First of all, this thing is very important. It means control of your assets. If it is lost, no one can help you find your back. Assets mean that your money will be lost forever. Bitcoin now has a lot of silent addresses. In fact, the big probability is that the private key has been lost. Secondly, this thing is very difficult to use, the private key does not have to be said, a string of garbled characters, mnemonic words have been improved on this, and then a dozen words, still very inconvenient, for the average user must Recorded, and if placed in the computer there will be the possibility of being stolen. If you copy it on paper, once the paper loses money, it will be gone.

Handling fee: The user must pay the miner's handling fee when using the blockchain product. If you say that you want to make a competing product like Alipay, then tell the user that you must pay an extra fee each time you buy something, then I I think that if you vote with your feet, you will kill you, but the blockchain is like this, and he is the inevitable thing to maintain the stability of the system.

Other concepts, such as block synchronization, number of confirmations, etc., are even more embarrassing. Of course, some things have been optimized by some of the current products.

2, the user of the blockchain

When we talk about the users of the blockchain, we can compare the users of the Internet.

At the top is a small number of developers, that is, programmers, who are the most familiar with Internet technology, and then the practitioners of the entire Internet industry, because the general Internet products are operated in the form of companies, related personnel All are practitioners, and finally the largest Internet user population. Of course, the ratio of this figure is definitely wrong, because users are much more than the upper two layers. If you go to the Internet with the largest number of users, TCP, TCP Agreement, to talk to them about the Restful architecture, certainly no one is interested in this.

Then let's take a look at the current situation of the blockchain:

Because of its decentralized organization (but there are still weak centers such as foundations) and the general economy, the blockchain has a group of interested community members besides developers and practitioners. Recently, the founder of the currency also mentioned the concept of the currency East. Community users may come from all walks of life, they may not understand the blockchain technology, but because they hold one or more Tokens, they are of interest, so even if the concept is difficult to understand, the product is difficult to use, still not They will prevent them from using blockchain products. They are the best group of angel users, but you can't force everyone to become such angel users. In fact, the top three people in the picture are only in the general population. A very small number, most of the users are only limited to listening to the blockchain and have not even heard the blockchain, some interested, some even non-inductive state of the fourth layer of non-blockchain users.

Of course, with the continuous development of the blockchain, there will definitely be more people joining the blockchain, because it does exude unique charm and becomes an unstoppable trend, but what kind of development will it become? ?

The user distribution on the left part of the figure, when the blockchain develops to a certain stage, is it true that all people in the world will hold digital currency? I personally feel that there are still doubts, but for the distribution of users on the right, I think it can be realized in the near future. When the blockchain application is done like the current Internet application, and it is just needed, everyone will become Users of blockchain technology.

Blockchain technology and architecture itself is the bottom layer of the application, providing the capabilities that the centralized architecture cannot provide. Many applications will be deployed on the blockchain technology, and the users of the application will naturally become the users of the blockchain. However, this kind of user is not feeling when using it. Just like the user uses hydropower, it is a natural thing, and will not care about the technology and architecture of the water supply and power supply system.

3, some design ideas

Based on the above thinking, we have to do a BlockCenter system. BlockCenter is also a very important thing in the whole Bystack. First of all, it is the link up and down. The lower layer is the main side chain architecture than the original chain. It is a pure blockchain thing, so it It must be fully docked to create more playability. In the overall BlockCenter architecture, we named this layer as the blockchain adaptation layer. At the same time, this layer is also professional and configurable, so that people who understand the blockchain can customize some of the business characteristics related to the blockchain.

BlockCenter docks user-specific solutions, including desktop-side Byone, mobile-side Bystack, and development platform Bystore, which provides an easy-to-use interface for the upper-level BlockCenter and hides details.

So we will follow the following ideas when designing BlockCenter:

Hidden details: The ability to hide details in the upper layer is very important. As shown in the architecture diagram of BlockCenter, the core business layer is the ability of the top layer. It can be related to the blockchain or not. So in fact, this layer is more Borrowing the current Internet business architecture, because it is not necessary for the upper application to understand too much blockchain details, focus on business.

Pluggable configuration: BlockCenter will have a large number of modules. Users do not need to call them all when they use them. They can choose the modules to be opened according to their own business needs.

Easy to use: The Internet actually educates users for everyone, so in fact, there is no need to rack your brains to think of some novel and unique bloggers' eyes. How to make users easy to use is BlockCenter needs to focus on considerate.

4, blockchain adapter – the bridge connecting the blockchain world

In order to achieve some of the above ideas, the blockchain adapter is uniquely designed in the BlockCenter architecture.

The Blockchain Adapter Module has the full blockchain capabilities, including UTXO management, transaction management, contract management and more. With the blockchain adapter, the upper layer's business layer can interact with the chain by calling a variety of interfaces in the adapter. For example, if the upper application needs to use the contract, then the contract template in the contract management can be called to create it quickly. A new contract that puts the relevant storage into the contract store and deploys it to the main chain or other sidechains through contract distribution. With the blockchain adapter, it is equivalent to having a unified entry of the blockchain. The chain-related operations only need to call the relevant interface, and because the blockchain adapter belongs to the bottom of the entire BlockCenter, the general non-internal components are Can not be called, this also shields the complexity of the external, so that professional developers call when doing the application, rather than the ordinary user directly.

5, BlockCenter usage mode

In current commercial systems, especially high-frequency business systems, the performance of various indicators is very demanding, because each time the problem is caused by the loss of money, so they are generally centralized systems, the actual high The frequency service is decentralized in the contract, and there is no very successful case for the time being, so BlockCenter will also be a centralized system. BlockCenter provides services through the Restful interface, which may later micro-service various functions, increase scalability, and enable flexible combination.

Users can register the BlockCenter system account to become the user of the system, then call the BlockCenter interface to develop applications, and then publish various applications to the desktop and mobile terminals in BlockCenter, and view the published applications through the monitoring module of BlockCenter.

In addition to the officially developed BlockCenter module, the interface will be open to allow external partners to enter the specific business modules in the BlockCenter development area, making BlockCenter more robust and powerful.

6, BlockCenter application scenario

In fact, the various business scenarios depicted in the Bystack white paper are the applications that BlockCenter can implement, because in the Bystack system, BlockCenter is the core part of the bearer business. Without BlockCenter, the business capability of Bystack will be greatly reduced.

We look at the application of BlockCenter through various modules of the core business layer, such as the "identity authentication" module. In the past blockchain system, it is difficult to identify the user's identity. The underlying blockchain only has an address. Of course, this is also The origin of blockchain anonymity. Through the BlockCenter "authentication" module, we can connect the upper user identity with the underlying blockchain address for compliance and business, and in the "authentication" module, we can fully integrate the existing Internet identity. Authentication schemes, such as two-stage verification, K-Bao and a series of more secure authentication methods, can better protect user information.

For example, in the "credit evaluation" section, you can know the time when the user holds an asset by counting the currency of the user assets in the system. When the credit evaluation is performed, the coin can be destroyed and the user cannot repeat it. Conduct evaluations to prevent maliciously polling or praise behavior.

7, summary

BlockCenter can be said to be the core drive engine of Bystack. Without BlockCenter, Bystack will degenerate into the current general public chain system, which can carry applications, but the capacity is limited. With BlockCenter, it is like a tiger, which greatly promotes the blockchain and Industry docking, forming a true killer application.

Author: reed ideas