Layered Thinking about the Galaxy Network
The architecture of the blockchain can be divided into three layers: protocol layer, extension layer, and application layer. The various levels are independent of each other, and at the same time are connected to each other, and cannot be separated and operated. The protocol layer is very important for the entire blockchain architecture.
The basic architecture layer of blockchain is protocol layer. This layer is divided into two parts: storage layer and network layer. The main function of the protocol layer is to maintain the network nodes, only to provide the API for scheduling. If the blockchain is regarded as a high-rise building, then the protocol layer is the foundation of the high-rise building, which is the fundamental requirement for its establishment. As for the operation of individual nodes, the protocol layer cannot intervene or will not intervene. It’s the same as our current computer operating system.
Protocol Layer
The internal structure of the protocol layer is divided into a storage layer and a network layer. In the network layer, each computer node connects and interacts with each other. These servers ensure node security through consensus algorithms such as mining and voting. After obtaining the corresponding data, the network layer will transfer these best and fastest data to the storage layer under the condition of ensuring safety and reliability, and then the storage layer initializes its storage.
Data storage can be independent of each other, with more freedom of choice, or can be discussed separately. The principle of choice is nothing more than performance and ease of use. We know that the overall performance of the system mainly depends on the I / O performance of the network or data storage. The network I / O optimization space is not large, but the I / O of the local data storage can be optimized.
Galaxy Network will use a mature database as the underlying database, and the read and write performance of this database meets the needs. For the point-to-point network implementation and development will be the difficulty of protocol layer development, we will use the mature IPFS Libp2p program.
Extension Layer
The extension of the blockchain technology is similar to the driver of the computer, which is to make the products of the blockchain technology company more practical. At present, it is divided into two categories, one is various trading markets, it is an important channel for exchange of universal currency to encrypted digital currency, and the other is the expansion of a certain direction.
There are no technical restrictions on the use of extension layer, such as distributed storage. The choice of programming language can also be more free, because it is completely separated from the protocol layer, and the programming language can also be different from the development language used in the protocol layer. This is the basis of blockchain programmability; embedding code into blockchain or token to implement a customizable smart contract, and automatically executing without a third party when certain constraints are met, is the basis of blockchain detrust. The main realization of the Galaxy Network is that one is a smart contract and the other is the application chain era under the layout of blockchain 4.0.
Application Layer
The application layer of blockchain encapsulates a variety of application scenarios and cases, which are very similar to applications on computers, portals on browsers, search engines, e-commerce or apps on mobile phones. At present, the application of this layer is almost blank. Besides digital currency, there is no ready-made blockchain application. The future programmable finance and programmable society will also be built on the application layer.