Coupon code cancel-after-verification method, device and equipment, medium and computer product
By leveraging quantum channel and blockchain technology, a coupon code verification process has been achieved that eliminates the need for manual display and device scanning. This addresses the security risks and operational burdens associated with existing QR code verification solutions in vehicle-mounted scenarios, thereby enhancing the security and uniqueness of coupon code verification.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-04-07
AI Technical Summary
Existing QR code verification solutions rely on manual display and device scanning in vehicle scenarios, which increases the driver's workload and poses security risks. The keys are not secure and are easily cracked. They also lack a dynamic random number binding mechanism and cannot defend against replay attacks and ciphertext tampering.
The system uses quantum channels to transmit encrypted coupon data, combined with homomorphic encryption algorithms and blockchain technology. Through collaborative verification between the service platform and the vehicle management platform, it achieves a coupon redemption process that does not require manual display or device scanning. It uses quantum keys and geohashing to verify vehicle identity and location, preventing replay attacks and tampering.
It improves driver safety in vehicle scenarios, reduces operational burden, and ensures the security and uniqueness of voucher code verification through the combination of quantum channels and blockchain, preventing the risk of forged verification locations.
Smart Images

Figure CN121810347A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to a coupon code verification method, apparatus, equipment, medium, and computer product. Background Technology
[0002] Currently, most mainstream coupon verification technologies use QR code verification schemes. Users generate a QR code containing coupon information through a mobile application, which is then scanned by the merchant's device to complete the verification process. After a user completes an online payment, the service platform generates an encrypted QR code and pushes it to the user's mobile terminal. During verification, the merchant's terminal reads the QR code data using a scanning device, and the service platform decrypts and verifies the QR code content to confirm its validity and complete the transaction. This solution relies on the screen display capabilities of mobile terminals and the recognition capabilities of QR code scanning devices. Keys are typically generated using traditional encryption algorithms such as Advanced Encryption Standard (AES) or Rivest-Shamir-Adleman (RSA) and stored statically on a server or locally on the terminal. At the network communication level, the verification process requires real-time connection to the service platform, transmitting data via classic encryption protocols such as Hypertext Transfer Protocol Secure (HTTPS). Existing QR code verification solutions for refueling or charging services suffer from poor key security, making them vulnerable to brute-force attacks or man-in-the-middle attacks. The reliance on manual display and device scanning increases the driver's workload and poses security risks in in-vehicle scenarios. They lack authoritative verification mechanisms for vehicle owner identity and registration information. The real-time network communication required for the verification process introduces the risk of falsified verification locations, and the lack of a dynamic random number binding mechanism for encrypted coupons makes them susceptible to replay attacks and ciphertext tampering. Summary of the Invention
[0003] The purpose of this invention is to provide a coupon code verification method, device, equipment, medium, and computer product to solve the problem that in the existing QR code verification scheme, QR codes rely on manual display and equipment scanning, which increases the driver's workload and poses safety hazards in vehicle scenarios.
[0004] To achieve the above objectives, embodiments of the present invention provide a coupon code verification method, wherein the method is executed by a service platform and includes:
[0005] The system obtains a first request sent by a first service device, the first request being used to request the verification of coupon code data for a target vehicle; wherein, the first request includes first encrypted information of the coupon code data and first location information of the first service device; the first encrypted information is generated by the service platform after the order payment for the target vehicle is successful, based on the coupon code data corresponding to the order;
[0006] If the verification of the first encrypted information passes, a second request is sent to the vehicle management platform, the second request including the first location information;
[0007] The vehicle management platform obtains the verification result of the first location information. If the verification result is successful, a third request is sent to the first service device. The third request is used to instruct the first service device to perform the service corresponding to the order.
[0008] Optionally, the method further includes, before obtaining the first request sent by the first service device:
[0009] If the order payment is successful, obtain the transaction voucher for the order sent by the payment platform;
[0010] The voucher code data is generated based on the transaction voucher;
[0011] The coupon code data is encrypted to obtain the first encrypted information;
[0012] The first encrypted information is sent to the target vehicle via a quantum channel.
[0013] Optionally, the method, wherein encrypting the coupon code data to obtain the first encrypted information includes:
[0014] The coupon code data is encrypted using a homomorphic encryption algorithm to obtain the second encrypted information;
[0015] Based on the random number request for the coupon code sent by the target vehicle, obtain the random number of the coupon code sent by the target vehicle;
[0016] The random number of the coupon code and the second encrypted information are subjected to a ciphertext superposition operation to obtain the third encrypted information;
[0017] The first encrypted information is obtained based on the third encrypted information, the fourth encrypted information, and the random number of the coupon code; wherein the fourth encrypted information is obtained by performing a hash operation on the third encrypted information.
[0018] Optionally, the method further includes, before obtaining the first request sent by the first service device:
[0019] Obtain a fourth request sent by the target user corresponding to the target vehicle, the fourth request being used to request a binding connection to the target vehicle; wherein, the fourth request includes first binding information and second location information; the first binding information includes the identity information of the target user and the target vehicle; the second location information is the location information of the target vehicle;
[0020] The fifth encrypted information is obtained based on the first binding information and the second location information;
[0021] Send a fifth request to the vehicle management platform; wherein the fifth request includes the fifth encrypted information;
[0022] Obtain the verification result of the fifth encrypted information from the vehicle management platform, and if the verification result is successful, establish a binding connection with the target vehicle.
[0023] Optionally, the method, wherein obtaining the fifth encrypted information based on the first binding information and the second location information includes:
[0024] The first binding information and the sixth encrypted information are written into the blockchain network to obtain the evidence storage hash value; wherein, the sixth encrypted information is obtained by performing a geo-hash operation on the second location information;
[0025] The fifth encrypted information is obtained based on the first binding information, the sixth encrypted information, and the evidence hash value.
[0026] Optionally, in the method, the fifth request further includes a dynamic token and a token validity period;
[0027] The dynamic token is generated by using a hash message authentication code based on a hash algorithm according to the fifth encrypted information; the token validity period is the validity period set during the generation of the dynamic token; the dynamic token and the token validity period are used by the vehicle management platform to verify the fifth encrypted information.
[0028] Optionally, the method, wherein establishing a binding connection with the target vehicle includes:
[0029] The data of the first preset number of bits in the sixth encrypted information is mapped to a first measurement basis vector sequence, and the data of the second preset number of bits in the sixth encrypted information is mapped to a quantum state phase modulation value; the sixth encrypted information is obtained by performing a geohashing operation on the second location information;
[0030] A quantum pulse sequence will be generated based on the first measurement basis vector sequence and the quantum state phase modulation value, and then sent to the target vehicle.
[0031] When the target vehicle generates a second measurement basis vector sequence based on the seventh encrypted information, the first measurement basis vector sequence and the second measurement basis vector sequence are compared with the target vehicle through a classical channel, and different measurement basis vectors are removed to obtain a third measurement basis vector sequence; the seventh encrypted information is obtained by the target vehicle performing a geo-hash operation on the third location information; the third location information is the geographical location data of the target vehicle stored when the target user sends the fourth request;
[0032] Error correction is performed on the third measurement basis vector sequence by the target vehicle through a classical channel to generate a first key, so that the target vehicle writes the second key generated by XORing the first key with the sixth encrypted information into the storage area of the target vehicle;
[0033] Obtain the notification notification sent by the blockchain after receiving the second key sent by the target vehicle, and complete the binding connection with the target vehicle.
[0034] Optionally, the method, after sending a third request to the first service device, further includes:
[0035] If the first service device completes the service corresponding to the order, obtain the verification result sent by the first service device;
[0036] Based on the verification results, the coupon code status of the coupon code data is set to "used".
[0037] The coupon code status is sent to the first service device, so that the first service device synchronizes the coupon code status with the target vehicle.
[0038] To achieve the above objectives, embodiments of the present invention provide a coupon code verification method, wherein the method is executed by a first service device and includes:
[0039] A first request is sent to the service platform, the first request being used to request the redemption of the coupon code data for the target vehicle; wherein, the first request includes first encrypted information of the coupon code data and first location information of the first service device; the first encrypted information is generated by the service platform after the order payment for the target vehicle is successful, based on the coupon code data corresponding to the order;
[0040] Obtain the third request sent by the service platform;
[0041] Execute the service corresponding to the order according to the third request.
[0042] Optionally, the method further includes:
[0043] Upon completion of the service corresponding to the order, a verification result is sent to the service platform;
[0044] Obtain the status of the coupon code sent by the service platform based on the redemption result; wherein the status of the coupon code is "used";
[0045] The coupon code status is sent to the target vehicle, causing the target vehicle to update the coupon code status stored in the target vehicle.
[0046] To achieve the above objectives, embodiments of the present invention provide a coupon code verification method, wherein the method is executed by a vehicle management platform, including:
[0047] Obtain a second request sent by the service platform, wherein the second request includes the first location information of the first service device;
[0048] Verify the first location information and obtain the verification result;
[0049] The verification result is sent to the service platform.
[0050] Optionally, the method, wherein verifying the first location information and obtaining a verification result includes:
[0051] Obtain the fourth location information of the target vehicle through the Internet of Things interface;
[0052] The first location information is verified against the fourth location information to obtain the verification result; wherein, if the first location information and the fourth location information are consistent, the verification result is passed.
[0053] Optionally, the method further includes:
[0054] The service platform sends a fifth request; wherein the fifth request includes fifth encrypted information; the fifth encrypted information includes first binding information, sixth encrypted information, and a storage hash value; the first binding information is the identity information of the target user corresponding to the target vehicle and the target vehicle; the sixth encrypted information is obtained by performing a geospatial hash operation on second location information; the second location information is the location information of the target vehicle; the storage hash value is obtained by the service platform writing the first binding information and the sixth encrypted information into a blockchain network;
[0055] The fifth encrypted information is verified, and the verification result is obtained;
[0056] The verification result is sent to the service platform.
[0057] Optionally, the method, wherein verifying the fifth encrypted information and obtaining a verification result includes:
[0058] The first binding information is verified against the vehicle identity information to obtain the binding information verification result; wherein, the vehicle identity information is the identity identification information of the target vehicle and the target user stored by the vehicle management platform; if the first binding information and the vehicle identity information are consistent, the binding information verification result is passed;
[0059] The evidence storage hash value is verified against the blockchain network to determine its authenticity, and the verification result is obtained; wherein, if the evidence storage hash value is authentic, the verification result is "passed".
[0060] The sixth encrypted information and the eighth encrypted information are verified to obtain the encryption information verification result; wherein, the eighth encrypted information is obtained by performing a geo-hash operation on the fifth location information; the fifth location information is the location information of the target vehicle obtained through the Internet of Things interface; if the sixth encrypted information and the eighth encrypted information are consistent, the encryption information verification result is passed;
[0061] The verification result is obtained based on the binding information verification result, the evidence storage verification result, and the encryption information verification result; if the binding information verification result, the evidence storage verification result, and the encryption information verification result are all passed, the verification result is passed.
[0062] To achieve the above objectives, embodiments of the present invention provide a coupon code verification device, wherein the device is executed by a service platform and includes:
[0063] The first acquisition module is used to acquire a first request sent by the first service device, the first request being used to request the redemption of coupon code data for the target vehicle; wherein, the first request includes first encryption information of the coupon code data and first location information of the first service device; the first encryption information is generated by the service platform after the order payment for the target vehicle is successful, based on the coupon code data corresponding to the order;
[0064] The first sending module is used to send a second request to the vehicle management platform if the verification of the first encrypted information passes, wherein the second request includes the first location information;
[0065] The second acquisition module is used to acquire the verification result of the vehicle management platform for the first location information. If the verification result is successful, the module sends a third request to the first service device. The third request is used to instruct the first service device to perform the service corresponding to the order.
[0066] To achieve the above objectives, embodiments of the present invention provide a coupon code verification device, wherein the device is executed by a first service device and includes:
[0067] The second sending module is used to send a first request to the service platform, the first request being used to request the redemption of the coupon code data of the target vehicle; wherein, the first request includes first encrypted information of the coupon code data and first location information of the first service device; the first encrypted information is generated by the service platform after the order payment of the target vehicle is successful, based on the coupon code data corresponding to the order;
[0068] The third acquisition module is used to acquire the third request sent by the service platform;
[0069] The first processing module is used to execute the service corresponding to the order based on the third request.
[0070] To achieve the above objectives, embodiments of the present invention provide a coupon code verification device, wherein the device is executed by a vehicle management platform and includes:
[0071] The fourth acquisition module is used to acquire a second request sent by the service platform, wherein the second request includes the first location information of the first service device;
[0072] The fifth acquisition module is used to verify the first location information and obtain the verification result;
[0073] The third sending module is used to send the verification result to the service platform.
[0074] To achieve the above objectives, embodiments of the present invention provide a coupon code verification device, comprising: a processor, a memory, and a program or instructions stored in the memory and executable on the processor; wherein, when the processor executes the program or instructions, it implements the coupon code verification method executed by the service platform as described above, or the coupon code verification method executed by the first service device as described above, or the coupon code verification method executed by the vehicle management platform as described above.
[0075] To achieve the above objectives, embodiments of the present invention provide a readable storage medium storing a program or instructions thereon, wherein the program or instructions, when executed by a processor, implement the coupon code verification method executed by the service platform as described above, or the coupon code verification method executed by the first service device as described above, or the steps in the coupon code verification method executed by the vehicle management platform as described above.
[0076] To achieve the above objectives, embodiments of the present invention provide a computer program product, comprising computer instructions that, when executed by a processor, implement the coupon code verification method executed by the service platform as described above, or the coupon code verification method executed by the first service device as described above, or the steps of the coupon code verification method executed by the vehicle management platform as described above.
[0077] The beneficial effects of the above-described technical solution of the present invention are as follows:
[0078] In this embodiment of the invention, on the service platform, the first encrypted information of the coupon code data sent by the first service device for requesting the redemption of the target vehicle is verified, and the first location information is sent to the vehicle management platform for verification. After both verifications are successful, a result is returned to the first service device, enabling it to execute the order for the target vehicle. Through the interaction between the service platform, the first service device, and the vehicle management platform, the verification and redemption of the coupon code data for the successfully paid order of the target vehicle is completed. This eliminates the need for manual display and device scanning, improving driver safety in in-vehicle scenarios and reducing the driver's operational burden. Attached Figure Description
[0079] Figure 1 This is a schematic diagram of the coupon code verification method executed by the service platform according to an embodiment of the present invention;
[0080] Figure 2 This is one of the flowcharts for the coupon code verification method described in the embodiments of the present invention;
[0081] Figure 3 This is one of the verification flowcharts of the coupon code verification method described in the embodiments of the present invention;
[0082] Figure 4 This is the second flowchart of the coupon code verification method described in the embodiments of the present invention;
[0083] Figure 5 This is the third flowchart of the coupon code verification method described in this embodiment of the invention;
[0084] Figure 6 This is the second verification flowchart of the coupon code verification method described in this embodiment of the invention;
[0085] Figure 7 This is a schematic diagram of the coupon code verification method executed by the first service device according to an embodiment of the present invention;
[0086] Figure 8 This is a schematic diagram of the coupon code verification method executed by the vehicle management platform according to an embodiment of the present invention;
[0087] Figure 9 This is a schematic diagram of a coupon code verification device executed by a service platform according to an embodiment of the present invention;
[0088] Figure 10 This is a schematic diagram of a coupon code verification device executed by a first service device according to an embodiment of the present invention;
[0089] Figure 11 This is a schematic diagram of a coupon code verification device executed by a vehicle management platform according to an embodiment of the present invention. Detailed Implementation
[0090] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0091] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.
[0092] In various embodiments of the present invention, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0093] In addition, the terms "system" and "network" are often used interchangeably in this article.
[0094] In the embodiments provided by this invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean that B is determined solely based on A; B can also be determined based on A and / or other information.
[0095] For ease of understanding, the following describes some aspects of the embodiments of the present invention:
[0096] like Figure 1 As shown, an embodiment of the present invention provides a coupon code verification method, wherein the method is executed by a service platform and includes:
[0097] Step S10: Obtain a first request sent by the first service device. The first request is used to request the verification of the coupon code data of the target vehicle. The first request includes first encryption information of the coupon code data and first location information of the first service device. The first encryption information is generated by the service platform after the order payment of the target vehicle is successful, based on the coupon code data corresponding to the order.
[0098] It should be noted that the embodiments of the present invention are described using the first service device as an energy replenishment device (gas station or charging station) as an example. Figure 2 As shown, in step 201, the first service device reads coupon code information from the target vehicle, and the target vehicle returns coupon code information to the first service device, wherein the coupon code information is the coupon code data. After step 201, the first service device obtains the location of the current gas station (i.e., the first service device). At this time, the target vehicle has entered the service area of the first service device, so the current gas station location is also the location of the target vehicle, which can be verified with the subsequently obtained location of the target vehicle. In step 202, the first service device applies to the service platform for coupon code verification, and the service platform verifies the coupon code. That is, the service platform obtains the first request sent by the first service device, which is used to request the verification of the coupon code data of the target vehicle. When the vehicle (i.e., the target vehicle) enters the service area, the refueling / charging device (i.e., the first service equipment) activates the on-board radio frequency identification (RFID) tag (i.e., the target vehicle) through the International Organization for Standardization (ISO) 14443 protocol, reads the encrypted data packet (i.e., the first encrypted information) containing dynamic random numbers, encrypted coupon code parameters and validity period, and simultaneously obtains high-precision geographic coordinates (i.e., the first positioning information) through the Beidou / Global Positioning System (GPS) positioning module. It encapsulates the encrypted coupon code, positioning data and timestamp into a structured request (i.e., the first request) and initiates a verification request (i.e., the first request) to the service platform through the HyperText Transfer Protocol Secure (HTTPS) encrypted channel.
[0099] Step S20: If the verification of the first encrypted information passes, a second request is sent to the vehicle management platform, the second request including the first location information;
[0100] It should be noted that, as Figure 2As shown, in step 202, the service platform verifies the voucher code. Then, the service platform sends a spatial verification request to the vehicle management platform. Specifically, if the verification of the first encrypted information passes, the service platform sends a second request, including the first location information, to the vehicle management platform. After decrypting and verifying the request (i.e., the first request), the service platform verifies the voucher code's validity period, service type matching, and redemption status (i.e., the voucher code data). It decrypts the original voucher code information (i.e., the voucher code data stored on the service platform) using a quantum key and compares their consistency. Subsequently, it sends vehicle information and a Geographic Hash (Geohash) location hash (i.e., the hash value of the first location information) to the vehicle management platform for spatial verification. Upon receiving the redemption request (i.e., the first request), the service platform initiates a multi-level verification mechanism. First, it decrypts and verifies the signature of the request message (i.e., the message of the first request) to verify the authenticity of the request source and prevent message forgery attacks. Then, it checks whether the voucher code (i.e., the voucher code data) is within its redemption validity period and matches it with the gas station service type (i.e., the service type on the order, such as refueling with 98-octane gasoline). If it has expired or the type match fails, the transaction fails. The redemption status of the voucher code is then checked based on the voucher code information. If it has already been redeemed, the transaction fails; otherwise, the process continues. Next, the voucher code is decrypted using a quantum key and a random number. The decrypted result is compared with the original voucher code information to determine if they match. If they do not match, the transaction fails. Finally, a spatial location matching verification (i.e., the second request) is sent to the vehicle management platform. The request includes vehicle information, Geohash location hash value, and other information.
[0101] Step S30: Obtain the verification result of the vehicle management platform for the first location information. If the verification result is successful, send a third request to the first service device. The third request is used to instruct the first service device to perform the service corresponding to the order.
[0102] It should be noted that, as Figure 2As shown, in step 203, after performing spatial verification, the vehicle management platform returns the spatial verification result to the service platform, i.e., obtains the verification result of the vehicle management platform for the first location information. In step 204, the service platform writes the verification transaction voucher to the blockchain network, and the blockchain network returns the storage hash to the service platform; in step 205, the service platform returns the verification judgment result to the first service device, i.e., sends a third request to the first service device, which is used to instruct the first service device to execute the service corresponding to the order. The vehicle management platform obtains the real-time location of the vehicle through the IoT interface and calculates its matching verification with the gas station's geographical location hash (i.e., the Geohash location hash value of the first location information), and returns the result (i.e., the verification result). The service platform issues the verification result (i.e., the third request) to the refueling / charging device (i.e., the first service device); the device (i.e., the first service device) sets the corresponding fuel / electricity quantity and executes energy supply (i.e., executes the service corresponding to the order) according to the verification result (i.e., the third request). Figure 3 For the verification process of the first request, in step 301, if the signature verification is successful, it is determined whether the request message of the first request has passed the signature verification. If the determination is yes, the message is decrypted. In step 302, it is determined whether the decryption is successful. If the determination is yes, a service type determination is performed. The first request also includes the service type in the order, and the service platform stores the service type in the order when generating the order. Therefore, the service platform can perform service type determination. In step 303, type matching is performed. It is determined whether the type matching is successful. If the determination is yes, the validity period and status of the coupon code are determined. In step 304, the coupon code is valid. It is determined whether the coupon code is valid. If the determination is yes, the authenticity of the coupon code is determined. In step 305, the coupon code is authentic. It is determined whether the coupon code is authentic. If the coupon code is authentic, the vehicle location is obtained from the vehicle management platform and the Geohash value is calculated. In step 306, spatial consistency is compared. Spatial consistency is compared on the vehicle management platform. In this invention, a verification mechanism is constructed that integrates the vehicle management platform with blockchain evidence storage. The vehicle owner's identity is verified to be consistent with the vehicle registration information through the vehicle's VIN code, and the real-time location of the vehicle is matched with the spatial location of the verification scenario based on Geohash location hash.
[0103] In this embodiment, on the service platform, the first encrypted information sent by the first service device for requesting the verification of the coupon code data of the target vehicle is verified, and the first location information is sent to the vehicle management platform for verification. After both verifications are successful, a result is returned to the first service device, enabling it to execute the order for the target vehicle. Through the interaction between the service platform, the first service device, and the vehicle management platform, the verification and verification of the coupon code data for the successfully paid order of the target vehicle are completed. This eliminates the need for manual display and device scanning, improving driver safety in in-vehicle scenarios and reducing the driver's operational burden.
[0104] Optionally, the method further includes, prior to step S10:
[0105] If the order payment is successful, obtain the transaction voucher for the order sent by the payment platform;
[0106] The voucher code data is generated based on the transaction voucher;
[0107] The coupon code data is encrypted to obtain the first encrypted information;
[0108] The first encrypted information is sent to the target vehicle via a quantum channel.
[0109] In this embodiment, such as Figure 4As shown, in step 401, the service platform generates an order. Before generating the order, the target user applies for the order from the service platform. After the target user selects refueling or charging service (i.e., the service corresponding to the order) on the service platform, the system generates an order that associates the user's identity, Vehicle Identification Number (VIN), and service type. After step 401, the service platform homomorphically encrypts the order data, using homomorphic encryption technology to encrypt the order amount and energy parameters, forming ciphertext order data. In step 402, the service platform sends the encrypted order to the payment system. The service platform pushes the encrypted order number and payment amount to the payment gateway through an HTTPS channel. After the payment system verifies the order and balance information, it generates a prepayment order. The payment system directly performs legality verification and balance ciphertext deduction calculations on the ciphertext amount based on homomorphic encryption characteristics. After receiving the encrypted order, the payment system first directly verifies the legality of the ciphertext amount (e.g., amount verification) based on homomorphic encryption characteristics, and then uses the public key of homomorphic encryption to perform ciphertext deduction calculations on the user's account balance to verify payment feasibility. In step 403, the payment system returns the order to be paid to the target user via the service platform. After the target user confirms payment, the payment system generates a transaction voucher. In step 404, the payment system synchronizes the transaction voucher with the service platform. After the user confirms payment, a dynamic transaction voucher containing a transaction serial number and timestamp is generated, synchronized to the service platform, and blockchain notarization is triggered. If the target user has sufficient account balance in the payment system, after the target user confirms payment, the payment system generates a dynamic transaction voucher (containing a transaction serial number, timestamp, and service type) and synchronizes the transaction voucher to the service platform. That is, if the order payment is successful, the payment system obtains the transaction voucher of the order sent by the payment platform.
[0110] After the service platform generates coupon code data based on the transaction voucher, it calls a homomorphic encryption algorithm to encrypt the core parameters of the coupon code (validity period, service type) (i.e., the coupon code data). In step 408, the service platform issues the coupon code to the target vehicle, transmitting the homomorphically encrypted coupon code, hash value, and random number (i.e., the first encrypted information) to the target vehicle via a quantum channel. In step 409, the target vehicle verifies the random number and writes it into the RFID-PUF. The target vehicle's security chip partially decrypts the ciphertext (i.e., the first encrypted information) to verify the consistency of the random number, and then writes the complete encrypted coupon code into the physically unclonable function (PUF) chip protection zone of the RFID tag. In step 410, the target vehicle returns a successful transaction result to the target user via the service platform. The RFID tag storage layer of the target vehicle adopts a hybrid encryption mechanism of homomorphic encryption and physically unclonable function (PUF) to ensure that even if the tag is physically cracked, attackers cannot obtain valid plaintext or reconstruct the key. This utilizes the vehicle-mounted RFID tag to achieve a seamless verification process, and the physically unclonable characteristics of the PUF chip prevent data duplication, improving verification efficiency and security.
[0111] Optionally, the method, wherein encrypting the coupon code data to obtain the first encrypted information includes:
[0112] The coupon code data is encrypted using a homomorphic encryption algorithm to obtain the second encrypted information;
[0113] Based on the random number request for the coupon code sent by the target vehicle, obtain the random number of the coupon code sent by the target vehicle;
[0114] The random number of the coupon code and the second encrypted information are subjected to a ciphertext superposition operation to obtain the third encrypted information;
[0115] The first encrypted information is obtained based on the third encrypted information, the fourth encrypted information, and the random number of the coupon code; wherein the fourth encrypted information is obtained by performing a hash operation on the third encrypted information.
[0116] In this embodiment, after receiving the payment success notification, the service platform invokes homomorphic encryption to encrypt the core parameters of the coupon code (coupon code parameters, coupon code validity period, service type, etc.) (i.e., the coupon code data) to obtain the second encrypted information. Figure 4In step 405, the service platform requests a random number from the target vehicle, and the target vehicle returns a random number to the service platform. After receiving the payment success notification, the service platform uses homomorphic encryption to encrypt the core parameters of the voucher code (voucher code parameters, voucher code validity period, service type, etc.) (i.e., the voucher code data), and requests a random number for the voucher code from the target vehicle. In step 406, the service platform dynamically superimposes the voucher code and the random number. Based on the homomorphic addition characteristic of homomorphic encryption, the service platform performs a ciphertext superposition operation on the random number (i.e., the voucher code random number) and the voucher code parameters (i.e., the second encrypted information) to generate a dynamically bound encrypted voucher code (i.e., the third encrypted information). In step 407, the service platform writes the voucher code and transaction voucher to the blockchain network, and the blockchain network returns a storage hash to the service platform. The service platform writes the homomorphically encrypted voucher code hash value (i.e., the second encrypted information) and the successful payment transaction voucher to the blockchain storage. In step 408, the service platform issues the voucher code to the target vehicle. The service platform transmits the homomorphically encrypted coupon code (i.e., the third encrypted information), the coupon code hash value (i.e., the fourth encrypted information), the dynamic random number (i.e., the coupon code random number), and the redemption vehicle information to the target vehicle via a quantum channel. Specifically, the first encrypted information is obtained based on the third encrypted information, the fourth encrypted information, and the coupon code random number. This invention employs homomorphic encryption technology to dynamically superimpose and bind the coupon code parameters with random numbers, combined with a quantum encrypted channel to transmit the redemption status, ensuring the uniqueness of each redeemed coupon code and the anti-interference capability of data transmission.
[0117] Optionally, the method further includes, prior to step S10:
[0118] Obtain a fourth request sent by the target user corresponding to the target vehicle, the fourth request being used to request a binding connection to the target vehicle; wherein, the fourth request includes first binding information and second location information; the first binding information includes the identity information of the target user and the target vehicle; the second location information is the location information of the target vehicle;
[0119] The fifth encrypted information is obtained based on the first binding information and the second location information;
[0120] Send a fifth request to the vehicle management platform; wherein the fifth request includes the fifth encrypted information;
[0121] Obtain the verification result of the fifth encrypted information from the vehicle management platform, and if the verification result is successful, establish a binding connection with the target vehicle.
[0122] In this embodiment, such as Figure 5As shown, in step 501, the target user sends a binding request to the service platform. The service platform obtains the fourth request sent by the target user corresponding to the target vehicle, which is used to request the binding connection of the target vehicle. When the target user initiates the vehicle binding request (i.e., the fourth request) on the mobile terminal, the service platform receives an encrypted data packet containing personal information (mobile phone number, ID card number), vehicle information (license plate number, VIN code) (i.e., the first binding information), high-precision GPS coordinates (i.e., the second positioning information), and a timestamp. This data packet is transmitted to the service platform through an HTTPS encrypted channel. The personal information is the target user's identity information, and the vehicle information is the target vehicle's identity information. Based on the first binding information and the second location information, the service platform obtains the fifth encrypted information. The service platform sends a multi-verification request (i.e., the fifth request) to the vehicle management platform via an HTTPS encrypted channel. The request message includes the ID card number, mobile phone number, VIN code, location hash value, and blockchain storage hash value (i.e., the fifth encrypted information). The message is encrypted and digitally signed using a national cryptographic algorithm, and a dynamic token is attached. This dynamic token can be a hash-based message authentication code (using the SHA-256 hash algorithm) generated by Hash-based Message Authentication Code - Secure HashAlgorithm 256 (HMAC-SHA256), and its validity period is set. In step 503, the service platform sends a multi-verification request to the vehicle management platform. After verification by the vehicle management platform, the vehicle management platform returns the verification result to the service platform. Upon receiving the verification request (i.e., the fifth request) from the service platform, the vehicle management platform performs verification. If the verification is successful, it returns the verification result. If the verification result is successful, a binding connection is established with the target vehicle. After receiving the verification result, the service platform establishes a dual connection with the target vehicle via both quantum and classical channels.
[0123] Optionally, the method, wherein obtaining the fifth encrypted information based on the first binding information and the second location information includes:
[0124] The first binding information and the sixth encrypted information are written into the blockchain network to obtain the evidence storage hash value; wherein, the sixth encrypted information is obtained by performing a geo-hash operation on the second location information;
[0125] The fifth encrypted information is obtained based on the first binding information, the sixth encrypted information, and the evidence hash value.
[0126] In this embodiment, such as Figure 5As shown, in step 502, the service platform sends a binding request to the blockchain network, and the blockchain network returns a notarized hash to the service platform. After decrypting and verifying the request (i.e., the fourth request), the service platform converts the GPS coordinates (i.e., the second positioning information) into a 16-bit Geohash location hash value (i.e., the sixth encrypted information), and encapsulates it together with the user data (i.e., the first binding information) into a blockchain notarized data block. It then calls an Ethereum smart contract to write the data to the blockchain and obtain the notarized hash value. Upon receiving the user request (i.e., the fourth request), the service platform first verifies the validity of the request, such as message decryption and signature verification, to prevent request forgery. Then, it standardizes the GPS coordinates and uses the Geohash algorithm to generate a 16-bit location hash value. This is then packaged into a data block, which includes the ID card number, mobile phone number, VIN code, and location hash. Next, it calls a smart contract deployed on the Ethereum blockchain to write the data to the blockchain. After the blockchain network completes transaction verification, it returns a 32-byte notarized hash value as an index for subsequent processes. Finally, based on the first binding information, the sixth encrypted information, and the notarized hash value, the fifth encrypted information is obtained.
[0127] Optionally, in the method, the fifth request further includes a dynamic token and a token validity period;
[0128] The dynamic token is generated by using a hash message authentication code based on a hash algorithm according to the fifth encrypted information; the token validity period is the validity period set during the generation of the dynamic token; the dynamic token and the token validity period are used by the vehicle management platform to verify the fifth encrypted information.
[0129] In this embodiment, the dynamic token is attached to the fifth request. This token is generated based on HMAC-SHA256 according to the fifth encrypted information in the fifth request, and its validity period is set. For example... Figure 6 As shown, in step 601, after the verification process begins, message signature verification is performed to determine whether the signature verification is successful. If the result is yes, token verification (i.e., verification of the dynamic token) is performed. In step 602, it is determined whether the verification is successful. If the result is yes, message decryption is performed. In step 603, it is determined whether the decryption is successful. If the result is yes, the vehicle management platform queries the vehicle and person information. In step 604, it is determined whether the vehicle and person information matches. If the result is yes, the vehicle management platform obtains the vehicle location and calculates the Geohash value. In step 605, spatial consistency comparison is performed.
[0130] Optionally, the method, wherein establishing a binding connection with the target vehicle includes:
[0131] The data of the first preset number of bits in the sixth encrypted information is mapped to a first measurement basis vector sequence, and the data of the second preset number of bits in the sixth encrypted information is mapped to a quantum state phase modulation value; the sixth encrypted information is obtained by performing a geohashing operation on the second location information;
[0132] A quantum pulse sequence will be generated based on the first measurement basis vector sequence and the quantum state phase modulation value, and then sent to the target vehicle.
[0133] When the target vehicle generates a second measurement basis vector sequence based on the seventh encrypted information, the first measurement basis vector sequence and the second measurement basis vector sequence are compared with the target vehicle through a classical channel, and different measurement basis vectors are removed to obtain a third measurement basis vector sequence; the seventh encrypted information is obtained by the target vehicle performing a geo-hash operation on the third location information; the third location information is the geographical location data of the target vehicle stored when the target user sends the fourth request;
[0134] Error correction is performed on the third measurement basis vector sequence by the target vehicle through a classical channel to generate a first key, so that the target vehicle writes the second key generated by XORing the first key with the sixth encrypted information into the storage area of the target vehicle;
[0135] Obtain the notification notification sent by the blockchain after receiving the second key sent by the target vehicle, and complete the binding connection with the target vehicle.
[0136] In this embodiment, such as Figure 5As shown, in step 504, the service platform establishes a quantum and classical dual-channel with the target vehicle. The data of the first preset number of bits in the sixth encrypted information is mapped to a first measurement basis vector sequence, and the data of the second preset number of bits in the sixth encrypted information is mapped to a quantum state phase modulation value. A quantum pulse sequence is then generated based on the first measurement basis vector sequence and the quantum state phase modulation value and sent to the target vehicle. The service platform converts the first 8 bits of the position hash value into 256 sets of measurement basis vector sequences (i.e., the first measurement basis vector sequence), and the last 8 bits are used as quantum state phase modulation parameters (i.e., the quantum state phase modulation value). A quantum pulse sequence carrying the position parameters (i.e., the quantum pulse sequence) is sent to the target vehicle. In step 505, the service platform and the target vehicle perform quantum key transmission. If the target vehicle generates a second measurement basis vector sequence based on the seventh encrypted information, the service platform compares the first measurement basis vector sequence and the second measurement basis vector sequence with the target vehicle through a classical channel, removes different measurement basis vectors, obtains a third measurement basis vector sequence, and performs error correction on the third measurement basis vector sequence with the target vehicle through a classical channel to generate a first key. The target vehicle selects a measurement basis based on a pre-stored hash value. Both parties compare basis vector samples through a classical channel, remove mismatched bits, and then use the Cascade protocol to complete error correction, ultimately generating a 256-bit secure quantum key (i.e., the first key). In step 506, the target vehicle generates and encrypts a storage key. The target vehicle XORs the first key with the sixth encrypted information to generate a second key, which is then written into the target vehicle's storage area. The target vehicle XORs the negotiated quantum key (i.e., the first key) with the location hash value (i.e., the sixth encrypted information) to generate a final key (i.e., the second key), encrypts it using a national cryptographic algorithm, and writes it into the tamper-proof storage area of the vehicle's security chip. In step 507, the target vehicle uploads key fragments to the InterPlanetary File System (IPFS) on the blockchain network, recording key metadata (i.e., the metadata of the second key) on the blockchain: including the quantum key fingerprint (e.g., the hash value generated by SHA3-256), the original location hash value, and the key validity period, forming a traceable spatiotemporally bound evidence chain. Key fragments are distributed and stored across three geographical nodes via IPFS to achieve persistent evidence storage that resists single points of failure. In step 508, the blockchain network returns a notification of evidence storage completion to the service platform; in step 509, the service platform returns a binding success response to the target user, obtaining the evidence storage notification sent by the blockchain after receiving the second key sent by the target vehicle, thus completing the binding connection with the target vehicle. This invention dynamically generates encryption keys through Quantum Key Distribution (QKD), combining quantum channel transmission with XOR operation-encrypted storage, eliminating the security vulnerabilities of traditional static keys.
[0137] Optionally, the method, after step S30, further includes:
[0138] If the first service device completes the service corresponding to the order, obtain the verification result sent by the first service device;
[0139] Based on the verification results, the coupon code status of the coupon code data is set to "used".
[0140] The coupon code status is sent to the first service device, so that the first service device synchronizes the coupon code status with the target vehicle.
[0141] In this embodiment, such as Figure 2As shown, before step 206, the first service device sets energy output parameters, starts energy supply, and starts energy metering. In step 206, the first service device sends an operation success notification to the service platform. If the first service device completes the service corresponding to the order, the platform obtains the verification result sent by the first service device. The refueling or charging device (i.e., the first service device) is turned on and sets the corresponding capacity of oil or electricity to perform refueling or charging operations on the vehicle. The refueling / charging device determines the end of the refueling or charging operation based on the oil output, and generates corresponding transaction voucher information based on the metering data from the fuel nozzle flow meter or charging pile electricity meter. The transaction voucher information includes oil or electricity volume, refueling or charging device number, service type, timestamp, etc. The refueling or charging device sends a refueling / charging operation success notification to the service platform. In step 207, the service platform registers the use of the voucher code and sets the voucher code status to "used" based on the verification result. The service platform receives the successful verification result of the refueling or charging voucher operation (i.e., the verification result) and sets the voucher code status to "used". In step 208, the service platform writes a successful operation record to the blockchain network, the blockchain network returns a storage hash to the service platform, and the service platform calls a smart contract deployed on the Ethereum blockchain to write the transaction certificate information to the blockchain and stores the transaction certificate in fragments and encryption to three geographical nodes. In step 209, the service platform generates invalid coupon code information; in step 210, the service platform returns the invalid coupon code information to the first service device. The service platform transmits the redeemed coupon code information (i.e., the coupon code status) to the refueling / charging device (i.e., the first service device). At this time, the coupon code information includes coupon code usage status, dynamic random number, and other information. In step 211, the first service device changes the vehicle coupon code to the target vehicle, the target vehicle returns the change result to the first service device, and the service platform sends the coupon code status to the first service device, so that the first service device synchronizes the coupon code status with the target vehicle. The refueling and charging device (i.e., the first service device) receives the coupon code status information to be updated (i.e., the coupon code status), interacts with the target vehicle, and initiates a status synchronization request. The request includes a random number encrypted with the service platform's quantum key and coupon code information (including its expiration status). After receiving the coupon code information, the target vehicle decrypts it using its local quantum key and verifies it against the local random number. If the verification passes, the coupon code status information is updated to indicate that the coupon code has expired, and the chip writes the complete expired coupon code into the PUF chip protection area of the vehicle RFID tag. In this invention, an offline verifiable encrypted verification protocol is designed, supporting secure transactions in offline environments through a pre-set quantum key and local random number matching mechanism.
[0142] like Figure 7As shown, to achieve the above objectives, embodiments of the present invention provide a coupon code verification method, wherein the method is executed by a first service device and includes:
[0143] Step A10: Send a first request to the service platform. The first request is used to request the coupon code data of the target vehicle for verification. The first request includes first encrypted information of the coupon code data and first location information of the first service device. The first encrypted information is generated by the service platform after the order payment for the target vehicle is successful, based on the coupon code data corresponding to the order.
[0144] It should be noted that after the target vehicle enters the service area of the first service device, the first service device activates the vehicle's onboard RFID tag via the ISO 14443 standard protocol and reads the encrypted coupon code data packet, which contains a dynamic random number, encrypted coupon code parameters, and an expiration date identifier. The positioning module within the refueling and charging device simultaneously acquires high-precision geographic data, achieving real-time coordinate collection through BeiDou or GPS positioning technology. The system encapsulates the encrypted coupon code (i.e., the first encrypted information), positioning data (i.e., the first positioning information), and timestamp into a structured request, and initiates a verification request (i.e., the first request) to the service platform via an HTTPS encrypted channel.
[0145] Step A20: Obtain the third request sent by the service platform;
[0146] It should be noted that after the service platform performs the verification operation on the coupon code data of the target vehicle, it sends the verification result (i.e., the third request) to the first service device.
[0147] Step A30: Execute the service corresponding to the order according to the third request;
[0148] It should be noted that when the refueling or charging device (i.e., the first service device) is turned on and set with the corresponding capacity of oil or electricity (i.e., the content in the order), it can perform refueling or charging operations on the vehicle (i.e., the service corresponding to the order).
[0149] In this embodiment, after the first service device receives the service information of the target vehicle, it sends a first request to the service platform to request the verification of the coupon code data for the target vehicle. After the service platform performs the verification operation of the coupon code data, it sends a third request, including the verification result, to the first service device, and executes the service corresponding to the order according to the third request. Through the interaction between the service platform, the first service device, and the vehicle management platform, the verification and verification of the coupon code data for the successfully paid order of the target vehicle is completed, without the need for manual display and device scanning, improving driver safety in the in-vehicle scenario and reducing the driver's operational burden.
[0150] Optionally, the method further includes:
[0151] Upon completion of the service corresponding to the order, a verification result is sent to the service platform;
[0152] Obtain the status of the coupon code sent by the service platform based on the redemption result; wherein the status of the coupon code is "used";
[0153] The coupon code status is sent to the target vehicle, causing the target vehicle to update the coupon code status stored in the target vehicle.
[0154] In this embodiment, the refueling / charging device (i.e., the first service device) determines the completion of the refueling or charging operation based on the output of petroleum. It then generates corresponding transaction voucher information based on the metering data from the fuel nozzle flow meter or charging pile energy meter. The transaction voucher information includes petroleum or electricity volume, the refueling or charging device number, service type, timestamp, etc. The refueling or charging device (i.e., the first service device) sends a successful refueling / charging operation notification (i.e., the verification result) to the service platform. Upon receiving the successful verification result (i.e., the verification result), the service platform transmits the verified voucher code information (i.e., the voucher code status) to the refueling / charging device (i.e., the first service device). This voucher code information includes the voucher code usage status, dynamic random number, etc. The refueling / charging device receives the voucher code status information to be updated (i.e., the voucher code status), interacts with the target vehicle, and initiates a status synchronization request. The request includes a random number encrypted with the service platform's quantum key and the voucher code information (including its expiration status).
[0155] like Figure 8 As shown, to achieve the above objectives, embodiments of the present invention provide a coupon code verification method, wherein the method is executed by a vehicle management platform and includes:
[0156] Step B10: Obtain the second request sent by the service platform, wherein the second request includes the first location information of the first service device;
[0157] It should be noted that after generating the coupon code data, the service platform sends a spatial location matching verification (i.e., the second request) to the vehicle management platform. The request content includes vehicle information, Geohash location hash value (i.e., the hash value of the first location information), and other information.
[0158] Step B20: Verify the first location information and obtain the verification result;
[0159] It should be noted that the vehicle management office performs spatial verification based on the vehicle information in the request. It queries the corresponding vehicle's geographical location information through the Internet of Things interface, calculates the geohash location hash value of the geographical location coordinates, and compares and matches it with the gas station's geographical location hash obtained from the gas pump in the request to ensure that the vehicle is within the vicinity of the gas station for coupon redemption, thus forming a spatial redemption requirement.
[0160] Step B30: Send the verification result to the service platform;
[0161] It should be noted that the vehicle management platform returns the spatial matching result (i.e., the verification result) to the service platform based on the matching result.
[0162] In this embodiment, after the vehicle management platform receives a second request from the service platform including the first location information of the first service device, the first location information is verified to obtain a verification result, which is then sent to the service platform. Through the interaction between the service platform, the first service device, and the vehicle management platform, the verification and cancellation of the coupon code data for the successful payment order of the target vehicle is completed. This eliminates the need for manual display and device scanning, improving driver safety in in-vehicle scenarios and reducing the driver's operational burden.
[0163] Optionally, the method, wherein step B20 includes:
[0164] The fourth location information of the target vehicle is obtained through an Internet of Things (IoT) interface;
[0165] The first location information is verified against the fourth location information to obtain the verification result; wherein, if the first location information and the fourth location information are consistent, the verification result is passed.
[0166] In this embodiment, the vehicle management office performs spatial verification based on the vehicle information in the request. It queries the geographical location information of the corresponding vehicle (i.e., the fourth location information) through the Internet of Things interface, and calculates the Geohash location hash value of the geographical location coordinates. It compares and matches the geohash value of the gas station obtained by the gas pump in the request (i.e., the geohash value of the first location information) to ensure that the vehicle is in the vicinity of the gas station for coupon redemption, thereby forming a spatial redemption requirement.
[0167] Optionally, the method further includes:
[0168] The service platform sends a fifth request; wherein the fifth request includes fifth encrypted information; the fifth encrypted information includes first binding information, sixth encrypted information, and a storage hash value; the first binding information is the identity information of the target user corresponding to the target vehicle and the target vehicle; the sixth encrypted information is obtained by performing a geospatial hash operation on second location information; the second location information is the location information of the target vehicle; the storage hash value is obtained by the service platform writing the first binding information and the sixth encrypted information into a blockchain network;
[0169] The fifth encrypted information is verified, and the verification result is obtained;
[0170] The verification result is sent to the service platform.
[0171] In this embodiment, the service platform sends a multi-verification request (i.e., the fifth request) to the vehicle management platform. The request message is encrypted using a national cryptographic algorithm and includes a dynamic token. It contains user information (i.e., the first binding information), location hash (i.e., the sixth encrypted information), and blockchain evidence index (i.e., the evidence hash value). After the vehicle management platform verifies and decrypts the signature, it verifies the matching between the vehicle registration information and the vehicle owner's identity through the VIN code, calls the blockchain interface to verify the authenticity of the evidence, and simultaneously obtains the vehicle's location in real time through the vehicle network to generate the current Geohash value for spatial consistency comparison. The verification result is then sent to the service platform.
[0172] Optionally, the method, wherein verifying the fifth encrypted information and obtaining a verification result includes:
[0173] The first binding information is verified against the vehicle identity information to obtain the binding information verification result; wherein, the vehicle identity information is the identity identification information of the target vehicle and the target user stored by the vehicle management platform; if the first binding information and the vehicle identity information are consistent, the binding information verification result is passed;
[0174] The evidence storage hash value is verified against the blockchain network to determine its authenticity, and the verification result is obtained; wherein, if the evidence storage hash value is authentic, the verification result is "passed".
[0175] The sixth encrypted information and the eighth encrypted information are verified to obtain the encryption information verification result; wherein, the eighth encrypted information is obtained by performing a geo-hash operation on the fifth location information; the fifth location information is the location information of the target vehicle obtained through the Internet of Things interface; if the sixth encrypted information and the eighth encrypted information are consistent, the encryption information verification result is passed;
[0176] The verification result is obtained based on the binding information verification result, the evidence storage verification result, and the encryption information verification result; if the binding information verification result, the evidence storage verification result, and the encryption information verification result are all passed, the verification result is passed.
[0177] In this embodiment, the specific process of the vehicle management platform verifying the fifth encrypted information is as follows: First, the vehicle management platform verifies the signature of the message request. After the signature verification is successful, it determines the dynamic token and its validity period, then decrypts the message to obtain the original text. It then queries the vehicle registration database using the vehicle VIN code to check if the requesting vehicle owner's identity matches, i.e., it verifies the first binding information with the vehicle identity information and obtains the binding information verification result. Next, it calls the blockchain interface to verify the authenticity of the evidence hash, i.e., it verifies the authenticity of the evidence hash value with the blockchain network and obtains the evidence verification result. Finally, it obtains the vehicle's current location data through the real-time vehicle network interface, calculates the vehicle's Geohash location hash value at this time, and compares it with the user-submitted value for spatial consistency, i.e., it verifies the sixth encrypted information with the eighth encrypted information and obtains the encrypted information verification result. If the binding information verification result, the evidence verification result, and the encrypted information verification result are all successful, the verification result is considered successful.
[0178] It should be noted that this invention, based on the deep integration of quantum encryption and IoT technologies, constructs a full-link secure verification system. During the vehicle binding phase, the vehicle management office platform and blockchain collaboratively verify the vehicle owner's identity and the authenticity of the vehicle information. Quantum Key Distribution (QKD) is used to dynamically generate encryption keys, which are then securely stored using a geographic location hash XOR operation. During the payment phase, homomorphic encryption technology is used to encrypt order parameters. A dynamically randomized encrypted voucher code is written into the physically unclonable function (PUF) chip of the vehicle RFID tag via a quantum channel, ensuring that the data cannot be copied. During the verification phase, BeiDou / GPS positioning and Geohash location hashing are used to achieve vehicle-scene spatial matching. Quantum key decryption verifies the voucher code's validity, and blockchain is used simultaneously to store the verification voucher. By innovatively integrating three core elements—quantum encrypted transmission, homomorphic data protection, and physically unclonable storage—a closed-loop protection mechanism is formed, encompassing dynamic key generation, two-way identity verification, real-time location matching, and end-to-end data encryption. This effectively solves the security risks of key leakage, data duplication, identity impersonation, and location forgery present in traditional solutions.
[0179] like Figure 9 As shown, to achieve the above objectives, embodiments of the present invention provide a coupon code verification device, wherein the device is executed by a service platform and includes:
[0180] The first acquisition module 901 is used to acquire a first request sent by the first service device, the first request being used to request the verification of coupon code data for the target vehicle; wherein, the first request includes first encryption information of the coupon code data and first location information of the first service device; the first encryption information is generated by the service platform after the order payment for the target vehicle is successful, based on the coupon code data corresponding to the order;
[0181] The first sending module 902 is used to send a second request to the vehicle management platform when the verification of the first encrypted information passes, the second request including the first location information;
[0182] The second acquisition module 903 is used to acquire the verification result of the vehicle management platform for the first location information. If the verification result is successful, it sends a third request to the first service device. The third request is used to instruct the first service device to perform the service corresponding to the order.
[0183] Optionally, the device further includes:
[0184] The sixth acquisition module is used to acquire the transaction voucher of the order sent by the payment platform when the order payment is successful;
[0185] The first generation module is used to generate the voucher code data based on the transaction voucher;
[0186] The seventh acquisition module is used to encrypt the coupon code data and acquire the first encrypted information;
[0187] The fourth sending module is used to send the first encrypted information to the target vehicle through a quantum channel.
[0188] Optionally, in the aforementioned apparatus, the seventh acquisition module includes:
[0189] The first acquisition unit is used to encrypt the coupon code data using a homomorphic encryption algorithm to obtain the second encrypted information;
[0190] The second acquisition unit is used to acquire the random number of the coupon code sent by the target vehicle according to the random number request of the coupon code sent by the target vehicle;
[0191] The third acquisition unit is used to perform a ciphertext superposition operation on the random number of the coupon code and the second encrypted information to obtain the third encrypted information;
[0192] The fourth acquisition unit is used to acquire the first encrypted information based on the third encrypted information, the fourth encrypted information, and the coupon code random number; wherein the fourth encrypted information is acquired by performing a hash operation on the third encrypted information.
[0193] Optionally, the device further includes:
[0194] The eighth acquisition module is used to acquire a fourth request sent by the target user corresponding to the target vehicle, the fourth request being used to request a binding connection to the target vehicle; wherein, the fourth request includes first binding information and second location information; the first binding information includes the identity information of the target user and the target vehicle; the second location information is the location information of the target vehicle;
[0195] The ninth acquisition module is used to acquire the fifth encrypted information based on the first binding information and the second location information;
[0196] The fifth sending module is used to send a fifth request to the vehicle management platform; wherein the fifth request includes the fifth encrypted information;
[0197] The tenth acquisition module is used to acquire the verification result of the vehicle management platform for the fifth encrypted information, and to establish a binding connection with the target vehicle if the verification result is successful.
[0198] Optionally, in the aforementioned apparatus, the ninth acquisition module includes:
[0199] The fifth acquisition unit is used to write the first binding information and the sixth encrypted information into the blockchain network and obtain the evidence storage hash value; wherein, the sixth encrypted information is obtained by performing a geo-hash operation on the second location information;
[0200] The sixth acquisition unit is used to acquire the fifth encrypted information based on the first binding information, the sixth encrypted information, and the evidence storage hash value.
[0201] Optionally, in the aforementioned apparatus, the fifth request further includes a dynamic token and a token validity period;
[0202] The dynamic token is generated by using a hash message authentication code based on a hash algorithm according to the fifth encrypted information; the token validity period is the validity period set during the generation of the dynamic token; the dynamic token and the token validity period are used by the vehicle management platform to verify the fifth encrypted information.
[0203] Optionally, in the aforementioned apparatus, the tenth acquisition module includes:
[0204] The first processing unit is configured to map the data of a first preset number of bits in the sixth encrypted information to a first measurement basis vector sequence, and to map the data of a second preset number of bits in the sixth encrypted information to a quantum state phase modulation value; the sixth encrypted information is obtained by performing a geohashing operation on the second location information;
[0205] The first transmitting unit is configured to generate a quantum pulse sequence based on the first measurement basis vector sequence and the quantum state phase modulation value, and transmit it to the target vehicle.
[0206] The seventh acquisition unit is configured to, when the target vehicle generates a second measurement basis vector sequence based on the seventh encrypted information, compare the first measurement basis vector sequence and the second measurement basis vector sequence with the target vehicle through a classical channel, remove different measurement basis vectors, and obtain a third measurement basis vector sequence; the seventh encrypted information is obtained by the target vehicle performing a geo-hash operation on the third location information; the third location information is the geographical location data of the target vehicle stored when the target user sends the fourth request;
[0207] The first generation unit is used to perform error correction on the third measurement basis vector sequence with the target vehicle through a classical channel, generate a first key, and write the second key generated by XORing the first key with the sixth encrypted information into the storage area of the target vehicle.
[0208] The eighth acquisition unit is used to acquire the notarization notification sent by the blockchain after receiving the second key sent by the target vehicle, and to complete the binding connection with the target vehicle.
[0209] Optionally, the device further includes:
[0210] The eleventh acquisition module is used to acquire the verification result sent by the first service device when the first service device completes the service corresponding to the order;
[0211] The second processing module is used to set the coupon code status of the coupon code data to "used" based on the verification result.
[0212] The sixth sending module is used to send the coupon code status to the first service device, so that the first service device synchronizes the coupon code status with the target vehicle.
[0213] like Figure 10 As shown, to achieve the above objectives, embodiments of the present invention provide a coupon code verification device, wherein the device is executed by a first service device and includes:
[0214] The second sending module 1001 is used to send a first request to the service platform. The first request is used to request the verification of the coupon code data of the target vehicle. The first request includes first encrypted information of the coupon code data and first location information of the first service device. The first encrypted information is generated by the service platform after the order payment of the target vehicle is successful, based on the coupon code data corresponding to the order.
[0215] The third acquisition module 1002 is used to acquire the third request sent by the service platform;
[0216] The first processing module 1003 is used to execute the service corresponding to the order according to the third request.
[0217] Optionally, the device further includes:
[0218] The seventh sending module is used to send the verification result to the service platform after the service corresponding to the order has been completed;
[0219] The twelfth acquisition module is used to acquire the status of the coupon code sent by the service platform based on the redemption result; wherein the status of the coupon code is "used".
[0220] The eighth sending module is used to send the coupon code status to the target vehicle, so that the target vehicle updates the coupon code status stored in the target vehicle.
[0221] like Figure 11 As shown, to achieve the above objectives, embodiments of the present invention provide a coupon code verification device, wherein the device is executed by a vehicle management platform and includes:
[0222] The fourth acquisition module 1101 is used to acquire a second request sent by the service platform, wherein the second request includes the first location information of the first service device;
[0223] The fifth acquisition module 1102 is used to verify the first positioning information and obtain the verification result;
[0224] The third sending module 1103 is used to send the verification result to the service platform.
[0225] Optionally, in the aforementioned apparatus, the fifth acquisition module 1102 includes:
[0226] The ninth acquisition unit is used to acquire the fourth location information of the target vehicle through the Internet of Things interface;
[0227] The tenth acquisition unit is used to verify the first positioning information and the fourth positioning information and obtain the verification result; wherein, if the first positioning information and the fourth positioning information are consistent, the verification result is passed.
[0228] Optionally, the device further includes:
[0229] The thirteenth acquisition module is used to acquire the fifth request sent by the service platform; wherein, the fifth request includes fifth encrypted information; the fifth encrypted information includes first binding information, sixth encrypted information, and a storage hash value; the first binding information is the identity information of the target user corresponding to the target vehicle and the target vehicle; the sixth encrypted information is obtained by performing a geographic hash operation on the second location information; the second location information is the location information of the target vehicle; the storage hash value is obtained by the service platform writing the first binding information and the sixth encrypted information into the blockchain network;
[0230] The fourteenth acquisition module is used to verify the fifth encrypted information and obtain the verification result;
[0231] The ninth sending module is used to send the verification result to the service platform.
[0232] Optionally, in the aforementioned apparatus, the fourteenth acquisition module includes:
[0233] The eleventh acquisition unit is used to verify the first binding information with the vehicle identity information and obtain the binding information verification result; wherein, the vehicle identity information is the identity identification information of the target vehicle and the target user stored by the vehicle management platform; if the first binding information and the vehicle identity information are consistent, the binding information verification result is passed;
[0234] The twelfth acquisition unit is used to verify the authenticity of the evidence storage hash value with the blockchain network and obtain the evidence storage verification result; wherein, if the evidence storage hash value is authentic, the evidence storage verification result is passed.
[0235] The thirteenth acquisition unit is used to verify the sixth encrypted information and the eighth encrypted information to obtain the encryption information verification result; wherein, the eighth encrypted information is obtained by performing a geo-hash operation on the fifth location information; the fifth location information is the location information of the target vehicle obtained through the Internet of Things interface; if the sixth encrypted information and the eighth encrypted information are consistent, the encryption information verification result is passed;
[0236] The fourteenth acquisition unit is used to acquire the verification result based on the binding information verification result, the evidence storage verification result, and the encryption information verification result; if the binding information verification result, the evidence storage verification result, and the encryption information verification result are all passed, the verification result is passed.
[0237] It should be noted that the apparatus provided in this embodiment of the invention can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0238] To achieve the above objectives, embodiments of the present invention provide a coupon code verification device, comprising: a processor, a memory, and a program or instructions stored in the memory and executable on the processor; wherein, when the processor executes the program or instructions, it implements the coupon code verification method executed by the service platform as described above, or the coupon code verification method executed by the first service device as described above, or the coupon code verification method executed by the vehicle management platform as described above.
[0239] To achieve the above objectives, embodiments of the present invention provide a readable storage medium storing a program or instructions thereon, wherein the program or instructions, when executed by a processor, implement the coupon code verification method executed by the service platform as described above, or the coupon code verification method executed by the first service device as described above, or the steps in the coupon code verification method executed by the vehicle management platform as described above.
[0240] To achieve the above objectives, embodiments of the present invention provide a computer program product, comprising computer instructions that, when executed by a processor, implement the coupon code verification method executed by the service platform as described above, or the coupon code verification method executed by the first service device as described above, or the steps of the coupon code verification method executed by the vehicle management platform as described above.
[0241] It should be further noted that the terminals described in this specification include, but are not limited to, smartphones, tablets, etc., and many of the functional components described are referred to as modules in order to emphasize the independence of their implementation.
[0242] In this embodiment of the invention, the module can be implemented in software so that it can be executed by various types of processors. For example, an identified executable code module may include one or more physical or logical blocks of computer instructions, which may be constructed as objects, procedures, or functions. Nevertheless, the executable code of the identified module does not need to be physically located together, but may include different instructions stored in different bits, which, when logically combined, constitute the module and achieve the module's intended purpose.
[0243] In practice, an executable code module can be a single instruction or many instructions, and can even be distributed across multiple different code segments, different programs, and across multiple memory devices. Similarly, operational data can be identified within the module and can be implemented in any suitable form and organized within any suitable data structure. This operational data can be collected as a single dataset or distributed across different locations (including different storage devices), and can exist, at least in part, solely as electronic signals within the system or network.
[0244] When a module can be implemented using software, considering the current level of hardware technology, modules that can be implemented in software can be implemented using hardware circuits by those skilled in the art to achieve the corresponding functions, without considering cost. These hardware circuits include conventional very-large-scale integrated circuits (VLSI) or gate arrays, as well as existing semiconductors such as logic chips and transistors, or other discrete components. Modules can also be implemented using programmable hardware devices, such as field-programmable gate arrays, programmable array logic, and programmable logic devices.
[0245] The exemplary embodiments described above are with reference to the accompanying drawings. Many different forms and embodiments are feasible without departing from the spirit and teachings of the invention. Therefore, the invention should not be construed as limiting the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided to make the invention complete and convey the scope of the invention to those skilled in the art. In these drawings, component dimensions and relative dimensions may be exaggerated for clarity. The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. As used herein, unless clearly indicated otherwise, the singular forms “a,” “an,” and “the” are intended to include all such forms. It will be further understood that the terms “comprising” and / or “including”, when used in this specification, indicate the presence of the stated features, integers, steps, operations, components, and / or elements, but do not exclude the presence or addition of one or more other features, integers, steps, operations, components, and / or groups thereof. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of the range and any subranges in between.
[0246] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for verifying coupon codes, characterized in that, Performed by the service platform, including: The system obtains a first request sent by a first service device, the first request being used to request the verification of coupon code data for a target vehicle; wherein, the first request includes first encrypted information of the coupon code data and first location information of the first service device; the first encrypted information is generated by the service platform after the order payment for the target vehicle is successful, based on the coupon code data corresponding to the order; If the verification of the first encrypted information passes, a second request is sent to the vehicle management platform, the second request including the first location information; The vehicle management platform obtains the verification result of the first location information. If the verification result is successful, a third request is sent to the first service device. The third request is used to instruct the first service device to perform the service corresponding to the order.
2. The method according to claim 1, characterized in that, Before obtaining the first request sent by the first service device, the method further includes: If the order payment is successful, obtain the transaction voucher for the order sent by the payment platform; The voucher code data is generated based on the transaction voucher; The coupon code data is encrypted to obtain the first encrypted information; The first encrypted information is sent to the target vehicle via a quantum channel.
3. The method according to claim 2, characterized in that, Encrypting the coupon code data to obtain the first encrypted information includes: The coupon code data is encrypted using a homomorphic encryption algorithm to obtain the second encrypted information; Based on the random number request for the coupon code sent by the target vehicle, obtain the random number of the coupon code sent by the target vehicle; The random number of the coupon code and the second encrypted information are subjected to a ciphertext superposition operation to obtain the third encrypted information; The first encrypted information is obtained based on the third encrypted information, the fourth encrypted information, and the random number of the coupon code; wherein the fourth encrypted information is obtained by performing a hash operation on the third encrypted information.
4. The method according to claim 1, characterized in that, Before obtaining the first request sent by the first service device, the method further includes: Obtain a fourth request sent by the target user corresponding to the target vehicle, the fourth request being used to request a binding connection to the target vehicle; wherein, the fourth request includes first binding information and second location information; the first binding information includes the identity information of the target user and the target vehicle; the second location information is the location information of the target vehicle; The fifth encrypted information is obtained based on the first binding information and the second location information; Send a fifth request to the vehicle management platform; wherein the fifth request includes the fifth encrypted information; Obtain the verification result of the fifth encrypted information from the vehicle management platform, and if the verification result is successful, establish a binding connection with the target vehicle.
5. The method according to claim 4, characterized in that, The fifth encrypted information is obtained based on the first binding information and the second location information, including: The first binding information and the sixth encrypted information are written into the blockchain network to obtain the evidence storage hash value; wherein, the sixth encrypted information is obtained by performing a geo-hash operation on the second location information; The fifth encrypted information is obtained based on the first binding information, the sixth encrypted information, and the evidence hash value.
6. The method according to claim 4, characterized in that, The fifth request also includes a dynamic token and a token validity period; The dynamic token is generated by using a hash message authentication code based on a hash algorithm according to the fifth encrypted information; the token validity period is the validity period set during the generation of the dynamic token; the dynamic token and the token validity period are used by the vehicle management platform to verify the fifth encrypted information.
7. The method according to claim 4, characterized in that, Establishing a binding connection with the target vehicle includes: The data of the first preset number of bits in the sixth encrypted information is mapped to a first measurement basis vector sequence, and the data of the second preset number of bits in the sixth encrypted information is mapped to a quantum state phase modulation value; the sixth encrypted information is obtained by performing a geohashing operation on the second location information; A quantum pulse sequence will be generated based on the first measurement basis vector sequence and the quantum state phase modulation value, and then sent to the target vehicle. When the target vehicle generates a second measurement basis vector sequence based on the seventh encrypted information, the first measurement basis vector sequence and the second measurement basis vector sequence are compared with the target vehicle through a classical channel, and different measurement basis vectors are removed to obtain a third measurement basis vector sequence; the seventh encrypted information is obtained by the target vehicle performing a geo-hash operation on the third location information; the third location information is the geographical location data of the target vehicle stored when the target user sends the fourth request; Error correction is performed on the third measurement basis vector sequence by the target vehicle through a classical channel to generate a first key, so that the target vehicle writes the second key generated by XORing the first key with the sixth encrypted information into the storage area of the target vehicle; Obtain the notification notification sent by the blockchain after receiving the second key sent by the target vehicle, and complete the binding connection with the target vehicle.
8. The method according to claim 1, characterized in that, After sending a third request to the first service device, the method further includes: If the first service device completes the service corresponding to the order, obtain the verification result sent by the first service device; Based on the verification results, the coupon code status of the coupon code data is set to "used". The coupon code status is sent to the first service device, so that the first service device synchronizes the coupon code status with the target vehicle.
9. A method for verifying coupon codes, characterized in that, Performed by the first service device, including: A first request is sent to the service platform, the first request being used to request the redemption of the coupon code data for the target vehicle; wherein, the first request includes first encrypted information of the coupon code data and first location information of the first service device; the first encrypted information is generated by the service platform after the order payment for the target vehicle is successful, based on the coupon code data corresponding to the order; Obtain the third request sent by the service platform; Execute the service corresponding to the order according to the third request.
10. The method according to claim 9, characterized in that, The method further includes: Upon completion of the service corresponding to the order, a verification result is sent to the service platform; Obtain the status of the coupon code sent by the service platform based on the redemption result; wherein the status of the coupon code is "used"; The coupon code status is sent to the target vehicle, causing the target vehicle to update the coupon code status stored in the target vehicle.
11. A method for verifying coupon codes, characterized in that, Performed by the vehicle management platform, including: Obtain a second request sent by the service platform, wherein the second request includes the first location information of the first service device; Verify the first location information and obtain the verification result; The verification result is sent to the service platform.
12. The method according to claim 11, characterized in that, The first location information is verified, and the verification result is obtained, including: Obtain the fourth location information of the target vehicle through the Internet of Things interface; The first location information is verified against the fourth location information to obtain the verification result; wherein, if the first location information and the fourth location information are consistent, the verification result is passed.
13. The method according to claim 11, characterized in that, The method further includes: The service platform sends a fifth request; wherein the fifth request includes fifth encrypted information; the fifth encrypted information includes first binding information, sixth encrypted information, and a storage hash value; the first binding information is the identity information of the target user corresponding to the target vehicle and the target vehicle; the sixth encrypted information is obtained by performing a geospatial hash operation on second location information; the second location information is the location information of the target vehicle; the storage hash value is obtained by the service platform writing the first binding information and the sixth encrypted information into a blockchain network; The fifth encrypted information is verified, and the verification result is obtained; The verification result is sent to the service platform.
14. The method according to claim 13, characterized in that, Verify the fifth encrypted information and obtain the verification result, including: The first binding information is verified against the vehicle identity information to obtain the binding information verification result; wherein, the vehicle identity information is the identity identification information of the target vehicle and the target user stored by the vehicle management platform; if the first binding information and the vehicle identity information are consistent, the binding information verification result is passed; The evidence storage hash value is verified against the blockchain network to determine its authenticity, and the verification result is obtained; wherein, if the evidence storage hash value is authentic, the verification result is "passed". The sixth encrypted information and the eighth encrypted information are verified to obtain the encryption information verification result; wherein, the eighth encrypted information is obtained by performing a geo-hash operation on the fifth location information; the fifth location information is the location information of the target vehicle obtained through the Internet of Things interface; if the sixth encrypted information and the eighth encrypted information are consistent, the encryption information verification result is passed; The verification result is obtained based on the binding information verification result, the evidence storage verification result, and the encryption information verification result; if the binding information verification result, the evidence storage verification result, and the encryption information verification result are all passed, the verification result is passed.
15. A coupon code verification device, characterized in that, Performed by the service platform, including: The first acquisition module is used to acquire a first request sent by the first service device, wherein the first request is used to request the coupon code data of the target vehicle; wherein the first request includes first encryption information of the coupon code data and first location information of the first service device; the first encryption information is generated by the service platform after the order payment of the target vehicle is successful, based on the coupon code data corresponding to the order; The first sending module is used to send a second request to the vehicle management platform if the verification of the first encrypted information passes, wherein the second request includes the first location information; The second acquisition module is used to acquire the verification result of the vehicle management platform for the first location information. If the verification result is successful, the module sends a third request to the first service device. The third request is used to instruct the first service device to perform the service corresponding to the order.
16. A coupon code verification device, characterized in that, Performed by the first service device, including: The second sending module is used to send a first request to the service platform, the first request being used to request the redemption of the coupon code data of the target vehicle; wherein, the first request includes first encrypted information of the coupon code data and first location information of the first service device; the first encrypted information is generated by the service platform after the order payment of the target vehicle is successful, based on the coupon code data corresponding to the order; The third acquisition module is used to acquire the third request sent by the service platform; The first processing module is used to execute the service corresponding to the order based on the third request.
17. A coupon code verification device, characterized in that, Performed by the vehicle management platform, including: The fourth acquisition module is used to acquire a second request sent by the service platform, wherein the second request includes the first location information of the first service device; The fifth acquisition module is used to verify the first location information and obtain the verification result; The third sending module is used to send the verification result to the service platform.
18. A coupon code verification device, comprising: A processor, a memory, and a program or instructions stored in the memory and executable on the processor; characterized in that, when the processor executes the program or instructions, it implements the coupon code verification method executed by a service platform as described in any one of claims 1-8, or the coupon code verification method executed by a first service device as described in any one of claims 9-10, or the coupon code verification method executed by a vehicle management platform as described in any one of claims 11-14.
19. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the coupon code verification method executed by the service platform as described in any one of claims 1-8, or the coupon code verification method executed by the first service device as described in any one of claims 9-10, or the steps in the coupon code verification method executed by the vehicle management platform as described in any one of claims 11-14.
20. A computer program product, characterized in that, The method includes computer instructions that, when executed by a processor, implement the steps of the coupon code verification method as described in any one of claims 1-8, executed by a service platform, as described in any one of claims 9-10, executed by a first service device, or as described in any one of claims 11-14, executed by a vehicle management platform.