A blockchain network construction method, system and terminal device that is easy to expand and reuse node resources

By adopting the partitioning scheme of root chain and business sub-chain in blockchain technology, and using BUSID logical isolation and Gas transaction mode, the scalability and interoperability issues of blockchain technology in different scenarios are solved. Improved transaction processing speed and security to meet the needs of multiple scenarios.

CN112163950BActive Publication Date: 2024-10-01HUNAN HEXIN ANHUA BLOCKCHAIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011020872.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2024-10-01
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

Existing blockchain technology has limited scalability and interoperability in different application scenarios, resulting in storage capacity and transaction throughput being unable to meet the needs of multiple scenarios, and existing sharding solutions have state consistency and security issues between shards. .

Method used

The root chain is used as the main chain, and business sub-chains are expanded based on the root chain transaction vouchers. Each business chain is distinguished through BUSID logic, and partitioning and sharding are implemented on the blockchain nodes. The Gas transaction model is used to create sub-chains, and Byzantine generals are used. The online voting consensus mechanism for issues ensures the safety and efficiency of chain building.

Benefits of technology

It achieves flexible expansion of the blockchain system and reuse of node resources, improves transaction processing speed and TPS capabilities, meets the needs of different business scenarios, and ensures the security of the chain building process through security mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112163950B_ABST
    Figure CN112163950B_ABST
Patent Text Reader

Abstract

The present invention discloses a blockchain construction method that is convenient for expansion and node resource reuse, which is used for a blockchain chain network structure formed by the participation of multiple blockchain nodes, including: the subchain initiator determines the subchain BUSID name and the number of subchain genesis tokens, and creates a first blockchain account and a second blockchain account; initiates a Gas transaction to the ROOT chain according to the first blockchain account address, and the Gas transaction information includes a chain building secret to ensure the security of the Gas transaction; determines whether the subchain initiator submits a subchain creation request to the blockchain network according to the transaction result; verifies the subchain creation request; after verification, the blockchain network creates a subchain genesis block according to the chain building information, thereby completing the creation of the subchain. Compared with the related art, the present invention creates a business subchain based on the BUSID identifier, and the subchain is logically isolated. Each chain can share node capabilities and can also facilitate blockchain partitioning and sharding processing, providing support for TPS customization of specific business chains.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of blockchain technology, and specifically relates to a blockchain network construction method, system and terminal device that are convenient for expansion and node resource reuse. Background Art

[0002] Blockchain is a new application system based on computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. It is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. In a narrow sense, blockchain is a chain data structure that combines data blocks in a sequential manner in chronological order, and a distributed ledger that is tamper-proof and unforgeable by cryptography. In a broad sense, blockchain technology is a new distributed infrastructure and computing method that uses block chain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses smart contracts composed of automated script codes to program and operate data.

[0003] At present, blockchain mainly issues business tokens based on the smart contract model, such as Ethereum's ERC2.0, etc. The value only circulates in its own chain. Each chain is an independent, vertical closed system, which gradually becomes incompatible information islands, more like a "local area network". The cooperation and interconnection of different blockchain platforms in different application fields have become crucial. It is necessary to enable blockchain to be used in different scenarios, including finance, manufacturing and government management. Due to limited interoperability, the scalability of blockchain is also greatly affected, and the storage capacity and transaction throughput cannot meet the needs of multi-scenario use.

[0004] In order to solve the scalability problem, existing technologies include side chains, lightning networks, and sharding. Side chains are currently the most important means to solve scalability problems. Lightning networks are another way to alleviate the scalability problem of blockchains. Sharding is used in databases and network transmissions. The core idea is to divide large databases or large messages into smaller, faster, and easier to manage parts. However, when the exchange involves two shards, it becomes more complicated. There are problems such as state consistency and security between shards. Ethereum has proposed its own solution to solve this problem.

[0005] Application No. 201811166088.9 proposes a new type of blockchain partitioning method and device, including the internal division of the blockchain node into a main zone and multiple sub-zones; each account has an independent account in the main zone and each sub-zone; the blockchain smart contract is installed in the main zone or the sub-zone; transactions can be conducted between different sub-accounts in the same sub-zone; transactions cannot be conducted between different sub-accounts under different sub-zones that are not under the same account; transactions can only be conducted between the main account and sub-accounts under the same account between different zones. This method sets up a main account and a zone sub-account for an account, and establishes an independent transaction verification processing unit in each zone, so that transaction requests for different zones can be processed in parallel, breaking through the previous method that transactions must be processed serially in the blockchain system, and greatly improving the transaction processing speed and capacity of the blockchain system. However, this method divides the blockchain nodes into different zones, and cross-zone transactions cannot be conducted between different zones and different accounts, which affects the scalability of the blockchain to a certain extent. Summary of the invention

[0006] In order to solve the problems existing in the prior art, the present invention provides a blockchain network construction method and system that is convenient for expansion and node resource reuse, with the root chain as the main chain, and based on the root chain transaction certificate, the business sub-chain is expanded and issued, and the business chains are logically distinguished by BUSID. The root chain and the business chain can share the blockchain node or run on their own blockchain node, so as to conveniently and flexibly support partitioning and sharding, improve the system TPS capability, and meet the needs of different business scenarios.

[0007] On the one hand, the present invention proposes a blockchain construction method that is easy to expand and reuse node resources, which is used for a blockchain chain network structure formed by multiple blockchain nodes, including:

[0008] The subchain initiator determines the subchain BUSID name and the number of subchain genesis tokens, and creates a first blockchain account and a second blockchain account. The first blockchain account is used to obtain the ROOT chain token in the blockchain network.

[0009] Initiate a Gas transaction to the ROOT chain according to the first blockchain account address, wherein the Gas transaction information includes a chain building secret phrase, which is used to ensure the security of the Gas transaction;

[0010] According to the transaction results, determine whether the subchain initiator submits a subchain creation request to the blockchain network;

[0011] Verify the subchain creation request, including verification of the subchain creation parameters and the subchain creation secret;

[0012] After the verification is passed, the blockchain network creates a sub-chain genesis block based on the chain building information, thereby completing the creation of the sub-chain. The chain building information includes the second blockchain account, the number of sub-chain genesis tokens, and the sub-chain BUSID.

[0013] Furthermore, a Gas transaction is initiated to the ROOT chain according to the first blockchain account address, and the Gas transaction information includes a chain building secret phrase for ensuring the security of the Gas transaction, including: the chain building secret phrase is a random string str obtained by signing with the private key of the second blockchain account.

[0014] Furthermore, after the transaction is successful, the subchain initiator submits a subchain creation request to the blockchain network, wherein the content of the subchain creation request includes: subchain BUSID name, number of subchain genesis tokens, second blockchain account and its public key, Gas transaction ID, Gas consumption, chain creation secret original string str, and subchain description information.

[0015] Furthermore, the verification of the subchain creation request includes verification of the subchain establishment parameters and the chain establishment secret, wherein: the verification of the subchain establishment parameters is used to verify whether the subchain establishment parameters meet the chain establishment requirements;

[0016] The chain building secret verification method is as follows: use the Gas transaction ID to search for the Gas transaction to obtain the chain building secret in the Gas transaction; use the public key of the second blockchain account to verify the chain building secret and the original string str of the chain building secret.

[0017] Another aspect of the present invention provides a blockchain network system that is easy to expand and reuse node resources, including multiple sub-chains and multiple blockchain nodes, wherein the multiple blockchain nodes are divided into: accounting nodes, which are used to join the blockchain network system, participate in transaction consensus, record transaction information and store blocks on disk; monitor / observer nodes, which are used to join the blockchain network system, receive network transaction information but do not participate in transaction consensus, and record the transaction information after consensus and store blocks on disk; light nodes, which are used not to join the blockchain network system but generate blockchain accounts and initiate transaction queries and block queries to the blockchain network system; the multiple sub-chains and multiple blockchain nodes are divided into multiple virtual blockchain networks, and whether the blockchain node participates in the transaction consensus and the accounting node is determined according to the sub-chain BUSID name in different virtual blockchain networks; wherein, in the sub-chains, other blockchain nodes that do not participate in the transaction consensus authorize the accounting node to process.

[0018] The method and system for constructing a blockchain network that is convenient for expansion and node resource reuse of the present invention create business sub-chains based on BUSID identification, and the sub-chains are logically isolated. Each chain can share node capabilities and can also conveniently perform blockchain partitioning and sharding processing, thereby providing support for TPS customization of specific business chains; sub-chains are created in a Gas transaction mode, making the creation of business sub-chains convenient, simple and controllable; chain building security is ensured based on a chain building secret security mechanism; a network voting consensus mechanism based on the Byzantine Generals Problem is used to solve the problems of low TPS efficiency and high resource consumption of existing blockchain technology, which cannot meet practical application requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0020] Figure 1 This is a flowchart of a blockchain network construction method that is convenient for expansion and node resource reuse provided by an embodiment of the present invention;

[0021] Figure 2 This is a schematic diagram of the structure of a blockchain network system that is easy to expand and reuse node resources provided by an embodiment of the present invention;

[0022] Figure 3 It is a schematic diagram of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0024] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.

[0025] Blockchain account: A public-private key pair is generated based on the public-private key system of asymmetric encryption. The public key in the public-private key pair is then used to perform the corresponding hash algorithm (MD5, SHA, SM3, etc.), and then the blockchain account address corresponding to the public-private key pair is obtained through the corresponding encoding (Base58, hexadecimal encoding, etc.).

[0026] Root chain: It is the chain that is generated and initialized when the blockchain node is started. The creation wallet, the number of tokens and the chain name are fixed to root. The root chain can be upgraded to any consensus mechanism through voting mechanism, including but not limited to POW, POS, etc.

[0027] Business chain: refers to the chain generated from the root chain. Its generation requires the consumption of a certain number of root chain tokens, the genesis wallet of the business chain, the number of tokens (circulating encrypted digital rights certificates), etc.

[0028] See also Figure 1 , Figure 1 This is a blockchain network construction method that is convenient for expansion and node resource reuse provided by an embodiment of the present invention. Figure 1 As shown, the blockchain network construction method of this embodiment includes the following steps:

[0029] S101: The subchain initiator determines the subchain BUSID name and the number of subchain genesis tokens, and creates a first blockchain account and a second blockchain account, wherein the first blockchain account is used to obtain the ROOT chain token in the blockchain network.

[0030] In the embodiment of the present invention, the chain initiator is in the preparation stage. The chain initiator first creates a blockchain account A, uses account A to obtain a certain amount of ROOT chain tokens, creates a subchain root account S, selects the BUSID name of the subchain, and determines the number of genesis tokens to be issued for the creation of the subchain.

[0031] S102: Initiate a Gas transaction to the ROOT chain according to the first blockchain account address, where the Gas transaction information includes a chain building secret phrase to ensure the security of the Gas transaction.

[0032] In this embodiment of the present invention, an account address A (also called the first blockchain account address) is used to initiate a transaction transfer to the designated transaction address G of the ROOT chain (G is the default account address for collecting gas fees for building a subchain), for example: A spends 100 and G receives 100. The transaction information must contain a chain building secret, which is a random string str signed by the private key of the subchain root account S.

[0033] In the prior art, there are two main types of Gas transactions. One is the fee model, that is, when the transaction initiator initiates a transaction, in addition to the asset transfer of the transaction itself, some additional transaction fees are also attached. The additional transaction fees are for miners, that is, whoever (who refers to the node) helps me package (that is, bookkeeping) this transaction, it will be given to whoever. When packaging, the node will also sort according to the transaction fees in the transaction, and will give priority to packaging those transactions with high transaction fees. The other is the execution mode consumption, which mainly refers to the smart contract Gas consumption. Taking Ethereum as an example, a smart contract needs to reserve a certain amount of Gas before execution. When each line of code of the contract is executed by EVM, a certain execution fee will be deducted from the designated Gas account until the contract program is executed. If there is any remaining in the Gas account, it will be returned to the caller of the contract.

[0034] In the embodiment of the present invention, the Gas transaction is a separate payment execution action, and the transaction fee is not paid to a specific packaging node, but to the chain operator. The chain initiator pays the chain operator the chain Gas fee. The Gas fee account is an account designated by the chain operator. The subchain creation program will check whether this account has received the fee paid by the chain initiator, that is, the Gas transaction. After detection, it will check the information reserved by the chain builder in the Gas transaction. After the check is passed, the chain building program will be started to create the subchain.

[0035] S103: Determine, based on the transaction result, whether the sub-chain initiator submits a sub-chain creation request to the blockchain network.

[0036] After the transaction is successful, the subchain initiator requests to create a subchain, otherwise the request to create a subchain fails.

[0037] In one embodiment of the present invention, the content of the subchain creation request includes: subchain BUSID name, number of subchain genesis tokens, second blockchain account and its public key, Gas transaction ID, Gas consumption, chain creation secret original string str, and subchain description information.

[0038] S104: Verify the subchain creation request, including verifying the subchain creation parameters and the subchain creation password.

[0039] In one embodiment of the present invention, after receiving a request to create a subchain, the blockchain network checks the chain building parameters to see whether they meet the requirements, and uses the Gas transaction ID to find the Gas consumption transaction, obtains the chain building password in the Gas transaction, and uses the public key of the subchain root account S to verify the chain building password and the original string str of the chain building password.

[0040] S105: After verification, the blockchain network creates a sub-chain genesis block based on the chain building information, where the chain building information includes the second blockchain account, the number of sub-chain genesis tokens, and the sub-chain BUSID.

[0041] In one embodiment of the present invention, after the subchain genesis block is completed, the genesis block includes the subchain BUSID, which is subsequently derived into a subchain, thereby forming a tree-structured blockchain to facilitate blockchain partitioning and sharding. In this embodiment, the subchains generated by this method are in parallel, so the blockchain can be expanded infinitely, thereby improving the overall performance of the blockchain.

[0042] In the present invention, a business subchain is created based on the BUSID identifier, and the subchain is logically isolated. Each chain can share node capabilities and facilitate blockchain partitioning and sharding, providing support for TPS customization of specific business chains. The subchain is created in the Gas transaction mode, making the creation of business subchains convenient, simple and controllable. The chain establishment security mechanism is based on the chain establishment secret message security mechanism to ensure chain establishment security.

[0043] Reference Figure 2 The present invention provides a blockchain network system that is easy to expand and reuse node resources, including multiple subchains and multiple blockchain nodes, wherein the multiple blockchain nodes are divided into: accounting nodes, which are used to join the blockchain network system, participate in transaction consensus, record transaction information and store it in blocks; monitoring / observer nodes, which are used to join the blockchain network system, receive network transaction information, but do not participate in transaction consensus, and record the transaction information after consensus and store it in blocks;

[0044] A light node is used to generate a blockchain account without joining the blockchain network system, and initiate transaction queries and block queries to the blockchain network system; the multiple sub-chains and multiple blockchain nodes are divided into multiple virtual blockchain networks, and in different virtual blockchain networks, whether the blockchain node participates in the transaction consensus and the accounting node is determined according to the sub-chain BUSID name; wherein, in the sub-chain, other blockchain nodes that do not participate in the transaction consensus authorize the accounting node to process.

[0045] In one embodiment of the present invention, a schematic diagram of the chain network system structure is provided, and a blockchain network is formed by 14 blockchain nodes. Generally, these blockchain nodes can be distributed in one subchain or in multiple subchains. Specifically, the 14 nodes are distributed in different subchains A, B, and C, and are divided into three virtual areas, among which the five nodes A1, A2, A3, A4, and A5 on subchain A determine that they have participated in the consensus protocol according to the BUSID of the subchain, forming the consensus node of subchain A. Therefore, if the BUSID in the blockchain network is a transaction of subchain A, the transaction consensus is only carried out in the consensus node in subchain A (of course, subchain A also has nodes other than A1, A2, A3, A4, and A5), and other nodes in subchain A entrust these consensus nodes to handle this transaction (including consensus block generation, query, etc.). Similarly, if the BUSID in the blockchain network is a transaction of subchain B, the transaction consensus is only carried out in the consensus nodes of subchain B (B1, B2, B3, B4, B5). If the BUSID in the blockchain network is a transaction of the ROOT chain and subchain C, the transaction consensus is carried out in the middle nodes (C1, C2, C3, C4). In other words, in the blockchain network system of the present invention, the nodes of each subchain can be divided into certain tasks. By using the BUSID of the subchain, each business chain can be logically distinguished, and the blockchain nodes can be shared or each can be run on its own blockchain node, so as to conveniently and flexibly support partitioning and sharding, improve the system TPS capability, and meet the needs of different business scenarios.

[0046] In the embodiment of the present invention, blockchain nodes are connected by P2P communication method. Specifically, after a subchain is created, each chain has a BUSID. Then, all data of this type of chain is responsible for the communication group named BUSID. After receiving the request information of this chain, those not in this communication group will automatically forward it to the corresponding BUSID communication group for processing. In addition, the corresponding communication group service between nodes can be dynamically started and stopped according to business needs.

[0047] Specifically, each accounting node will be added to a public service group after startup, and each accounting node in the public service group is peer-to-peer and communicable. After each subchain is created, the blockchain network will create a subchain communication service group for this subchain, which is the BUSID communication group. The subchain communication service group is a logical communication group above the public service group. The nodes participating in the subchain consensus will join this subchain communication service group. The relevant communications within the subchain consensus node will communicate in the subchain communication group, and the communication between different subchain nodes can communicate through the public service group. By setting the BUSID communication group, the present invention makes the communication control of the accounting nodes participating in the consensus within the subchain communication group, which can effectively control the communication range of the consensus node, avoid network flooding, and improve response efficiency.

[0048] In an embodiment of the present invention, the multiple subchains and multiple blockchain nodes are divided into multiple virtual blockchain networks. In different virtual blockchain networks, whether the blockchain node participates in the transaction consensus and the accounting node is determined according to the subchain BUSID name; wherein, whether to participate in the transaction consensus is completed using a consensus algorithm, and the consensus algorithm is:

[0049]

[0050] Among them, N is the number of online accounting nodes in the entire network. Each accounting node monitors all online accounting nodes in real time through the network heartbeat mechanism;

[0051] P is the participation of accounting nodes, , the initial value of P is 1, , m is the number of transactions in the entire network recorded by this accounting node, and q is the number of correct consensuses that this accounting node has participated in accounting, recorded by this accounting node;

[0052] T is the algorithm adjustment parameter, where , set according to actual business needs.

[0053] The accounting nodes that adopt the above consensus algorithm are more loyal with longer operation time; the accounting nodes with higher accuracy in consensus accounting are more loyal; the accounting nodes belonging to the same organization or individual will have their calculation weights reduced in proportion when there is a consensus conflict. Avoid reaching accounting consensus through resource consumption mode, deconstruct the network model through the business partition mode of the above consensus algorithm mechanism, and improve the system's TPS and scalability.

[0054] Figure 3 Schematic diagram of a terminal device provided by an embodiment of the present invention. Figure 3 As shown, the terminal device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a program for credit financing. When the processor 60 executes the computer program 62, the steps in the above method embodiment are implemented, for example, Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of the modules / units in the above-mentioned device embodiments are realized.

[0055] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 62 in the terminal device 6.

[0056] The terminal device 6 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 6 may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 3 It is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0057] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0058] The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used to store the computer program and other programs and data required by the terminal device 6. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0059] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0060] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0061] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0062] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0063] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0064] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0065] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0066] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A blockchain construction method that is easy to expand and reuse node resources, used for a blockchain network structure formed by multiple blockchain nodes. It is characterized in that include: The subchain initiator determines the subchain BUSID name and the number of subchain genesis tokens, and creates a first blockchain account and a second blockchain account. The first blockchain account is used to obtain the ROOT chain token in the blockchain network. Initiate a Gas transaction to the ROOT chain according to the first blockchain account address, wherein the Gas transaction information includes a chain building secret phrase, which is used to ensure the security of the Gas transaction; According to the transaction results, determine whether the subchain initiator submits a subchain creation request to the blockchain network; Verify the subchain creation request, including verification of the subchain creation parameters and the subchain creation secret; After the verification is passed, the blockchain network creates a sub-chain genesis block based on the chain building information, where the chain building information includes the second blockchain account, the number of sub-chain genesis tokens, and the sub-chain BUSID.

2. The blockchain construction method for convenient expansion and node resource reuse according to claim 1, It is characterized in that Initiate a Gas transaction to the ROOT chain according to the first blockchain account address, wherein the Gas transaction information includes a chain building secret phrase, which is used to ensure the security of the Gas transaction, including: The chain building secret is a random string str obtained by signing with the private key of the second blockchain account.

3. The blockchain construction method for convenient expansion and node resource reuse according to claim 2, It is characterized in that According to the transaction result, determine whether the subchain initiator submits a subchain creation request to the blockchain network, wherein the content of the subchain creation request includes: Subchain BUSID name, number of subchain genesis tokens, second blockchain account and its public key, Gas transaction ID, Gas consumption, original string str of chain creation secret, and subchain description information.

4. The blockchain construction method for convenient expansion and node resource reuse according to claim 3, It is characterized in that The verification of the subchain creation request includes verification of the subchain creation parameters and the subchain creation secret, wherein: The verification of the subchain establishment parameters is used to verify whether the subchain establishment parameters meet the chain establishment requirements; The specific method of chain building secret verification is as follows: Use the Gas transaction ID to search for the Gas transaction and obtain the chain building secret in the Gas transaction; Use the public key of the second blockchain account to verify the chain building secret and the original string str of the chain building secret.

5. A blockchain network system that is easy to expand and reuse node resources, using the blockchain construction method described in any one of claims 1 to 4, Features: It contains multiple sub-chains and multiple blockchain nodes, where multiple blockchain nodes are divided into: Accounting nodes are used to join the blockchain network system, participate in transaction consensus, record transaction information and store blocks on disk; Monitor / Observer nodes are used to join the blockchain network system and receive network transaction information, but do not participate in transaction consensus. They record the transaction information after consensus and store it in blocks. Light nodes are used to not join the blockchain network system, but generate blockchain accounts and initiate transaction queries and block queries to the blockchain network system; The multiple sub-chains and multiple blockchain nodes are divided into multiple virtual blockchain networks. In different virtual blockchain networks, whether a blockchain node participates in transaction consensus and determines the accounting node according to the sub-chain BUSID name. Among them, in the sub-chain, other blockchain nodes that do not participate in transaction consensus authorize the accounting node to process.

6. A blockchain network system that is convenient for expansion and node resource reuse according to claim 5, characterized in that: It further includes a public service group and a sub-chain communication group. The public service group is automatically joined after the accounting node is started, and each accounting node in it is in peer-to-peer communication; The sub-chain communication group is generated during the creation of the sub-chain and is located within the public service group; Among them, the communication of all accounting nodes participating in transaction consensus is carried out within the sub-chain communication group, and the communication between blockchain nodes in different sub-chains is through the public service group communication.

7. A blockchain network system that is convenient for expansion and node resource reuse according to claim 5, characterized in that: The multiple sub-chains and multiple blockchain nodes are divided into multiple virtual blockchain networks. In different virtual blockchain networks, whether a blockchain node participates in transaction consensus and determines the accounting node according to the sub-chain BUSID name. Among them, the non-participation in transaction consensus is completed by a consensus algorithm, and the consensus algorithm is: Among them, N is the number of online accounting nodes in the whole network, and each accounting node listens to all online accounting points in real time through the network heartbeat mechanism; P is the participation of the accounting node, where 0 < P ≤ 1, and the initial value of P is 1. m is the number of network-wide transactions recorded by this accounting node, and q is the number of correct consensus times that this accounting node has participated in accounting for this accounting point. T is an algorithm adjustment parameter, where 1 < T ≤ N / 2, which is set according to the actual business needs.

8. A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1-4.