I believe that students who care about the EOS system must have seen the blueprint below. Yes, it's just a blueprint at the moment, and with the urgency of BM, this picture must have been changed beyond recognition psychologically (for example, the eosd in the picture has already been renamed). Therefore, this picture can only be used as a reference for the future development direction of EOS. The current EOS is far from being so complicated and perfect.
Before understanding the system architecture, let's take a look at the main components of the current EOS system:
nodeos
: The core process of the EOS system, the so-called "node". Plugins can be configured at runtime:producer_plugin
(Witness plugin): Witnesses must use this plugin, normal nodes do not need it.wallet_plugin
(Wallet plugin): Use this plugin to save the keosd wallet tool.wallet_api_plugin
(Wallet interface plug-in): Provides an interface for the wallet plug-in.chain_api_plugin
(Blockchain interface plug-in): Provides blockchain data interface.http_plugin
(http plugin): Provide http interface.account_history_api_plugin
(Account History Interface): Provides account history query interface.cleos
: Local command line tool that interacts with real users through the command line and communicates with the REST interface of nodeos. It is a bridge for users or developers to interact with the node process.keosd
: Local wallet tool. The process of storing wallets for non-node users can manage and encrypt multiple wallets containing private keys.
Local single node test system
In the case of a single local node, only the sum is required , but the private key is managed by the node's wallet plug-in. This one node is the whole of the blockchain, and all data is stored in a single node. So "BlockChian" in the figure below is just a concept, and all the block production work is done in it. nodeos
cleos
keosd
nodeos
Local multi-node test system
The local multi-node test system is closer to the real blockchain network, just running on the same computer. Each program performs its own duties, keosd
manages private keys, cleos
connects users and nodes, and nodeos
generates blocks as nodes.
public test network
The architecture of the public test network is basically the same as the upcoming EOS mainnet, except that 100 backup nodes are missing and there are 21 master nodes. Users connect to the blockchain network (other ) by connecting to . cleos
nodeos
nodeos
nodeos
EOS initial main network
If there are no major changes in the near future, the main network that EOS will launch soon will be the structure of 21 master nodes + 100 backup nodes.
(The picture is from or modified from EOS official)
Yuanfangyuan Blockchain brings together a large number of famous blockchain teachers and adopts a tutor duty system to solve technical difficulties for students in real time. Please pay attention to Yuanfangyuan Blockchain Knowledge Planet and Mentors. (For training inquiries, please contact the captain on 13826054890 with the same WeChat mobile number)
The author, Xiaodi, focuses on EOS technology research and blockchain smart contract development. He is the mentor of Yuanfangyuan Blockchain. For more articles and videos of Mr. Xiaodi, please pay attention to the official account of Yuanfangyuan Chain Circle.