CN112163950A - Block chain network construction method and system convenient for expansion and node resource reuse and terminal equipment - Google Patents

Block chain network construction method and system convenient for expansion and node resource reuse and terminal equipment Download PDF

Info

Publication number
CN112163950A
CN112163950A CN202011020872.6A CN202011020872A CN112163950A CN 112163950 A CN112163950 A CN 112163950A CN 202011020872 A CN202011020872 A CN 202011020872A CN 112163950 A CN112163950 A CN 112163950A
Authority
CN
China
Prior art keywords
chain
sub
transaction
blockchain
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011020872.6A
Other languages
Chinese (zh)
Other versions
CN112163950B (en
Inventor
钱路芳
冯武
蒋作为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Hexin Anhua Blockchain Technology Co Ltd
Original Assignee
Hunan Hexin Anhua Blockchain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Hexin Anhua Blockchain Technology Co Ltd filed Critical Hunan Hexin Anhua Blockchain Technology Co Ltd
Priority to CN202011020872.6A priority Critical patent/CN112163950B/en
Publication of CN112163950A publication Critical patent/CN112163950A/en
Application granted granted Critical
Publication of CN112163950B publication Critical patent/CN112163950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Computing Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a block chain construction method convenient for expansion and node resource reuse, which is used for a block chain network structure formed by a plurality of block chain nodes, and comprises the following steps: the subchain initiator determines a subchain BUSID name and the number of subchain creations and generations and generates a first blockchain account and a second blockchain account; initiating a Gas transaction to a ROOT chain according to the first block chain account address, wherein the Gas transaction information comprises a link establishment secret key and is used for ensuring the safety of the Gas transaction; determining whether the sub-chain initiates a direction block chain network to submit a request for creating the sub-chain according to a transaction result; verifying the request for creating the child chain; after the verification is passed, the block chain network creates a sub-chain created block according to the link establishment information, and therefore creation of the sub-chain is completed. Compared with the prior art, the business subchain is created based on the BUSID identification, the subchains are logically isolated, each chain can share the node capacity, the partition and the fragmentation processing of the block chain can be conveniently carried out, and support is provided for TPS customization of specific business chains.

Description

Block chain network construction method and system convenient for expansion and node resource reuse and terminal equipment
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a block chain network construction method, a system and terminal equipment which are convenient to expand and reuse node resources.
Background
The block chain is a novel application system based on distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and other computer technologies. It is essentially a decentralized database, a string of data blocks associated by cryptography, each data block containing information of a batch of network transactions for verifying the validity (anti-counterfeiting) of the information and generating the next block. In a narrow sense, the blockchain is a distributed account book which is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence and is guaranteed in a cryptographic mode and cannot be tampered and forged. Broadly, the blockchain technique is a completely new distributed infrastructure and computing approach that utilizes blockchain data structures to verify and store data, utilizes distributed node consensus algorithms to generate and update data, utilizes cryptography to secure data transmission and access, and utilizes intelligent contracts composed of automated script code to program and manipulate data.
The current blockchain mainly issues service Token based on an intelligent contract mode, for example, ERC2.0 of an ethernet workshop, and the value is only circulated in the chain, each chain is an independent and vertical closed system, and the chains gradually become incompatible information islands, more like a local area network. The cooperation and interconnection of different blockchain platforms for different application domains becomes crucial. There is a need to enable blockchains to be used in different scenarios, including financial, manufacturing, and government regulations. Due to limited interoperability, the scalability of the blockchain is also greatly affected, and the storage capacity and transaction throughput cannot meet the multi-scenario usage.
In order to solve the problem of expandability, the prior art provides a side chain, a lightning network, fragments and the like, wherein the side chain is the most main means for solving the expandability at present, the lightning network is another method for relieving the expandability problem of the block chain, the fragments are used in a database and network transmission, and the core idea is to divide a large database or a large message into smaller, faster and easier-to-manage parts. However, when two areas involved in a transaction become more complex, the problems of state consistency, safety and the like between the areas exist, and the ether workshop proposes a scheme of the ether workshop to solve the problems.
Application number 201811166088.9 provides a novel partition and fragmentation mode and device for a block chain, which comprises a main fragment area and a plurality of sub fragment areas which are divided inside a block chain node; each account has an independent account in the main film area and each sub-film area; a blockchain intelligent contract is installed on the master slice area or the sub-slice area; different sub-accounts in the same sub-area can be traded; the transaction cannot be carried out among different sub-accounts under different sub-area non-identical accounts; only transactions between the main account and the sub-account under the same account can be conducted in different slice intervals. The mode sets up a main account and a sub-account of the block area for the account, and sets up an independent transaction verification processing unit in each block area, so that transaction requests of different block areas can be processed in parallel, the mode that transactions must be processed in series in the prior block chain system is broken through, and the transaction processing speed and capability of the block chain system are greatly improved. However, in the method, the block chain links are divided into different areas, and cross-piece transactions cannot be performed between different areas and between different accounts, so that the expandability of the block chain is influenced to a certain extent.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a block chain network construction method and system convenient for expansion and node resource reuse. The root chain and the service chain can share the block chain link points and can also respectively run on the block chain link points, so that the partition and the fragmentation can be conveniently and flexibly supported, the TPS (thermoplastic polystyrene) capacity of the system is improved, and the requirements of different service scenes are met.
The invention provides a block chain construction method convenient for expansion and node resource reuse, which is used for a block chain network structure formed by a plurality of block chain nodes, and comprises the following steps:
the method comprises the steps that a subchain initiator determines a subchain BUSID name and the number of subchain created passage certificates, and creates a first blockchain account and a second blockchain account, wherein the first blockchain account is used for obtaining the passage certificates of ROOT chains in a blockchain network;
initiating a Gas transaction to a ROOT chain according to the first block chain account address, wherein the Gas transaction information comprises a link establishment secret key and is used for ensuring the safety of the Gas transaction;
determining whether the sub-chain initiates a direction block chain network to submit a request for creating the sub-chain according to a transaction result;
verifying the sub-chain establishing request, including verifying the sub-chain establishing parameters and verifying the establishing password;
and after the verification is passed, the block chain network creates a sub-chain creation block according to the link creation information so as to complete the creation of the sub-chain, wherein the link creation information comprises a second block chain account, the number of sub-chain creation passage certificates and the sub-chain BUSID.
Further, initiating a Gas transaction to a ROOT chain according to the first blockchain account address, where the Gas transaction information includes a link establishment secret, and is used to ensure security of the Gas transaction, and the method includes: and the link establishing secret is a random character string str obtained by utilizing a private key signature of the second blockchain account.
Further, after the transaction is successful, the child chain initiator submits a child chain creation request to the blockchain network, where the content of the child chain creation request includes: the name of the sub-chain BUSID, the number of the sub-chain generations of the testimony, the account of the second block chain and the public key thereof, the Gas transaction ID, the Gas consumption, the original string str of the build chain secret language and the description information of the sub-chain.
Further, the verifying the create sub-chain request includes verifying a parameter and a secret of the link establishment of the sub-chain, where: the verification of the sub-chain link establishment parameters is used for verifying whether the sub-chain link establishment parameters meet the link establishment requirements;
the link establishment secret language verification method specifically comprises the following steps: searching the Gas transaction by using the Gas transaction ID to obtain a link establishing secret language in the Gas transaction; and verifying and signing the original string str of the build chain ciphertext and the build chain ciphertext by using the public key of the second blockchain account.
In another aspect of the present invention, a conveniently-extensible blockchain network system for node resource reuse is provided, which includes a plurality of sub-chains and a plurality of blockchain nodes, where the plurality of blockchain nodes are: the accounting node is used for joining the blockchain network system, participating in transaction consensus, recording transaction information and storing the transaction information in a block falling disk manner; the monitoring/observer node is used for joining the blockchain network system, receiving the network transaction information but not participating in transaction consensus, and recording the consensus transaction information and storing the consensus transaction information in a blockchain manner; the light node is used for generating a blockchain account without adding the blockchain network system, and initiating transaction inquiry and blockchain inquiry to the blockchain network system; the plurality of sub chains and the plurality of block chain nodes are divided into a plurality of virtual block chain networks, and whether block chain link points participate in transaction consensus or not is determined according to sub chain BUSID names in different virtual block chain networks, so that accounting nodes are determined; and authorizing the accounting node processing by other block nodes which do not participate in transaction consensus in the sub-chain.
According to the block chain network construction method and system convenient for expansion and node resource reuse, the service sub chains are created based on the BUSID identification, the sub chains are logically isolated, each chain can share the node capacity, block chain partitioning and fragmentation processing can be conveniently carried out, and support is provided for TPS customization of specific service chains; creating the sub-chain in a Gas transaction mode, so that the creation of the service sub-chain is convenient, simple and controllable; ensuring the safety of the link establishment based on a link establishment secret language safety mechanism; by using a network voting consensus mechanism based on the problem of the general of Byzantine, the problems that the TPS in the existing block chain technology is low in efficiency, high in resource consumption and incapable of meeting practical application are solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for constructing a blockchain network that facilitates expansion and node resource reuse according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a conveniently-expanded blockchain network system for node resource reuse according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
A blockchain account: and based on a public and private key system of asymmetric encryption, generating a public and private key pair, then performing a corresponding hash algorithm (MD 5, SHA, SM3 and the like) on a public key in the public and private key pair, and obtaining a block chain account address corresponding to the public and private key pair through a corresponding code (Base 58, 16-system code and the like).
Root chain: the chain is created when the block chain link point is started, and the creation wallet, the number of certificates and the chain name are initialized and fixed as root. The Root chain may be upgraded to any consensus mechanism, including but not limited to POW, POS, etc., via a voting mechanism.
And (4) service chaining: the chain generated from the root chain needs to consume a certain number of root chain certificates, money packets created by the business chain, the number of certificates (circulated encrypted digital rights certificates) and the like.
Referring to fig. 1, fig. 1 is a block chain network construction method for facilitating expansion and node resource reuse according to an embodiment of the present invention. As shown in fig. 1, the method for constructing a blockchain network of the present embodiment includes the following steps:
s101: the subchain initiator determines a subchain BUSID name and the number of subchain created passage certificates, and creates a first blockchain account and a second blockchain account, wherein the first blockchain account is used for obtaining the passage certificates of the ROOT chain in the blockchain network.
In the embodiment of the invention, a link establishment initiator is in a preparation stage, the link establishment initiator firstly creates a block link account A, obtains a certain ROOT link certificate by using the account A, creates a sub-link ROOT account S, well selects the BUSID name of a sub-link, and determines the number of created certificates to be issued when the sub-link is created.
S102: and initiating a Gas transaction to a ROOT chain according to the first block chain account address, wherein the Gas transaction information comprises a link establishment secret key and is used for ensuring the safety of the Gas transaction.
In the embodiment of the present invention, an account address a (also referred to as a first blockchain account address) is used to initiate a transaction transfer to a designated transaction address G of the ROOT chain (G is a default account address for creating a subchain for Gas fee), for example: a counts out 100 and G incomes 100. The transaction information must contain a chaining secret, which is obtained by a random string str signed by the private key of the child chain root account S.
In the prior art, Gas transactions mainly have 2 types, one is a commission mode, that is, when a transaction initiator initiates a certain transaction, in addition to asset transfer of the transaction itself, some transaction commission is additionally attached. The extra transaction commission is given to the miners, who (who means the node) helps me to pack (i.e. keep accounts), and who is given. When the nodes are packaged, the transactions with high transaction fees are preferably selected to be packaged according to the ranking of the transaction fees in the transactions. The other is execution mode consumption, which mainly refers to intelligent contract Gas consumption, for example, an etherhouse, the intelligent contract needs to reserve a certain amount of Gas before execution, when each line of codes of the contract is executed by the EVM, a certain execution fee is deducted from a specified Gas account until the contract program is executed, and if the Gas account is left, the executed code is returned to a caller of the contract.
In the embodiment of the invention, the Gas transaction is a single payment execution action, and the transaction cost is not given to a specific packing node but to a chain operator. And the chain establishment initiating party pays the chain establishment Gas cost to the chain establishment operator. The Gas charging account is an account designated by a chain operator, the sub-chain creation program can check whether the account receives the charge paid by a chain establishment initiator, namely the Gas transaction, check information reserved in the Gas transaction by the chain establishment initiator after the detection, and then start the chain establishment program to create the sub-chain after the check is passed.
S103: and determining whether the subchain initiator submits a subchain creation request to the blockchain network or not according to the transaction result.
And after the transaction is successful, the sub-chain initiator requests to create the sub-chain, otherwise, the sub-chain creation request fails.
In an embodiment of the present invention, the creating the content of the child chain request includes: the name of the sub-chain BUSID, the number of the sub-chain generations of the testimony, the account of the second block chain and the public key thereof, the Gas transaction ID, the Gas consumption, the original string str of the build chain secret language and the description information of the sub-chain.
S104: and verifying the sub-chain establishing request, including verifying the sub-chain establishing parameters and verifying the link establishing password.
In an embodiment of the present invention, after receiving the request for creating the sub-chain, the blockchain network checks the link establishment parameter to see whether the link establishment parameter meets the requirement, and meanwhile, searches the Gas consumption transaction by using the Gas transaction ID to obtain the link establishment secret in the Gas transaction, and verifies the link establishment secret and the original string str of the link establishment secret by using the public key of the sub-chain root account S.
S105: and after the verification is passed, the block chain network creates a sub chain creation block according to the link creation information, wherein the link creation information comprises a second block chain account, the number of sub chain creation passphrases and a sub chain BUSID.
In an embodiment of the invention, after the creation block of the sub-chain is completed, the creation block includes the sub-chain BUSID, and a sub-chain is derived subsequently, so that a block chain with a tree structure is formed, and partition and fragmentation of the block chain are realized. In this embodiment, the sub-chains generated by the method are parallel, so that the blockchain can be infinitely expanded, thereby improving the overall performance of the blockchain.
In the invention, the service sub-chains are created based on the BUSID identification, the sub-chains are logically isolated, each chain can share the node capability, the partition and the fragmentation processing of the block chains can be conveniently carried out, and the support is provided for the TPS customization of the specific service chain; creating the sub-chain in a Gas transaction mode, so that the creation of the service sub-chain is convenient, simple and controllable; and ensuring the safety of the link establishment based on a link establishment secret language safety mechanism.
Referring to fig. 2, the present invention provides a conveniently-expanded blockchain network system with node resource reuse, including a plurality of sub-chains and a plurality of blockchain nodes, wherein the plurality of blockchain nodes are divided into: the accounting node is used for joining the blockchain network system, participating in transaction consensus, recording transaction information and storing the transaction information in a block falling disk manner; the monitoring/observer node is used for joining the blockchain network system, receiving the network transaction information but not participating in transaction consensus, and recording the consensus transaction information and storing the consensus transaction information in a blockchain manner;
the light node is used for generating a blockchain account without adding the blockchain network system, and initiating transaction inquiry and blockchain inquiry to the blockchain network system; the plurality of sub chains and the plurality of block chain nodes are divided into a plurality of virtual block chain networks, and whether block chain link points participate in transaction consensus or not is determined according to sub chain BUSID names in different virtual block chain networks, so that accounting nodes are determined; and authorizing the accounting node processing by other block nodes which do not participate in transaction consensus in the sub-chain.
In one embodiment of the present invention, a schematic diagram of a chain network system is provided, and a block chain network is formed by 14 block chain link points. Generally, the block link points may be distributed in one sub-chain, or in a plurality of sub-chains, specifically, 14 nodes are distributed in different sub-chains A, B, C and divided into 3 virtual areas, where five nodes a1, a2, A3, a4, a5 on the sub-chain a judge that they participate in the consensus protocol according to the BUSID of the sub-chain, and form the consensus node of the sub-chain a. Therefore, if the BUSID in the blockchain network is the transaction of the sub-chain a, the transaction consensus is performed only in the consensus nodes in the sub-chain a (of course, the sub-chain a also has nodes other than a1, a2, A3, a4, and a 5), and all other nodes in the sub-chain a delegate the transaction to the consensus nodes for processing (including the consensus blocks, queries, and the like). Similarly, if the BUSID in the blockchain network is a transaction for subchain B, then the transaction consensus is only performed in subchain B consensus nodes (B1, B2, B3, B4, B5), and if the BUSID in the blockchain network is a transaction for the ROOT chain and subchain C, then the transaction consensus is performed in these nodes in the middle (C1, C2, C3, C4). That is to say, in the blockchain link network system of the present invention, the nodes of each sub-chain can perform certain division of work, and by using the BUSIDs of the sub-chains, it is possible to logically distinguish each service chain, and also to share blockchain link points and also to operate at their own blockchain link points, thereby conveniently and flexibly supporting partitioning and fragmentation, improving the TPS capability of the system, and satisfying the needs of different service scenarios.
In the embodiment of the invention, the block chain links and the nodes are connected by a P2P communication method, specifically, after a sub-chain is created, each chain also has a BUSID, so that all data of the type of chain is responsible for the BUSID-named communication group, and the data of the type of chain is not automatically forwarded to the corresponding BUSID communication group to be processed after the communication group receives the request information of the chain. And, according to the business needs, corresponding communication group services between the nodes can be started and stopped dynamically.
Specifically, each billing node is activated and joined to a public service group, where each billing node is in peer-to-peer communication. After each sub-chain is created, the blockchain network creates a sub-chain communication service group for the sub-chain, namely a BUSID communication group. The sub-chain communication service group is a logical communication group on the public service group, nodes participating in sub-chain identification can join the sub-chain communication service group, related communication in the sub-chain identification nodes can communicate in the sub-chain communication group, and communication among different sub-chain nodes can communicate through the public service group. According to the invention, the BUSID communication group is arranged, so that the communication of the bookkeeping nodes participating in the consensus is controlled in the sub-chain communication group, the communication range of the consensus node can be effectively controlled, the network flooding is avoided, and the response efficiency is improved.
In the embodiment of the invention, the plurality of sub chains and the plurality of blockchain nodes are divided into a plurality of virtual blockchain networks, and whether block link points participate in transaction consensus or not is determined according to sub chain BUSID names in different virtual blockchain networks, so that accounting nodes are determined; wherein, whether to participate in the transaction consensus is completed by adopting a consensus algorithm, and the consensus algorithm is as follows:
Figure 220556DEST_PATH_IMAGE002
n is the number of online accounting nodes of the whole network, and each accounting node monitors all the online accounting nodes in real time through a network heartbeat mechanism;
p is the participation of the accounting node,
Figure 192929DEST_PATH_IMAGE004
the initial value of P is 1,
Figure 335197DEST_PATH_IMAGE006
m is the whole network transaction times recorded by the accounting node, and q is the consensus correct times recorded by the accounting node that the accounting point participates in accounting;
t is an algorithm adjusting parameter, wherein,
Figure 626501DEST_PATH_IMAGE008
and setting according to actual business needs.
The longer the operation time is, the more loyalty is caused by the accounting nodes adopting the consensus algorithm; the higher the accuracy in the consensus accounting is, the more loyal the accounting nodes are; accounting nodes belonging to the same organization or individual, and in the event of consensus conflicts, the calculation weight will be reduced in equal proportion. The method avoids the achievement of the accounting consensus through a resource consumption mode, and divides a service partition mode through the consensus algorithm mechanism to deconstruct a network model, thereby improving the TPS and the expandability of the system.
Fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 3, the terminal device 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62, such as a program for credit financing, stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps in the above-described method embodiments, e.g., S101 to S105 shown in fig. 1. Alternatively, the processor 60 implements the functions of the modules/units in the above-described device embodiments when executing the computer program 62.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that 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 performing specific functions, which are used to describe the execution of the computer program 62 in the terminal device 6.
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. Terminal device 6 may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 3 is merely an example of a terminal device 6 and does not constitute a limitation of terminal device 6 and may include more or fewer components than shown, or some components may be combined, or different components, for example, the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a 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 memory Card (Flash Card) and the like provided on the terminal device 6. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used for storing the computer programs 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.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A block chain construction method convenient for expansion and node resource reuse is used for a plurality of block chain nodes to participate in forming
The blockchain link network structure of (a), comprising:
the method comprises the steps that a subchain initiator determines a subchain BUSID name and the number of subchain created passage certificates, and creates a first blockchain account and a second blockchain account, wherein the first blockchain account is used for obtaining the passage certificates of ROOT chains in a blockchain network;
initiating a Gas transaction to a ROOT chain according to the first block chain account address, wherein the Gas transaction information comprises a link establishment secret key and is used for ensuring the safety of the Gas transaction;
determining whether a subchain initiator submits a subchain creating request to a blockchain network or not according to a transaction result;
verifying the sub-chain establishing request, including verifying the sub-chain establishing parameters and verifying the establishing password;
and after the verification is passed, the block chain network creates a sub chain creation block according to the link creation information, wherein the link creation information comprises a second block chain account, the number of sub chain creation passphrases and a sub chain BUSID.
2. The method for building a blockchain that facilitates expansion and node resource reuse according to claim 1, wherein a Gas transaction is initiated to a ROOT chain according to the first blockchain account address, and the Gas transaction information includes a build chain secret key for ensuring security of the Gas transaction, including:
and the link establishing secret is a random character string str obtained by utilizing a private key signature of the second blockchain account.
3. The method for building a blockchain with convenient extension and node resource reuse according to claim 2, wherein determining whether a child chain initiator submits a child chain creation request to a blockchain network according to a transaction result, wherein the content of the child chain creation request includes:
the name of the sub-chain BUSID, the number of the sub-chain generations of the testimony, the account of the second block chain and the public key thereof, the Gas transaction ID, the Gas consumption, the original string str of the build chain secret language and the description information of the sub-chain.
4. The method of claim 3, wherein the validating the request to create the child chain comprises validating parameters and a link establishment secret of the child chain, and wherein:
the verification of the sub-chain link establishment parameters is used for verifying whether the sub-chain link establishment parameters meet the link establishment requirements;
the link establishment secret language verification method specifically comprises the following steps:
searching the Gas transaction by using the Gas transaction ID to obtain a link establishing secret language in the Gas transaction;
and verifying and signing the original string str of the build chain ciphertext and the build chain ciphertext by using the public key of the second blockchain account.
5. A blockchain network system facilitating expansion and node resource reuse, applying the blockchain construction method according to any one of claims 1 to 4, wherein: the method comprises the following steps of containing a plurality of sub chains and a plurality of block chain nodes, wherein the block chain nodes are divided into:
the accounting node is used for joining the blockchain network system, participating in transaction consensus, recording transaction information and storing the transaction information in a block falling disk manner;
the monitoring/observer node is used for joining the blockchain network system, receiving the network transaction information but not participating in transaction consensus, and recording the consensus transaction information and storing the consensus transaction information in a blockchain manner;
the light node is used for generating a blockchain account without adding the blockchain network system, and initiating transaction inquiry and blockchain inquiry to the blockchain network system;
the plurality of sub chains and the plurality of block chain nodes are divided into a plurality of virtual block chain networks, and whether block chain link points participate in transaction consensus or not is determined according to sub chain BUSID names in different virtual block chain networks, so that accounting nodes are determined; and authorizing the accounting node processing by other block nodes which do not participate in transaction consensus in the sub-chain.
6. The system of blockchain networks that facilitates extended, node resource reuse according to claim 5, wherein:
the system also comprises a public service group and a subchain communication group, wherein the public service group is automatically added after the accounting nodes are started, and each accounting node is in peer-to-peer communication;
the sub-chain communication group is generated in the sub-chain creation process and is positioned in the public service group;
wherein the communication of all accounting nodes participating in the transaction consensus is performed in a subchain communication group, and the communication between the block link nodes in the different subchains is performed through a common service group.
7. The system of blockchain networks that facilitates extended, node resource reuse according to claim 5, wherein:
the plurality of sub chains and the plurality of block chain nodes are divided into a plurality of virtual block chain networks, and whether block chain link points participate in transaction consensus or not is determined according to sub chain BUSID names in different virtual block chain networks, so that accounting nodes are determined; wherein, whether to participate in the transaction consensus is completed by adopting a consensus algorithm, and the consensus algorithm is as follows:
Figure DEST_PATH_IMAGE001
n is the number of online accounting nodes of the whole network, and each accounting node monitors all the online accounting nodes in real time through a network heartbeat mechanism;
p is the participation of the accounting node,
Figure 71803DEST_PATH_IMAGE002
the initial value of P is 1,
Figure DEST_PATH_IMAGE003
m is the node of this accountThe recorded whole network transaction times q is the number of correct consensus times of the accounting point participating in accounting recorded by the accounting node;
t is an algorithm adjusting parameter, wherein,
Figure 6390DEST_PATH_IMAGE004
and setting according to actual business needs.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-4 when executing the computer program.
CN202011020872.6A 2020-09-25 2020-09-25 Block chain network construction method, system and terminal equipment convenient for expansion and node resource multiplexing Active CN112163950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011020872.6A CN112163950B (en) 2020-09-25 2020-09-25 Block chain network construction method, system and terminal equipment convenient for expansion and node resource multiplexing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011020872.6A CN112163950B (en) 2020-09-25 2020-09-25 Block chain network construction method, system and terminal equipment convenient for expansion and node resource multiplexing

Publications (2)

Publication Number Publication Date
CN112163950A true CN112163950A (en) 2021-01-01
CN112163950B CN112163950B (en) 2024-10-01

Family

ID=73863783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011020872.6A Active CN112163950B (en) 2020-09-25 2020-09-25 Block chain network construction method, system and terminal equipment convenient for expansion and node resource multiplexing

Country Status (1)

Country Link
CN (1) CN112163950B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132378A (en) * 2021-04-15 2021-07-16 无锡全面互链科技有限公司 Block chain link point equipment and block chain network system
CN113259466A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Block chain subnet operation state control method and block chain system
CN113259458A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Method and device for starting/closing block link point service
CN113420086A (en) * 2021-06-21 2021-09-21 北京众享比特科技有限公司 Method for blockchain and related product
CN113905096A (en) * 2021-06-25 2022-01-07 安徽炬汇科技发展有限公司 Block chain network, chain reconstruction method, consensus method and data synchronization method
CN115150132A (en) * 2022-06-13 2022-10-04 桂林电子科技大学 Alliance chain DDOS attack resisting method based on Ether house gas
WO2023207076A1 (en) * 2022-04-29 2023-11-02 蚂蚁区块链科技(上海)有限公司 Method and apparatus for establishing blockchain subnet
WO2024119403A1 (en) * 2022-12-07 2024-06-13 华为技术有限公司 Blockchain establishment method and communication apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033422A (en) * 2018-08-08 2018-12-18 云南天之游科技股份有限公司 A kind of method, apparatus and block chain generating block chain
CN110557420A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 operation method and system of independent sub-chains
CN111598553A (en) * 2020-05-29 2020-08-28 北京俩撇科技有限公司 Method and device for creating block chain, data cross-chain and sales block chain and personal block chain
CN111612615A (en) * 2019-02-26 2020-09-01 傲为信息技术(江苏)有限公司 Block chain sub-chain creation method and system based on public chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557420A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 operation method and system of independent sub-chains
CN109033422A (en) * 2018-08-08 2018-12-18 云南天之游科技股份有限公司 A kind of method, apparatus and block chain generating block chain
CN111612615A (en) * 2019-02-26 2020-09-01 傲为信息技术(江苏)有限公司 Block chain sub-chain creation method and system based on public chain
CN111598553A (en) * 2020-05-29 2020-08-28 北京俩撇科技有限公司 Method and device for creating block chain, data cross-chain and sales block chain and personal block chain

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132378A (en) * 2021-04-15 2021-07-16 无锡全面互链科技有限公司 Block chain link point equipment and block chain network system
CN113259466A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Block chain subnet operation state control method and block chain system
CN113259458A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Method and device for starting/closing block link point service
CN113259458B (en) * 2021-06-02 2021-11-02 支付宝(杭州)信息技术有限公司 Method and device for starting/closing block link point service
CN113420086A (en) * 2021-06-21 2021-09-21 北京众享比特科技有限公司 Method for blockchain and related product
CN113905096A (en) * 2021-06-25 2022-01-07 安徽炬汇科技发展有限公司 Block chain network, chain reconstruction method, consensus method and data synchronization method
CN113905096B (en) * 2021-06-25 2024-02-23 安徽炬汇科技发展有限公司 Block chain network, chain reconstruction method, consensus method and data synchronization method
WO2023207076A1 (en) * 2022-04-29 2023-11-02 蚂蚁区块链科技(上海)有限公司 Method and apparatus for establishing blockchain subnet
CN115150132A (en) * 2022-06-13 2022-10-04 桂林电子科技大学 Alliance chain DDOS attack resisting method based on Ether house gas
CN115150132B (en) * 2022-06-13 2024-04-30 桂林电子科技大学 Alliance chain DDOS attack resisting method based on Ethernet gas
WO2024119403A1 (en) * 2022-12-07 2024-06-13 华为技术有限公司 Blockchain establishment method and communication apparatus

Also Published As

Publication number Publication date
CN112163950B (en) 2024-10-01

Similar Documents

Publication Publication Date Title
CN112163950B (en) Block chain network construction method, system and terminal equipment convenient for expansion and node resource multiplexing
CN111414210B (en) Method, apparatus and computer readable storage medium for generating side chains based on main chains
TWI679874B (en) Cross-blockchain authentication method and device, and electronic equipment
KR101727525B1 (en) Block chain based distributed storage method and device thereof
Sabry et al. The road to the blockchain technology: Concept and types
CN108197944B (en) Resource transaction method and device based on block chain technology
CN111612613B (en) Block chain network with centralized system
CN110335147A (en) A kind of digital asset Information Exchange System and method based on block chain
CN108881187A (en) A kind of across chain data transferring method and equipment suitable for permitting chain scene
CN110741372A (en) Computer-implemented system and method for managing transactions on a blockchain network
CN111541552B (en) Block chain all-in-one machine and automatic node adding method and device thereof
CN108833398A (en) A kind of block chain intelligence contract update method, device and equipment
US11902448B2 (en) Hybrid blockchain architecture with computing pool
CN108959621A (en) A kind of implementation method, device, equipment and the storage medium of block chain network
CN110659906B (en) Bill information processing method, related device and medium
CN110098938B (en) Trusted committee under-chain acceleration solution method and system
CN113518005B (en) Block consensus method, device, equipment and storage medium
CN110889761A (en) Cross-chain transaction method and storage medium
CN112016954A (en) Resource allocation method and device based on block chain network technology and electronic equipment
WO2021184873A1 (en) Method and apparatus for data synchronization in blockchain network, and computing device
CN113902439A (en) Alliance chain cross-chain transaction method and device based on threshold signature
CN117495373A (en) Block chain-based offline payment method and device
Fujimoto et al. Secure blockchain interworking using extended smart contract
Ivanov et al. System-wide security for offline payment terminals
CN109801066A (en) The implementation method and device of long-range storage service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant