CN110648140A - Multi-chain matching method and device based on block chain - Google Patents

Multi-chain matching method and device based on block chain Download PDF

Info

Publication number
CN110648140A
CN110648140A CN201910866607.0A CN201910866607A CN110648140A CN 110648140 A CN110648140 A CN 110648140A CN 201910866607 A CN201910866607 A CN 201910866607A CN 110648140 A CN110648140 A CN 110648140A
Authority
CN
China
Prior art keywords
transaction data
block chain
chain
block
blockchain
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
CN201910866607.0A
Other languages
Chinese (zh)
Other versions
CN110648140B (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.)
Guangzhou Ant Bit Block Chain Technology Co Ltd
Original Assignee
Guangzhou Ant Bit Block Chain 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 Guangzhou Ant Bit Block Chain Technology Co Ltd filed Critical Guangzhou Ant Bit Block Chain Technology Co Ltd
Priority to CN201910866607.0A priority Critical patent/CN110648140B/en
Publication of CN110648140A publication Critical patent/CN110648140A/en
Application granted granted Critical
Publication of CN110648140B publication Critical patent/CN110648140B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Abstract

The invention provides a block chain-based multi-chain matching method, which is characterized by comprising the steps of acquiring transaction data sent by a sublevel block chain, and verifying authenticity according to the transaction data; when the transaction data passes the authenticity verification, processing the transaction data to obtain transaction information; packaging the transaction information to obtain a block corresponding to the transaction information; broadcasting the block into a plurality of sub-level block chains to synchronize nodes in the plurality of sub-level block chains. The invention carries out clear transmission through the super node, avoids the condition of inter-chain interference, improves the conformity degree between the multi-chains, improves the multi-chain matching effect and carries out corresponding capacity expansion operation on the block chain at any time, thereby solving the problem of inconvenient interaction and capacity expansion between the block chains at present.

Description

Multi-chain matching method and device based on block chain
Technical Field
The invention relates to the technical field of block chains, in particular to a multi-chain matching method and device based on a block chain.
Background
At present, as the reputation of bitcoin is getting bigger and bigger, the underlying blockchain technology is also getting more and more appreciated and used. Wherein, the blocks are linked with each other to form a block chain. The conventional block chain performs block outputting according to the content size of the block, and the mode is too single, so that a plurality of chains are not formed. For example, CN106530083B discloses a block chain-based multi-chain management method and system in the prior art, in a block chain ecosystem, an increasingly inevitable problem is that more and more block chain networks exist. The existence of a multi-chain environment is mainly due to several factors: 1) many blockchain nodes will be limited to only the parties to a certain thing or process; 2) because of the high second flow requirements on the blockchain itself, some blockchains employ data slicing to distribute daily transactions across multiple blockchains, again creating administrative difficulties. If each block chain has an identity authentication mechanism, the user needs to store and backup the identity of the user on each chain, so that the operation is complicated, data is easy to make mistakes, and the system efficiency is low. The invention is made in order to solve the problems of low degree of engagement among multiple chains, low information security, compatibility and capacity expansion among the multiple chains, inconvenient interaction and capacity expansion among block chains and the like which are common in the field.
Disclosure of Invention
The invention aims to provide a multi-chain matching method based on a block chain, aiming at the defects in the multi-chain matching of the current block chain.
In order to overcome the defects of the prior art, the invention adopts the following technical scheme:
a multi-chain matching method based on block chains comprises the following steps: acquiring transaction data sent by a sublevel blockchain, and performing authenticity verification by taking the transaction data as a basis; when the transaction data passes the authenticity verification, processing the transaction data to obtain transaction information; packaging the transaction information to obtain a block corresponding to the transaction information; broadcasting the block into a plurality of sub-level block chains to synchronize nodes in the plurality of sub-level block chains.
Optionally, the step of obtaining transaction data sent by the sublevel blockchain and performing authenticity verification based on the transaction data includes:
acquiring transaction data sent by a super node in a sublevel block chain; the super node is used for performing authenticity verification on the transaction data in the sub-level block chain;
and performing authenticity verification by taking the transaction data as a basis.
Optionally, the step of processing the transaction data to obtain transaction information includes:
acquiring a data tag corresponding to the transaction data;
and performing combined processing according to the transaction data and the data label to obtain transaction information.
Optionally, the step of processing the transaction data to obtain transaction information includes:
acquiring a data tag corresponding to the transaction data;
and performing combined processing according to the transaction data and the data label to obtain transaction information.
Optionally, the step of packaging the transaction information to obtain a block corresponding to the transaction information may include:
and packaging the transaction information according to a preset Hash algorithm to obtain a block corresponding to the transaction information.
Optionally, the multi-chain coordination method based on the block chain is applied to an upper block chain, where the upper block chain is used to connect the multiple sub-level block chains; wherein each sublevel blockchain of the plurality of sublevel blockchains is used to transmit the transaction data and/or receive the blocks.
Optionally, the multi-chain coordination device based on the block chain includes an upper block chain module and a sub-level block chain module, and the upper block chain module includes an obtaining unit, a processing unit, a packing unit and a broadcasting unit, wherein,
the acquisition unit is used for acquiring the transaction data sent by the sublevel block chain module and verifying the authenticity by taking the transaction data as a basis;
the processing unit is used for processing the transaction data to obtain transaction information when the transaction data passes the authenticity verification;
the packaging unit is used for packaging the transaction information to obtain a block corresponding to the transaction information;
the broadcasting unit is configured to broadcast the block to a plurality of sub-level block chain modules, so as to synchronize nodes in the plurality of sub-level block chain modules.
Optionally, the obtaining unit includes:
the acquisition subunit is used for acquiring transaction data sent by the super node included in the sublevel block chain module; the super node is used for performing authenticity verification on the transaction data in the sublevel blockchain module;
and the verification subunit is used for performing authenticity verification by taking the transaction data as a basis.
Optionally, the upper level block chain module is configured to connect the plurality of sub-level block chain modules; wherein each sublevel blockchain module of the plurality of sublevel blockchain modules is configured to transmit the transaction data and/or receive the block.
In addition, the present invention also provides an electronic device, which includes a memory for storing a computer program and a processor for executing the computer program to make the computer device execute a block chain-based multi-chain coordination method.
In addition, the invention also provides a readable storage medium, wherein the readable storage medium stores computer program instructions, and the computer program instructions are read by a processor and executed to execute the multi-chain coordination method based on the block chain.
The beneficial effects obtained by the invention are as follows:
1. the transaction data sent by the sublevel blockchains can be preferentially obtained through a multi-chain matching method, a large amount of data can be stored, interaction with each sublevel blockchain is realized, and meanwhile, corresponding expansion operation can be carried out on the blockchains at any time on the basis of the data, so that the problem that interaction and expansion are inconvenient among the blockchains at present is solved;
2. in the sub-level block chain, the super node is used for verifying the authenticity of transaction data in the sub-level block chain, and processing and packaging are carried out in the sub-level block chain according to the transaction data to obtain the block of the sub-level block chain. The operation can be completed under the condition that no interference exists between chains, the integrating degree between the multiple chains is improved, and the multi-chain matching effect is improved;
3. the data label corresponding to the transaction data can be acquired based on a Hash algorithm, and in the process of combining the transaction data and the data label, the transaction data can be correspondingly packaged and prepared, and can be processed, so that the transaction information is more convenient to package, the block generation efficiency and the queryability are improved, and the information safety is improved to a certain extent;
4. the transaction information is packaged according to a Hash algorithm, so that the transaction information and a corresponding data tag (index tag) can be packaged into a block, searching and calling among multiple chains are facilitated, and matching capacity among the multiple chains is improved;
5. the method comprises the following steps that a plurality of sub-level block chains can be connected through an upper-level block chain, each sub-level block chain can send transaction data to the upper-level block chain and receive the blocks, wherein the sub-level block chains can be selected independently in the sending and receiving operations, so that compatibility and capacity expansion among the multi-chains are really realized in the method, more matching methods are provided on the basis of capacity expansion completion, and the flexibility and the matching effect of multi-chain matching are improved;
6. the block chain-based matching device comprises an upper block chain module and a sub-level block chain module, so that the transmission of transaction data between the upper block chain and the sub-level block chain can be completed without influencing the packing generation of blocks, the upper block chain can store a large amount of data on the basis and realize the interaction with the sub-level block chains, and meanwhile, the block chain can be subjected to corresponding capacity expansion operation at any time on the basis, so that the problem of inconvenient interaction and capacity expansion between the block chains at present is solved;
7. the transaction information sent by the sublevel block chain in the sublevel block chain module is acquired through the superior block chain, so that the superior block chain and the sublevel block chain are definitely transmitted through the super node, the inter-chain interference condition is avoided, the fitting degree among multiple chains is improved, and the multi-chain matching effect is improved.
Drawings
The invention will be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the embodiments. Like reference numerals designate corresponding parts throughout the different views.
Fig. 1 is a flowchart illustrating a block chain-based multi-chain coordination method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating another block chain-based multi-chain coordination method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a multi-chain matching apparatus based on a block chain according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of another block chain-based multi-chain coordination device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the following embodiments; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Other systems, methods, and/or features of the present embodiments will become apparent to those skilled in the art upon review of the following detailed description. It is intended that all such additional systems, methods, features and advantages be included within this description, be within the scope of the invention, and be protected by the accompanying claims. Additional features of the disclosed embodiments are described in, and will be apparent from, the detailed description that follows.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there is an orientation or positional relationship indicated by the terms "upper" and "lower" and "left" and "right" etc., it is only for convenience of description and simplification of the description based on the orientation or positional relationship shown in the drawings, but it is not indicated or implied that the device or assembly referred to must have a specific orientation.
The first embodiment is as follows: referring to fig. 1, fig. 1 is a schematic flowchart illustrating a block chain-based multi-chain coordination method according to an embodiment of the present disclosure. The method is applied to the block chain, and particularly can be applied to a scene needing information interaction among the multi-block chain. The multi-chain matching method based on the block chain comprises the following steps:
s101, acquiring transaction data sent by the sublevel block chain, and performing authenticity verification by taking the transaction data as a basis.
In this embodiment, the multi-chain coordination method based on the block chain is applied to an upper block chain, and the upper block chain is used for connecting a plurality of sub-level block chains; wherein each sublevel blockchain included in the plurality of sublevel blockchains is used for transmitting transaction data and/or receiving a block.
As an optional implementation, the obtaining transaction data sent by the sublevel blockchain, and the performing the authenticity verification step based on the transaction data may include:
and the superior block chain corresponding to the sublevel block chain acquires the transaction data sent by the sublevel block chain, and performs authenticity verification by taking the transaction data as a basis.
In this embodiment, the transaction data acquired by the upper blockchain may be determined, and the upper blockchain is a blockchain connected to the sub-level blockchain.
In this embodiment, the upper-level blockchain may include a plurality of full nodes (the naming of the nodes is not repeated in this embodiment, and the performance of the node may be stronger than that of the nodes in the sub-level blockchain), each full node may be connected to the sub-level blockchain, and the sub-level blockchain provides the transaction data to the full nodes, so that the full nodes perform corresponding processing on the transaction data and block the transaction data.
In this embodiment, the sub-level blockchain may include a plurality of nodes, and the plurality of nodes may all upload transaction data to the global node.
In this embodiment, the sub-level block chain may include a super node and a common node, where the common node acquires transaction data and uploads the transaction data to the super node to perform verification of the sub-level block chain and block output of the block chain, and the super node sends the transaction data to the whole node to complete a multi-chain matching process.
In this embodiment, the super node is used for uploading transaction data and for verification and block out operation in the sub-level block chain, and the common node is used for operations such as acquiring transaction data and transmitting transaction data. By implementing the implementation mode, the working efficiency and the working effect of the sublevel block chain can be improved.
In this embodiment, the transaction data may be encrypted, i.e. related to the key, and this embodiment is not limited in any way.
In this embodiment, the method for performing authenticity verification based on transaction data is not limited in this embodiment, where the method may include multi-node interactive verification or verification based on historical records, and the method is not limited to a certain verification manner in this embodiment, and is not limited in this embodiment.
In this embodiment, the transaction data sent by the sublevel blockchain is obtained to indicate the interactive cooperation between the superior blockchain and the sublevel blockchain, so as to complete the first step of multi-chain cooperation, and the true-nature verification of the transaction data by the superior blockchain can liberate more performances of the sublevel blockchain, thereby achieving the high-performance effect of multi-chain cooperation.
In this embodiment, the sub-level blockchain may process the transaction data according to its own operation flow, and the multi-chain coordination method designed in this embodiment does not interfere with the operation between the sub-level blockchains. Wherein the run portion (sub-level block out block operation, etc.) may be selected not to run, where it is determined according to user requirements.
In this embodiment, the transaction information is information related to a transaction or information related to a service in the block chain, and this embodiment is not limited in any way.
And S102, processing the transaction data to obtain transaction information when the transaction data passes the authenticity verification.
In this embodiment, when the transaction data passes the authenticity verification, it is used to illustrate that the transaction data does not have any authenticity problem, that is, the transaction data can be packed into the block.
In this embodiment, the transaction data may be transaction data of bitcoin or other transaction data based on blockchain, and this embodiment is not limited in any way.
In this embodiment, how the transaction data passes the authenticity verification is not limited in this embodiment. Wherein the authenticity verification of the transaction data may be verified through cooperation between the plurality of nodes.
In this embodiment, the significance of processing the transaction data is to perform preprocessing for packaging, and the process may include encoding and re-encrypting the data or performing other operations, and most importantly, the operation needs to establish a hash index corresponding to the transaction data, so that no problem occurs during packaging, and the process provides an index basis in the future data interaction and transmission process, thereby avoiding the situations that the transaction data cannot be searched and the efficiency of searching the transaction data is low among multi-chain cooperation.
In this embodiment, the transaction information includes a transaction data body and a hash index corresponding to the transaction data, where the transaction data may be directly referenced and packed by the chunk.
In this embodiment, the processing is performed by all nodes in the upper block chain.
S103, packaging the transaction information to obtain a block corresponding to the transaction information.
In this embodiment, step S103 is used to indicate a step of blocking transaction information.
In this embodiment, the block may include the transaction information and other transaction information, and this embodiment is not limited in any way.
In this embodiment, the process of packaging the transaction information may include: and storing data information corresponding to the transaction data included in the transaction information into the blockchain, processing the hash index corresponding to the transaction data and storing the hash index into a first storage area of the blockchain.
In this embodiment, the block at least includes transaction information, and specifically, the block includes transaction data.
S104, broadcasting the blocks into the sub-level block chains so as to synchronize the nodes in the sub-level block chains.
In this embodiment, the step of broadcasting the block into the plurality of sub-level block chains provides the multi-sub-level block chains with a capability of acquiring the transaction information in the upper-level block chain, and the transaction information may be provided by other sub-level block chains.
In this embodiment, the meaning of synchronization is in synchronous storage, and the specific step is used to indicate that the service or transaction that the full node in the superior block chain passes through the verification can be sent to the super node or the common node in the subordinate block chain for synchronization.
In this embodiment, the execution main body of the method may be an upper-level block chain connected to the sub-level block chain, or may be a full node in the upper-level block chain connected to the sub-level block chain (the full node may refer to a node in the block chain, and the full node is intended to indicate that the node is complete and powerful), and a specific type of the execution main body may further include other execution devices and control devices, which is not limited in this embodiment.
It can be seen that, by implementing the multi-chain coordination method based on the block chain described in fig. 1, the transmission of the transaction data between the upper block chain and the sub-block chain can be completed without affecting the block packing generation of each block, so that on this basis, the upper block chain can store a large amount of data and implement the interaction with each sub-block chain, and meanwhile, on this basis, the corresponding capacity expansion operation can be performed on the block chain at any time, thereby solving the problem of inconvenient interaction and capacity expansion between the block chains at present.
Example two: referring to fig. 2, fig. 2 is a schematic flowchart of another block chain-based multi-chain coordination method according to an embodiment of the present application. The block chain based multi-chain matching method illustrated in fig. 2 is improved according to the block chain based multi-chain matching method illustrated in fig. 1. The multi-chain matching method based on the block chain comprises the following steps:
s201, acquiring transaction data sent by a super node in a subrank block chain; the super node is used for verifying the authenticity of the transaction data in the sub-level block chain.
In this embodiment, the multi-chain coordination method based on the block chain is applied to an upper block chain, and the upper block chain is used for connecting a plurality of sub-level block chains; wherein each sublevel blockchain included in the plurality of sublevel blockchains is used for transmitting transaction data and/or receiving a block.
In this embodiment, the superior blockchain acquires transaction data sent by a super node in the subordinate blockchain, and performs authenticity verification according to the transaction data. It can be seen that the method defines a specific chain structure of the sub-level blockchain interacting with the upper level blockchain, thereby defining an application scenario to indicate that the method is applied to the block chain with the super nodes in the sub-level blockchain. Meanwhile, by implementing the implementation mode, the multi-chain matching basis of the method can be determined as the sub-level block chain with the super node, so that respective operation can be completed under the condition of meeting the condition of no interference among chains, the integrating degree among the multi-chains is improved, and the multi-chain matching effect is improved.
In this embodiment, the super node is used for uploading transaction data and for verification and block output operation in the sub-level block chain.
And S202, performing authenticity verification by taking the transaction data as a basis.
In this embodiment, the higher-level block chain performs authenticity verification based on the transaction data, and therefore authenticity of the transaction data can be guaranteed on the basis that the transaction data passes authenticity verification, and authenticity of contents of the block chain is determined.
S203, acquiring a data label corresponding to the transaction data.
In this embodiment, the data tag corresponding to the transaction data is a way for finding the transaction data in the block after the block is acquired by the sublevel blockchain. The function of the tag is similar to the index function, and further description is omitted here.
In this embodiment, the type of the data label is not limited, and specifically, the data label may be obtained by performing hash algorithm calculation.
And S204, carrying out combined processing according to the transaction data and the data label to obtain transaction information.
In this embodiment, the transaction data is initially acquired transaction data, and the data tag is an index tag of the transaction data, so that the transaction information is combination information of the transaction data and the data tag, and the combination information can be directly applied to packaging or block output.
In this embodiment, the combined information (transaction information) can be reprocessed to implement the matching between the transaction information and the block.
And S205, packaging the transaction information according to a preset hash algorithm to obtain a block corresponding to the transaction information.
In this embodiment, the hash algorithm may be a preset algorithm, and is not limited in this embodiment.
In this embodiment, the hash algorithm is also called hash algorithm, and is to map a binary value of any length to a binary value of a shorter fixed length, and this small binary value is called a hash value. Briefly, the principle is to convert a piece of transaction information into a string of fixed length.
S206, broadcasting the blocks into the sub-level block chains so as to synchronize the nodes in the sub-level block chains.
In this embodiment, the step of broadcasting the block into the plurality of sub-level block chains provides the multi-sub-level block chains with a capability of acquiring the transaction information in the upper-level block chain, and the transaction information may be provided by other sub-level block chains.
In this embodiment, the meaning of synchronization is in synchronous storage, and the specific step is used to indicate that the service or transaction that the full node in the superior block chain passes through the verification can be sent to the super node or the common node in the subordinate block chain for synchronization.
In this embodiment, the execution main body of the method may be an upper-level block chain connected to the sub-level block chain, or may be a full node in the upper-level block chain connected to the sub-level block chain (the full node may refer to a node in the block chain, and the full node is intended to indicate that the node is complete and powerful), and a specific type of the execution main body may further include other execution devices and control devices, which is not limited in this embodiment.
For example, the idea in this embodiment is for the underlying architectural design of a blockchain. For the grouping algorithm, partial verification, block output, storage and other work in the group can be handed over to all nodes included in the upper block chain. And an upper block chain provides an interface for each independently operated sub-block chain to call. Wherein, each independently operated sublevel block chain can contain super nodes and common nodes. And the super node and the common node in the sub-level block chain can initiate service or transaction. Only, after passing through the super node, the service or transaction initiated by the ordinary node is sent to the whole node by the super node to perform subsequent verification, block output, storage and other work. Meanwhile, the service or transaction passing the verification of the whole node can be sent to the super node or the common node in the group for synchronization.
Therefore, by implementing the embodiment, the independently operated sub-level block chains can be ensured to independently complete the transaction inside. Moreover, each sub-level block chain only sends the data of the transaction to the upper level block chain, so that the upper level block chains are synchronized. The operation mechanisms in the sub-level block chains can be different, and only the independent sub-level block chains can operate independently and can broadcast the transaction data to the main chain. In the process, as long as the superior block chain can normally run, the normal execution of the method can be ensured.
In this embodiment, the method can be extended to Bingpene blockchains, EtherFang, EOS (a piece of blockchain operating system designed for commercial distributed applications), and so on.
It can be seen that, by implementing the multi-chain coordination method based on the block chain described in fig. 2, the transmission of the transaction data between the upper block chain and the sub-block chain can be completed without affecting the block packing generation of each block, so that on this basis, the upper block chain can store a large amount of data and implement the interaction with each sub-block chain, and meanwhile, on this basis, the corresponding capacity expansion operation can be performed on the block chain at any time, thereby solving the problem of inconvenient interaction and capacity expansion between the block chains at present.
Example three: referring to fig. 3, fig. 3 is a schematic structural diagram of a block chain-based multi-chain coordination device according to an embodiment of the present application. Wherein the multi-chain coordination device based on block chain comprises an upper block chain module 300 and a sub-level block chain module 400, and the upper block chain module 300 comprises an obtaining unit 310, a processing unit 320, a packing unit 330 and a broadcasting unit 340, wherein,
an obtaining unit 310, configured to obtain the transaction data sent by the sublevel blockchain module 400, and perform authenticity verification based on the transaction data;
the processing unit 320 is used for processing the transaction data to obtain transaction information when the transaction data passes the authenticity verification;
a packing unit 330, configured to pack the transaction information to obtain a block corresponding to the transaction information;
the broadcasting unit 340 is configured to broadcast the blocks into the plurality of sub-level blockchain modules 400, so as to synchronize the nodes in the plurality of sub-level blockchain modules 400.
In this embodiment, the upper-level blockchain module 300 is configured to connect to a plurality of sub-level blockchain modules 400; wherein each sub-level blockchain module 400 included in the plurality of sub-level blockchain modules 400 is configured to transmit transaction data and/or receive a block.
In this embodiment, the upper block chain module 300 is a module including an upper block chain, and the sub-block chain module 400 is a module including a sub-block chain. Specifically, there may be a plurality of sub-level blockchain modules 400, and only one sub-level blockchain module 400 that uploads transaction information and a plurality of sub-level blockchain modules 400 that receive transaction information may be provided in the same process.
In this embodiment, for the operation flow of the multi-chain coordination device based on the block chain, reference may be made to embodiment 1 or embodiment 2, and details of this embodiment are not repeated.
It can be seen that, by implementing the multi-chain coordination device based on the block chain described in fig. 3, the transmission of the transaction data between the upper block chain and the sub-block chain can be completed without affecting the block packing generation of each block, so that on this basis, the upper block chain can store a large amount of data and realize the interaction with each sub-block chain, and meanwhile, on this basis, the corresponding capacity expansion operation can be performed on the block chain at any time, thereby solving the problem of inconvenient interaction and capacity expansion between the block chains at present.
In a fourth embodiment, please refer to fig. 4, where fig. 4 is a schematic structural diagram of another block chain-based multi-chain coordination device provided in the embodiments of the present application. The block chain based multi-chain coordination device depicted in fig. 4 is improved according to the block chain based multi-chain coordination device depicted in fig. 3. The acquiring unit 310 includes:
an obtaining subunit 311, configured to obtain transaction data sent by a super node included in the sublevel blockchain module 400; the super node is used for performing authenticity verification on transaction data in the sublevel blockchain module 400;
the verification subunit 312 is configured to perform an authenticity verification based on the transaction data.
In this embodiment, the superior blockchain in the superior blockchain module 300 acquires the transaction information sent by the subordinate blockchain in the subordinate blockchain module 400, and the subordinate blockchain in the subordinate blockchain module 400 is a blockchain with a super node (that is, the subordinate blockchain may be a blockchain including a super node and a common node), where the super node may acquire the transaction data and send the transaction data to the superior blockchain, and meanwhile, the common node may acquire the transaction data and upload the transaction data to the super node so that the super node forwards the transaction data to the superior blockchain; in the sub-level block chain, the super node is used for verifying the authenticity of the transaction data in the sub-level block chain, and processing and packaging the transaction data in the sub-level block chain to obtain the block of the sub-level block chain.
By implementing this embodiment, the basis of multi-chain coordination in the apparatus can be determined that the sub-level block chains included in the sub-level block chain module 400 are all sub-level block chains with super nodes, so that explicit transmission is performed between the upper-level block chain and the sub-level block chains through the super nodes, the inter-chain interference is avoided, the degree of engagement between multi-chains is improved, and the multi-chain coordination effect is improved.
As an alternative embodiment, the processing unit 320 includes:
an extraction subunit 321 configured to acquire a data tag corresponding to transaction data;
and the processing subunit 322 is configured to perform combined processing according to the transaction data and the data tag to obtain transaction information.
By implementing the implementation mode, the transaction data can be processed, so that the transaction information is more convenient to package, the block generation efficiency and the query performance are improved, and the information safety is improved to a certain extent.
As an optional implementation manner, the packing unit 330 is specifically configured to pack the transaction information according to a preset hash algorithm to obtain a block corresponding to the transaction information
By implementing the embodiment, the packing unit 330 may pack the transaction information according to a hash algorithm, so that the transaction information and the corresponding data tag (index tag) thereof may be packed into a block, thereby facilitating the search and call among multiple chains, and further improving the coordination capability among multiple chains
It can be seen that, by implementing the multi-chain coordination device based on the block chain described in fig. 4, the transmission of the transaction data between the upper block chain and the sub-block chain can be completed without affecting the block packing generation of each block, so that on this basis, the upper block chain can store a large amount of data and realize the interaction with each sub-block chain, and meanwhile, on this basis, the corresponding capacity expansion operation can be performed on the block chain at any time, thereby solving the problem of inconvenient interaction and capacity expansion between the block chains at present.
An embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the computer device execute a multi-chain coordination method based on a block chain according to any one of embodiment 1 or embodiment 2 of the present application.
An embodiment of the present application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the computer program instructions execute any one of the block chain based multi-chain coordination methods in embodiment 1 or embodiment 2 of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, according to the multi-chain coordination method based on the block chains, transaction data sent by the sub-level block chains can be preferentially obtained through the multi-chain coordination method, a large amount of data can be stored, interaction with each sub-level block chain is achieved, and meanwhile, on the basis of the above, corresponding capacity expansion operation can be performed on the block chains at any time, so that the problem that interaction and capacity expansion are inconvenient between the block chains at present is solved; in the sub-level block chain, the super node is used for verifying the authenticity of transaction data in the sub-level block chain, and processing and packaging are carried out in the sub-level block chain according to the transaction data to obtain the block of the sub-level block chain. The operation can be completed under the condition that no interference exists between chains, the integrating degree between the multiple chains is improved, and the multi-chain matching effect is improved; the data label corresponding to the transaction data can be acquired based on a Hash algorithm, and in the process of combining the transaction data and the data label, the transaction data can be correspondingly packaged and prepared, and can be processed, so that the transaction information is more convenient to package, the block generation efficiency and the queryability are improved, and the information safety is improved to a certain extent; the transaction information is packaged according to a Hash algorithm, so that the transaction information and a corresponding data tag (index tag) can be packaged into a block, searching and calling among multiple chains are facilitated, and matching capacity among the multiple chains is improved; the method comprises the following steps that a plurality of sub-level block chains can be connected through an upper-level block chain, each sub-level block chain can send transaction data to the upper-level block chain and receive the blocks, wherein the sub-level block chains can be selected independently in the sending and receiving operations, so that compatibility and capacity expansion among the multi-chains are really realized in the method, more matching methods are provided on the basis of capacity expansion completion, and the flexibility and the matching effect of multi-chain matching are improved; the block chain-based matching device comprises an upper block chain module and a sub-level block chain module, so that the transmission of transaction data between the upper block chain and the sub-level block chain can be completed without influencing the packing generation of blocks, the upper block chain can store a large amount of data on the basis and realize the interaction with the sub-level block chains, and meanwhile, the block chain can be subjected to corresponding capacity expansion operation at any time on the basis, so that the problem of inconvenient interaction and capacity expansion between the block chains at present is solved; the transaction information sent by the sublevel block chain in the sublevel block chain module is acquired through the superior block chain, so that the superior block chain and the sublevel block chain are definitely transmitted through the super node, the inter-chain interference condition is avoided, the fitting degree among multiple chains is improved, and the multi-chain matching effect is improved.
Although the invention has been described above with reference to various embodiments, it should be understood that many changes and modifications may be made without departing from the scope of the invention. That is, the methods, systems, and devices discussed above are examples. Various configurations may omit, substitute, or add various procedures or components as appropriate. For example, in alternative configurations, the methods may be performed in an order different than that described, and/or various components may be added, omitted, and/or combined. Moreover, features described with respect to certain configurations may be combined in various other configurations, as different aspects and elements of the configurations may be combined in a similar manner. Further, elements therein may be updated as technology evolves, i.e., many elements are examples and do not limit the scope of the disclosure or claims.
Specific details are given in the description to provide a thorough understanding of the exemplary configurations including implementations. However, configurations may be practiced without these specific details, for example, well-known circuits, processes, algorithms, structures, and techniques have been shown without unnecessary detail in order to avoid obscuring the configurations. This description provides example configurations only, and does not limit the scope, applicability, or configuration of the claims. Rather, the foregoing description of the configurations will provide those skilled in the art with an enabling description for implementing the described techniques. Various changes may be made in the function and arrangement of elements without departing from the spirit or scope of the disclosure.
In conclusion, it is intended that the foregoing detailed description be regarded as illustrative rather than limiting, and that it be understood that these examples are illustrative only and are not intended to limit the scope of the invention. After reading the description of the invention, the skilled person can make various changes or modifications to the invention, and these equivalent changes and modifications also fall into the scope of the invention defined by the claims.

Claims (10)

1. A multi-chain matching method based on block chains is characterized by comprising the following steps:
acquiring transaction data sent by a sublevel blockchain, and performing authenticity verification by taking the transaction data as a basis;
when the transaction data passes the authenticity verification, processing the transaction data to obtain transaction information;
packaging the transaction information to obtain a block corresponding to the transaction information;
broadcasting the tile into a plurality of sublevel blockchains to synchronize nodes in the plurality of sublevel blockchains with the transaction information.
2. The blockchain-based multi-chain matching method according to claim 1, wherein the step of obtaining transaction data sent by a sublevel blockchain and performing authenticity verification based on the transaction data comprises:
acquiring transaction data sent by a super node in a sublevel block chain; the super node is used for performing authenticity verification on the transaction data in the sub-level block chain;
and performing authenticity verification by taking the transaction data as a basis.
3. The blockchain-based multi-chain coordination method according to claim 2, wherein the step of processing the transaction data to obtain the transaction information comprises:
acquiring a data tag corresponding to the transaction data;
and performing combined processing according to the transaction data and the data label to obtain transaction information.
4. The method according to claim 3, wherein the step of packaging the transaction information to obtain the block corresponding to the transaction information comprises:
and packaging the transaction information according to a preset Hash algorithm to obtain a block corresponding to the transaction information.
5. The method according to any of claims 1-4, wherein the method is applied to an upper block chain, and the upper block chain is used to connect the plurality of sub-block chains; wherein each sublevel blockchain of the plurality of sublevel blockchains is used to transmit the transaction data and/or receive the blocks.
6. A multi-chain matching device based on a block chain is characterized in that the multi-chain matching device based on the block chain comprises an upper block chain module and a sub-level block chain module, the upper block chain module comprises an acquisition unit, a processing unit, a packing unit and a broadcasting unit, wherein,
the acquisition unit is used for acquiring the transaction data sent by the sublevel block chain module and verifying the authenticity by taking the transaction data as a basis;
the processing unit is used for processing the transaction data to obtain transaction information when the transaction data passes the authenticity verification;
the packaging unit is used for packaging the transaction information to obtain a block corresponding to the transaction information;
the broadcasting unit is configured to broadcast the block to a plurality of sub-level block chain modules, so as to synchronize nodes in the plurality of sub-level block chain modules.
7. The blockchain-based multi-chain matching device according to claim 6, wherein the obtaining unit comprises:
the acquisition subunit is used for acquiring transaction data sent by the super node included in the sublevel block chain module; the super node is used for performing authenticity verification on the transaction data in the sublevel blockchain module;
and the verification subunit is used for performing authenticity verification by taking the transaction data as a basis.
8. The device as claimed in claim 7, wherein the upper level blockchain module is configured to connect the plurality of sub-level blockchain modules; wherein each sublevel blockchain module of the plurality of sublevel blockchain modules is configured to transmit the transaction data and/or receive the block.
9. An electronic device, comprising a memory for storing a computer program and a processor for executing the computer program to cause the computer device to perform the blockchain based multi-chain coordination method of any one of claims 1 to 5.
10. A readable storage medium, wherein computer program instructions are stored, and when read and executed by a processor, perform the blockchain-based multi-chain coordination method according to any one of claims 1 to 5.
CN201910866607.0A 2019-09-12 2019-09-12 Multi-chain matching method and device based on block chain Active CN110648140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910866607.0A CN110648140B (en) 2019-09-12 2019-09-12 Multi-chain matching method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910866607.0A CN110648140B (en) 2019-09-12 2019-09-12 Multi-chain matching method and device based on block chain

Publications (2)

Publication Number Publication Date
CN110648140A true CN110648140A (en) 2020-01-03
CN110648140B CN110648140B (en) 2023-01-06

Family

ID=68991774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910866607.0A Active CN110648140B (en) 2019-09-12 2019-09-12 Multi-chain matching method and device based on block chain

Country Status (1)

Country Link
CN (1) CN110648140B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116611351A (en) * 2023-07-19 2023-08-18 东方空间技术(山东)有限公司 Rocket sublevel life assessment method, computer equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881187A (en) * 2018-05-31 2018-11-23 杭州秘猿科技有限公司 A kind of across chain data transferring method and equipment suitable for permitting chain scene
CN109117097A (en) * 2018-09-05 2019-01-01 深圳正品创想科技有限公司 A kind of date storage method and system based on block chain
CN109379429A (en) * 2018-10-25 2019-02-22 龚玉环 A kind of multichain management method and system based on block chain
CN109493052A (en) * 2018-11-21 2019-03-19 北京蓝石环球区块链科技有限公司 Across catenary system contract and its transfer process based on the more subchains of main chain adduction row
CN109508982A (en) * 2018-11-21 2019-03-22 北京蓝石环球区块链科技有限公司 REPB common recognition based on the more subchains of block chain main chain adduction row
CN109886681A (en) * 2019-01-31 2019-06-14 北京瑞卓喜投科技发展有限公司 Block chain common recognition method and common recognition system
CN109919615A (en) * 2019-03-01 2019-06-21 上海分布信息科技有限公司 Across chain data interactive method and across chain data interaction system based on block chain
CN110166567A (en) * 2019-06-04 2019-08-23 长春理工大学 A kind of Internet of Things resource share method and system based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881187A (en) * 2018-05-31 2018-11-23 杭州秘猿科技有限公司 A kind of across chain data transferring method and equipment suitable for permitting chain scene
CN109117097A (en) * 2018-09-05 2019-01-01 深圳正品创想科技有限公司 A kind of date storage method and system based on block chain
CN109379429A (en) * 2018-10-25 2019-02-22 龚玉环 A kind of multichain management method and system based on block chain
CN109493052A (en) * 2018-11-21 2019-03-19 北京蓝石环球区块链科技有限公司 Across catenary system contract and its transfer process based on the more subchains of main chain adduction row
CN109508982A (en) * 2018-11-21 2019-03-22 北京蓝石环球区块链科技有限公司 REPB common recognition based on the more subchains of block chain main chain adduction row
CN109886681A (en) * 2019-01-31 2019-06-14 北京瑞卓喜投科技发展有限公司 Block chain common recognition method and common recognition system
CN109919615A (en) * 2019-03-01 2019-06-21 上海分布信息科技有限公司 Across chain data interactive method and across chain data interaction system based on block chain
CN110166567A (en) * 2019-06-04 2019-08-23 长春理工大学 A kind of Internet of Things resource share method and system based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116611351A (en) * 2023-07-19 2023-08-18 东方空间技术(山东)有限公司 Rocket sublevel life assessment method, computer equipment and readable storage medium
CN116611351B (en) * 2023-07-19 2023-09-22 东方空间技术(山东)有限公司 Rocket sublevel life assessment method, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN110648140B (en) 2023-01-06

Similar Documents

Publication Publication Date Title
CN110689349B (en) Transaction hash value storage and searching method and device in blockchain
KR102412024B1 (en) Indexing and recovery of encoded blockchain data
CN105049425A (en) Physical isolation transmission method based on two-dimension code
KR102396737B1 (en) Prioritize storage of shared blockchain data
EP3794770B1 (en) Shared blockchain data storage based on error correction code
KR102363271B1 (en) Data security of shared blockchain data storage based on error correction codes
CN107154945A (en) A kind of cloudy fragmentation method for secure storing and system based on correcting and eleting codes
CN111108734B (en) Improved anti-replay device based on memory space interchange
CN103530201A (en) Safety data repetition removing method and system applicable to backup system
EP3794532B1 (en) Shared blockchain data storage based on error correction code
CA3098934A1 (en) Consenus of shared blockchain data storage based on error correction code
CN113114759A (en) Chain-crossing method and system for realizing multi-chain intercommunication
CN105956492B (en) A kind of file storage encryption method and device
CN110851080A (en) Distributed storage management system of multi-cloud-disk platform
EP3769235B1 (en) Dynamic blockchain data storage based on error correction code
CN110648140B (en) Multi-chain matching method and device based on block chain
CN107422980B (en) Internet of things data file storage system and data file storage method thereof
CN116701452A (en) Data processing method, related device, storage medium and program product
CN112291350A (en) File transmission method, system, device and medium
CN112148797A (en) Block chain-based distributed data access method and device and storage node
CN117439990A (en) File transmission method and device based on block chain and decentralization network
CN116701393A (en) Data storage method and device of data center
CN103259856A (en) Method, device and system for data processing

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
GR01 Patent grant