Data processing method and device
By verifying and encrypting the user's second verification information during the user transaction process and storing it on the blockchain, the problem of insufficient security of digital resource transactions in the prior art is solved, and the anonymity and transaction of user identity information are realized High security of data.
Patent Information
- Application Number
- CN202011523669.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-21
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2040-12-21
AI Technical Summary
In the prior art, there are security problems in digital resource transactions based on users. After the user's verification information is obtained by the attacker, the digital resource can be easily stolen, resulting in the security of transaction data being in danger.
By receiving data transaction requests sent by at least two users, after verifying the first verification information, a verification information collection table is sent to the user, the user's second verification information is received and encrypted, and stored on the blockchain, ensuring that during the transaction process, the transaction process is Both the first verification information and the second verification information are verified.
It realizes that in the process of user transactions, not only does the first verification information be verified, but the second verification information entered by the user must be encrypted and stored on the blockchain to ensure the anonymity of the identity information of the user during online transactions, thereby improving the transaction. Data security.
Smart Images

Figure CN114648334B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of computer technology, and more particularly to a data processing method. One or more embodiments of this specification also relate to a data processing apparatus, a computing device, and a computer-readable storage medium. Background Art
[0002] With the popularization of the Internet, more and more online transactions are conducted through the Internet, and the vast majority of online transactions are completed based on the user's digital resources. There are many forms of digital resources, such as virtual currency, virtual property, digital currency, etc. In this case, the security of online transactions has become a concern for everyone. However, to complete online transactions based on the user's digital resources, generally only a wallet address and password are needed to operate the entry and exit of digital resources, which makes the "password" the only authentication method and identity identification of the wallet owner. Once the password is obtained by the attacker, the assets of the wallet can be easily stolen, making the security of the transaction data precarious. Therefore, a transaction method that can solve the above security is urgently needed. Summary of the invention
[0003] In view of this, the present specification provides a data processing method. One or more embodiments of the present specification also relate to a data processing device, a computing device, and a computer-readable storage medium to solve the technical defects existing in the prior art.
[0004] According to a first aspect of an embodiment of this specification, a data processing method is provided, including:
[0005] Receiving data transaction requests sent by at least two users, wherein each data transaction request carries transaction data of a target object and first verification information;
[0006] When the first verification information is verified successfully, sending a verification information collection form for the target object to the at least two users;
[0007] receiving second verification information sent by the at least two users based on the verification information collection table, encrypting the second verification information, and storing the encrypted second verification information;
[0008] Based on the encrypted second verification information and the transaction data of the target object, a data transaction request of the target object is processed.
[0009] According to a second aspect of an embodiment of this specification, there is provided a data processing device, including:
[0010] A receiving module is configured to receive data transaction requests sent by at least two users, wherein each data transaction request carries transaction data of a target object and first verification information;
[0011] a sending module, configured to send a verification information collection form for the target object to the at least two users when the first verification information is verified;
[0012] an encryption storage module, configured to receive the second verification information sent by the at least two users based on the verification information collection table, encrypt the second verification information, and store the encrypted second verification information;
[0013] The processing module is configured to process the data transaction request of the target object based on the encrypted second verification information and the transaction data of the target object.
[0014] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0015] Memory and processor;
[0016] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, wherein the processor implements the steps of the data processing method when executing the computer-executable instructions.
[0017] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of any one of the data processing methods are implemented.
[0018] An embodiment of the present specification implements a data processing method and device, wherein the data processing method includes receiving data transaction requests sent by at least two users, wherein each data transaction request carries transaction data of a target object and first verification information; when the first verification information is verified, sending a verification information collection form for the target object to the at least two users; receiving second verification information sent by the at least two users based on the verification information collection form, encrypting the second verification information, and storing the encrypted second verification information; and processing the data transaction request of the target object based on the encrypted second verification information and the transaction data of the target object.
[0019] The data processing method provided in the embodiment of this specification sends a verification information collection form to the user when the first verification information sent by the user is verified, encrypts the second verification information entered by the user in the verification information collection form, and stores the encrypted second verification information in the blockchain to ensure that during the user transaction, not only the first verification information is verified, but also the second verification information entered by the user is encrypted and stored in the blockchain to ensure that when the user conducts online transactions, both the first verification information and the second verification information need to be verified, thereby achieving the security of the transaction data. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of a data processing method provided by an embodiment of this specification applied to a blockchain;
[0021] Figure 2 is a flow chart of a data processing method provided by an embodiment of this specification;
[0022] Figure 3 It is a flowchart of a data processing method provided by an embodiment of this specification;
[0023] Figure 4 is a structural schematic diagram of a data processing device provided by an embodiment of this specification;
[0024] Figure 5 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0025] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0026] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0027] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0028] First, the terms involved in one or more embodiments of this specification are explained.
[0029] Risk control stage 2: In the transaction risk identification system, a second verification is performed for events suspected of risk. For example, after entering the payment password in Alipay, the system forces the user to enter a text message to verify the identity.
[0030] Hash function: A computational method that is irreversible and cannot be reversed to the original input value.
[0031] Hash: The operation of performing cryptographic calculations through a hash function.
[0032] Merkle tree: Hash each underlying information block, merge the two adjacent hash calculation results into a string and hash it again, and continue similar operations until only one node at the top remains, which is the root of the Merkle tree.
[0033] In the process of online transactions, encrypted digital resources are a commonly used method to ensure the security of transaction data, and the advantage of encrypted digital resources is that they are highly anonymized, making all transactions untraceable. Among them, digital resources include virtual currency, virtual property, etc., and this specification does not make any restrictions on this. However, it is precisely because of its high degree of anonymity that only an address for the storage of digital resources and verification information are needed to operate the entry and exit of all assets, which makes the verification information the only verification method and identity identification of the owner of the digital resource. Once the verification information is obtained by the attacker, the digital resource can be easily stolen; if the user's reserved information, face verification, etc. are added for verification, the anonymity of the encrypted digital resources will be damaged. The data processing method provided in the embodiment of this specification can not only ensure the security of transaction data, but also maintain the anonymity of the transaction user, so that the identity information of the digital resource holder cannot be traced.
[0034] In this specification, a data processing method is provided. This specification also relates to a data processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0035] See also Figure 1 , Figure 1 A schematic diagram showing a data processing method provided according to an embodiment of the present specification applied to a blockchain.
[0036] Figure 1 a in the block chain is the previous block chain node of block chain node b. Figure 1 In the block chain, c is the next block chain node of block chain node b. Block chain node b not only stores the hash value, timestamp and block header information of the previous block chain node, but also stores the transaction root hash value calculated by hashing based on the transaction data of multiple users, and stores the verification root hash value calculated by hashing based on the verification information of multiple users.
[0037] In actual applications, the blockchain receives data transaction requests from multiple users, which include transaction data and first verification information for the target object from the user, obtains transaction data from two adjacent users for the target object, performs hash encryption operations on the transaction data corresponding to each user, obtains a first hash value, then obtains two adjacent first hash values for hash operations, obtains a second hash value, and then obtains two adjacent second hash values for hash operations to obtain a transaction root hash value; at the same time, when the first verification information passes, multiple users receive second verification information customized according to the data transaction information, perform hash encryption operations on the second verification information corresponding to the multiple users, obtain a first hash value, then obtain two adjacent first hash values for hash operations, obtain a second hash value, and then obtain two adjacent second hash values for hash operations to obtain a verification root hash value; the blockchain node stores the transaction root hash values and verification root hash values corresponding to the multiple users in the node of the blockchain. This ensures that even if the transaction root hash value or the verification root hash value is stolen, the user of the transaction data cannot be traced back based on the information.
[0038] Furthermore, when the blockchain node receives a transaction query request from a target user, wherein the transaction query request carries transaction data, first verification information, and second verification information, it is necessary not only to verify whether the first verification information passes, but also to verify whether the encrypted transaction data and the second verification information pass. If the first verification information, the encrypted transaction data, and the second verification information all pass, query processing of the target user data transaction information can be realized.
[0039] In the embodiments of this specification, by storing encrypted transaction data and verification information of multiple users in blockchain nodes, not only the security of data transaction information and verification information can be guaranteed, but also even if an attacker steals the encrypted data transaction information or verification information, the identity information of a specific user cannot be obtained based on the information, thereby achieving a high degree of anonymity of the transaction.
[0040] The following combination Figure 2 , Figure 2 A flow chart of a data processing method provided by an embodiment of the present specification is shown, which specifically includes the following steps.
[0041] Step 202: receiving data transaction requests sent by at least two users, wherein each data transaction request carries transaction data of a target object and first verification information.
[0042] The data transaction request may be understood as a transaction request of a user for a target object. For example, if a user makes a payment transaction request for commodity A, the target object is commodity A.
[0043] Specifically, the blockchain receives data transaction requests sent by at least two users, wherein each data transaction request carries the transaction data of the target object and the first verification information. In actual applications, the transaction data of the target object carried in the data transaction request can be understood as the transaction amount, address information and other data information of the user for the target object, and the first verification information can be understood as verification information such as the user's transaction password.
[0044] For example, user A sends a data transaction request for commodity A to the blockchain node. The data transaction request carries transaction data such as the transaction amount A, transaction address A, and transaction password a of commodity A.
[0045] Step 204: When the first verification information is verified successfully, a verification information collection form for the target object is sent to the at least two users.
[0046] The verification information collection table may be understood as an information collection table generated based on the transaction data of the user for the target object, and the data content collected in the information collection table is used to verify the identity of the user.
[0047] Specifically, when the first verification information in the data transaction request sent by the user is verified, a verification information collection form for the target object is sent to the user. It should be noted that, in actual applications, the first verification information can be a numeric password or gesture password entered by the user during the transaction, and the verification information required by the verification information collection form is different from the first verification information, and can be reserved information similar to a password to verify the identity of the user.
[0048] In order to achieve transaction security, the transaction data of the user for the target object is encrypted to prevent the transaction data between users from being tampered with; specifically, before sending the verification information collection form for the target object to the at least two users when the first verification information is verified, it also includes:
[0049] The transaction data of the target object is hashed and encrypted based on the at least two users, and the encrypted transaction data is stored in a storage node of the blockchain.
[0050] Specifically, after the blockchain receives the data transaction request for the target object sent by the user, the transaction data of the target object carried in the data transaction request is hashed and stored in the storage node of the blockchain. In practical applications, in order to prevent the transaction data between users from being tampered with and ensure the correctness of the transaction, the transaction data for the target object in each user's data transaction request is encrypted and stored.
[0051] For example, the transaction data for commodity A carried in the data transaction request of user A includes transaction data such as the amount of commodity A is A, the transaction time is A, etc., then the transaction data is encrypted and stored in the storage node of the blockchain.
[0052] In the embodiments of this specification, the transaction data of the user for the target object is encrypted and stored in the storage node of the blockchain to ensure that the transaction data between users is not tampered with, which not only maintains the security of the transaction, but also ensures the accuracy of the transaction content between users.
[0053] In practical applications, how to encrypt the transaction data of the user for the target object so that the transaction data is secure is a problem to be solved. The data processing method provided in the embodiment of this specification encrypts the transaction data. The specific implementation method is that the transaction data for the target object based on the at least two users is hashed and encrypted, including:
[0054] Obtain transaction data of two adjacent users for the target object and perform hash operations on them to obtain a first hash value;
[0055] Perform a hash operation based on two adjacent first hash values to obtain a second hash value;
[0056] A hash operation is performed based on two adjacent second hash values to obtain a transaction root hash value, and the transaction root hash value is stored in a storage node of the blockchain.
[0057] Specifically, the transaction data of two adjacent users for the target object are obtained, and the transaction data corresponding to each user is hashed to obtain a first hash value after the hash operation. Then, two adjacent first hash values are obtained to perform hash operation to obtain a second hash value. Two adjacent second hash values can be obtained to continue hash operation to obtain a transaction root hash value, and the obtained transaction root hash value is stored in a storage node of the blockchain.
[0058] In actual applications, each blockchain node can store the transaction data of multiple users, and the transaction scale can reach thousands of users. Then, when calculating the transaction root hash value, the transaction data of thousands of users is hashed. In this process, the user's transaction data is hashed, and the results of the hash calculation are merged and hashed. The above operation is continued until the hash value of the penultimate node is calculated. It should be noted that the penultimate node obtained by this method of calculating the hash value is the root of the Merkle tree, and this manual does not limit the specific hash calculation method. In addition, the hash operation is an operation of encrypted calculation through a hash function, wherein the hash function is an irreversible calculation method that cannot be reversed to the original input value. Therefore, it can be guaranteed that after obtaining the encrypted transaction data, it is still impossible to reverse the calculation and obtain the user's transaction data.
[0059] In the embodiments of this specification, the transaction data of each user for the target object is hashed layer by layer until the last root node is obtained after encryption, and the transaction root hash value is stored in the storage node of the blockchain. This not only ensures that the transaction data cannot be tampered with, but also makes it impossible to invert and deduce the transaction data content of each user.
[0060] In the case where the first verification information passes the verification, in order to ensure the security of the transaction data, a verification information collection form may be sent to the user to obtain the user's verification information for the transaction data, thereby further achieving the security of the data transaction; specifically, sending the verification information collection form for the target object to the at least two users includes:
[0061] Based on the transaction data of the target object in the data transaction request, creating a verification information collection table corresponding to the transaction data of the target object for the at least two users;
[0062] A verification information collection form corresponding to the transaction data of the target object is sent to the at least two users.
[0063] Specifically, after receiving a data transaction request sent by a user, based on the transaction data for the target object in the data transaction request, a verification information collection table corresponding to the transaction data of the user for the target object is created for each user, and each created verification information collection table is sent to each user.
[0064] For example, user A sends a data transaction request A to the blockchain. Based on the transaction data A for the target object in the data transaction request A, a verification information collection table A corresponding to the transaction data A of user A is created for user A, and the created verification information collection table A is sent to user A.
[0065] In the embodiments of the present specification, a corresponding verification information collection form is created for each user based on the transaction data of each user for the target object, and the verification information collection form is sent to the user to collect the corresponding verification information of the user. Not only the security of the user's transaction data is ensured through the first verification information, but also the verification information collected through the verification information collection form is used to further ensure the security of the transaction data in the future.
[0066] In addition, after the blockchain receives the data transaction request sent by the user, if the verification of the first verification information fails, it indicates that there is a risk in the data transaction, and the risk information can be fed back to the user accordingly; specifically, the receiving of the user's data transaction request for the target object, wherein the data transaction request carries the transaction data of the target object and the first verification information, further includes:
[0067] In the case where the verification of the first verification information fails, a prompt message indicating that the data transaction request fails is returned to the user.
[0068] Specifically, after receiving the data transaction request sent by the user, the first verification information carried in the data transaction request is verified. If the verification of the first verification information fails, a prompt message indicating that the data transaction request failed is returned to the user. In actual applications, the first verification information carried in the data transaction request can be a digital password, a gesture password, and other information of the transaction. If the user forgets the transaction password and other information or the user is not the user but an attacker, the verification of the first verification information will fail, indicating that the transaction is risky. In order to avoid transaction risks, the data transaction request cannot be executed further, and a prompt message indicating that the data transaction request failed is returned to the user.
[0069] In the embodiments of the present specification, by returning information about the failed data transaction request to the user, the user is promptly reminded that the transaction involves risks, thereby ensuring the security of the data transaction.
[0070] Step 206: receiving the second verification information sent by the at least two users based on the verification information collection table, encrypting the second verification information, and storing the encrypted second verification information.
[0071] The second verification information may be understood as reserved information similar to a password, such as a string of English letters or characters, a string of numbers, and other irregular information.
[0072] Specifically, when the blockchain passes the first verification information verification in the data transaction request sent by the user, a verification information statistics table corresponding to the transaction data for the target object in the data transaction request is sent to the user, and the user enters the second verification information according to the content in the verification information statistics table, encrypts the second verification information, and stores the encrypted second verification information.
[0073] It should be noted that the second verification information is the verification information input by the user according to the content in the verification information statistics table. The second verification information may be the verification information associated with the original transaction data customized by the user, and the embodiments of this specification do not impose too many restrictions on this.
[0074] In order to ensure the security of data transactions, the user-defined second verification information needs to be encrypted and the encrypted second verification information is stored; specifically, the receiving the second verification information sent by the at least two users based on the verification information collection table, encrypting the second verification information, and storing the encrypted second verification information includes:
[0075] Receive the second verification information sent by each user based on the verification information table, hash encrypt the second verification information, and store the encrypted second verification information in a storage node of the blockchain.
[0076] Specifically, after the blockchain receives a data transaction request for a target object sent by a user, if the first verification information in the data transaction request passes, a verification information collection form corresponding to the transaction data of the target object is sent to the user, and the second verification information sent by the user based on the verification information collection form is received, the second verification information is hashed and encrypted, and the encrypted second verification information is stored in the storage node of the blockchain.
[0077] In actual applications, the blockchain can receive the second verification information sent by multiple users based on the verification information collection table, and hash and encrypt the multiple second verification information corresponding to the multiple users to ensure the security of data transactions. It should be noted that in addition to encrypting the transaction data in the user data transaction request, the user-defined second verification information must also be encrypted and stored. This two-way encryption method not only achieves the security of data transactions, but also ensures the anonymity of user identity information.
[0078] In the embodiments of the present specification, the user's customized second verification information is encrypted and stored to achieve anonymization of the user's identity information, thereby ensuring the security of the user's transaction.
[0079] Furthermore, the performing hash encryption on the second verification information and storing the encrypted second verification information in a storage node of the blockchain includes:
[0080] Obtain the second verification information of two adjacent users and perform hash operations on them respectively to obtain a first hash value corresponding to the second verification information of each user;
[0081] Perform a hash operation based on two adjacent first hash values to obtain a second hash value;
[0082] A hash operation is performed based on two adjacent second hash values to obtain a verification root hash value, and the verification root hash value is stored in a storage node of the blockchain.
[0083] Specifically, the second verification information of two adjacent users is obtained and hashed respectively to obtain the first hash value corresponding to the second verification information of each user, and then two adjacent first hash values are obtained to perform hash operation to obtain the second hash value, and then two adjacent second hash values are obtained to continue hash operation to obtain the verification root hash value, and the obtained verification root hash value is stored in the storage node of the blockchain.
[0084] In actual applications, when the blockchain receives data transaction requests from multiple users, the second verification information of multiple users can also be multiple. The process of hashing multiple second verification information can follow the merkle tree encryption principle, encrypt the second verification information layer by layer and merge the information, and the penultimate encrypted hash value obtained is the root hash value. The root hash value is the verification root hash value of the second verification information, and the verification root hash value is stored in the storage node of the blockchain, so that the hash encryption operation cannot be reversed, and thus the user corresponding to a certain second verification information cannot be determined, thereby achieving high anonymity of the user.
[0085] In the embodiments of this specification, by performing a hash operation on the second verification information, a verification root hash value is obtained and stored in a blockchain storage node. Based on the irreversible operability of the verification root hash value, user-defined verification information can be implemented to not only ensure the security of transaction data, but also make it impossible to trace the user through the second verification information.
[0086] Step 208: Processing the data transaction request of the target object based on the encrypted second verification information and the transaction data of the target object.
[0087] Specifically, after receiving the encrypted second verification information, the blockchain stores the encrypted second verification information, and processes the user's data transaction request for the target object based on the transaction data in the data transaction request sent by the user and the encrypted second verification information.
[0088] In summary, the data processing method provided in the embodiments of this specification sends a verification information collection form to the user when the first verification information sent by the user is verified, encrypts the second verification information entered by the user in the verification information collection form, and stores the encrypted second verification information in the blockchain to ensure that during the user transaction, not only the first verification information is verified, but also the second verification information entered by the user needs to be encrypted and stored in the blockchain to ensure that when the user conducts online transactions, both the first verification information and the second verification information need to be verified, thereby achieving the security of the transaction data.
[0089] See also Figure 3 , Figure 3 A flow chart of a data processing method provided in an embodiment of this specification is shown.
[0090] Figure 3 a in the block is the block header in the blockchain node, which stores the hash value, timestamp, transaction root hash value, verification root hash value, and other block header information of the previous block; Figure 3 b in the figure is a schematic diagram of the hash encryption process of transaction information; Figure 3 The c in FIG. 1 is a schematic diagram of the process of performing hash encryption operation on the second verification information.
[0091] In actual applications, part b in the figure shows the calculation, storage, and transmission of the transaction information of the original encrypted digital resources in the blockchain. All transaction information is hashed and encrypted, and the encrypted calculation results are then spliced and hashed, so that the calculation amount of the encrypted information is gradually merged and merged into a merkle root in the form of a merkle tree and stored in the block header; and other block information such as the timestamp, version number, and hash value of the previous block in the block header are stored in the block header to ensure the security of the transaction information. Part c in the figure shows the specific calculation process of verifying the root hash value. For each user's transaction information, the second verification information sent by the user according to the transaction information can be received, wherein the second verification information can be user-defined content, the second verification information is first hashed, and the calculated result value is spliced and merged with the second verification information of the adjacent user, and hashed again, and merged into a merkle root in the form of a merkle tree and stored in the block header.
[0092] The obtained transaction root hash value and verification root hash value are stored in the block header. Since the hash calculation is an irreversible calculation using a hash function, it is possible to input the second verification information of any user, perform a hash operation on the second verification hash value, and then compare the obtained hash value with the verification root hash value to verify the correctness of the second verification information. However, the content of the original second verification information cannot be inferred from any information node, thereby achieving the characteristics of verifying the identity of the user while maintaining a high degree of anonymity of the user.
[0093] It should be noted that in the transaction risk identification system, for events suspected of risk, a secondary verification is required. This stage may be the second stage of risk control, which can be achieved not only through user reserved information, face verification, etc., but also through the embodiments of this specification, by performing hash encryption processing on the second verification information, obtaining a merkle root hash value, and storing it in a blockchain node. This not only ensures the security of data transactions, but also realizes the verification of the identity information of users that cannot be traced, thereby achieving a high degree of anonymity for user identity information.
[0094] In the embodiments of this specification, by hashing the transaction data between users and the second verification sent by the user, the information is merged and encrypted using a hash calculation method. This allows the second verification information to be verified while maintaining the highly anonymous nature of digital resource transactions at a low computing and storage cost.
[0095] Corresponding to the above method embodiment, this specification also provides a data processing device embodiment, Figure 4 FIG. 1 is a schematic diagram showing the structure of a data processing device provided by an embodiment of the present specification. Figure 4 As shown, the device comprises:
[0096] The receiving module 402 is configured to receive data transaction requests sent by at least two users, wherein each data transaction request carries transaction data of a target object and first verification information;
[0097] A sending module 404 is configured to send a verification information collection form for the target object to the at least two users when the first verification information is verified successfully;
[0098] The encryption storage module 406 is configured to receive the second verification information sent by the at least two users based on the verification information collection table, encrypt the second verification information, and store the encrypted second verification information;
[0099] The processing module 408 is configured to process the data transaction request of the target object based on the encrypted second verification information and the transaction data of the target object.
[0100] Optionally, the encryption storage module 406 is further configured to:
[0101] Receive the second verification information sent by each user based on the verification information collection table, hash encrypt the second verification information, and store the encrypted second verification information in a storage node of the blockchain.
[0102] Optionally, the encryption storage module 406 is further configured to:
[0103] Obtain the second verification information of two adjacent users and perform hash operations on them respectively to obtain a first hash value corresponding to the second verification information of each user;
[0104] Perform a hash operation based on two adjacent first hash values to obtain a second hash value;
[0105] A hash operation is performed based on two adjacent second hash values to obtain a verification root hash value, and the verification root hash value is stored in a storage node of the blockchain.
[0106] Optionally, the encryption storage module 406 is further configured to:
[0107] The transaction data of the target object is hashed and encrypted based on the at least two users, and the encrypted transaction data is stored in a storage node of the blockchain.
[0108] Optionally, the encryption storage module 406 is further configured to:
[0109] Obtain transaction data of two adjacent users for the target object and perform hash operations on them to obtain a first hash value;
[0110] Perform a hash operation based on two adjacent first hash values to obtain a second hash value;
[0111] A hash operation is performed based on two adjacent second hash values to obtain a transaction root hash value, and the transaction root hash value is stored in a storage node of the blockchain.
[0112] Optionally, the sending module 404 is further configured to:
[0113] Based on the transaction data of the target object in the data transaction request, creating a verification information collection table corresponding to the transaction data of the target object for the at least two users;
[0114] A verification information collection form corresponding to the transaction data of the target object is sent to the at least two users.
[0115] Optionally, the sending module 404 is further configured to:
[0116] In the case where the verification of the first verification information fails, a prompt message indicating that the data transaction request fails is returned to the user.
[0117] The data processing device provided in the embodiments of the present specification sends a verification information collection form to the user when the first verification information sent by the user is verified, encrypts the second verification information entered by the user in the verification information collection form, and stores the encrypted second verification information in the blockchain, so as to ensure that during the user transaction, not only the first verification information is verified, but also the second verification information entered by the user is encrypted and stored in the blockchain, so as to ensure that when the user conducts online transactions, both the first verification information and the second verification information need to be verified, thereby achieving the security of the transaction data.
[0118] The above is a schematic scheme of a data processing device of this embodiment. It should be noted that the technical scheme of the data processing device and the technical scheme of the above data processing method belong to the same concept, and the details of the technical scheme of the data processing device that are not described in detail can all be referred to the description of the technical scheme of the above data processing method.
[0119] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.
[0120] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0121] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0122] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 500 may also be a mobile or stationary server.
[0123] The processor 520 is used to execute the following computer executable instructions, wherein the processor is used to execute the computer executable instructions, wherein the processor implements the steps of the data processing method when executing the computer executable instructions.
[0124] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above data processing method.
[0125] An embodiment of the present specification also provides a computer-readable storage medium storing computer instructions, which implement the steps of the data processing method when executed by a processor.
[0126] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above data processing method.
[0127] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0128] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0129] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0130] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0131] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. A data processing method, applied to blockchain, comprising: Receiving data transaction requests sent by at least two users, wherein each data transaction request carries transaction data of a target object and first verification information; When the first verification information is verified successfully, sending a verification information collection form for the target object to the at least two users; receiving second verification information sent by the at least two users based on the verification information collection table, encrypting the second verification information, and storing the encrypted second verification information; Based on the encrypted second verification information and the transaction data of the target object, a data transaction request of the target object is processed.
2. The data processing method according to claim 1, receiving the second verification information sent by the at least two users based on the verification information collection table, encrypting the second verification information, and storing the encrypted second verification information, comprising: Receive the second verification information sent by each user based on the verification information collection table, hash encrypt the second verification information, and store the encrypted second verification information in a storage node of the blockchain.
3. The data processing method according to claim 2, wherein the second verification information is hashed and stored in a storage node of the blockchain, comprising: Obtain the second verification information of two adjacent users and perform hash operations on them respectively to obtain a first hash value corresponding to the second verification information of each user; Perform a hash operation based on two adjacent first hash values to obtain a second hash value; A hash operation is performed based on two adjacent second hash values to obtain a verification root hash value, and the verification root hash value is stored in a storage node of the blockchain.
4. The data processing method according to claim 1, wherein before sending the verification information collection form for the target object to the at least two users when the first verification information is verified, the method further comprises: The transaction data of the target object is hashed and encrypted based on the at least two users, and the encrypted transaction data is stored in a storage node of the blockchain.
5. The data processing method according to claim 4, wherein the hash encryption based on the transaction data of the at least two users for the target object comprises: Obtain transaction data of two adjacent users for the target object and perform hash operations on them to obtain a first hash value; Perform a hash operation based on two adjacent first hash values to obtain a second hash value; A hash operation is performed based on two adjacent second hash values to obtain a transaction root hash value, and the transaction root hash value is stored in a storage node of the blockchain.
6. The data processing method according to claim 1, wherein sending the verification information collection form for the target object to the at least two users comprises: Based on the transaction data of the target object in the data transaction request, creating a verification information collection table corresponding to the transaction data of the target object for the at least two users; A verification information collection form corresponding to the transaction data of the target object is sent to the at least two users.
7. The data processing method according to claim 1, wherein the receiving user's data transaction request for the target object comprises: After the data transaction request carries the transaction data of the target object and the first verification information, it also includes: In the case where the verification of the first verification information fails, a prompt message indicating that the data transaction request fails is returned to the user.
8. A data processing device, comprising: A receiving module is configured to receive data transaction requests sent by at least two users, wherein each data transaction request carries transaction data of a target object and first verification information; a sending module, configured to send a verification information collection form for the target object to the at least two users when the first verification information is verified; an encryption storage module, configured to receive the second verification information sent by the at least two users based on the verification information collection table, encrypt the second verification information, and store the encrypted second verification information; The processing module is configured to process the data transaction request of the target object based on the encrypted second verification information and the transaction data of the target object.
9. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, wherein the processor implements the steps of the data processing method described in claims 1 to 7 when executing the computer-executable instructions.
10. A computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the data processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Secure trading method and system
CN107146076A
Trading system of financial industry
CN108898487A