Reading Tencent Blockchain in One Article

Tencent has made many attempts in the direction of the blockchain. The group has integrated the blockchain into a single business line, such as Tencent Security, Tencent Cloud, and its subsidiary WeBank.

But when it comes to Tencent’s chain, the most direct business is Tencent’s blockchain. In this article, we will organize relevant information about Tencent’s blockchain. You can use this information to feel the boundary between Tencent’s blockchain and other blockchain businesses.

Tencent blockchain is an autonomous and controllable blockchain infrastructure that can build safe and efficient solutions for business scenarios. Build value connectors for enterprises and institutions to jointly promote the development of the Internet of Value.

The overall application framework of Tencent’s blockchain adheres to the distributed, weak-centered, and self-organizing spirit of the blockchain, as much as possible to weaken the dependence of each node on the centralized facilities in the business development process, and can solve the application from front to back. Life cycle issues.

In terms of technical implementation, the overall application of Tencent’s blockchain can be divided into four layers: blockchain basic service layer, industry application service layer, business logic expression layer, and alliance governance layer.

Among them, the blockchain basic service layer, industry application service layer, and business logic presentation layer belong to the category of node software and should be deployed on their respective nodes, which belong to the private facilities of the alliance members; the alliance governance layer belongs to the alliance’s public facilities and should be deployed in the alliance At the neutral node of the committee nature, it is currently more appropriate to operate by a blockchain technology service provider to facilitate subsequent software upgrades and maintenance.

From the product point of view, Tencent’s blockchain mainly includes two parts: baas and trustsql.

Baas mainly provides customer registration, chain, node information query, and some chain operations. After the merchant has successfully registered, the organization id, chain information, etc. can be obtained through baas. These information are necessary information for subsequent interface services.

Trustsql is the underlying service of Tencent’s blockchain. It mainly provides operations such as transaction insertion and transaction query. Users can directly develop this layer, but the difficulty will increase a lot. In order to better allow users to quickly access the Tencent blockchain, trustsql provides upper-level interface encapsulation. There are mainly two types, namely digital asset service and shared information service. These two services provide rest-style interfaces, which can be very convenient. Access.

Digital asset services, shared information services, and trustsql services are all decentralized, deployed on nodes in the form of mirrors, and controlled by operating permissions. Users can close and open interfaces according to their needs.

BaaS platform architecture

The BaaS open platform is positioned as an enterprise-level blockchain application open platform provided by Tencent’s blockchain. Customers can use the test chain for service testing or build their own exclusive alliance chain. The overall architecture design of the BaaS open platform is divided into two parts: the chain management platform and the node management platform.

The chain management platform is responsible for the construction of the chain and the management of the chain, nodes, and members, without involving business logic and reading and writing data.

The node management platform, deployed locally on the node, can help users manage data and business logic, and has functions such as user public key management and blockchain browsers.

The chain management platform manages the dimensions of the alliance chain, focusing on management functions, providing BaaS-level functional APIs for invocation, and does not involve business data on the nodes. Both chain owners and participants can register and log in to the baas platform to register and log in to view and manage the alliance chains they have created or participated in.

The node management platform manages the dimension of nodes, focusing on business functions, and provides node-level function APIs deployed on each node for calling (digital assets, shared ledger), and blockchain browsers. The node owner can log in to his node management platform to view and manage his own nodes and the data on the chain.

In addition, Tencent blockchain provides two types of interface services: BaaS-level functional interfaces and node-level functional interfaces. Used to complete management and business functions.

In order to further simplify the work of application platform interface docking, there is also an SDK development kit that encapsulates functions such as public and private key pair generation, address generation, signature, verification, encryption, and decryption. It provides Java and C++ language support to facilitate business development. The person uses directly.

BaaS-level features

BaaS-level functional interfaces are mainly used for chain management and private key custody services, including:

(1) “Get chain information through nodes” interface and “Get chain and node information on the chain” interface in the block chain browser interface;

(2) Tencent Public Key Infrastructure (TPKI) interface;

Node-level functional interface

Through the image file, it is deployed locally on the user node and is mainly used to include:

(1) Digital asset service interface;

(2) Shared information service interface;

(3) “Get transaction information through block height” interface in the block chain browser interface;

Interface design ideas

The TrustSQL application platform interface includes two application scenarios of digital assets and information sharing, and interfaces for other scenarios will continue to be introduced later. The interface design follows the following ideas:

(1) The private key of the organization and the private key of the organization user are recommended to be kept by the user. The platform also provides custody services.

(2) The interface interaction process of digital assets is divided into two steps: “application” and “submission”. The two steps need to call the interface of the same node to complete. Submit signature for confirmation. Except the query interface.

(3) The information sharing interface supports submissions that do not contain signature parameters. At this time, the interface will return the string to be signed, and the user can submit it again after generating a signature based on the string to be signed.

Consortium chain creation process

The consortium chain creation process mainly includes four steps, which are in order to create a consortium chain, add nodes, invite members, and start the consortium chain. You can operate according to the process prompts when creating.

The new consortium chain mainly completes the naming and related description of the consortium chain.

Adding nodes is mainly to join each participant to the alliance chain, and an alliance chain requires at least four nodes to participate in order to start operation. There are currently three ways to add nodes, namely: purchasing a node, adding an associated node, and associating an existing Tencent Cloud machine.

Inviting members is mainly the ability of the initiator of the consortium chain to invite participants on other chains to enter the consortium chain. When the initiator invites other institutions to enter the consortium chain, it can be divided into two categories according to whether the invited party needs to bring its own node into the consortium chain: distribution node and self-contained node.

At least 4 nodes are required to start a consortium chain. When this condition is met, a consortium chain can be started.

The basic process of digital asset service (taking asset issuance as an example):

1. The user registers on the baas platform, and obtains the organization id after successful registration.

2. Upload the organization public key on the baas interface. The public key is used for signature verification, and the corresponding private key is used for encryption of the communicating party. It is recommended to save the private key by yourself. Baas also provides private key custody services.

3. Creating a new alliance chain involves associating with Tencent Cloud, purchasing machines, entering node information, starting the alliance chain, and obtaining the chain id after success.

4. Digital asset issuance application.

5. Digital asset issuance and submission.

The basic process of shared information service (take the newly added shared information as an example):

1. The user registers on the baas platform, and obtains the organization id after successful registration.

2. Upload the organization public key on the baas interface. The public key is used for signature verification, and the corresponding private key is used for encryption of the communicating party. It is recommended to save the private key by yourself. Baas also provides private key custody services.

3. Creating a new alliance chain involves associating with Tencent Cloud, purchasing machines, entering node information, starting the alliance chain, and obtaining the chain id after success.

4. Application for sharing information.

5. Shared information submission.

Posted by:CoinYuppie,Reprinted with attribution to:https://coinyuppie.com/reading-tencent-blockchain-in-one-article/
Coinyuppie is an open information publishing platform, all information provided is not related to the views and positions of coinyuppie, and does not constitute any investment and financial advice. Users are expected to carefully screen and prevent risks.

Leave a Reply