Offline transaction authentication system, method, central server, and client

Through the asymmetric encryption and electronic signature technology of the offline transaction authentication system, the chain-encrypted transaction flow is used to solve the security problem of the traditional transaction authentication method in high-risk and high-value scenarios, making the transaction link non-forgeable and tamper-proof, and meeting the requirements of meet high security requirements.

CN113793149BInactive Publication Date: 2024-10-25BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111086449.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-16
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional transaction authentication methods cannot meet transaction security requirements in high-risk, high-value scenarios and are vulnerable to attacks and forgery.

Method used

Adopt an offline transaction authentication system, utilize asymmetric encryption and electronic signature technology between the central server and the client, and encrypt the transaction flow through the chain to ensure that the transaction flow cannot be forged and tampered, using server public key encryption and client private key encryption. Double encryption technology to determine ownership.

Benefits of technology

In high-risk and high-value transaction scenarios, the security of the transaction link is achieved, ensuring that the transaction flow cannot be forged or tampered with, meeting high security requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113793149B_ABST
    Figure CN113793149B_ABST
Patent Text Reader

Abstract

The present invention discloses an offline transaction authentication system, method, central server, and client, which are applied to the financial field, wherein the method comprises: a first client sends a request to a central server; the central server determines the face value according to the request of the first client; the face value, the electronic cash voucher serial number, the voucher information and the electronic signature of the central server are integrated to obtain the electronic cash voucher; the first client and the second client conduct offline transactions, generate transaction flow, encrypt the transaction flow with the private key of the first client, obtain the transaction flow ciphertext, write the transaction flow and the transaction flow ciphertext into the electronic cash voucher of the first client; the second client replaces the electronic signature of the first client with the electronic signature of the second client, obtains the electronic cash voucher of the second client, and realizes offline transaction authentication. The present invention can realize that the transaction link cannot be forged and tampered with, so as to meet the transaction security requirements in high-risk and high-value transaction scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the financial field, and in particular to an offline transaction authentication system, method, central server and client. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] With the development of technology, the application of information systems in the fields of electronic payment, bill trading, and commodity trading has gradually deepened. However, the operation of trading systems mostly relies on the network. In some offline scenarios (where the network connection is unavailable), general information systems cannot provide services.

[0004] Offline transaction scenarios require the use of electronic devices without an Internet connection. For example, existing applications such as swiping meal cards, swiping shopping cards, and offline verification of vouchers can use offline transaction systems without encryption or simple encryption, but their security is not high and can only be used in limited fields. They cannot be used in business scenarios with high risks and high security requirements, such as bill transactions, securities transactions, and large-value commodity transactions. In addition, general security authentication systems require online verification, such as online transaction systems and blockchain systems, but blockchain systems can only work properly if most nodes are always online. Therefore, traditional transaction authentication methods cannot meet security requirements and are vulnerable to attacks and forgeries. Summary of the invention

[0005] The embodiment of the present invention provides an offline transaction authentication system to solve the problem that the traditional transaction authentication method cannot meet the transaction security requirements in high-risk and high-value scenarios. The system includes:

[0006] A central server, a first client, and a second client;

[0007] The central server is used to: determine the face value according to the request of the first client; generate an electronic cash voucher serial number and a plain text password; encrypt the face value and the electronic cash voucher serial number using the central server private key to obtain voucher information; encrypt the plain text password using the central server private key to generate the central server electronic signature; integrate the face value, the electronic cash voucher serial number, the voucher information and the central server electronic signature to obtain the electronic cash voucher; generate a certificate using the central server private key; and send the electronic cash voucher and the certificate to the first client;

[0008] The first client is used to: send a request to the central server; receive an electronic cash voucher and a certificate; decrypt the central server electronic signature in the electronic cash voucher according to the central server's public key to obtain a plaintext password, encrypt the plaintext password using the first client's private key, and generate the first client's electronic signature; use the first client's electronic signature to replace the central server electronic signature in the electronic cash voucher to obtain the first client's electronic cash voucher; conduct an offline transaction with the second client, generate a transaction flow, encrypt the transaction flow using the first client's private key to obtain a transaction flow ciphertext, write the transaction flow and the transaction flow ciphertext into the first client's electronic cash voucher, and send the first client's electronic cash voucher and certificate to the second client;

[0009] The second client is used to: use the central server public key to verify the legitimacy of the certificate of the first client; use the central server public key to decrypt the certificate of the first client to verify the correct identity of the first client; use the central server public key to verify that the electronic cash voucher of the first client is authentic based on the voucher information, face value and electronic cash voucher serial number in the electronic cash voucher of the first client; use the first client's public key to verify that the transaction flow in the electronic cash voucher of the first client is correct; use the first client's public key to decrypt the first client's electronic signature in the electronic cash voucher of the first client to obtain a plaintext password, use the second client's private key to encrypt the plaintext password, and generate the second client's electronic signature; use the second client's electronic signature to replace the first client's electronic signature to obtain the second client's electronic cash voucher, thereby realizing offline transaction authentication.

[0010] The embodiment of the present invention provides an offline transaction authentication method to solve the problem that the traditional transaction authentication method cannot meet the transaction security requirements in high-risk and high-value scenarios. The method includes:

[0011] The first client sends a request to the central server;

[0012] The central server determines the face value according to the request of the first client; generates an electronic cash voucher serial number and a plain text password; encrypts the face value and the electronic cash voucher serial number using the central server private key to obtain voucher information; encrypts the plain text password using the central server private key to generate the central server electronic signature; integrates the face value, the electronic cash voucher serial number, the voucher information and the central server electronic signature to obtain the electronic cash voucher; generates a certificate using the central server private key; and sends the electronic cash voucher and the certificate to the first client;

[0013] The first client receives the electronic cash voucher and the certificate; decrypts the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plaintext password, encrypts the plaintext password using the private key of the first client, and generates the electronic signature of the first client; replaces the electronic signature of the central server in the electronic cash voucher with the electronic signature of the first client to obtain the electronic cash voucher of the first client; performs an offline transaction with the second client, generates a transaction flow, encrypts the transaction flow using the private key of the first client, obtains a ciphertext of the transaction flow, writes the transaction flow and the ciphertext of the transaction flow into the electronic cash voucher of the first client, and sends the electronic cash voucher and the certificate of the first client to the second client;

[0014] The second client uses the central server public key to verify the legitimacy of the first client's certificate; uses the central server public key to decrypt the first client's certificate to verify that the first client's identity is correct; uses the central server public key to verify that the first client's electronic cash voucher is authentic based on the voucher information, face value and electronic cash voucher serial number in the first client's electronic cash voucher; uses the first client's public key to verify that the transaction flow in the first client's electronic cash voucher is correct; uses the first client's public key to decrypt the first client's electronic signature in the first client's electronic cash voucher to obtain a plaintext password, uses the second client's private key to encrypt the plaintext password to generate the second client's electronic signature; uses the second client's electronic signature to replace the first client's electronic signature to obtain the second client's electronic cash voucher, thereby realizing offline transaction authentication.

[0015] The embodiment of the present invention provides an offline transaction authentication method to solve the problem that the traditional transaction authentication method cannot meet the transaction security requirements in high-risk and high-value scenarios. The method includes:

[0016] Determining the par value according to the request of the first client;

[0017] Generate an electronic cash voucher serial number and a plain text password;

[0018] Use the central server private key to encrypt the face value and the electronic cash voucher serial number to obtain the voucher information;

[0019] Use the central server private key to encrypt the plain text password and generate the central server electronic signature;

[0020] Integrate the face value, the serial number of the electronic cash voucher, the voucher information and the electronic signature of the central server to obtain the electronic cash voucher;

[0021] Generate a certificate using the central server private key;

[0022] The electronic cash voucher and the certificate are sent to the first client.

[0023] The embodiment of the present invention provides an offline transaction authentication method to solve the problem that the traditional transaction authentication method cannot meet the transaction security requirements in high-risk and high-value scenarios. The method includes:

[0024] Send a request to the central server;

[0025] Receive electronic cash vouchers and certificates;

[0026] Decrypting the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plain text password, encrypting the plain text password using the private key of the first client, and generating the electronic signature of the first client;

[0027] Using the electronic signature of the first client to replace the electronic signature of the central server in the electronic cash voucher, to obtain the electronic cash voucher of the first client;

[0028] Conduct offline transactions with the second client to generate a transaction flow, encrypt the transaction flow using the private key of the first client to obtain a ciphertext of the transaction flow, write the transaction flow and the ciphertext of the transaction flow into the electronic cash voucher of the first client, and send the electronic cash voucher and certificate of the first client to the second client.

[0029] The embodiment of the present invention provides an offline transaction authentication method to solve the problem that the traditional transaction authentication method cannot meet the transaction security requirements in high-risk and high-value scenarios. The method includes:

[0030] Use the central server public key to verify the legitimacy of the first client's certificate;

[0031] Decrypt the certificate of the first client using the central server public key to verify that the identity of the first client is correct;

[0032] Using the central server public key to verify that the electronic cash voucher of the first client is authentic based on the voucher information, the face value and the electronic cash voucher serial number in the electronic cash voucher of the first client;

[0033] Using the public key of the first client to verify that the transaction flow in the electronic cash voucher of the first client is correct;

[0034] Decrypting the electronic signature of the first client in the electronic cash voucher of the first client using the public key of the first client to obtain a plain text password, encrypting the plain text password using the private key of the second client to generate an electronic signature of the second client;

[0035] The electronic signature of the first client is replaced with the electronic signature of the second client to obtain the electronic cash voucher of the second client, thereby realizing offline transaction authentication.

[0036] The embodiment of the present invention provides a central server to solve the problem that the traditional transaction authentication method cannot meet the transaction security requirements in high-risk and high-value scenarios. The central server includes:

[0037] An amount generation module, used to determine the face value according to the request of the first client;

[0038] A serial number and password generation module, used to generate an electronic cash voucher serial number and a plain text password;

[0039] An encryption module is used to encrypt the face value and the serial number of the electronic cash voucher using the private key of the central server to obtain the voucher information;

[0040] The signature module is used to encrypt the plain text password using the central server private key and generate the central server electronic signature;

[0041] An integration module is used to integrate the face value, the serial number of the electronic cash voucher, the voucher information and the electronic signature of the central server to obtain the electronic cash voucher;

[0042] The certificate generation module is used to generate a certificate using the central server private key;

[0043] The sending module is used to send the electronic cash voucher and the certificate to the first client.

[0044] An embodiment of the present invention provides a first client to solve the problem that a traditional transaction authentication method cannot meet transaction security requirements in high-risk and high-value scenarios. The first client includes:

[0045] A sending request module is used to send a request to a central server;

[0046] A receiving module, used for receiving electronic cash coupons and certificates;

[0047] A first client signature module, used to decrypt the central server electronic signature in the electronic cash voucher according to the central server's public key to obtain a plain text password, encrypt the plain text password using the first client's private key, and generate the first client's electronic signature;

[0048] A first signature replacement module, used to replace the central server electronic signature in the electronic cash voucher with the electronic signature of the first client to obtain the electronic cash voucher of the first client;

[0049] The transaction flow module performs offline transactions with the second client, generates a transaction flow, encrypts the transaction flow with the private key of the first client, obtains the transaction flow ciphertext, writes the transaction flow and the transaction flow ciphertext into the electronic cash voucher of the first client, and sends the electronic cash voucher and certificate of the first client to the second client.

[0050] The embodiment of the present invention provides a second client to solve the problem that the traditional transaction authentication method cannot meet the transaction security requirements in high-risk and high-value scenarios. The second client includes:

[0051] A certificate verification module, used to verify the legitimacy of the certificate of the first client using the central server public key;

[0052] The first client identity verification module uses the central server public key to decrypt the first client's certificate and verify that the first client's identity is correct;

[0053] A first client electronic cash voucher verification module, used to verify that the first client electronic cash voucher is authentic based on the voucher information, the face value and the electronic cash voucher serial number in the first client electronic cash voucher using the central server public key;

[0054] A transaction flow verification module, used to verify that the transaction flow in the electronic cash voucher of the first client is correct using the public key of the first client;

[0055] The second client signature module is used to decrypt the first client's electronic signature in the first client's electronic cash voucher using the first client's public key to obtain a plain text password, and encrypt the plain text password using the second client's private key to generate the second client's electronic signature;

[0056] The second signature replacement module uses the second client's electronic signature to replace the first client's electronic signature, obtains the second client's electronic cash voucher, and realizes offline transaction authentication.

[0057] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned offline transaction authentication method when executing the computer program.

[0058] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned offline transaction authentication method.

[0059] In the embodiment of the present invention, the electronic signature technology is adopted, the central server generates the basic information of the ticket, and the chain encryption transaction flow technology is used. No customer can delete or modify the previous transaction flow, and the ownership is determined by the double encryption technology of server public key encryption and client private key encryption. Compared with the technical solution of offline transaction system without encryption or simple encryption in the prior art, the chain encryption transaction flow technology can achieve that the transaction links cannot be forged and tampered with, thereby meeting the transaction security requirements in high-risk and high-value transaction scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0061] Figure 1 A schematic diagram of an offline transaction authentication system according to an embodiment of the present invention;

[0062] Figure 2 A schematic diagram of a central server in an embodiment of the present invention;

[0063] Figure 3 A schematic diagram of a specific example of a central server in an embodiment of the present invention;

[0064] Figure 4 is a schematic diagram of a first client in an embodiment of the present invention;

[0065] Figure 5 is a schematic diagram of a second client in an embodiment of the present invention;

[0066] Figure 6 This is a flow chart of an offline transaction authentication method in an embodiment of the present invention;

[0067] Figure 7 This is a flow chart of an offline transaction authentication method in an embodiment of the present invention;

[0068] Figure 8 This is a flow chart of an offline transaction authentication method in an embodiment of the present invention;

[0069] Fig. 9 This is a flow chart of an offline transaction authentication method in an embodiment of the present invention;

[0070] Fig.10 This is a flow chart of an offline transaction authentication method in an embodiment of the present invention;

[0071] Fig.11 This is a general flow chart of an offline transaction authentication method in an embodiment of the present invention;

[0072] Fig.12 Schematic diagram of an electronic cash voucher data structure in an embodiment of the present invention. DETAILED DESCRIPTION

[0073] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0074] Terminology explanation:

[0075] Asymmetric encryption: Asymmetric encryption algorithms require two keys, a public key and a private key. The public key and the private key are a pair. If the public key is used to encrypt data, it can only be decrypted with the corresponding private key. The basic process of asymmetric encryption algorithms to achieve confidential information exchange is: Party A generates a pair of keys and makes the public key public. Other roles (Party B) who need to send information to Party A use the key (Party A's public key) to encrypt the confidential information and then send it to Party A; Party A then uses its own private key to decrypt the encrypted information. When Party A wants to reply to Party B, the opposite is true. Party B's public key is used to encrypt the data. Similarly, Party B uses its own private key to decrypt it.

[0076] Electronic signature: A piece of information is encrypted using a private key. This information can be decrypted by a public key. Since the public key is available to the public, the encrypted information can be decrypted and read by everyone, but it cannot be generated by others. This technology is often used for identity authentication on the Internet.

[0077] Digital certificate: used to authenticate the identity of the public key holder to prevent impersonation by a third party. It usually includes: public key; holder information; certificate authority (CA) information; CA's digital signature on the document and the algorithm used; certificate validity period; and some other additional information.

[0078] An embodiment of the present invention provides an offline transaction authentication system. Figure 1 FIG. 1 is a schematic diagram of an offline transaction authentication system according to an embodiment of the present invention. Figure 1 As shown, the system may include:

[0079] Central server 101, first client 102 and second client 103;

[0080] The central server is used in 101: determining the face value according to the request of the first client; generating an electronic cash voucher serial number and a plain text password; encrypting the face value and the electronic cash voucher serial number using the central server private key to obtain voucher information; encrypting the plain text password using the central server private key to generate the central server electronic signature; integrating the face value, the electronic cash voucher serial number, the voucher information and the central server electronic signature to obtain the electronic cash voucher; generating a certificate using the central server private key; and sending the electronic cash voucher and the certificate to the first client;

[0081] The first client 102 is used to: send a request to the central server; receive an electronic cash voucher and a certificate; decrypt the central server electronic signature in the electronic cash voucher according to the central server's public key to obtain a plain text password, encrypt the plain text password using the first client's private key, and generate the first client's electronic signature; use the first client's electronic signature to replace the central server's electronic signature in the electronic cash voucher to obtain the first client's electronic cash voucher; conduct an offline transaction with the second client, generate a transaction flow, encrypt the transaction flow using the first client's private key to obtain a transaction flow ciphertext, write the transaction flow and the transaction flow ciphertext into the first client's electronic cash voucher, and send the first client's electronic cash voucher and certificate to the second client;

[0082] The second client 103 is used to: use the central server public key to verify the legitimacy of the certificate of the first client; use the central server public key to decrypt the certificate of the first client to verify the correct identity of the first client; use the central server public key to verify that the electronic cash voucher of the first client is authentic based on the voucher information, face value and electronic cash voucher serial number in the electronic cash voucher of the first client; use the first client public key to verify that the transaction flow in the electronic cash voucher of the first client is correct; use the first client public key to decrypt the first client's electronic signature in the electronic cash voucher of the first client to obtain a plaintext password, use the second client private key to encrypt the plaintext password, and generate the second client's electronic signature; use the second client's electronic signature to replace the first client's electronic signature to obtain the second client's electronic cash voucher, thereby realizing offline transaction authentication.

[0083] Specifically, in order to facilitate the description of the process, the first client and the second client are proposed. In fact, the functions of the first client and the second client can exist in one client, and different functions are executed when performing offline transactions.

[0084] In the embodiment of the present invention, electronic signature technology is adopted, and the central server generates basic information on the ticket. The chain encryption transaction flow technology is used, and no customer can delete or modify the previous transaction flow. The ownership is determined by double encryption technology of server public key encryption and client private key encryption, thereby meeting transaction security requirements in high-risk and high-value transaction scenarios.

[0085] In the offline transaction authentication system of the embodiment of the present invention, the central server complies with the relevant standards of the hardware encryption machine, and can provide standard symmetric encryption and decryption, asymmetric encryption and decryption, and signature verification functions, and can also generate relevant certificate files.

[0086] In one embodiment, determining the face value according to the request of the first client may include: the first client may include a first mobile phone of the first user, the central server may include a bank server, and the face value is determined according to the request of the first mobile phone. For example, the bank server determines that the face value is 1,000 yuan according to the request of the first mobile phone.

[0087] In one embodiment, generating an electronic cash voucher serial number and a plain text password may include: the central server randomly generates an electronic cash voucher serial number 001 and a plain text password 666.

[0088] In one embodiment, the face value and the electronic cash voucher serial number are encrypted using the central server private key, and the voucher information obtained may include: the central server uses the central server private key to encrypt the face value of 1,000 yuan and the electronic cash voucher serial number 001, and the encrypted face value of 1,000 yuan and the encrypted electronic cash voucher serial number 001 are the voucher information.

[0089] In one embodiment, using the central server private key to encrypt the plain text password and generating the central server electronic signature may include: using the central server private key to encrypt the plain text password 666 and generating the central server electronic signature.

[0090] In one embodiment, integrating the face value, electronic cash voucher serial number, voucher information and the electronic signature of the central server to obtain the electronic cash voucher may include: integrating the face value of 1,000 yuan, the electronic cash voucher serial number 001, the encrypted face value of 1,000 yuan, the encrypted electronic cash voucher serial number 001 and the electronic signature of the central server to obtain the electronic cash voucher.

[0091] In one embodiment, generating a certificate using a central server private key; sending the electronic cash voucher and the certificate to the first client may include: generating a certificate using the central server private key through OpenSSL (Open Secure Sockets Layer); and sending the electronic cash voucher and the certificate to the first mobile phone.

[0092] In one embodiment, sending a request to the central server may include: before the offline transaction, the first mobile phone generates a request for an electronic cash voucher of 1,000 yuan based on the information that the amount is 1,000 yuan input by the first user, and sends it to the central server.

[0093] In one embodiment, receiving an electronic cash voucher and a certificate; decrypting the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plain text password, encrypting the plain text password using the private key of the first client, and generating the electronic signature of the first client may include: the first mobile phone receives the electronic cash voucher and the certificate sent by the bank server; the first mobile phone decrypts the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plain text password 666, encrypting the plain text password 666 using the private key of the first mobile phone, and generating the electronic signature of the first mobile phone.

[0094] In one embodiment, using the electronic signature of the first client to replace the electronic signature of the central server in the electronic cash voucher to obtain the electronic cash voucher of the first client may include: using the electronic signature of the first mobile phone to replace the electronic signature of the central server in the electronic cash voucher to obtain the electronic cash voucher with the electronic signature of the first mobile phone, that is, the electronic cash voucher of the first client.

[0095] In one embodiment, an offline transaction is conducted with a second client to generate a transaction flow, the transaction flow is encrypted using the private key of the first client to obtain a transaction flow ciphertext, the transaction flow and the transaction flow ciphertext are written into the electronic cash voucher of the first client, and the electronic cash voucher and certificate of the first client are sent to the second client, which may include: a first mobile phone and a second mobile phone conduct an offline transaction, the first mobile phone generates a transaction flow, the content of the transaction flow may include that the two parties of the transaction are the first mobile phone and the second mobile phone, the transaction flow is encrypted using the private key of the first mobile phone to obtain the encrypted transaction flow, i.e., the transaction flow ciphertext, the transaction flow and the transaction flow ciphertext are written into the electronic cash voucher of the first mobile phone, so that the electronic cash voucher of the first mobile phone includes the transaction flow and the transaction flow ciphertext, and the electronic cash voucher of the first mobile phone and the certificate transmitted to the first mobile phone by the bank server are sent to the second mobile phone.

[0096] In one embodiment, using the central server public key to verify the legitimacy of the certificate of the first client may include: the second mobile phone uses the bank server public key to verify whether the certificate sent by the first mobile phone is issued by the bank server, that is, whether it is legitimate.

[0097] In order to further improve the humanized design of offline transactions, the second client 103 can be specifically used to: use the central server public key to decrypt the certificate of the first client to obtain the certificate authentication authority of the first client, use the central server public key to decrypt the certificate of the second client to obtain the certificate authentication authority of the second client; compare the certificate authentication authority of the first client with the certificate authentication authority of the second client; if the comparison is consistent, the certificate of the first client is legal; if the comparison is inconsistent, the certificate of the first client is illegal, prompt the user that the certificate is wrong and end the transaction.

[0098] In one embodiment, using the central server public key to decrypt the certificate of the first client and verifying that the identity of the first client is correct may include: the second mobile phone uses the bank server public key to decrypt the holder information included in the certificate sent by the first mobile phone to determine whether it is the first mobile phone, to verify whether the identity of the first mobile phone is correct.

[0099] In order to further improve the humanized design of offline transactions, the second client 103 can be specifically used to: use the central server public key to decrypt the certificate of the first client to obtain the holder information; compare the holder information with the identity information of the first client, wherein the electronic cash voucher of the first client includes the identity information of the first client; if the comparison is consistent, the identity of the first client is correct; if the comparison is inconsistent, the identity of the first client is incorrect, prompting the user that the identity of the first client is wrong and terminating the transaction.

[0100] In one embodiment, using the central server public key to verify that the electronic cash voucher of the first client is genuine based on the voucher information, face value and electronic cash voucher serial number in the electronic cash voucher of the first client may include: the second mobile phone uses the bank server public key to decrypt the voucher information in the electronic cash voucher of the first mobile phone, and after decryption, the voucher information is compared with the face value and the electronic cash voucher serial number, and the verification result is that the electronic cash voucher of the first mobile phone is genuine.

[0101] In order to further improve the humanized design of offline transactions, the second client 103 can be specifically used to: use the central server public key to decrypt the voucher information in the electronic cash voucher of the first client, obtain the decrypted face value and the electronic cash voucher serial number, and compare the decrypted face value and the electronic cash voucher serial number with the face value and the electronic cash voucher serial number in the electronic cash voucher of the first client to verify the voucher information comparison; if the comparison is consistent, the electronic cash voucher of the first client is true; if the comparison is inconsistent, the electronic cash voucher of the first client is false, and the user is prompted that the electronic cash voucher is wrong and the transaction is terminated.

[0102] In one embodiment, using the public key of the first client to verify that the transaction flow in the electronic cash voucher of the first client is correct may include: the second mobile phone uses the public key of the first mobile phone to decrypt the transaction flow ciphertext in the electronic cash voucher of the first mobile phone, and then compares it with the transaction flow to verify that the transaction flow is correct.

[0103] In order to further improve the humanized design of offline transactions, the second client 103 can be specifically used to: use the public key of the first client to verify the transaction flow ciphertext to obtain the decrypted transaction flow; compare the decrypted transaction flow with the transaction flow; if the comparison is consistent, the transaction flow is correct; if the comparison is inconsistent, the transaction flow is incorrect, and the user is prompted that the transaction flow is wrong and the transaction is terminated.

[0104] In one embodiment, using the public key of the first client to decrypt the electronic signature of the first client in the electronic cash voucher of the first client to obtain a plaintext password, using the private key of the second client to encrypt the plaintext password, and generating the electronic signature of the second client may include: the second mobile phone uses the public key of the first mobile phone to decrypt the electronic signature of the first mobile phone in the electronic cash voucher of the first mobile phone to obtain the plaintext password 666, and uses the private key of the second mobile phone to encrypt the plaintext password 666 to generate the electronic signature of the second mobile phone.

[0105] In one embodiment, the electronic signature of the first client is replaced with the electronic signature of the second client to obtain the electronic cash voucher of the second client, and offline transaction authentication may include: the second mobile phone uses the electronic signature of the second mobile phone to replace the electronic signature of the first mobile phone in the electronic cash voucher of the first mobile phone to obtain the electronic cash voucher of the second mobile phone. At this time, the transaction from the first mobile phone to the second mobile phone is completed, and offline transaction authentication is achieved.

[0106] In order to further improve the security of transactions and realize online verification of offline transactions, the central server 101 can also be used to: receive an electronic cash voucher authenticity verification request sent by the second client, wherein the electronic cash voucher authenticity verification request includes the electronic cash voucher of the second client; use the public key to decrypt the voucher information in the electronic cash voucher of the second client to obtain the decrypted face value and the electronic cash voucher serial number, and compare the decrypted face value and the electronic cash voucher serial number with the face value and the electronic cash voucher serial number in the electronic cash voucher of the second client to verify whether the voucher information is correct; use the public key of the first client to decrypt the transaction flow ciphertext in the electronic cash voucher of the second client to obtain the decrypted transaction flow, and compare the decrypted transaction flow with the transaction flow in the electronic cash voucher to verify whether the transaction flow is correct; use the public key of the second client to decrypt the electronic signature of the second client in the electronic cash voucher of the second client to obtain the plaintext password of the second client, and use the plaintext password of the second client to compare with the plaintext password generated by the central server to perform the electronic signature verification of the second client.

[0107] An embodiment of the present invention provides a central server, Figure 2 Schematic diagram of a central server in an embodiment of the present invention, Figure 2 As shown, the central server may include:

[0108] Amount generating module 201, used to determine the face value according to the request of the first client;

[0109] The serial number and password generating module 202 is used to generate an electronic cash voucher serial number and a plain text password;

[0110] Encryption module 203, used to encrypt the face value and the electronic cash voucher serial number using the central server private key to obtain voucher information;

[0111] Signature module 204, used to encrypt the plain text password using the central server private key to generate the central server electronic signature;

[0112] Integration module 205, used to integrate the face value, the electronic cash voucher serial number, the voucher information and the electronic signature of the central server to obtain the electronic cash voucher;

[0113] The certificate generation module 206 is used to generate a certificate using the central server private key;

[0114] The sending module 207 is used to send the electronic cash voucher and the certificate to the first client.

[0115] An embodiment of the present invention provides a specific example of a central server. Figure 3 FIG. 1 is a schematic diagram of a specific example of a central server in an embodiment of the present invention. Figure 3 As shown, the central server may also include:

[0116] The receiving module 301 is used to receive an electronic cash voucher authenticity verification request sent by a second client, wherein the electronic cash voucher authenticity verification request includes the electronic cash voucher of the second client;

[0117] The voucher information verification module 302 uses the public key to decrypt the voucher information in the electronic cash voucher of the second client, obtains the decrypted face value and the electronic cash voucher serial number, and compares the decrypted face value and the electronic cash voucher serial number with the face value and the electronic cash voucher serial number in the electronic cash voucher of the second client to verify whether the voucher information is correct;

[0118] The transaction flow verification module 303 is used to decrypt the transaction flow ciphertext in the electronic cash voucher of the second client using the public key of the first client to obtain the decrypted transaction flow, and compare the decrypted transaction flow with the transaction flow in the electronic cash voucher to verify whether the transaction flow is correct;

[0119] The second client verification module 304 is used to use the second client public key to decrypt the second client's electronic signature in the second client's electronic cash voucher to obtain the second client's plain text password, and use the second client's plain text password to compare with the plain text password generated by the central server to verify the second client's electronic signature.

[0120] An embodiment of the present invention provides a first client, Figure 4 is a schematic diagram of a first client in an embodiment of the present invention, such as Figure 4 As shown, the first client may include:

[0121] A request sending module 401 is used to send a request to a central server;

[0122] A receiving module 402, for receiving electronic cash coupons and certificates;

[0123] The first client signature module 403 is used to decrypt the central server electronic signature in the electronic cash voucher according to the central server's public key to obtain a plain text password, encrypt the plain text password using the first client's private key, and generate the first client's electronic signature;

[0124] The first signature replacement module 404 is used to replace the central server electronic signature in the electronic cash voucher with the electronic signature of the first client to obtain the electronic cash voucher of the first client;

[0125] The transaction flow module 405 performs offline transactions with the second client, generates a transaction flow, encrypts the transaction flow using the private key of the first client, obtains a transaction flow ciphertext, writes the transaction flow and the transaction flow ciphertext into the electronic cash voucher of the first client, and sends the electronic cash voucher and certificate of the first client to the second client.

[0126] An embodiment of the present invention provides a second client. Figure 5 is a schematic diagram of a second client in an embodiment of the present invention, such as Figure 5 As shown, the second client may include:

[0127] The certificate verification module 501 is used to verify the legitimacy of the certificate of the first client using the central server public key;

[0128] The first client identity verification module 502 uses the central server public key to decrypt the first client's certificate and verify that the first client's identity is correct;

[0129] The first client electronic cash voucher verification module 503 is used to verify that the first client electronic cash voucher is authentic based on the voucher information, the face value and the electronic cash voucher serial number in the first client electronic cash voucher using the central server public key;

[0130] The transaction flow verification module 504 is used to verify that the transaction flow in the electronic cash voucher of the first client is correct using the public key of the first client;

[0131] The second client signature module 505 is used to decrypt the first client's electronic signature in the first client's electronic cash voucher using the first client's public key to obtain a plain text password, and encrypt the plain text password using the second client's private key to generate the second client's electronic signature;

[0132] The second signature replacement module 506 uses the second client's electronic signature to replace the first client's electronic signature, obtains the second client's electronic cash voucher, and realizes offline transaction authentication.

[0133] In one embodiment, the certificate verification module 501 may be specifically used for:

[0134] The certificate of the first client is decrypted using the central server public key to obtain the certificate authentication authority of the first client, and the certificate of the second client is decrypted using the central server public key to obtain the certificate authentication authority of the second client; the certificate authentication authority of the first client is compared with the certificate authentication authority of the second client; if the comparison is consistent, the certificate of the first client is legal; if the comparison is inconsistent, the certificate of the first client is illegal, the user is prompted with a certificate error, and the transaction is terminated.

[0135] In one embodiment, the first client identity verification module 502 may be specifically used for:

[0136] The certificate of the first client is decrypted using the central server public key to obtain the holder information; the holder information is compared with the identity information of the first client, wherein the electronic cash voucher of the first client includes the identity information of the first client; if the comparison is consistent, the identity of the first client is correct; if the comparison is inconsistent, the identity of the first client is incorrect, and the user is prompted that the identity of the first client is incorrect and the transaction is terminated.

[0137] In one embodiment, the first client electronic cash voucher verification module 503 may be specifically used for:

[0138] The central server public key is used to decrypt the coupon information in the electronic cash voucher of the first client to obtain the decrypted face value and the electronic cash voucher serial number, and the decrypted face value and the electronic cash voucher serial number are compared with the face value and the electronic cash voucher serial number in the electronic cash voucher of the first client to verify the coupon information comparison; if the comparison is consistent, the electronic cash voucher of the first client is true; if the comparison is inconsistent, the electronic cash voucher of the first client is false, and the user is prompted that the electronic cash voucher is wrong and the transaction is terminated.

[0139] In one embodiment, the transaction flow verification module 504 may be specifically used to:

[0140] Use the public key of the first client to verify the transaction flow ciphertext and obtain the decrypted transaction flow; compare the decrypted transaction flow with the transaction flow; if the comparison is consistent, the transaction flow is correct; if the comparison is inconsistent, the transaction flow is incorrect, and the user is prompted that the transaction flow is wrong and the transaction is terminated.

[0141] An embodiment of the present invention provides an offline transaction authentication method. Figure 6 FIG. 1 is a flow chart of an offline transaction authentication method according to an embodiment of the present invention. Figure 6 As shown, the offline transaction authentication method may include:

[0142] Step 601: The first client sends a request to the central server;

[0143] Step 602: The central server determines the face value according to the request of the first client; generates an electronic cash voucher serial number and a plain text password; encrypts the face value and the electronic cash voucher serial number using the central server private key to obtain voucher information; encrypts the plain text password using the central server private key to generate the central server electronic signature; integrates the face value, the electronic cash voucher serial number, the voucher information and the central server electronic signature to obtain the electronic cash voucher; generates a certificate using the central server private key; and sends the electronic cash voucher and the certificate to the first client;

[0144] Step 603, the first client receives the electronic cash voucher and the certificate; decrypts the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plaintext password, encrypts the plaintext password using the private key of the first client, and generates the electronic signature of the first client; replaces the electronic signature of the central server in the electronic cash voucher with the electronic signature of the first client to obtain the electronic cash voucher of the first client; performs an offline transaction with the second client, generates a transaction flow, encrypts the transaction flow using the private key of the first client, obtains a transaction flow ciphertext, writes the transaction flow and the transaction flow ciphertext into the electronic cash voucher of the first client, and sends the electronic cash voucher and the certificate of the first client to the second client;

[0145] Step 604: The second client uses the central server public key to verify that the certificate of the first client is legitimate; uses the central server public key to decrypt the certificate of the first client to verify that the identity of the first client is correct; uses the central server public key to verify that the electronic cash voucher of the first client is authentic based on the voucher information, face value and electronic cash voucher serial number in the electronic cash voucher of the first client; uses the first client public key to verify that the transaction flow in the electronic cash voucher of the first client is correct; uses the first client public key to decrypt the first client's electronic signature in the electronic cash voucher of the first client to obtain a plaintext password, uses the second client private key to encrypt the plaintext password, and generates the second client's electronic signature; uses the second client's electronic signature to replace the first client's electronic signature to obtain the second client's electronic cash voucher, thereby realizing offline transaction authentication.

[0146] An embodiment of the present invention provides a specific example of an offline transaction authentication method. Figure 7 FIG. 1 is a flowchart of a specific example of an offline transaction authentication method in an embodiment of the present invention. Figure 7 As shown, the offline transaction authentication method may include:

[0147] Step 701: The central server receives an electronic cash voucher authenticity verification request sent by a second client, wherein the electronic cash voucher authenticity verification request includes the electronic cash voucher of the second client;

[0148] Step 702: The central server uses the public key to decrypt the voucher information in the electronic cash voucher of the second client, obtains the decrypted face value and the electronic cash voucher serial number, and compares the decrypted face value and the electronic cash voucher serial number with the face value and the electronic cash voucher serial number in the electronic cash voucher of the second client to verify whether the voucher information is correct;

[0149] Step 703: The central server uses the public key of the first client to decrypt the transaction flow ciphertext in the electronic cash voucher of the second client to obtain the decrypted transaction flow, and compares the decrypted transaction flow with the transaction flow in the electronic cash voucher to verify whether the transaction flow is correct;

[0150] Step 704: The central server uses the second client's public key to decrypt the second client's electronic signature to obtain the second client's plain text password, and compares the second client's plain text password with the plain text password generated by the central server to verify the second client's electronic signature.

[0151] An embodiment of the present invention provides an offline transaction authentication method. Figure 8 FIG. 1 is a flow chart of an offline transaction authentication method according to an embodiment of the present invention. Figure 8 As shown, the offline transaction authentication method may include:

[0152] Step 801: Determine the par value according to the request of the first client;

[0153] Step 802: Generate an electronic cash voucher serial number and a plain text password;

[0154] Step 803: Use the central server private key to encrypt the face value and the electronic cash voucher serial number to obtain the voucher information;

[0155] Step 804: Encrypt the plain text password using the central server private key to generate the central server electronic signature;

[0156] Step 805: Integrate the face value, the electronic cash voucher serial number, the voucher information and the electronic signature of the central server to obtain the electronic cash voucher;

[0157] Step 806: Generate a certificate using the central server private key;

[0158] Step 807: Send the electronic cash voucher and the certificate to the first client.

[0159] An embodiment of the present invention provides an offline transaction authentication method. Fig. 9 FIG. 1 is a flow chart of an offline transaction authentication method according to an embodiment of the present invention. Fig. 9 As shown, the offline transaction authentication method may include:

[0160] Step 901: Send a request to a central server;

[0161] Step 902: receiving the electronic cash voucher and certificate;

[0162] Step 903: decrypt the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plain text password, encrypt the plain text password using the private key of the first client, and generate the electronic signature of the first client;

[0163] Step 904: Use the electronic signature of the first client to replace the electronic signature of the central server in the electronic cash voucher to obtain the electronic cash voucher of the first client;

[0164] Step 905: Perform an offline transaction with the second client to generate a transaction flow, encrypt the transaction flow using the private key of the first client to obtain a ciphertext of the transaction flow, write the transaction flow and the ciphertext of the transaction flow into the electronic cash voucher of the first client, and send the electronic cash voucher and certificate of the first client to the second client.

[0165] An embodiment of the present invention provides an offline transaction authentication method. Fig.10 FIG. 1 is a flow chart of an offline transaction authentication method according to an embodiment of the present invention. Fig.10 As shown, the offline transaction authentication method may include:

[0166] Step 1001: Use the central server public key to verify the legitimacy of the certificate of the first client;

[0167] Step 1002: Use the central server public key to decrypt the certificate of the first client to verify that the identity of the first client is correct;

[0168] Step 1003: Use the central server public key to verify that the electronic cash voucher of the first client is authentic based on the voucher information, the face value and the electronic cash voucher serial number in the electronic cash voucher of the first client;

[0169] Step 1004: Use the public key of the first client to verify that the transaction flow in the electronic cash voucher of the first client is correct;

[0170] Step 1005: decrypt the electronic signature of the first client in the electronic cash voucher of the first client using the public key of the first client to obtain the plain text password, and encrypt the plain text password using the private key of the second client to generate the electronic signature of the second client;

[0171] Step 1006: Use the electronic signature of the second client to replace the electronic signature of the first client, obtain the electronic cash voucher of the second client, and realize offline transaction authentication.

[0172] In one embodiment, the above step 1001 may include the following steps:

[0173] Decrypt the certificate of the first client using the central server public key to obtain the certificate authentication authority of the first client, and decrypt the certificate of the second client using the central server public key to obtain the certificate authentication authority of the second client;

[0174] comparing the certificate authority of the first client with the certificate authority of the second client;

[0175] If the comparison is consistent, the certificate of the first client is legal;

[0176] If the comparison is inconsistent, the certificate of the first client is illegal, the user is prompted with a certificate error and the transaction is terminated.

[0177] In one embodiment, the above step 1002 may include the following steps:

[0178] Decrypt the certificate of the first client using the central server public key to obtain the holder information;

[0179] Comparing the holder information with the first client identity information, wherein the first client electronic cash voucher includes the first client identity information;

[0180] If the comparison is consistent, the identity of the first client is correct;

[0181] If the comparison is inconsistent, the identity of the first client is incorrect, the user is prompted that the identity of the first client is incorrect and the transaction is terminated.

[0182] In one embodiment, the above step 1003 may include the following steps:

[0183] Decrypt the coupon information in the electronic cash coupon of the first client using the central server public key to obtain the decrypted face value and the electronic cash coupon serial number, and compare the decrypted face value and the electronic cash coupon serial number with the face value and the electronic cash coupon serial number in the electronic cash coupon of the first client to verify the coupon information comparison;

[0184] If the comparison is consistent, the electronic cash voucher of the first client is authentic;

[0185] If the comparison is inconsistent, the electronic cash voucher of the first client is false, the user is prompted that the electronic cash voucher is wrong and the transaction is terminated.

[0186] In one embodiment, the above step 1004 may include the following steps:

[0187] Use the public key of the first client to verify the transaction flow ciphertext and obtain the decrypted transaction flow;

[0188] Compare the decrypted transaction flow with the transaction flow;

[0189] If the comparison is consistent, the transaction flow is correct;

[0190] If the comparison is inconsistent, the transaction flow is incorrect, and the user is prompted that the transaction flow is wrong and the transaction is terminated.

[0191] Fig.11 FIG. 1 is a general flow chart of an offline transaction authentication method in an embodiment of the present invention. Fig.11 As shown, the overall process includes:

[0192] 1. System basic process:

[0193] 1. The system has a central server, which stores its own public key PubKey-center and private key PriKey-center. The server also stores the public key PubKey-x of all users. Clients A, B, and C are registered clients. A has public and private keys PubKey-A and PriKey-A. B has public and private keys PubKey-B and PriKey-B. C has public and private keys PubKey-C and PriKey-C. Each client also stores the server's public key PubKey-center.

[0194] 2. Customer A has an electronic cash voucher with a face value of RMB 1,000, which is directly issued by the central system. Fig.12 As shown, the electronic cash voucher data structure contains the following information: ① Face value 1000 yuan Balance (1000) ② Electronic signature of the central server Signature-center ③ Electronic cash voucher serial number SerialNo ④ Electronic signature of the current owner (Customer A) Signature-A ⑤ Voucher information Sec-center (Balance (1000) + SerialNo) encrypted by the central private key ⑥ Other related information.

[0195] 2. Transaction process I (A pays 1,000 yuan in full to B):

[0196] 1. User B verifies the public key certificate and electronic signature of user A. User B uses the central public key PubKey-center to verify the legitimacy of user A's certificate (confirming that the certificate is issued by the central server). Verify that user A's identity is correct.

[0197] 2. User B verifies the authenticity of the ticket. User B uses the central public key to decrypt the ticket information Sec-center (Balance (1000) + SerialNo). The amount and ticket serial number obtained are consistent with the plain text, and the authenticity verification is passed.

[0198] 3. User A generates a transaction flow Tran(A->B). He encrypts the content with A's private key to generate a transaction flow Sec-A(Tran(A->B)). B uses A's public key to verify that the transaction flow is correct.

[0199] 4. User B uses A's public key to remove the electronic signature Signature-A, and then signs the received electronic cash voucher with Signature-B.

[0200] 3. Transaction Process II (B pays 500 yuan to C)

[0201] 1. User C verifies the public key certificate and electronic signature of user B. User C uses the central public key PubKey-center to verify the legitimacy of user B's certificate (confirm that the certificate is issued by the central server). Verify that user B's identity is correct.

[0202] 2. User C verifies the authenticity of the bill. User C uses the central public key to decrypt the bill information Sec-center (Balance (1000) + SerialNo). The amount and the serial number of the bill obtained are consistent with the plain text, and the authenticity verification is passed.

[0203] 3. User B generates a transaction flow Tran(B->C). The content is encrypted using B's private key to generate a transaction flow Sec-B(Tran(B->C)).

[0204] 4. User B transfers Tran(A->B), Tran(B->C), Sec-A(Tran(A->B)), and Sec-B(Tran(B->C)). C uses B's public key to verify that the last transaction is correct.

[0205] 5. User C uses B's public key to remove the electronic signature Signature-B, and then signs the received electronic cash voucher with Signature-C.

[0206] IV. Online Verification Process I (B User Verifies Authenticity Online)

[0207] 1. After connecting to the Internet, user B can verify the authenticity of the remaining 500 yuan electronic cash voucher. At this time, the cash voucher owned by user B contains the following information: initial voucher information Sec-center (Balance (1000) + SerialNo); plaintext transaction flow Tran (A-> B); ciphertext transaction flow Sec-A (Tran (A-> B)); B's own electronic signature Signature-B.

[0208] 2. After receiving the verification request, the central server first checks the initial voucher information Sec-center (Balance (1000) + SerialNo). The voucher is an electronic cash voucher with a face value of 1,000 yuan issued by the central system to A.

[0209] 3. The central server verifies the transaction flow Tran(A->B) and uses A's public key to decrypt Sec-A(Tran(A->B)). If the two are consistent, it means that A paid B 500 yuan using the cash voucher.

[0210] 4. The central server verifies Signature-B and confirms that the 500 yuan belongs to B.

[0211] 5. After the verification is completed, the central server determines that the transaction is valid and the subsequent operations can be completed (500 yuan can be transferred from A's real account to B).

[0212] V. Online Verification Process II (C User Online Verification of Authenticity)

[0213] 1. After connecting to the Internet, user C can verify the authenticity of the 500 yuan electronic cash voucher in his hand. At this time, user C's cash voucher contains the following information: initial voucher information Sec-center (Balance (1000) + SerialNo); plaintext transaction flow Tran (A->B), Tran (B->C); ciphertext transaction flow Sec-A (Tran (A->B)), Sec-B (Tran (B->C)); C's own electronic signature Signature-C.

[0214] 2. After receiving the verification request, the central server first checks the initial voucher information Sec-center (Balance (1000) + SerialNo). The voucher is an electronic cash voucher with a face value of 1,000 yuan issued by the central system to A.

[0215] 3. The central server verifies the transaction flow Tran(A->B) and uses A's public key to decrypt Sec-A(Tran(A->B)). If the two match, it means that A used the cash voucher to pay B 500 yuan. Then it verifies Tran(B->C) and uses B's public key to decrypt Sec-B(Tran(B->C)). If the two match, it means that B used the cash voucher to pay C 500 yuan.

[0216] 4. The central server verifies Signature-C and confirms that the 500 yuan belongs to C.

[0217] 5. After the verification is completed, the central server determines that the transaction is valid and the subsequent operations can be completed (another 500 yuan can be transferred from A's real account to B).

[0218] 6. Anti-counterfeiting mechanism design

[0219] 1. Initial ticket information Sec-center (Balance (1000) + SerialNo). The plain text content is the initial denomination + random serial number. This information is encrypted using the private key of the central server. Anyone can use the public key of the central server to read the plain text content, but cannot forge the encrypted data (because the private key used for encryption is only owned by the central server).

[0220] 2. Digital signature. The server randomly generates a plaintext password SignPassWord-P and saves it in the server database, and then uses the server public key to encrypt the password to generate the encrypted password SignPassWord-E. A uses the private key to sign the encrypted password SignPassWord-E to form Signature-A. When the ticket is traded to B or C, B and C can use the public key of the original owner to obtain SignPassWord-P, and then encrypt it with their own private key to obtain ownership. When verification is required, the server uses the public key of the final owner X to obtain SignPassWord-E, and then uses its own private key to decrypt SignPassWord-P, and finally verifies that the signature is valid and X is the legal owner of the ticket.

[0221] 3. Chain transaction records.

[0222] The first transaction is Tran(A->B), which contains the transaction time, amount and other information. When using A's private key for encryption, it is necessary to package and encrypt Tran(A->B) and the hash code of the initial bond information Sec-center(Balance(1000)+SerialNo). That is, Sec-A(Tran(A->B))=Sec-A(Tran(A->B)+Hash(Sec-center(Balance(1000)+SerialNo))).

[0223] The second transaction flow is Tran(B->C). When encrypting, it is necessary to use B's private key to package and encrypt the hash code of Tran(B->C) and Sec-A(Tran(A->B)).

[0224] That is, Sec-B(Tran(B->C))=Sec-B(Tran(B->C)+Hash(Sec-A(Tran(A->B)))).

[0225] It can be seen that each link in the chain encryption structure contains the digital index information of the previous link. This design ensures that in each transaction link, traders can only verify the correctness of the transaction information in this link, but cannot change the previous transaction and can only pass it truthfully. Since the central server has the public keys of all customers, it can verify the authenticity of all transactions from back to front (the central server can only verify the authenticity of all transactions, and it cannot deny or modify any transaction in any link). If any user tampers with the data in the entire transaction chain, the central server can also find the user according to the decryption chain process.

[0226] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned offline transaction authentication method when executing the computer program.

[0227] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned offline transaction authentication method.

[0228] In the embodiment of the present invention, the electronic signature technology is adopted, the central server generates the basic information of the ticket, and the chain encryption transaction flow technology is used. No customer can delete or modify the previous transaction flow, and the ownership is determined by the double encryption technology of server public key encryption and client private key encryption. Compared with the technical solution of offline transaction system without encryption or simple encryption in the prior art, the chain encryption transaction flow technology can achieve that the transaction links cannot be forged and tampered with, thereby meeting the transaction security requirements in high-risk and high-value transaction scenarios.

[0229] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0230] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0231] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0232] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0233] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An offline transaction authentication system, characterized in that: include: A central server, a first client, and a second client; The central server is used to: determine the face value according to the request of the first client; Generate an electronic cash voucher serial number and a plain text password; Encrypt the face value and the electronic cash voucher serial number using the central server private key to obtain the voucher information; encrypt the plain text password using the central server private key to generate the central server electronic signature; integrate the face value, the electronic cash voucher serial number, the voucher information and the central server electronic signature to obtain the electronic cash voucher; generate a certificate using the central server private key; sending the electronic cash voucher and the certificate to the first client; The first client is used to: send a request to the central server; Receive electronic cash vouchers and certificates; Decrypting the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plain text password, encrypting the plain text password using the private key of the first client, and generating the electronic signature of the first client; Using the electronic signature of the first client to replace the electronic signature of the central server in the electronic cash voucher, to obtain the electronic cash voucher of the first client; Conduct offline transactions with the second client, generate transaction records, encrypt the transaction records using the private key of the first client, obtain transaction records ciphertext, write the transaction records and transaction records ciphertext into the electronic cash voucher of the first client, and send the electronic cash voucher and certificate of the first client to the second client; The second client is used to: verify the legitimacy of the certificate of the first client using the central server public key; decrypt the certificate of the first client using the central server public key to verify the correct identity of the first client; Using the central server public key to verify that the electronic cash voucher of the first client is authentic based on the voucher information, the face value and the serial number of the electronic cash voucher in the electronic cash voucher of the first client; using the public key of the first client to verify that the transaction flow in the electronic cash voucher of the first client is correct; using the public key of the first client to decrypt the electronic signature of the first client in the electronic cash voucher of the first client to obtain a plaintext password, using the private key of the second client to encrypt the plaintext password, and generating the electronic signature of the second client; The electronic signature of the first client is replaced with the electronic signature of the second client to obtain the electronic cash voucher of the second client, thereby realizing offline transaction authentication.

2. The system according to claim 1, characterized in that The central server is also used to: Receiving an electronic cash voucher authenticity verification request sent by a second client, wherein the electronic cash voucher authenticity verification request includes the electronic cash voucher of the second client; Decrypt the voucher information in the electronic cash voucher of the second client using the public key to obtain the decrypted face value and the electronic cash voucher serial number, and compare the decrypted face value and the electronic cash voucher serial number with the face value and the electronic cash voucher serial number in the electronic cash voucher of the second client to verify whether the voucher information is correct; Decrypt the transaction flow ciphertext in the electronic cash voucher of the second client using the public key of the first client to obtain the decrypted transaction flow, and compare the decrypted transaction flow with the transaction flow in the electronic cash voucher to verify whether the transaction flow is correct; The second client's electronic signature in the second client's electronic cash voucher is decrypted using the second client's public key to obtain the second client's plain text password, and the second client's plain text password is compared with the plain text password generated by the central server to verify the second client's electronic signature.

3. The system according to claim 1, characterized in that The second client is specifically used for: Decrypt the certificate of the first client using the central server public key to obtain the certificate authentication authority of the first client, and decrypt the certificate of the second client using the central server public key to obtain the certificate authentication authority of the second client; comparing the certificate authority of the first client with the certificate authority of the second client; If the comparison is consistent, the certificate of the first client is legal; If the comparison is inconsistent, the certificate of the first client is illegal, the user is prompted with a certificate error and the transaction is terminated.

4. The system according to claim 1, characterized in that The second client is specifically used for: Decrypt the certificate of the first client using the central server public key to obtain the holder information; Comparing the holder information with the first client identity information, wherein the first client electronic cash voucher includes the first client identity information; If the comparison is consistent, the identity of the first client is correct; If the comparison is inconsistent, the identity of the first client is incorrect, the user is prompted that the identity of the first client is incorrect and the transaction is terminated.

5. The system according to claim 1, wherein: The second client is specifically used for: Decrypt the coupon information in the electronic cash coupon of the first client using the central server public key to obtain the decrypted face value and the electronic cash coupon serial number, and compare the decrypted face value and the electronic cash coupon serial number with the face value and the electronic cash coupon serial number in the electronic cash coupon of the first client to verify the coupon information comparison; If the comparison is consistent, the electronic cash voucher of the first client is authentic; If the comparison is inconsistent, the electronic cash voucher of the first client is false, the user is prompted that the electronic cash voucher is wrong and the transaction is terminated.

6. The system according to claim 1, characterized in that The second client is also used to: Use the public key of the first client to verify the transaction flow ciphertext and obtain the decrypted transaction flow; Compare the decrypted transaction flow with the transaction flow; If the comparison is consistent, the transaction flow is correct; If the comparison is inconsistent, the transaction flow is incorrect, and the user is prompted that the transaction flow is wrong and the transaction is terminated.

7. An offline transaction authentication method, characterized in that: include: The first client sends a request to the central server; The central server determines the face value according to the request of the first client; Generate an electronic cash voucher serial number and a plain text password; Encrypt the face value and the electronic cash voucher serial number using the central server private key to obtain the voucher information; encrypt the plain text password using the central server private key to generate the central server electronic signature; integrate the face value, the electronic cash voucher serial number, the voucher information and the central server electronic signature to obtain the electronic cash voucher; generate a certificate using the central server private key; sending the electronic cash voucher and the certificate to the first client; The first client receives the electronic cash voucher and the certificate; Decrypting the electronic signature of the central server in the electronic cash voucher according to the public key of the central server to obtain a plain text password, encrypting the plain text password using the private key of the first client, and generating the electronic signature of the first client; Using the electronic signature of the first client to replace the electronic signature of the central server in the electronic cash voucher, to obtain the electronic cash voucher of the first client; Conduct offline transactions with the second client, generate transaction records, encrypt the transaction records using the private key of the first client, obtain transaction records ciphertext, write the transaction records and transaction records ciphertext into the electronic cash voucher of the first client, and send the electronic cash voucher and certificate of the first client to the second client; The second client uses the central server public key to verify the legitimacy of the first client's certificate; uses the central server public key to decrypt the first client's certificate to verify that the first client's identity is correct; Using the central server public key to verify that the electronic cash voucher of the first client is authentic based on the voucher information, the face value and the serial number of the electronic cash voucher in the electronic cash voucher of the first client; using the public key of the first client to verify that the transaction flow in the electronic cash voucher of the first client is correct; using the public key of the first client to decrypt the electronic signature of the first client in the electronic cash voucher of the first client to obtain a plaintext password, using the private key of the second client to encrypt the plaintext password, and generating the electronic signature of the second client; The electronic signature of the first client is replaced with the electronic signature of the second client to obtain the electronic cash voucher of the second client, thereby realizing offline transaction authentication.

8. The method according to claim 7, characterized in that Also includes: The central server receives an electronic cash voucher authenticity verification request sent by the second client, wherein the electronic cash voucher authenticity verification request includes the electronic cash voucher of the second client; The central server uses the public key to decrypt the voucher information in the electronic cash voucher of the second client, obtains the decrypted face value and the electronic cash voucher serial number, and compares the decrypted face value and the electronic cash voucher serial number with the face value and the electronic cash voucher serial number in the electronic cash voucher of the second client to verify whether the voucher information is correct; The central server uses the public key of the first client to decrypt the transaction flow ciphertext in the electronic cash voucher of the second client to obtain the decrypted transaction flow, and compares the decrypted transaction flow with the transaction flow in the electronic cash voucher to verify whether the transaction flow is correct; The central server uses the second client public key to decrypt the second client electronic signature to obtain the second client's plain text password, and compares the second client's plain text password with the plain text password generated by the central server to verify the second client electronic signature.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 7 to 8 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 7 to 8 is implemented.