CN112181983B - Data processing method, device, equipment and medium - Google Patents

Data processing method, device, equipment and medium Download PDF

Info

Publication number
CN112181983B
CN112181983B CN202011017408.1A CN202011017408A CN112181983B CN 112181983 B CN112181983 B CN 112181983B CN 202011017408 A CN202011017408 A CN 202011017408A CN 112181983 B CN112181983 B CN 112181983B
Authority
CN
China
Prior art keywords
data
proxy
sent
blockchain node
target
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.)
Active
Application number
CN202011017408.1A
Other languages
Chinese (zh)
Other versions
CN112181983A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011017408.1A priority Critical patent/CN112181983B/en
Publication of CN112181983A publication Critical patent/CN112181983A/en
Application granted granted Critical
Publication of CN112181983B publication Critical patent/CN112181983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/221Column-oriented storage; Management thereof
    • 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
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a device, equipment and a medium, which are executed by a data provider, wherein the method comprises the following steps: receiving index information sent by a first proxy block chain node, and matching in a database according to the index information to determine data to be sent; the first agent block chain node is used for establishing data connection between the data provider and the block chain network; determining state information corresponding to the data to be transmitted according to the data to be transmitted, and adding the state information to the data to be transmitted to obtain target data; and sending the target data to the first proxy blockchain node so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to the data requiring party. The embodiment of the invention realizes the effect of providing the state information of the target data to the data demander on the premise of not influencing the performance of the blockchain.

Description

Data processing method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of blockchain, in particular to a data processing method, a device, equipment and a medium.
Background
When the collection and sharing channels of the user credit information by various systems are very limited, a plurality of systems hope to comprehensively know the credit information of the user when evaluating the user. It can be seen that accurate personal credit information is becoming increasingly important in the context of today's honest society.
The current mainstream method is to share the user credit information through the blockchain network, and because the user credit information has timeliness, the existing method needs to maintain the timeliness information of the user credit information in the blockchain network on time, which may cause the problem of data expansion of the blockchain network and greatly affect the performance of the blockchain network.
Disclosure of Invention
The embodiment of the application discloses a data processing method, a device, equipment and a medium, which are used for solving the problem that the prior method maintains the time-effect information of user credit information in a blockchain network, which can cause the blockchain network to generate data expansion and greatly influence the performance of the blockchain network.
In a first aspect, an embodiment of the present invention provides a data processing method, which is performed by a data provider, including:
Receiving index information sent by a first proxy block chain node, and matching in a database according to the index information to determine data to be sent; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network;
determining state information corresponding to the data to be sent according to the data to be sent, and adding the state information to the data to be sent to obtain target data;
And sending the target data to the first proxy blockchain node so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data requiring party.
In a second aspect, an embodiment of the present invention provides a data processing method, which is executed by a data demander, including:
Carrying out hash calculation on the identification information corresponding to the target data to obtain an identification hash value;
Generating a data acquisition request according to the identification hash value, and sending the data acquisition request to a second proxy block chain node so that the second proxy block chain node can send index information associated with the identification hash value to the first proxy block chain node in a broadcast mode; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network;
and receiving the target data sent by the second proxy blockchain node.
In a third aspect, an embodiment of the present invention provides a data processing apparatus configured in a data provider, including:
The index information receiving module is used for receiving index information sent by the first proxy block chain node, matching the index information in the database and determining data to be sent; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network;
The target data determining module is used for determining state information corresponding to the data to be sent according to the data to be sent, and adding the state information into the data to be sent to obtain target data;
And the target data sending module is used for sending the target data to the first proxy blockchain node so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data demand party.
In a fourth aspect, an embodiment of the present invention provides a data processing apparatus configured in a data demander, including:
The identification hash value acquisition module is used for carrying out hash calculation on the identification information corresponding to the target data to obtain an identification hash value;
The data acquisition request sending module is used for generating a data acquisition request according to the identification hash value, sending the data acquisition request to a second proxy block chain node so that the second proxy block chain node can send index information associated with the identification hash value to the first proxy block chain node in a broadcast mode; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network;
And the target data receiving module is used for receiving the target data sent by the second proxy blockchain node.
In a fifth aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described in any of the embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention provides a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a data processing method according to any of the embodiments of the present invention.
The embodiment of the invention realizes the effect of providing the state information of the target data to the data demander on the premise of not influencing the performance of the blockchain.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a data processing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a data processing method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a data processing apparatus according to a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of a data processing apparatus according to a fifth embodiment of the present invention;
Fig. 6 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and are not limiting of the invention. It should be further noted that, for convenience of description, only the structures related to the embodiments of the present invention, not all the structures, are shown in the drawings.
The applicant finds that in the research and development process, the existing time effect information of the user credit information in the blockchain network is maintained, and the maintenance is mainly realized in the following two modes: 1) And uploading the data again after the aging information of the user certification information is changed. 2) When the time effect information of the user certification information is changed, the existing data of the time effect information is subjected to appointed single update.
However, when the aging information stored in the blockchain network changes, the two methods may cause the blockchain network to commonly know the transaction amount and the storage amount to be large, thereby affecting the performance of the blockchain network.
Example 1
Fig. 1 is a flowchart of a data processing method according to a first embodiment of the present invention. The embodiment is applicable to the case of providing the target data which the data demander wants to acquire and the state information corresponding to the target data, and the method can be executed by the data processing device provided by the embodiment of the invention, and the device is configured in the data provider and can be realized by software and/or hardware. The data provider comprises a computer, a server, a workstation and any device with data processing capability and data storage capability. As shown in fig. 1, the method may include:
Step 101, receiving index information sent by a first proxy blockchain node, and matching in a database according to the index information to determine data to be sent; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network.
In the database of the local side of the data provider, the association relation between the stored data and the index information is pre-established through the existing information indexing technology, namely the stored data matched with the index information can be searched in the database according to the index information. In this embodiment, the index information is stored in advance in each blockchain node of the blockchain network in a distributed ledger manner. The data provider is connected with the corresponding first proxy block chain link point data, and can share the stored data in the local end database into the block chain network through the first proxy block chain link point, and can acquire the data in the block chain network through the first proxy block chain node.
Specifically, after the first proxy blockchain node acquires broadcast information sent by any blockchain node in the blockchain network, index information is determined according to the broadcast information, the index information is sent to a data provider, after the data provider receives the index information, data matching is performed in a database of a local terminal according to the index information according to the association relation between pre-established stored data and the index information, and stored data matched with the index information is determined to be data to be sent. In this embodiment, specific content of the data to be sent includes, but is not limited to, user credit information, such as user blacklist data or user whitelist data, where the user blacklist data includes, but is not limited to, a name of a arrearer, an amount of arrearing, overdue time, bank information to which the arrearing belongs, and the like.
Optionally, the type of the database includes at least one of a relational database, a key value store database, and a column store database.
Wherein the relational database attributes complex data structures into simple binary relationships, i.e., two-dimensional tabular form. Typically the table first behaves as a field name describing the role of this field, the specific data below. The name and type of the field need to be specified when defining the table.
Key value store database a non-relational database that uses simple key value methods to store data. The key-value database stores data as a set of key-value pairs, with keys as unique identifiers.
The data in the column storage database is stored in the disk column by column in units of columns, and each time the data is read, the data is one section or all of the set, and the redundancy problem does not exist. Thus, the query performance is greatly improved through the adjustment of the storage mode.
The index information sent by the first proxy blockchain node is received, and the data to be sent is determined by matching in the database according to the index information, so that the effect of determining the corresponding data to be sent in the local end according to the index information stored in the blockchain network is realized, and the index information is stored in the blockchain network due to smaller data volume, and the data to be sent is stored in the local end of the data provider due to larger data volume, so that the data storage space in the blockchain can be saved.
Step 102, determining state information corresponding to the data to be sent according to the data to be sent, and adding the state information to the data to be sent to obtain target data.
The state information is used for describing the state of each stored data in the local database of the data provider, the state information comprises, but is not limited to, a data validity period, a data updating state, the number of times the data is queried and the like, the state information can be updated along with the change of corresponding data and the promotion of time, and the data provider maintains the state information of each stored data in the local database and establishes the association relation between each stored data and the corresponding state information.
Specifically, the data provider determines state information corresponding to the data to be sent from a database according to the data to be sent and the association relation between each piece of pre-established storage data and the corresponding state information, and adds the state information to the data to be sent to obtain target data, wherein the adding mode of the state information comprises adding a data tag to the data to be sent or carrying out data assembly and the like on the state information and the data to be sent.
The target data is obtained by determining the state information corresponding to the data to be transmitted according to the data to be transmitted and adding the state information to the data to be transmitted, so that a foundation is laid for the subsequent transmission of the target data to the first proxy blockchain node.
Step 103, sending the target data to the first proxy blockchain node, so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data requiring party.
Specifically, after the data provider sends the target data to the first proxy blockchain node, the blockchain network bottom layer responds to automatically synchronize the target data to each blockchain node in the blockchain network, that is, the target data is synchronized to the second proxy blockchain node corresponding to the data demander.
By sending the target data to the first proxy blockchain node, the blockchain network synchronizes the target data in the first proxy blockchain node to the second proxy blockchain node corresponding to the data demand party, and the effect of feeding back the target data required by the data demand party is achieved.
According to the technical scheme provided by the embodiment of the invention, the index information sent by the first proxy block chain node is received, matching is carried out in the database according to the index information, the data to be sent is determined, the state information corresponding to the data to be sent is further determined according to the data to be sent, the state information is added into the data to be sent, the target data is obtained, and finally the target data is sent to the first proxy block chain node, so that the block chain network synchronizes the target data in the first proxy block chain node to the second proxy block chain node corresponding to the data demand party.
On the basis of the above embodiment, before step 101, it includes:
and receiving the public key of the data demand party sent by the first proxy block chain node.
Specifically, the data demander sends its own public key, namely, the public key of the data demander to each blockchain node through the blockchain network, and correspondingly, after the first proxy blockchain node acquires the public key of the data demander, the public key of the data demander is transmitted to the data provider.
Accordingly, the "send the target data to the first proxy blockchain node" in step 103 includes:
encrypting the target data according to the public key of the data demand party, and sending the encrypted target data to the first proxy blockchain node.
Specifically, the data provider encrypts the target data containing the status information and the data to be transmitted by the public key of the data demander, wherein the public key encryption algorithm includes, but is not limited to, an RSA algorithm, an ElGamal algorithm, a knapsack algorithm and the like. And then the encrypted target data is sent to the first proxy blockchain node.
The target data is encrypted according to the public key of the data demand party, and the encrypted target data is sent to the first proxy block chain node, so that the safety of data transmission is ensured, and the target data is prevented from being illegally cracked.
Example two
Fig. 2 is a flowchart of a data processing method according to a second embodiment of the present invention. This embodiment is optimized based on the above-described alternative embodiments, and as shown in fig. 2, the method may include:
step 201, receiving a data hash value sent by a first proxy blockchain node.
The method comprises the steps of carrying out irreversible hash calculation on stored data in a local database of each data provider through a preset hash function, taking obtained data hash values as index information, and storing the data hash values in each block chain node of a block chain network in a distributed account book mode.
Specifically, the first proxy block link point determines a data hash value based on the received broadcast information and transmits the data hash value to the data provider.
Step 202, matching the data hash value with a candidate hash value in a database, and using the data associated with the successfully matched candidate hash value as the data to be transmitted.
The method comprises the steps of establishing an association relation between stored data and corresponding data hash values in a local database of a data provider in advance, and storing the data hash values corresponding to the stored data in a data list mode as candidate hash values.
Specifically, after the data provider receives the data hash value, the data hash value is matched with a candidate hash value of a data list in a database, and stored data which is successfully matched with the candidate hash value is used as data to be sent according to the association relation between the stored data and the candidate hash value.
Step 203, determining a data effective date and/or a data aging period corresponding to the data to be sent according to the data to be sent.
Specifically, in the local database of the data provider, the state information of each stored data is maintained, and the association relation between each stored data and the state information is established. Namely, according to the data to be sent and the association relation, the state information corresponding to the data to be sent can be determined. Optionally, the status information includes a date of data validation and/or a date of data expiration.
Taking the data to be sent as blacklist data in user credit information as an example, the data effective date of the blacklist data is the occurrence date of the blacklist data, for example, the date of client loan violations, and the data provider acquires the data according to actual conditions and stores the data into a local database. The data time period of the blacklist data is that of the blacklist data, and the data provider acquires the time period sent by authorities such as a central office or a national credit institution and stores the time period in a local database.
Step 204, determining a data expiration date according to the data effective date and the data expiration date, and determining data state identification information according to the data expiration date and the current date; wherein the data state identification information comprises one of a data valid identification and a data invalid identification.
Specifically, the data expiration date is calculated by the data effective date and the data aging period, namely, the data expiration date is calculated according to the data effective date plus the data aging period. And comparing the data expiration date with the current date, if the data expiration date is earlier than the current date, the data state identification information is a data effective identification, and if the data expiration date is later than the current date, the data state identification information is a data expiration identification.
Taking the data to be sent as the blacklist data in the credit information of the user, for example, the client generates overdue loan on 9 days of 6 months in 2020, namely, the date of data validation is 9 days in 2020, and the credit organization prescribes that the credit management period of overdue loan credit is 5 years, namely, the date of data aging is 5 years, and the client is within the management range until 9 days in 2025, 6 months and 9 days, namely, the date of data expiration is 9 days in 2025.
Taking the data to be sent as blacklist data in user credit information as an example, assuming that the data expiration date of the blacklist data is 2025, 6, 9 days, and if the current date is 2025, 6, 10 days, the blacklist data is shown to be blacklist data, but the data state identification information is corresponding to the data expiration identification outside the control period; if the current date is '2025, 6, 8 days', the blacklist data is indicated to be valid currently, and the corresponding data state identification information is a data valid identification.
Optionally, the data state identification information may further include a data error identification.
Specifically, when the technician stores erroneous data in the data provider local database for some reason and has now corrected that the data is invalid, the technician adds a data error identification in the data status identification information of the erroneous data.
And step 205, adding the data effective date, the data expiration date and the data state identification information to the data to be sent to obtain target data.
Optionally, step 205 includes:
and taking the data effective date, the data expiration date and the data state identification information as data fields, and assembling the data effective date, the data expiration date and the data state identification information into preset data fields in the data to be sent to obtain target data.
The preset data field may be a last data field of the data to be sent, or a first data field of the data to be sent, or any agreed data field in the data to be sent.
The data effective date, the data expiration date and the data state identification information are taken as data columns and spliced into preset data fields in the data to be sent to obtain target data, so that a data demand party can finally judge the target data more comprehensively based on the data effective date, the data expiration date and the data state identification information.
Step 206, sending the target data to the first proxy blockchain node, so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data demander.
According to the technical scheme provided by the embodiment of the invention, the data hash value is used as index information, the data hash value is matched with the candidate hash value in the database, and the data associated with the candidate hash value which is successfully matched is used as the data to be transmitted, so that the index information is stored in the block chain network in a ciphertext form, and the safety is higher; the method comprises the steps of determining the data expiration date according to the data effective date and the data aging date, determining the data state identification information according to the data expiration date and the current date, finally splicing the data effective date, the data expiration date and the data state identification information into a preset data field in data to be transmitted to obtain target data, and splicing the state information of the data into the data to be transmitted to be fed back to the data requiring party only when the data requiring party needs the data, so that the problem that the block chain network consensus transaction amount and the storage amount are large and the performance of the block chain network is affected is avoided.
Example III
Fig. 3 is a flowchart of a data processing method according to a third embodiment of the present invention. The embodiment is applicable to the case that the data demander acquires the target data, and the method can be executed by the data processing device provided by the embodiment of the invention, and the device is configured in the data demander and can be implemented by software and/or hardware. The data demander comprises a computer, a server, a workstation and any device with data processing capability and data storage capability. As shown in fig. 3, the method may include:
step 301, performing hash calculation on the identification information corresponding to the target data to obtain an identification hash value.
Specifically, the data demand party performs irreversible hash calculation on the identification information through a preset hash function according to the identification information corresponding to the data demanded by the data demand party, so as to obtain an identification hash value.
Optionally, the identification information includes at least one of a license number, an account number, a cell phone number, and an enterprise license number.
Step 302, generating a data acquisition request according to the identification hash value, and sending the data acquisition request to a second proxy blockchain node so that the second proxy blockchain node can send index information associated with the identification hash value to the first proxy blockchain node in a broadcast mode; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network.
The index information of the data of each data provider and the identification hash value are stored in a distributed mode on each block chain node in the block chain network, and each identification hash value and the index information of the corresponding data establish an association relation, and optionally, the index information comprises the data hash value. The data demand side is in data connection with the corresponding second proxy block chain link point, and can share the stored data in the local end database into the block chain network through the second proxy block chain link point or can acquire the data in the block chain network through the second proxy block chain node.
Specifically, the data requesting party generates a data acquisition request containing an identification hash value, and sends the data acquisition request to a second blockchain node, the second blockchain node analyzes the data acquisition request to acquire the identification hash value contained in the data acquisition request, determines index information associated with the identification hash value according to the association relation between the pre-established identification hash value and the index information, sends broadcast containing the index information to each blockchain network node in a blockchain network based on a blockchain network broadcast technology, and correspondingly, the first proxy blockchain link point corresponding to the data provider acquires broadcast containing the index information.
Step 303, receiving the target data sent by the second proxy blockchain node.
Specifically, the data provider sends corresponding target data to the first proxy blockchain node according to the obtained index information, the blockchain network bottom layer responds to automatically synchronize the target data to each blockchain node in the blockchain network, and the target data is synchronized to the second proxy blockchain node corresponding to the data demander. The second proxy blockchain node further sends the target data to the data demander so that the data demander can perform corresponding business processing according to the target data.
According to the technical scheme provided by the embodiment of the invention, the identification hash value is obtained by carrying out hash calculation on the identification information corresponding to the target data, the data acquisition request is generated according to the identification hash value, the data acquisition request is sent to the second proxy blockchain node, and finally the target data sent by the second proxy blockchain node is received, so that the effect of acquiring the target data from the local database of the data provider based on the index information in the blockchain node is realized, the storage pressure of the blockchain network is saved, and the performance of the blockchain network is ensured.
Based on the above embodiment, before "sending the data acquisition request to the second proxy blockchain node" in step 302 includes:
1) And generating a public key of the data requiring party and a private key of the data requiring party according to the public-private key generation algorithm.
Specifically, the data demander generates the public key of the data demander and the private key of the data demander according to the existing public-private key generation algorithm, such as an RSA algorithm or elliptic curve encryption algorithm.
2) And sending the data demand side public key to a second proxy blockchain node so that the second proxy blockchain node sends the data demand side public key to the first proxy blockchain node in a broadcast mode.
Specifically, the data demander sends the public key of the data demander to the second proxy blockchain node, the second proxy blockchain node sends the public key of the data demander to the first proxy blockchain node in a broadcast mode, the first proxy blockchain link node sends the public key of the data demander to the data provider, and the data provider encrypts the target data according to the public key of the data demander.
The public key of the data demand party and the private key of the data demand party are generated according to the public-private key generation algorithm, and the public key of the data demand party is sent to the second proxy blockchain node, so that the second proxy blockchain node sends the public key of the data demand party to the first proxy blockchain node in a broadcast mode, the effect that the data provider can encrypt target data based on the public key of the data demand party is achieved, and the safety of target data transmission is guaranteed.
On the basis of the above embodiment, the target data is encrypted by the data-requiring party public key;
Accordingly, after step 303, it includes:
And decrypting the encrypted target data according to the private key of the data requiring party to obtain decrypted target data.
Specifically, the data demand side decrypts the target data passing through the public key of the data demand side according to the private key of the data demand side, so as to obtain decrypted target data, wherein the target data comprises data state information, and therefore the data demand side can judge the target data more comprehensively according to the state information for use.
The encrypted target data is decrypted according to the private key of the data demand party, so that decrypted target data is obtained, the effect of decrypting the encrypted target data according to the unique private key of the data demand party is achieved, and the target data can only be obtained by the data demand party.
Example IV
Fig. 4 is a schematic structural diagram of a data processing device according to a fourth embodiment of the present invention, where the data processing device is configured in a data provider, and may execute a data processing method according to the first embodiment and/or the second embodiment of the present invention, and the data processing device has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the apparatus may include:
The index information receiving module 41 is configured to receive index information sent by the first proxy blockchain node, and determine data to be sent according to matching of the index information in the database; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network;
The target data determining module 42 is configured to determine state information corresponding to the data to be sent according to the data to be sent, and add the state information to the data to be sent to obtain target data;
And a target data sending module 43, configured to send the target data to the first proxy blockchain node, so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data demander.
On the basis of the above embodiment, the index information includes a data hash value.
On the basis of the above embodiment, the index information receiving module 41 is specifically configured to:
And matching the data hash value with a candidate hash value in a database, and using the data associated with the successfully matched candidate hash value as the data to be transmitted.
On the basis of the above embodiment, the status information includes a date of data validation and/or a date of data validity.
On the basis of the above embodiment, the target data determining module 42 is specifically configured to:
Determining a data expiration date according to the data effective date and the data aging period;
determining data state identification information according to the data expiration date and the current date; wherein the data state identification information comprises one of a data valid identification and a data invalid identification;
And adding the data effective date, the data expiration date and the data state identification information into the data to be sent to obtain target data.
On the basis of the above embodiment, the target data determining module 42 is specifically further configured to:
and taking the data effective date, the data expiration date and the data state identification information as data fields, and assembling the data effective date, the data expiration date and the data state identification information into preset data fields in the data to be sent to obtain target data.
On the basis of the above embodiment, the device further includes a data-requiring party public key receiving module, specifically configured to:
Receiving a data demand side public key sent by a first proxy block chain node;
Correspondingly, the target data sending module 43 is specifically configured to:
encrypting the target data according to the public key of the data demand party, and sending the encrypted target data to the first proxy blockchain node.
On the basis of the above embodiment, the type of the database includes at least one of a relational database, a key value storage database, and a column storage database.
The data processing device provided by the embodiment of the invention can execute the data processing method provided by the first embodiment and/or the second embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be referred to the data processing method provided in the first and/or second embodiments of the present invention.
Example five
Fig. 5 is a schematic structural diagram of a data processing device according to a fifth embodiment of the present invention, where the data processing device is configured in a data demander, and is capable of executing a data processing method according to a third embodiment of the present invention, and the data processing device has functional modules and beneficial effects corresponding to the executing method. As shown in fig. 5, the apparatus may include:
The identifier hash value obtaining module 51 is configured to perform hash calculation on the identifier information corresponding to the target data to obtain an identifier hash value;
The data acquisition request sending module 52 is configured to generate a data acquisition request according to the identifier hash value, and send the data acquisition request to a second proxy blockchain node, so that the second proxy blockchain node sends index information associated with the identifier hash value to the first proxy blockchain node in a broadcast manner; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network;
And a target data receiving module 53, configured to receive the target data sent by the second proxy blockchain node.
On the basis of the above embodiment, the identification information includes at least one of a license number, an account number, a mobile phone number, and an enterprise license number.
On the basis of the above embodiment, the apparatus further includes a key generation module, specifically configured to:
Generating a public key of the data demand party and a private key of the data demand party according to a public-private key generation algorithm;
And sending the data demand side public key to a second proxy blockchain node so that the second proxy blockchain node sends the data demand side public key to the first proxy blockchain node in a broadcast mode.
On the basis of the above embodiment, the target data is encrypted by the data-requiring party public key;
Correspondingly, the device further comprises a target data decryption module, which is specifically used for:
And decrypting the encrypted target data according to the private key of the data requiring party to obtain decrypted target data.
The data processing device provided by the embodiment of the invention can execute the data processing method provided by the third embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be referred to the data processing method provided in the third embodiment of the present invention.
Example six
Fig. 6 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present invention. Fig. 6 shows a block diagram of an exemplary device 600 suitable for use in implementing embodiments of the invention. The device 600 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, device 600 is in the form of a general purpose computing device. The components of device 600 may include, but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 that connects the different system components (including the system memory 602 and the processing units 601).
Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 600 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 600 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 602 may include computer system readable media in the form of volatile memory such as Random Access Memory (RAM) 604 and/or cache memory 605. Device 600 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 606 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 603 through one or more data medium interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 608 having a set (at least one) of program modules 607 may be stored in, for example, memory 602, such program modules 607 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 607 generally perform the functions and/or methods of the described embodiments of the invention.
The device 600 may also communicate with one or more external devices 609 (e.g., keyboard, pointing device, display 610, etc.), one or more devices that enable a user to interact with the device 600, and/or any devices (e.g., network card, modem, etc.) that enable the device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 611. Also, device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 612. As shown, the network adapter 612 communicates with other modules of the device 600 over the bus 603. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 601 executes various functional applications and data processing by running a program stored in the system memory 602, for example, implements the data processing method provided by the embodiment of the present invention, including:
Receiving index information sent by a first proxy block chain node, and matching in a database according to the index information to determine data to be sent; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network;
determining state information corresponding to the data to be sent according to the data to be sent, and adding the state information to the data to be sent to obtain target data;
And sending the target data to the first proxy blockchain node so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data requiring party.
And/or the number of the groups of groups,
Carrying out hash calculation on the identification information corresponding to the target data to obtain an identification hash value;
Generating a data acquisition request according to the identification hash value, and sending the data acquisition request to a second proxy block chain node so that the second proxy block chain node can send index information associated with the identification hash value to the first proxy block chain node in a broadcast mode; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network;
and receiving the target data sent by the second proxy blockchain node.
Example seven
A seventh embodiment of the present invention also provides a computer-readable storage medium, which when executed by a computer processor, is configured to perform a data processing method, the method comprising:
Receiving index information sent by a first proxy block chain node, and matching in a database according to the index information to determine data to be sent; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network;
determining state information corresponding to the data to be sent according to the data to be sent, and adding the state information to the data to be sent to obtain target data;
And sending the target data to the first proxy blockchain node so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data requiring party.
And/or the number of the groups of groups,
Carrying out hash calculation on the identification information corresponding to the target data to obtain an identification hash value;
Generating a data acquisition request according to the identification hash value, and sending the data acquisition request to a second proxy block chain node so that the second proxy block chain node can send index information associated with the identification hash value to the first proxy block chain node in a broadcast mode; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network;
and receiving the target data sent by the second proxy blockchain node.
Of course, the storage medium containing computer executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform related operations in a data processing method provided in any embodiment of the present invention. The computer-readable storage media of embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (14)

1. A data processing method, performed by a data provider, comprising:
Receiving index information sent by a first proxy block chain node, and matching in a database according to the index information to determine data to be sent; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network;
Determining state information corresponding to the data to be sent according to the data to be sent, wherein the state information comprises a data effective date and a data aging period;
determining a data expiration date according to the data effective date and the data aging period; determining data state identification information according to the data expiration date and the current date; adding the data effective date, the data expiration date and the data state identification information to the data to be sent to obtain target data; wherein the data state identification information comprises one of a data valid identification and a data invalid identification;
And sending the target data to the first proxy blockchain node so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data requiring party.
2. The method of claim 1, wherein the index information comprises a data hash value.
3. The method of claim 2, wherein the matching in the database based on the index information, determining the data to be transmitted, comprises:
And matching the data hash value with a candidate hash value in a database, and using the data associated with the successfully matched candidate hash value as the data to be transmitted.
4. The method of claim 1, wherein adding the data validation date, data expiration date, and the data status identification information to the data to be transmitted to obtain target data comprises:
and taking the data effective date, the data expiration date and the data state identification information as data fields, and assembling the data effective date, the data expiration date and the data state identification information into preset data fields in the data to be sent to obtain target data.
5. The method of claim 1, comprising, prior to receiving the index information sent by the first proxy blockchain node:
Receiving a data demand side public key sent by a first proxy block chain node;
correspondingly, sending the target data to the first proxy blockchain node includes:
encrypting the target data according to the public key of the data demand party, and sending the encrypted target data to the first proxy blockchain node.
6. The method of claim 1, wherein the type of database comprises at least one of a relational database, a key value store database, and a column store database.
7. A data processing method, performed by a data demander, comprising:
Carrying out hash calculation on the identification information corresponding to the target data to obtain an identification hash value;
Generating a data acquisition request according to the identification hash value, and sending the data acquisition request to a second proxy block chain node so that the second proxy block chain node can send index information associated with the identification hash value to a first proxy block chain node in a broadcast mode; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network;
Receiving the target data sent by the second proxy blockchain node; the target data is obtained by adding a data effective date, a data expiration date and data state identification information into data to be sent, and the data expiration date is determined according to the data effective date and the data expiration date; the data state identification information is determined according to the data expiration date and the current date, and comprises one of a data valid identification and a data expiration identification.
8. The method of claim 7, wherein the identification information includes at least one of a license number, an account number, a cell phone number, and an enterprise license number.
9. The method of claim 7, wherein prior to sending the data acquisition request to the second proxy blockchain node, comprising:
Generating a public key of the data demand party and a private key of the data demand party according to a public-private key generation algorithm;
And sending the data demand side public key to a second proxy blockchain node so that the second proxy blockchain node sends the data demand side public key to the first proxy blockchain node in a broadcast mode.
10. The method of claim 9, wherein the target data is encrypted by the data-party public key;
Correspondingly, after receiving the target data sent by the second proxy blockchain node, the method includes:
And decrypting the encrypted target data according to the private key of the data requiring party to obtain decrypted target data.
11. A data processing apparatus, configured in a data provider, comprising:
The index information receiving module is used for receiving index information sent by the first proxy block chain node, matching the index information in the database and determining data to be sent; the first proxy blockchain node is used for establishing data connection between the data provider and a blockchain network;
The target data determining module is used for determining state information corresponding to the data to be sent according to the data to be sent, wherein the state information comprises a data effective date and a data aging period;
The target data determining module is specifically configured to determine a data expiration date according to the data effective date and the data expiration date; determining data state identification information according to the data expiration date and the current date; adding the data effective date, the data expiration date and the data state identification information to the data to be sent to obtain target data; wherein the data state identification information comprises one of a data valid identification and a data invalid identification;
And the target data sending module is used for sending the target data to the first proxy blockchain node so that the blockchain network synchronizes the target data in the first proxy blockchain node to a second proxy blockchain node corresponding to a data demand party.
12. A data processing apparatus, configured in a data demander, comprising:
The identification hash value acquisition module is used for carrying out hash calculation on the identification information corresponding to the target data to obtain an identification hash value;
the data acquisition request sending module is used for generating a data acquisition request according to the identification hash value, sending the data acquisition request to a second proxy block chain node so that the second proxy block chain node can send index information associated with the identification hash value to a first proxy block chain node in a broadcast mode; the second proxy blockchain node is used for establishing data connection between the data demander and a blockchain network;
The target data receiving module is used for receiving the target data sent by the second proxy blockchain node; the target data is obtained by adding the data effective date, the data expiration date and the data state identification information into the data to be transmitted; the data expiration date is determined according to the data effective date and the data aging date; the data state identification information is determined according to the data expiration date and the current date, and comprises one of a data valid identification and a data expiration identification.
13. A computer device, the device further comprising:
one or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method of any of claims 1-6 and/or claims 7-10.
14. A computer readable medium on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a data processing method as claimed in any one of claims 1-6 and/or claims 7-10.
CN202011017408.1A 2020-09-24 2020-09-24 Data processing method, device, equipment and medium Active CN112181983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017408.1A CN112181983B (en) 2020-09-24 2020-09-24 Data processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017408.1A CN112181983B (en) 2020-09-24 2020-09-24 Data processing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112181983A CN112181983A (en) 2021-01-05
CN112181983B true CN112181983B (en) 2024-05-14

Family

ID=73955526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017408.1A Active CN112181983B (en) 2020-09-24 2020-09-24 Data processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112181983B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114048270B (en) * 2022-01-14 2022-05-13 北京大学深圳研究生院 Method and computer-readable storage medium for block chain data synchronization
CN114666212B (en) * 2022-03-25 2023-08-29 阿里云计算有限公司 Configuration data issuing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020800A (en) * 2019-04-04 2019-07-16 泰康保险集团股份有限公司 Information processing method, device, medium and electronic equipment based on block chain
CN111291339A (en) * 2020-02-19 2020-06-16 上海方付通商务服务有限公司 Processing method, device and equipment of block chain data and storage medium
CN111369236A (en) * 2020-02-19 2020-07-03 中国建设银行股份有限公司 Data management method and device applied to block chain
CN111429134A (en) * 2018-12-21 2020-07-17 北京京东尚科信息技术有限公司 Data transaction method and device based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862215B (en) * 2017-09-29 2020-10-16 创新先进技术有限公司 Data storage method, data query method and device
US10999283B2 (en) * 2019-04-15 2021-05-04 Advanced New Technologies Co., Ltd. Addressing transaction conflict in blockchain systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111429134A (en) * 2018-12-21 2020-07-17 北京京东尚科信息技术有限公司 Data transaction method and device based on block chain
CN110020800A (en) * 2019-04-04 2019-07-16 泰康保险集团股份有限公司 Information processing method, device, medium and electronic equipment based on block chain
CN111291339A (en) * 2020-02-19 2020-06-16 上海方付通商务服务有限公司 Processing method, device and equipment of block chain data and storage medium
CN111369236A (en) * 2020-02-19 2020-07-03 中国建设银行股份有限公司 Data management method and device applied to block chain

Also Published As

Publication number Publication date
CN112181983A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN108370318B (en) Method and system for blockchain variants using digital signatures
US20230014599A1 (en) Data processing method and apparatus for blockchain system
US20160379013A1 (en) Cryptographic assurances of data integrity for data crossing trust boundaries
US20210217004A1 (en) Data processing method, apparatus, device, and medium in blockchain fund settlement system
WO2022057275A1 (en) Data check method and apparatus, and device and computer-readable medium
CN111737720B (en) Data processing method and device and electronic equipment
CN112181983B (en) Data processing method, device, equipment and medium
CN111047314A (en) Financial data processing method and system based on block chain
US11689355B2 (en) Method and system for the atomic exchange of blockchain assets using transient key pairs
CN112738253A (en) Data processing method, device and equipment based on block chain and storage medium
EP3777006A2 (en) Methods and devices for cryptographic key management based on blockchain system
CN110705985B (en) Method and apparatus for storing information
CN112613747A (en) Building information management method, device, equipment and storage medium
CN113873004A (en) Task execution method and device and distributed computing system
CN115968483A (en) Method and system for supervision of blockchain transactions
CN110830428A (en) Block chain financial big data processing method and system
CN113011960A (en) Block chain-based data access method, device, medium and electronic equipment
CN111415155A (en) Encryption method, device, equipment and storage medium for chain-dropping transaction data
CN115934640A (en) Data storage method, system, electronic equipment and storage medium
CN113609531B (en) Information interaction method, device, equipment, medium and product based on block chain
Ding et al. Enabling efficient multi-keyword search over fine-grained authorized healthcare blockchain system
CN111861489B (en) Block chain-based financial product transaction share determining method and device
CN114095165A (en) Key updating method, server device, client device and storage medium
CN116388970B (en) Centralized cloud computing implementation method and device based on multiparty data
US11983710B2 (en) Hash-based transaction tagging

Legal Events

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