User transaction processing method and device based on block chain
By introducing quantum-resistant encryption and zero-knowledge proof protocols into blockchain technology, combined with quantum secure channels and homomorphic encryption, the privacy security issues in blockchain technology are solved and efficient and secure user identity verification and transaction processing are achieved. , improving privacy protection and data processing flexibility.
Patent Information
- Application Number
- CN202410862487.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-25
AI Technical Summary
Blockchain technology faces privacy security challenges such as data leakage and identity theft in the financial services field. Existing technologies have insufficient privacy protection measures and are difficult to fully apply.
Using preset integrated quantum-resistant encryption algorithms and zero-knowledge proof protocols, user identity verification and transaction processing are performed through quantum security channels, and data sensitivity and homomorphic encryption algorithm correlations are used for dynamic encryption processing to ensure that data is processed during processing. security and privacy.
Complete identity verification and transaction processing without revealing user identity information, significantly enhancing privacy protection, improving the efficiency and accuracy of identity verification and transaction processing, ensuring the security of data in the face of quantum computer attacks, and Differential protection of data of different importance is achieved.
Smart Images

Figure CN118840201A_ABST
Abstract
Description
Technical Field
[0001] The method and device for user transaction processing based on blockchain of the present invention can be used in the financial field and the blockchain technology field, and can also be used in any field other than the financial field. The application field of the method and device for user transaction processing based on blockchain of the present invention is not limited. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] With the continuous evolution of blockchain technology and its deep integration with financial services, privacy protection issues in the field of digital identity authentication and payment processing have become increasingly prominent. In the current technological environment, although blockchain technology brings advantages such as decentralization, transparency and immutability, it still faces privacy and security challenges such as data leakage and identity theft. These issues limit the comprehensive application of blockchain technology in the field of financial services, especially when it comes to sensitive information processing. How to ensure user privacy and data security while achieving efficient and reliable authentication and payment functions has become a key issue that needs to be solved urgently.
[0004] However, traditional financial transaction systems usually rely on centralized servers to store and process transaction information, which is not only easy to become a target of hacker attacks, but may also cause the entire system to crash due to single point failures. With the rise of blockchain technology, distributed ledgers and smart contracts provide the advantages of decentralization and transparency, but early blockchain systems have limitations in user identity authentication, data encryption processing, and quantum security. In particular, classical encryption algorithms may be threatened by cracking by quantum computers in the future, and transaction privacy protection on blockchains usually relies on public key infrastructure (PKI). The privacy protection measures of existing technical solutions are not sufficient to completely resist the risks of data leakage and identity theft, especially during data processing and transmission. The intensity and efficiency of user privacy protection still need to be improved. Summary of the invention
[0005] The embodiment of the present invention provides a user transaction processing method based on blockchain, which is used to enable users to complete identity authentication without disclosing actual identity information, enhance privacy protection in the transaction process, maintain data privacy, and improve the efficiency and accuracy of user transaction identity authentication and transaction processing. The method includes:
[0006] Receive a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a preset blockchain application layer interface that integrates a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data;
[0007] Based on the zero-knowledge proof protocol, generating a zero-knowledge proof file according to the user identity authentication request; sending the zero-knowledge proof file to the user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol;
[0008] Based on the correlation between data sensitivity and homomorphic encryption algorithms of different strengths, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request to obtain a homomorphic encrypted file;
[0009] Based on a preset quantum secure channel, the homomorphically encrypted file is sent to a bank node of the blockchain using a quantum key distribution algorithm; the bank node is used to receive a result of verifying the zero-knowledge proof file from a user node; if the result indicates that the verification is successful, the user identity authentication request is confirmed to be successful, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; and the transaction processing operation corresponding to the transaction request is executed on the decrypted homomorphically encrypted file.
[0010] The embodiment of the present invention also provides a user transaction processing device based on blockchain, which is used to enable users to complete identity authentication without leaking actual identity information, enhance privacy protection in the transaction process, maintain data privacy, and improve the efficiency and accuracy of user transaction identity authentication and transaction processing. The device includes:
[0011] A request receiving module, used to receive a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a preset blockchain application layer interface integrated with a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data;
[0012] A zero-knowledge proof file generation module, used to generate a zero-knowledge proof file based on the zero-knowledge proof protocol and the user identity authentication request; send the zero-knowledge proof file to the user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol;
[0013] A homomorphic encryption module, which is used to perform homomorphic encryption on the transaction request according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, based on the association relationship between data sensitivity and homomorphic encryption algorithms of different strengths, to obtain a homomorphic encrypted file;
[0014] The transaction processing module is used to send the homomorphically encrypted file to the bank node of the blockchain based on a pre-set quantum security channel and a quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is successful, it is confirmed that the user identity authentication request is successful, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; the transaction processing operation corresponding to the transaction request is executed on the homomorphically encrypted file after the decryption.
[0015] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned blockchain-based user transaction processing method when executing the computer program.
[0016] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned blockchain-based user transaction processing method is implemented.
[0017] An embodiment of the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the above-mentioned blockchain-based user transaction processing method is implemented.
[0018] The embodiment of the present invention provides a user transaction processing scheme based on blockchain, including: receiving a user identity authentication request and a transaction request initiated by a user through the application layer of blockchain through a preset blockchain application layer interface with an integrated quantum resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data; based on a zero-knowledge proof protocol, generating a zero-knowledge proof file according to the user identity authentication request; sending the zero-knowledge proof file to a user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing a zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol; and using data sensitivity and different strength homomorphic encryption to generate a zero-knowledge proof file. According to the correlation relationship between the encryption algorithms, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, so as to obtain a homomorphically encrypted file; based on the preset quantum security channel, the homomorphically encrypted file is sent to the bank node of the blockchain by the quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is passed, it is confirmed that the user identity authentication request is passed, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; for the decrypted homomorphic encrypted file, the transaction processing operation corresponding to the transaction request is executed. The embodiment of the present invention introduces a zero-knowledge proof protocol, so that users can complete identity authentication without disclosing actual identity information, which significantly enhances privacy protection during transactions. It can also verify user identities without exposing user identity information, thereby improving the efficiency of identity authentication. At the same time, the use of quantum-resistant encryption algorithms and quantum secure channels ensures that transaction data can remain secure even in the face of potential future quantum computer attacks. The strength of the homomorphic encryption algorithm is dynamically selected according to the sensitivity of the transaction data, which not only ensures the encryption state of the data during the processing process, but also allows specific computing operations without decryption, thereby improving the flexibility and efficiency of data processing, while also maintaining the privacy of the data and achieving differentiated protection for data of different importance. Through zero-knowledge proof and homomorphic encryption technology, the present invention allows users to perform identity authentication and transactions without disclosing any sensitive information. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1This is a flowchart of a user transaction processing method based on blockchain in an embodiment of the present invention;
[0021] Figure 2 This is a specific example diagram of a user transaction processing method based on blockchain in an embodiment of the present invention;
[0022] Figure 3 This is a specific example diagram of a user transaction processing method based on blockchain in an embodiment of the present invention;
[0023] Figure 4 This is a specific example diagram of a user transaction processing method based on blockchain in an embodiment of the present invention;
[0024] Figure 5 This is a specific example diagram of a user transaction processing method based on blockchain in an embodiment of the present invention;
[0025] Figure 6 This is a specific example diagram of a user transaction processing method based on blockchain in an embodiment of the present invention;
[0026] Figure 7 This is a specific example diagram of a user transaction processing method based on blockchain in an embodiment of the present invention;
[0027] Figure 8 This is a schematic diagram of the structure of a user transaction processing device based on blockchain in an embodiment of the present invention;
[0028] Fig. 9 Schematic diagram of a computer device used for blockchain-based user transaction processing in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0030] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0031] In the description of this specification, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps is not limited and can be appropriately adjusted as needed.
[0032] The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. The information collected in this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure, and application of relevant data are in compliance with the relevant laws, regulations, and standards of relevant countries and regions, and necessary confidentiality measures are taken, which do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. In addition, this application provides users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making. If the user chooses to refuse, they can enter the expert decision-making process.
[0033] It should be noted that in the embodiments of the present application, some existing solutions in the industry such as certain software, components, models, etc. may be mentioned. For example, some existing software tools, components, algorithm models or other well-known solutions in other technical fields may be cited. They should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application. These references should be understood as typical examples, and their core purpose is to explain and verify the rationality and feasibility of the implementation of the technical solution proposed in the present application. However, it does not mean that the applicant has or will inevitably use the solution. Such references do not imply that the applicant has actually adopted these existing solutions, or will inevitably adopt these methods in the future during its technical implementation. In other words, these references only serve to illustrate the nature of the description, to help understand the connection and transcendence between the innovation of the present application and the prior art, and do not constitute an endorsement or reliance statement on a specific prior art product.
[0034] With the continuous evolution of blockchain technology and its deep integration with financial services, privacy protection issues in the field of digital identity authentication and payment processing have become increasingly prominent. In the current technological environment, although blockchain technology brings advantages such as decentralization, transparency and immutability, it still faces privacy and security challenges such as data leakage and identity theft. These issues limit the comprehensive application of blockchain technology in the field of financial services, especially when it comes to sensitive information processing. How to ensure user privacy and data security while achieving efficient and reliable authentication and payment functions has become a key issue that needs to be solved urgently.
[0035] Existing technical solutions mainly focus on the basic architecture of blockchain, covering multiple levels of design from the bottom blockchain layer, data storage layer, identity authentication layer, payment processing layer to the top application layer. Among them, the blockchain layer provides different levels of trust models by distinguishing between public chains and consortium chains; the data storage layer ensures that all user information and transaction records are stored in encrypted form to maintain data security and tamper-proofness; the identity authentication layer ensures the authenticity and uniqueness of user identities through digital identity authentication mechanisms; the payment processing layer supports a variety of payment methods and ensures the traceability and security of transactions; the application layer carries a variety of business scenarios based on digital identity and payment processing capabilities. However, the privacy protection measures of existing technical solutions are not enough to completely resist the risks of data leakage and identity theft, especially in the process of data processing and transmission, the intensity and efficiency of user privacy protection still need to be improved.
[0036] The existing technical problems to be solved by the existing technical solutions mainly focus on the following points:
[0037] 1. Risk of privacy leakage: In blockchain applications, how to effectively prevent the leakage of user personal information and transaction data during storage, processing and transmission has become a major problem.
[0038] 2. Identity theft: Although digital identity authentication mechanisms exist, how to further strengthen the authentication process to ensure that identity information is not illegally copied or misused is another issue to be resolved.
[0039] 3. Balance between data processing efficiency and security: How to ensure data encryption while not affecting the effective use of data, especially in data analysis and mining, and how to improve processing efficiency without sacrificing security.
[0040] 4. Insufficient technological innovation: Existing blockchain security solutions mostly focus on traditional encryption technology and infrastructure design, lacking in-depth integration and innovative application of emerging technologies such as homomorphic encryption and zero-knowledge proof, making it difficult to meet the growing demand for privacy protection.
[0041] To sum up, although the existing blockchain technology solutions have improved the security of data processing to a certain extent, there is still room for improvement in the comprehensiveness and depth of privacy protection. In particular, it is necessary to explore more efficient and innovative privacy protection mechanisms while maintaining high security to cope with the increasingly complex and changeable privacy threat environment.
[0042] In order to solve the above problems, the embodiment of the present invention provides a user transaction processing method based on blockchain, which is used to enable users to complete identity authentication without disclosing their actual identity information, enhance privacy protection during the transaction process, maintain data privacy, and improve the efficiency and accuracy of user transaction identity authentication and transaction processing. Figure 1 , the method may include:
[0043] Step 101: receiving a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a preset blockchain application layer interface that integrates a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; and the transaction request carries user transaction data;
[0044] Step 102: Based on the zero-knowledge proof protocol, generate a zero-knowledge proof file according to the user identity authentication request; send the zero-knowledge proof file to the user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol;
[0045] Step 103: Based on the correlation between data sensitivity and homomorphic encryption algorithms of different strengths, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, to obtain a homomorphic encrypted file;
[0046] Step 104: Based on a pre-set quantum secure channel, the homomorphically encrypted file is sent to the bank node of the blockchain using a quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is successful, the user identity authentication request is confirmed to be successful, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; for the decrypted homomorphically encrypted file, the transaction processing operation corresponding to the transaction request is executed.
[0047] The embodiment of the present invention provides a user transaction processing scheme based on blockchain, including: receiving a user identity authentication request and a transaction request initiated by a user through the application layer of blockchain through a preset blockchain application layer interface with an integrated quantum resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data; based on a zero-knowledge proof protocol, generating a zero-knowledge proof file according to the user identity authentication request; sending the zero-knowledge proof file to a user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing a zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol; and using data sensitivity and different strength homomorphic encryption to generate a zero-knowledge proof file. According to the correlation relationship between the encryption algorithms, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, so as to obtain a homomorphically encrypted file; based on the preset quantum security channel, the homomorphically encrypted file is sent to the bank node of the blockchain by the quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is passed, it is confirmed that the user identity authentication request is passed, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; for the decrypted homomorphic encrypted file, the transaction processing operation corresponding to the transaction request is executed. The embodiment of the present invention introduces a zero-knowledge proof protocol, so that users can complete identity authentication without disclosing actual identity information, which significantly enhances privacy protection during transactions. It can also verify user identities without exposing user identity information, thereby improving the efficiency of identity authentication. At the same time, the use of quantum-resistant encryption algorithms and quantum secure channels ensures that transaction data can remain secure even in the face of potential future quantum computer attacks. The strength of the homomorphic encryption algorithm is dynamically selected according to the sensitivity of the transaction data, which not only ensures the encryption state of the data during the processing process, but also allows specific computing operations without decryption, thereby improving the flexibility and efficiency of data processing, while also maintaining the privacy of the data and achieving differentiated protection for data of different importance. Through zero-knowledge proof and homomorphic encryption technology, the present invention allows users to perform identity authentication and transactions without disclosing any sensitive information.
[0048] During the specific implementation, step 101 is first performed: a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain are received through a preset blockchain application layer interface that integrates a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; and the transaction request carries user transaction data.
[0049] In the embodiment, in order to achieve a more secure and efficient user transaction processing process, a blockchain application layer interface mechanism that is pre-configured and integrated with quantum resistant encryption technology is specially designed. The core of this mechanism is that it can seamlessly connect and process two types of key requests submitted by users through the blockchain application layer: user identity authentication requests and transaction requests, thereby ensuring the high security standards and data integrity of the entire interaction process.
[0050] Specifically, the user authentication request is designed to contain two key pieces of information: the user identity and the user encryption public key. As a unique electronic tag, the user identity ensures the uniqueness and traceability of the request initiator, which is essential for building a secure authentication framework. The embedding of the user encryption public key further strengthens the encryption level in the information transmission process, allowing the system to verify the authenticity and legitimacy of the user's identity without exposing the user's private key, which is in line with the basic principles of asymmetric encryption in modern cryptography.
[0051] At the same time, the transaction request carries the specific transaction data that the user wants to execute. This data not only covers the basic elements of the transaction, such as the transaction amount, target account, etc., but may also include more additional information related to the transaction background, aiming to provide sufficient and accurate basis for subsequent homomorphic encryption processing and transaction review. It is worth noting that all transaction data is strictly encapsulated before transmission to ensure that it is protected from unauthorized access or tampering in an open network environment.
[0052] This receiving mechanism, by integrating quantum-resistant encryption algorithms at the blockchain application layer, not only demonstrates forward-looking adaptability to emerging technology trends, but also effectively enhances the system's defense capabilities in the face of potential quantum computing attacks.
[0053] In the specific implementation, after performing step 101: receiving the user identity authentication request and transaction request initiated by the user through the application layer of the blockchain through the preset blockchain application layer interface of the integrated quantum resistant encryption algorithm, perform step 102: based on the zero-knowledge proof protocol, generate a zero-knowledge proof document according to the user identity authentication request; send the zero-knowledge proof document to the user node of the blockchain; the user node is used to verify the zero-knowledge proof document by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol.
[0054] In the embodiment, in order to complete efficient and secure identity authentication without leaking sensitive user information, a technical solution based on the Zero-Knowledge Proof (ZKP) protocol is introduced. This solution focuses on the processing flow of user identity authentication requests and designs a method for generating and verifying zero-knowledge proof files, ensuring the high confidentiality and integrity of the identity authentication process.
[0055] In specific operations, after receiving the user identity authentication request, an algorithm engine based on the advanced zero-knowledge proof protocol is immediately started. The engine uses the user identity and encrypted public key carried in the request as input parameters, and automatically generates a zero-knowledge proof file through a series of carefully constructed mathematical operations and logical deductions. This file embeds the key evidence required for user identity authentication, while avoiding direct exposure of any actual content about the user's private information, reflecting the core concept of zero-knowledge proof - the verifier can confirm the authenticity of a statement without knowing the specific information of the statement.
[0056] Next, the zero-knowledge proof file is securely transmitted to the designated user nodes in the blockchain network. These user nodes act as verifiers, responsible for executing the verification algorithm that matches the adopted zero-knowledge proof protocol. The user node can accurately determine whether the received zero-knowledge proof file is valid, and then confirm the authenticity of the identity of the user who initiated the request and the legitimacy of the verification request without revealing the user's private key or other personal sensitive data.
[0057] Through this series of operations based on zero-knowledge proof, the present invention not only enhances the security protection level of the user identity authentication link, but also ensures the maximum protection of user privacy, providing solid technical support for building a blockchain application environment that is both transparent and respects privacy.
[0058] Take an example of generating a zero-knowledge proof file, such as Figure 2 As shown:
[0059] 1. Scenario determination: Identify the scenarios that need to be proven, such as the user’s identity as the account holder.
[0060] 2. Model construction: Use technologies such as zk-SNARKs or zcash to build a zero-knowledge proof model.
[0061] 3. Data proof: Through zero-knowledge proof technology, users can prove that they meet specific conditions (such as the account balance is sufficient for transactions) without revealing sensitive information such as account balance.
[0062] 4. Verification: The legitimacy of the data is verified through a zero-knowledge proof model. Only authorized users can perform this operation to ensure the privacy of the verification process.
[0063] In the specific implementation, step 102 is performed: based on the zero-knowledge proof protocol, a zero-knowledge proof file is generated according to the user identity authentication request; after the zero-knowledge proof file is sent to the user node of the blockchain, step 103 is performed: based on the association between data sensitivity and homomorphic encryption algorithms of different strengths, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, to obtain a homomorphic encrypted file.
[0064] The matching between data sensitivity assessment and homomorphic encryption algorithm selection in the embodiment is intended to strengthen the security processing flow of transaction data through intelligent means. The present invention is based on strict data sensitivity analysis of user transaction data carried in transaction requests, divides the sensitivity level of data according to scientific and reasonable standards, and automatically selects a homomorphic encryption algorithm of appropriate strength based on this, thereby implementing precise homomorphic encryption operations.
[0065] Specifically, we first conduct a comprehensive analysis of transaction data through preset data classification rules and evaluation models to identify its sensitive attributes, including but not limited to the privacy of personal information, the importance of financial records, and the confidentiality requirements of trade secrets. Based on the evaluation results, the data sensitivity is divided into multiple levels, and each level corresponds to a homomorphic encryption algorithm of a specific strength. These algorithms strike a balance between encryption efficiency and security to meet the protection needs of data of different sensitivities.
[0066] Subsequently, the corresponding homomorphic encryption algorithm is dynamically selected based on the data sensitivity classification results. As an advanced encryption technology, homomorphic encryption allows specific types of calculations to be performed directly on encrypted data without first decrypting it, which ensures the confidentiality of information during data operations while maintaining the availability of data. In this way, for each transaction request, the system can adaptively apply the most appropriate data protection measures and generate the corresponding homomorphic encrypted files.
[0067] The generated homomorphic encryption file not only contains the transaction data that has been highly encrypted, but also embeds the metadata required to perform calculations, ensuring that subsequent processing can be carried out without decrypting the original data, effectively preventing the risk of data leakage and improving the security of the entire transaction system and the flexibility of data processing.
[0068] In summary, the present invention realizes dynamic adaptive encryption processing of transaction request data by constructing an intelligent association mechanism between data sensitivity and the strength of the homomorphic encryption algorithm, providing an efficient, flexible and highly personalized data protection solution for transaction environments with high security requirements.
[0069] In one embodiment, the transaction request is homomorphically encrypted to obtain a homomorphically encrypted file, including:
[0070] Based on differential privacy technology, the transaction request is subjected to data perturbation processing to obtain perturbation processing data;
[0071] The perturbation processed data is homomorphically encrypted to obtain a homomorphically encrypted file.
[0072] In the embodiment of the present invention, in order to further enhance the security and privacy protection of transaction data, a two-layer protection strategy combining differential privacy and homomorphic encryption is proposed to ensure the information security of transaction requests during transmission and processing. This method not only improves the privacy protection level of data, but also maintains the effective utilization of data. The specific operation steps are as follows:
[0073] First, differential privacy technology is used to perform data perturbation on the original transaction request. As a powerful means of privacy protection, differential privacy effectively prevents the behavior of inferring individual information based on query results by introducing random noise into transaction data. Even in the face of complex data analysis scenarios, it can ensure that the privacy of individual records is not leaked. In this process, the carefully designed noise addition mechanism ensures that the degree of perturbation is sufficient to interfere with the reasoning path of potential attackers while minimizing the impact on data analysis results, achieving a delicate balance between privacy protection and data utility. Therefore, after this stage of processing, the original transaction request is converted into perturbation processing data, which contains the randomization elements required to protect privacy.
[0074] Subsequently, a homomorphic encryption operation is performed on the perturbation processed data obtained above. Homomorphic encryption technology allows specific types of calculations to be performed directly on encrypted data without first decrypting it, which makes it possible to securely process data in a cloud environment or other third-party platforms. In this embodiment, a suitable homomorphic encryption algorithm is selected, and the perturbation processed data is encrypted and transformed according to its characteristics, and a homomorphic encrypted file is finally generated. This encrypted file supports computing operations while maintaining the data encryption state, so that the data can be processed in the encryption domain, such as aggregation, comparison, etc., while the real content and structure of the data remain hidden from the outside world, greatly enhancing the security attributes in the transaction process.
[0075] In summary, this embodiment builds a strict data protection link for transaction requests by integrating the perturbation processing of differential privacy and the advanced protection capabilities of homomorphic encryption. This method not only effectively prevents illegal access and analysis attempts to transaction information from outside, but also promotes the legal use and analysis of data.
[0076] In one embodiment, the relationship between data sensitivity and homomorphic encryption algorithms of different strengths is as follows: Figure 3 As shown:
[0077] Step 301: pre-processing different historical user transaction data to determine data keywords contained in the different historical user transaction data;
[0078] Step 302: Quantitatively evaluate the sensitivity of different data keywords using predefined data sensitivity configuration rules, and establish a mapping relationship between data keywords and data sensitivity classification types;
[0079] Step 303: Based on the mapping relationship, determine the data distribution of the data keywords in each historical user transaction data; based on the data distribution, calculate the data sensitivity of each historical user transaction data;
[0080] Step 304: Establish an association relationship between historical user transaction data with a data sensitivity greater than or equal to a first preset value and a fully homomorphic encryption algorithm corresponding to a homomorphic encryption algorithm of a first strength;
[0081] Step 305: Establish an association relationship between historical user transaction data with a data sensitivity less than a first preset value and greater than or equal to a second preset value and a partial homomorphic encryption algorithm corresponding to the homomorphic encryption algorithm of the second strength.
[0082] In a specific embodiment of the present invention, in order to achieve accurate and dynamic matching between data sensitivity and homomorphic encryption algorithms of different strengths, a set of meticulous data processing processes is adopted to optimize resource utilization while ensuring the protection of sensitive information.
[0083] First, we conduct comprehensive preprocessing of the collected historical user transaction data. This stage involves identifying and extracting key information elements in each transaction data, namely data keywords. These keywords usually include but are not limited to personal identification, transaction amount, timestamp, etc., which form the basis for data sensitivity assessment.
[0084] Next, a set of predefined data sensitivity configuration rule frameworks are used to conduct a systematic sensitivity quantitative analysis of the data keywords identified above. This configuration rule set assigns corresponding sensitivity levels to various data keywords based on industry standards and regulations, such as highly sensitive, moderately sensitive, and lowly sensitive, thereby establishing a clear mapping relationship between data keywords and their sensitive categories. This mapping not only takes into account the nature of the data itself, but also integrates industry practices and compliance requirements to ensure the objectivity and accuracy of the assessment.
[0085] Based on the above mapping relationship, statistical analysis is performed on the data keywords in each historical user transaction data to depict the spatial distribution map of data sensitivity. Through in-depth analysis of data distribution, the overall data sensitivity of each transaction data is further quantified. This process uses statistical methods to comprehensively consider the sensitivity of each keyword and its frequency of occurrence in the data, thereby achieving a multi-dimensional and accurate assessment of data sensitivity.
[0086] On this basis, according to the pre-set threshold standard, the data sensitivity is closely linked to the selection of homomorphic encryption algorithms. Specifically, for historical user transaction data whose data sensitivity reaches or exceeds the first preset value, a fully homomorphic encryption algorithm with the highest strength and capable of fully encrypted operations is used to maximize the security and privacy of the data during processing. For transaction data whose data sensitivity does not reach the first preset value but is not lower than the second preset value, a partially homomorphic encryption algorithm with moderate strength and supporting specific types of operations is matched with it to balance security requirements and computing efficiency.
[0087] In the above embodiment, it also includes:
[0088] Establish an association relationship between historical user transaction data with a data sensitivity less than a second preset value and an encryption algorithm of asymmetric encryption or symmetric encryption.
[0089] Specifically, the information in the historical user transaction data is identified and classified, and divided into detailed categories according to its sensitivity. By setting an objective second preset value as the sensitivity threshold, the historical transaction data with a sensitivity assessment result lower than this threshold can be effectively screened out. Such data, due to its relatively low sensitivity, is considered to be able to be processed with a more flexible or efficient encryption strategy in specific situations.
[0090] Furthermore, for these identified low-sensitivity transaction data, the relationship between them and the encryption algorithm is established, especially considering the applicability of two mainstream encryption technologies, asymmetric encryption and symmetric encryption. The present invention flexibly selects and applies the corresponding encryption algorithm to ensure that the efficiency and practicality of data processing are maximized without sacrificing security. The implementation of this step not only refines the data protection measures, but also reflects the idea of optimizing resource allocation, that is, intelligently matching the most suitable encryption method according to the sensitive attributes of different data.
[0091] Here is an example of homomorphic encryption:
[0092] 1. Data compression: Use the LZO algorithm to compress user information and transaction records to reduce data volume and improve processing efficiency.
[0093] 2. Generate a key pair: For each data that needs to be encrypted, generate a pair of asymmetric public and private keys locally. The public key is used for encryption and the private key is used for decryption.
[0094] 3. Data encryption: Use the public key to encrypt the compressed data m1 and m2 respectively to generate Epub(m1) and Epub(m2).
[0095] 4. Homomorphic operation: Without directly accessing the plaintext data, the receiver uses a specific function (such as Addpub) to perform operations on the encrypted data, such as Epub(m1)+Epub(m2).
[0096] 5. Decryption result: The private key is used locally to decrypt the result of the above homomorphic operation and restore the actual result of the addition operation, such as Dpriv(Addpub(Epub(m1), Epub(m2)))=m1+m2.
[0097] In specific implementation, step 103 is performed: based on the association between data sensitivity and homomorphic encryption algorithms of different strengths, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, and after obtaining the homomorphic encrypted file, step 104 is performed: based on a preset quantum secure channel, the homomorphic encrypted file is sent to the bank node of the blockchain using a quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is passed, it is confirmed that the user identity authentication request is passed, and the homomorphic encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; for the decrypted homomorphic encrypted file, the transaction processing operation corresponding to the transaction request is executed.
[0098] In the embodiment, the present invention utilizes a preconfigured quantum secure communication channel, combined with quantum key distribution (QKD) technology, to achieve secure transmission of homomorphically encrypted files to bank nodes in the blockchain network, as well as subsequent user identity authentication and transaction processing procedures, thereby ensuring the impeccable security and efficiency of the entire interaction process.
[0099] In the specific implementation, we first rely on the pre-deployed quantum security channel and use the quantum key distribution algorithm to generate and distribute encryption keys. This process uses the principles of quantum mechanics to ensure that the generation and transmission of keys are absolutely secure, and even in theory, they cannot be intercepted or cracked by a third party.
[0100] Subsequently, the bank node, as a key component of the blockchain network, is responsible for receiving the verification request for the zero-knowledge proof (ZKP) file initiated by the user node. Zero-knowledge proof technology plays a core role in this link. It enables users to prove their knowledge of a certain information to the bank node without revealing any additional information, thereby achieving identity authentication under privacy protection. Once the verification result shows that the zero-knowledge proof provided by the user meets the expected standards, it means that the user's identity authentication request has been successfully passed, laying a trust foundation for subsequent operations.
[0101] On this basis, the bank node uses the pre-stored encryption public key that uniquely corresponds to the user to perform decryption operations on the previously received homomorphic encrypted files. This step ensures that the data can only be accessed by legally authorized entities, further strengthening the security of information. The decryption process strictly follows the encryption algorithm design principles to ensure that data integrity and confidentiality are not compromised.
[0102] After the decryption process is completed, the bank node continues to execute the specific transaction processing operations corresponding to the transaction request in the homomorphic encryption file. This covers a series of steps from transaction instruction parsing, account status checking, fund transfer to transaction record update. All operations are completed while ensuring the homomorphic nature of data processing, that is, directly performing calculations in an encrypted state, ensuring the efficiency of transaction processing and the optimization of privacy protection.
[0103] In one embodiment, the bank node is further used to:
[0104] After confirming that the user identity authentication request is passed, the homomorphic encryption file is verified for compliance through a preset bank transaction detection smart contract;
[0105] If the compliance verification passes, the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node.
[0106] In one embodiment of the present invention, the functions of the bank node are further expanded to ensure the compliance and automation of the transaction processing process. Once the user identity authentication request is confirmed to be successful, the bank node immediately activates the preset bank transaction detection smart contract. As an automatically executed and self-verified program, the smart contract performs compliance checks on homomorphically encrypted files before decryption based on predetermined rules and logic. The design of this link not only strengthens the legality and standardization review of transaction data, but also significantly improves the efficiency and accuracy of transaction processing through the automatic execution characteristics of smart contracts.
[0107] Once the smart contract is executed and the transaction request is confirmed to meet all the preset compliance standards, the bank node will decrypt the homomorphically encrypted file based on the key corresponding to the user's encrypted public key that was previously stored. This step ensures the confidentiality of the data until the last moment, and the critical information is only decrypted after verification.
[0108] Through the above mechanism, the present invention not only realizes the security of user identity authentication and data encryption transmission, but also adds an automated compliance supervision function to the bank node by introducing smart contract technology, and constructs a comprehensive security processing flow from user identity authentication to transaction compliance review to data decryption processing.
[0109] In one embodiment, Figure 4 Also shown are:
[0110] Step 401: Generate a blockchain transaction record containing a transaction processing result; the blockchain transaction record includes a transaction amount, a timestamp, and a transaction status;
[0111] Step 402: Encapsulate the blockchain transaction record into a structured data packet; the data packet is established in accordance with the transaction format standard defined by the blockchain network;
[0112] Step 403: The blockchain transaction record is digitally signed and broadcast to the blockchain network; the digital signature is a digital signature generated by the bank node using its private key, which is used to verify the source and integrity of the transaction record.
[0113] In another embodiment of the present invention, in order to enhance the transparency, immutability and traceability of transactions, the system design integrates a complete blockchain transaction record generation and broadcasting mechanism.
[0114] Specifically, after the transaction processing process is completed, a blockchain transaction record is automatically generated. This record records the core elements of the transaction, including but not limited to the specific amount of the transaction, the exact timestamp of the generation of the record, and the final execution status of the transaction.
[0115] This transaction record is then encapsulated into a structured data packet that complies with the predefined blockchain network. The construction of this data packet complies with the transaction format standard of the blockchain network, ensuring its universality and compatibility in the entire distributed network, and facilitating the identification and processing of each participating node. Through such standardized encapsulation, not only the data transmission efficiency is optimized, but also a solid foundation is laid for subsequent data analysis and verification.
[0116] Next, in order to ensure the reliability of the source of the transaction records and the integrity of the data, advanced digital signature technology is used to sign the packaged blockchain transaction records. This digital signature is derived from the private key held by the bank node and is generated through a complex encryption algorithm. It serves as ironclad evidence of the authenticity and non-tampering of the transaction records, and constitutes an effective defense against any attempt to illegally modify the transaction information. The digitally signed transaction records are then broadcast to the extensive blockchain network, and all network participants can receive this record and verify the validity of the signature through the corresponding public key, thereby ensuring the accuracy of the transaction information and the legitimacy of the source.
[0117] For example, Figure 5 As shown:
[0118] 1. Receive a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a pre-set blockchain application layer interface that integrates a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data;
[0119] 2. Zero-knowledge proof construction and verification enhancement:
[0120] 2.1 Scenario determination and model construction: Clarify the scenario of user identity authentication and use advanced zk-SNARKs or zcash technology to build a zero-knowledge proof model designed for identity authentication. This model aims to prove that the user is the account holder without directly revealing the account details.
[0121] 2.2 Data Proof Generation: Based on the above zero-knowledge proof model, a zero-knowledge proof file is generated according to the user identity and encrypted public key in the user authentication request. The file can prove that the user has the corresponding authority without disclosing his private information, such as account balance or personal information.
[0122] 2.3 Verification mechanism integration: The generated zero-knowledge proof file is sent to the user node through the blockchain application layer interface. The user node executes the algorithm under the zero-knowledge proof protocol to verify the proof file, ensuring the privacy and efficiency of the verification process. Only authorized users can perform this operation, while ensuring the unforgeability of the verification process.
[0123] 2.4 Based on the correlation between data sensitivity and homomorphic encryption algorithms of different strengths, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request to obtain a homomorphic encrypted file;
[0124] 2.5 Based on the pre-set quantum secure channel, the homomorphic encrypted file is sent to the bank node of the blockchain using the quantum key distribution algorithm; the bank node is responsible for receiving the zero-knowledge proof verification result completed by the user node;
[0125] 3. Verification and execution process optimization:
[0126] 3.1 Zero-knowledge proof verification result processing: If the user node verifies the zero-knowledge proof document and passes, the bank node will receive the verification pass signal as direct evidence of the user's successful identity authentication request.
[0127] 3.2 Encrypted file decryption and transaction processing: On this basis, the bank node decrypts the homomorphic encrypted file based on the user's encrypted public key received previously through a quantum-safe key management mechanism. After successful decryption, the bank node will perform corresponding transaction operations on the processed transaction request to ensure the security and privacy of the transaction.
[0128] Through the above improvements, the entire process not only strengthens the security level of user identity authentication, but also protects user privacy through zero-knowledge proof technology, while using quantum security technology and homomorphic encryption to ensure the security and privacy of transaction data during transmission and processing.
[0129] A specific embodiment is given below to illustrate the specific application of the method of the present invention. In order to solve the privacy and security issues in blockchain financial services, the innovative method of this embodiment proposes to introduce homomorphic encryption and zero-knowledge proof combined modeling in each layer of security authentication and mechanism, and apply asymmetric keys for encryption, thereby improving the security of blockchain, thereby solving problems such as data leakage and identity theft.
[0130] Among them, 1. The blockchain system architecture is layered as follows:
[0131] 1. Blockchain layer: This layer uses blockchain technology, including public chains and consortium chains. In public chains, all nodes are equal and there are no special nodes. In consortium chains, nodes are authenticated and not all nodes can participate in the consensus process. In this system, we can use consortium chains to ensure the credibility of nodes.
[0132] 2. Data storage layer: This layer stores all user information, transaction records and other data. These data are encrypted and stored on the blockchain to ensure data security and non-tamperability.
[0133] 3. Identity authentication layer: This layer implements the function of digital identity authentication. Users need to provide personal information and biometrics to apply for a digital identity. This information will be stored on the blockchain, and the authenticity and uniqueness of the identity will be guaranteed through a multi-party authentication mechanism.
[0134] 4. Payment processing layer: This layer implements the payment processing function. Users can make online payments, transfers, and other operations through this layer. All transaction records will be recorded on the blockchain to ensure the security and traceability of transactions. At the same time, this layer can also support multiple payment methods, such as credit cards, Alipay, etc.
[0135] 5. Application layer: This layer is the top layer of the system, including various application scenarios, such as online shopping, online services, e-government, etc. These applications are based on the functions of digital identity authentication and payment processing.
[0136] Introducing homomorphic encryption and zero-knowledge proof combined modeling in security authentication and mechanisms at each layer, and applying asymmetric keys for encryption to improve security:
[0137] Take an example of establishing a blockchain in this embodiment, such as Figure 6 As shown:
[0138] 1. Build blockchain infrastructure
[0139] Design blockchain architecture: Determine the type of blockchain (such as consortium chain, public chain or private chain), and choose the appropriate consensus mechanism (such as PoW, PoS, dBFT, etc.) to meet transaction processing needs.
[0140] Develop blockchain application layer interface: Design and implement an interface with integrated quantum-resistant encryption algorithms (such as NTRU, LWE, McEliece, etc.) to ensure the security of data transmission and storage. This interface is responsible for receiving authentication requests and transaction requests from the user end.
[0141] 2. User identity verification and zero-knowledge proof
[0142] User registration: Users submit their identity and encrypted public key through the application layer interface. These data are encrypted and stored on the user node of the blockchain.
[0143] Zero-knowledge proof generation: When a user initiates a transaction request, the system uses zero-knowledge proof protocols (such as zk-SNARKs, zk-STARKs) to generate a zero-knowledge proof file based on the user's identity verification request. This step proves that the user has the correct identity without revealing specific information.
[0144] 3. Homomorphic encryption processing
[0145] Data sensitivity assessment: Based on the content of transaction data, the system automatically assesses its sensitivity level and selects a homomorphic encryption algorithm of corresponding strength (such as partial homomorphic encryption, fully homomorphic encryption) for encryption to ensure the privacy of data during processing.
[0146] Generate homomorphic encrypted files: Encrypt transaction requests to form homomorphic encrypted files, so that transaction data can still be calculated without decryption.
[0147] 4. Quantum secure transmission and bank node processing
[0148] Quantum secure channel establishment: Use quantum key distribution (QKD) technology, such as the BB84 protocol, to establish a secure communication channel to ensure that the transmission of homomorphically encrypted files cannot be eavesdropped or tampered with.
[0149] Data transmission to bank nodes: Homomorphically encrypted files are sent to bank nodes through quantum secure channels.
[0150] Verification and transaction processing: The bank node receives the zero-knowledge proof verification result from the user node. After the verification is passed, the bank uses the pre-stored user encryption public key to decrypt the homomorphic encrypted file. After that, the bank executes the transaction request and completes the transaction processing operation.
[0151] This process summarizes the construction and operation logic of the blockchain-based user transaction processing method, covering the entire chain from user identity authentication to transaction processing, with special emphasis on the application of advanced technologies such as quantum-resistant encryption, zero-knowledge proof, homomorphic encryption and quantum secure communication.
[0152] 2. The process of improving privacy protection through homomorphic encryption can be divided into the following steps:
[0153] 1. Data collection: Collect data that needs to be protected, such as user information, transaction records, etc.
[0154] 2. Data cleaning: Preprocess and clean the collected data to remove invalid and abnormal data to ensure the quality and correctness of the data.
[0155] 3. Encryption processing: Use homomorphic encryption technology to encrypt data and protect the privacy of data. Homomorphic encryption technology can calculate and process data without decryption, thus ensuring the security and privacy of data.
[0156] For example, homomorphic encryption mainly performs homomorphic operations on data instead of dividing the data into equal parts. The encryption process is:
[0157] 1. (Local) Use LZO algorithm to compress data
[0158] 2. (Locally) Generate a pair of public and private keys, public key pub and key priv. The public key is used for encryption and the key is used for decryption.
[0159] 3. (Locally) Use the public key pub to encrypt m1 and m2 respectively to obtain Epub(m1) and Epub(m2);
[0160] 4. (The receiver) uses the Addpub function to process Epub(m1) and Epub(m2), that is, Addpub(Epub(m1), Epub(m2));
[0161] 5. (Locally) decrypt Addpub(Epub(m1), Epub(m2)) using the key priv, i.e. Dpriv(Addpub(Epub(m1), Epub(m2)));
[0162] 6. Dpriv(Addpub(Epub(m1),Epub(m2))) is equal to m1+m2. The third party implements the addition operation of m1 and m2 in an encrypted state through step 3 above.
[0163] Specifically, the specific implementation method of each step in the above example is as follows:
[0164] 1. Data preprocessing
[0165] First, the data in the transaction request (including but not limited to user identity, transaction amount, transaction time, etc.) is compressed using the LZO algorithm to reduce the amount of data and improve encryption and transmission efficiency.
[0166] 2. Key Generation
[0167] In the local environment of the transaction initiator, a pair of public keys (pub) and private keys (priv) are generated using the selected homomorphic encryption algorithm (such as Paillier, BGV, CKKS, etc.). The public key is used for encryption, the private key is used for decryption, and supports specific types of homomorphic operations (such as addition or multiplication).
[0168] 3. Homomorphic Encryption Transaction Request
[0169] Use the public key (pub) to perform homomorphic encryption on each component of the compressed transaction request data to generate Epub(m1), Epub(m2),..., Epub(mi), where mi represents different data items in the transaction request.
[0170] 4. Data operations in encrypted state (taking addition as an example)
[0171] If transaction processing requires addition operations on two or more encrypted data items, such as calculating the total transaction amount, the characteristics of the homomorphic encryption algorithm can be used to perform the following operations on the receiving side (such as a bank node): Addpub(Epub(m1), Epub(m2)), where Addpub represents the addition operation function supported by the homomorphic encryption algorithm, which acts directly on the encrypted data without decrypting it first.
[0172] 5. Decryption result
[0173] The encrypted result after the addition operation is transmitted back to the transaction initiator or the authorized institution with the private key, and the encrypted operation result is decrypted using the private key (priv), that is, Dpriv(Addpub(Epub(m1),Epub(m2))), so as to restore the addition operation result of the original data, ensure the privacy of the data and complete the required operation at the same time.
[0174] 6. Generate homomorphic encryption files
[0175] All homomorphically encrypted transaction data and the calculation results completed in the encrypted state are integrated together to form a homomorphically encrypted file. This file contains not only the encrypted transaction details but also the encrypted calculation results, so that security verification and decryption can be performed when necessary.
[0176] Through the above steps, not only the homomorphic encryption of transaction requests is achieved, but also the necessary data operations are completed in an encrypted state, while ensuring the security and privacy of data in the entire process.
[0177] 4. Data analysis: Perform data analysis and mining on encrypted data to extract useful information and knowledge [extracted information includes user behavior records, user certificates, token information, etc.]. Since the data is encrypted, only authorized users can perform data analysis and mining, ensuring data security and privacy.
[0178] 5. Result output: The analysis results are output for authorized users to use. Since the data is encrypted, the analysis results must also be encrypted to ensure the privacy and security of the results.
[0179] 3. The process of improving privacy protection through zero-knowledge proof can be divided into the following steps:
[0180] Construct a zero-knowledge proof (ZKP) model method, such as Figure 7 As shown:
[0181] 1. Determine the scenario: Identify the scenario to be proved, for example, proving whether a person is a multiple of a specific number.
[0182] 2. Determine the participants: PEER nodes of on-chain institutions.
[0183] 3. Model selection: Combine Proof of Work and Proof of Stake models
[0184] 4. Design algorithm: generate random number algorithm to perform obfuscation calculation
[0185] 5. Implementation algorithm: Use ZKP library for zk-SNARK and zcash calculations
[0186] 6. Deployment algorithm: Deployment through blockchain
[0187] As an example, here is a summary of the methods for building a zero-knowledge proof (ZKP) model, combined with specific implementation steps and examples:
[0188] 1. Collect data: Collect data that needs to be protected, such as user information, transaction records, etc.
[0189] 2. Data processing: Preprocess and clean the collected data to remove invalid and abnormal data and ensure the quality and accuracy of the data.
[0190] 3. Build proof: Use zero-knowledge proof technology to prove the data and build a zero-knowledge proof model.
[0191] In the process of blockchain node communication, by building a zero-knowledge proof model, the communication information and authentication information are encrypted, compressed and transmitted, homomorphic encryption and zero-knowledge proof combined modeling are introduced in each layer of security authentication and mechanism, and asymmetric keys are used for encryption to improve the overall security of the blockchain and prevent data leakage, identity theft and other issues. Zero-knowledge proof technology can prove that certain data complies with specific rules without revealing the specific data value, thereby protecting the security and privacy of the data.
[0192] 4. Verification proof: Use the zero-knowledge proof model to verify the legitimacy and correctness of the data. Since the data is encrypted, only authorized users can verify the data, ensuring the security and privacy of the data.
[0193] 5. Result output: The verification results are output for authorized users to use. Since the data is encrypted, the verification results must also be encrypted to ensure the security and privacy of the results.
[0194] 4. This embodiment combines homomorphic modeling and zero-knowledge proof, and integrates asymmetric key encryption technology. It classifies user information and transaction data according to their importance, and divides them into three importance levels: A, B, and C. Three encryption technologies are configured for user information and transaction data of each importance level.
[0195] Level A: such as key authentication, certificates, accounts, etc., using homomorphic + zero-knowledge + asymmetric technologies
[0196] Level B: Using zero-knowledge proof
[0197] C level: using asymmetric encryption
[0198] For data with high importance, security is improved, and for data with low importance, verification efficiency is improved, thereby achieving blockchain security authentication.
[0199] The following is a summary of how to combine homomorphic modeling, zero-knowledge proof, and asymmetric key encryption technology to implement security strategies for data of different importance levels:
[0200] This embodiment innovatively integrates homomorphic modeling, zero-knowledge proof (ZKP) and asymmetric key encryption technology to provide layered security for user information and transaction data on the blockchain platform. Data is divided into three levels, A, B, and C, according to its importance, and corresponding encryption measures are configured for each level, so as to achieve the goal of enhancing the security of highly sensitive data and optimizing the verification efficiency of low-sensitivity data.
[0201] 1. Level A (key data):
[0202] Data types: including but not limited to key authentication information, digital certificates, core accounting records, etc.
[0203] Encryption strategy: A comprehensive protection strategy of homomorphic encryption + zero-knowledge proof + asymmetric encryption is adopted. Homomorphic encryption allows calculations to be performed directly on encrypted data to ensure confidentiality during data processing; zero-knowledge proof ensures that specific information is not leaked during data verification; asymmetric encryption provides high-intensity protection for data during transmission and storage. The triple protection mechanism builds a solid security barrier for the most sensitive data.
[0204] 2. Class B (important data):
[0205] Type of data: Information or transactions involving a certain degree of sensitivity.
[0206] Encryption strategy: Mainly applies zero-knowledge proof. Through ZKP, the authenticity of certain statements can be proved without revealing the original information, effectively protecting data privacy while supporting necessary verification operations.
[0207] 3. Class C (general data):
[0208] Data types: Relatively public or low-risk user information and transaction records.
[0209] Encryption strategy: Asymmetric encryption is used. This encryption method is simple and efficient, suitable for protecting the privacy of less sensitive data, and is also convenient for rapid verification, improving the overall processing efficiency of the system.
[0210] This strategy not only strengthens the protection of key information assets and prevents the leakage of important data through differentiated encryption processing, but also adopts a more flexible and efficient encryption scheme for data with frequent verification requirements but lower sensitivity, ensuring the overall performance of the system and user experience.
[0211] The technical solution of this embodiment has shown significant beneficial effects in multiple dimensions, which are summarized as follows:
[0212] 1. Strengthen data security
[0213] The present invention stores user transaction data on the blockchain, a distributed ledger, and integrates the protection of quantum-resistant encryption algorithms to ensure that the data is not only widely distributed and difficult to tamper with, but also highly encrypted during transmission and storage. Only authorized nodes holding the corresponding private keys can access and modify the data, thus building an indestructible data security barrier to effectively resist internal and external security threats.
[0214] 2. Enhance traceability and transparency
[0215] All transaction requests and their processing results are faithfully recorded on the blockchain, forming a transaction chain with an unalterable timestamp, ensuring that every transaction is traceable and auditable. This increase in transparency greatly enhances the credibility of transactions, provides users and regulators with reliable historical records, and is conducive to establishing a more fair and just trading environment.
[0216] 3. Efficient identity authentication mechanism
[0217] By using the zero-knowledge proof protocol and the multi-dimensional cross-validation of the user identity authentication matrix, this embodiment realizes a fast and accurate user identity authentication process. Through the multi-party authentication mechanism, not only the authentication time is greatly shortened, but also the authenticity and security of user information are further consolidated, and the overall service efficiency and user experience are improved.
[0218] 4. Flexible and diverse payment integration
[0219] The system design fully considers the payment habits and convenience of users, supports the integration of multiple mainstream payment methods including but not limited to credit cards, Alipay, etc., and provides users with convenient and flexible online payment and transfer methods. This wide range of payment method support meets the needs of diversified markets and promotes the smoothness and popularity of transactions.
[0220] 5. Wide range of application scenarios adaptability
[0221] Given its strong security foundation, efficient processing flow and high flexibility, the transaction processing method of the present invention can be widely applied to a variety of business scenarios, from online shopping, e-commerce to e-government, financial services and other fields. It can be seamlessly connected to provide customized secure transaction solutions, thereby promoting the comprehensive development and application innovation of the digital economy.
[0222] Of course, it is understandable that the above detailed process may have other variations, and the relevant variations should all fall within the protection scope of the present invention.
[0223] The embodiment of the present invention provides a user transaction processing scheme based on blockchain, including: receiving a user identity authentication request and a transaction request initiated by a user through the application layer of blockchain through a preset blockchain application layer interface with an integrated quantum resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data; based on a zero-knowledge proof protocol, generating a zero-knowledge proof file according to the user identity authentication request; sending the zero-knowledge proof file to a user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing a zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol; and using data sensitivity and different strength homomorphic encryption to generate a zero-knowledge proof file. According to the correlation relationship between the encryption algorithms, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, so as to obtain a homomorphically encrypted file; based on the preset quantum security channel, the homomorphically encrypted file is sent to the bank node of the blockchain by the quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is passed, it is confirmed that the user identity authentication request is passed, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; for the decrypted homomorphic encrypted file, the transaction processing operation corresponding to the transaction request is executed. The embodiment of the present invention introduces a zero-knowledge proof protocol, so that users can complete identity authentication without disclosing actual identity information, which significantly enhances privacy protection during transactions. It can also verify user identities without exposing user identity information, thereby improving the efficiency of identity authentication. At the same time, the use of quantum-resistant encryption algorithms and quantum secure channels ensures that transaction data can remain secure even in the face of potential future quantum computer attacks. The strength of the homomorphic encryption algorithm is dynamically selected according to the sensitivity of the transaction data, which not only ensures the encryption state of the data during the processing process, but also allows specific computing operations without decryption, thereby improving the flexibility and efficiency of data processing, while also maintaining the privacy of the data and achieving differentiated protection for data of different importance. Through zero-knowledge proof and homomorphic encryption technology, the present invention allows users to perform identity authentication and transactions without disclosing any sensitive information.
[0224] The embodiment of the present invention also provides a user transaction processing device based on blockchain, as described in the following embodiment. Since the principle of solving the problem by the device is similar to that of the user transaction processing method based on blockchain, the implementation of the device can refer to the implementation of the user transaction processing method based on blockchain, and the repeated parts will not be repeated.
[0225] The embodiment of the present invention also provides a user transaction processing device based on blockchain, which is used to enable users to complete identity authentication without disclosing actual identity information, enhance privacy protection during transactions, maintain data privacy, and improve the efficiency and accuracy of user transaction identity authentication and transaction processing. Figure 8 As shown, the device comprises:
[0226] The request receiving module 801 is used to receive a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a preset blockchain application layer interface integrated with a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; and the transaction request carries user transaction data;
[0227] The zero-knowledge proof file generation module 802 is used to generate a zero-knowledge proof file based on the zero-knowledge proof protocol and the user identity authentication request; send the zero-knowledge proof file to the user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol;
[0228] The homomorphic encryption module 803 is used to perform homomorphic encryption on the transaction request according to the association relationship between data sensitivity and homomorphic encryption algorithms of different strengths, and to obtain a homomorphic encrypted file according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request;
[0229] The transaction processing module 804 is used to send the homomorphically encrypted file to the bank node of the blockchain based on a pre-set quantum secure channel and a quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is successful, it is confirmed that the user identity authentication request is successful, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; for the decrypted homomorphically encrypted file, the transaction processing operation corresponding to the transaction request is executed.
[0230] In one embodiment, the user identity authentication request also includes: a user identity authentication matrix generated by a user terminal; the user identity authentication matrix is a multi-dimensional cross-validation matrix of the user's digital signature, biometric key, user spatiotemporal location verification information, user behavioral biometric information, and user social network verification.
[0231] In one embodiment, the transaction request is homomorphically encrypted to obtain a homomorphically encrypted file, including:
[0232] Based on differential privacy technology, the transaction request is subjected to data perturbation processing to obtain perturbation processing data;
[0233] The perturbation processed data is homomorphically encrypted to obtain a homomorphically encrypted file.
[0234] In one embodiment, the relationship between data sensitivity and homomorphic encryption algorithms of different strengths is as follows:
[0235] Pre-process different historical user transaction data to determine the data keywords contained in different historical user transaction data;
[0236] Use predefined data sensitivity configuration rules to quantitatively evaluate the sensitivity of different data keywords and establish a mapping relationship between data keywords and data sensitivity classification types;
[0237] Based on the mapping relationship, determine the data distribution of the data keywords in each historical user transaction data; based on the data distribution, calculate the data sensitivity of each historical user transaction data;
[0238] Establishing an association relationship between historical user transaction data with a data sensitivity greater than or equal to a first preset value and a fully homomorphic encryption algorithm corresponding to a homomorphic encryption algorithm of a first strength;
[0239] Establish an association relationship between historical user transaction data whose data sensitivity is less than a first preset value and greater than or equal to a second preset value and a partial homomorphic encryption algorithm corresponding to the homomorphic encryption algorithm of the second strength.
[0240] In one embodiment, it further includes:
[0241] Establish an association relationship between historical user transaction data with a data sensitivity less than a second preset value and an encryption algorithm of asymmetric encryption or symmetric encryption.
[0242] In one embodiment, the bank node is further used to:
[0243] After confirming that the user identity authentication request is passed, the homomorphic encryption file is verified for compliance through a preset bank transaction detection smart contract;
[0244] If the compliance verification passes, the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node.
[0245] In one embodiment, it further includes:
[0246] Generate a blockchain transaction record containing a transaction processing result; the blockchain transaction record includes a transaction amount, a timestamp, and a transaction status;
[0247] Encapsulating the blockchain transaction record into a structured data packet; the data packet is established in a transaction format standard defined by the blockchain network;
[0248] The blockchain transaction record is digitally signed and broadcast to the blockchain network; the digital signature is a digital signature generated by the bank node using its private key, which is used to verify the source and integrity of the transaction record.
[0249] The embodiment of the present invention provides an embodiment of a computer device for implementing all or part of the content of the above-mentioned blockchain-based user transaction processing method. The computer device specifically includes the following content:
[0250] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between related devices; the computer device can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the computer device can be implemented with reference to the embodiment for realizing the user transaction processing method based on blockchain and the embodiment for realizing the user transaction processing device based on blockchain, the contents of which are incorporated herein and the repeated parts are not repeated.
[0251] Fig. 9 FIG. 1 is a schematic block diagram of the system structure of the computer device 1000 according to an embodiment of the present application. Fig. 9 As shown, the computer device 1000 may include a central processor 1001 and a memory 1002; the memory 1002 is coupled to the central processor 1001. It is worth noting that Fig. 9 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0252] In one embodiment, the user transaction processing function based on blockchain can be integrated into the central processor 1001. The central processor 1001 can be configured to perform the following control:
[0253] Receive a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a preset blockchain application layer interface that integrates a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data;
[0254] Based on the zero-knowledge proof protocol, generating a zero-knowledge proof file according to the user identity authentication request; sending the zero-knowledge proof file to the user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol;
[0255] Based on the correlation between data sensitivity and homomorphic encryption algorithms of different strengths, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request to obtain a homomorphic encrypted file;
[0256] Based on a preset quantum secure channel, the homomorphically encrypted file is sent to a bank node of the blockchain using a quantum key distribution algorithm; the bank node is used to receive a result of verifying the zero-knowledge proof file from a user node; if the result indicates that the verification is successful, the user identity authentication request is confirmed to be successful, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; and the transaction processing operation corresponding to the transaction request is executed on the decrypted homomorphically encrypted file.
[0257] In another embodiment, the blockchain-based user transaction processing device can be configured separately from the central processor 1001. For example, the blockchain-based user transaction processing device can be configured as a chip connected to the central processor 1001, and the blockchain-based user transaction processing function can be implemented through the control of the central processor.
[0258] like Fig. 9 As shown, the computer device 1000 may also include: a communication module 1003, an input unit 1004, an audio processor 1005, a display 1006, and a power supply 1007. It is worth noting that the computer device 1000 does not necessarily have to include Fig. 9 In addition, the computer device 1000 may also include Fig. 9 For components not shown, reference may be made to the prior art.
[0259] like Fig. 9 As shown, the central processor 1001 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor devices and / or logic devices. The central processor 1001 receives inputs and controls the operations of various components of the computer device 1000 .
[0260] The memory 1002 may be, for example, a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices, or one or more thereof. The memory may store the above-mentioned information related to the device, and may also store a program for executing the related information. The CPU 1001 may execute the program stored in the memory 1002 to implement information storage or processing, etc.
[0261] The input unit 1004 provides input to the CPU 1001. The input unit 1004 is, for example, a key or a touch input device. The power supply 1007 is used to provide power to the computer device 1000. The display 1006 is used to display display objects such as images and text. The display may be, for example, an LCD display, but is not limited thereto.
[0262] The memory 1002 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 1002 may also be some other type of device. The memory 1002 includes a buffer memory 1021 (sometimes referred to as a buffer). The memory 1002 may include an application / function storage unit 1022, which is used to store application programs and function programs or processes for executing the operation of the computer device 1000 through the central processor 1001.
[0263] The memory 1002 may also include a data storage unit 1023 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the computer device. The driver storage unit 1024 of the memory 1002 may include various drivers for the computer device for communication functions and / or for executing other functions of the computer device (such as messaging applications, address book applications, etc.).
[0264] The communication module 1003 is a transmitter / receiver 1003 that sends and receives signals via the antenna 1008. The communication module (transmitter / receiver) 1003 is coupled to the central processor 1001 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0265] Based on different communication technologies, multiple communication modules 1003 may be provided in the same computer device, such as a cellular network module, a Bluetooth module and / or a wireless local area network module, etc. The communication module (transmitter / receiver) 1003 is also coupled to a speaker 1009 and a microphone 1010 via an audio processor 1005 to provide an audio output via the speaker 1009 and receive an audio input from the microphone 1010, thereby realizing a common telecommunication function. The audio processor 1005 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 1005 is also coupled to the central processor 1001, so that recording can be performed on the local machine through the microphone 1010, and the sound stored on the local machine can be played through the speaker 1009.
[0266] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned blockchain-based user transaction processing method is implemented.
[0267] An embodiment of the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the above-mentioned blockchain-based user transaction processing method is implemented.
[0268] The embodiment of the present invention provides a user transaction processing scheme based on blockchain, including: receiving a user identity authentication request and a transaction request initiated by a user through the application layer of blockchain through a preset blockchain application layer interface with an integrated quantum resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; the transaction request carries user transaction data; based on a zero-knowledge proof protocol, generating a zero-knowledge proof file according to the user identity authentication request; sending the zero-knowledge proof file to a user node of the blockchain; the user node is used to verify the zero-knowledge proof file by executing a zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol; and using data sensitivity and different strength homomorphic encryption to generate a zero-knowledge proof file. According to the correlation relationship between the encryption algorithms, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, so as to obtain a homomorphically encrypted file; based on the preset quantum security channel, the homomorphically encrypted file is sent to the bank node of the blockchain by the quantum key distribution algorithm; the bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is passed, it is confirmed that the user identity authentication request is passed, and the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node; for the decrypted homomorphic encrypted file, the transaction processing operation corresponding to the transaction request is executed. The embodiment of the present invention introduces a zero-knowledge proof protocol, so that users can complete identity authentication without disclosing actual identity information, which significantly enhances privacy protection during transactions. It can also verify user identities without exposing user identity information, thereby improving the efficiency of identity authentication. At the same time, the use of quantum-resistant encryption algorithms and quantum secure channels ensures that transaction data can remain secure even in the face of potential future quantum computer attacks. The strength of the homomorphic encryption algorithm is dynamically selected according to the sensitivity of the transaction data, which not only ensures the encryption state of the data during the processing process, but also allows specific computing operations without decryption, thereby improving the flexibility and efficiency of data processing, while also maintaining the privacy of the data and achieving differentiated protection for data of different importance. Through zero-knowledge proof and homomorphic encryption technology, the present invention allows users to perform identity authentication and transactions without disclosing any sensitive information.
[0269] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0270] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0271] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0272] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0273] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A user transaction processing method based on blockchain, characterized in that: include: Receive a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a preset blockchain application layer interface that integrates a quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; The transaction request carries user transaction data; Based on the zero-knowledge proof protocol, generating a zero-knowledge proof document according to the user identity authentication request; Send the zero-knowledge proof file to the user node of the blockchain; The user node is used to verify the zero-knowledge proof file by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol; Based on the correlation between data sensitivity and homomorphic encryption algorithms of different strengths, the transaction request is homomorphically encrypted according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request to obtain a homomorphic encrypted file; Based on a pre-set quantum secure channel, the homomorphically encrypted file is sent to the bank node of the blockchain using a quantum key distribution algorithm; The bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is successful, it confirms that the user identity authentication request is successful, and decrypts the homomorphically encrypted file according to the key of the corresponding user encryption public key pre-stored in the bank node; For the homomorphically encrypted file after decryption, execute the transaction processing operation corresponding to the transaction request.
2. The method according to claim 1, characterized in that The user identity authentication request also includes: a user identity authentication matrix generated by a user terminal; the user identity authentication matrix is a multi-dimensional cross-validation matrix of the user's digital signature, biometric key, user spatiotemporal location verification information, user behavior biometric information, and user social network verification.
3. The method according to claim 1, characterized in that The transaction request is homomorphically encrypted to obtain a homomorphically encrypted file, including: Based on differential privacy technology, the transaction request is subjected to data perturbation processing to obtain perturbation processing data; The perturbation processed data is homomorphically encrypted to obtain a homomorphically encrypted file.
4. The method according to claim 1, characterized in that The relationship between data sensitivity and homomorphic encryption algorithms of different strengths is as follows: Pre-process different historical user transaction data to determine the data keywords contained in different historical user transaction data; Use predefined data sensitivity configuration rules to quantitatively evaluate the sensitivity of different data keywords and establish a mapping relationship between data keywords and data sensitivity classification types; Based on the mapping relationship, determine the data distribution of the data keywords in each historical user transaction data; based on the data distribution, calculate the data sensitivity of each historical user transaction data; Establishing an association relationship between historical user transaction data with a data sensitivity greater than or equal to a first preset value and a fully homomorphic encryption algorithm corresponding to a homomorphic encryption algorithm of a first strength; Establish an association relationship between historical user transaction data whose data sensitivity is less than a first preset value and greater than or equal to a second preset value and a partial homomorphic encryption algorithm corresponding to the homomorphic encryption algorithm of the second strength.
5. The method according to claim 4, characterized in that Also includes: Establish an association relationship between historical user transaction data with a data sensitivity less than a second preset value and an encryption algorithm of asymmetric encryption or symmetric encryption.
6. The method according to claim 1, characterized in that The bank node is also used to: After confirming that the user identity authentication request is passed, the homomorphic encryption file is verified for compliance through a preset bank transaction detection smart contract; If the compliance verification passes, the homomorphically encrypted file is decrypted according to the key of the corresponding user encryption public key pre-stored in the bank node.
7. The method according to claim 1, characterized in that Also includes: Generate a blockchain transaction record containing a transaction processing result; the blockchain transaction record includes a transaction amount, a timestamp, and a transaction status; Encapsulating the blockchain transaction record into a structured data packet; the data packet is established in a transaction format standard defined by the blockchain network; The blockchain transaction record is digitally signed and broadcast to the blockchain network; the digital signature is a digital signature generated by the bank node using its private key, which is used to verify the source and integrity of the transaction record.
8. A user transaction processing device based on blockchain, characterized in that: include: A request receiving module, used to receive a user identity authentication request and a transaction request initiated by a user through the application layer of the blockchain through a preset blockchain application layer interface with an integrated quantum-resistant encryption algorithm; the user identity authentication request carries a user identity identifier and a user encryption public key; The transaction request carries user transaction data; A zero-knowledge proof file generation module, used to generate a zero-knowledge proof file based on the zero-knowledge proof protocol and according to the user identity authentication request; Send the zero-knowledge proof file to the user node of the blockchain; The user node is used to verify the zero-knowledge proof file by executing the zero-knowledge proof algorithm corresponding to the zero-knowledge proof protocol; A homomorphic encryption module, which is used to perform homomorphic encryption on the transaction request according to the homomorphic encryption algorithm of the strength corresponding to the data sensitivity of the user transaction data carried in the transaction request, based on the association relationship between data sensitivity and homomorphic encryption algorithms of different strengths, to obtain a homomorphic encrypted file; A transaction processing module, configured to send the homomorphically encrypted file to a bank node of the blockchain using a quantum key distribution algorithm based on a pre-set quantum secure channel; The bank node is used to receive the result of verifying the zero-knowledge proof file sent by the user node; if the result indicates that the verification is successful, it confirms that the user identity authentication request is successful, and decrypts the homomorphically encrypted file according to the key of the corresponding user encryption public key pre-stored in the bank node; For the homomorphically encrypted file after decryption, execute the transaction processing operation corresponding to the transaction request.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Multi-level transaction security authentication method based on supply chain finance
CN119398789A
A multi-level transaction security authentication method based on supply chain finance
CN119398789B
Wireless payment system of intelligent consumption machine and transaction protection method thereof
CN119693001A
Financial transaction verification method and system based on block chain network, and electronic equipment
CN119809645A
Secure storage method and system for cross-border e-commerce background data
CN119939630A
