CN114499963A - Multi-level cross-chain cooperation method and device, computer equipment and storage medium - Google Patents

Multi-level cross-chain cooperation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114499963A
CN114499963A CN202111603040.1A CN202111603040A CN114499963A CN 114499963 A CN114499963 A CN 114499963A CN 202111603040 A CN202111603040 A CN 202111603040A CN 114499963 A CN114499963 A CN 114499963A
Authority
CN
China
Prior art keywords
cooperation
request
cooperative
data
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.)
Pending
Application number
CN202111603040.1A
Other languages
Chinese (zh)
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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian 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 Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202111603040.1A priority Critical patent/CN114499963A/en
Publication of CN114499963A publication Critical patent/CN114499963A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem
    • H04L2209/463Electronic voting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a multi-level cross-chain cooperation method, which is applied to the field of block chains and used for improving the multi-level cross-chain cooperation safety. The method provided by the invention comprises the following steps: acquiring cooperative information, wherein the cooperative information comprises cooperative data, a layer number of a block chain where the cooperative data is located and a cooperative type; acquiring at least one block chain corresponding to the level number of the block chain where the collaborative data is located as a block chain to be collaborative; acquiring a cooperation mode corresponding to the cooperation type from a preset cooperation mode set as a target cooperation mode; and based on the target cooperation mode, adopting the block chain to be cooperated to carry out cooperation processing on the cooperation data to obtain a cooperation result.

Description

Multi-level cross-chain cooperation method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of block chains, and in particular, to a multi-level cross-chain cooperation method and apparatus, a computer device, and a storage medium.
Background
In the multi-level chain-crossing collaboration process of the block chain, at least two scenes exist, and management mechanisms on different collaboration chains at one level and the same level simultaneously perform collaborative management on a lower-level collaboration chain; secondly, in the execution process of the cooperative instruction, the cooperative instruction may not be executed normally due to the lack of some cooperative rules.
In the first scenario, the existing method is solved by adopting a mode of negotiation under a chain, that is, whether to issue a coordination instruction or a coordination rule is issued by different management mechanisms under the chain in a conference mode or the like, and then the coordination instruction or the coordination rule is directly issued by the management mechanism initiating the request, so that the process is not open and transparent enough, the efficiency is low, data is easily tampered, and the management mechanisms at the same level cannot be traced when problems occur. In the second scenario, the existing method may request the part of the collaboration rule that is missing by itself from other management entities in the same chain or from other collaboration chains in the same chain, so that the collaboration instruction can be executed successfully. However, since the collaborative data belongs to the down-link storage, and the management organization has the respective down-link collaborative rule database, the existing method causes that the data is easily tampered, and the data transmission is safe and low in efficiency.
Therefore, in the existing block chain management, there is a problem of low collaborative security due to the need of multi-level cross-chain collaboration through down-chain negotiation and down-chain scheduling.
Disclosure of Invention
The embodiment of the invention provides a multi-level cross-chain cooperation method, a multi-level cross-chain cooperation device, computer equipment and a storage medium, and aims to improve the multi-level cross-chain cooperation safety.
A multi-level cross-chain collaboration method comprises the following steps:
acquiring cooperative information, wherein the cooperative information comprises cooperative data, a layer number of a block chain where the cooperative data is located and a cooperative type;
acquiring at least one block chain corresponding to the level number of the block chain where the collaborative data is located as a block chain to be collaborative;
acquiring a cooperation mode corresponding to the cooperation type from a preset cooperation mode set as a target cooperation mode;
and based on the target cooperation mode, adopting the block chain to be cooperated to carry out cooperation processing on the cooperation data to obtain a cooperation result.
A multi-level cross-chain collaboration apparatus comprising:
the system comprises a collaborative information acquisition module, a collaborative information acquisition module and a collaborative information processing module, wherein the collaborative information comprises collaborative data, a layer number of a block chain where the collaborative data is located and a collaborative type;
a block chain to be coordinated acquiring module, configured to acquire at least one block chain corresponding to a level number of a block chain in which the coordination data is located as a block chain to be coordinated;
a target cooperation mode obtaining module, configured to obtain, from a preset cooperation mode set, a cooperation mode corresponding to the cooperation type as a target cooperation mode;
and the cooperative result acquisition module is used for performing cooperative processing on the cooperative data by adopting the block chain to be cooperative based on the target cooperative mode to obtain a cooperative result.
A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, the processor implementing the steps of the multi-level cross-chain coordination method when executing the computer program.
A computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described multi-level cross-chain coordination method.
According to the multi-level cross-chain cooperation method, the multi-level cross-chain cooperation device, the computer equipment and the storage medium, cooperation information is obtained, wherein the cooperation information comprises cooperation data, a level number of a block chain where the cooperation data is located and a cooperation type; acquiring at least one block chain corresponding to the level number of the block chain where the collaborative data is located as a block chain to be collaborative; acquiring a cooperation mode corresponding to the cooperation type from a preset cooperation mode set as a target cooperation mode; and based on the target cooperation mode, adopting the block chain to be cooperated to carry out cooperation processing on the cooperation data to obtain a cooperation result. By adopting a target cooperation mode, a block chain to be cooperated is adopted to carry out a cooperative processing process corresponding to the target cooperation mode on cooperative data, so that cooperative processing is public and transparent, traceability is achieved, data on different block chains are shared, and the multi-level cross-chain cooperation efficiency is better and the multi-level cross-chain cooperation safety is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced 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 that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an application environment of a multi-level cross-link collaboration method according to an embodiment of the invention;
FIG. 2 is a flowchart of a multi-level cross-chain collaboration method according to an embodiment of the invention;
FIG. 3 is a schematic structural diagram of a multi-level cross-chain cooperative apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The multi-level cross-chain collaboration method provided by the application can be applied to an application environment as shown in fig. 1, wherein a computer device communicates with a server through a network. The computer device may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, among others. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, a multi-level cross-chain collaboration method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps S10 to S40:
and S10, acquiring the cooperation information, wherein the cooperation information comprises cooperation data, a hierarchy number of a block chain where the cooperation data is located, and a cooperation type.
In step S10, the above-described cooperation information is information relating to cooperation data. The coordination information includes, but is not limited to, coordination data, a layer number of a block chain where the coordination data is located, a coordination type, and a number of the block chain where the coordination data is located.
The collaboration data includes, but is not limited to, collaboration instructions and collaboration rules. The level number of the block chain in which the cooperative data is located refers to the level number of the block chain in which the management mechanism initiating the cooperative data is located. I.e. one authority corresponding to one level number of a block chain. Collaboration types include, but are not limited to, request collaboration, data collaboration on a chain.
It should be noted here that, the level number of the block chain in which the coordination data is included in one coordination information and the number of the block chain in which the coordination data is included may be multiple, and the specific number is not limited.
By acquiring the collaborative information, the level number of the block chain where the collaborative data is located and the number of the block chain where the collaborative data is located, which are included in the collaborative information, can be multiple, so that the multi-level cross-chain collaborative information can be processed, and the multi-level cross-chain collaborative security can be improved.
And S20, acquiring at least one block chain corresponding to the hierarchy number of the block chain where the collaborative data is located as the block chain to be collaborative.
In step S20, the to-be-coordinated blockchain is a blockchain that needs to process coordinated data.
It should be understood that the at least one blockchain corresponding to the level number of the blockchain in which the collaborative data is located refers to a management mechanism in which the blockchain that is the same as or corresponds to the level number of the blockchain in which the management mechanism initiated by the collaborative data is located. For example, when a plurality of administrators belonging to one or more collaboration chains collaboratively manage a certain blockchain, when a collaboration request is initiated by the certain blockchain, collaboration data is carried in the certain blockchain, and one or more collaboration chains are blockchains to be collaborated, and the hierarchy numbers of the administrators correspond to the hierarchy number where the collaboration data in the certain blockchain is located.
It should be noted here that the cooperation chain is a kind of blockchain, and is used for cooperating with the cooperation instruction and the cooperation rule of the management mechanism on the blockchain.
By acquiring the block chain to be coordinated, real-time chain crossing processing is performed on the coordinated data by using the block chain to be coordinated, and the conditions of under-chain negotiation and under-chain scheduling are reduced, so that the multi-level chain crossing coordination safety is improved.
And S30, acquiring a cooperation mode corresponding to the cooperation type from the preset cooperation mode set as a target cooperation mode.
In step S30, the preset coordination mode set is a set storing coordination modes. The preset cooperation mode set includes, but is not limited to, a request cooperation and a data cooperation on a chain.
The target cooperation method is a target method for processing cooperation data.
In step S30, it is specifically:
and when the cooperation type is the on-chain request cooperation, acquiring an on-chain request cooperation mode, and taking the on-chain request cooperation mode as a target cooperation mode.
And when the cooperation type is data cooperation, acquiring a data cooperation mode, and taking the data cooperation mode as a target cooperation mode.
The scope of the usage of the on-chain collaboration request mode includes, but is not limited to, on-chain collaboration request and/or on-chain cross-chain collaboration request. The method for requesting collaboration on the same block chain refers to a mode that management mechanisms at the same level in the same block chain perform on-chain collaboration request processing on collaboration data. The method for requesting collaboration on a cross-chain link refers to a mode that management mechanisms at the same level in different block chains perform on-chain request collaboration processing on collaboration data.
The scope of use of data collaboration includes, but is not limited to, co-chaining data collaboration and/or cross-chaining data collaboration. The same-chain data cooperation refers to a mode that management mechanisms at the same level in the same block chain perform data cooperation processing on cooperation data. The inter-chain data cooperation refers to a data cooperation processing mode of the cooperative data by the management mechanisms of the same level in different block chains.
The cooperative mode corresponding to the cooperative type is acquired from the preset cooperative mode set and is used as a target cooperative mode, the target cooperative mode is adopted to perform cooperative processing on the block chain to be cooperative, the conditions of under-chain negotiation and under-chain scheduling are reduced, and therefore the multi-level cross-chain cooperative security is improved.
And S40, performing cooperative processing on the cooperative data by adopting the block chain to be cooperative based on the target cooperative mode to obtain a cooperative result.
In step S40, the above-described cooperation processing refers to a processing procedure relating to the target cooperation method.
The collaboration result includes, but is not limited to, a permission to send the collaboration instruction, a permission to send the collaboration rule, a non-permission to send the collaboration instruction, and a non-permission to send the collaboration rule. It is understood that the collaboration result herein varies with the target collaboration mode.
In step S40, when the target collaboration mode is the on-chain request collaboration mode, it specifically includes the following steps S401 to S403:
s401, based on the on-chain request cooperation mode, generating a request proposal on a cooperation chain and sending a cooperation request to a block chain to be cooperated, wherein the cooperation request comprises cooperation data.
And S402, based on a preset cooperative processing mode, performing cooperative processing on the cooperative request by using the block chain to be cooperative to obtain a processing result.
And S403, determining a collaboration result corresponding to the request proposal on the collaboration chain based on the processing result.
For step S401, the above-mentioned collaboration on-chain request proposal refers to a task of performing on-chain collaboration request on collaboration data. The manner of generating the above request proposal on the collaboration chain includes, but is not limited to, calling a generating function. For example, invoking the issue function in request collaboration on a co-chained chain generates a request proposal on a co-chained chain.
It is to be understood that the manner of generating the above-mentioned request proposal on the collaboration chain is only illustrative and is not specifically limited herein.
For step S402, it is specifically:
determining the request type of the cooperation request by adopting the block chain to be cooperated, and generating a request proposal on the block chain to be cooperated according to the request type;
broadcasting the proposal to be submitted on the to-be-coordinated link by adopting the to-be-coordinated block chain so as to enable the mechanism receiving the proposal to be submitted on the to-be-coordinated link to vote the proposal to be submitted on the to-be-coordinated link to obtain a voting result;
and summarizing all voting results based on a preset processing mode to obtain a processing result.
When the request type of the cooperation request is a cooperation request on the same link, a certain management mechanism initiates a request, as a cooperation instruction or a cooperation rule is issued, a cooperation request on the same link is initiated to other management mechanisms at the same level, a request proposal on the link to be cooperated is generated, and the other management mechanisms vote for the request proposal on the link to be cooperated. After receiving the cooperative request on the same chain, other management mechanisms at the same level generate a proposal request on a chain to be cooperative, which is issued by a cooperative instruction/rule, according to the request type, the proposal request on the chain to be cooperative is stored on the chain, and the other management mechanisms at the same level inform related mechanism personnel to vote through a broadcast event after the proposal request on the chain to be cooperative is generated. And the related institution personnel votes for the proposal requested on the chain to be coordinated on the chain, and passes or refuses the proposal requested on the chain to be coordinated according to the corresponding voting strategy. When the number of votes by the authority reaches a preset number, for example, the preset number is 10, the number of votes by the authority reaches 10, and the result is passed. And acquiring all voting results, counting the voting results, and passing or refusing the proposal request on the to-be-coordinated link according to a corresponding voting strategy. The corresponding voting strategy includes, but is not limited to, minority-compliant majority, priority, principle.
When the request type of the collaboration request is a collaboration request on a cross-chain, a certain management mechanism initiates a request, such as sending a collaboration instruction or a collaboration rule, the cross-chain initiates a collaboration request on the cross-chain to other management mechanisms at the same level, a request proposal on a chain to be collaborated is generated on the chain corresponding to the cross-chain, and the other management mechanisms are waited to vote on the request proposal on the chain to be collaborated. After receiving the collaboration request on the cross-chain, other management mechanisms at the same level of the cross-chain generate a proposal to be requested on the chain to be collaborated, which is sent by a collaboration instruction/rule, on the chain corresponding to the cross-chain according to the request type, the proposal to be requested on the chain to be collaborated is stored on the chain, and the proposal to be requested on the chain to be collaborated is notified to relevant mechanism personnel for voting through a broadcast event after being generated. And the related institution personnel votes for the proposal requested on the chain to be coordinated on the chain, and passes or refuses the proposal requested on the chain to be coordinated according to the corresponding voting strategy. When the number of votes by the authority reaches a preset number, for example, the preset number is 10, the number of votes by the authority reaches 10, and the result is passed. And obtaining all voting results of different block chains, counting the voting results, and passing or refusing to request proposal on the to-be-coordinated chain according to a corresponding voting strategy. The corresponding voting strategy includes, but is not limited to, minority-compliant majority, priority, principle.
For step S403, it is specifically: and if the processing result is that the request proposal on the to-be-coordinated chain passes, the coordinated result is that a corresponding coordinated instruction or rule is issued to a subordinate coordinated chain, and the processing result is notified to a relevant management mechanism. It should be noted here that the collaboration result includes cross-chain delivery and co-chain delivery, and the specific collaboration result is adapted to the collaboration type.
Through the steps, the request collaboration on the same chain or a cross-chain is realized, so that the collaboration request can be carried out on the chain, the generated request proposal on the chain to be collaborated can be stored on the chain, and due to the characteristics of 'non-tampering', 'traceability' and the like of the block chain, a management mechanism for issuing collaboration instructions or collaboration rules can be positioned and issued through the request proposal to be collaborated when the collaboration has problems, so that the security of the request collaboration on the multi-level cross-chain is improved.
In step S40, when the target collaborative manner is the data collaborative manner, it specifically includes the following steps S404 to S407:
s404, sending a data cooperation request to the block chain to be cooperated based on a data cooperation mode, wherein the data cooperation request comprises a request type.
S405, acquiring a request mode corresponding to the request type from a preset request mode set as a target request mode.
And S406, performing cooperative processing on the data cooperative request by using the block chain to be cooperative based on the target request mode to obtain a processing result.
And S407, determining a cooperation result corresponding to the data cooperation request based on the processing result.
For step S406, it specifically is:
broadcasting the data cooperation request by adopting a block chain to be cooperated so that a mechanism receiving the data cooperation request votes for the data cooperation request to obtain a voting result;
and summarizing all voting results based on a preset processing mode to obtain a processing result.
When the target request mode is the same-link data cooperation request, if the management mechanism initiating the request has the cooperation rule base reading permission of the corresponding management mechanism, the corresponding cooperation rule is directly read and stored in the cooperation rule base of the management mechanism. And if the management mechanism initiating the request does not obtain the corresponding authority of the collaborative rule base corresponding to the management mechanism, initiating the request to the corresponding management mechanism in a mode of broadcasting the event in the chain. It should be understood that there is a organizational level collaboration rule base within the same collaboration chain, stored on the chain. When the management organization creates the own collaborative rule base, the authority can designate which management organizations share the collaborative rule base of the organization through authority control. After that, the sharing can be cancelled or added through the authority control. After receiving the request, the management organization chooses to approve or reject the request. And if the request is approved, giving the authority the reading authority of the own collaborative rule base through authority control. If the request is denied, the authority is also notified by means of an in-chain broadcast event. If the request of the management mechanism initiating the request is agreed, the corresponding cooperation rule base reads the needed cooperation rule, the cooperation rule is stored in the cooperation rule base, and after the reading is finished, the corresponding management mechanism is informed in the form of an in-chain broadcast event. After receiving the notification of the completion of reading, the management organization can decide whether to cancel the reading authority of the management organization for the own collaborative rule base through authority control and notify the corresponding management organization of the decision in a form of intra-chain broadcasting.
When the target request mode is a cross-chain data collaboration request, the management mechanism may request a certain industry or a collaboration rule meeting a certain condition from the management mechanisms in other collaboration chains at the same level, and broadcast an event to notify the corresponding management mechanisms in other collaboration chains in a cross-chain manner. The authority receiving the request may decide whether to share the collaborative rules. And if the request is approved, reading the requested cooperation rule from the own cooperation rule base, and sending the cooperation rule to the requester in a cross-chain mode. If the request is denied, the requestor also needs to be informed of the reason for the denial in a cross-chain fashion. And the requester receiving the cooperation rule stores the cooperation rule in the own cooperation rule base of the chain.
Through the data collaboration, management mechanisms in the peer collaboration chain can share data, and the collaboration can be executed more efficiently. And the cooperative data and the data request are stored on the chain, so that the authenticity and the effectiveness of the cooperative data are ensured on one hand, and the flow of the cooperative data can be monitored on the other hand, thereby improving the safety of multi-level cross-chain data cooperation.
The multi-level cross-chain cooperation method provided by the embodiment of the invention obtains cooperation information, wherein the cooperation information comprises cooperation data, a level number of a block chain where the cooperation data is located and a cooperation type; acquiring at least one block chain corresponding to the level number of the block chain where the collaborative data is located as a block chain to be collaborative; acquiring a cooperation mode corresponding to the cooperation type from a preset cooperation mode set as a target cooperation mode; and performing cooperative processing on the cooperative data by adopting the block chain to be cooperative based on the target cooperative mode to obtain a cooperative result. By means of the target cooperation mode, the cooperation data are subjected to the cooperation processing process corresponding to the target cooperation mode through the block chains to be cooperated, cooperation processing is made to be public and transparent, traceability is achieved, data sharing on different block chains is achieved, multi-level chain crossing cooperation efficiency is made to be better, and multi-level chain crossing cooperation safety is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a multi-level cross-chain cooperation device is provided, and the multi-level cross-chain cooperation device corresponds to the multi-level cross-chain cooperation method in the above embodiment one to one. As shown in fig. 3, the multi-level cross-chain cooperation device includes a cooperation information obtaining module 11, a block chain to be cooperated obtaining module 12, a target cooperation mode obtaining module 13, and a cooperation result obtaining module 14. The functional modules are explained in detail as follows:
the coordination information obtaining module 11 is configured to obtain coordination information, where the coordination information includes coordination data, a layer number of a block chain where the coordination data is located, and a coordination type.
The block chain to be coordinated obtaining module 12 is configured to obtain at least one block chain corresponding to the level number of the block chain where the coordination data is located as the block chain to be coordinated.
And a target cooperation mode obtaining module 13, configured to obtain, from a preset cooperation mode set, a cooperation mode corresponding to the cooperation type as a target cooperation mode.
And the cooperative result obtaining module 14 is configured to perform cooperative processing on the cooperative data by using the block chain to be cooperative based on the target cooperative mode, so as to obtain a cooperative result.
In one embodiment, the target collaborative manner obtaining module 13 further includes:
and the on-chain request cooperation unit is used for acquiring the on-chain request cooperation mode when the cooperation type is the on-chain request cooperation, and taking the on-chain request cooperation mode as a target cooperation mode.
And the data cooperation unit is used for acquiring the data cooperation mode when the cooperation type is the data cooperation, and taking the data cooperation mode as a target cooperation mode.
In one embodiment, based on the on-chain request coordination unit, the coordination result obtaining module 14 further includes:
and the on-chain request coordination request acquisition unit is used for generating a request proposal on a coordination chain and sending a coordination request to the block chain to be coordinated based on an on-chain request coordination mode, wherein the coordination request comprises coordination data.
And the on-chain request cooperative processing unit is used for performing cooperative processing on the cooperative request by adopting the block chain to be subjected to cooperative processing based on a preset cooperative processing mode to obtain a processing result.
And the on-chain request collaboration result acquisition unit is used for determining a collaboration result corresponding to the request proposal on the collaboration chain based on the processing result.
In one embodiment, the on-chain requesting coprocessor further comprises:
and the request proposal obtaining unit on the chain to be coordinated is used for adopting the block chain to be coordinated, confirming the request type of the coordination request and generating the request proposal on the chain to be coordinated according to the request type.
And the voting result acquisition unit is used for broadcasting the request proposal on the to-be-coordinated link by adopting the to-be-coordinated block chain so that the mechanism receiving the request proposal on the to-be-coordinated link votes the request proposal on the to-be-coordinated link to obtain a voting result.
And the processing result acquisition unit is used for summarizing all voting results based on a preset processing mode to obtain a processing result.
In one embodiment, based on the data coordination unit, the coordination result obtaining module 14 further includes:
and the data cooperation request acquisition unit is used for sending a data cooperation request to the block chain to be cooperated based on a data cooperation mode, wherein the data cooperation request comprises a request type.
And the target request mode acquisition unit is used for acquiring a request mode corresponding to the request type from a preset request mode set as a target request mode.
And the data cooperative processing unit is used for performing cooperative processing on the data cooperative request by adopting the block chain to be cooperative based on the target request mode to obtain a processing result.
And the cooperative result acquisition unit is used for determining a cooperative result corresponding to the data cooperative request based on the processing result.
In one embodiment, the data coprocessing unit further comprises:
and the data cooperation voting result acquisition unit is used for broadcasting the data cooperation request by adopting the block chain to be cooperated so as to enable the mechanism receiving the data cooperation request to vote the data cooperation request to obtain a voting result.
And the data processing result acquisition unit is used for summarizing all voting results based on a preset processing mode to obtain a processing result.
Wherein the meaning of "first" and "second" in the above modules/units is only to distinguish different modules/units, and is not used to define which module/unit has higher priority or other defining meaning. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to such process, method, article, or apparatus, and such that a division of modules presented in this application is merely a logical division and may be implemented in a practical application in a further manner.
For specific definition of the multi-level cross-chain cooperative apparatus, reference may be made to the above definition of the multi-level cross-chain cooperative method, which is not described herein again. The modules in the multi-level cross-chain cooperation apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data involved in the multi-level cross-chain collaboration method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a multi-level cross-chain collaboration method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the multi-level cross-chain cooperation method in the above embodiments, such as the steps S10 to S40 shown in fig. 2 and other extensions of the method and related steps. Alternatively, the processor, when executing the computer program, implements the functions of the modules/units of the multi-level cross-chain cooperative apparatus in the above embodiments, such as the functions of the modules 11 to 14 shown in fig. 3. To avoid repetition, further description is omitted here.
The Processor 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. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc.
The memory may be integrated in the processor or may be provided separately from the processor.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the multi-level cross-chain coordination method in the above embodiments, such as the steps S10 to S40 shown in fig. 2 and extensions of other extensions and related steps of the method. Alternatively, the computer program is executed by a processor to implement the functions of the modules/units of the multi-level cross-chain cooperative apparatus in the above-described embodiment, for example, the functions of the modules 11 to 14 shown in fig. 3. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
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.
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 (10)

1. A multi-level cross-chain collaboration method is characterized by comprising the following steps:
acquiring cooperative information, wherein the cooperative information comprises cooperative data, a layer number of a block chain where the cooperative data is located and a cooperative type;
acquiring at least one block chain corresponding to the level number of the block chain where the collaborative data is located as a block chain to be collaborative;
acquiring a cooperation mode corresponding to the cooperation type from a preset cooperation mode set as a target cooperation mode;
and based on the target cooperation mode, adopting the block chain to be cooperated to carry out cooperation processing on the cooperation data to obtain a cooperation result.
2. The method according to claim 1, wherein the step of obtaining the collaborative manner corresponding to the collaborative type from a preset collaborative manner set as a target collaborative manner comprises:
when the cooperation type is the on-chain request cooperation, acquiring an on-chain request cooperation mode, and taking the on-chain request cooperation mode as a target cooperation mode;
and when the cooperation type is data cooperation, acquiring a data cooperation mode, and taking the data cooperation mode as a target cooperation mode.
3. The method according to claim 2, wherein when the target cooperation mode is a chain request cooperation mode, the step of performing cooperation processing on the cooperation data by using the to-be-cooperated blockchain based on the target cooperation mode to obtain a cooperation result comprises:
generating a request proposal on a cooperative chain and sending a cooperative request to the block chain to be cooperative based on the on-chain request cooperative mode, wherein the cooperative request comprises the cooperative data;
based on a preset cooperative processing mode, performing cooperative processing on the cooperative request by adopting the block chain to be cooperative to obtain a processing result;
and determining a cooperative result corresponding to the request proposal on the cooperative chain based on the processing result.
4. The method according to claim 3, wherein the step of performing cooperative processing on the cooperative request by using the to-be-cooperative blockchain based on a preset cooperative processing manner to obtain a processing result comprises:
determining the request type of the cooperation request by adopting the block chain to be cooperated, and generating a request proposal on the block chain to be cooperated according to the request type;
broadcasting the proposal request on the chain to be coordinated by using the block chain to be coordinated so that the mechanism receiving the proposal request on the chain to be coordinated votes for the proposal request on the chain to be coordinated to obtain a voting result;
and summarizing all the voting results based on a preset processing mode to obtain a processing result.
5. The method according to claim 2, wherein when the target cooperation mode is a data cooperation mode, the step of performing cooperation processing on the cooperation data by using the to-be-cooperated blockchain based on the target cooperation mode to obtain a cooperation result comprises:
sending a data cooperation request to the block chain to be cooperated based on the data cooperation mode, wherein the data cooperation request comprises the request type;
acquiring a request mode corresponding to the request type from a preset request mode set as a target request mode;
based on the target request mode, performing cooperative processing on the data cooperative request by adopting the block chain to be cooperative to obtain a processing result;
and determining a cooperative result corresponding to the data cooperative request based on the processing result.
6. The method according to claim 5, wherein the step of performing cooperative processing on the data cooperation request by using the block chain to be coordinated based on the target request mode to obtain a processing result comprises:
broadcasting the data cooperation request by using the block chain to be cooperated so that a mechanism receiving the data cooperation request votes for the data cooperation request to obtain a voting result;
and summarizing all the voting results based on a preset processing mode to obtain a processing result.
7. A multi-level chain-spanning cooperative apparatus, comprising:
a coordination information obtaining module, configured to obtain coordination information, where the coordination information includes coordination data, a layer number of a block chain where the coordination data is located, and a coordination type;
a block chain to be coordinated acquiring module, configured to acquire at least one block chain corresponding to a level number of a block chain in which the coordination data is located as a block chain to be coordinated;
a target cooperation mode obtaining module, configured to obtain, from a preset cooperation mode set, a cooperation mode corresponding to the cooperation type as a target cooperation mode;
and the cooperative result acquisition module is used for performing cooperative processing on the cooperative data by adopting the block chain to be cooperative based on the target cooperative mode to obtain a cooperative result.
8. The apparatus according to claim 7, wherein the target collaborative manner obtaining module comprises:
a request coordination unit on the link, configured to, when the coordination type is a request coordination on the link, acquire a request coordination manner on the link, and use the request coordination manner on the link as a target coordination manner;
and the data cooperation unit is used for acquiring a data cooperation mode when the cooperation type is data cooperation, and taking the data cooperation mode as a target cooperation mode.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor when executing the computer program implements the steps of the multi-tier, cross-chain collaboration method as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the multi-hierarchy cross-chain collaborative method according to any one of claims 1 to 6.
CN202111603040.1A 2021-12-24 2021-12-24 Multi-level cross-chain cooperation method and device, computer equipment and storage medium Pending CN114499963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111603040.1A CN114499963A (en) 2021-12-24 2021-12-24 Multi-level cross-chain cooperation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111603040.1A CN114499963A (en) 2021-12-24 2021-12-24 Multi-level cross-chain cooperation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114499963A true CN114499963A (en) 2022-05-13

Family

ID=81495756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111603040.1A Pending CN114499963A (en) 2021-12-24 2021-12-24 Multi-level cross-chain cooperation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114499963A (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616578A (en) * 2018-04-09 2018-10-02 上海点融信息科技有限责任公司 Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
CN109495592A (en) * 2019-01-11 2019-03-19 四川虹微技术有限公司 Data collaborative method and electronic equipment
CN110706006A (en) * 2019-10-09 2020-01-17 北京物资学院 Supply chain logistics traceability system with block chain multi-chain cooperation
CN110784517A (en) * 2019-09-20 2020-02-11 北京海益同展信息科技有限公司 Service application integration method, system, terminal and storage medium based on block chain
CN111159755A (en) * 2019-12-12 2020-05-15 广东工业大学 Cross-link data cooperation method based on alliance link
US20200177388A1 (en) * 2019-06-28 2020-06-04 Alibaba Group Holding Limited Cross-blockchain resource transmission
CN111598531A (en) * 2020-04-27 2020-08-28 傲林科技有限公司 Multi-block chain service cooperation method and device and electronic equipment
CN111625593A (en) * 2020-04-21 2020-09-04 金蝶软件(中国)有限公司 Data processing method and device based on block chain and computer equipment
WO2020233352A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Block chain data chaining method, device, computer apparatus and storage medium
CN112330326A (en) * 2020-11-27 2021-02-05 中国农业银行股份有限公司 Business processing method and device applied to bank transaction block chain system
CN112650764A (en) * 2020-12-30 2021-04-13 北京百度网讯科技有限公司 Cross-chain data processing method, device, equipment and storage medium
CN112861190A (en) * 2021-04-23 2021-05-28 腾讯科技(深圳)有限公司 Data cross-chain cooperation method, system and device
CN112905661A (en) * 2021-02-07 2021-06-04 杭州趣链科技有限公司 Data processing method, system, device, server and medium
CN113242305A (en) * 2021-05-13 2021-08-10 杭州趣链科技有限公司 Cross-chain transaction processing method, device, computer equipment and medium
CN113450113A (en) * 2021-06-28 2021-09-28 上海计算机软件技术开发中心 Cross-chain interaction intelligent contract interaction model and collaborative execution system
WO2021233151A1 (en) * 2020-05-22 2021-11-25 腾讯科技(深圳)有限公司 Data processing method, apparatus and device, blockchain system, and computer readable storage medium
CN113746639A (en) * 2021-09-22 2021-12-03 欧阳键 Block chain-based multi-level network system

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616578A (en) * 2018-04-09 2018-10-02 上海点融信息科技有限责任公司 Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
CN109495592A (en) * 2019-01-11 2019-03-19 四川虹微技术有限公司 Data collaborative method and electronic equipment
WO2020233352A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Block chain data chaining method, device, computer apparatus and storage medium
US20200177388A1 (en) * 2019-06-28 2020-06-04 Alibaba Group Holding Limited Cross-blockchain resource transmission
CN110784517A (en) * 2019-09-20 2020-02-11 北京海益同展信息科技有限公司 Service application integration method, system, terminal and storage medium based on block chain
CN110706006A (en) * 2019-10-09 2020-01-17 北京物资学院 Supply chain logistics traceability system with block chain multi-chain cooperation
CN111159755A (en) * 2019-12-12 2020-05-15 广东工业大学 Cross-link data cooperation method based on alliance link
CN111625593A (en) * 2020-04-21 2020-09-04 金蝶软件(中国)有限公司 Data processing method and device based on block chain and computer equipment
CN111598531A (en) * 2020-04-27 2020-08-28 傲林科技有限公司 Multi-block chain service cooperation method and device and electronic equipment
WO2021233151A1 (en) * 2020-05-22 2021-11-25 腾讯科技(深圳)有限公司 Data processing method, apparatus and device, blockchain system, and computer readable storage medium
CN112330326A (en) * 2020-11-27 2021-02-05 中国农业银行股份有限公司 Business processing method and device applied to bank transaction block chain system
CN112650764A (en) * 2020-12-30 2021-04-13 北京百度网讯科技有限公司 Cross-chain data processing method, device, equipment and storage medium
CN112905661A (en) * 2021-02-07 2021-06-04 杭州趣链科技有限公司 Data processing method, system, device, server and medium
CN112861190A (en) * 2021-04-23 2021-05-28 腾讯科技(深圳)有限公司 Data cross-chain cooperation method, system and device
CN113242305A (en) * 2021-05-13 2021-08-10 杭州趣链科技有限公司 Cross-chain transaction processing method, device, computer equipment and medium
CN113450113A (en) * 2021-06-28 2021-09-28 上海计算机软件技术开发中心 Cross-chain interaction intelligent contract interaction model and collaborative execution system
CN113746639A (en) * 2021-09-22 2021-12-03 欧阳键 Block chain-based multi-level network system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZHANG, XIN; SUN, PENGCHENG; XU, JIPING ; WANG, XIAOYI ; YU, JIABIN ; ZHAO, ZHIYAO;DONG, YUNFENG: "Blockchain-Based Safety Management System for the Grain Supply Chain", IEEE ACCESS, no. 8, 17 April 2020 (2020-04-17) *
叶少杰;汪小益;徐才巢;孙建伶;: "BitXHub:基于侧链中继的异构区块链互操作平台", 计算机科学, no. 06, 15 June 2020 (2020-06-15) *
宋俊典;戴炳荣;蒋丽雯;赵尧;李超;王晓强;: "基于区块链的数据治理协同方法", 计算机应用, no. 09, 4 June 2018 (2018-06-04) *

Similar Documents

Publication Publication Date Title
CN110222533B (en) Distributed data security application method and system and electronic equipment
CN110569251A (en) Data processing method, related equipment and computer readable storage medium
DE102018101307A1 (en) SGX enclave remote authentication techniques
CN112003858B (en) Block chain-based platform docking method, electronic device and storage medium
CN110532025B (en) Data processing method, device and equipment based on micro-service architecture and storage medium
CN112667748B (en) Block chain all-in-one machine facing audit service, data processing method and device
WO2020177548A1 (en) Blockchain authority control method and device
CN111861477A (en) Block chain-based post-transaction data processing method and device and computer equipment
WO2020156135A1 (en) Method and device for processing access control policy and computer-readable storage medium
CN110992178A (en) Verification method and device for block chain node, computer equipment and storage medium
WO2021129004A1 (en) Blockchain data access control method and apparatus based on intelligent contract
CN112527835B (en) Authentication request processing method and device based on cache and related equipment
CN112651001A (en) Access request authentication method, device, equipment and readable storage medium
CN110908812A (en) Business data processing method and device, readable storage medium and computer equipment
CN114281605B (en) Calculation method and system based on block chain partitioned storage
CN112052062A (en) User terminal APP display method and device, computer equipment and storage medium
CN114138849A (en) Multi-tenant data authority control method and device, computer and readable storage medium
WO2022100155A1 (en) Interface authorization monitoring method, apparatus, computer device, and storage medium
CN114499963A (en) Multi-level cross-chain cooperation method and device, computer equipment and storage medium
CN114301715A (en) Alliance link data security auditing method and device, computer equipment and storage medium
CN111797373B (en) Method, system, computer device and readable storage medium for identity information authentication
CN114978651A (en) Privacy calculation evidence storage method and device, electronic equipment and storage medium
CN112789596A (en) Processing method and device for task processing request and block chain node equipment
CN109711838B (en) System function management method, system and equipment in block chain
CN115145976A (en) Data processing method and device based on block chain, computer equipment and medium

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