Financial data sharing privacy protection method based on block chain

Through blockchain technology and smart contract platforms, combined with differential privacy and reputation evaluation, the challenges of data privacy protection and security of traditional data sharing platforms are solved, the safe sharing and reputation evaluation of financial data are realized, and the data sharing platform is improved. security and transparency.

CN118690408AInactive Publication Date: 2024-09-24WUHAN COLLEGE
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410809389.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional data sharing platforms have challenges in data privacy protection and security. They are difficult to deal with complex data sharing scenarios, leading to data leakage and abuse problems. Moreover, the trust model analysis is not comprehensive enough to effectively prevent abnormal behaviors.

Method used

Adopt a blockchain-based financial data sharing privacy protection method to achieve data anonymization, encrypted storage, intelligent access control and credibility through smart contract platforms, side chain technology, differential privacy technology, reputation evaluation systems and anomaly detection models. Assess and prevent data misuse and anomalous behavior.

Benefits of technology

Effectively protect data privacy, improve the security and credibility of the data sharing platform, evaluate the credibility of participants through a multi-dimensional trust model, identify and prevent potential data abuse and abnormal behavior, and enhance the security and transparency of the data sharing platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690408A
    Figure CN118690408A
Patent Text Reader

Abstract

The invention relates to the technical field of data sharing privacy protection, in particular to a financial data sharing privacy protection method based on a block chain, and the method comprises the following steps: building a financial data sharing platform based on the block chain; a user registers and generates a digital identity label, and a public key of the digital identity label is encrypted and stored on a block chain; a financial data provider encrypts and stores data on a block chain, and data anonymization processing is carried out before storage; when a user obtains financial data, a data decryption scheme is intelligently selected according to the identity, authority and demand of the user; establishing a trust model between the data provider and the data user; an anomaly detection model is introduced to analyze and predict data access behaviors of a user, and potential data abuse and abnormal behaviors are prevented. According to the method and the device, the abnormal modes in the user data access behaviors, including abnormal behaviors such as abnormally high or abnormally low access frequency, abnormally short access duration and the like, can be identified, so that potential data abuse and abnormal behaviors are effectively prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data sharing privacy protection, and in particular to a financial data sharing privacy protection method based on blockchain. Background Art

[0002] As the demand for financial data sharing continues to increase, traditional data sharing platforms often face challenges in data privacy protection and security. Traditional encryption technology and access control methods often fail to effectively cope with complex data sharing scenarios, which can easily lead to data leakage and abuse. At the same time, existing trust model analysis often only considers some factors and cannot fully evaluate the credibility of participants, which can easily lead to missed detection of abnormal behaviors. In addition, there is currently a lack of predictive analysis of user behavior, making it difficult to prevent potential data abuse and abnormal behavior.

[0003] Therefore, in order to solve the above problems, the present invention proposes a financial data sharing privacy protection method based on blockchain, which realizes data privacy protection and intelligent access control. Summary of the invention

[0004] Based on the above objectives, the present invention provides a financial data sharing privacy protection method based on blockchain.

[0005] A financial data sharing privacy protection method based on blockchain, comprising the following steps:

[0006] S1: Establish a financial data sharing platform based on blockchain, including network nodes and data storage nodes. The blockchain adopts a Turing-complete smart contract platform and introduces sidechain technology to improve scalability and throughput.

[0007] S2: The user registers and generates a digital identity, and encrypts and stores the public key on the blockchain;

[0008] S3: The financial data provider encrypts and stores the data on the blockchain. The data is anonymized before storage, and differential privacy technology is used to prevent the leakage of personal privacy information.

[0009] S4: When users obtain financial data, the data decryption solution is intelligently selected based on the user's identity, authority and needs;

[0010] S5: Establish a trust model between data providers and data users, and evaluate the credibility of participants through reputation evaluation on the blockchain;

[0011] S6: Introduce anomaly detection models to analyze and predict users’ data access behaviors to prevent potential data abuse and abnormal behaviors.

[0012] Furthermore, the Turing-complete smart contract platform in S1 selects Ethereum, which specifically includes:

[0013] S11, design the topology of network nodes and data storage nodes according to the platform scale and requirements, ensure the stable connection between nodes, and distribute the data storage nodes;

[0014] S12, introduce sidechain technology: connect the main blockchain with multiple sidechains, each sidechain is responsible for processing different types of transactions or data, reduce the load pressure and transaction congestion of the main blockchain, design and implement cross-chain communication protocols, ensure data exchange and information transmission between the main blockchain and each sidechain, and realize cross-chain data sharing and transaction;

[0015] S13, establish a smart contract platform: deploy the smart contract platform on the main blockchain to provide intelligent contract execution and data management functions for financial data sharing, and deploy and configure network nodes and data storage nodes according to the design plan.

[0016] Furthermore, the S2 specifically includes:

[0017] S21, the user visits the registration page of the financial data sharing platform, fills in personal information, and selects a registration option;

[0018] S22, after successful registration, a digital identity of the user is generated, including a unique user ID and a corresponding private key;

[0019] S23, using a public key encryption algorithm, encrypts the user's public key and user ID to generate a ciphertext.

[0020] S24, storing the encrypted public key ciphertext in the user identity registry on the blockchain to ensure the security and non-tamperability of the public key;

[0021] S25, the blockchain confirms the storage of user identity registration information and generates corresponding transaction records to ensure the validity and consistency of the information.

[0022] S26, after successful registration, the user obtains the right to access the platform and financial data, and uses the digital identity for identity authentication and data access.

[0023] Furthermore, the S3 specifically includes:

[0024] S31, the financial data provider uses the AES encryption algorithm to encrypt the data to be stored and generate a ciphertext;

[0025] S32, before encryption, the stored financial data is anonymized to remove or replace personal identity information. The anonymization process uses data desensitization technology to ensure that the data does not contain directly identifiable personal information during storage;

[0026] S33, after encryption and anonymization, the financial data provider uses differential privacy technology to protect the data, so that individual information cannot be obtained when analyzing and querying the data;

[0027] S34, stores the encrypted, anonymized and differentially private financial data in data blocks on the blockchain, ensuring the security, reliability and transparency of the data through the immutability and distributed nature of the blockchain;

[0028] S35, the blockchain network confirms the storage of financial data and generates corresponding transaction records. At the same time, it signs and timestamps the blocks where the data is stored to increase the credibility and traceability of the data.

[0029] Furthermore, the differential privacy technology is to perturb the original data before publishing it to protect individual privacy, specifically including:

[0030] Suppose a function f is used to query data, where f is a sensitive function. For an input x, the corresponding query result is f(x). In order to protect privacy, a noise that obeys the Laplace distribution Lap(Δf / ∈) is added to f(x), where Δf is the sensitivity of f and ∈ is the privacy parameter. The probability density function of the Laplace distribution is:

[0031] Therefore, the query result with the added noise Lap(Δf / ∈) is f(x)+Lap(Δf / ∈).

[0032] Furthermore, the S4 specifically includes:

[0033] S41, before requesting to obtain financial data, the user needs to perform identity authentication, which includes username and password verification and biometric recognition;

[0034] S42, after the user identity verification is passed, data access control is performed within the scope of the user's authority based on the user's identity and authority information to verify whether the user has the authority to obtain specific financial data;

[0035] S43, intelligently select a data decryption solution based on the user's identity, authority and needs;

[0036] S44, decrypting the encrypted and stored financial data according to the selected decryption scheme, and returning the decrypted data to the user.

[0037] Furthermore, the S5 specifically includes:

[0038] S51, verify the identity of the participant to ensure that he has a unique identity on the blockchain and has legal identity information and permissions;

[0039] S52, establish a reputation points system based on blockchain to assign reputation points to participants to evaluate their reputation in the data sharing process. The reputation points system evaluates and calculates based on the participants' behavior, transaction history, social and economic factors;

[0040] S53, recording the reputation points of the participants on the blockchain to form an unalterable reputation evaluation record;

[0041] S54, based on the behavior and performance of the participants in the data sharing process, regularly update their reputation points, and record the updated reputation points on the blockchain. Based on the reputation evaluation records on the blockchain, a trust model between participants is constructed. The trust model evaluates the trust level of the participants in the data sharing process based on their reputation, helps data users judge the credibility of data providers, and promotes the smooth progress of data sharing and transactions;

[0042] S55. Establish a corresponding reputation reward and punishment mechanism to reward participants with high reputation and encourage them to actively participate in data sharing and contribute data; punish participants with low reputation by restricting their data access rights or excluding them from participating in data sharing.

[0043] Furthermore, the establishment of the trust model specifically includes:

[0044] Assume that the participant is A and his trust is T A , the trust level ranges from [0, 1], where 0 represents the lowest trust and 1 represents the highest trust. A The evaluation factors are broken down into the following aspects:

[0045] Behavioral factors: the impact of participants’ behaviors on their trust, including the frequency of data sharing and data quality. Let the evaluation result of behavioral factors be B A ;

[0046] Historical factors: The impact of participants’ historical records on their trustworthiness, including past data sharing experience and violations. Let the evaluation result of historical factors be H A ;

[0047] Social factors: The impact of a participant’s social relationships on their trust, including the degree of connection and trust with other participants. Suppose the evaluation result of the social factor is S A ;

[0048] Economic factors: the impact of participants’ economic behavior on their trust, including payment ability and the use of reward and punishment mechanisms. Let the evaluation result of economic factors be E A ;

[0049] Taking all the above factors into consideration, the comprehensive trust of participants is calculated by weighted average. A :

[0050] T A =w1·B A +w2·H A +w3·S A +w4·E A , where w1, w2, w3, and w4 are the weights of each factor, which are adjusted to reflect the importance of each factor.

[0051] Furthermore, the anomaly detection model in S6 adopts the Mean Shift density clustering model, which finds the cluster center by iteratively calculating the density maximization of data points in the feature space, finds the area with large density change in anomaly detection, and regards it as an outlier, specifically including:

[0052] S61, collecting the user's data access behavior data, including access frequency, access time, access duration, access data type and data request volume information, extracting features from the collected data to describe the user's data access behavior, the features including time features, frequency features, duration features, data type features and request volume features, and preprocessing the extracted feature data, including data cleaning, missing value processing and feature standardization;

[0053] S62, using the time feature, the frequency feature, the duration feature, the data type feature, and the request volume feature as input data for a MeanShift density clustering model;

[0054] S63, define a window, i.e., bandwidth h, the size of the window determines the granularity of the clustering result;

[0055] S64, there are n data points, each of which is represented by x1, x2, ..., x n , for each data point x i , place a window with the point as the center, and calculate the centroid (i.e., average position) of all points in the window. The centroid is calculated by i All surrounding data points (within bandwidth h) are averaged;

[0056] S65, move the window to the position of the centroid, that is, update the data point position, for each data point x i , update the position according to its MeanShift vector: x i←m(x i ), and update repeatedly until the window positions of all data points are stable or the predetermined number of iterations is reached;

[0057] S66, the data points will eventually gather around several centroids through S63-S65 to form clusters. The final centroids of the data points determine their clustering affiliation. According to the density and size of each cluster, clusters with abnormally low density or small size are identified. The points in clusters with abnormally low density or small size are outliers. The characteristics of isolated points, abnormally low density or small clusters are analyzed to determine whether they are abnormal behaviors.

[0058] Furthermore, the centroid is calculated as: Among them, N(x i ) is x i The point set in the neighborhood of K(x i , x j ) is the kernel function, using Gaussian kernel:

[0059] Beneficial effects of the present invention:

[0060] The present invention adopts the Mean Shift algorithm as a tool for anomaly detection. Compared with the traditional clustering algorithm, the MeanShift algorithm can automatically determine the number of clusters and can process irregularly shaped data sets. Through the Mean Shift algorithm, abnormal patterns in user data access behavior can be identified, including abnormal behaviors such as abnormally high or abnormally low access frequency, abnormally short access time, etc., thereby effectively preventing potential data abuse and abnormal behavior.

[0061] This invention proposes a trust model based on multi-dimensional evaluation, which comprehensively considers factors such as user behavior, historical records, social relationships, and economic behavior. Through this comprehensive trust model, the system can more accurately evaluate the credibility of participants and detect potential abnormal behaviors in a timely manner. For example, by analyzing the user's historical behavior and social influence, abnormal behavior can be more accurately identified, thereby improving the security and credibility of the data sharing platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0063] Figure 1 A schematic diagram of a protection method flow chart of an embodiment of the present invention;

[0064] Figure 2 Schematic diagram of an anomaly detection model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0065] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0066] like Figure 1-Figure 2 As shown, a financial data sharing privacy protection method based on blockchain includes the following steps:

[0067] S1: Establish a financial data sharing platform based on blockchain, including network nodes and data storage nodes. The blockchain adopts a Turing-complete smart contract platform and introduces sidechain technology to improve scalability and throughput.

[0068] S2: The user registers and generates a digital identity, and encrypts and stores the public key on the blockchain;

[0069] S3: The financial data provider encrypts and stores the data on the blockchain. The data is anonymized before storage, and differential privacy technology is used to prevent the leakage of personal privacy information.

[0070] S4: When users obtain financial data, the data decryption solution is intelligently selected based on the user's identity, authority and needs;

[0071] S5: Establish a trust model between data providers and data users, and evaluate the credibility of participants through reputation evaluation on the blockchain;

[0072] S6: Introduce anomaly detection models to analyze and predict users’ data access behaviors to prevent potential data abuse and abnormal behaviors.

[0073] The Turing-complete smart contract platform in S1 is Ethereum, which includes:

[0074] S11, design the topology of network nodes and data storage nodes according to the platform scale and requirements, ensure the stable connection between nodes, and distribute the data storage nodes;

[0075] S12, introduce sidechain technology: connect the main blockchain with multiple sidechains, each sidechain is responsible for processing different types of transactions or data, reduce the load pressure and transaction congestion of the main blockchain, design and implement cross-chain communication protocols, ensure data exchange and information transmission between the main blockchain and each sidechain, and realize cross-chain data sharing and transaction;

[0076] S13, establish a smart contract platform: deploy the smart contract platform on the main blockchain to provide intelligent contract execution and data management functions for financial data sharing, and deploy and configure network nodes and data storage nodes according to the design plan.

[0077] Topological structure design of network nodes and data storage nodes:

[0078] Network nodes: A distributed network structure is adopted. Network nodes include master nodes and auxiliary nodes. The master node is responsible for the consensus and management of the blockchain, and the auxiliary node is used to support stable network operation and data transmission.

[0079] Data storage nodes: A distributed storage structure is adopted to distribute data storage nodes in different geographical locations or data centers. Each node stores part of the data and has a redundant backup mechanism to ensure the security and reliability of the data.

[0080] Deployment and configuration of network nodes and data storage nodes:

[0081] Network nodes: According to the design plan, deploy primary and secondary nodes in different geographical locations or cloud service providers, configure the hardware environment and network environment of the nodes, and ensure smooth communication between nodes and stable data synchronization.

[0082] Data storage nodes: Deployed in a secure and reliable data center or cloud platform, the node's storage capacity and computing resources are configured according to the design plan, and redundant backup mechanisms and data encryption mechanisms are set up to ensure data security and integrity.

[0083] S2 specifically includes:

[0084] S21, the user visits the registration page of the financial data sharing platform, fills in personal information, and selects a registration option;

[0085] S22, after successful registration, a digital identity of the user is generated, including a unique user ID and a corresponding private key;

[0086] S23, using the public key encryption algorithm, encrypting the user's public key and user ID to generate ciphertext; using the asymmetric encryption algorithm RSA algorithm. To achieve the encryption and decryption process, the user can generate a pair of public keys and private keys, the public key is used to encrypt data, and the private key is used to decrypt data. In the public key encryption algorithm, the encryption process uses the public key for encryption, and the decryption process requires the use of the corresponding private key for decryption.

[0087] S24, storing the encrypted public key ciphertext in the user identity registry on the blockchain to ensure the security and non-tamperability of the public key;

[0088] S25, the blockchain confirms the storage of user identity registration information and generates corresponding transaction records to ensure the validity and consistency of the information.

[0089] S26, after successful registration, the user obtains the right to access the platform and financial data, and uses the digital identity for identity authentication and data access.

[0090] Through the above steps, users can safely register and generate digital identities, and encrypt and store their public keys on the blockchain, providing the necessary credentials and guarantees for subsequent data access and transactions.

[0091] S3 specifically includes:

[0092] S31, the financial data provider uses the AES encryption algorithm to encrypt the data to be stored and generate a ciphertext;

[0093] S32, before encryption, the stored financial data is anonymized to remove or replace personal identity information. The anonymization process uses data desensitization technology to ensure that the data does not contain directly identifiable personal information during storage. Data desensitization technology involves processing the original data to eliminate or weaken the sensitive information in the data while trying to maintain the distribution characteristics of the data. Data desensitization technology includes:

[0094] Data generalization: reducing the accuracy of data by aggregating or scoping the data, such as converting specific age information into age range information.

[0095] Data deletion: directly delete sensitive information from the data, such as deleting personal identification information such as name and address.

[0096] Data replacement: Replace sensitive information in the original data with obfuscated, forged or randomly generated data, such as replacing a name with "***" or replacing a real postal code with a randomly generated postal code.

[0097] S33, after encryption and anonymization, the financial data provider uses differential privacy technology to protect the data, so that individual information cannot be obtained when analyzing and querying the data;

[0098] S34, stores the encrypted, anonymized and differentially private financial data in data blocks on the blockchain, ensuring the security, reliability and transparency of the data through the immutability and distributed nature of the blockchain;

[0099] S35, the blockchain network confirms the storage of financial data and generates corresponding transaction records. At the same time, it signs and timestamps the blocks where the data is stored to increase the credibility and traceability of the data.

[0100] Differential privacy technology is to perturb the original data before publishing it to protect individual privacy, including:

[0101] Suppose a function f is used to query data, where f is a sensitive function. For an input x, the corresponding query result is f(x). In order to protect privacy, a noise that obeys the Laplace distribution Lap(Δf / ∈) is added to f(x), where Δf is the sensitivity of f and ∈ is the privacy parameter. The probability density function of the Laplace distribution is:

[0102] Therefore, the query result with the added noise Lap(Δf / ∈) is f(x)+Lap(Δf / ∈). For the same query, even if there is a slight input change, the output result will fluctuate greatly, thus protecting the privacy of individuals.

[0103] S4 specifically includes:

[0104] S41, before requesting to obtain financial data, the user needs to perform identity authentication, which includes username and password verification and biometric recognition;

[0105] S42, after the user identity verification is passed, data access control is performed within the scope of the user's authority based on the user's identity and authority information to verify whether the user has the authority to obtain specific financial data;

[0106] S43, intelligently select a data decryption solution based on the user's identity, authority and needs. This selection process involves different encryption algorithms and key management solutions. For high-authority users, more advanced decryption algorithms and key management solutions are selected to ensure data security; for ordinary-authority users, simpler decryption algorithms and key management solutions are selected to improve data access efficiency;

[0107] S44, decrypting the encrypted and stored financial data according to the selected decryption scheme, and returning the decrypted data to the user.

[0108] S5 specifically includes:

[0109] S51, verify the identity of the participant to ensure that he has a unique identity on the blockchain and has legal identity information and permissions;

[0110] S52, establish a reputation points system based on blockchain to assign reputation points to participants to evaluate their reputation in the data sharing process. The reputation points system evaluates and calculates based on the participants' behavior, transaction history, social and economic factors;

[0111] S53, recording the reputation points of the participants on the blockchain to form an unalterable reputation evaluation record;

[0112] S54, based on the behavior and performance of the participants in the data sharing process, regularly update their reputation points, and record the updated reputation points on the blockchain. Based on the reputation evaluation records on the blockchain, a trust model between participants is constructed. The trust model evaluates the trust level of the participants in the data sharing process based on their reputation, helps data users judge the credibility of data providers, and promotes the smooth progress of data sharing and transactions;

[0113] S55. Establish a corresponding reputation reward and punishment mechanism to reward participants with high reputation and encourage them to actively participate in data sharing and contribute data; punish participants with low reputation by restricting their data access rights or excluding them from participating in data sharing.

[0114] The establishment of the trust model specifically includes:

[0115] Assume that the participant is A and his trust is T A , the trust level ranges from [0,1], where 0 represents the lowest trust and 1 represents the highest trust. A The evaluation factors are broken down into the following aspects:

[0116] Behavioral factors: the impact of participants’ behaviors on their trust, including the frequency of data sharing and data quality. Let the evaluation result of behavioral factors be B A ;

[0117] Historical factors: The impact of participants’ historical records on their trustworthiness, including past data sharing experience and violations. Let the evaluation result of historical factors be H A ;

[0118] Social factors: The impact of a participant’s social relationships on their trust, including the degree of connection and trust with other participants. Suppose the evaluation result of the social factor is S A ;

[0119] Economic factors: the impact of participants’ economic behavior on their trust, including payment ability and the use of reward and punishment mechanisms. Let the evaluation result of economic factors be E A ;

[0120] Taking all the above factors into consideration, the comprehensive trust of participants is calculated by weighted average. A :

[0121] T A =w1·B A +w2·H A +w3·S A +w4·EA , where w1, w2, w3, and w4 are the weights of each factor, which are adjusted to reflect the importance of each factor. For example, if the behavioral factor dominates the trust evaluation, its corresponding weight w1 can be set higher.

[0122] 1. Evaluation method of behavioral factors: The evaluation of behavioral factors can be based on the behavioral performance of participants, such as the frequency of data sharing and data quality, and calculate the data contribution of participants, that is, a comprehensive evaluation of the amount and quality of data contributed by participants. Assume that the data contribution is C A , then the evaluation result of the behavioral factor is Among them C max It is the value with the highest data contribution among all participants.

[0123] 2. Evaluation method of historical factors: The evaluation of historical factors is based on the historical records of participants, such as past data sharing experience and violations. The evaluation method is to calculate the historical trust of participants, that is, the weighted average of the trust obtained by participants in the past. Assume that the historical trust is T H , then the evaluation result of the historical factor is H A =T H .

[0124] 3. Evaluation method of social factors: The evaluation of social factors is based on the social relationships of participants, such as the degree of association and trust relationship with other participants. The evaluation method is to calculate the social influence of participants, that is, the influence index of participants in the social network. Assume that the social influence is I A , then the evaluation result of social factors is Among them I max It is the value with the highest social influence among all participants.

[0125] 4. Evaluation method of economic factors: The evaluation of economic factors is based on the economic behavior of participants, such as payment ability and the use of reward and punishment mechanisms. The evaluation method is to calculate the economic contribution of participants, that is, the fees paid or the benefits obtained by participants in data transactions. Assume that the economic contribution is R A , then the evaluation result of economic factors is Where R max It is the value with the highest economic contribution among all participants.

[0126] The anomaly detection model in S6 uses the Mean Shift density clustering model. It finds the cluster center by iteratively calculating the maximum density of data points in the feature space. It finds areas with large density changes in anomaly detection and regards them as outliers. Specifically, it includes:

[0127] S61, collecting the user's data access behavior data, including access frequency, access time, access duration, access data type and data request volume information. These data can be collected through system logs, user operation records, etc., extracting features from the collected data to describe the user's data access behavior. The features include time features, frequency features, duration features, data type features and request volume features. Preprocessing the extracted feature data includes data cleaning, missing value processing and feature standardization.

[0128] S62, using the time feature, the frequency feature, the duration feature, the data type feature, and the request volume feature as input data for a MeanShift density clustering model;

[0129] S63, define a window, i.e., bandwidth h, the size of the window determines the granularity of the clustering result;

[0130] S64, there are n data points, each of which is represented by x1, x2, ..., x n , for each data point x i , place a window with the point as the center, and calculate the centroid (i.e., average position) of all points in the window. The centroid is calculated by i All surrounding data points (within bandwidth h) are averaged and the centroid is calculated as:

[0131] Among them, N(x i ) is x i The point set in the neighborhood of K(x i , x j ) is the kernel function, using Gaussian kernel:

[0132] The Mean Shift algorithm can automatically find the points with the highest density in data. It is suitable for data sets without obvious boundaries and with various shapes. In the analysis of user data access behavior, it can effectively identify abnormal points in the behavior pattern, thus providing protection for data security.

[0133] S65, move the window to the position of the centroid, that is, update the data point position, for each data point x i , update the position according to its MeanShift vector: x i ←m(x i ), and update repeatedly until the window positions of all data points are stable or the predetermined number of iterations is reached;

[0134] S66, the data points will eventually gather around several centroids through S63-S65 to form clusters. The final centroids of the data points determine their clustering affiliation. According to the density and size of each cluster, clusters with abnormally low density or small size are identified. The points in clusters with abnormally low density or small size are outliers. The characteristics of isolated points, abnormally low density or small clusters are analyzed, such as abnormally high access frequency or abnormally short access time, to determine whether they are abnormal behavior.

[0135] Based on the analysis and prediction results, take corresponding preventive measures. For users identified as potential abnormal behaviors, strengthen permission control, strengthen monitoring and auditing, provide warning prompts and other measures to prevent data abuse and abnormal behavior.

[0136] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.

[0137] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A financial data sharing privacy protection method based on blockchain, characterized in that: The following steps are involved: S1: Establish a financial data sharing platform based on blockchain, including network nodes and data storage nodes. The blockchain adopts a Turing-complete smart contract platform and introduces sidechain technology to improve scalability and throughput. S2: The user registers and generates a digital identity, and encrypts and stores the public key on the blockchain; S3: The financial data provider encrypts and stores the data on the blockchain. The data is anonymized before storage, and differential privacy technology is used to prevent the leakage of personal privacy information. S4: When users obtain financial data, the data decryption solution is intelligently selected based on the user's identity, authority and needs; S5: Establish a trust model between data providers and data users, and evaluate the credibility of participants through reputation evaluation on the blockchain; S6: Introduce anomaly detection models to analyze and predict users’ data access behaviors to prevent potential data abuse and abnormal behaviors.

2. According to a blockchain-based financial data sharing privacy protection method according to claim 1, it is characterized in that: The Turing-complete smart contract platform in S1 is Ethereum, which specifically includes: S11, design the topology of network nodes and data storage nodes according to the platform scale and requirements, ensure the stable connection between nodes, and distribute the data storage nodes; S12, introduce sidechain technology: connect the main blockchain with multiple sidechains, each sidechain is responsible for processing different types of transactions or data, reduce the load pressure and transaction congestion of the main blockchain, design and implement cross-chain communication protocols, ensure data exchange and information transmission between the main blockchain and each sidechain, and realize cross-chain data sharing and transaction; S13, establish a smart contract platform: deploy the smart contract platform on the main blockchain to provide intelligent contract execution and data management functions for financial data sharing, and deploy and configure network nodes and data storage nodes according to the design plan.

3. According to a blockchain-based financial data sharing privacy protection method according to claim 1, it is characterized in that: The S2 specifically includes: S21, the user visits the registration page of the financial data sharing platform, fills in personal information, and selects a registration option; S22, after successful registration, a digital identity of the user is generated, including a unique user ID and a corresponding private key; S23, using a public key encryption algorithm to encrypt the user's public key and user ID to generate a ciphertext; S24, storing the encrypted public key ciphertext in the user identity registry on the blockchain to ensure the security and non-tamperability of the public key; S25, the blockchain confirms the storage of the user's identity registration information and generates corresponding transaction records to ensure the validity and consistency of the information; S26, after successful registration, the user obtains the right to access the platform and financial data, and uses the digital identity for identity authentication and data access.

4. According to a blockchain-based financial data sharing privacy protection method according to claim 1, it is characterized in that: The S3 specifically includes: S31, the financial data provider uses the AES encryption algorithm to encrypt the data to be stored and generate a ciphertext; S32, before encryption, the stored financial data is anonymized to remove or replace personal identity information. The anonymization process uses data desensitization technology to ensure that the data does not contain directly identifiable personal information during storage; S33, after encryption and anonymization, the financial data provider uses differential privacy technology to protect the data, so that individual information cannot be obtained when analyzing and querying the data; S34, storing the encrypted, anonymized and differentially private financial data ciphertext in a data block on the blockchain; S35, the blockchain network confirms the storage of financial data and generates corresponding transaction records. At the same time, it signs and timestamps the blocks where the data is stored.

5. According to a blockchain-based financial data sharing privacy protection method according to claim 1, it is characterized in that: The differential privacy technology is to perturb the original data before publishing it to protect individual privacy, including: Suppose a function f is used to query data, where f is a sensitive function. For an input x, the corresponding query result is f(x). In order to protect privacy, a noise that obeys the Laplace distribution Lap(Δf / ∈) is added to f(x), where Δf is the sensitivity of f and ∈ is the privacy parameter. The probability density function of the Laplace distribution is: Therefore, the query result with the added noise Lap(Δf / ∈) is f(x)+Lap(Δf / ∈).

6. According to a blockchain-based financial data sharing privacy protection method according to claim 1, it is characterized in that: The S4 specifically includes: S41, before requesting to obtain financial data, the user needs to perform identity authentication, which includes username and password verification and biometric recognition; S42, after the user identity verification is passed, data access control is performed within the scope of the user's authority based on the user's identity and authority information to verify whether the user has the authority to obtain specific financial data; S43, intelligently select a data decryption solution based on the user's identity, authority and needs; S44, decrypting the encrypted and stored financial data according to the selected decryption scheme, and returning the decrypted data to the user.

7. According to a blockchain-based financial data sharing privacy protection method according to claim 1, it is characterized in that: The S5 specifically includes: S51, verify the identity of the participant to ensure that he has a unique identity on the blockchain and has legal identity information and permissions; S52, establish a reputation points system based on blockchain to assign reputation points to participants to evaluate their reputation in the data sharing process. The reputation points system evaluates and calculates based on the participants' behavior, transaction history, social and economic factors; S53, recording the reputation points of the participants on the blockchain to form an unalterable reputation evaluation record; S54, based on the behavior and performance of the participants in the data sharing process, regularly update their reputation points, and record the updated reputation points on the blockchain. Based on the reputation evaluation records on the blockchain, a trust model between participants is constructed. The trust model evaluates the trust level of the participants in the data sharing process based on their reputation, helps data users judge the credibility of data providers, and promotes the smooth progress of data sharing and transactions; S55. Establish a corresponding reputation reward and punishment mechanism to reward participants with high reputation and encourage them to actively participate in data sharing and contribute data; punish participants with low reputation by restricting their data access rights or excluding them from participating in data sharing.

8. According to a blockchain-based financial data sharing privacy protection method according to claim 7, it is characterized in that: The establishment of the trust model specifically includes: Assume that the participant is A and his trust is T A , the trust level ranges from [0,1], where 0 represents the lowest trust and 1 represents the highest trust. A The evaluation factors are broken down into the following aspects: Behavioral factors: the impact of participants’ behaviors on their trust, including the frequency of data sharing and data quality. Let the evaluation result of behavioral factors be B A ; Historical factors: The impact of participants’ historical records on their trustworthiness, including past data sharing experience and violations. Let the evaluation result of historical factors be H A ; Social factors: The impact of a participant’s social relationships on their trust, including the degree of connection and trust with other participants. Suppose the evaluation result of the social factor is S A ; Economic factors: the impact of participants’ economic behavior on their trust, including payment ability and the use of reward and punishment mechanisms. Let the evaluation result of economic factors be E A ; Taking all the above factors into consideration, the comprehensive trust of participants is calculated by weighted average. A : T A =w1·B A +w2·H A +w3·S A +w4·E A , where w1, w2, w3, w4 are the weights of each factor, which are adjusted to reflect the importance of each factor.

9. According to a blockchain-based financial data sharing privacy protection method according to claim 1, it is characterized in that: The anomaly detection model in S6 adopts the Mean Shift density clustering model, which finds the cluster center by iteratively calculating the maximum density of data points in the feature space. In anomaly detection, the area with large density change is found and regarded as an outlier, which includes: S61, collecting the user's data access behavior data, including access frequency, access time, access duration, access data type and data request volume information, extracting features from the collected data to describe the user's data access behavior, the features including time features, frequency features, duration features, data type features and request volume features, and preprocessing the extracted feature data, including data cleaning, missing value processing and feature standardization; S62, using the time feature, the frequency feature, the duration feature, the data type feature, and the request volume feature as input data for a Mean Shift density clustering model; S63, define a window, i.e., bandwidth h, the size of the window determines the granularity of the clustering result; S64, there are n data points, each of which is represented by x1, x2, ..., x n , for each data point x i , place a window with the point as the center, and calculate the centroid of all points in the window. The centroid is calculated by i All surrounding data points are averaged; S65, move the window to the position of the centroid, that is, update the data point position, for each data point x i , update the position according to its MeanShift vector: x i ←m(x i ), and update repeatedly until the window positions of all data points are stable or the predetermined number of iterations is reached; S66, the data points will eventually gather around several centroids through S63-S65 to form clusters. The final centroids of the data points determine their clustering affiliation. According to the density and size of each cluster, clusters with abnormally low density or small size are identified. The points in clusters with abnormally low density or small size are outliers. The characteristics of isolated points, abnormally low density or small clusters are analyzed to determine whether they are abnormal behaviors.

10. According to a blockchain-based financial data sharing privacy protection method according to claim 9, it is characterized in that: The centroid is calculated as: Among them, N(x i ) is x i The point set in the neighborhood of K(x i ,x j ) is the kernel function, using Gaussian kernel:

Citation Information

Cited By

  • Standardized management and privacy protection method for medical health data

    CN119939655A

  • Block chain-based trusted data space management method and system

    CN120216600A

  • Energy data sharing method and device based on privacy calculation and medium

    CN122734990A