CN113742425A - Multi-link data uploading, chaining and interaction method and system - Google Patents

Multi-link data uploading, chaining and interaction method and system Download PDF

Info

Publication number
CN113742425A
CN113742425A CN202111043614.4A CN202111043614A CN113742425A CN 113742425 A CN113742425 A CN 113742425A CN 202111043614 A CN202111043614 A CN 202111043614A CN 113742425 A CN113742425 A CN 113742425A
Authority
CN
China
Prior art keywords
data
chain
sub
interacted
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111043614.4A
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.)
Shanghai Ouye Finance Information Service Co ltd
Original Assignee
Shanghai Ouye Finance Information Service 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 Shanghai Ouye Finance Information Service Co ltd filed Critical Shanghai Ouye Finance Information Service Co ltd
Priority to CN202111043614.4A priority Critical patent/CN113742425A/en
Publication of CN113742425A publication Critical patent/CN113742425A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a multi-chain data uploading, chaining and interaction method and system, wherein a plurality of sub-chains are utilized to upload data to be interacted to a block chain middle station; acquiring the requirement of data needing to be interacted of each sub-chain by using a requirement pool; sending data needing interaction to a block chain intermediate station; utilizing a block chain intermediate station to uplink the data needing to be interacted according to the data content needed by the rest sub chains; the method and the device have the advantages that data redundancy is reduced, storage space is saved, service coupling is reduced, and frequent interaction between prepositions of different chains is avoided when cross service is needed to interact between the chains.

Description

Multi-link data uploading, chaining and interaction method and system
Technical Field
The present invention relates to the field of block chain interaction technologies, and in particular, to a method and a system for uploading, chaining, and interacting multi-chain data.
Background
A general blockchain service only needs to perform a service on its own chain, and when interaction is required between blockchains, the interaction between blockchains is difficult because of different data structures and different data authorities of different chains. When a certain chain needs to interact with other chains, the existing scheme is to perform interaction between the preamble of the chain and the preamble of the corresponding chain, and uplink the corresponding data. However, when one chain interacts with multiple chains, the preamble corresponding to the chain needs to be adapted to the preambles of multiple other chains, and the interfacing cost between the preambles is relatively high and the interaction efficiency is not high.
Therefore, there is a need in the art for a multi-chain data interaction that avoids the problem of frequent interaction between preambles of different chains.
Disclosure of Invention
The invention aims to provide a multi-chain data uploading, chaining and interaction method and system, wherein each sub-chain is arranged in front of the block chain only needing to be interacted once with a middle station of the block chain, so that the problems of high butt joint cost and low interaction efficiency caused by frequent interaction among the front stations of different chains in the conventional multi-chain interaction process are solved.
In order to achieve the purpose, the invention provides the following scheme:
a multi-chain interaction data uploading method, comprising:
acquiring the requirement of data needing to be interacted of each sub-chain by using a requirement pool;
calling the prepositions of the corresponding subchains of the demands according to the demands by using the demand pool, and sending data needing to be interacted to a block chain middle station; the blockchain middlebox includes a public data blockchain middlebox and a private data blockchain middlebox.
In some embodiments, the invoking, by the requirement pool, the prefix of the corresponding child chain of the requirement according to the requirement, and sending the data to be interacted to the middle station of the block chain specifically includes:
judging whether the data needing to be interacted in the demand is public data or private data by using the demand pool;
if the data needing to be interacted are public data, uploading the public data needing to be interacted to a public data block chain intermediate station in a public data mode;
and if the data needing to be interacted is the privacy data, uploading the privacy data needing to be interacted to a privacy data block chain relay station in a privacy data mode.
In some embodiments, if the data that needs to be interacted is public data, uploading the public data that needs to be interacted to a public data block chain intermediate station in a public data manner, specifically includes:
searching the front of a corresponding sub-chain of the demand by using the demand pool, and pushing the demand to the front of the corresponding sub-chain;
acquiring public data needing interaction through the query contract interface of the corresponding sub-chain by utilizing the front of the corresponding sub-chain;
marking the sub-chain from which the public data needing interaction is originated by using the prepositive mark of the corresponding sub-chain;
and uploading the public data needing interaction to a public block chain platform according to a standard format by using the prepositions of the corresponding sub chains.
In some embodiments, if the data that needs to be interacted is the private data, uploading the private data that needs to be interacted to a private data block chain relay station in a private data manner, specifically including:
searching the front of a corresponding sub-chain of the demand by using the demand pool, and pushing the demand to the front of the corresponding sub-chain;
acquiring privacy data needing interaction by using the prepositive position of the corresponding sub-chain through a query contract interface of the corresponding sub-chain; the private data is protected by a secret key;
marking the private data needing to be interacted from which sub-chain by using the prepositive mark of the corresponding sub-chain;
and decrypting the privacy data needing to be interacted by utilizing the prepositive position of the corresponding sub-chain according to the key used by the current sub-chain and uploading the privacy data to a privacy block chain platform according to a standard format.
The invention also provides a multi-chain interactive data uplink method, which comprises the following steps:
acquiring data content required by the child chain by using a station in the block chain;
and transmitting the data required by the sub chain to the corresponding sub chain by using the station in the block chain according to the data content required by the sub chain.
In some embodiments, the transmitting the data desired by the child chain to the corresponding child chain by using the station in the block chain according to the data content required by the child chain specifically includes:
judging whether the data required by the sub chain is public data or private data according to the data content required by the sub chain by using the station in the block chain; the data content required by the child chain comprises: required service type, required service time and required data source;
if the data required by the sub-chain is public data, transmitting the public data required by the sub-chain to the corresponding sub-chain in a public data mode;
and if the data required by the sub-chain is the private data, transmitting the private data required by the sub-chain to the corresponding sub-chain in a private data mode.
In some embodiments, if the data of the child chain is public data, transmitting the public data of the child chain to the corresponding child chain in a public data manner specifically includes:
and transmitting the public data wanted by the sub-chains to the corresponding sub-chains by utilizing the query contract interface of the station in the public data block chain.
In some embodiments, if the data desired by the child chain is private data, transmitting the private data desired by the child chain to the corresponding child chain in a private data manner specifically includes:
verifying the identity of the child chain by using a bastion machine;
after the verification is passed, transmitting the privacy data wanted by the sub-chain to the front of the corresponding sub-chain by using a privacy query contract of a station in a privacy data block chain;
decrypting the private data required by the sub-chain by using the prepositive position of the corresponding sub-chain through a private key to obtain decrypted private data;
and storing the decryption privacy data to the service contract of the corresponding sub-chain by utilizing the preposition of the corresponding sub-chain.
The invention also provides a multi-link data interaction method, which comprises the following steps:
uploading data needing interaction to a block chain middle platform by using a plurality of sub-chains;
the method for uploading data needing interaction to the block chain middle station by using the plurality of sub-chains specifically comprises the following steps:
acquiring the requirement of data needing to be interacted of each sub-chain by using a requirement pool;
calling the prepositions of the corresponding subchains of the demands according to the demands by using the demand pool, and sending data needing to be interacted to a block chain middle station; the block chain intermediate station comprises a public data block chain intermediate station and a private data block chain intermediate station;
utilizing a block chain intermediate station to uplink the data needing to be interacted according to the data content needed by the rest sub chains;
the utilizing the station in the block chain to uplink the data needing to be interacted according to the data content needed by the rest of the sub-chains specifically comprises:
acquiring data contents required by other sub chains by using the block chain middling station;
and transmitting the data required by the other sub chains to the corresponding other sub chains by using the station in the block chain according to the data content required by the other sub chains.
The invention also provides a multi-link data interaction system, which comprises:
the interactive data uploading unit is used for uploading data needing interaction to the block chain middle station by utilizing a plurality of sub-chains;
the interactive data uploading unit comprises:
the demand acquisition module is used for acquiring the demand of the data needing to be interacted of each sub-chain by using the demand pool;
the data uploading module is used for calling the prepositions of the corresponding sub-chains of the requirements according to the requirements by utilizing the requirement pool and sending the data needing to be interacted to the middle station of the block chain;
an interactive data uplink unit, configured to utilize a block chain relay station to uplink the data that needs to be interacted according to the data content needed by the remaining sub-chains;
the interactive data uplink unit comprises:
the data content acquisition module is used for acquiring data contents required by other sub-chains by using the middle station of the block chain;
and the data acquisition module is used for sending the data required by the other sub-chains to the corresponding other sub-chains by using the station in the block chain according to the data content required by the other sub-chains.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention uses a plurality of sub-chains to upload data to be interacted to a block chain middle platform; acquiring the requirement of data needing to be interacted of each sub-chain by using a requirement pool; sending data needing interaction to a block chain intermediate station; utilizing a block chain intermediate station to uplink the data needing to be interacted according to the data content needed by the rest sub chains; the method and the device have the advantages that data redundancy is reduced, storage space is saved, service coupling is reduced, and frequent interaction between prepositions of different chains is avoided when cross service is needed to interact between the chains.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The following drawings are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention.
Fig. 1 is a schematic diagram of information interaction among multiple chains according to an embodiment of the present invention.
Fig. 2 is a flowchart of a multi-link interactive data uploading method according to an embodiment of the present invention.
Fig. 3 is a flowchart of a multi-link interactive data uplink method according to an embodiment of the present invention.
Fig. 4 is a flowchart of a multi-link data interaction method according to an embodiment of the present invention.
Fig. 5 is a block diagram of a multi-link data interaction system according to an embodiment of the present 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As used in this disclosure and in the claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are inclusive in the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
Although the present invention makes various references to certain modules in a system according to embodiments of the present invention, any number of different modules may be used and run on a user terminal and/or server. The modules are merely illustrative and different aspects of the systems and methods may use different modules.
Flow charts are used in the present invention to illustrate the operations performed by a system according to embodiments of the present invention. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously, as desired. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the processes.
The invention aims to provide a multi-chain data interaction method and a multi-chain data interaction system, wherein each sub-chain front-end only needs to interact once with a block chain middle station, so that the problems of high butt joint cost and low interaction efficiency caused by frequent interaction among different chain front-ends in the existing multi-chain interaction process are solved. The invention mainly aims to solve the problems of storage space waste and service confusion caused by the fact that data of different chains are required to be calculated and synchronized to other chains according to a certain rule in a scene with frequent interaction between a block chain and the block chain, and the block chain in a traditional mode is used for singly and completely synchronizing the data to another chain. When a system is used, there are many blockchains to serve, and there is traffic interaction between different blockchains. Different sub-chains can respectively place data needing interaction on a private data block chain intermediate station and a public data block chain intermediate station. As shown in fig. 1, the sub-chain 2 and the sub-chain n are mutually connected. Without the present invention, the blockchain preamble of each sub-chain needs to dock n-1 blockchain preambles, which is very complicated to dock. Under the condition of using the invention, each sub-chain is preposed and only needs to interact once with the middle station of the block chain. The invention considers that authorization is needed when some data are interacted in the same system, so that the block chain middle station is divided into a public data block chain middle station and a private data block chain middle station.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The first embodiment is as follows:
as shown in fig. 2, this embodiment provides a multi-link interactive data uploading method, where the method includes:
a1, acquiring the requirement of data to be interacted of each sub-chain by using a requirement pool;
each sub-chain only needs to divide the data which needs to be interacted with into two types: public data and private data. Each sub-chain puts the requirements of the sub-chain for data interaction into a requirement pool. Each demand belongs to a certain class of data of a certain class of service. For example, a demand needs to search for payment information of the household appliance service from 21 years to 3 months to 6 months. After being put into the demand pool, the demand is translated into some data for obtaining some kind of service. Which have been explicitly defined on the blockchain as being public data or private data.
A2, utilizing the demand pool to call the prepositions of the corresponding sub-chains of the demand according to the demand, and sending the data needing to be interacted to a block chain middle station; the blockchain middlebox includes a public data blockchain middlebox and a private data blockchain middlebox.
And the demand pool calls the prepositions of the corresponding sub-chains to send the data needing interaction to the corresponding block chain intermediate station according to a specified format. The specific process is as follows:
judging whether the data needing to be interacted in the demand is public data or private data by using the demand pool;
if the data needing to be interacted is public data, uploading the public data needing to be interacted to a public data block chain middle station in a public data mode:
searching the front of a corresponding sub-chain of the demand by using the demand pool, and pushing the demand to the front of the corresponding sub-chain;
acquiring public data needing interaction through the query contract interface of the corresponding sub-chain by utilizing the front of the corresponding sub-chain; the method comprises the steps that a front portion of a corresponding sub-chain receives a demand pushed by a demand pool, public data needing interaction of the corresponding sub-chain is screened, then the front portion obtains the public data needing interaction through a query contract interface of the sub-chain, each demand records needed service data, and each sub-chain has a corresponding relation with a certain type of service.
Marking the sub-chain from which the public data needing interaction is originated by using the prepositive mark of the corresponding sub-chain; when the public data to be interacted by the corresponding sub-chain is uploaded to a station in a public data block chain through the preposition of the corresponding sub-chain, the preposition of the corresponding sub-chain marks which sub-chain the data comes from;
uploading the public data needing interaction to a public block chain platform according to a standard format by using the prepositions of the corresponding sub chains; the preposition will assemble the public data needed to interact according to the standard data content format (1, service type 2, service time 3, service data content json string), and upload to the evidence storage contract of the public data block chain platform.
If the data needing to be interacted is the privacy data, uploading the privacy data needing to be interacted to a privacy data block chain central station in a privacy data mode:
searching the front of a corresponding sub-chain of the demand by using the demand pool, and pushing the demand to the front of the corresponding sub-chain;
acquiring privacy data needing interaction by using the prepositive position of the corresponding sub-chain through a query contract interface of the corresponding sub-chain; the private data is protected by a secret key; the front of the corresponding sub-chain receives the requirement pushed by the requirement pool, the privacy data which are required to be interacted with the corresponding sub-chain are screened, and the front of the corresponding sub-chain obtains the privacy data which are required to be interacted and protected through the inquiry contract interface of the corresponding sub-chain.
Marking the private data needing to be interacted from which sub-chain by using the prepositive mark of the corresponding sub-chain; when the corresponding sub-chain uploads the private data needing interaction to a station in the private block chain through the front part of the corresponding sub-chain, the front part of the corresponding sub-chain marks which sub-chain the data comes from;
and decrypting the privacy data needing to be interacted by utilizing the prepositive position of the corresponding sub-chain according to the key used by the current sub-chain and uploading the privacy data to a privacy block chain platform according to a standard format. The corresponding sub-chain is prepositioned to decrypt the private data according to a key system used by the corresponding sub-chain where the private data needing interaction is located, and the private data on the corresponding sub-chain is assembled according to a standard data format (1, service type 2, service time 3 and service data content json string). Plaintext uplink is carried out on two fields of service type and service time in the reassembled private data; and encrypting the data of the json string of the service data content according to an encryption algorithm and a key used by a corresponding sub-chain where the private data needing to be interacted is located. The corresponding sublink uploads the reassembled private data to a service contract of a station in the privacy blockchain.
The reason why the two fields of the service type and the service time are uplink in clear text is that when other child chains request data to the middle station according to the two dimensions of the service type and the service time, the middle station can filter the two fields and distribute the data to the corresponding child chains. The purpose of encrypting the data content json string by using the encryption algorithm and the key of the corresponding chain of the uploaded data is to improve the security, and the data content json relates to data security and needs to use a key system of the corresponding chain. After the sub-chains upload data to the middle station of the block chain, other sub-chains can conveniently acquire corresponding data.
Example two:
as shown in fig. 3, an embodiment of the present invention provides a multi-link interactive data uplink method, including:
b1, acquiring data content required by the child chain by using a station in the block chain; the required data content includes: three fields of required service type, service time and data source
And B2, transmitting the data required by the sub-chain to the corresponding sub-chain by using the station in the block chain according to the data content required by the sub-chain.
In particular, the method comprises the following steps of,
judging whether the data required by the sub chain is public data or private data according to the data content required by the sub chain by using the station in the block chain;
if the data desired by the child chain is public data, transmitting the public data desired by the child chain to the corresponding child chain in a public data mode:
and transmitting the public data wanted by the sub-chains to the corresponding sub-chains by utilizing the query contract interface of the station in the public data block chain. And a sub-chain sends parameters such as a data source, a service type and service time through the front-end of the sub-chain to call a platform query contract interface in a public data block chain, and the platform query contract interface in the public data block chain returns data required by the sub-chain.
If the data required by the sub-chain is private data, transmitting the private data required by the sub-chain to the corresponding sub-chain in a private data mode; when the private data is obtained, the corresponding data is obtained through the filtering of a bastion white list and a corresponding gateway, the verification of a key service and three fields of a service type, a service time and a data source, and the specific steps are as follows:
verifying the identity of the child chain by using a bastion machine; a sub-chain accesses a query contract interface of a station in a private data block chain through a front-end; these accesses are filtered through the bastion machine, passing only the corresponding whitelist ip. After being filtered by the fort machine, the identity contract is required to be verified; the identity information of the sub-chain is brought when the front of the sub-chain requests the inquiry contract interface of the station in the privacy data block chain, and the identity information is intercepted by the identity authentication contract before the inquiry contract interface of the station in the privacy data block chain is called. And judging whether the user group of the calling service type of the data-providing subchain contains the subchain or not, and if so, passing the verification.
After the verification is passed, transmitting the privacy data wanted by the sub-chain to the front of the corresponding sub-chain by using a privacy query contract of a station in a privacy data block chain; and returning the privacy data to the front of the corresponding sub-chain according to the fields of the data source, the service type and the service time of the sub-chain by the privacy query contract.
Decrypting the private data required by the sub-chain by using the prepositive position of the corresponding sub-chain through a private key to obtain decrypted private data; the front of the corresponding sub-chain calls a decryption algorithm of the key service data provider sub-chain through a private key (agreed by both parties and given off-line) of the data provider sub-chain, and the private data is decrypted to obtain decrypted private data.
And storing the decryption privacy data to the service contract of the corresponding sub-chain by utilizing the preposition of the corresponding sub-chain. The front of the corresponding sub-chain performs a series of logic processing on the decryption private data, so that the decryption private data becomes service data which can be directly stored in a contract, and then the front of the corresponding sub-chain can store the data required by the sub-chain in the corresponding sub-chain service contract.
Example three:
as shown in fig. 4, an embodiment of the present invention provides a multi-link data interaction method, where the method includes:
s1, uploading data needing interaction to a block chain middle station by using a plurality of sub-chains;
the method for uploading data needing interaction to the block chain middle station by using the plurality of sub-chains specifically comprises the following steps:
s11, acquiring the requirement of data needing to be interacted of each sub-chain by using a requirement pool;
s12, calling the prepositions of the corresponding sub-chains of the requirements according to the requirements by using the requirement pool, and sending data needing interaction to a block chain middle station; the block chain intermediate station comprises a public data block chain intermediate station and a private data block chain intermediate station;
s2, utilizing a block chain intermediate station to uplink the data needing to be interacted according to the data content needed by the rest sub-chains;
the utilizing the station in the block chain to uplink the data needing to be interacted according to the data content needed by the rest of the sub-chains specifically comprises:
s21, acquiring data contents needed by the other sub-chains by using the block chain middle station;
and S22, transmitting the data required by the other sub-chains to the corresponding other sub-chains by using the station in the block chain according to the data content required by the other sub-chains.
Referring to fig. 5, the present embodiment further provides a multi-link data interaction system, including:
the interactive data uploading unit M1 is used for uploading data to be interacted to the block chain middle station by utilizing a plurality of sub chains;
the interaction data uploading unit M1 includes:
the requirement obtaining module M11 is configured to obtain a requirement of data to be interacted with by each child chain by using a requirement pool;
the data uploading module M12 is configured to call the front of the corresponding sub-chain of the demand according to the demand by using the demand pool, and send data to be interacted to the block chain middle station;
an interactive data uplink unit M2, configured to utilize the station in the block chain to uplink the data that needs to be interacted according to the data content needed by the remaining sub-chains;
the interactive data uplink unit M1 includes:
the data content obtaining module M21 is configured to obtain data content required by the remaining child chains by using the block chain middlebox;
a data obtaining module M22, configured to send, by using the station in the blockchain according to the data content required by the other sub-chains, the data that the other sub-chains want to the corresponding other sub-chains
When a system is used, there are many blockchains to serve, and there is traffic interaction between different blockchains. Different sub-chains can respectively place data needing interaction on a private data block chain intermediate station and a public data block chain intermediate station. As shown in fig. 1, the sub-chain 2 and the sub-chain n are mutually connected. Without the present invention, the blockchain preamble of each sub-chain needs to dock n-1 blockchain preambles, which is very complicated to dock. Under the condition of using the invention, each sub-chain is preposed and only needs to interact once with the middle station of the block chain. The invention considers that authorization is needed when some data are interacted in the same system, so that the block chain middle station is divided into a public data block chain middle station and a private data block chain middle station.
Because the services operated by each sub-chain are different, different types of data are distributed on different sub-chains, and the data of all different chains are synchronized relative to each sub-chain, the redundancy of the data is reduced, the storage space is saved, and the service coupling is also reduced. Meanwhile, when the chain needs to interact with the chain due to cross service, the invention avoids frequent interaction between the prepositions of different chains. The data stored in the middleboxes of the block chains in the same time zone indirectly provides evidence for interaction among different chains, and data can be conveniently supervised and audited.
The invention realizes that the data required by the chain can be obtained without synchronizing other chain data among different chains, the data stored in the block chain middle station indirectly provides a proof for the interaction among different chains, and the data is convenient to supervise and audit.
The present invention has been described using specific terms to describe embodiments of the invention. Such as "first/second embodiment," "an embodiment," and/or "some embodiments" means a feature, structure, or characteristic described in connection with at least one embodiment of the invention. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, some of the features, structures, or characteristics of one or more embodiments of the present invention may be combined as suitable.
Moreover, those skilled in the art will appreciate that aspects of the invention may be illustrated and described as embodied in several forms or conditions of patentability, including any new and useful combination of processes, machines, manufacture, or materials, or any new and useful improvement thereof. Accordingly, aspects of the present invention may be embodied entirely in hardware, entirely in software (including firmware, resident software, micro-code, etc.) or in a combination of hardware and software. The above hardware or software may be referred to as "data block," module, "" engine, "" unit, "" component, "or" system. Furthermore, aspects of the present invention may be represented as a computer product, including computer readable program code, embodied in one or more computer readable media.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The foregoing is illustrative of the present invention and is not to be construed as limiting thereof. Although a few exemplary embodiments of this invention have been described, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of this invention. Accordingly, all such modifications are intended to be included within the scope of this invention as defined in the claims. It is to be understood that the foregoing is illustrative of the present invention and is not to be construed as limited to the specific embodiments disclosed, and that modifications to the disclosed embodiments, as well as other embodiments, are intended to be included within the scope of the appended claims. The invention is defined by the claims and their equivalents.

Claims (10)

1. A multi-chain interactive data uploading method is characterized by comprising the following steps:
acquiring the requirement of data needing to be interacted of each sub-chain by using a requirement pool;
calling the prepositions of the corresponding subchains of the demands according to the demands by using the demand pool, and sending data needing to be interacted to a block chain middle station; the blockchain middlebox includes a public data blockchain middlebox and a private data blockchain middlebox.
2. The multi-chain interactive data uploading method according to claim 1, wherein the using a demand pool calls a prefix of a corresponding sub-chain of the demand according to the demand, and sends data to be interacted to a block chain intermediate station, specifically comprising:
judging whether the data needing to be interacted in the demand is public data or private data by using the demand pool;
if the data needing to be interacted are public data, uploading the public data needing to be interacted to a public data block chain intermediate station in a public data mode;
and if the data needing to be interacted is the privacy data, uploading the privacy data needing to be interacted to a privacy data block chain relay station in a privacy data mode.
3. The method for uploading multi-chain interactive data according to claim 2, wherein if the data to be interacted is public data, the method for uploading the public data to be interacted to a public data block chain intermediate station in a public data manner specifically comprises:
searching the front of a corresponding sub-chain of the demand by using the demand pool, and pushing the demand to the front of the corresponding sub-chain;
acquiring public data needing interaction through the query contract interface of the corresponding sub-chain by utilizing the front of the corresponding sub-chain;
marking the sub-chain from which the public data needing interaction is originated by using the prepositive mark of the corresponding sub-chain;
and uploading the public data needing interaction to a public block chain platform according to a standard format by using the prepositions of the corresponding sub chains.
4. The method for uploading multi-chain interactive data according to claim 2, wherein if the data to be interacted is private data, the private data to be interacted is uploaded to a private data block chain relay station in a private data manner, specifically comprising:
searching the front of a corresponding sub-chain of the demand by using the demand pool, and pushing the demand to the front of the corresponding sub-chain;
acquiring privacy data needing interaction by using the prepositive position of the corresponding sub-chain through a query contract interface of the corresponding sub-chain; the private data is protected by a secret key;
marking the private data needing to be interacted from which sub-chain by using the prepositive mark of the corresponding sub-chain;
and decrypting the privacy data needing to be interacted by utilizing the prepositive position of the corresponding sub-chain according to the key used by the current sub-chain and uploading the privacy data to a privacy block chain platform according to a standard format.
5. A method for multi-chain interactive data uplink, the method comprising:
acquiring data content required by the child chain by using a station in the block chain;
and transmitting the data required by the sub chain to the corresponding sub chain by using the station in the block chain according to the data content required by the sub chain.
6. The method of claim 5, wherein the transmitting data desired by the child chain to the corresponding child chain by the station in the block chain according to the data content required by the child chain comprises:
judging whether the data required by the sub chain is public data or private data according to the data content required by the sub chain by using the station in the block chain; the data content required by the child chain comprises: required service type, required service time and required data source;
if the data required by the sub-chain is public data, transmitting the public data required by the sub-chain to the corresponding sub-chain in a public data mode;
and if the data required by the sub-chain is the private data, transmitting the private data required by the sub-chain to the corresponding sub-chain in a private data mode.
7. The method of claim 6, wherein if the data intended for the child chain is public data, transmitting the public data intended for the child chain to the corresponding child chain in a public data manner comprises:
and transmitting the public data wanted by the sub-chains to the corresponding sub-chains by utilizing the query contract interface of the station in the public data block chain.
8. The method of claim 6, wherein if the data intended for the child chain is private data, transmitting the private data intended for the child chain to the corresponding child chain in the form of private data comprises:
verifying the identity of the child chain by using a bastion machine;
after the verification is passed, transmitting the privacy data wanted by the sub-chain to the front of the corresponding sub-chain by using a privacy query contract of a station in a privacy data block chain;
decrypting the private data required by the sub-chain by using the prepositive position of the corresponding sub-chain through a private key to obtain decrypted private data;
and storing the decryption privacy data to the service contract of the corresponding sub-chain by utilizing the preposition of the corresponding sub-chain.
9. A multi-chain data interaction method, the method comprising:
uploading data needing interaction to a block chain middle platform by using a plurality of sub-chains;
the method for uploading data needing interaction to the block chain middle station by using the plurality of sub-chains specifically comprises the following steps:
acquiring the requirement of data needing to be interacted of each sub-chain by using a requirement pool;
calling the prepositions of the corresponding subchains of the demands according to the demands by using the demand pool, and sending data needing to be interacted to a block chain middle station; the block chain intermediate station comprises a public data block chain intermediate station and a private data block chain intermediate station;
utilizing a block chain intermediate station to uplink the data needing to be interacted according to the data content needed by the rest sub chains;
the utilizing the station in the block chain to uplink the data needing to be interacted according to the data content needed by the rest of the sub-chains specifically comprises:
acquiring data contents required by other sub chains by using the block chain middling station;
and transmitting the data required by the other sub chains to the corresponding other sub chains by using the station in the block chain according to the data content required by the other sub chains.
10. A multi-chain data interaction system, the system comprising:
the interactive data uploading unit is used for uploading data needing interaction to the block chain middle station by utilizing a plurality of sub-chains;
the interactive data uploading unit comprises:
the demand acquisition module is used for acquiring the demand of the data needing to be interacted of each sub-chain by using the demand pool;
the data uploading module is used for calling the prepositions of the corresponding sub-chains of the requirements according to the requirements by utilizing the requirement pool and sending the data needing to be interacted to the middle station of the block chain;
an interactive data uplink unit, configured to utilize a block chain relay station to uplink the data that needs to be interacted according to the data content needed by the remaining sub-chains;
the interactive data uplink unit comprises:
the data content acquisition module is used for acquiring data contents required by other sub-chains by using the middle station of the block chain;
and the data acquisition module is used for sending the data required by the other sub-chains to the corresponding other sub-chains by using the station in the block chain according to the data content required by the other sub-chains.
CN202111043614.4A 2021-09-07 2021-09-07 Multi-link data uploading, chaining and interaction method and system Pending CN113742425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111043614.4A CN113742425A (en) 2021-09-07 2021-09-07 Multi-link data uploading, chaining and interaction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111043614.4A CN113742425A (en) 2021-09-07 2021-09-07 Multi-link data uploading, chaining and interaction method and system

Publications (1)

Publication Number Publication Date
CN113742425A true CN113742425A (en) 2021-12-03

Family

ID=78736497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111043614.4A Pending CN113742425A (en) 2021-09-07 2021-09-07 Multi-link data uploading, chaining and interaction method and system

Country Status (1)

Country Link
CN (1) CN113742425A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116226137A (en) * 2023-05-06 2023-06-06 山东浪潮科学研究院有限公司 Data storage method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116226137A (en) * 2023-05-06 2023-06-06 山东浪潮科学研究院有限公司 Data storage method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3438902B1 (en) System for issuing public certificate on basis of block chain, and method for issuing public certificate on basis of block chain by using same
CN107770182B (en) Data storage method of home gateway and home gateway
JP4272920B2 (en) Method and apparatus for checking the validity of a first communication participant in a communication network
CA2569761C (en) A method of encrypting and transferring data between a sender and a receiver using a network
CN101964791B (en) Communication authenticating system and method of client and WEB application
CN100493092C (en) Data business right discriminating method
CN109213790B (en) Block chain-based data circulation analysis method and system
CN109981633B (en) Method, apparatus and computer-readable storage medium for accessing server
CN101248613A (en) Authentic device admission scheme for a secure communication network, especially a secure ip telephony network
CN109714170B (en) Data isolation method in alliance chain and corresponding alliance chain system
US20100144350A1 (en) Methods, devices, systems, and computer program products for registration of multi-mode communications devices
JP2006217446A (en) Remote conference system
US20160173458A9 (en) Method of Encrypting and Transferring Data Between a Sender and a Receiver Using a Network
CN106330441A (en) Method, equipment and system for processing trusted time information
CN113742425A (en) Multi-link data uploading, chaining and interaction method and system
CN108737390A (en) Protect the authentication method and system of user name privacy
CN112235290B (en) Block chain-based Internet of things equipment management method and first Internet of things equipment
CN104243153A (en) Method for spotting equipment user, and user equipment
CN102714653A (en) System and method for accessing private digital content
CN111460489A (en) Client persistent storage method based on IPFS (Internet protocol file system) block chain
US20050132183A1 (en) Method and system for user created personal private network (PPN) with secure communications and data transfer
CN103916359A (en) Method and device for preventing attacks from ARP middleman in network
CN107426452B (en) Internet call method and device
CN113194069B (en) Communication tracing method, communication tracing device and medium based on block chain
CN1551557A (en) Cryptographic communication method in communication system

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
CB02 Change of applicant information

Address after: Room 3005, No.9, Lane 803, Shuangcheng Road, Baoshan District, Shanghai 201900

Applicant after: Shanghai Ouye Jincheng Information Service Co.,Ltd.

Address before: Room 3005, No.9, Lane 803, Shuangcheng Road, Baoshan District, Shanghai 201900

Applicant before: SHANGHAI OUYE FINANCE INFORMATION SERVICE Co.,Ltd.

CB02 Change of applicant information