Transaction data processing method and device and electronic equipment

Through an asymmetric encryption algorithm, a key pair is generated between the client and the server, and the preset key is determined based on random numbers, and the transaction data is encrypted and digest value is generated, which solves the problem of low data transmission security caused by SSL certificate forgery. The problem is to realize efficient security verification of data transmission.

CN118921164APending Publication Date: 2024-11-08吉林亿联银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310509040.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-08
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the prior art, SSL certificates are easily forged during network transmission, making it difficult to effectively verify the security of data transmission and cannot effectively prevent data leakage and forgery.

Method used

The client and the server generate key pairs through asymmetric encryption algorithms (such as RSA encryption algorithms), determine the preset key based on random numbers, encrypt the transaction data, and generate digest values, encrypt them through public and private keys and Decryption verification to ensure the security of data transmission.

Benefits of technology

It effectively improves the security and reliability of data in network transmission, prevents data leakage and forgery, and ensures that security verification is passed during data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921164A_ABST
    Figure CN118921164A_ABST
Patent Text Reader

Abstract

The invention discloses a transaction data processing method and device, and electronic equipment, and the method comprises the steps: a client side determines a preset secret key based on a first random number and a second random number, encrypts transaction data based on a first public key and the preset secret key, obtains encrypted data, generates a first abstract value based on the transaction data, and transmits the first abstract value to the client side; and encrypting the first random number by using a first public key to obtain an encrypted random number, encrypting the first digest value by using a second private key to obtain an encrypted digest value, and sending the encrypted data, the encrypted random number and the encrypted digest value to a server. And the server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted abstract value. According to the method and the device, the technical problem that the security of the data cannot be effectively verified in related technologies, so that the security of the data is relatively low in a transmission process is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security, and in particular to a transaction data processing method and device, and an electronic device. Background Art

[0002] In the related art, in order to prevent the leakage of plaintext data, data communication often relies on SSL certificates (Secure socket layer, i.e. a digital certificate). The HTTPS (Hypertext Transfer Protocol Secure, i.e. a channel with security as its goal) encryption transmission method used during data communication can prevent the leakage of plaintext data. However, in actual situations, SSL certificates can be forged during network transmission, and the plaintext information of the transmitted data can be obtained through forged SSL certificates.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a transaction data processing method and device, and an electronic device, so as to at least solve the technical problem in the related art that the security of data cannot be effectively verified, resulting in low security of data during transmission.

[0005] According to one aspect of an embodiment of the present invention, there is provided a method for processing transaction data, which is applied to a client, wherein the client pre-stores a first public key and a second private key, and the client communicates data with a server, wherein the server pre-stores the second public key and the first private key, and the processing method comprises: determining a preset key based on a first random number and a second random number, wherein the first random number is a random number generated by the client, and the second random number is a random number sent by the server; encrypting the transaction data based on the first public key and the preset key to obtain encrypted data, and generating a first summary value based on the transaction data; encrypting the first random number using the first public key to obtain an encrypted random number, and encrypting the first summary value using the second private key to obtain an encrypted summary value; sending the encrypted data, the encrypted random number, and the encrypted summary value to the server, wherein the server verifies the security of the transaction data during the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number, and the encrypted summary value.

[0006] Optionally, before determining the preset key based on the first random number and the second random number, it also includes: controlling the server to generate the first public key, the first private key, the second public key and the second private key; controlling the server to transmit the first public key and the second private key to the client, and saving the second public key and the first private key in a local storage space.

[0007] Optionally, the step of determining a preset key based on a first random number and a second random number includes: generating a first random number of a first preset byte length; sending a random number generation request to the server, wherein the random number generation request carries a second preset byte length, and the server responds to the random number generation request, generates a second random number of the second preset byte length, and returns the second random number; generating the preset key based on the first random number and the second random number, wherein the byte length of the preset key is the sum of the first preset byte length and the second preset byte length.

[0008] Optionally, the step of encrypting the transaction data based on the first public key and the preset key to obtain the encrypted data includes: constructing a target key based on the first public key and the preset key; and encrypting the transaction data using the target key to obtain the encrypted data.

[0009] Optionally, the step of generating a first summary value based on the transaction data includes: sorting all fields in the transaction data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; and performing hash processing on the sorting result to obtain the first summary value.

[0010] According to another aspect of an embodiment of the present invention, a method for processing transaction data is also provided, which is applied to a server, wherein the server pre-stores a second public key and a first private key, and the server communicates data with a client, wherein the client pre-stores a first public key and a second private key, and the processing method comprises: receiving encrypted data, an encrypted random number, and an encrypted summary value transmitted by the client, wherein the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number; the encrypted random number is obtained by the client processing the first random number based on the first public key; and the encrypted summary value is obtained by the client processing the transaction data based on the second private key. The first random number is a random number pre-generated by the client; the first private key is used to decrypt the encrypted random number to obtain a third random number, and a decryption key is generated based on the second random number and the third random number, wherein the second random number is a random number pre-generated by the server; the encrypted data is decrypted based on the first private key and the decryption key to obtain decrypted data, and a second summary value is generated based on the decrypted data; the second public key is used to decrypt the encrypted summary value to obtain a third summary value; when the second summary value is consistent with the third summary value, it is determined that the security verification of the transaction data in the communication process has passed.

[0011] Optionally, the step of generating a second summary value based on the decrypted data includes: sorting all fields in the decrypted data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; and hashing the sorting result to obtain the second summary value.

[0012] According to another aspect of an embodiment of the present invention, there is also provided a transaction data processing device, which is applied to a client, wherein the client pre-stores a first public key and a second private key, and the client communicates data with a server, wherein the server pre-stores the second public key and the first private key, and the processing device comprises: a first determining unit, used to determine a preset key based on a first random number and a second random number, wherein the first random number is a random number generated by the client, and the second random number is a random number sent by the server; a first encryption unit, used to encrypt transaction data based on the first public key and the preset key to obtain encrypted data, and generate a first summary value based on the transaction data; a second encryption unit, used to encrypt the first random number using the first public key to obtain an encrypted random number, and encrypt the first summary value using the second private key to obtain an encrypted summary value; a sending unit, used to send the encrypted data, the encrypted random number and the encrypted summary value to the server, wherein the server verifies the security of the transaction data during data communication based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value.

[0013] Optionally, the processing device also includes: a first generation module, used to control the server to generate the first public key, the first private key, the second public key and the second private key before determining the preset key based on the first random number and the second random number; a first transmission module, used to control the server to transmit the first public key and the second private key to the client, and save the second public key and the first private key in a local storage space.

[0014] Optionally, the first determination unit includes: a second generation module, used to generate a first random number of a first preset byte length; a first sending module, used to send a random number generation request to the server, wherein the random number generation request carries a second preset byte length, and the server responds to the random number generation request, generates a second random number of the second preset byte length, and returns the second random number; a third generation module, used to generate the preset key based on the first random number and the second random number, wherein the byte length of the preset key is the sum of the first preset byte length and the second preset byte length.

[0015] Optionally, the first encryption unit includes: a first construction module, used to construct a target key based on the first public key and the preset key; a first encryption module, used to encrypt the transaction data using the target key to obtain the encrypted data.

[0016] Optionally, the first encryption unit also includes: a first sorting module, used to sort all fields in the transaction data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; a first processing module, used to perform hash processing on the sorting result to obtain the first summary value.

[0017] According to another aspect of an embodiment of the present invention, a transaction data processing device is also provided, which is applied to a server, wherein the server pre-stores a second public key and a first private key, and the server communicates data with a client, wherein the client pre-stores a first public key and a second private key, and the processing device includes: a receiving unit, configured to receive encrypted data, an encrypted random number, and an encrypted summary value transmitted by the client, wherein the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number; the encrypted random number is obtained by the client processing the first random number based on the first public key; the encrypted summary value is obtained by the client processing the transaction data based on the second private key, and the first random number is obtained by the client processing the first random number based on the first public key. The number is a random number pre-generated by the client; a first decryption unit is used to decrypt the encrypted random number using the first private key to obtain a third random number, and generate a decryption key based on the second random number and the third random number, wherein the second random number is a random number pre-generated by the server; a generation unit is used to decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second summary value based on the decrypted data; a second decryption unit is used to decrypt the encrypted summary value using the second public key to obtain a third summary value; a second determination unit is used to determine that the security verification of the transaction data in the communication process has passed when the second summary value is consistent with the third summary value.

[0018] Optionally, the generation unit includes: a second sorting module, used to sort all fields in the decrypted data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; a second processing module, used to perform hash processing on the sorting result to obtain the second summary value.

[0019] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned transaction data processing method.

[0020] In the present disclosure, the client determines a preset key based on a first random number and a second random number, encrypts transaction data based on a first public key and a preset key to obtain encrypted data, generates a first summary value based on the transaction data, encrypts the first random number using the first public key to obtain an encrypted random number, encrypts the first summary value using the second private key to obtain an encrypted summary value, and sends the encrypted data, the encrypted random number, and the encrypted summary value to the server. The server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number, and the encrypted summary value. In the present disclosure, the client can encrypt transaction data in combination with a preset key determined by a first random number and a second random number and a first public key to obtain encrypted data, and obtain a first summary value based on the transaction data, and then use the first public key to encrypt the first random number to obtain an encrypted random number, and use the second private key to encrypt the first summary value to obtain an encrypted summary value, and then send the encrypted data, the encrypted random number and the encrypted summary value to the server. The server can verify the security of the transaction data during the data communication process, effectively improve the security and reliability of the data in the network transmission, and thus solve the technical problem that the security of the data cannot be effectively verified in the related technology, resulting in low security of the data during the transmission process. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0022] Figure 1 is a flow chart of an optional transaction data processing method according to an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of an optional process for preventing transaction data leakage and forgery according to an embodiment of the present invention;

[0024] Figure 3 is a flowchart of another optional transaction data processing method according to an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of an optional transaction data processing device according to an embodiment of the present invention;

[0026] Figure 5 is a schematic diagram of another optional transaction data processing device according to an embodiment of the present invention;

[0027] Figure 6 It is a hardware structure block diagram of an electronic device (or mobile device) for a transaction data processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0031] The present invention encrypts and verifies data transmitted between a client and a server via the Internet through a data transmission method based on an asymmetric encryption algorithm (such as the RSA encryption algorithm (i.e., an asymmetric encryption algorithm)), which can effectively prevent data leakage, data forgery, and transaction repudiation.

[0032] The present invention does not rely on traditional HTTPS communication encryption, so that conventional HTTPS communication will not leak data, and the data cannot be tampered with and can effectively prevent the data sender from denying.

[0033] After system development and basic environment construction, the present invention has carried out scenario and data simulation, so that data can be encrypted, summarized and signed according to the method for preventing transaction data leakage and forgery proposed in the present invention, and the data recipient can normally obtain the data for decryption and verification.

[0034] The present invention is described in detail below in conjunction with various embodiments.

[0035] Embodiment 1

[0036] According to an embodiment of the present invention, an embodiment of a method for processing transaction data is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0037] Figure 1 is a flowchart of an optional transaction data processing method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0038] Step S101, determining a preset key based on a first random number and a second random number, wherein the first random number is a random number generated by the client, and the second random number is a random number sent by the server.

[0039] Step S102: encrypt the transaction data based on the first public key and the preset key to obtain encrypted data, and generate a first summary value based on the transaction data.

[0040] Step S103: Use the first public key to encrypt the first random number to obtain an encrypted random number, and use the second private key to encrypt the first summary value to obtain an encrypted summary value.

[0041] Step S104, sending the encrypted data, the encrypted random number and the encrypted summary value to the server, wherein the server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value.

[0042] Through the above steps, the client can determine the preset key based on the first random number and the second random number, encrypt the transaction data based on the first public key and the preset key to obtain encrypted data, generate a first summary value based on the transaction data, encrypt the first random number using the first public key to obtain an encrypted random number, encrypt the first summary value using the second private key to obtain an encrypted summary value, and send the encrypted data, the encrypted random number, and the encrypted summary value to the server. The server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number, and the encrypted summary value. In an embodiment of the present invention, the client can encrypt transaction data in combination with a preset key determined by a first random number and a second random number and a first public key to obtain encrypted data, and obtain a first summary value based on the transaction data, and then use the first public key to encrypt the first random number to obtain an encrypted random number, and use the second private key to encrypt the first summary value to obtain an encrypted summary value, and then send the encrypted data, the encrypted random number and the encrypted summary value to the server. The server can verify the security of the transaction data during the data communication process, effectively improve the security and reliability of the data in the network transmission, and thus solve the technical problem that the security of the data cannot be effectively verified in the related technology, resulting in low security of the data during the transmission process.

[0043] The following is a detailed description of the embodiment of the present invention in combination with the above steps. The following steps can be applied to a client, the client pre-stores a first public key and a second private key, the client communicates data with a server, and the server pre-stores a second public key and a first private key.

[0044] Optionally, before determining the preset key based on the first random number and the second random number, it also includes: controlling the server to generate a first public key, a first private key, a second public key and a second private key; controlling the server to transmit the first public key and the second private key to the client, and saving the second public key and the first private key in a local storage space.

[0045] In an embodiment of the present invention, before the client and the server communicate sensitive data, the client can agree on a key with the server, that is, the client needs to retain public key A (i.e., the first public key) and private key B (i.e., the second private key), and the server needs to retain private key A (i.e., the first private key) and public key B (i.e., the second public key), wherein public key A and private key A are a pair of keys, and public key B and private key B are a pair of keys. Specifically: the server can generate two pairs of keys (i.e., the first public key and the first private key, and the second public key and the second private key) through an asymmetric encryption algorithm (such as the RSA encryption algorithm) (i.e., control the server to generate the first public key, the first private key, the second public key, and the second private key). Afterwards, the server can transmit the first public key and the second private key to the client, and save the second public key and the first private key in the local storage space (i.e., the server can transmit the public key in one pair of keys and the private key in another pair of keys to the client, and retain the remaining private key and public key locally).

[0046] Step S101, determining a preset key based on a first random number and a second random number, wherein the first random number is a random number generated by the client, and the second random number is a random number sent by the server.

[0047] Optionally, the step of determining a preset key based on the first random number and the second random number includes: generating a first random number of a first preset byte length; sending a random number generation request to a server, wherein the random number generation request carries a second preset byte length, and the server responds to the random number generation request, generates a second random number of a second preset byte length, and returns the second random number; generating a preset key based on the first random number and the second random number, wherein the byte length of the preset key is the sum of the first preset byte length and the second preset byte length.

[0048] In an embodiment of the present invention, the client can determine the preset key based on the first random number (the first random number is a random number generated by the client) and the second random number (the second random number is a random number sent by the server), specifically: the client can generate a first random number of a first preset byte length (for example, 16 bytes) (that is, the client can locally generate a random number Rc of the first preset byte length), and can obtain a random number Rs of a second preset byte length (for example, 16 bytes) through the server (that is, the client sends a random number generation request to the server (the random number generation request carries the second preset byte length), and then the server can respond to the random number generation request, generate a second random number of the second preset byte length, and return the second random number). Afterwards, the client can use Rc and Rs to synthesize the key R (that is, the preset key) (that is, based on the first random number and the second random number, generate the preset key, and the byte length of the preset key is the sum of the first preset byte length and the second preset byte length).

[0049] Step S102: encrypt the transaction data based on the first public key and the preset key to obtain encrypted data, and generate a first summary value based on the transaction data.

[0050] Optionally, the step of encrypting the transaction data based on the first public key and the preset key to obtain encrypted data includes: constructing a target key based on the first public key and the preset key; and encrypting the transaction data using the target key to obtain encrypted data.

[0051] Optionally, the step of generating a first summary value based on the transaction data includes: sorting all fields in the transaction data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; and hashing the sorting result to obtain a first summary value.

[0052] In an embodiment of the present invention, the client can use public key A (i.e., the first public key) to encrypt sensitive data D (i.e., transaction data) with R (i.e., the preset key) as the key to generate encrypted data E (i.e., based on the first public key and the preset key, the transaction data is encrypted to obtain encrypted data). Specifically, the client can construct a target key based on the first public key and the preset key (for example, based on the first public key, the preset key is used as a conditional restriction to obtain the target key), and then use the target key to encrypt the transaction data to generate encrypted data.

[0053] In an embodiment of the present invention, the client can generate a first summary value based on the transaction data, specifically: according to a preset sorting strategy predetermined by the client and the server (for example, sorting by the first letter of each field, etc.), all fields in the transaction data can be sorted to obtain a sorting result, and then the sorting result can be hashed (for example, hashed using SHA-256 (i.e., a hash algorithm that uses a hash value length of 256 bits)) to obtain the first summary value.

[0054] Step S103: Use the first public key to encrypt the first random number to obtain an encrypted random number, and use the second private key to encrypt the first summary value to obtain an encrypted summary value.

[0055] In an embodiment of the present invention, the client can use public key A to encrypt Rc (i.e., the first random number) to generate an encrypted random number Erc (i.e., use the first public key to encrypt the first random number to obtain an encrypted random number), and use private key B to encrypt the obtained digest value (i.e., the first digest value) to obtain signature data Sd (i.e., the encrypted digest value) (i.e., use the second private key to encrypt the first digest value to obtain an encrypted digest value).

[0056] Step S104, sending the encrypted data, the encrypted random number and the encrypted summary value to the server, wherein the server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value.

[0057] In an embodiment of the present invention, the client transmits the encrypted sensitive data E (i.e., encrypted data), signature data Sd (i.e., encrypted summary value) and client encrypted random number Erc (i.e., encrypted random number) to the server through a transmission method (e.g., HTTP (Hyper Text Transfer Protocol, i.e., Hypertext Transfer Protocol) transmission method) pre-agreed with the server. The server can verify the security of transaction data in the data communication process according to the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value, specifically: the server receives the transmitted encrypted data E, the encrypted random number Erc and the signature data Sd, uses the private key A (i.e., the first private key) to decrypt Erc to obtain Rc, uses the locally generated Rs and the decrypted Rc to synthesize to obtain the key R, uses the private key A to decrypt E with R as the key to obtain the sensitive data D1. Then, D1 is sorted to obtain Ds1, Ds1 is hashed to obtain the summary Dig1, and the signature data Sd is decrypted using the public key B (i.e., the second public key) to obtain the summary Dig, and verifies whether the summary is consistent. If the values ​​are equal, the verification passes; if they are not equal, the data may have been tampered with during transmission and the verification fails.

[0058] Another optional specific implementation is described in detail below.

[0059] Figure 2 is a schematic diagram of an optional process for preventing transaction data leakage and forgery according to an embodiment of the present invention, such as Figure 2 As shown, the following process is included:

[0060] (1) The client obtains transaction data D;

[0061] (2) The client generates a random number Rc and receives Rs generated by the server;

[0062] (3) The client uses Rc and Rs to synthesize key R, and uses public key A and key R to encrypt transaction data D to generate E;

[0063] (4) Encrypt Rc using public key A to generate Erc;

[0064] (5) Sort the transaction data D to obtain Ds, and perform hash processing on the transaction data Ds to obtain the digest Dig;

[0065] (6) Use private key B to encrypt the summary Dig to obtain the signature Sd, and transmit the encrypted data E, encrypted Erc, and signature Sd to the server;

[0066] (7) The server generates a random number Rs and transmits the random number Rs to the client;

[0067] (8) The server receives the encrypted data E, the encrypted Erc, and the signature Sd;

[0068] (9) The server uses private key A to decrypt Erc to obtain Rc, uses Rs and Rc to synthesize R, and uses private keys A and R to decrypt E to obtain transaction data D1;

[0069] (10) The server sorts the transaction data D1 to obtain Ds1, performs hash processing on the transaction data Ds1 to obtain the digest Dig1, and uses the public key B to decrypt the signature Sd to obtain the digest Dig;

[0070] (11) The server verifies whether the digests are consistent, that is, Dig1 == Dig. If they are consistent, the verification succeeds.

[0071] In the embodiments of the present invention, by encrypting data and performing digital signature processing, the security and reliability of data transmission in the network can be effectively improved, so that the data cannot be tampered with, and the data sender can be effectively prevented from denying.

[0072] The following is a detailed description in conjunction with another embodiment.

[0073] Embodiment 2

[0074] According to an embodiment of the present invention, an embodiment of a method for processing transaction data is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0075] Figure 3 is a flowchart of another optional transaction data processing method according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:

[0076] Step S301, receiving encrypted data, encrypted random numbers and encrypted summary values ​​transmitted by the client, wherein the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number; the encrypted random number is obtained by the client processing the first random number based on the first public key; the encrypted summary value is obtained by the client processing the transaction data based on the second private key, and the first random number is a random number generated in advance by the client.

[0077] Step S302: Decrypt the encrypted random number using the first private key to obtain a third random number, and generate a decryption key based on the second random number and the third random number, wherein the second random number is a random number pre-generated by the server.

[0078] Step S303: decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second digest value based on the decrypted data.

[0079] Step S304: Decrypt the encrypted summary value using the second public key to obtain a third summary value.

[0080] Step S305: When the second digest value is consistent with the third digest value, it is determined that the security verification of the transaction data in the communication process is passed.

[0081] Through the above steps, the server can receive the encrypted data, encrypted random number and encrypted summary value transmitted by the client, use the first private key to decrypt the encrypted random number to obtain a third random number, and generate a decryption key based on the second random number and the third random number, decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second summary value based on the decrypted data, use the second public key to decrypt the encrypted summary value to obtain a third summary value, and when the second summary value is consistent with the third summary value, it is determined that the security verification of the transaction data in the communication process has passed. In an embodiment of the present invention, after receiving the encrypted data, encrypted random number and encrypted summary value transmitted by the client, the server can use the first private key to decrypt the encrypted random number to obtain a third random number, and generate a decryption key based on the second random number and the third random number, and then decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second summary value based on the decrypted data, and then use the second public key to decrypt the encrypted summary value to obtain a third summary value, and then compare the second summary value with the third summary value to verify the security of the transaction data during the data communication process, effectively improving the security and reliability of the data in the network transmission, and thus solving the technical problem that the security of the data cannot be effectively verified in the related technology, resulting in low security of the data during the transmission process.

[0082] The following is a detailed description of the embodiment of the present invention in combination with the above steps. The following steps can be applied to the server, the server pre-stores the second public key and the first private key, the server communicates data with the client, and the client pre-stores the first public key and the second private key.

[0083] In an embodiment of the present invention, before the client and the server communicate sensitive data, the client can agree on a key with the server, that is, the client needs to retain public key A (i.e., the first public key) and private key B (i.e., the second private key), and the server needs to retain private key A (i.e., the first private key) and public key B (i.e., the second public key), wherein public key A and private key A are a pair of keys, and public key B and private key B are a pair of keys. Specifically: the server can generate two pairs of keys (i.e., the first public key and the first private key, and the second public key and the second private key) through an asymmetric encryption algorithm (such as the RSA encryption algorithm). Afterwards, the server can transmit the first public key and the second private key to the client, and save the second public key and the first private key in the local storage space.

[0084] Step S301, receiving encrypted data, encrypted random numbers and encrypted summary values ​​transmitted by the client, wherein the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number; the encrypted random number is obtained by the client processing the first random number based on the first public key; the encrypted summary value is obtained by the client processing the transaction data based on the second private key, and the first random number is a random number generated in advance by the client.

[0085] In an embodiment of the present invention, the client can first obtain the transaction data D, and then synthesize the random number Rc (i.e., the first random number) pre-generated by the client and the second random number Rs generated by the server received to obtain the key R, and use the public key A and the key R to encrypt the transaction data D to generate the encrypted data E (i.e., the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number). Then, Rc is encrypted using the public key A to generate the encrypted random number Erc (i.e., the encrypted random number is obtained by the client processing the first random number based on the first public key). Afterwards, the transaction data D can be sorted to obtain Ds, and the transaction data Ds can be hashed to obtain the summary Dig, and the summary Dig can be encrypted using the private key B to obtain the encrypted summary value Sd (i.e., the encrypted summary value is obtained by the client processing the transaction data based on the second private key), and the encrypted data E, the encrypted random number Erc, and the encrypted summary value Sd are transmitted to the server.

[0086] The server can first receive the encrypted data, encrypted random number and encrypted summary value transmitted by the client, and then verify the security of the data during transmission based on these data.

[0087] Step S302: Decrypt the encrypted random number using the first private key to obtain a third random number, and generate a decryption key based on the second random number and the third random number, wherein the second random number is a random number pre-generated by the server.

[0088] In an embodiment of the present invention, after receiving the transmitted encrypted data E, the encrypted random number Erc, and the encrypted summary value Sd, the server can use the private key A (i.e., the first private key) to decrypt Erc to obtain Rc (i.e., the third random number) (i.e., use the first private key to decrypt the encrypted random number to obtain the third random number), and use the locally generated Rs (i.e., the second random number, which is a random number pre-generated by the server) to synthesize with the decrypted Rc to obtain the key R (i.e., the decryption key) (i.e., generate the decryption key based on the second random number and the third random number).

[0089] Step S303: decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second digest value based on the decrypted data.

[0090] Optionally, the step of generating a second summary value based on the decrypted data includes: sorting all fields in the decrypted data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; and hashing the sorting result to obtain a second summary value.

[0091] In an embodiment of the present invention, the server can use private key A to decrypt E with R as the key to obtain sensitive data D1 (i.e., based on the first private key and the decryption key, the encrypted data is decrypted to obtain the decrypted data). D1 is then sorted to obtain Ds1, and Ds1 is hashed to obtain the summary Dig1 (i.e., based on the decrypted data, a second summary value is generated). Specifically, all fields in the decrypted data can be sorted according to a preset sorting strategy predetermined by the client and the server (for example, sorted according to the first letter of each field, etc.) to obtain the sorting result, and then the sorting result is hashed (for example, hashed using SHA-256 (i.e., a hash algorithm that uses a hash value length of 256 bits)) to obtain the second summary value.

[0092] Step S304: Decrypt the encrypted summary value using the second public key to obtain a third summary value.

[0093] In the embodiment of the present invention, the server may use the public key B (ie, the second public key) to decrypt the signature data Sd (ie, the encrypted digest value) to obtain the digest Dig (ie, the third digest value).

[0094] Step S305: When the second digest value is consistent with the third digest value, it is determined that the security verification of the transaction data in the communication process is passed.

[0095] In the embodiment of the present invention, the server can verify whether the digests are consistent. If the values ​​are equal, the verification is successful (that is, when the second digest value is consistent with the third digest value, it is determined that the security verification of the transaction data in the communication process is successful). If they are not equal, the data may have been tampered with during the transmission process, and the verification fails.

[0096] In the embodiments of the present invention, by encrypting data and performing digital signature processing, the security and reliability of data transmission in the network can be effectively improved, so that the data cannot be tampered with, and the denial of the data sender can be effectively prevented.

[0097] The following is a detailed description in conjunction with another embodiment.

[0098] Embodiment 3

[0099] A transaction data processing device provided in this embodiment includes multiple implementation units, each of which corresponds to each implementation step in the above-mentioned embodiment 1.

[0100] Figure 4 is a schematic diagram of an optional transaction data processing device according to an embodiment of the present invention, such as Figure 4 As shown, the processing device may include: a first determining unit 40, a first encryption unit 41, a second encryption unit 42, and a sending unit 43, wherein:

[0101] A first determining unit 40, configured to determine a preset key based on a first random number and a second random number, wherein the first random number is a random number generated by the client, and the second random number is a random number sent by the server;

[0102] The first encryption unit 41 is used to encrypt the transaction data based on the first public key and the preset key to obtain encrypted data, and generate a first summary value based on the transaction data;

[0103] The second encryption unit 42 is used to encrypt the first random number using the first public key to obtain an encrypted random number, and to encrypt the first summary value using the second private key to obtain an encrypted summary value;

[0104] The sending unit 43 is used to send the encrypted data, the encrypted random number and the encrypted summary value to the server, wherein the server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value.

[0105] In the above-mentioned processing device, the client can determine the preset key based on the first random number and the second random number through the first determination unit 40, encrypt the transaction data based on the first public key and the preset key through the first encryption unit 41 to obtain encrypted data, and generate a first summary value based on the transaction data, encrypt the first random number using the first public key through the second encryption unit 42 to obtain an encrypted random number, and encrypt the first summary value using the second private key to obtain an encrypted summary value, and send the encrypted data, the encrypted random number and the encrypted summary value to the server through the sending unit 43. The server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value. In an embodiment of the present invention, the client can encrypt transaction data in combination with a preset key determined by a first random number and a second random number and a first public key to obtain encrypted data, and obtain a first summary value based on the transaction data, and then use the first public key to encrypt the first random number to obtain an encrypted random number, and use the second private key to encrypt the first summary value to obtain an encrypted summary value, and then send the encrypted data, the encrypted random number and the encrypted summary value to the server. The server can verify the security of the transaction data during the data communication process, effectively improve the security and reliability of the data in the network transmission, and thus solve the technical problem that the security of the data cannot be effectively verified in the related technology, resulting in low security of the data during the transmission process.

[0106] Optionally, the processing device also includes: a first generation module, used to control the server to generate a first public key, a first private key, a second public key and a second private key before determining a preset key based on the first random number and the second random number; a first transmission module, used to control the server to transmit the first public key and the second private key to the client, and save the second public key and the first private key in a local storage space.

[0107] Optionally, the first determination unit includes: a second generation module, used to generate a first random number of a first preset byte length; a first sending module, used to send a random number generation request to a server, wherein the random number generation request carries a second preset byte length, and the server responds to the random number generation request, generates a second random number of a second preset byte length, and returns the second random number; a third generation module, used to generate a preset key based on the first random number and the second random number, wherein the byte length of the preset key is the sum of the first preset byte length and the second preset byte length.

[0108] Optionally, the first encryption unit includes: a first construction module, used to construct a target key based on the first public key and a preset key; a first encryption module, used to encrypt transaction data using the target key to obtain encrypted data.

[0109] Optionally, the first encryption unit also includes: a first sorting module, used to sort all fields in the transaction data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; a first processing module, used to perform hash processing on the sorting result to obtain a first summary value.

[0110] The above-mentioned processing device may also include a processor and a memory. The above-mentioned first determination unit 40, first encryption unit 41, second encryption unit 42, sending unit 43, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0111] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the encrypted data, encrypted random number and encrypted summary value are sent to the server by adjusting the kernel parameters.

[0112] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0113] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: the client can determine a preset key based on a first random number and a second random number, encrypt transaction data based on a first public key and a preset key to obtain encrypted data, and generate a first summary value based on the transaction data, encrypt the first random number using the first public key to obtain an encrypted random number, and encrypt the first summary value using the second private key to obtain an encrypted summary value, and send the encrypted data, the encrypted random number, and the encrypted summary value to the server. The server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number, and the encrypted summary value.

[0114] Embodiment 4

[0115] A transaction data processing device provided in this embodiment includes multiple implementation units, each of which corresponds to each implementation step in the above-mentioned embodiment 2.

[0116] Figure 5 is a schematic diagram of another optional transaction data processing device according to an embodiment of the present invention, such as Figure 5 As shown, the processing device may include: a receiving unit 50, a first decryption unit 51, a generating unit 52, a second decryption unit 53, and a second determining unit 54, wherein:

[0117] The receiving unit 50 is used to receive the encrypted data, the encrypted random number and the encrypted summary value transmitted by the client, wherein the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number; the encrypted random number is obtained by the client processing the first random number based on the first public key; the encrypted summary value is obtained by the client processing the transaction data based on the second private key, and the first random number is a random number pre-generated by the client;

[0118] The first decryption unit 51 is used to decrypt the encrypted random number using the first private key to obtain a third random number, and generate a decryption key based on the second random number and the third random number, wherein the second random number is a random number pre-generated by the server;

[0119] A generating unit 52, configured to decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second digest value based on the decrypted data;

[0120] A second decryption unit 53, configured to decrypt the encrypted summary value using the second public key to obtain a third summary value;

[0121] The second determining unit 54 is configured to determine that the security verification of the transaction data in the communication process is passed when the second digest value is consistent with the third digest value.

[0122] In the above-mentioned processing device, the server can receive the encrypted data, encrypted random number and encrypted summary value transmitted by the client through the receiving unit 50, decrypt the encrypted random number using the first private key through the first decryption unit 51 to obtain a third random number, and generate a decryption key based on the second random number and the third random number, decrypt the encrypted data based on the first private key and the decryption key through the generation unit 52 to obtain decrypted data, and generate a second summary value based on the decrypted data, decrypt the encrypted summary value using the second public key through the second decryption unit 53 to obtain a third summary value, and determine that the security verification of the transaction data in the communication process has passed when the second summary value is consistent with the third summary value through the second determination unit 54. In an embodiment of the present invention, after receiving the encrypted data, encrypted random number and encrypted summary value transmitted by the client, the server can use the first private key to decrypt the encrypted random number to obtain a third random number, and generate a decryption key based on the second random number and the third random number, and then decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second summary value based on the decrypted data, and then use the second public key to decrypt the encrypted summary value to obtain a third summary value, and then compare the second summary value with the third summary value to verify the security of the transaction data during the data communication process, effectively improving the security and reliability of the data in the network transmission, and thus solving the technical problem that the security of the data cannot be effectively verified in the related technology, resulting in low security of the data during the transmission process.

[0123] The above-mentioned processing device may also include a processor and a memory. The above-mentioned receiving unit 50, the first decryption unit 51, the generation unit 52, the second decryption unit 53, the second determination unit 54, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0124] The processor includes a kernel, which retrieves the corresponding program unit from the memory. The kernel can be set to one or more, and the kernel parameters can be adjusted to determine that the security verification of the transaction data in the communication process is passed when the second digest value is consistent with the third digest value.

[0125] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0126] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: the server can receive encrypted data, encrypted random numbers and encrypted summary values ​​transmitted by the client, use a first private key to decrypt the encrypted random number to obtain a third random number, and generate a decryption key based on the second random number and the third random number, decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second summary value based on the decrypted data, use the second public key to decrypt the encrypted summary value to obtain a third summary value, and when the second summary value is consistent with the third summary value, determine that the security verification of the transaction data in the communication process has passed.

[0127] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the above-mentioned transaction data processing method.

[0128] Figure 6 1 is a hardware structure block diagram of an electronic device (or mobile device) for a method for processing transaction data according to an embodiment of the present invention. Figure 6 As shown, the electronic device may include one or more ( Figure 6 602a, 602b, ..., 602n are used to illustrate) processor 602 (processor 602 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), and memory 604 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 6 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 6 More or fewer components as shown, or with Figure 6 Different configurations shown.

[0129] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0130] In the above embodiments of the present invention, 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] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0133] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0134] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0135] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for processing transaction data, characterized in that: Applied to a client, the client pre-stores a first public key and a second private key, the client communicates data with a server, the server pre-stores a second public key and a first private key, and the processing method includes: Determine a preset key based on a first random number and a second random number, wherein the first random number is a random number generated by the client, and the second random number is a random number sent by the server; Encrypting the transaction data based on the first public key and the preset key to obtain encrypted data, and generating a first summary value based on the transaction data; Encrypting the first random number using the first public key to obtain an encrypted random number, and encrypting the first summary value using the second private key to obtain an encrypted summary value; The encrypted data, the encrypted random number and the encrypted summary value are sent to the server, wherein the server verifies the security of the transaction data during the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value.

2. The processing method according to claim 1, characterized in that: Before determining the preset key based on the first random number and the second random number, the method further includes: Control the server to generate the first public key, the first private key, the second public key and the second private key; Control the server to transmit the first public key and the second private key to the client, and save the second public key and the first private key in a local storage space.

3. The processing method according to claim 1, characterized in that: The step of determining a preset key based on the first random number and the second random number includes: Generate a first random number of a first preset byte length; Sending a random number generation request to the server, wherein the random number generation request carries a second preset byte length, the server responds to the random number generation request, generates a second random number of the second preset byte length, and returns the second random number; The preset key is generated based on the first random number and the second random number, wherein the byte length of the preset key is the sum of the first preset byte length and the second preset byte length.

4. The processing method according to claim 1, characterized in that: The step of encrypting the transaction data based on the first public key and the preset key to obtain encrypted data includes: Constructing a target key based on the first public key and the preset key; The transaction data is encrypted using the target key to obtain the encrypted data.

5. The processing method according to claim 1, characterized in that: The step of generating a first summary value based on the transaction data comprises: Sorting all fields in the transaction data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; Perform hash processing on the sorting result to obtain the first digest value.

6. A method for processing transaction data, characterized in that: Applied to a server, the server pre-stores a second public key and a first private key, the server communicates data with a client, the client pre-stores a first public key and a second private key, and the processing method includes: receiving encrypted data, an encrypted random number, and an encrypted summary value transmitted by the client, wherein the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number; the encrypted random number is obtained by the client processing the first random number based on the first public key; the encrypted summary value is obtained by the client processing the transaction data based on the second private key, and the first random number is a random number pre-generated by the client; Decrypting the encrypted random number using the first private key to obtain a third random number, and generating a decryption key based on the second random number and the third random number, wherein the second random number is a random number pre-generated by the server; Decrypting the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generating a second digest value based on the decrypted data; Decrypting the encrypted summary value using the second public key to obtain a third summary value; When the second digest value is consistent with the third digest value, it is determined that the security verification of the transaction data in the communication process is passed.

7. The processing method according to claim 6, characterized in that: The step of generating a second digest value based on the decrypted data comprises: Sorting all fields in the decrypted data according to a preset sorting strategy to obtain a sorting result, wherein the preset sorting strategy is a sorting strategy predetermined by the client and the server; Perform hash processing on the sorting result to obtain the second digest value.

8. A transaction data processing device, characterized in that: Applied to a client, the client pre-stores a first public key and a second private key, the client communicates data with a server, the server pre-stores a second public key and a first private key, and the processing device includes: A first determining unit, configured to determine a preset key based on a first random number and a second random number, wherein the first random number is a random number generated by the client, and the second random number is a random number sent by the server; a first encryption unit, configured to encrypt the transaction data based on the first public key and the preset key to obtain encrypted data, and generate a first summary value based on the transaction data; a second encryption unit, configured to encrypt the first random number using the first public key to obtain an encrypted random number, and to encrypt the first summary value using the second private key to obtain an encrypted summary value; A sending unit is used to send the encrypted data, the encrypted random number and the encrypted summary value to the server, wherein the server verifies the security of the transaction data in the data communication process based on the second public key, the first private key, the encrypted data, the encrypted random number and the encrypted summary value.

9. A transaction data processing device, characterized in that: Applied to a server, the server pre-stores a second public key and a first private key, the server communicates data with a client, the client pre-stores a first public key and a second private key, and the processing device includes: a receiving unit, configured to receive encrypted data, an encrypted random number, and an encrypted summary value transmitted by the client, wherein the encrypted data is obtained by the client processing the transaction data based on the first public key and the first random number; the encrypted random number is obtained by the client processing the first random number based on the first public key; the encrypted summary value is obtained by the client processing the transaction data based on the second private key, and the first random number is a random number pre-generated by the client; a first decryption unit, configured to decrypt the encrypted random number using the first private key to obtain a third random number, and generate a decryption key based on the second random number and the third random number, wherein the second random number is a random number pre-generated by the server; a generating unit, configured to decrypt the encrypted data based on the first private key and the decryption key to obtain decrypted data, and generate a second digest value based on the decrypted data; A second decryption unit, configured to decrypt the encrypted summary value using the second public key to obtain a third summary value; The second determining unit is used to determine that the security verification of the transaction data in the communication process is passed when the second digest value is consistent with the third digest value.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the transaction data processing method described in any one of claims 1 to 7.