Privacy data protection method and device based on differential privacy, equipment and medium
By integrating differential privacy strategies into the blockchain smart contract layer, noise-adding processing and access control of financial data are achieved, solving the problem of secure sharing and use of financial privacy data under the blockchain architecture, and ensuring data transparency and privacy.
Patent Information
- Application Number
- CN202511076981.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-01
- Publication Date
- 2025-11-14
AI Technical Summary
The distributed architecture of blockchain technology makes it difficult to guarantee the security of financial privacy data, and existing privacy protection technologies cannot effectively address the risk of privacy leaks during data sharing and analysis.
By integrating differential privacy strategies into the blockchain's smart contract layer, data noise reduction is automatically executed through smart contracts to distinguish between public and private ledgers, thereby enabling noise reduction of sensitive data and access control.
It enables the secure sharing and efficient use of financial privacy data, ensuring data transparency and immutability while protecting data privacy and supporting multi-party collaboration and regulatory auditing.
Smart Images

Figure CN120951378A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, device, and medium for privacy data protection based on differential privacy. Background Technology
[0002] In the financial sector, the widespread application of blockchain technology poses a serious challenge to the protection of financial data privacy. While the distributed architecture of blockchain brings transparency and immutability to data, it also allows all nodes to access the ledger information on the chain, making it difficult to guarantee the security of financial privacy data.
[0003] Existing privacy protection technologies mainly focus on the anonymity of user roles and the confidentiality of transaction content, but these methods cannot effectively address the risk of privacy leaks during data sharing and analysis.
[0004] Therefore, a method is needed to achieve the secure sharing and efficient use of financial privacy data. Summary of the Invention
[0005] This invention provides a method, apparatus, device, and medium for privacy data protection based on differential privacy, so as to achieve secure sharing and efficient use of financial privacy data.
[0006] According to one aspect of the present invention, a privacy data protection method based on differential privacy is provided, which integrates a smart contract containing a differential privacy strategy into the smart contract layer of a blockchain. The differential privacy strategy is used to automatically execute the following steps by calling the smart contract through the smart contract layer when financial data is uploaded:
[0007] Identify sensitive data in the uploaded financial data and perform noise reduction processing on the sensitive data;
[0008] The sensitive data, after being processed with added noise, is stored in a public ledger for access by all nodes in the blockchain.
[0009] The original financial data and the noise parameters generated during the noise addition process are encrypted and stored in a private ledger, which can only be accessed by authorized nodes.
[0010] Create at least one role and corresponding access permissions for each role to manage access to the private ledger.
[0011] Optionally, the smart contract is constructed through the following steps:
[0012] The endorsed nodes develop smart contracts that include differential privacy algorithms, configure node permissions, synchronize chaincode through the PBFT consensus algorithm, and use hash verification to ensure the consistency of chaincode among all nodes.
[0013] The preset function is called to perform type identification and noise addition on the multimodal data. The encrypted original data is stored in the private ledger, and the noisy data is stored in the public ledger world state through the PutState interface.
[0014] Upon receiving a query request, the backend verifies the permissions of the user initiating the query request. The sorting node broadcasts the request to the endorsement node. After verifying the user's role, the endorsement node combines the noisy data from the public ledger with the noise parameters from the private ledger to restore the original data and return it.
[0015] Optionally, the noise-adding processing performed on sensitive data in the uploaded financial data includes:
[0016] Identify whether the financial data is numerical or binary.
[0017] For numerical data, the Laplace mechanism is used to add random noise that conforms to a Laplace distribution;
[0018] If the data is binary, the BRR mechanism is used, where the original data value is retained with probability 'a' and the data value is randomly flipped with probability 'b', where a + b = 1.
[0019] Optionally, the public ledger stores sensitive data, non-sensitive data, and role certificates after noise enhancement, providing basic services to all nodes;
[0020] The private ledger uses Hyperledger's Private data collection technology to store raw financial data and random noise parameters generated by differential privacy chaincode. Only authorized nodes can access it through the access control module.
[0021] Optionally, the step of creating at least one role and corresponding access permissions for each role to manage access to the private ledger includes:
[0022] Define the roles of bank administrators, ordinary users, data analysis agencies, and regulatory agencies, and allocate permissions based on the principle of least privilege.
[0023] Node access is performed using multi-factor authentication, including username, password and digital certificate verification, and access permissions are checked based on role and data type.
[0024] Logs are kept of permission changes for each role and node access operations.
[0025] Optionally, identifying sensitive data in the uploaded financial data includes:
[0026] Construct a sensitive data feature library, which includes at least one preset sensitive field. Data that completely or partially matches the fields in the sensitive data feature library is identified as sensitive data.
[0027] And / or,
[0028] Through semantic analysis, financial data containing preset sensitive keywords are identified as sensitive data.
[0029] Optionally, the method further includes:
[0030] Real-time collection of data access logs and privacy breach risk events in the blockchain; analysis of historical data access frequency, access subject type, and breach risk correlation through machine learning models; and automatic identification of newly added sensitive fields.
[0031] According to another aspect of the present invention, a sensitive data identification unit is provided, comprising:
[0032] A sensitive data identification unit is used to identify sensitive data in the uploaded financial data and to perform noise-adding processing on the sensitive data;
[0033] A sensitive data storage unit is used to store the noise-added sensitive data in a public ledger for access by all nodes of the blockchain;
[0034] The noise parameter storage unit is used to encrypt and store the original financial data and the noise parameters generated during the noise addition process in a private ledger, which can only be accessed by authorized nodes.
[0035] The access control unit is used to create at least one role and the corresponding access permissions for each role to manage access to the private ledger.
[0036] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0037] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the differential privacy privacy data protection method according to any embodiment of the present invention.
[0038] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the differential privacy privacy data protection method according to any embodiment of the present invention.
[0039] The technical solution of this invention integrates a differential privacy mechanism into the blockchain smart contract layer, thereby achieving efficient protection and secure sharing of bank customer privacy data. Through the automated execution and dynamic permission adjustment of smart contracts, it enables secure sharing and efficient use of financial privacy data.
[0040] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a flowchart of a privacy data protection method based on differential privacy provided in Embodiment 1 of the present invention;
[0043] Figure 2 This is a flowchart of a smart contract construction method provided in Embodiment 2 of the present invention;
[0044] Figure 3 This is an execution architecture diagram of a differential privacy data protection method applicable to Embodiment 2 of the present invention;
[0045] Figure 4 This is a schematic diagram of the structure of a differential privacy data protection device provided in Embodiment 3 of the present invention;
[0046] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the differential privacy data protection method of the present invention. Detailed Implementation
[0047] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0048] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0049] Example 1
[0050] Figure 1 This is a flowchart of a privacy data protection method based on differential privacy provided in Embodiment 1 of the present invention. This embodiment is applicable to the protection of financial privacy data. The method can be executed by a privacy data protection device based on differential privacy, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, a smart contract containing a differential privacy strategy is integrated into the smart contract layer of the blockchain. This differential privacy strategy is used to automatically execute the following steps via the smart contract layer when financial data is uploaded:
[0051] S110. Identify sensitive data in the uploaded financial data and perform noise reduction processing on the sensitive data.
[0052] Smart contracts incorporating differential privacy strategies encode the specific implementation logic of differential privacy into executable smart contract code. Blockchain architecture typically includes a data layer, a consensus layer, and a smart contract layer, with the smart contract layer being the core module for executing automated logic. Deploying these contracts to this layer means they become part of the blockchain system, jointly stored, verified, and executed by all network nodes, ensuring the immutability and consistency of the strategy. When financial data is uploaded to the blockchain, the smart contract layer's call logic is automatically triggered; once the data upload behavior is captured by blockchain nodes, it triggers preset contract call rules.
[0053] For identified sensitive data, a corresponding differential privacy algorithm is applied to perturb the noise based on its type, ensuring that the privacy of individual data entries is protected while preserving the overall analytical value of the dataset. Data identified as non-sensitive, such as publicly available financial product names and bank business hours, is not subject to noise processing and is stored directly as its original value to ensure direct data usability.
[0054] In this embodiment of the invention, identifying sensitive data in the uploaded financial data includes:
[0055] Construct a sensitive data feature library, which includes at least one preset sensitive field. Data that completely or partially matches the fields in the sensitive data feature library is identified as sensitive data. And / or, through semantic analysis, the financial data containing preset sensitive keywords is identified as sensitive data.
[0056] For example, based on the privacy protection needs of financial scenarios, the feature library contains four categories of preset sensitive fields, covering core customer privacy information:
[0057] 1. Identification category, including basic fields such as name and contact information such as mobile phone number, landline number, and email address.
[0058] 2. Account information, including account identifiers: bank card number, passbook account number, payment account ID; security information: payment password hash value, transaction verification code, U-shield serial number, bank card CVV2 code.
[0059] 3. Transaction details, including transaction identifiers: transaction serial number, counterparty account / name, transaction time; transaction content: transaction amount, transaction remarks, transaction channel.
[0060] 4. Credit and credit reporting information, including credit information: loan contract number, credit limit, repayment history, guarantor's business card information; credit reporting information: credit report number, name of the querying institution, personal credit score.
[0061] Field matching determination includes exact match and partial match. An exact match means that if the uploaded financial data contains content that is completely identical to a field in the feature library, it is directly identified as sensitive data. For example, if the data contains "ID number XXXXXXXXXXX", the ID number field matches the feature library exactly and is therefore identified as sensitive data. A partial match means that if the data content conforms to the format characteristics or partial characteristics of a field in the feature library, it is also identified as sensitive data. For example, if the data contains "card number: XXXXXXXXX", although the bank card number field is not explicitly stated, it conforms to the BIN code rules and partially matches the format characteristics of "bank card number" in the feature library, thus being identified as sensitive data. Similarly, if the data contains "document number: XXXXXXXXXXX", although the field name is "document number" instead of "ID number", it conforms to the ID number rules and partially matches the format characteristics of "ID number" in the feature library, thus being identified as sensitive data.
[0062] For text-based financial data, natural language processing (NLP) technology is used to identify preset sensitive keywords and determine them as sensitive data. The preset sensitive keyword library contains core terms and synonyms related to financial privacy. The text data is segmented; if the segmentation results contain words from the keyword library, it is determined to be sensitive data. For example, if a transaction note contains "repaying credit card bills, with social security number XXX," the text contains the two sensitive keywords "credit card bill" and "social security number," and is therefore determined to be sensitive data.
[0063] In embodiments of the present invention, the method may further include:
[0064] Real-time collection of data access logs and privacy breach risk events in the blockchain; analysis of historical data access frequency, access subject type, and breach risk correlation through machine learning models; and automatic identification of newly added sensitive fields.
[0065] By capturing real-time data access behavior logs and potential privacy breach risk events of all nodes in the blockchain, this information is fed into a machine learning model. The model analyzes the access frequency of various types of information in historical data, the role characteristics of the accessing entities, and the correlation between these access behaviors and past breach events. It automatically discovers information fields that were not originally included in the sensitive data feature library but have high privacy risks, thereby dynamically expanding the scope of sensitive fields and improving the ability to identify emerging privacy threats.
[0066] In this embodiment of the invention, noise-adding processing is performed on sensitive data in the uploaded financial data, including:
[0067] Identify whether the financial data is numerical or binary.
[0068] For numerical data, the Laplace mechanism is used to add random noise that conforms to a Laplace distribution;
[0069] If the data is binary, the BRR mechanism is used, where the original data value is retained with probability 'a' and the data value is randomly flipped with probability 'b', where a + b = 1.
[0070] Bank customer data is diverse. In order to ensure the efficiency of the model in providing external services, the differential privacy computing module only applies noise-added perturbation processing to sensitive data (such as customer identity, transaction information, etc.). Sensitive data mainly refers to unstructured data, which is divided into numerical sensitive data and non-numerical (binary) sensitive data.
[0071] For numerical data such as the issuance price and specifications of financial products, this solution adds random Laplace noise to perturb the original data. While ensuring user data privacy, the data characteristics are not damaged, and the queryer can still perform relevant data analysis.
[0072] The Laplace distribution is a continuous probability distribution with a probability density function exhibiting a "sharp peak and long tail" characteristic. Noise values are symmetrically distributed around the zero point, and the noise magnitude is positively correlated with preset parameters. After noise is added, the true value of a single data point is blurred, but the overall distribution trend of a large amount of data is not significantly disrupted.
[0073] Determine the data sensitivity Δf. Sensitivity is an indicator that measures the importance of data privacy and is defined as the maximum impact of a single data change on the query results. For example, for numerical data such as customer account balances, sensitivity can be set as the maximum possible change in the bank account balance, such as a maximum daily transfer limit of 500,000 yuan.
[0074] Set a privacy budget ε, which determines the strength of privacy protection: the smaller the privacy budget, the greater the noise and the stronger the privacy protection, but the lower the data availability; and vice versa.
[0075] Calculate the noise scale parameter b = Δf / ε, which is the sensitivity divided by the privacy budget.
[0076] Noise values are randomly generated using the Laplace distribution, superimposed on the original data, and finally the noisy data is stored in the public ledger.
[0077] The Binary Randomized Response (BRR) mechanism is a differential privacy method for handling binary data (containing only two states: 0 / 1, yes / no, etc.). It probabilistically flips data values, making it impossible for attackers to determine the authenticity of individual data points, while preserving the overall proportions of the dataset by controlling the probabilities. For data with an original value of 1, the original value is retained with probability 'a', and flipped (becomes 0) with probability 'b'; for data with an original value of 0, the original value is retained with probability 'a', and flipped (becomes 1) with probability 'b'. The constraint is a + b = 1, ensuring probabilistic completeness.
[0078] S120. Store the noise-enhanced sensitive data in the public ledger for access by all nodes in the blockchain.
[0079] The public ledger of a blockchain is a decentralized ledger jointly maintained by all nodes on the network, possessing transparency, immutability, and consistency. While adding noise may obscure the authenticity of individual sensitive data entries, the overall statistical characteristics of the dataset are preserved. For example, an original transaction amount of 10,000 yuan might become 9,850 yuan after adding noise, distorting a single record, but the total amount, average value, and other statistical results of a large number of transactions still have analytical value.
[0080] Allowing all nodes to access noisy data in the public ledger is essentially to meet the core characteristics of blockchain and the collaborative needs of financial scenarios. Blockchain achieves consensus through multi-node verification, requiring all nodes to verify data based on the same foundation. Once noisy data is stored in the public ledger, each node can access and verify its legitimacy, ensuring consistency in the consensus process. In collaborative scenarios involving banks, credit agencies, and regulatory bodies, noisy data can serve as a secure intermediary layer accessible to all participants. For example, data analytics firms can train risk control models based on noisy transaction data from the public ledger, completing risk assessments without accessing the original sensitive information. The transparency of the public ledger allows all nodes to trace the storage and modification records of noisy data, preventing malicious tampering or misuse, and providing verifiable evidence for regulatory audits.
[0081] S130. The original financial data and the noise parameters generated during the noise addition process are encrypted and stored in a private ledger, which can only be accessed by authorized nodes.
[0082] The private ledger, serving as a privacy layer complementing the public ledger in the blockchain architecture, specifically stores two types of core information: raw financial data: unprocessed, authentic data including customer identity information, account details, and original transaction records. This data is the core object of privacy protection; its leakage would directly lead to customer privacy and security risks. Noise parameters generated during the noise-adding process: key parameters generated by the differential privacy computation module during noise addition. These are crucial for data reconstruction; unauthorized access could allow them to be used to reverse engineer the original data.
[0083] Even if the private ledger is accessed by unauthorized nodes due to anomalies, encryption ensures that the data cannot be directly deciphered, blocking the path of original information leakage at the technical level. Employing mature asymmetric encryption algorithms in the blockchain field, the original data and noise parameters are encrypted with the public key of authorized nodes and stored thereafter; only nodes holding the corresponding private key can decrypt it.
[0084] S140. Create at least one role and corresponding access permissions for each role to manage access to the private ledger.
[0085] The private ledger is restricted to pre-defined high-privilege entities, such as core bank system administrator nodes, regulatory audit nodes, and customer-authenticated nodes; ordinary nodes have no access. All access to the private ledger is recorded in the blockchain's operation log chain. The log is immutable and synchronized across the entire network, ensuring that the use of permissions is auditable and traceable.
[0086] Example 2
[0087] Figure 2This is a flowchart of a smart contract construction method provided in Embodiment 2 of the present invention. This embodiment is further explained and illustrated based on the above embodiments. Figure 2 As shown, the method includes:
[0088] S210: The endorsing nodes develop smart contracts that include differential privacy algorithms, configure node permissions, synchronize chaincode through the PBFT consensus algorithm, and use hash verification to ensure the consistency of chaincode among all nodes.
[0089] By integrating differential privacy mechanisms into blockchain smart contracts, user data uploads automatically trigger chaincode perturbation of sensitive data. This achieves layered storage of raw and noisy data, ensuring both data traceability and meeting the privacy protection requirements of sensitive data. The entire mechanism consists of three stages: chaincode deployment, data upload, and data verification.
[0090] During the chaincode deployment phase, endorsing nodes bear the dual responsibility of chaincode development and access control. They are required to: write smart contracts incorporating differential privacy algorithms (Laplace / BRR mechanisms) and configure access permissions for all nodes. The PBFT consensus algorithm ensures all nodes are synchronized with the latest chaincode version, and hash verification guarantees code consistency.
[0091] S220: Call the preset function to perform type identification and noise addition processing on the multimodal data. The encrypted original data is stored in the private ledger, and the noisy data is stored in the public ledger world state through the PutState interface.
[0092] For the processed multimodal data, a dual-ledger storage method is used: the original data is encrypted and stored in a private ledger; the noisy data is written to the world state of the public ledger.
[0093] In this embodiment of the invention, the public ledger stores sensitive data, non-sensitive data, and role certificates after noise enhancement, providing basic services to all nodes; the private ledger uses Hyperledger's Private data collection technology to store raw financial data and random noise parameters generated by differential privacy chaincode, and can only be accessed by authorized nodes through the access control module.
[0094] The public ledger, a decentralized ledger jointly maintained by all nodes in the blockchain network, stores sensitive and non-sensitive data after noise reduction. It serves as the identity credential for all nodes in the blockchain, containing information such as node type, digital signature public key, and permission scope. Certificates are issued by the consortium blockchain's Certificate Authority (CA) and are used for inter-node authentication.
[0095] The private ledger, built on Hyperledger's Private Data Collection (PDC) technology, is a privacy-protected zone within the blockchain, specifically designed to store critical information requiring strict confidentiality. Hyperledger's Private Data Collection technology is a private data storage solution for consortium blockchains. Data is stored locally only on authorized nodes and is not written to the main blockchain ledger, preventing it from being visible to all nodes on the network. Accessible nodes are predefined using Access Control Lists (ACLs), ensuring that unauthorized nodes are unaware of the data's existence. Data synchronization between authorized nodes employs end-to-end encryption (such as TLS 1.3) to prevent leakage during transmission.
[0096] S230. After receiving the query request, the backend verifies the permissions of the user who initiated the query request. The sorting node broadcasts the request to the endorsement node. After verifying the user's role, the endorsement node combines the noisy data from the public ledger with the noise parameters from the private ledger to restore the original data and return it.
[0097] When a user needs to perform a traceability query or verify the authenticity of their uploaded data, they first send a request to the backend. The backend first verifies whether the user has query permissions, and then requests the sorting node to verify the data. The sorting node broadcasts the request to the endorsing node. After verifying the user's identity, the endorsing node retrieves the data from the public ledger and combines it with noise parameters stored in the private ledger (such as the Laplace b-value / BRR P-value) to reconstruct the data. Noise reduction processing is then performed, and finally, the original information is returned to the user.
[0098] By integrating differential privacy mechanisms into the blockchain smart contract layer, the chaincode automatically triggers a data noise-adding function when a user uploads data. For numerical data, random Laplace noise is added to perturb the original data; for binary data (non-numerical data), random response noise conforming to the definition of differential privacy is added to randomly flip the data. The original data is stored in a private ledger for verification by blockchain nodes, while the noise-added data is publicly visible on the blockchain network, facilitating data analysis and other operations for users.
[0099] In this embodiment of the invention, access control for the private ledger is managed by creating at least one role and corresponding access permissions for each role, including:
[0100] Define the roles of bank administrators, ordinary users, data analysis agencies, and regulatory agencies, and allocate permissions based on the principle of least privilege.
[0101] Node access is performed using multi-factor authentication, including username, password and digital certificate verification, and access permissions are checked based on role and data type.
[0102] Logs are kept of permission changes for each role and node access operations.
[0103] The bank administrator node maintains the basic configuration of the private ledger, processes permission change requests, and performs emergency corrections of abnormal data. It can access all basic sensitive data of all customers in the private ledger, but cannot view dynamic privacy data such as transaction details; it can read all noise parameters generated by the differential privacy chaincode, but cannot modify parameter values; it has the authority to approve permission changes, but each change requires consensus confirmation from the administrator node; it can only modify original data in official customer information change scenarios, and must upload change certificates to the blockchain for evidence storage.
[0104] Ordinary user nodes can query their own original data and verify the authenticity of the noisy data in the public ledger. They can only access their own original financial data and corresponding noise parameters in the private ledger; they only have viewing permissions and no permissions to modify, export, or share; the data is automatically anonymized when displayed; they cannot access other users' data or system-level noise parameters.
[0105] Data analytics nodes train risk control models based on raw data, but cannot access individual customer privacy data. They can only access de-identified batch aggregated data, and cannot locate specific customers; they can read noise parameters matching the analysis scenario, but cannot obtain random noise generation seeds; permissions are valid for the entire project cycle, automatically revoked upon expiration, and cannot be re-authorized to other nodes.
[0106] Financial regulatory agencies audit the compliance of bank data. They can access a specified range of raw data, which must be consistent with the regulatory agreements signed by the bank. They can view permission change records for all roles and private ledger access logs. They only have viewing and statistical permissions and cannot modify data or export individual customer information. The analysis results can only be used for regulatory reports.
[0107] Each role's permissions are strictly limited to the minimum scope necessary to fulfill its responsibilities, avoiding redundancy; dynamic revocation of permissions is achieved through time limits and scenario constraints; and immutable logs of permission changes and access operations provide complete evidence for accountability for privacy leaks and compliance audits.
[0108] Figure 3This is an execution architecture diagram of a differential privacy data protection method applicable to Embodiment 2 of the present invention. It mainly consists of three core parts: a differential privacy computation module, a public-private blockchain module, and an access control module. The first part is the differential privacy computation module, primarily composed of differential privacy noise addition functions. This module mainly introduces noise into the sensitive personal data of bank customers and its implementation in the blockchain's smart contract. The second part is the public-private blockchain module, which consists of a private ledger and a public ledger. The third part is the access control module, mainly composed of access control chaincode functions. This part automatically implements node access control through smart contracts, which is crucial for ensuring controllable data access. Differential privacy noise data is stored in the private ledger, and only authorized nodes with access control can use the data in the private ledger. Identity certificates and public data are stored in the public ledger, providing basic services to all nodes in the blockchain network.
[0109] Example 3
[0110] Figure 4 This is a schematic diagram of the structure of a differential privacy data protection device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes:
[0111] Sensitive data identification unit 410 is used to identify sensitive data in uploaded financial data and perform noise-adding processing on the sensitive data;
[0112] Sensitive data storage unit 420 is used to store the noise-added sensitive data in the public ledger for access by all nodes of the blockchain;
[0113] The noise parameter storage unit 430 is used to encrypt and store the original financial data and the noise parameters generated during the noise addition process in a private ledger. The private ledger can only be accessed by authorized nodes.
[0114] The access control unit 440 is used to create at least one role and the access permissions corresponding to each role to manage access to the private ledger.
[0115] The differential privacy data protection device provided in the embodiments of the present invention can execute the differential privacy data protection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0116] Example 4
[0117] Figure 5A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0118] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0119] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0120] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as differential privacy data protection methods.
[0121] In some embodiments, the differential privacy data protection method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the differential privacy data protection method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the differential privacy data protection method by any other suitable means (e.g., by means of firmware).
[0122] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0124] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0126] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0127] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0128] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0129] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A privacy data protection method based on differential privacy, characterized in that, A smart contract incorporating a differential privacy strategy is integrated into the blockchain's smart contract layer. This differential privacy strategy is used to automatically execute the following steps via the smart contract layer when financial data is uploaded: Identify sensitive data in the uploaded financial data and perform noise reduction processing on the sensitive data; The sensitive data, after being processed with added noise, is stored in a public ledger for access by all nodes of the blockchain. The original financial data and the noise parameters generated during the noise addition process are encrypted and stored in a private ledger, which can only be accessed by authorized nodes. Create at least one role and corresponding access permissions for each role to manage access to the private ledger.
2. The method according to claim 1, characterized in that, The smart contract is constructed through the following steps: The endorsed nodes develop smart contracts that include differential privacy algorithms, configure node permissions, synchronize chaincode through the PBFT consensus algorithm, and use hash verification to ensure the consistency of chaincode among all nodes. The preset function is called to perform type identification and noise addition processing on the multimodal data. The encrypted original data is stored in the private ledger, and the noisy data is stored in the public ledger world state through the PutState interface. Upon receiving a query request, the backend verifies the permissions of the user initiating the query request. The sorting node broadcasts the request to the endorsement node. After verifying the user's role, the endorsement node combines the noisy data from the public ledger with the noise parameters from the private ledger to restore the original data and return it.
3. The method according to claim 1, characterized in that, The step of adding noise to sensitive data in the uploaded financial data includes: Identify whether the financial data is numerical or binary. For numerical data, the Laplace mechanism is used to add random noise that conforms to a Laplace distribution; If the data is binary, the BRR mechanism is used, where the original data value is retained with probability 'a' and the data value is randomly flipped with probability 'b', where a + b = 1.
4. The method according to claim 1, characterized in that, The public ledger stores sensitive data, non-sensitive data, and role certificates after noise enhancement, and provides basic services to all nodes. The private ledger uses Hyperledger's Private data collection technology to store raw financial data and random noise parameters generated by differential privacy chaincode. Only authorized nodes can access it through the access control module.
5. The method according to claim 1, characterized in that, The creation of at least one role and corresponding access permissions for each role to manage access to the private ledger includes: Define the roles of bank administrators, ordinary users, data analysis agencies, and regulatory agencies, and allocate permissions based on the principle of least privilege. Node access is performed using multi-factor authentication, including username, password and digital certificate verification, and access permissions are checked based on role and data type. Logs are kept of permission changes for each role and node access operations.
6. The method according to claim 1, characterized in that, The identification of sensitive data in the uploaded financial data includes: Construct a sensitive data feature library, which includes at least one preset sensitive field. Data that completely or partially matches the fields in the sensitive data feature library is identified as sensitive data. And / or, Through semantic analysis, financial data containing preset sensitive keywords are identified as sensitive data.
7. The method according to claim 6, characterized in that, The method further includes: Real-time collection of data access logs and privacy breach risk events in the blockchain; analysis of historical data access frequency, access subject type, and breach risk correlation through machine learning models; and automatic identification of newly added sensitive fields.
8. A differential privacy data protection device, characterized in that, include: A sensitive data identification unit is used to identify sensitive data in the uploaded financial data and to perform noise-adding processing on the sensitive data; A sensitive data storage unit is used to store the noise-added sensitive data in a public ledger for access by all nodes of the blockchain; The noise parameter storage unit is used to encrypt and store the original financial data and the noise parameters generated during the noise addition process in a private ledger, which can only be accessed by authorized nodes. The access control unit is used to create at least one role and the corresponding access permissions for each role to manage access to the private ledger.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the privacy data protection method based on differential privacy according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the privacy data protection method based on differential privacy as described in any one of claims 1-7.
Citation Information
Cited By
Method for extracting and parsing bitcoin transaction autonomy information
US12626253B2
Method for extracting and parsing bitcoin transaction autonomy information
US20250037124A1
