Bumong block chain at the bottom of the technical introduction, read it can build private chain __ block chain

Source: Internet
Author: User

What does Bumong do?

Bumong is a digital asset network built using block-chain technology, where any asset-owning institution/individual can distribute its digital assets (such as digital gold, credits, game equipment, etc.) on the network, and the assets can be freely convertible and circulated in the network.

The transaction flow of the assets on the chain will not depend on any centralized system, because the server and node are deployed and maintained by many members of the Bumong community, the data generated by the application will be stored on all nodes of the block chain through the consensus mechanism, and the single organization's modification of its own node data cannot be validated by Thus guaranteeing the authenticity of the digital, ensure that the user's digital rights "real" belong to the user.

Developer Registration Address: Https://www.bumeng.cn/user/register

A brief introduction to the underlying technology of Bumong

Bumong to the fabric than block chain for the technical bottom (source address can be viewed in Bumong official website), has the following characteristics:

λ to the center of
Using Peer-to-peer distributed storage, there is no centralized management node, can be configured according to the actual needs of several verification nodes, all the verification nodes have the same rights, the entire system of data blocks by all the verification node to jointly maintain.
Lambda Security
The data is validated by a consensus between the nodes and then added to the block chain, once added to the block chain will be permanently stored and can not be tampered with, a single node of the data modification is invalid.
Lambda efficient
By optimizing the data structure, the key path multithreading concurrency, the multi machine distributed computing hash, the asynchronous writing database, etc., the performance is obviously improved, and the common PC node can reach 3000TPS. Cluster nodes are more performance-efficient.
λ Open
Through the public API can query block chain data, can also be based on the actual needs of the cloth than block chain source.
Lambda Portable
The use of standard C + + development, support windows,linux and other platforms.

the underlying technical architecture of Bumong

Support distributed deployments to meet high performance, highly reliable requirements. Each node needs at least one Bubi node, a Bubi process and an SQL database. Bubi node supports horizontal scaling to meet high reliability requirements. Slave cluster is an optional component that is used to share Bubi node calculations and supports dynamic scaling. The Big Data mining is an optional component, which can be used to analyze and excavate large numbers.
You can refer to the following deployment diagram:

Balance Server is an optional service, depending on how the user uses the Bubi underlying service. The Reserve proxy or endpoint map is intended to deploy the underlying service to a wide area network. If deployed on a cloud platform, you need to do port mapping on the console. If you deploy to a self-built server, you need to do port mapping or deploy a reverse proxy service at the gateway.

Bumong System Interaction

Cloth than the bottom provides a variety of interfaces, the submission of trading interface recommended using the SDK method, this submission for asynchronous submission, the results will be phased notification to the application, such as Confirm,pending,complete or failure. You can also submit to Bubi or slave using the Web interface. Query requests can only be sent to the Bubi process. The pub,sub in the figure is the publish subscription mode in ZMQ, Push,pull is the task mode, and can clearly see the communication between Bubi,slave,sdk,monitor. Monitor and monitor Center adopt WebSocket mode, which is advantageous to real-time alarm.

System Module

The following figure describes the main modules within the Bubi and slave, and the interaction between the key modules. The yellow module contains threads, and the gray ones are external persisted files. In order to improve performance and reduce the impact of IO on performance during peak trading, the ability to write the database asynchronously is considered. Blue is an SDK or user, with Bubi communication using Web and MQ two ways.

Trading Process

The following figure describes the processing process for the transaction. Slave is not necessary, if there is no slave,bubi will do their own verification work.

compiling

Build on Ubuntu 14.04

Lambda installation dependencies
sudo apt-get install automake autoconf libtool g++ cmake Libidn11-dev
Manually installing the Oracle JDK
Lambda compilation./configure make
Lambda one-click compilation
Enter Build/linux directory, execute build.sh

Build on Windows with VS2013

Use vs2013 to open the project file Build/win32/bubi.vs12.sln compile

Test

The 4peers-without-slave_test.sh and 4peers-with-slave_test.sh in the test directory are used to deploy four nodes with slave and without slave tests. The node configuration file with Slave is located in the Test/env/4peers-with-slave/peeri-with-slave directory and the node configuration file without slave is located in test/env/4peers-without-slave/ Peeri-without-slave directory, I is the node tag 1 to 4.

λ takes the Test/env/4peers-with-slave/peer1-with-slave directory as an example:

Bin Storage executable File

CONFG storage configuration file, Bubi.json is Bubi configuration file, Slave.json is slave configuration file, can modify the configuration according to the actual situation. User name password configuration for DB in Bubi.json should be consistent with PostgreSQL setup

Log files are stored by default and can be configured in Bubi.json

Key-value DB data file is stored by default and can be configured in Bubi.json

Perform test/4peers-without-slave_test.sh boot four nodes without slave

Perform test/4peers-with-slave_test.sh boot four nodes with slave

Above is the Bumong block chain bottom technology structure and the function introduction, wants to know more, may go to Bumong official website www.bumeng.cn registers the developer account number. After registering, can experience the block chain service in the test chain, or on the official chain to issue the asset. Since the underlying technology has been open source, it can also be used to build private chains.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.