A digital currency offline payment anti-counterfeiting verification method and system
By using near-field communication technology and two-factor verification mechanism in offline payment of digital currency, the problems of anti-counterfeiting, tampering, copying and theft during the flow process are solved, and the security and credibility of the payment process are realized. .
Patent Information
- Application Number
- CN202010778096.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-05
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2040-08-05
AI Technical Summary
How to ensure that digital currencies are anti-forgery, tamper-proof, copying and theft during the flow process, especially in the lack of an effective verification mechanism in offline payment scenarios.
Near field communication technology is used to communicate between the payment end and the receiving end of the digital currency, and through a two-factor verification mechanism, including verification of payment requests and digital currency signatures, amounts and signature algorithms, ensuring the security and credibility of the payment process. sex.
It realizes the security and credibility of the offline payment process of digital currency, ensures the authenticity of the payment process and the anti-theft characteristics, and ensures the anti-counterfeiting and anti-reuse capabilities of digital currency.
Smart Images

Figure CN112036847B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to an anti-counterfeiting verification method and system for offline digital currency payment. Background Art
[0002] my country began to study digital currency in 2014. With the development of cryptocurrency technology and the needs of national strategy, the country's promotion of digital currency has gradually accelerated. At present, digital currency (Digital Currency Electronic Payment, referred to as DCEP) usually refers to legal tender issued by the central bank or authorized by the central bank, with cryptography as the technical support and encrypted strings representing specific amounts as the form of expression. Compared with decentralized cryptocurrency, the national credit and central bank endorsement can ensure that the central bank's digital currency has a stable price in the long term and is more suitable for practical use; compared with traditional mobile payments, data currency itself is legal tender, and it no longer needs to be associated with an electronic account, and supports offline payments; compared with traditional currencies, digital currencies can eliminate the cost of design, printing, escort and storage, reduce barriers to cross-regional and cross-institutional capital circulation, and improve the convenience and transparency of transaction activities. It is a form of currency that adapts to the needs of modernization and networking.
[0003] Unlike paper money, digital currency does not require paper media. In essence, it can be said to be a piece of digital information without media. How to ensure that this piece of digital information can only be used by its current holder and cannot be stolen by others is the primary problem facing digital currency. Compared with the digitization of photos and music, the digitization of currency is not just a simple recording of patterns or text in digital form. Digital currency must consider currency anti-counterfeiting and transaction security. Therefore, the digitization of currency is not only the use of mathematical methods to convert the pattern and text of the currency into digital information, but also the use of cryptographic methods to protect the digital information. Only in this way can digital currency truly have the ability to prevent counterfeiting, tampering, and duplication. Therefore, anti-counterfeiting technology is needed to ensure the authenticity and effectiveness of digital currency in the circulation link and to ensure that digital currency has the characteristics of anti-theft and anti-reuse. Summary of the invention
[0004] Based on the problems raised in the background technology, the present invention proposes an anti-counterfeiting verification method for offline payment of digital currency, which specifically includes:
[0005] The digital currency includes the digital currency string ciphertext, the quota control bit, the currency amount, the owner identification and the digital currency delivery system signature;
[0006] When making offline digital currency payments, the digital currency payment terminal initiates a digital currency payment request;
[0007] The digital currency receiving end receives the digital currency payment request and verifies the payment request;
[0008] After verification, the digital currency is verified;
[0009] After the verification is passed, the digital currency receiving end receives the digital currency and sends a payment completion message to the digital currency paying end;
[0010] When the digital currency payment end or the digital currency receiving end is connected to the network, the payment completion message is sent to the digital currency delivery system.
[0011] Furthermore, when performing offline digital currency payment, the communication between the digital currency payment terminal and the digital currency receiving terminal adopts near field communication technology.
[0012] Furthermore, the digital currency payment request includes a signature of the payee, a payment amount, a digital currency ciphertext and other transaction information. The digital currency receiving end receives the payment request, and the verification of the payment request includes:
[0013] Verify the payment terminal signature: use a signature algorithm to calculate the payment amount and the digital currency ciphertext to obtain a first signature, and compare the first signature with the payment terminal signature. If they are consistent, the verification is successful;
[0014] Verify the payment amount: Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, obtain the currency amount in the digital currency, and compare it with the payment amount. If they are consistent, the verification is successful.
[0015] Furthermore, the digital currency receiving end verifies the digital currency, specifically including:
[0016] The digital currency ciphertext is decrypted with the public key of the payment end to obtain the digital currency, wherein the digital currency includes the digital currency string ciphertext, the quota control bit, the currency amount, the owner identification and the digital currency delivery system signature; the digital currency string ciphertext, the currency amount, the owner identification and the quota control bit are calculated with the signature algorithm to obtain a second signature, and the second signature is compared with the digital currency delivery system signature. If they are consistent, the verification is passed.
[0017] Furthermore, the digital currency receiving end receives the digital currency and sends a payment completion message to the digital currency paying end, which specifically includes: changing the digital currency owner identifier from the payer to the receiving end, encrypting the digital currency with the receiving end private key to obtain the digital currency ciphertext, generating a digital currency payment completion message, signing the payment completion message with the receiving end using a signature algorithm, and sending the payment completion message to the digital currency paying end.
[0018] Furthermore, when the digital currency payment end or the digital currency receiving end is connected to the network and sends the payment completion message to the digital currency delivery system, the digital currency delivery system decrypts the payment completion message with the receiving end public key and obtains the payment completion message in plain text including the digital currency recipient ID, payer ID, payment amount, and payment time, and changes the account balances of the recipient and payer in the system according to the payment amount, recipient ID, and payer ID.
[0019] Secondly, a digital currency offline payment anti-counterfeiting verification system is proposed, which specifically includes: a digital currency payment terminal, a digital currency receiving terminal, and a digital currency delivery system.
[0020] Digital currency payment terminal: initiates a digital currency payment request, which includes the payment terminal signature, payment amount, digital currency ciphertext and other transaction information, receives a payment completion message, and sends the payment completion message to the digital currency delivery system after connecting to the network;
[0021] Digital currency receiving end: receives the payment request sent by the digital currency payment end, verifies the payment request, verifies the digital currency after verification, receives the digital currency after verification, and sends a payment completion message to the digital currency payment end. When connected to the network, the payment completion message is sent to the digital currency delivery system;
[0022] Digital currency issuance system: receives payment completion message, decrypts the payment completion message with the receiving end public key, obtains the payment completion message in plain text including the digital currency recipient ID, payer ID, payment amount, and payment time, and changes the account balances of the recipient and payer in the system according to the payment amount, recipient ID, and payer ID.
[0023] Furthermore, the digital currency receiving end further includes a verification module, which is used to:
[0024] Verify the signature of the payment end: use the signature algorithm to calculate the payment amount and the digital currency ciphertext to obtain the first signature, and compare the first signature with the signature of the payment end. If they are consistent, the verification is successful;
[0025] Verify the payment amount: Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, obtain the currency amount in the digital currency, and compare it with the payment amount. If they are consistent, the verification is successful;
[0026] Verify digital currency: Use the signature algorithm to calculate the digital currency string ciphertext, currency amount, owner identification and quota control bit to obtain a second signature, and compare the second signature with the digital currency delivery system signature. If they are consistent, the verification is successful.
[0027] In a third aspect, the present invention proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein the computer program implements any of the method steps described above when executed by a processor.
[0028] In a fourth aspect, the present invention also proposes an anti-counterfeiting verification device for offline payment of digital currency, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the method steps described above when executing the computer program.
[0029] The present invention proposes an anti-counterfeiting verification method and system for offline payment of digital currency, which supports dual offline payment of digital currency payment end and digital currency receiving end, and adopts near-field communication technology in offline payment, which has the advantages of communication security and fast transmission speed; when verifying the digital currency payment process, a double verification method is adopted, first verifying the payment information and then verifying the digital currency, thereby ensuring the credibility and security of the payment process. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0031] Figure 1 This is a schematic diagram of a digital currency offline payment process according to a specific embodiment of the present invention;
[0032] Figure 2 This is a structural diagram of a digital currency offline payment anti-counterfeiting verification system according to a specific embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0034] In the description of this specification, the description with reference to the terms "an embodiment", "a specific embodiment", "an embodiment mode", "for example" means that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps is not limited and can be appropriately adjusted as needed.
[0035] Near Field Communication (NFC) refers to the ability of devices (such as mobile phones) using NFC technology to exchange data when they are close to each other. It is an integration of contactless radio frequency identification (RFID) and interconnection technology. By integrating the functions of inductive card readers, inductive cards and point-to-point communication on a single chip, mobile terminals are used to realize mobile payment, electronic ticketing, access control, mobile identity recognition, anti-counterfeiting and other applications. Due to its high security factor, fast speed, and support for network-free communication, it has been widely used. In the following embodiments, when making offline payments, the communication between the digital currency payment terminal and the digital currency receiving terminal uses near-field communication technology.
[0036] Example 1
[0037] The following is combined with Figure 1 A specific embodiment of the present invention is described:
[0038] S11: When making offline digital currency payments, the digital currency payment end initiates a digital currency payment request; the digital currency payment request includes the payment end signature, payment amount, digital currency ciphertext and other transaction information, and the digital currency receiving end receives the payment request.
[0039] S12: The digital currency receiving end receives the payment request and verifies the payment request, specifically including:
[0040] Verify the payment terminal signature: use a signature algorithm to calculate the payment amount and the digital currency ciphertext to obtain a first signature, and compare the first signature with the payment terminal signature. If they are consistent, the verification is successful;
[0041] Verify the payment amount: Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, obtain the currency amount in the digital currency, and compare it with the payment amount. If they are consistent, the verification is successful.
[0042] S13: After the verification is passed, the digital currency receiving end verifies the digital currency payment, specifically including:
[0043] Decrypt the digital currency ciphertext with the payment end public key to obtain the digital currency, wherein the digital currency includes the digital currency string ciphertext, the quota control bit, the currency amount, the owner identification and the digital currency delivery system signature;
[0044] A signature algorithm is used to calculate the digital currency string ciphertext, currency amount, owner identification and quota control bit to obtain a second signature, and the second signature is compared with the digital currency delivery system signature. If they are consistent, the verification is passed.
[0045] S14: After the verification is passed, the digital currency receiving end receives the digital currency and sends a payment completion message to the digital currency paying end, which specifically includes: changing the digital currency owner identifier from the payer to the receiver, encrypting the digital currency with the receiving end private key to obtain the digital currency ciphertext, generating a digital currency payment completion message, signing the payment completion message with the receiving end using a signature algorithm, and sending the payment completion message to the digital currency paying end.
[0046] S15: When the digital currency payment terminal or the digital currency receiving terminal is connected to the network, a payment completion message is sent to the digital currency delivery system.
[0047] S16: The digital currency delivery system receives the payment completion message, decrypts the payment completion message with the receiving end public key, and obtains the payment completion message in plain text, including the digital currency recipient ID, payer ID, payment amount, and payment time, and changes the account balances of the recipient and payer in the system according to the payment amount, recipient ID, and payer ID.
[0048] Example 2
[0049] This embodiment proposes an anti-counterfeiting verification system for offline digital currency payment, such as Figure 2 As shown, it specifically includes: digital currency payment terminal, digital currency receiving terminal, digital currency delivery system,
[0050] Digital currency payment terminal: initiates a digital currency payment request, which includes the payment terminal signature, payment amount, digital currency ciphertext and other transaction information, receives a payment completion message, and sends the payment completion message to the digital currency delivery system after connecting to the network;
[0051] Digital currency receiving end: receives the payment request sent by the digital currency payment end, verifies the payment request, verifies the digital currency after verification, receives the digital currency after verification, and sends a payment completion message to the digital currency payment end. When connected to the network, the payment completion message is sent to the digital currency delivery system;
[0052] Digital currency issuance system: receives payment completion message, decrypts the payment completion message with the receiving end public key, obtains the payment completion message in plain text including the digital currency recipient ID, payer ID, payment amount, and payment time, and changes the account balances of the recipient and payer in the system according to the payment amount, recipient ID, and payer ID.
[0053] The digital currency receiving end further includes a verification module, which is used to:
[0054] Verify the signature of the payment end: use the signature algorithm to calculate the payment amount and the digital currency ciphertext to obtain the first signature, and compare the first signature with the signature of the payment end. If they are consistent, the verification is successful;
[0055] Verify the payment amount: Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, obtain the currency amount in the digital currency, and compare it with the payment amount. If they are consistent, the verification is successful;
[0056] Verify digital currency: Use the signature algorithm to calculate the digital currency string ciphertext, currency amount, owner identification and quota control bit to obtain a second signature, and compare the second signature with the digital currency delivery system signature. If they are consistent, the verification is successful.
[0057] Example 3
[0058] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method and steps can be implemented:
[0059] The digital currency includes the digital currency string ciphertext, the quota control bit, the currency amount, the owner identification and the digital currency delivery system signature;
[0060] When making offline digital currency payments, the digital currency payment terminal initiates a digital currency payment request;
[0061] The digital currency receiving end receives the digital currency payment request and verifies the payment request;
[0062] After verification, the digital currency is verified;
[0063] After the verification is passed, the digital currency receiving end receives the digital currency and sends a payment completion message to the digital currency paying end;
[0064] When the digital currency payment end or the digital currency receiving end is connected to the network, the payment completion message is sent to the digital currency delivery system.
[0065] In one embodiment, when the processor executes the computer program, it is achieved that when performing digital currency offline payment, the communication between the digital currency payment end and the digital currency receiving end adopts near field communication technology.
[0066] In one embodiment, when the processor executes the computer program, the digital currency payment request includes the signature of the payment end, the payment amount, the digital currency ciphertext and other transaction information, the digital currency receiving end receives the payment request, and the verification of the payment request includes:
[0067] Verify the payment terminal signature: use a signature algorithm to calculate the payment amount and the digital currency ciphertext to obtain a first signature, and compare the first signature with the payment terminal signature. If they are consistent, the verification is successful;
[0068] Verify the payment amount: Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, obtain the currency amount in the digital currency, and compare it with the payment amount. If they are consistent, the verification is successful.
[0069] In one embodiment, when the processor executes the computer program, it is implemented as follows: the digital currency receiving end verifies the digital currency, specifically including: using the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, the digital currency including the digital currency string ciphertext, the quota control bit, the currency amount, the owner identification and the digital currency delivery system signature; using the signature algorithm to calculate the digital currency string ciphertext, the currency amount, the owner identification and the quota control bit to obtain a second signature, and comparing the second signature with the digital currency delivery system signature, if they are consistent, the verification is passed.
[0070] In one embodiment, when the processor executes the computer program, it is implemented as follows: the digital currency receiving end receives the digital currency and sends a payment completion message to the digital currency paying end, specifically including: changing the digital currency owner identifier from the payer to the receiver, encrypting the digital currency with the receiving end private key to obtain the digital currency ciphertext, generating a digital currency payment completion message, signing the payment completion message with the receiving end using a signature algorithm, and sending the payment completion message to the digital currency paying end.
[0071] In one embodiment, when the processor executes the computer program, it is achieved that: when the digital currency payment end or the digital currency receiving end is connected to the network, after sending the payment completion message to the digital currency delivery system, the digital currency delivery system uses the receiving end public key to decrypt the payment completion message, and obtains the payment completion message in plain text including the digital currency recipient identifier, payer identifier, payment amount, and payment time, and changes the account balances of the recipient and payer in the system according to the payment amount, recipient identifier, and payer identifier.
[0072] Example 4
[0073] This embodiment proposes an anti-counterfeiting verification device for offline payment of digital currency, which can be a server or a mobile terminal. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database is used for all data of the computer device. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the anti-counterfeiting verification method for offline payment of digital currency is implemented.
[0074] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention disclosed herein. The specification is intended to cover any variations, uses, or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not disclosed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the claims.
[0075] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
Claims
1. A digital currency offline payment anti-counterfeiting verification method, characterized in that: Specifically include: The digital currency includes the digital currency string ciphertext, the quota control bit, the currency amount, the owner identification and the digital currency delivery system signature; When making offline digital currency payments, the digital currency payment terminal initiates a digital currency payment request; The digital currency receiving end receives the digital currency payment request and verifies the payment request; Verify the payment terminal signature: use a signature algorithm to calculate the payment amount and the digital currency ciphertext to obtain a first signature, and compare the first signature with the payment terminal signature. If they are consistent, the verification is successful; Verify the payment amount: Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, obtain the currency amount in the digital currency, and compare it with the payment amount. If they are consistent, the verification is successful; After verification, the digital currency is verified; Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency; Using a signature algorithm to calculate the digital currency string ciphertext, currency amount, owner identification and quota control bit to obtain a second signature, and comparing the second signature with the digital currency delivery system signature. If they are consistent, the verification is passed; After the verification is passed, the digital currency receiving end receives the digital currency and sends a payment completion message to the digital currency paying end; The digital currency owner identifier is changed from the payer to the receiver, the digital currency is encrypted with the receiver's private key to obtain a digital currency ciphertext, a digital currency payment completion message is generated, the payment completion message is signed by the receiver using a signature algorithm, and the payment completion message is sent to the digital currency payment terminal; When the digital currency payment terminal or the digital currency receiving terminal is connected to the network, a payment completion message is sent to the digital currency delivery system; The digital currency delivery system decrypts the payment completion message with the receiving end public key, obtains the payment completion message in plain text including the digital currency recipient identifier, payer identifier, payment amount, and payment time, and changes the account balances of the recipient and payer in the system according to the payment amount, recipient identifier, and payer identifier; When performing offline digital currency payment, the communication between the digital currency payment terminal and the digital currency receiving terminal adopts near field communication technology.
2. A digital currency offline payment anti-counterfeiting verification system implemented based on the method described in claim 1, characterized in that: Specifically include: Digital currency payment terminal, digital currency receiving terminal, digital currency delivery system, Digital currency payment terminal: initiates a digital currency payment request, which includes the payment terminal signature, payment amount, digital currency ciphertext and other transaction information, receives a payment completion message, and sends the payment completion message to the digital currency delivery system after connecting to the network; Digital currency receiving end: receives the payment request sent by the digital currency payment end, verifies the payment request, verifies the digital currency after verification, receives the digital currency after verification, and sends a payment completion message to the digital currency payment end. When connected to the network, the payment completion message is sent to the digital currency delivery system; Digital currency delivery system: receiving a payment completion message, decrypting the payment completion message with the receiving end public key, obtaining a payment completion message in plain text including the digital currency recipient identifier, payer identifier, payment amount, and payment time, and changing the account balances of the recipient and payer in the system according to the payment amount, recipient identifier, and payer identifier; The digital currency receiving end further includes a verification module, which is used to: Verify the signature of the payment end: use the signature algorithm to calculate the payment amount and the digital currency ciphertext to obtain the first signature, and compare the first signature with the signature of the payment end. If they are consistent, the verification is successful; Verify the payment amount: Use the payment end public key to decrypt the digital currency ciphertext to obtain the digital currency, obtain the currency amount in the digital currency, and compare it with the payment amount. If they are consistent, the verification is successful; Verify digital currency: Use the signature algorithm to calculate the digital currency string ciphertext, currency amount, owner identification and quota control bit to obtain a second signature, and compare the second signature with the digital currency delivery system signature. If they are consistent, the verification is successful.
3. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to claim 1 is implemented.
4. An anti-counterfeiting verification device for offline digital currency payment, 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 claim 1 is implemented.
Citation Information
Patent Citations
Digital currency directional usage method and device
CN107358523A
Offline payment method based on digital currency, terminal and agent delivery device
CN109493016A
Digital currency verification method and system
CN110599140A
