Blockchain-based data processing method, device, server and storage medium
By introducing consensus nodes in the blockchain to prioritize data service requests and perform differential privacy processing, the problem of low data transmission security in the blockchain is solved and the security and efficiency of data transmission are improved.
Patent Information
- Application Number
- CN202210523000.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-05-13
AI Technical Summary
The security of the data transmission process in the blockchain is low. Only the identity information of the data is protected. There is a risk of leakage of real data during the transmission process.
By introducing consensus nodes in the blockchain to prioritize data service requests, and performing differential privacy processing on private data after passing the review, the security of data transmission is improved.
It improves the efficiency of data processing and the security of data transmission in the blockchain, ensuring the protection of private data during the transmission process.
Smart Images

Figure CN114978645B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data processing method, device, server and storage medium. Background Art
[0002] With the development of information technology and Internet technology, blockchain technology is widely used in the fields of Internet of Vehicles, Internet, etc. Among them, providing privacy protection for data in the blockchain is a basic requirement in the data transmission process.
[0003] Among them, for data service scenarios in blockchain, the requester will generally obtain the required data by sending a data acquisition request to the server in the blockchain. In the blockchain, the data provided by each data provider is usually protected by a pseudonym. For example, when the server in the blockchain receives the data acquisition request sent by the requester, it forwards the data obtained by its query to the requester using its pseudonym, thereby achieving the effect of providing privacy protection during data transmission.
[0004] Based on the above data encryption protection method, the transmitted data is real data. The blockchain only replaces the identity information of the data, and there is a problem of low security protection in the data transmission process itself. Summary of the invention
[0005] In order to solve the problems of the prior art and improve the security of data transmission in the blockchain, the embodiments of the present application provide a data processing method, device, server and storage medium based on the blockchain. The technical solution is as follows:
[0006] In one aspect, the present application provides a data processing method based on blockchain, applied to a server, the method comprising:
[0007] Receiving a data service request sent by a requester;
[0008] Determining, according to the data service request, request information corresponding to the data service request, the request information including at least a request priority;
[0009] Uploading the request information to the blockchain so that the consensus nodes in the blockchain perform consensus review on the request information according to the consensus speed corresponding to the request priority;
[0010] Receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, perform differential privacy processing on the private data corresponding to the data service request.
[0011] In one aspect, the present application provides a blockchain-based data processing method, applied to a terminal device, the method comprising:
[0012] A data service request is sent to a server, so that the server determines request information corresponding to the data service request according to the data service request, and uploads the request information to the blockchain, wherein the request information at least includes a request priority; the request information is used for the consensus node in the blockchain to perform a consensus review on the request information according to a consensus speed corresponding to the request priority; the server is also used to receive a review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request.
[0013] In one aspect, the present application provides a blockchain-based data processing system, the data processing system comprising: a requester, a blockchain, a data storage module, an identity authentication module, and a provider;
[0014] The requester is used to send a data service request to the server in the blockchain;
[0015] The blockchain includes the server and consensus nodes;
[0016] The server is used to determine, according to the data service request, request information corresponding to the data service request, wherein the request information at least includes a request priority; and upload the request information to the blockchain;
[0017] The consensus node is used to perform consensus review on the request information according to the consensus speed corresponding to the request priority;
[0018] The server is further configured to receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, perform differential privacy processing on the private data corresponding to the data service request;
[0019] The data storage module is used to store the private data of the requesting party and return a first hash address corresponding to the private data to the server;
[0020] The identity authentication module is used to receive the identity of the requester and the identity of the server sent by the server, and authenticate the identity of the requester and the identity of the server;
[0021] The provider is used to provide the private data of the requester.
[0022] In one aspect, the present application provides a blockchain-based data processing device, applied to a server, the device comprising:
[0023] A first receiving module, used for receiving a data service request sent by a requester;
[0024] A first determining module, configured to determine request information corresponding to the data service request according to the data service request, wherein the request information at least includes a request priority;
[0025] A first uploading module, used to upload the request information to the blockchain, so that the consensus node in the blockchain performs consensus review on the request information according to the consensus speed corresponding to the request priority;
[0026] The data processing module is used to receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, differential privacy processing is performed on the private data corresponding to the data service request.
[0027] In one aspect, the present application provides a blockchain-based data processing device, characterized in that it is applied to a terminal device, and the device includes:
[0028] The first sending module is used to send a data service request to the server, so that the server determines the request information corresponding to the data service request according to the data service request, and uploads the request information to the blockchain, wherein the request information at least includes the request priority; the request information is used for the consensus node in the blockchain to perform consensus review on the request information according to the consensus speed corresponding to the request priority; the server is also used to receive the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request.
[0029] In another aspect, the present application provides a server, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the blockchain-based data processing method as described in one aspect above.
[0030] In another aspect, the present application provides a terminal device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the blockchain-based data processing method as described in one aspect above.
[0031] In another aspect, the present application provides a computer-readable storage medium, wherein at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the blockchain-based data processing method as described in one aspect.
[0032] In another aspect, the present application provides a computer-readable storage medium, wherein at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the blockchain-based data processing method as described in one aspect.
[0033] On the other hand, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer executes the blockchain-based data processing method as described in one aspect above.
[0034] On the other hand, an embodiment of the present application provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product is run on a computer, the computer executes the blockchain-based data processing method as described in one aspect above.
[0035] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0036] The present application receives a data service request sent by a requester; determines request information corresponding to the data service request based on the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain so that the consensus nodes in the blockchain perform consensus review on the request information based on a consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, that is, after the server connected to the blockchain in the present application uploads the determined request information to the chain, the consensus nodes in the blockchain perform consensus review on the request information based on a consensus speed corresponding to the request priority in the request information, so that consensus review can be performed in the blockchain based on the request priority, thereby improving the efficiency of data processing in the blockchain, and performing differential privacy processing on the privacy data after the review is passed, thereby improving the security of data transmission in the blockchain. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 is a schematic diagram of an interface of a terminal device involved in an exemplary embodiment of the present application;
[0039] Figure 2 This is a method flow chart of a data processing method based on blockchain provided by an exemplary embodiment of the present application;
[0040] Figure 3 This is a method flow chart of a data processing method based on blockchain provided by an exemplary embodiment of the present application;
[0041] Figure 4 It is a method flow chart of a blockchain-based data processing method provided by an exemplary embodiment of the present application.
[0042] Figure 5 It is a data processing system based on blockchain involved in an exemplary embodiment of the present application;
[0043] Figure 6 An exemplary embodiment of the present application relates to Figure 5 A method flow chart of a data processing method based on blockchain;
[0044] Figure 7 is a structural block diagram of a data processing device based on blockchain provided by an exemplary embodiment of the present application;
[0045] Figure 8 is a structural block diagram of a data processing device based on blockchain provided by an exemplary embodiment of the present application;
[0046] Fig. 9 is a schematic diagram of the structure of a terminal device provided by an exemplary embodiment of the present application;
[0047] Fig.10 It is a schematic diagram of the structure of a server provided in one embodiment of the present application. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0049] The solution provided by this application can be used in scenarios where data is transmitted based on blockchain in daily life. To facilitate understanding, some terms and application architectures involved in the embodiments of this application are briefly introduced below.
[0050] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm.
[0051] With the rapid development of science and technology, people use terminal devices for communication in more and more scenarios, such as communication between terminal devices, communication between terminal devices and servers, and communication between servers in daily life. In this era of the Internet of Everything, the scale of device connections and data will reach an unprecedented level. In this context, the primary task between terminal devices and platforms (including the cloud and the server) is to establish trusted connections. In the process of trusted connection and interaction, how to protect the privacy data of terminal devices becomes a key issue.
[0052] Please refer to Figure 1 , which shows a schematic diagram of the structure of a vehicle networking blockchain involved in an exemplary embodiment of the present application. Figure 1 As shown, it includes various terminal devices 101, various servers 102, and an in-vehicle network 103.
[0053] Among them, the terminal device 101 can be a terminal device with a communication function, for example, the terminal device 101 can be a user terminal device, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, it can be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device. For example, a station (STA), a subscriber unit, a subscriber station, a mobile station, a mobile station, a mobile station, a remote station, an access point, a remote terminal, an access terminal, a user terminal, a user agent, a user device, or a user terminal (UE). Specifically, for example, the terminal device 101 can be a mobile terminal such as a smart phone, a tablet computer, an e-book reader, or a smart wearable device such as smart glasses, a smart watch or a smart bracelet.
[0054] Alternatively, the terminal device 101 may be a vehicle-mounted device, for example, a driving computer with a wireless communication function, or a wireless communication device externally connected to the driving computer.
[0055] Alternatively, the terminal device 101 may also be a roadside device, for example, a street lamp, a traffic light or other roadside device with wireless communication function.
[0056] Optionally, the server 102 may be a single server, or may be composed of several servers, or may be a virtualization platform, or may be a cloud computing service center.
[0057] The terminal device 101 is connected to the server 102 via a communication network. Optionally, the communication network may be a wired network or a wireless network.
[0058] Optionally, the communication network is connected to a wired network or a wireless network, and optionally, the wireless network or the wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to any combination of a local area network (LAN), a metropolitan area network (MAN), a wide area network (MAN), a mobile, wired or wireless network, a dedicated network or a virtual private network. In some embodiments, the data exchanged through the network is represented by technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.
[0059] Optionally, the vehicle network 103 may be a network composed of multiple other vehicle terminal devices and servers, the terminal device 101 may be connected to the vehicle network, and the server 102 may also be connected to the vehicle network. The terminal device 101 may be used as a data requester to obtain data from other vehicle terminals in the vehicle network 103 by initiating a data acquisition request to the server 102. In this process, the privacy data of the users involved is usually protected by setting a pseudonym identity. For example, for the location data of user A, the server will set a pseudonym identity for the location data of user A. When other users need to obtain the location data of user A, they can send a data acquisition request to the server, and the server uses its pseudonym identity to forward the data to other users, thereby completing the data transmission.
[0060] In this process, the data transmitted between the server and the requester are all real data, and only the identity information of the data is replaced. When this data is stolen, the real data will be leaked, and there is a problem of low security protection in the data transmission process itself.
[0061] In order to solve the problems existing in the above-mentioned related technologies and improve the security of data transmission in the blockchain, the present application provides a data processing method based on the blockchain, which can review the determined request information through the consensus node in the blockchain, and after the review, perform differential privacy processing on the data to prevent data leakage.
[0062] Please refer to Figure 2 , which shows a method flow chart of a data processing method based on blockchain provided by an exemplary embodiment of the present application. The data processing method based on blockchain can be used as follows: Figure 1 As shown in the server. Figure 2 As shown, the blockchain-based data processing method may include the following steps:
[0063] Step 201: Receive a data service request sent by a requester.
[0064] The requester may be the party that needs to provide data services. Figure 1 When a terminal device needs to obtain data, it can send a data service request to the server to obtain the data it needs. For example, a data service request can be a request from a terminal device to store its own data, or a data service request can be a request from a terminal device to obtain data from other terminal devices or other servers in the blockchain.
[0065] Step 202: Determine request information corresponding to the data service request according to the data service request, where the request information at least includes a request priority.
[0066] Optionally, in the present application, the server may determine the request information corresponding to the data service request based on the received data service request, and the request information includes at least the request priority. The request priority is used to characterize the delay tolerance for processing the data service request. The higher the request priority, the lower the delay tolerance. For example, the delay tolerance of the requester for processing the data service request is 20ms, and the request priority can be level 2. The delay tolerance of the requester for processing the data service request is 10ms, and the request priority can be level 1.
[0067] Optionally, the request information may be used to indicate data information that needs to be served by the server. For example, if the requesting party is a terminal device and the terminal device needs to transmit the captured image information, then the request information may instruct the server to serve the image information. Alternatively, if the terminal device needs to transmit its own location information, then the request information may instruct the server to serve the location information of the terminal device itself.
[0068] Step 203, upload the request information to the blockchain, so that the consensus nodes in the blockchain perform consensus review on the request information according to the consensus speed corresponding to the request priority.
[0069] Optionally, the server can be regarded as a transmission node in the blockchain, through which the determined request information can be uploaded to the blockchain. The blockchain includes a consensus node (another server or terminal device), which is used to use a consensus algorithm based on request priority to conduct consensus review on the request information transmitted by other transmission nodes. Among them, the consensus algorithm can be pre-written by the developer and designed in the consensus node.
[0070] Among them, the consensus node can obtain the consensus speed according to the request priority, and perform a consensus review on the request information according to the consensus speed. For example, a corresponding relationship is set between the request priority and the consensus speed, and the consensus node can obtain the corresponding consensus speed according to the request priority, thereby performing a consensus review on the request information. Optionally, in the present application, the consensus review of the request information may be a review of the content format of the request information. For example, in the present application, the content of the request information at least includes the request priority. If the request information includes the request priority, the consensus node will perform a consensus review on the request information and return a review result indicating that the consensus review has passed to the server. If the request information does not include the request priority, a review result indicating that the consensus review has not passed will be returned to the server.
[0071] Step 204: Receive the audit result returned by the blockchain. If the audit result indicates that the consensus audit is passed, perform differential privacy processing on the private data corresponding to the data service request.
[0072] The server receives the audit result returned by the consensus node in the blockchain. If the audit result indicates that the consensus audit is passed, the differential privacy processing algorithm is called to perform differential privacy processing on the private data corresponding to the data service request. The private data can be the personal data of the requester. For example, the private data can be the picture taken by the requester, the location of the requester, the user information registered by the requester, etc.
[0073] To summarize, the present application receives a data service request sent by a requesting party; determines the request information corresponding to the data service request according to the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain, so that the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, that is, after the server connected to the blockchain in the present application uploads the determined request information to the chain, the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority in the request information, so that the blockchain can perform a consensus review based on the request priority, thereby improving the efficiency of data processing in the blockchain, and performing differential privacy processing on the privacy data after the review is passed, thereby improving the security of data transmission in the blockchain.
[0074] In one possible implementation, the request information also includes a data address and a privacy protection level. The data address is the storage address of the private data, and the privacy protection level is used to indicate the level of protection required by the requesting party for the private data. The data address is transmitted in such a way as to reduce the storage pressure in the blockchain, thereby improving the efficiency of data processing in the blockchain and the security of data transmission in the blockchain.
[0075] Please refer to Figure 3 , which shows a method flow chart of a data processing method based on blockchain provided by an exemplary embodiment of the present application. The data processing method based on blockchain can be used as follows: Figure 1 As shown in the server. Figure 3 As shown, the blockchain-based data processing method may include the following steps:
[0076] Step 301: Receive a data service request sent by a requester.
[0077] The requester may be the party that needs to provide data services. Figure 1 When a terminal device needs to obtain data, it can send a data service request to the server to obtain the data it needs. For example, a data service request can be a request from a terminal device to store its own data, or a data service request can be a request from a terminal device to obtain data from other terminal devices or other servers in the blockchain.
[0078] For example, for the Internet of Vehicles scenario, the above data service request can be used to request location services in the Internet of Vehicles. The data service request can be a request for the terminal device to obtain the location data of other terminal devices in the blockchain, or the data service request can also be a request for the terminal device to transmit its own location data. For wireless communication scenarios, data service requests can be used to request data transmission services in wireless communication scenarios. The data service request can be a request for the terminal device to obtain the network data of other terminal devices in the blockchain, or the data service request can also be a request for the terminal device to transmit its own network data. For banking network scenarios, data service requests can be used to request data transmission services in banking network scenarios. The data service request can be a request for the terminal device to obtain the bank registration data of other users in the blockchain, or the data service request can also be a request for the terminal device to transmit its own bank registration data.
[0079] Among them, the requester needs to register in the blockchain and send a data service request to the server according to its own identity. That is, the server in this application can also receive a registration request sent by the requester, and the registration request contains the identity information of the requester; according to the identity information of the requester, an identity is assigned to the requester. Optionally, the identity information can be any one or more of the ID number, mobile phone number, device number, media access control (MAC) address of the device, etc. of the user corresponding to the requester. The server can assign an identity to the requester based on the identity information, such as an identity number.
[0080] Optionally, the server can also verify the requester who initiated the data service request. If the requester has been registered, step 302 is executed. Otherwise, a registration interface is displayed in the application interface of the requester, and the requester is provided with the registration interface. For example, the server can obtain the identity identifier corresponding to the identity information according to the identity information carried in the data service request sent by the requester. If the server has the identity identifier corresponding to the identity information, it means that the requester has been registered. If the server does not have the identity identifier corresponding to the identity information, it means that the requester has not been registered. The server can provide the requester with a registration interface and provide the requester with the registration interface. Correspondingly, the requester can also perform a deregistration process, that is, the requester sends a deregistration request to the server, and the server can delete the identity identifier previously assigned to the requester.
[0081] Step 302: Send the identity identifier of the requester and the identity identifier of the server in the data service request to an identity authentication module, and the identity authentication module is used to authenticate the identity of the requester and the identity of the server.
[0082] Optionally, in this application, the server can send the identity of the requester in the data service request and its own identity to the identity authentication module, and the identity authentication module authenticates the identity of the requester and the identity of the server. For example, a third-party authentication agency is set outside the blockchain, and the third-party authentication agency can authenticate the identity of the requester and the identity of the server.
[0083] For example, the requester is the user's terminal device, and the server is a server of an application installed in the terminal device. After the user initiates a data service request to the server through the application in the terminal device, the server sends the identity of the terminal device (represented by A) and the identity of the server (represented by S) to a third-party certification agency (represented by CA). A and S establish a symmetric key PW through CA. A and PW S , where PW A It is A's symmetric key and a one-way hash function of A's password, stored in CA and A. PW S It is A's symmetric key and also a one-way hash function of A's password, stored in CA and S.
[0084] Optionally, during CA's verification process, A and CA also need to exchange data, for example, A sends a message (A||S) to CA, thereby requesting CA to communicate with S. After CA receives the message (A||S) sent by A, CA randomly selects a multiplication cyclic group G with a prime order q, where g is the generator of G, and CA continues to select random numbers m and n, where m and n both belong to the set Z * q , use m to calculate the first encrypted information M, M = E PWA (g m ), M can be regarded as the CA key PW A For g m After the encryption, CA sends the calculated first encrypted information M to A. Similarly, CA uses n to calculate the second encrypted information N, N = E PWS (g n ), N can be regarded as the CA key PW S For g n The encrypted information is sent to S, and the second encrypted information N is sent to S. Wherein, E is used to indicate the encryption process.
[0085] After A receives the first encrypted information M, it * q Select a random number a and calculate g m , where q can be sent from CA to A, and A calculates the results according to the following formula: g m =D PWA(M), X A =E PWA (g a ), τ AC =H(A||S||PW A ||C), where X A PW A For g a The encrypted information, τ AC is the authentication identifier submitted by A to CA. A will (A||X A ||τ AC ) is sent to CA. Similarly, after receiving the second encrypted information N, the server can also send the second encrypted information N to CA in the set Z. * q Select a random number b and calculate g b , where q can be sent by CA to S, and each result is calculated in S according to the following formula: g n =D PWS (N), X S =E PWS (g b ), τ SC =H(S||A||PW S ||C), and (S||X S ||τ SC ) is sent to CA. Among them, X S PW S For g b The encrypted information, τ SC It is the authentication identifier submitted by S to CA. D is used to indicate the decryption process.
[0086] CA receives (A||X A ||τ AC ) and received (S||X S ||τ SC ) and then use the key PW A Decrypt X A , key PW S Decrypt X S By calculating g a =D PWA (X A ), g b =D PWS (X S ), using g a Verify A's identity and use g b Verify S's identity. If g a =g m It means A passes the authentication. If g b =gn It means S has passed the authentication. a Not equal to g m This means A has not passed the authentication. If g b Not equal to g n This indicates that S has not passed authentication.
[0087] Optionally, after passing the authentication, the CA also needs to obtain * q Select a random number c and calculate the third encrypted information X CS =E PWA (g ac ), the fourth encrypted information X CA =E PWS (g bc ), and the identity authentication result τ CA =H(A||S||PW S ||C), τ CS =H(S||A||PW A ||C), where τ CA The CA returns the identity authentication result of S to A, τ CS The CA returns the identity authentication result of A to S. The CA continues to calculate the shared session key sk = H(A||S||C||g abc ), calculate the session key authenticator C provided to A S = H(sk||S), and the session key authenticator C provided to S A =H(sk||A). CA will (C||X CA ||τ CA ||C S ) is sent to A, and (C||X CS ||τ CS ||C A ) is sent to S.
[0088] A receives the (C||X CA ||τ CA ||C S ) and then use the key PW A Decrypt X CA , calculate g bc That is, g bc =D PWA (X CA ), use g bc Verify the CA's identity. If the verification is successful, CA To verify τ AC Is it consistent with τ in A? AC If the values are consistent, then SThe shared session key sk is calculated and the authentication code C is calculated A =H(sk||A), C A S is sent to S. Similarly, S receives the (C||X CS ||τ CS ||C A ) and then use the key PW S Decrypt X CS , calculate g ac That is, g ac =D PWS (X CS ), use g ac Verify the CA's identity. If the verification is successful, CS To verify τ SC Is it consistent with τ in S SC If the values are consistent, then S The shared session key sk is calculated and the authentication code C is calculated S =H(sk||S), C S It is sent to A, thereby completing the shared session key, that is, completing the identity authentication, and the server and the requester can communicate normally.
[0089] Optionally, the authentication process can be initiated by the requester to a third-party authentication agency when the requester sends the data service request, or it can be initiated by the server after the requester sends the data service request. This application does not limit this.
[0090] Step 303: When the identity of the requester and the identity of the server are both authenticated, the request information corresponding to the data service request is determined according to the data service request.
[0091] When the identities of the requester and the server are both authenticated, symmetric encryption can be used for transmission to ensure the security of data service request transmission.
[0092] Optionally, in the present application, the server may determine the request information corresponding to the data service request based on the received data service request, and the request information includes at least the request priority. The request priority is used to characterize the delay tolerance for processing the data service request. The higher the request priority, the lower the delay tolerance. For example, the delay tolerance of the requester for processing the data service request is 20ms, and the request priority can be level 2. The delay tolerance of the requester for processing the data service request is 10ms, and the request priority can be level 1.
[0093] Optionally, the request information may be used to indicate data information that needs to be served by the server. For example, if the requesting party is a terminal device and the terminal device needs to transmit the captured image information, then the request information may instruct the server to serve the image information. Alternatively, if the terminal device needs to transmit its own location information, then the request information may instruct the server to serve the location information of the terminal device itself.
[0094] Optionally, the request information also includes a data address and a privacy protection level, where the data address is the storage address of the private data, and the privacy protection level is used to indicate the level of protection required by the requesting party for the private data. In one possible implementation, when the requesting party initiates a data service request, the server can store the private data corresponding to the data service request in the storage system, receive the first hash address returned by the storage module, and use the first hash address as the data address in the request information.
[0095] Optionally, the private data may be the personal data of the requester. For example, in the IoV scenario, the private data may be the location data, driving data, etc. of the requester. Optionally, the storage system may be independent of the blockchain. For example, the storage system may be an InterPlanetary File System (IPFS). After the above-mentioned identity authentication is passed, the server encrypts the private data of the requester in the IoV and uploads it to IPFS, and receives the first hash address returned by IPFS. For example, the location data of the requester in the IoV is recorded as r A =(x A ,y A ), (x A ,y A ) is the location coordinate of the requesting party, and the requesting party's identity Q and positioning data r A Encrypted as A lcoa That is, r A =E(Q,A lcoa ). The server will send the encrypted data A lcoa Send it to the IPFS system. After IPFS storage is successful, the first hash address A is returned to the server addr =H(A lcoa ).
[0096] Optionally, the server may also obtain the privacy protection level selected by the requester based on the data service request. In one possible implementation, the data service request is parsed to obtain the privacy protection level of the requester contained in the data service request. That is, the data service request sent by the requester carries the privacy protection level and sends it to the server. For example, the terminal device as the requester may provide a privacy protection level selection interface, and the user may select the corresponding privacy protection level in the selection interface. When sending the data service request, the selected privacy protection level is carried in the data service request and sent to the server.
[0097] Alternatively, the server may also obtain the privacy protection level according to the application scenario to which the data service request belongs. For example, different application scenarios may correspond to different privacy protection levels, and the server obtains the corresponding privacy protection level by obtaining the application scenario to which the data service request belongs. For example, the scenario to which the data service request belongs is an autonomous driving scenario, and the privacy protection level corresponding to the scenario is level 3. Please refer to Table 1, which shows the correspondence between an application scenario and a privacy protection level involved in an exemplary embodiment of the present application.
[0098] Application Scenario Privacy protection level Scene 1 Level 1 Scene 2 Level 2 Scene 3 Level 3 …… ……
[0099] Table 1
[0100] The server may also determine the application scenario to which the data service request belongs based on the data service request, and obtain the privacy protection level corresponding to the application scenario by querying Table 1. If the application scenario is scenario one, the privacy protection level obtained by the server is level one.
[0101] Optionally, after the server determines the application scenario to which the data service request belongs based on the data service request, it can also obtain the request priority based on the application scenario to which the data service request belongs; and determine the request information corresponding to the data service request based on the request priority. Among them, the request priority is used to characterize the delay tolerance for processing the data service request. Optionally, the developer can sort the priorities according to the delay tolerance of the application scenario, and set delay tolerance of different priorities, so that the server in the blockchain can find the optimal allocation strategy. Optionally, in this application, the terminal device as the requester can also identify the current application scenario and carry it in the data service request, so that the server can obtain the application scenario to which the data service request belongs.
[0102] That is, the server can also obtain the corresponding request priority by obtaining the application scenario to which the data service request belongs. For example, the scenario to which the data service request belongs is an autonomous driving scenario, and the request priority corresponding to the scenario is level 1. Please refer to Table 2, which shows the correspondence between an application scenario and a request priority involved in an exemplary embodiment of this application.
[0103] Application Scenario Request Priority Scene 1 Priority 1 Scene 2 Priority 2 Scene 3 Priority Three …… ……
[0104] Table 2
[0105] Among them, after the server determines the application scenario to which the data service request belongs according to the data service request, it obtains the request priority corresponding to the application scenario by querying Table 2. If the application scenario is scenario one, the request priority obtained by the server is priority one.
[0106] For example, priority 1 is an emergency request with a delay tolerance of 0 to 20ms, a small amount of data, and the highest real-time requirements. Therefore, this type of request has the highest priority, such as real-time traffic alerts, autonomous driving, remote driving and other application scenarios. Priority 2 is a real-time request with a delay tolerance of 20 to 200ms, such as high-definition real-time maps and map navigation and other application scenarios. Priority 3 is a general request with a delay tolerance of >200ms and a wide range of delay tolerance, such as initiating location sharing and other application scenarios.
[0107] Optionally, the server may determine the request information based on the first hash address, the request priority, and the privacy protection level. For example, the attribute of the request information is a block attribute, and the data address, request priority, and privacy protection level are packaged to obtain the request information. For example, the above data address is A addr , the request priority is U A , the privacy protection level is K A , the request information finally obtained by the server is A req ={A addr |U A |K A}.
[0108] Step 304, upload the request information to the blockchain, so that the consensus nodes in the blockchain perform consensus review on the request information according to the consensus speed corresponding to the request priority.
[0109] Optionally, the server can be regarded as a transmission node in the blockchain, through which the determined request information can be uploaded to the blockchain. The blockchain includes a consensus node (another server or terminal device), which is used to use a consensus algorithm based on request priority to conduct consensus review on the request information transmitted by other transmission nodes. Among them, the consensus algorithm can be pre-written by the developer and designed in the consensus node.
[0110] Among them, the consensus node can obtain the consensus speed according to the request priority, and perform consensus review on the request information according to the consensus speed, so as to ensure that the data service request completes the consensus review within the delay tolerance range. For example, a corresponding relationship is set between the request priority and the consensus speed. The higher the request priority, the faster the consensus speed. The consensus node can obtain the corresponding consensus speed according to the request priority, so as to perform consensus review on the request information. Optionally, in this application, the consensus review of the request information can be a review of the content format of the request information. For example, in this application, the content of the request information includes the data address, request priority and privacy protection level. If the request information includes the data address, request priority and privacy protection level, the consensus node will return the review result indicating that the consensus review has passed to the server after the consensus review of the request information. If the request information does not contain any of the parameters of the data address, request priority and privacy protection level, the review result indicating that the consensus review has not passed will be returned to the server.
[0111] Step 305: Receive the audit result returned by the blockchain. If the audit result indicates that the consensus audit is passed, differential privacy processing is performed on the private data corresponding to the data service request.
[0112] Optionally, the server can receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit has passed, perform differential privacy processing on the private data corresponding to the data service request. If the audit result indicates that the consensus audit has not passed, the data service request is discarded.
[0113] Optionally, the server can perform differential privacy processing on the private data corresponding to the data service request in the following manner: The server obtains the privacy budget of the private data according to the privacy protection level; calculates the sensitivity corresponding to the data service request according to the private data; adds noise to the private data according to the privacy budget and the sensitivity, and re-uploads the noisy private data to the blockchain.
[0114] Optionally, the server can call a differential privacy processing smart contract to perform differential privacy processing on the private data. For example, the server can call a differential privacy processing smart contract to check the privacy protection level K in the above request information. A , privacy protection level K A Corresponding to the privacy budget range that can be selected for this request, the differential privacy processing smart contract is called to randomly select ε in this privacy budget range. A As in accordance with K A privacy budget.
[0115] Optionally, the server can also call a differential privacy processing smart contract to calculate the sensitivity of this data service request. The differential privacy processing smart contract can calculate the sensitivity according to a formula.
[0116] l=max DD′ ‖DD′‖1;
[0117] Where l represents sensitivity, D is the private data, D' is the adjacent data of the private data, and ‖·‖1 represents the first-order norm distance.
[0118] Optionally, the server can use the Laplace mechanism to add noise to the private data. For example, for the above positioning data r A For example, the server can The noise is added in this way to obtain the noised data r A '.
[0119] Among them, but is the Laplace distribution, and its probability density function is The expected value of x is 0.
[0120] Optionally, before obtaining the privacy budget of the private data according to the privacy protection level, the server may also query whether the historical information set of the blockchain contains the same information as the requested information; when the historical information set contains the same information as the requested information, obtain the historical privacy budget corresponding to the information that is the same as the requested information, and obtain the historical privacy budget as the privacy budget of the private data; when the historical information set does not contain the same information as the requested information, execute the step of obtaining the privacy budget of the private data according to the privacy protection level. That is, the server first searches the historical information set of the blockchain to see whether there has been the same information, and whether the privacy protection level corresponding to the information is the same as the privacy protection level of the requested information determined this time (both are K A ), if it exists, then find the privacy budget corresponding to the previous information and record it as ε A , thereby reusing the previous privacy budget and reducing the privacy cost.
[0121] Optionally, after the above steps are completed, the server can also combine and encrypt the requester's identity, privacy data, and privacy data after differential privacy processing to obtain the encrypted target data; store the target data in a storage module, and receive the second hash address returned by the storage module; obtain the second hash address, privacy protection level, and privacy budget of the privacy data as historical request information, and upload it to the historical information collection of the blockchain.
[0122] For example, after the server calls the differential privacy processing smart contract, it obtains the location data r of the requester before adding noise.A And the noisy positioning data r A ', and the requester's identity, the positioning data before noise addition r A And the noisy positioning data r A 'Encrypted to A' loac .in,
[0123] A′ loac =E(A,r A ,r′ A )
[0124] Optionally, the server obtains A′ loac After that, A′ can be loac After uploading to IPFS, IPFS can return the second hash address after successful storage. The second hash address is A′ addr express,
[0125] A′ addr =H(A′ loac )
[0126] Optionally, the server may obtain the historical request information A′ according to the second hash address, the privacy protection level, and the privacy budget of the privacy data. req ={A′ addr |K A |ε A}Add to link for later reference.
[0127] To summarize, the present application receives a data service request sent by a requesting party; determines the request information corresponding to the data service request according to the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain, so that the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, that is, after the server connected to the blockchain in the present application uploads the determined request information to the chain, the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority in the request information, so that the blockchain can perform a consensus review based on the request priority, thereby improving the efficiency of data processing in the blockchain, and performing differential privacy processing on the privacy data after the review is passed, thereby improving the security of data transmission in the blockchain.
[0128] In addition, this application encrypts the requester's private data and stores it in IPFS. The blockchain only stores the hash address of its private data, which effectively reduces the storage pressure of the blockchain, improves storage efficiency, and ensures the efficient and stable operation of the blockchain. It is suitable for scenarios with high real-time requirements for the Internet of Vehicles. In addition, this application is based on the key authentication protocol of a third-party certification agency. By introducing a third-party certification agency to assist the requester and the server in generating a shared session key, a safe and effective authentication process for the system is realized, ensuring the security of data transmission.
[0129] Taking the requesting party of the execution subject as a terminal device as an example, this application provides a data processing method based on blockchain, please refer to Figure 4 , which shows a method flow chart of a data processing method based on blockchain provided by an exemplary embodiment of the present application. The data processing method based on blockchain can be used as follows: Figure 1 In the terminal device shown. The data processing method based on blockchain may include the following steps:
[0130] Step 401, sending a data service request to the server, so that the server determines the request information corresponding to the data service request according to the data service request, and uploads the request information to the blockchain, where the request information at least includes the request priority; the request information is used by the consensus nodes in the blockchain to perform consensus review on the request information according to the consensus speed corresponding to the request priority; the server is also used to receive the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request.
[0131] The terminal device, as a requester, sends a data service request to the server, so that the server executes the subsequent steps. The execution details of the server can refer to the above Figure 2 or Figure 3 The description in the embodiments will not be repeated here.
[0132] To summarize, the present application receives a data service request sent by a requesting party; determines the request information corresponding to the data service request according to the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain, so that the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, that is, after the server connected to the blockchain in the present application uploads the determined request information to the chain, the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority in the request information, so that the blockchain can perform a consensus review based on the request priority, thereby improving the efficiency of data processing in the blockchain, and performing differential privacy processing on the privacy data after the review is passed, thereby improving the security of data transmission in the blockchain.
[0133] Please refer to Figure 5 , which shows a data processing system based on blockchain involved in an exemplary embodiment of the present application, such as Figure 5 As shown, the data processing system includes: a requester 501, a blockchain 502, a data storage module 503, an identity authentication module 504 and a provider 505.
[0134] The requester 501 is used to send a data service request to the server in the blockchain 502. Optionally, the method for the requester to send the data service request can refer to the description in the above step 301, which will not be repeated here.
[0135] The blockchain 502 in the present application includes a server and a consensus node; the server is used to determine the request information corresponding to the data service request according to the data service request, and the request information at least includes the request priority; the request information is uploaded to the blockchain 502; the consensus node is used to perform a consensus review based on the consensus speed request information corresponding to the request priority; the server is also used to receive the review result returned by the blockchain 502, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request.
[0136] Optionally, the implementation details of the server and consensus node in the blockchain can also refer to the description in the above steps 302 to 305, which will not be repeated here.
[0137] The data storage module 503 is used to store the private data of the requester 501 and return the first hash address corresponding to the private data to the server. Optionally, the implementation details of the data storage module can refer to the above-mentioned IPFS method, which will not be repeated here.
[0138] The identity authentication module 504 is used to receive the identity of the requester 501 and the server sent by the server, and authenticate the identity of the requester 501 and the server. Optionally, the implementation details of the identity authentication module can refer to the third-party certification authority CA method, which will not be repeated here.
[0139] The provider 505 is used to provide the private data of the requester 501. The provider 505 can be a device in the network that can provide the private data to the requester. For example, the provider 505 can be a vehicle network composed of various vehicle-mounted devices.
[0140] To summarize, the present application receives a data service request sent by a requesting party; determines the request information corresponding to the data service request according to the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain, so that the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request. That is, the blockchain-based data processing system provided by the present application can upload the determined request information to the chain through the server in the blockchain, and the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority in the request information, so that the blockchain can perform a consensus review based on the request priority, thereby improving the efficiency of data processing in the blockchain, performing differential privacy processing on the privacy data after the review is passed, and improving the security of data transmission in the blockchain.
[0141] Please refer to Figure 6 , which shows that an exemplary embodiment of the present application involves Figure 5 A method flow chart of a data processing method based on blockchain, which can be used for Figure 5 In the server that acts as a transmission node on the blockchain. Figure 6 As shown, the blockchain-based data processing method may include the following steps:
[0142] Step 601: The server detects whether the requester is registered.
[0143] If not registered, execute step 602; if already registered, execute step 603.
[0144] Step 602, prompting the requesting party to register.
[0145] Optionally, the registration method of the requesting party may refer to the description in the above step 301, which will not be repeated here.
[0146] Step 603: The requesting party sends a location service request to the server.
[0147] Among them, the location service request is equivalent to the above Figure 3 A data service request in an embodiment.
[0148] Step 604: The third-party authentication agency performs identity authentication on the requester and the server.
[0149] If the requester and the server pass the identity authentication, step 605 is executed. If the requester and the server fail the identity authentication, the process ends. Optionally, the authentication method performed by the third-party authentication agency can refer to the description in step 302 above, which will not be repeated here.
[0150] Step 605: The server encrypts the private data and stores it in IPFS.
[0151] Step 606: The server receives the hash address of the private data in IPFS.
[0152] Step 607: The server obtains the request priority of the requester.
[0153] Step 608: The server obtains the privacy protection level of the requester.
[0154] Step 609: The server obtains the request information.
[0155] Step 610: The consensus node performs a consensus review on the request information.
[0156] If the review is passed, execute step 612; if the review is not passed, execute step 611.
[0157] Step 611: The server discards the request information.
[0158] Step 612: The server uploads the request information to the chain.
[0159] Step 613: The server calls the differential privacy processing smart contract to process the private data.
[0160] Optionally, the implementation of the above steps 606 to 613 may refer to the description of the above steps 303 to 305, which will not be repeated here.
[0161] To summarize, the present application receives a data service request sent by a requesting party; determines the request information corresponding to the data service request according to the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain, so that the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, that is, after the server connected to the blockchain in the present application uploads the determined request information to the chain, the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority in the request information, so that the blockchain can perform a consensus review based on the request priority, thereby improving the efficiency of data processing in the blockchain, and performing differential privacy processing on the privacy data after the review is passed, thereby improving the security of data transmission in the blockchain.
[0162] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0163] Please refer to Figure 7 , which shows a block diagram of a data processing device based on blockchain provided by an exemplary embodiment of the present application. The data processing device based on blockchain 700 can be used on a server to execute Figure 2 , Figure 3 or Figure 6 All or part of the steps performed by the server in the method provided in the illustrated embodiment. The blockchain-based data processing device 700 includes:
[0164] The first receiving module 701 is used to receive a data service request sent by a requester;
[0165] A first determining module 702, configured to determine request information corresponding to the data service request according to the data service request, wherein the request information at least includes a request priority;
[0166] A first uploading module 703 is used to upload the request information to the blockchain, so that the consensus node in the blockchain performs consensus review on the request information according to the consensus speed corresponding to the request priority;
[0167] The data processing module 704 is used to receive the audit result returned by the blockchain. If the audit result indicates that the consensus audit is passed, differential privacy processing is performed on the private data corresponding to the data service request.
[0168] To summarize, the present application receives a data service request sent by a requesting party; determines the request information corresponding to the data service request according to the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain, so that the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, that is, after the server connected to the blockchain in the present application uploads the determined request information to the chain, the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority in the request information, so that the blockchain can perform a consensus review based on the request priority, thereby improving the efficiency of data processing in the blockchain, and performing differential privacy processing on the privacy data after the review is passed, thereby improving the security of data transmission in the blockchain.
[0169] Optionally, the first determining module 702 includes: a first determining unit, a first acquiring unit, and a second determining unit;
[0170] The first determining unit is used to determine, according to the data service request, an application scenario to which the data service request belongs;
[0171] The first acquisition unit is used to acquire the request priority according to the application scenario to which the data service request belongs;
[0172] The second determining unit is used to determine the request information corresponding to the data service request according to the request priority.
[0173] Optionally, the request information further includes a data address and a privacy protection level, wherein the data address is a storage address of the private data, and the privacy protection level is used to indicate a protection level required by the requesting party for the private data;
[0174] The device also includes:
[0175] A second receiving module, configured to store the privacy data corresponding to the data service request in a storage system before determining the request information corresponding to the data service request according to the request priority, and receive a first hash address returned by the storage module;
[0176] A first acquisition module, configured to acquire a privacy protection level selected by the requesting party according to the data service request;
[0177] The second determining unit is used to determine the request information according to the first hash address, the request priority and the privacy protection level.
[0178] Optionally, the first acquisition module includes: a first acquisition unit or a second acquisition unit;
[0179] The first acquisition unit is used to parse the data service request to obtain the privacy protection level of the requester contained in the data service request;
[0180] The second acquisition unit is used to acquire the privacy protection level according to the application scenario to which the data service request belongs.
[0181] Optionally, the data processing module 704 includes: a first receiving unit, a first calculating unit and a first uploading unit;
[0182] The first receiving unit is configured to receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, obtain the privacy budget of the private data according to the privacy protection level;
[0183] The first calculation unit is used to calculate the sensitivity corresponding to the data service request according to the privacy data;
[0184] The first uploading unit is used to add noise to the private data according to the privacy budget and the sensitivity, and re-upload the noisy private data to the blockchain.
[0185] Optionally, the device further comprises:
[0186] A first query module is used to query whether the historical information set of the blockchain contains information identical to the requested information before obtaining the privacy budget of the private data according to the privacy protection level;
[0187] The calculating the privacy budget of the private data according to the privacy protection level includes:
[0188] When the historical information set includes information identical to the request information, obtaining a historical privacy budget corresponding to the information identical to the request information, and obtaining the historical privacy budget as a privacy budget for the private data;
[0189] When the historical information set does not include information identical to the request information, the step of acquiring the privacy budget of the private data according to the privacy protection level is performed.
[0190] Optionally, the device further comprises:
[0191] A second acquisition module is used to combine and encrypt the identity of the requester, the privacy data and the privacy data after differential privacy processing after performing differential privacy processing on the privacy data corresponding to the data service request, and obtain the encrypted target data;
[0192] A second receiving module, used for storing the target data in the storage module and receiving a second hash address returned by the storage module;
[0193] The third acquisition module is used to obtain the second hash address, the privacy protection level and the privacy budget of the privacy data as historical request information, and upload it to the historical information set of the blockchain.
[0194] Optionally, the attribute of the request information is a block attribute, and the second determining unit is used to
[0195] The data address, the request priority, and the privacy protection level are packaged to obtain the request information.
[0196] Optionally, the device further comprises:
[0197] A first authentication module, configured to send the identity identifier of the requester and the identity identifier of the server in the data service request to an identity authentication module before determining the request information corresponding to the data service request according to the data service request, wherein the identity authentication module is configured to authenticate the identity of the requester and the identity of the server;
[0198] The first execution module is used to execute the step of obtaining the request information of the requester according to the data service request when the identity of the requester and the identity of the server are both authenticated.
[0199] Optionally, the device further comprises:
[0200] A third receiving module is used to receive a registration request sent by the requesting party, wherein the registration request includes the identity information of the requesting party;
[0201] The first allocation module is used to allocate an identity to the requesting party according to the identity information of the requesting party.
[0202] Optionally, the data service request is used to request a location service in the Internet of Vehicles, and the privacy data includes location positioning data of the requesting party.
[0203] Please refer to Figure 8, which shows a block diagram of a data processing device based on blockchain provided by an exemplary embodiment of the present application. The data processing device based on blockchain 800 can be used in a terminal device to execute Figure 4 All or part of the steps in the method provided by the illustrated embodiment are performed by the terminal device. The blockchain-based data processing device 800 includes:
[0204] The first sending module 801 is used to send a data service request to the server, so that the server determines the request information corresponding to the data service request according to the data service request, and uploads the request information to the blockchain, wherein the request information at least includes the request priority; the request information is used by the consensus node in the blockchain to perform consensus review on the request information according to the consensus speed corresponding to the request priority; the server is also used to receive the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request.
[0205] To summarize, the present application receives a data service request sent by a requesting party; determines the request information corresponding to the data service request according to the data service request, wherein the request information includes at least a request priority; uploads the request information to the blockchain, so that the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority; receives the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, that is, after the server connected to the blockchain in the present application uploads the determined request information to the chain, the consensus nodes in the blockchain perform a consensus review on the request information according to the consensus speed corresponding to the request priority in the request information, so that the blockchain can perform a consensus review based on the request priority, thereby improving the efficiency of data processing in the blockchain, and performing differential privacy processing on the privacy data after the review is passed, thereby improving the security of data transmission in the blockchain.
[0206] Please refer to Fig. 9 , which shows a schematic diagram of the structure of a terminal device provided by an exemplary embodiment of the present application, such as Fig. 9 As shown, the terminal device includes a processor 910, a memory 920 and a display component 930. The memory 920 stores at least one instruction, which is loaded and executed by the processor 910 to implement some or all of the steps performed by the terminal device as the requesting party in the blockchain-based data processing method described in the above embodiments.
[0207] Please refer to Fig.10, which shows a schematic diagram of the structure of a server provided in one embodiment of the present application. The server is used to implement the blockchain-based data processing method provided in the above embodiment. Specifically:
[0208] The server 1000 includes a central processing unit (CPU) 1001, a system memory 1004 including a random access memory (RAM) 1002 and a read-only memory (ROM) 1003, and a system bus 1005 connecting the system memory 1004 and the central processing unit 1001. The server 1000 also includes a basic input / output system (I / O system) 1006 that helps transmit information between various components in the computer, and a large-capacity storage device 1007 for storing an operating system 1013, application programs 1014, and other program modules 1015.
[0209] The basic input / output system 1006 includes a display 1008 for displaying information and an input device 1009 such as a mouse and a keyboard for a user character to input information. The display 1008 and the input device 1009 are connected to the central processing unit 1001 through an input / output controller 1010 connected to the system bus 1005. The basic input / output system 1006 may also include an input / output controller 1010 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1010 also provides output to a display screen, a printer, or other types of output devices.
[0210] The mass storage device 1007 is connected to the central processing unit 1001 via a mass storage controller (not shown) connected to the system bus 1005. The mass storage device 1007 and its associated computer-readable medium provide non-volatile storage for the server 1000. That is, the mass storage device 1007 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM drive.
[0211] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, tape cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the above. The above-mentioned system memory 1004 and mass storage device 1007 can be collectively referred to as memory.
[0212] According to various embodiments of the present application, the server 1000 can also be connected to a remote computer on the network through a network such as the Internet. That is, the server 1000 can be connected to the network 1012 through the network interface unit 1011 connected to the system bus 1005, or the network interface unit 1011 can be used to connect to other types of networks or remote computer systems (not shown).
[0213] The above-mentioned large-capacity storage device 1007 stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is configured to be executed by one or more processors to implement the functions of each step performed by the server in the above-mentioned embodiments.
[0214] An embodiment of the present application also provides a computer-readable medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement all or part of the steps performed by the server in the blockchain-based data processing method described in the above embodiments.
[0215] An embodiment of the present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the blockchain-based data processing method described in the above embodiments, and all or part of the steps executed by the server.
[0216] It should be noted that: when the device provided in the above embodiment performs information push or information display, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0217] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0218] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0219] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A data processing method based on blockchain, characterized in that: Applied to a server, the method comprises: Receiving a data service request sent by a requester; Determine, according to the data service request, request information corresponding to the data service request, wherein the request information at least includes a request priority; the request priority is used to characterize a delay tolerance for processing the data service request; Uploading the request information to the blockchain so that the consensus nodes in the blockchain conduct consensus review on the request information according to the consensus speed corresponding to the request priority; wherein a corresponding relationship is set between the request priority and the consensus speed, and the higher the request priority, the faster the consensus speed; Receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, perform differential privacy processing on the private data corresponding to the data service request.
2. The method according to claim 1, characterized in that The determining, according to the data service request, request information corresponding to the data service request includes: Determining, according to the data service request, an application scenario to which the data service request belongs; Obtaining the request priority according to the application scenario to which the data service request belongs; Request information corresponding to the data service request is determined according to the request priority.
3. The method according to claim 2, characterized in that The request information also includes a data address and a privacy protection level, wherein the data address is a storage address of the private data, and the privacy protection level is used to indicate the protection level required by the requesting party for the private data; Before determining the request information corresponding to the data service request according to the request priority, the method further includes: Storing the privacy data corresponding to the data service request in a storage module, and receiving a first hash address returned by the storage module; Acquiring, according to the data service request, a privacy protection level selected by the requesting party; The determining, according to the request priority, request information corresponding to the data service request includes: The request information is determined according to the first hash address, the request priority, and the privacy protection level.
4. The method according to claim 3, characterized in that The obtaining, according to the data service request, a privacy protection level selected by the requesting party includes: Parsing the data service request to obtain the privacy protection level of the requester contained in the data service request; or, The privacy protection level is obtained according to an application scenario to which the data service request belongs.
5. The method according to claim 3, characterized in that: The receiving the audit result returned by the blockchain, if the audit result indicates that the consensus audit is passed, performing differential privacy processing on the private data corresponding to the data service request, includes: Receiving the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, obtaining the privacy budget of the private data according to the privacy protection level; Calculating the sensitivity of the data service request according to the privacy data; The private data is noised according to the privacy budget and the sensitivity, and the noisy private data is re-uploaded to the blockchain.
6. The method according to claim 5, characterized in that Before obtaining the privacy budget of the privacy data according to the privacy protection level, the method further includes: Query whether the historical information set of the blockchain contains information identical to the requested information; The calculating the privacy budget of the private data according to the privacy protection level includes: When the historical information set includes information identical to the request information, obtaining a historical privacy budget corresponding to the information identical to the request information, and obtaining the historical privacy budget as a privacy budget for the private data; When the historical information set does not include information identical to the request information, the step of acquiring the privacy budget of the private data according to the privacy protection level is performed.
7. The method according to claim 6, characterized in that After performing differential privacy processing on the privacy data corresponding to the data service request, the method further includes: The identity identifier of the requesting party, the private data, and the private data after differential privacy processing are combined and encrypted to obtain encrypted target data; Storing the target data in the storage module, and receiving a second hash address returned by the storage module; The second hash address, the privacy protection level, and the privacy budget of the private data are obtained as historical request information and uploaded to the historical information set of the blockchain.
8. The method according to claim 3, characterized in that The attribute of the request information is a block attribute, and the determining of the request information according to the data address, the request priority and the privacy protection level includes: The data address, the request priority, and the privacy protection level are packaged to obtain the request information.
9. The method according to any one of claims 1 to 8, characterized in that: Before determining the request information corresponding to the data service request according to the data service request, the method further includes: Sending the identity identifier of the requester and the identity identifier of the server in the data service request to an identity authentication module, wherein the identity authentication module is used to authenticate the identity of the requester and the identity of the server; When the identity of the requesting party and the identity of the server are both authenticated, the step of obtaining the request information of the requesting party according to the data service request is performed.
10. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Receiving a registration request sent by the requesting party, wherein the registration request includes identity information of the requesting party; An identity identifier is assigned to the requester according to the identity information of the requester.
11. The method according to any one of claims 1 to 8, characterized in that: The data service request is used to request a location service in the Internet of Vehicles, and the privacy data includes the location positioning data of the requesting party.
12. A data processing method based on blockchain, characterized in that: Applied to a terminal device, the method comprises: A data service request is sent to a server, so that the server determines the request information corresponding to the data service request according to the data service request, and uploads the request information to the blockchain, wherein the request information at least includes a request priority; the request information is used for the consensus node in the blockchain to perform a consensus review on the request information according to the consensus speed corresponding to the request priority; the server is also used to receive the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request; wherein the request priority is used to characterize the delay tolerance for processing the data service request; a corresponding relationship is set between the request priority and the consensus speed, and the higher the request priority, the faster the consensus speed.
13. A data processing system based on blockchain, characterized in that: The data processing system includes: a requester, a blockchain, a data storage module, an identity verification module and a provider; The requester is used to send a data service request to the server in the blockchain; The blockchain includes the server and consensus nodes; The server is used to determine, according to the data service request, request information corresponding to the data service request, wherein the request information at least includes a request priority; and upload the request information to the blockchain; the request priority is used to characterize a delay tolerance for processing the data service request; The consensus node is used to perform consensus review on the request information according to the consensus speed corresponding to the request priority; wherein a corresponding relationship is set between the request priority and the consensus speed, and the higher the request priority, the faster the consensus speed; The server is further configured to receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, perform differential privacy processing on the private data corresponding to the data service request; The data storage module is used to store the private data of the requesting party and return a first hash address corresponding to the private data to the server; The identity authentication module is used to receive the identity of the requester and the identity of the server sent by the server, and authenticate the identity of the requester and the identity of the server; The provider is used to provide the private data of the requester.
14. A data processing device based on blockchain, characterized in that: Applied to a server, the device comprises: A first receiving module, used for receiving a data service request sent by a requester; A first determination module, configured to determine, according to the data service request, request information corresponding to the data service request, wherein the request information at least includes a request priority; the request priority is used to characterize a delay tolerance for processing the data service request; A first uploading module is used to upload the request information to the blockchain, so that the consensus node in the blockchain performs consensus review on the request information according to the consensus speed corresponding to the request priority; wherein a corresponding relationship is set between the request priority and the consensus speed, and the higher the request priority, the faster the consensus speed; The data processing module is used to receive the audit result returned by the blockchain, and if the audit result indicates that the consensus audit is passed, differential privacy processing is performed on the private data corresponding to the data service request.
15. A data processing device based on blockchain, characterized in that: Applied to a terminal device, the device comprises: The first sending module is used to send a data service request to the server, so that the server determines the request information corresponding to the data service request according to the data service request, and uploads the request information to the blockchain, wherein the request information at least includes a request priority; the request information is used for the consensus node in the blockchain to perform a consensus review on the request information according to the consensus speed corresponding to the request priority; the server is also used to receive the review result returned by the blockchain, and if the review result indicates that the consensus review is passed, differential privacy processing is performed on the privacy data corresponding to the data service request, wherein the request priority is used to characterize the delay tolerance for processing the data service request; a corresponding relationship is set between the request priority and the consensus speed, and the higher the request priority, the faster the consensus speed.
16. A server, characterized in that: The server includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the blockchain-based data processing method as described in any one of claims 1 to 11.
17. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the blockchain-based data processing method as described in claim 12.
18. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the blockchain-based data processing method as described in any one of claims 1 to 11.
19. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the blockchain-based data processing method as described in claim 12.
Citation Information
Patent Citations
Data differential privacy protection sharing platform based on block chain
CN110941856A
Demand processing method and system based on block chain, storage medium and electronic equipment
CN114371917A
