CN113034136A - Data management method and device based on block chain and electronic equipment - Google Patents

Data management method and device based on block chain and electronic equipment Download PDF

Info

Publication number
CN113034136A
CN113034136A CN202110262805.3A CN202110262805A CN113034136A CN 113034136 A CN113034136 A CN 113034136A CN 202110262805 A CN202110262805 A CN 202110262805A CN 113034136 A CN113034136 A CN 113034136A
Authority
CN
China
Prior art keywords
data
node
query
block chain
authority
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
CN202110262805.3A
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.)
State Grid Corp of China SGCC
Global Energy Interconnection Research Institute
Changzhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Global Energy Interconnection Research Institute
Changzhou Power Supply Co of State Grid Jiangsu Electric Power 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 State Grid Corp of China SGCC, Global Energy Interconnection Research Institute, Changzhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202110262805.3A priority Critical patent/CN113034136A/en
Publication of CN113034136A publication Critical patent/CN113034136A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Abstract

The invention discloses a data management method and device based on a block chain and electronic equipment, wherein the method comprises the following steps: when a data query request sent by any node is received, determining whether the node has query authority or not according to authority information contained in the data query request; when the node has the inquiry authority, inquiring the data assets corresponding to the data identification in the block chain according to the data identification of the data assets to be inquired contained in the data inquiry request, wherein the data assets in the block chain are obtained by encrypting original data through the data supply node in advance and uploading the encrypted original data, and the data assets in the block chain are stored in association with the corresponding data identification and data right confirming information in the block chain; and feeding back the data asset query result to the node sending the data query request.

Description

Data management method and device based on block chain and electronic equipment
Technical Field
The invention relates to the technical field of data management, in particular to a data management method and device based on a block chain and electronic equipment.
Background
In a data transaction scene, it is important to determine the right of data, and information internet enables data sharing to be rapid and efficient, but the right of data determination and data recording and circulation cannot be realized.
Disclosure of Invention
Therefore, the invention provides a data management method, a data management device and electronic equipment based on a block chain, so as to realize data management and facilitate users to perform data query on the block chain to realize data right confirmation.
According to a first aspect, an embodiment of the present invention discloses a data management method based on a block chain, which is applied to a block chain network, where the block chain network includes a data supply node and a data demand node, and the method includes: when a data query request sent by any node is received, determining whether the node has query authority or not according to authority information contained in the data query request; when the node has the inquiry authority, inquiring the data assets corresponding to the data identification in the block chain according to the data identification of the data assets to be inquired contained in the data inquiry request, wherein the data assets in the block chain are obtained by encrypting original data through the data supply node in advance and uploading the encrypted original data, and the data assets in the block chain are stored in association with the corresponding data identification and data right confirming information in the block chain; and feeding back the data asset query result to the node sending the data query request.
Optionally, the method further comprises: when the node sending the data query request does not have the query authority, feeding back data authority determining information corresponding to the data type to the node sending the data query request according to the data type of the data to be queried contained in the data query request.
Optionally, the method further comprises: when the node sending the data query request is a data demand node and the data demand node has query authority, feeding back a data asset query result to the data demand node, so that the data demand node performs data authenticity verification according to the data asset query result and original data obtained from data supply node transaction, wherein the query authority of the data demand node is obtained after the data demand node and the data supply node perform data asset transaction.
Optionally, the data identifier corresponding to the data asset in the block chain is generated by the data supply node according to a preset identifier generation algorithm, is associated with the encrypted original data, and is uploaded to the block chain to obtain the data identifier.
According to a second aspect, an embodiment of the present invention further discloses a data management apparatus based on a blockchain, which is applied to a blockchain network, where the blockchain network includes a data supply node and a data demand node, and the apparatus includes: the determining module is used for determining whether the node has the inquiry authority or not according to the authority information contained in the data inquiry request when receiving the data inquiry request sent by any node; the query module is used for querying the data assets corresponding to the data identification in the block chain according to the data identification of the data assets to be queried, which is contained in the data query request, when the node has the query authority, wherein the data assets in the block chain are obtained by encrypting original data through the data supply node in advance and uploading the encrypted original data, and the data assets in the block chain are stored in association with the corresponding data identification and data authority information in the block chain; and the feedback module is used for feeding back the data asset query result to the node sending the data query request.
Optionally, the query module is further configured to, when the node that sends the data query request does not have the query right, feed back data right confirmation information corresponding to the data type to the node that sends the data query request according to the data type of the data to be queried that is included in the data query request.
Optionally, the feedback module is further configured to, when a node sending a data query request is a data demand node and the data demand node has a query authority, feed back a data asset query result to the data demand node, so that the data demand node performs data authenticity verification according to the data asset query result and original data obtained from the data supply node after a transaction of the data asset is performed, where the query authority of the data demand node is obtained after the data demand node performs a data asset transaction with the data supply node.
Optionally, the data identifier corresponding to the data asset in the block chain is generated by the data supply node according to a preset identifier generation algorithm, is associated with the encrypted original data, and is uploaded to the block chain to obtain the data identifier.
According to a third aspect, an embodiment of the present invention further discloses an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method for blockchain based data management according to the first aspect or any one of the optional embodiments of the first aspect.
According to a fourth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the block chain based data management method according to the first aspect or any one of the optional embodiments of the first aspect.
The technical scheme of the invention has the following advantages:
the invention provides a data management method/device based on a block chain, when a block chain network receives a data query request sent by any node, whether the node has query authority is determined according to authority information contained in the data query request, when the node has the query authority, data assets corresponding to data identifications are queried in the block chain according to the data identifications of data assets to be queried contained in the data query request, wherein the data assets in the block chain are obtained by encrypting original data through a data supply node in advance and uploading, the data assets in the block chain are stored in association with the corresponding data identifications and data authority determining information in the block chain, a data asset query result is fed back to the node sending the data query request, and the data identification and the data authority determining information are stored in association, so that the node sending the data query request can realize data authority determination according to the data authority determining information in the fed back data asset query result, the safety of the data transaction process is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic view of an application scenario corresponding to a block chain-based data management method in an embodiment of the present invention;
fig. 2 is a flowchart of a specific example of a block chain-based data management method according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a specific example of a block chain-based data management apparatus according to an embodiment of the present invention;
fig. 4 is a diagram of a specific example of an electronic device in an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but 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.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses a data management method based on a block chain, which is applied to a block chain network, wherein the block chain network comprises a data supply node and a data demand node, the scheme recorded in the embodiment of the application is described by taking power grid data as an example and combining a figure 1 and a figure 2, and the method comprises the following steps:
step 201, when receiving a data query request sent by any node, determining whether the node has a query right according to the right information contained in the data query request.
The node sending the data query request may be a data supply node or a data demand node, and when receiving the data query request sent by the data supply node, the node may be used for the data supply node to check the power grid data information uploaded to the block chain in time, and when receiving the data query request sent by the data demand node, the node may be used for the data demand node to complete a transaction right-confirming operation by acquiring corresponding right-confirming information from the block chain network after performing entity data transaction with the data supply node.
The query authority of the node can be identity identification information of the node, a plurality of pieces of node identity identification information with data query authority can be prestored in the blockchain network, when a data query request sent by any node is received, the node identity identification information contained in the data query request is compared with the prestored identity information with the query authority, and whether the node sending the data query request has the query authority or not is determined according to a comparison result. The identity identification information prestored in the blockchain network can be the identity identification information of a data supply node which uploads power grid data to the blockchain network, so that the data supply node can directly execute subsequent data query operation by verifying the identity identification information of the data supply node, and for the data demand node, after data transaction is carried out with the data supply node, the data supply node sends an identity token to the data demand node which carries out transaction with the data supply node, so that the blockchain network can determine whether the data demand node has the authority to carry out the data query operation according to the identity token of the data demand node. The determination method of the node query authority is not limited in the embodiment of the application, and a person skilled in the art can determine the determination method according to actual needs.
Step 202, when the node has the query authority, querying the data asset corresponding to the data identifier in the block chain according to the data identifier of the data asset to be queried contained in the data query request, wherein the data asset in the block chain is obtained by encrypting the original data in advance through the data supply node and uploading the encrypted data, and the data asset in the block chain is stored in association with the corresponding data identifier and the data authority information in the block chain.
Illustratively, the data identifier corresponding to the data asset may be obtained by encrypting a keyword included in the data asset through a preset encryption algorithm, in this embodiment of the present application, the preset encryption algorithm is a Trapdoor generation algorithm (Trapdoor), and the Trapdoor of the keyword of the data asset to be queried is generated through the Trapdoor generation algorithm, so as to obtain the data identifier. The preset encryption algorithm is not limited in the embodiment of the present application, and those skilled in the art can determine the preset encryption algorithm according to actual needs. Because the data original text occupies larger storage resources, the data assets stored in the block chain are ciphertext obtained by encrypting the original data by the data supply node according to the key generated by the key generation algorithm. And when the node sending the data query request has the query authority, the block chain network can perform data identifier traversal query on the block chain according to the data identifier of the data asset to be queried, which is contained in the data query, so as to obtain corresponding data asset information and/or data right determining information. In the embodiment of the present application, the data right information includes, but is not limited to, data attribution information, data volume information (e.g., a number of data sold in a previous period), and the like, where the data attribution information may include an original owner of the data and a serial number of an owner that currently uploads the data to the blockchain, where the serial number represents an order in which the owner takes the data.
And step 203, feeding back the data asset query result to the node sending the data query request.
Exemplarily, in the process of feeding back the data asset query result to the node sending the data query request, in order to ensure the security of the data asset query result, the blockchain may encrypt the data asset query result by using the public key of the node sending the data request and then feed back the encrypted data asset query result, so that the node sending the data query request may decrypt the encrypted data asset query result by using the corresponding private key to obtain the data asset query result; because the data assets stored in the block chain are encrypted data, the node sending the data query request can directly decrypt the data assets by using a decryption algorithm corresponding to the encryption algorithm after receiving the data asset query result to obtain the data asset abstract data.
The invention provides a data management method based on a block chain, when a block chain network receives a data query request sent by any node, whether the node has query authority is determined according to authority information contained in the data query request, when the node has the query authority, data assets corresponding to data identifications are queried in the block chain according to the data identifications of data assets to be queried contained in the data query request, wherein the data assets in the block chain are obtained by encrypting original data through a data supply node in advance and uploading, the data assets in the block chain are stored in association with the corresponding data identifications and data authority information in the block chain, the data asset query result is fed back to the node sending the data query request, and the data identification and the data authority information are stored in association, so that the node sending the data query request can realize data authority according to the data authority information in the fed back data query result, the safety of the data transaction process is ensured.
As an optional embodiment of the present invention, the method further comprises: when the node sending the data query request does not have the query authority, feeding back data authority determining information corresponding to the data type to the node sending the data query request according to the data type of the data to be queried contained in the data query request.
For example, a node without query authority may set a data type of data to be queried in a data query request sent to a blockchain, where the blockchain may query, in the blockchain, for the data type, the authority information of the corresponding data type to obtain a transaction condition of the data, and the node without query authority cannot query specific data detail information.
As an optional embodiment of the present invention, the method further comprises: when the node sending the data query request is a data demand node and the data demand node has query authority, feeding back a data asset query result to the data demand node, so that the data demand node performs data authenticity verification according to the data asset query result and original data obtained from data supply node transaction, wherein the query authority of the data demand node is obtained after the data demand node and the data supply node perform data asset transaction.
Illustratively, the data asset query result may include, but is not limited to, a data summary, data asset membership information. When the data demand node acquires a data asset query result, the data demand node can encrypt original data according to the same encryption algorithm to generate a data abstract, the data abstract generated by the data demand node is compared with the data abstract in the acquired data asset query result, and the authenticity of the acquired original data is determined according to the comparison result; meanwhile, whether the data supply node transacting with the data demand node is a legal owner of the original data or not can be further determined according to the data asset membership information so as to realize the right of the power grid data.
Before data asset transaction is carried out on the data demand nodes and the data supply nodes in the embodiment of the application, when the number of the data demand nodes and the number of the data supply nodes are multiple, dynamic game can be respectively carried out on pricing corresponding to different side nodes. In the embodiment of the application, the data supply node corresponds to an upper-layer game, and the data demand node corresponds to a lower-layer game. Specifically, in the upper-layer game process, a department or an individual providing certain data by a data supply side node is used as a leader of the upper-layer game to evaluate the quality value and the application value of the provided data, and the price is made; other departments or individuals (which may be referred to as "followers") that possess similar data may choose their pricing with the goal of ensuring that their interests are maximized according to the pricing policy of the "leader".
The specific game algorithm is as follows:
first, each data supplier n selects the number s of data soldnNot less than 0, cost cnThen the demand curve is:
Figure BDA0002969988620000081
wherein s isiSelecting the quantity of the data sold for the ith data supplier; a. b is a normal number, a is a price on-line, and b is a demand price elasticity, and is used for reflecting the sensitivity of the demand quantity in response to price change. The demand curve illustrates that the final quantity sold will affect the pricing of the data.
The benefit (Profit) is:
Profit=Πn(s1,s2,…,sn)=P(s1,s2,…,sn)-cn
wherein, cnThe cost of the data sold.
Second, the "leader" gives first the Price1Other "followers" are according to Price1Making Price2
Figure BDA0002969988620000082
In the lower-layer game process, after pricing is proposed by the leader, the data demand node on the data demand side can make a bid according to the pricing strategy of the leader to ensure that the benefit of the data demand node is maximized. In the whole game process, the leader in the upper layer game carries out pricing decision according to pricing of consumers and followers on the supply side, and the supplier in the lower layer game carries out pricing decision according to pricing of demanders, so that Nash balance is finally achieved. If only one data supply node is arranged on the power grid data supply side to provide certain data services, the data supply side does not need to carry out game, and only the data demand side needs to carry out game, namely the whole game process is changed from a double-layer game to a single-layer game.
The data generation and uplink mode of the data providing node side may be: the data supply node executes a key generation (KeyGen) algorithm to generate a symmetric key K, and encrypts plaintext by using Encrypt (K, D)File set D, output index I and cipher text file set C, and the same authority information (including the number s of sale data determined in the previous period)nThe serial number of the consumer, i.e., the consumer is the first to get the data, and upload to the blockchain).
In the case of a plurality of keywords W1、W2…WdFormed dictionary delta ═ W1,W2,…,WdThe symmetric searchable encryption algorithm on } can be described as a quintuple: SSE ═ (KeyGen, Encrypt, Trapdoor, Search, Decrypt), where KeyGen characterizes the generation of cryptographic keys; encrypt represents encryption; the Trapdoor operation is executed according to the Trapdoor representation; search characterization executes data query operation; decrypt characterizes data decryption operations in which,
1) inputting a security parameter lambda and outputting a randomly generated secret key K;
2) (I, C) ═ Encrypt (K, D): inputting symmetric key K and plaintext file set D ═ D1,D2,…,Dn},Di∈2ΔAnd outputting the index I and the ciphertext file set C ═ C1,C2,…,Cn};
3) TW ═ trapwood (K, W): inputting a symmetric key K and a keyword W, and outputting a keyword trapdoor TW, wherein an index I is constructed to realize efficient keyword query on a ciphertext file, and a corresponding ciphertext file is extracted according to the keyword to return to a user;
4) d (w) ═ Search (I, TW): inputting an index I and a trapdoor TW, and outputting a set D (W) formed by data identifications of files containing W;
5) di ═ Decrypt (K, Ci): and inputting the symmetric key K and the ciphertext file Ci, and outputting a corresponding plaintext file Di.
Wherein for W ∈ Δ, D ═ D { [ D ]1,D2,…,DnK and (I, C) output by KeyGen (λ) and Encrypt (K, D) hold true for Search (I, Trapdoor (K, W)) ═ D (W) and Decrypt (K, Ci) ═ Di. Here, Ci∈C,i=1,2,…,n。
As an optional implementation manner of the present invention, the data identifier corresponding to the data asset in the blockchain is generated by the data providing node according to a preset identifier generation algorithm, and is associated with the encrypted original data and then uploaded to the blockchain. The preset identifier generation algorithm is not limited in the embodiment of the application, and a person skilled in the art can select the preset identifier generation algorithm according to actual needs as long as the identifier generation can be realized, such as a trapdoor algorithm.
The embodiment of the present invention also discloses a data management device based on a block chain, which is applied to a block chain network, wherein the block chain network comprises a data supply node and a data demand node, as shown in fig. 3, the device comprises:
a determining module 301, configured to, when a data query request sent by any node is received, determine whether the node has a query right according to right information included in the data query request;
the query module 302 is configured to query, when the node has a query right, a data asset corresponding to a data identifier in a block chain according to the data identifier of the data asset to be queried included in the data query request, where the data asset in the block chain is obtained by encrypting original data in advance through the data supply node and uploading the encrypted original data, and the data asset in the block chain is stored in association with the corresponding data identifier and data right information in the block chain;
and the feedback module 303 is configured to feed back a data asset query result to the node that issued the data query request.
The invention provides a data management device based on a block chain, when a block chain network receives a data query request sent by any node, whether the node has query authority is determined according to authority information contained in the data query request, when the node has the query authority, data assets corresponding to data identifications are queried in the block chain according to the data identifications of data assets to be queried contained in the data query request, wherein the data assets in the block chain are obtained by encrypting original data through a data supply node in advance and uploading the encrypted data, the data assets in the block chain are stored in association with the corresponding data identifications and data authority information in the block chain, the data asset query result is fed back to the node sending the data query request, and the data identification and the data authority information are stored in association, so that the node sending the data query request can realize data authority according to the data authority information in the fed back data query result, the safety of the data transaction process is ensured.
As an optional implementation manner of the present invention, the query module is further configured to, when a node that sends a data query request does not have a query right, feed back data right confirmation information corresponding to a data type to the node that sends the data query request according to the data type of data to be queried that is included in the data query request.
As an optional implementation manner of the present invention, the feedback module is further configured to, when a node sending a data query request is a data demand node and the data demand node has a query authority, feed back a data asset query result to the data demand node, so that the data demand node performs data authenticity verification according to the data asset query result and original data obtained from the data supply node through a transaction, where the query authority of the data demand node is obtained after the data demand node performs the data asset transaction with the data supply node.
As an optional implementation manner of the present invention, the data identifier corresponding to the data asset in the blockchain is generated by the data providing node according to a preset identifier generation algorithm, and is associated with the encrypted original data and then uploaded to the blockchain.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, the electronic device may include a processor 401 and a memory 402, where the processor 401 and the memory 402 may be connected by a bus or in another manner, and fig. 4 takes the connection by the bus as an example.
Processor 401 may be a Central Processing Unit (CPU). The Processor 401 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 402, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the data management method based on the blockchain in the embodiment of the present invention. The processor 401 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 402, that is, implements the block chain based data management method in the above method embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 401, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to processor 401 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 402 and when executed by the processor 401, perform a blockchain based data management method as in the embodiment shown in fig. 2.
The details of the electronic device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 2, and are not described herein again.
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 a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A data management method based on a block chain is applied to a block chain network, the block chain network comprises a data supply node and a data demand node, and the method comprises the following steps:
when a data query request sent by any node is received, determining whether the node has query authority or not according to authority information contained in the data query request;
when the node has the inquiry authority, inquiring the data assets corresponding to the data identification in the block chain according to the data identification of the data assets to be inquired contained in the data inquiry request, wherein the data assets in the block chain are obtained by encrypting original data through the data supply node in advance and uploading the encrypted original data, and the data assets in the block chain are stored in association with the corresponding data identification and data right confirming information in the block chain;
and feeding back the data asset query result to the node sending the data query request.
2. The method of claim 1, further comprising:
when the node sending the data query request does not have the query authority, feeding back data authority determining information corresponding to the data type to the node sending the data query request according to the data type of the data to be queried contained in the data query request.
3. The method of claim 1, further comprising:
when the node sending the data query request is a data demand node and the data demand node has query authority, feeding back a data asset query result to the data demand node, so that the data demand node performs data authenticity verification according to the data asset query result and original data obtained from data supply node transaction, wherein the query authority of the data demand node is obtained after the data demand node and the data supply node perform data asset transaction.
4. The method according to claim 1, wherein the data identifier corresponding to the data asset in the blockchain is obtained by the data supply node generating according to a preset identifier generation algorithm, associating the data identifier with the encrypted original data, and uploading the data identifier to the blockchain.
5. A blockchain-based data management apparatus applied to a blockchain network, the blockchain network including a data supply node and a data demand node, the apparatus comprising:
the determining module is used for determining whether the node has the inquiry authority or not according to the authority information contained in the data inquiry request when receiving the data inquiry request sent by any node;
the query module is used for querying the data assets corresponding to the data identification in the block chain according to the data identification of the data assets to be queried, which is contained in the data query request, when the node has the query authority, wherein the data assets in the block chain are obtained by encrypting original data through the data supply node in advance and uploading the encrypted original data, and the data assets in the block chain are stored in association with the corresponding data identification and data authority information in the block chain;
and the feedback module is used for feeding back the data asset query result to the node sending the data query request.
6. The apparatus according to claim 5, wherein the query module is further configured to, when the node that sends the data query request does not have the query authority, feed back data right information corresponding to the data type to the node that sends the data query request according to the data type of the data to be queried that is included in the data query request.
7. The apparatus according to claim 5, wherein the feedback module is further configured to, when the node that issues the data query request is a data demand node and the data demand node has a query authority, feed back a data asset query result to the data demand node, so that the data demand node performs data authenticity verification according to the data asset query result and original data obtained from the data supply node by transaction, where the query authority of the data demand node is obtained after the data demand node performs data asset transaction with the data supply node.
8. The apparatus according to claim 5, wherein the data identifier corresponding to the data asset in the blockchain is obtained by the data providing node generating according to a preset identifier generating algorithm, associating the data identifier with the encrypted original data, and uploading the data identifier to the blockchain.
9. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the blockchain based data management method of any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for blockchain-based data management according to any one of claims 1 to 4.
CN202110262805.3A 2021-03-10 2021-03-10 Data management method and device based on block chain and electronic equipment Pending CN113034136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110262805.3A CN113034136A (en) 2021-03-10 2021-03-10 Data management method and device based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110262805.3A CN113034136A (en) 2021-03-10 2021-03-10 Data management method and device based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
CN113034136A true CN113034136A (en) 2021-06-25

Family

ID=76469834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110262805.3A Pending CN113034136A (en) 2021-03-10 2021-03-10 Data management method and device based on block chain and electronic equipment

Country Status (1)

Country Link
CN (1) CN113034136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118474A (en) * 2022-06-20 2022-09-27 广东省工业边缘智能创新中心有限公司 Identification query and storage management method, identification agent module and authority management system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109034833A (en) * 2018-06-16 2018-12-18 复旦大学 A kind of product back-tracing information management system and method based on block chain
CN110163751A (en) * 2019-04-15 2019-08-23 广州致链科技有限公司 Block chain access system and its implementation towards alliance's chain
CN110766550A (en) * 2019-09-05 2020-02-07 阿里巴巴集团控股有限公司 Asset query method and device based on block chain and electronic equipment
CN111008228A (en) * 2020-03-09 2020-04-14 支付宝(杭州)信息技术有限公司 Method and device for inquiring account privacy information in block chain
CN111581251A (en) * 2020-04-23 2020-08-25 傲林科技有限公司 Digital asset query method, device and storage medium for cross-chain transaction
CN111931238A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Block chain-based data asset transfer method, device and equipment
CN112418850A (en) * 2019-08-21 2021-02-26 中国移动通信有限公司研究院 Transaction method and device based on block chain and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109034833A (en) * 2018-06-16 2018-12-18 复旦大学 A kind of product back-tracing information management system and method based on block chain
CN110163751A (en) * 2019-04-15 2019-08-23 广州致链科技有限公司 Block chain access system and its implementation towards alliance's chain
CN112418850A (en) * 2019-08-21 2021-02-26 中国移动通信有限公司研究院 Transaction method and device based on block chain and electronic equipment
CN110766550A (en) * 2019-09-05 2020-02-07 阿里巴巴集团控股有限公司 Asset query method and device based on block chain and electronic equipment
CN111008228A (en) * 2020-03-09 2020-04-14 支付宝(杭州)信息技术有限公司 Method and device for inquiring account privacy information in block chain
CN111581251A (en) * 2020-04-23 2020-08-25 傲林科技有限公司 Digital asset query method, device and storage medium for cross-chain transaction
CN111931238A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Block chain-based data asset transfer method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118474A (en) * 2022-06-20 2022-09-27 广东省工业边缘智能创新中心有限公司 Identification query and storage management method, identification agent module and authority management system

Similar Documents

Publication Publication Date Title
WO2022007889A1 (en) Searchable encrypted data sharing method and system based on blockchain and homomorphic encryption
US11048690B2 (en) Contribution of multiparty data aggregation using distributed ledger technology
KR101843340B1 (en) Privacy-preserving collaborative filtering
EP3780480A1 (en) User device and electronic device for sharing data by using blockchain and homomorphic encryption method and methods therefor
CN110163751B (en) Block chain access system oriented to alliance chain and implementation method thereof
CN112039855B (en) Scientific and technological resource data safe storage and sharing method based on alliance chain
US11824971B2 (en) Peer-to-peer transmission system with a controlled, double-tier cryptographic key structure
KR20180129028A (en) Methods and system for managing personal information based on programmable blockchain and one-id
KR101190061B1 (en) Method for data encryption and method for data search using conjunctive keyword
CN110599342B (en) Block chain-based identity information authorization method and device
CN107846394A (en) For providing the system and method for accessing the different services of service provider
US20220173916A1 (en) Apparatus and method for managing history of object owner
CN109492424B (en) Data asset management method, data asset management device, and computer-readable medium
US20220337392A1 (en) Automatic digital media authenticator
CN113034128A (en) Block chain-based data transaction and right confirmation method
WO2018070932A1 (en) System and method for querying an encrypted database for documents satisfying an expressive keyword access structure
CN112861102A (en) Block chain-based electronic file processing method and system
CN113034136A (en) Data management method and device based on block chain and electronic equipment
JP4594078B2 (en) Personal information management system and personal information management program
CN117371010A (en) Data trace query method, electronic device and readable storage medium
CN113242219A (en) Data transmission method, block chain network and storage medium
JPWO2019186978A1 (en) Electronic trading system, trading server, verification server, electronic trading method and program
CN115563212A (en) Supply chain data management method, device, equipment and storage medium under cloud chain cooperation
CN115277593A (en) Method and system for safely storing data under link based on block chain
CN110798321B (en) Article information service method based on block chain

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