CN112000731A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112000731A
CN112000731A CN202010688825.2A CN202010688825A CN112000731A CN 112000731 A CN112000731 A CN 112000731A CN 202010688825 A CN202010688825 A CN 202010688825A CN 112000731 A CN112000731 A CN 112000731A
Authority
CN
China
Prior art keywords
data
key
node
transacted
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010688825.2A
Other languages
Chinese (zh)
Other versions
CN112000731B (en
Inventor
冷戈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010688825.2A priority Critical patent/CN112000731B/en
Priority claimed from CN202010688825.2A external-priority patent/CN112000731B/en
Publication of CN112000731A publication Critical patent/CN112000731A/en
Application granted granted Critical
Publication of CN112000731B publication Critical patent/CN112000731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • 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

Abstract

The application provides a data processing method, a data processing device, an electronic device and a storage medium, wherein the method comprises the following steps: receiving a first data transaction request sent by a data providing end, wherein the first data transaction request carries a node identifier of a node corresponding to data to be transacted in a knowledge graph and data description information of the data to be transacted; configuring a key for the node identification of the node corresponding to the data to be transacted; sending a data transaction notification message to a data receiving end; receiving a second data transaction request sent by a target data receiving terminal in the data receiving terminals; and binding the signature of the target data receiving terminal with the key to obtain a new key, so that the data providing terminal and the target data receiving terminal perform data transaction on the data to be transacted through the new key. Through the technical scheme provided by the embodiment of the application, the storage space can be saved, the data transaction efficiency of the data in the knowledge spectrogram is improved, and the data transaction safety is high.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
The knowledge graph is a large-scale data asset and has the characteristics of multi-domain relation associativity, frequent data updating and large data magnitude. In practical applications, the data in the knowledge-graph may be traded through a blockchain.
In the related art, when a data provider and a data demander trade data in a knowledge graph through a blockchain, the data provider needs to store all data in the knowledge graph into the blockchain. And because the magnitude of data in the knowledge graph is large, storing all data in the knowledge graph into a block chain occupies a large amount of storage space, and causes low data transaction efficiency.
Disclosure of Invention
The method and the device aim to solve the technical problems that when a data provider and a data demander trade data in a knowledge graph through a block chain, the data provider needs to store all data in the knowledge graph into the block chain, a large amount of storage space is occupied, and data trading efficiency is low in the related technology. The embodiment of the application provides a data processing method and device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a data processing method, which is applied to a blockchain management server, and the method includes:
receiving a first data transaction request sent by a data providing end, wherein the data transaction request carries a node identifier of a node corresponding to data to be transacted in a knowledge graph and data description information of the data to be transacted;
configuring a key for the node identifier of the node corresponding to the data to be traded, wherein the key is a key corresponding to a block in a block chain;
sending a data transaction notification message to a data receiving end, wherein the data transaction notification message carries data description information of the data to be transacted;
receiving a second data transaction request sent by a target data receiving terminal in the data receiving terminals, wherein the data transaction request carries a signature of the target data receiving terminal;
and binding the signature of the target data receiving end with the key to obtain a new key, so that the data providing end and the target data receiving end perform data transaction on the data to be transacted through the new key.
Optionally, when the node corresponding to the data to be traded is a plurality of nodes, configuring a key for the node identifier of the node corresponding to the data to be traded includes:
configuring a first key corresponding to a first block for a first node identifier of a first node, wherein the first node is any one of nodes corresponding to the data to be traded;
and configuring a second key corresponding to a second block for a second node identifier of a second node, wherein the second node is a node except the first node in the nodes corresponding to the data to be transacted, and the second key is different from the first key.
Optionally, after receiving the second data transaction request sent by the target data receiving end of the data receiving ends, the method further includes:
and sending data transaction success information to each data receiving end, wherein the data transaction success information carries a data transaction contract, and the data transaction contract is used for describing the transaction of the information to be transacted between the data providing end and the target data receiving end.
Optionally, after the new key is obtained by binding the signature of the target data receiving end and the key, the method further includes:
and sending the new key to the data providing end and the target data receiving end so that the target data receiving end sends a data acquisition request to the data providing end and acquires the data to be traded from the data providing end, wherein the data acquisition request carries the new key.
Optionally, before configuring a key for the node identifier of the node corresponding to the data to be transacted, the method further includes:
checking whether the data to be traded is in compliance or not through the data description information of the data to be traded;
and when the data to be traded is in compliance, executing a step of configuring a key for the node identification of the node corresponding to the data to be traded.
In a second aspect, an embodiment of the present application provides a data processing apparatus, which is applied to a blockchain management server, and the apparatus includes:
the system comprises a first request receiving module, a first transaction processing module and a second request receiving module, wherein the first request receiving module is used for receiving a data transaction request sent by a data providing end, and the data transaction request carries a node identifier of a node corresponding to data to be transacted in a knowledge graph and data description information of the data to be transacted;
the key configuration module is used for configuring a key for the node identifier of the node corresponding to the data to be traded, wherein the key is a key corresponding to a block in a block chain;
the message sending module is used for sending a data transaction notification message to a data receiving end, wherein the data transaction notification message carries data description information of the data to be transacted;
the second request receiving module is used for receiving a data transaction request sent by a target data receiving end in the data receiving ends, wherein the data transaction request carries a signature of the target data receiving end;
and the key binding module is used for binding the signature of the target data receiving end with the key to obtain a new key, so that the data providing end and the target data receiving end perform data transaction on the data to be transacted through the new key.
Optionally, when the nodes corresponding to the data to be traded are multiple nodes, the key configuration module is specifically configured to:
configuring a first key corresponding to a first block for a first node identifier of a first node, wherein the first node is any one of nodes corresponding to the data to be traded;
and configuring a second key corresponding to a second block for a second node identifier of a second node, wherein the second node is a node except the first node in the nodes corresponding to the data to be transacted, and the second key is different from the first key.
Optionally, the apparatus further comprises:
and the information receiving module is used for sending data transaction success information to each data receiving terminal after the second request receiving module receives a second data transaction request sent by a target data receiving terminal in the data receiving terminals, wherein the data transaction success information carries a data transaction contract, and the data transaction contract is used for describing that the data providing terminal and the target data receiving terminal perform transaction on the information to be transacted.
Optionally, the apparatus further comprises:
and the key sending module is used for sending the new key to the data providing end and the target data receiving end after the key binding module binds the signature of the target data receiving end and the key to obtain the new key, so that the target data receiving end sends a data acquisition request to the data providing end and acquires the data to be traded from the data providing end, wherein the data acquisition request carries the new key.
Optionally, the apparatus further comprises:
the data verification module is used for verifying whether the data to be traded is in compliance or not through the data description information of the data to be traded before the key configuration module configures a key for the node identifier of the node corresponding to the data to be traded;
and when the data to be traded is in compliance, triggering the key configuration module to execute a step of configuring a key for the node identifier of the node corresponding to the data to be traded.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data processing method according to the first aspect when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the data processing method according to the first aspect.
According to the technical scheme provided by the embodiment of the application, when the data in the knowledge graph is traded through the block chain, all data in the knowledge graph is not stored in the block chain, but a key is configured for the node identification of the node corresponding to the data to be traded, namely, each node in the knowledge graph is used as an independent object, and each node points to a trusted block in the block chain. And binding a key configured for the node identification of the node corresponding to the data to be traded with the signature of the target data receiving end, and finally trading the data to be traded through a new password. Therefore, by the technical scheme provided by the embodiment of the application, the storage space can be saved, the data transaction efficiency of the data in the knowledge spectrogram is improved, and the data transaction safety is high.
Drawings
Fig. 1 is a schematic diagram illustrating an interaction process between a data provider, a data receiver, and a blockchain management server in a data processing system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a data processing method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of configuring keys for node identifications of nodes of a knowledge-graph according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another configuration key for node identification of nodes of a knowledge-graph provided in an embodiment of the present application;
FIG. 5 is an interaction diagram of a data asset provider, a data asset demander and a trading platform blockchain manager according to an embodiment of the present application;
fig. 6 is a block diagram of a data processing apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The method and the device aim to solve the technical problems that when a data provider and a data demander trade data in a knowledge graph through a block chain, the data provider needs to store all data in the knowledge graph into the block chain, a large amount of storage space is occupied, and data trading efficiency is low in the related technology. The embodiment of the application provides a data processing method and device, electronic equipment and a storage medium.
For clarity of description of the solution, in the first aspect, a detailed description is first given of a data processing system provided in the embodiments of the present application.
Specifically, in the process of carrying out transaction on data in the knowledge graph through the blockchain, a data providing end, a data requiring end, namely a data receiving end, and a data transaction platform, namely a blockchain management server are involved. In practical application, the data providing end and the data receiving end can complete data transaction in the knowledge graph through the blockchain management server.
As can be seen from the above description, the data processing system provided in the embodiment of the present application may include a data providing end 11, a data receiving end 12, and a blockchain management server 13, as shown in fig. 1, and the interaction process of the data providing end 11, the data receiving end 12, and the blockchain management server 13 is as follows.
S110, the data providing terminal 11 sends a first data transaction request to the blockchain management server 13.
The first data transaction request carries node identification of a node corresponding to the data to be transacted in the knowledge graph and data description information of the data to be transacted.
Specifically, the data providing end is provided with a knowledge graph, wherein the knowledge graph is a large-scale data asset and has the characteristics of multi-domain relation associativity, frequent data updating and large data magnitude.
A knowledge spectrogram is a multi-relationship graph composed of nodes and edges of different types, where each node represents an entity and each edge represents a relationship between two nodes (which may be referred to as a head node and a tail node) connected by the edge, i.e., indicates that the head entity and the tail entity are connected together by a specific relationship. Each node has data.
When a data providing end wants to perform data transaction on some data in the knowledge graph, a first data transaction request may be sent to the blockchain management server, where the first data transaction request may carry a node identifier of a node corresponding to data to be transacted in the knowledge graph. For example, the data to be traded is data corresponding to the first node, data corresponding to the second node, and data corresponding to the third node, and then the data trading request may carry the node identifier G1 of the first node, the node identifier G2 of the second node, and the node identifier G3 of the third node. That is, the first node, the second node, and the third node are trusted nodes. Nodes except the first node, the second node and the third node in the knowledge graph are nodes which are not trusted, and data corresponding to the nodes which are not trusted cannot be subjected to data transaction, namely, the control of a trusted area is ensured.
In addition, in order to enable the data receiving end to know the data to be transacted in the subsequent steps, the data transaction request can also carry data description information of the data to be transacted.
S120, the blockchain management server 13 configures a key for the node identifier of the node corresponding to the data to be traded.
The key configured for the node identifier of the node corresponding to the data to be traded is the key corresponding to the block in the block chain.
Specifically, in the method adopted by the embodiment of the present application, instead of storing all data in the knowledge graph in the blockchain, each node in the knowledge graph is taken as an independent object, and each node points to one trusted block in the blockchain, wherein each trusted block corresponds to one key, and the keys corresponding to different trusted blocks are different. Therefore, data in the knowledge graph with large data magnitude can be traded efficiently, and the block chain does not need to be subjected to multiple times of full chain confirmation due to frequent changes of the data in the knowledge graph.
Therefore, after receiving the data transaction request, the blockchain management server can analyze the data transaction request to obtain the node identifier of the node corresponding to the data to be transacted carried in the data transaction request and the data description information of the data to be transacted. And after the node identifier of the node corresponding to the data to be transacted is obtained, a block key can be configured for the node identifier of the node corresponding to the data to be transacted, so that the node of the data to be transacted points to a trusted block in the block chain.
And when the key is configured for the node identifier of the node corresponding to the data to be transacted, different keys are configured for the node identifiers of different nodes to ensure the safety of data transaction. For example, there are 3 nodes corresponding to the data to be traded, and the node identifiers of the three nodes are G1, G2, and G3, respectively. Then, the KEY configured for G1 may be the first KEY1 corresponding to the first block; the KEY configured for G2 may be a second KEY2 corresponding to the second block; the KEY configured for G3 may be the third KEY3 corresponding to the third block.
It should be noted that, in order to ensure data transaction safety, before configuring a key for a node identifier of a node corresponding to data to be transacted, the blockchain management server may perform compliance verification on the data to be transacted through data description information of the data to be transacted, that is, check whether the data to be transacted is compliant, and if the data to be transacted is compliant, configure a key for a node identifier of a node corresponding to the data to be transacted; otherwise, a key is not configured for the node identifier of the node corresponding to the data to be traded, so that the data to be traded which is not in compliance cannot be traded, and the safety of data trading is ensured.
S130, the blockchain management server 13 sends a data transaction notification message to the data receiving end 12.
The data transaction notification information carries data description information of the data to be transacted.
Specifically, after the node of the transaction data points to a trusted block in the block chain, that is, after the key is configured for the node identifier of the node corresponding to the data to be transacted, the block chain management server may perform regional broadcast, that is, send a data transaction notification message to the data receiving end, where the data transaction notification message may carry data description information of the data to be transacted, so that the data receiving end can know whether the current data to be transacted is data required by itself after receiving the data transaction notification message.
If the data to be traded is data required by a certain data receiving terminal, the data receiving terminal can send a data trading request to the blockchain management server to acquire the data required by the data receiving terminal. On the contrary, if the data to be traded is not the data required by the data receiving terminal itself, the data receiving terminal does not send a data trading request to the blockchain management server.
S140, the target data receiving end of the data receiving ends 12 sends a second data transaction request to the blockchain management server.
And the second data transaction request carries the signature of the target data receiving end.
Specifically, if the data to be transacted is data required by a certain data receiving end, that is, a target data receiving end, the target data receiving end may send a second data transaction request to the blockchain management server, and for data transaction security, the target data receiving end also needs to provide its own key, that is, a signature of the target data receiving end.
S150, the blockchain management server 13 binds the signature of the target data receiving end with the key configured for the node identifier of the node corresponding to the data to be transacted, so as to obtain a new key.
Specifically, the signature of the target data receiving end is a key of the target data receiving end, the key distributed by the blockchain management server for the node identifier of the node corresponding to the data to be traded is a key of the data providing end, and the blockchain management server can form a new key by binding the key of the target data receiving end and the key of the data providing end.
And the blockchain management server can send the new key to the data providing end and the target data receiving end, so that in the subsequent step, the target data receiving end can successfully extract the data to be traded from the data providing end by using the new key.
And S160, the data providing terminal 11 and the target data receiving terminal 12 perform data transaction on the data to be transacted through the new key.
Specifically, after obtaining the new key, the target data providing end may send a data obtaining request to the data providing end, where the data obtaining request may carry the new key, and then the target data providing end may obtain the data to be transacted from the data providing end.
According to the technical scheme provided by the embodiment of the application, when the data in the knowledge graph is traded through the block chain, all data in the knowledge graph is not stored in the block chain, but a key is configured for the node identification of the node corresponding to the data to be traded, namely, each node in the knowledge graph is used as an independent object, and each node points to a trusted block in the block chain. And binding a key configured for the node identification of the node corresponding to the data to be traded with the signature of the target data receiving end, and finally trading the data to be traded through a new password. Therefore, by the technical scheme provided by the embodiment of the application, the storage space can be saved, the data transaction efficiency of the data in the knowledge spectrogram is improved, and the data transaction safety is high.
After a detailed description of a data processing system provided by the embodiments of the present application, in a second aspect, a detailed description of a data processing method provided by the embodiments of the present application will be provided.
It should be noted that an execution subject of the data processing method provided in the embodiment of the present application may be a data processing apparatus, where the data processing apparatus may be run in an electronic device, and the electronic device may be a block chain management server.
As shown in fig. 2, a data processing method provided in the embodiment of the present application may specifically include the following steps:
s210, receiving a first data transaction request sent by a data providing terminal.
The first data transaction request carries node identification of a node corresponding to the data to be transacted in the knowledge graph and data description information of the data to be transacted.
Specifically, the data providing end is provided with a knowledge graph, wherein the knowledge graph is a large-scale data asset and has the characteristics of multi-domain relation associativity, frequent data updating and large data magnitude.
A knowledge spectrogram is a multi-relationship graph composed of nodes and edges of different types, where each node represents an entity and each edge represents a relationship between two nodes (which may be referred to as a head node and a tail node) connected by the edge, i.e., indicates that the head entity and the tail entity are connected together by a specific relationship. Each node has data.
When a data providing end wants to perform data transaction on some data in the knowledge graph, a first data transaction request may be sent to the blockchain management server, where the first data transaction request may carry a node identifier of a node corresponding to data to be transacted in the knowledge graph. For example, the data to be traded is data corresponding to the first node, data corresponding to the second node, and data corresponding to the third node, and then the data trading request may carry the node identifier G1 of the first node, the node identifier G2 of the second node, and the node identifier G3 of the third node. That is, the first node, the second node, and the third node are trusted nodes. Nodes except the first node, the second node and the third node in the knowledge graph are nodes which are not trusted, and data corresponding to the nodes which are not trusted cannot be subjected to data transaction, namely, the control of a trusted area is ensured.
In addition, in order to enable the data receiving end to know the data to be transacted in the subsequent steps, the data transaction request can also carry data description information of the data to be transacted.
S220, configuring a key for the node identification of the node corresponding to the data to be traded.
Wherein, the key is a key corresponding to the block in the block chain.
Specifically, in the method adopted by the embodiment of the present application, instead of storing all data in the knowledge graph in the blockchain, each node in the knowledge graph is taken as an independent object, and each node points to a trusted block in the blockchain, wherein each trusted area corresponds to one key, and the keys corresponding to different trusted blocks are different. Therefore, data in the knowledge graph with large data magnitude can be traded efficiently, and the block chain does not need to be subjected to multiple times of full chain confirmation due to frequent changes of the data in the knowledge graph.
Therefore, after receiving the data transaction request, the blockchain management server can analyze the data transaction request to obtain the node identifier of the node corresponding to the data to be transacted carried in the data transaction request and the data description information of the data to be transacted. And after the node identifier of the node corresponding to the data to be transacted is obtained, a block key can be configured for the node identifier of the node corresponding to the data to be transacted, so that the node of the data to be transacted points to a trusted block in the block chain.
And when the key is configured for the node identifier of the node corresponding to the data to be transacted, different keys are configured for the node identifiers of different nodes to ensure the safety of data transaction.
In one embodiment, when the node corresponding to the data to be transacted is a plurality of nodes, configuring the key for the node identification of the node corresponding to the data to be transacted may include the following steps, namely step a1 and step a 2:
step a1, configuring a first key corresponding to the first block for a first node identifier of a first node, where the first node is any one of nodes corresponding to the data to be traded.
Step a2, configuring a second key corresponding to the second block for a second node identifier of a second node, where the second node is a node other than the first node in the nodes corresponding to the data to be transacted, and the second key is different from the first key.
For example, there are 3 nodes corresponding to the data to be traded, and the node identifiers of the three nodes are G1, G2, and G3, respectively. Then, the KEY configured for G1 may be the first KEY1 corresponding to the first block; the KEY configured for G2 may be a second KEY2 corresponding to the second block; the KEY configured for G3 may be a third KEY3 corresponding to the third block, where KEY1, KEY2, and KEY3 are all different.
Moreover, as an implementation manner of the embodiment of the present application, in order to ensure data transaction security, before configuring a key for a node identifier of a node corresponding to data to be transacted, the data processing method further includes the following steps:
and checking whether the data to be traded is in compliance or not through the data description information of the data to be traded.
And when the data to be traded is in compliance, executing a step of configuring a key for the node identification of the node corresponding to the data to be traded.
Specifically, before configuring a key for the node identifier of the node corresponding to the data to be transacted, the blockchain management server may perform compliance verification on the information to be transacted through the data description information of the data to be transacted, that is, check whether the data to be transacted is compliant, and configure a key for the node identifier of the node corresponding to the data to be transacted if the data to be transacted is compliant; otherwise, a key is not configured for the node identifier of the node corresponding to the data to be traded, so that the data to be traded which is not in compliance cannot be traded, and the safety of data trading is ensured.
And S230, sending a data transaction notification message to the data receiving end.
The data transaction notification information carries data description information of the data to be transacted.
Specifically, after the node of the transaction data points to a trusted block in the block chain, that is, after the key is configured for the node identifier of the node corresponding to the data to be transacted, the block chain management server may perform regional broadcast, that is, send a data transaction notification message to the data receiving end, where the data transaction notification message may carry data description information of the data to be transacted, so that the data receiving end can know whether the current data to be transacted is data required by itself after receiving the data transaction notification message.
If the data to be traded is data required by a certain data receiving terminal, the data receiving terminal can send a data trading request to the blockchain management server to acquire the data required by the data receiving terminal. On the contrary, if the data to be traded is not the data required by the data receiving terminal itself, the data receiving terminal does not send a data trading request to the blockchain management server.
S240, receiving a second data transaction request sent by a target data receiving end in the data receiving ends.
And the second data transaction request carries the signature of the target data receiving end.
Specifically, if the data to be transacted is data required by a certain data receiving end, that is, a target data receiving end, the target data receiving end may send a second data transaction request to the blockchain management server, and for data transaction security, the target data receiving end also needs to provide its own key, that is, a signature of the target data receiving end.
In one embodiment, after receiving the data transaction request sent by the target one of the data receiving ends, the data processing method may further include:
and sending data transaction success information to each data receiving end.
The data transaction success information carries a data transaction contract, and the data transaction contract is used for describing the transaction of the information to be transacted between the data providing end and the target data receiving end.
In this embodiment, after receiving the data transaction request sent by the target data receiving end, the blockchain management server may generate a data transaction contract, where the data transaction contract is used to describe that the data providing end and the target data receiving end have transacted the information to be transacted. And the blockchain management server can send data transaction success information to each data receiving end, namely, the data transaction success information is subjected to regional broadcast, so that each data receiving end can know that the data providing end and the target data receiving end perform data transaction on the data to be transacted, and each data receiving end can supervise the transaction, and the openness and the safety of the data transaction are ensured.
And S250, binding the signature and the key of the target data receiving end to obtain a new key, so that the data providing end and the data receiving end perform data transaction through the new key.
Specifically, the signature of the target data receiving end is a key of the target data receiving end, the key distributed by the blockchain management server for the node identifier of the node corresponding to the data to be traded is a key of the data providing end, and the blockchain management server can form a new key by binding the key of the target data receiving end and the key of the data providing end.
In an embodiment, after the signature of the target data receiving end is bound to the key to obtain a new key, the data processing method may further include:
and sending new keys to the data providing end and the target data receiving end so that the target data receiving end sends a data acquisition request to the data providing end and acquires the data to be traded from the data providing end, wherein the data acquisition request carries the new keys.
Specifically, the blockchain management server may send the new key to the data providing end and the target data receiving end, and after the target data providing end obtains the new key, the target data providing end may send a data obtaining request to the data providing end, where the data obtaining request may carry the new key, and the target data providing end may obtain the data to be transacted from the data providing end.
According to the technical scheme provided by the embodiment of the application, when the data in the knowledge graph is traded through the block chain, all data in the knowledge graph is not stored in the block chain, but a key is configured for the node identification of the node corresponding to the data to be traded, namely, each node in the knowledge graph is used as an independent object, and each node points to a trusted block in the block chain. And binding a key configured for the node identification of the node corresponding to the data to be traded with the signature of the target data receiving end, and finally trading the data to be traded through a new password. Therefore, by the technical scheme provided by the embodiment of the application, the data transaction efficiency of the data in the knowledge spectrogram can be improved, and the data transaction safety is high.
For clarity of description, reference will now be made to specific examples.
As shown in fig. 3, there are four nodes in the knowledge-graph, and the nodes of the four nodes are identified as G1, G2, G3 and G4, respectively. If the data to be traded is: data corresponding to the node identified as G1, data corresponding to the node identified as G2, and data corresponding to the node identified as G3, then the block chain management server may configure the KEY original-KEY1 for the node identified as G1, the KEY original-KEY2 for the node identified as G2, and the KEY original-KEY3 for the node identified as G3, without configuring the KEY for the node identified as G4.
When the data of the knowledge-graph is updated, as shown in fig. 4, the knowledge-graph is added with a NEW node, and the node of the NEW node is identified as (NEW) G5. Since the blockchain management server does not distribute the key to the new node, the data receiving end cannot trade the data corresponding to the node, that is, the data receiving end cannot acquire the data corresponding to the node.
According to the description, when the data in the knowledge graph is updated, the data transaction of other trusted nodes is not influenced, and the repeated full-link confirmation of the block chain is not caused, so that the data transaction efficiency can be improved.
Also, the process of trading data assets in a knowledge graph is described in detail below with reference to specific examples.
As shown in fig. 5, the transaction process of the data assets in the knowledge graph involves three-terminal interaction, namely, the data provider, the data consumer, and the transaction platform blockchain manager, the blockchain management server.
Specifically, the data asset provider has a knowledge graph of the to-be-uplink transaction, and sends an uplink request to the transaction platform block chain manager, where the uplink request may carry an identifier of a sub-graph, i.e., a node, corresponding to the to-be-transacted data asset, and data description information of the to-be-transacted data asset.
After receiving the uplink request, the transaction platform blockchain manager analyzes the uplink request to obtain the identifier of the node and the data description information, and performs compliance verification, that is, whether the data asset to be transacted is compliant is verified through the data description information.
If the data assets to be traded are in compliance, the trading platform blockchain manager can issue the KEY of each node for each node according to the graph nodes, namely, the KEY is configured for each node.
After the keys are configured for each node, the transaction platform blockchain manager performs regional broadcast, and at this time, the transaction is ready.
After receiving the regional broadcast, the buyer, i.e. the data asset demander, initiates a transaction request and submits a buyer signature to the transaction platform blockchain manager, i.e. links up the key of the data asset demander.
And after receiving the key of the data asset demander, the transaction platform block chain manager performs signature binding operation, namely binding the key of the data asset demander with the key configured for the node, and further generating a new key combination.
After generating the new key combination, the data asset provider may perform authorization validation. And, the trading platform blockchain manager can perform the on-chain disclosure of the new key combination according to the blockchain logic.
The data asset demander and the data asset provider can conduct data asset transaction through the newly generated key combination and pass the authentication of the key group in the data asset transaction process. Therefore, the data transaction efficiency of the data in the knowledge graph can be improved through the scheme, and the transaction safety of the data assets in the knowledge graph can be improved through generating a new key combination.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
In a third aspect, an embodiment of the present application provides a data processing apparatus, which is applied to a blockchain management server, and as shown in fig. 6, the apparatus includes:
a first request receiving module 610, configured to receive a data transaction request sent by a data providing end, where the data transaction request carries a node identifier of a node corresponding to data to be transacted in a knowledge graph and data description information of the data to be transacted;
a key configuration module 620, configured to configure a key for a node identifier of a node corresponding to the data to be traded, where the key is a key corresponding to a block in a block chain;
a message sending module 630, configured to send a data transaction notification message to a data receiving end, where the data transaction notification message carries data description information of the data to be transacted;
a second request receiving module 640, configured to receive a data transaction request sent by a target data receiving end of the data receiving ends, where the data transaction request carries a signature of the target data receiving end;
and a key binding module 550, configured to bind the signature of the target data receiving end with the key to obtain a new key, so that the data providing end and the target data receiving end perform data transaction on the data to be transacted through the new key.
According to the technical scheme provided by the embodiment of the application, when the data in the knowledge graph is traded through the block chain, all data in the knowledge graph is not stored in the block chain, but a key is configured for the node identification of the node corresponding to the data to be traded, namely, each node in the knowledge graph is used as an independent object, and each node points to a trusted block in the block chain. And binding a key configured for the node identification of the node corresponding to the data to be traded with the signature of the target data receiving end, and finally trading the data to be traded through a new password. Therefore, by the technical scheme provided by the embodiment of the application, the storage space can be saved, the data transaction efficiency of the data in the knowledge spectrogram is improved, and the data transaction safety is high.
Optionally, when the nodes corresponding to the data to be traded are multiple nodes, the key configuration module is specifically configured to:
configuring a first key corresponding to a first block for a first node identifier of a first node, wherein the first node is any one of nodes corresponding to the data to be traded;
and configuring a second key corresponding to a second block for a second node identifier of a second node, wherein the second node is a node except the first node in the nodes corresponding to the data to be transacted, and the second key is different from the first key.
Optionally, the apparatus further comprises:
and the information receiving module is used for sending data transaction success information to each data receiving terminal after the second request receiving module receives a second data transaction request sent by a target data receiving terminal in the data receiving terminals, wherein the data transaction success information carries a data transaction contract, and the data transaction contract is used for describing that the data providing terminal and the target data receiving terminal perform transaction on the information to be transacted.
Optionally, the apparatus further comprises:
and the key sending module is used for sending the new key to the data providing end and the target data receiving end after the key binding module binds the signature of the target data receiving end and the key to obtain the new key, so that the target data receiving end sends a data acquisition request to the data providing end and acquires the data to be traded from the data providing end, wherein the data acquisition request carries the new key.
Optionally, the apparatus further comprises:
the data verification module is used for verifying whether the data to be traded is in compliance or not through the data description information of the data to be traded before the key configuration module configures a key for the node identifier of the node corresponding to the data to be traded;
and when the data to be traded is in compliance, triggering the key configuration module to execute a step of configuring a key for the node identifier of the node corresponding to the data to be traded.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In a third aspect, an embodiment of the present application provides an electronic device, as shown in fig. 7, including a processor 710, a memory 720, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the data processing method according to the first aspect when executing the program.
According to the technical scheme provided by the embodiment of the application, when the data in the knowledge graph is traded through the block chain, all data in the knowledge graph is not stored in the block chain, but a key is configured for the node identification of the node corresponding to the data to be traded, namely, each node in the knowledge graph is used as an independent object, and each node points to a trusted block in the block chain. And binding a key configured for the node identification of the node corresponding to the data to be traded with the signature of the target data receiving end, and finally trading the data to be traded through a new password. Therefore, by the technical scheme provided by the embodiment of the application, the storage space can be saved, the data transaction efficiency of the data in the knowledge spectrogram is improved, and the data transaction safety is high.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the data processing method according to the first aspect.
According to the technical scheme provided by the embodiment of the application, when the data in the knowledge graph is traded through the block chain, all data in the knowledge graph is not stored in the block chain, but a key is configured for the node identification of the node corresponding to the data to be traded, namely, each node in the knowledge graph is used as an independent object, and each node points to a trusted block in the block chain. And binding a key configured for the node identification of the node corresponding to the data to be traded with the signature of the target data receiving end, and finally trading the data to be traded through a new password. Therefore, by the technical scheme provided by the embodiment of the application, the storage space can be saved, the data transaction efficiency of the data in the knowledge spectrogram is improved, and the data transaction safety is high.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing detailed description is directed to a data processing method, an apparatus, an electronic device, and a storage medium provided by the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A data processing method is applied to a block chain management server, and comprises the following steps:
receiving a first data transaction request sent by a data providing end, wherein the first data transaction request carries a node identifier of a node corresponding to data to be transacted in a knowledge graph and data description information of the data to be transacted;
configuring a key for the node identifier of the node corresponding to the data to be traded, wherein the key is a key corresponding to a block in a block chain;
sending a data transaction notification message to a data receiving end, wherein the data transaction notification message carries data description information of the data to be transacted;
receiving a second data transaction request sent by a target data receiving terminal in the data receiving terminals, wherein the second data transaction request carries a signature of the target data receiving terminal;
and binding the signature of the target data receiving end with the key to obtain a new key, so that the data providing end and the target data receiving end perform data transaction on the data to be transacted through the new key.
2. The method according to claim 1, wherein when the node corresponding to the data to be transacted is a plurality of nodes, configuring a key for the node identifier of the node corresponding to the data to be transacted includes:
configuring a first key corresponding to a first block for a first node identifier of a first node, wherein the first node is any one of nodes corresponding to the data to be traded;
and configuring a second key corresponding to a second block for a second node identifier of a second node, wherein the second node is a node except the first node in the nodes corresponding to the data to be transacted, and the second key is different from the first key.
3. The method of claim 1, wherein after said receiving a second data transaction request sent by a target one of said data receivers, said method further comprises:
and sending data transaction success information to each data receiving end, wherein the data transaction success information carries a data transaction contract, and the data transaction contract is used for describing the transaction of the information to be transacted between the data providing end and the target data receiving end.
4. The method according to any one of claims 1 to 3, wherein after said binding the signature of the target data receiving end and the key to obtain a new key, the method further comprises:
and sending the new key to the data providing end and the target data receiving end so that the target data receiving end sends a data acquisition request to the data providing end and acquires the data to be traded from the data providing end, wherein the data acquisition request carries the new key.
5. The method according to any one of claims 1 to 3, wherein before configuring a key for the node identification of the node corresponding to the data to be transacted, the method further comprises:
checking whether the data to be traded is in compliance or not through the data description information of the data to be traded;
and when the data to be traded is in compliance, executing a step of configuring a key for the node identification of the node corresponding to the data to be traded.
6. A data processing apparatus, applied to a blockchain management server, the apparatus comprising:
the system comprises a first request receiving module, a first data transaction module and a second request receiving module, wherein the first request receiving module is used for receiving a first data transaction request sent by a data providing end, and the first data transaction request carries a node identifier of a node corresponding to data to be transacted in a knowledge graph and data description information of the data to be transacted;
the key configuration module is used for configuring a key for the node identifier of the node corresponding to the data to be traded, wherein the key is a key corresponding to a block in a block chain;
the message sending module is used for sending a data transaction notification message to a data receiving end, wherein the data transaction notification message carries data description information of the data to be transacted;
a second request receiving module, configured to receive a second data transaction request sent by a target data receiving end of the data receiving ends, where the second data transaction request carries a signature of the target data receiving end;
and the key binding module is used for binding the signature of the target data receiving end with the key to obtain a new key, so that the data providing end and the target data receiving end perform data transaction on the data to be transacted through the new key.
7. The apparatus according to claim 6, wherein when the nodes corresponding to the data to be transacted are a plurality of nodes, the key configuration module is specifically configured to:
configuring a first key corresponding to a first block for a first node identifier of a first node, wherein the first node is any one of nodes corresponding to the data to be traded;
and configuring a second key corresponding to a second block for a second node identifier of a second node, wherein the second node is a node except the first node in the nodes corresponding to the data to be transacted, and the second key is different from the first key.
8. The apparatus of claim 6, further comprising:
and the information receiving module is used for sending data transaction success information to each data receiving terminal after the second request receiving module receives a second data transaction request sent by a target data receiving terminal in the data receiving terminals, wherein the data transaction success information carries a data transaction contract, and the data transaction contract is used for describing that the data providing terminal and the target data receiving terminal perform transaction on the information to be transacted.
9. The apparatus of any one of claims 6 to 8, further comprising:
and the key sending module is used for sending the new key to the data providing end and the target data receiving end after the key binding module binds the signature of the target data receiving end and the key to obtain the new key, so that the target data receiving end sends a data acquisition request to the data providing end and acquires the data to be traded from the data providing end, wherein the data acquisition request carries the new key.
10. The apparatus of any one of claims 6 to 8, further comprising:
the data verification module is used for verifying whether the data to be traded is in compliance or not through the data description information of the data to be traded before the key configuration module configures a key for the node identifier of the node corresponding to the data to be traded;
and when the data to be traded is in compliance, triggering the key configuration module to execute a step of configuring a key for the node identifier of the node corresponding to the data to be traded.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the data processing method according to any of claims 1 to 5 are implemented when the processor executes the program.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 5.
CN202010688825.2A 2020-07-16 Data processing method and device, electronic equipment and storage medium Active CN112000731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010688825.2A CN112000731B (en) 2020-07-16 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010688825.2A CN112000731B (en) 2020-07-16 Data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112000731A true CN112000731A (en) 2020-11-27
CN112000731B CN112000731B (en) 2024-05-10

Family

ID=

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670049A (en) * 2018-11-19 2019-04-23 平安科技(深圳)有限公司 Map path query method, apparatus, computer equipment and storage medium
US20190347654A1 (en) * 2018-05-10 2019-11-14 Alibaba Group Holding Limited Blockchain data processing methods, apparatuses, devices, and systems
CN111062716A (en) * 2019-11-29 2020-04-24 支付宝(杭州)信息技术有限公司 Method and device for generating block chain signature data and block chain transaction initiating system
CN111343207A (en) * 2020-05-19 2020-06-26 北京华云安信息技术有限公司 Multi-node joint encryption data transmission method, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190347654A1 (en) * 2018-05-10 2019-11-14 Alibaba Group Holding Limited Blockchain data processing methods, apparatuses, devices, and systems
CN109670049A (en) * 2018-11-19 2019-04-23 平安科技(深圳)有限公司 Map path query method, apparatus, computer equipment and storage medium
CN111062716A (en) * 2019-11-29 2020-04-24 支付宝(杭州)信息技术有限公司 Method and device for generating block chain signature data and block chain transaction initiating system
CN111343207A (en) * 2020-05-19 2020-06-26 北京华云安信息技术有限公司 Multi-node joint encryption data transmission method, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
CN109981279B (en) Block chain system, communication method, device, equipment and medium
CN110995703B (en) Service processing request processing method and device, and electronic device
CN112907369B (en) Block chain-based data consensus method and device, electronic equipment and storage medium
CN111698315B (en) Data processing method and device for block and computer equipment
EP3763078B1 (en) Methods of electing leader nodes in a blockchain network using a role-based consensus protocol
CN111383021A (en) Node management method, device, equipment and medium based on block chain network
CN110222085B (en) Processing method and device for certificate storage data and storage medium
CN112422341B (en) Fault detection method of block chain network and related equipment
CN111949531B (en) Block chain network testing method, device, medium and electronic equipment
CN116155771A (en) Network anomaly test method, device, equipment, storage medium and program
CN111008206A (en) Method and device for storing state data of cross-chain transaction and storage medium
CN112749968A (en) Service data recording method and device based on block chain
CN115514608A (en) Block consensus method, device, equipment and storage medium
CN112181599B (en) Model training method, device and storage medium
CN112037055B (en) Transaction processing method, device, electronic equipment and readable storage medium
CN111597537B (en) Block chain network-based certificate issuing method, related equipment and medium
CN111680282B (en) Node management method, device, equipment and medium based on block chain network
CN112506570A (en) Equipment instruction issuing method, system and server
CN112000731B (en) Data processing method and device, electronic equipment and storage medium
CN112000731A (en) Data processing method and device, electronic equipment and storage medium
Quamara et al. An In-depth Security and Performance Investigation in Hyperledger Fabric-configured Distributed Computing Systems
CN109389271B (en) Application performance management method and system
US20220083656A1 (en) Apparatus and method for tolerating byzantine faults in blockchain platforms
CN111935251B (en) Block chain network management method, network, device, equipment and storage medium

Legal Events

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