Electronic lottery system based on electronic signature and process data storage technology

Through electronic signature and blockchain evidence storage technology, the environmental vulnerability, forgery and tampering and high concurrency processing of traditional paper lottery systems is solved, and the safe, reliable and efficient prize redemption process of the electronic lottery system is realized, and automated tax processing is supported to reduce environmental pollution.

CN120496221APending Publication Date: 2025-08-15RONGZHIXIN (BEIJING) TECHNOLOGY SERVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510811328.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

Traditional paper lottery systems are susceptible to environmental factors, with risks of forgery and tampering, lack effective anti-counterfeiting technology, and cannot meet the real-time processing needs of high-concurrency betting scenarios, and lack a reliable electronic evidence storage mechanism, which can easily lead to prize redemption disputes, and there are problems of identity impersonation and tax processing efficiency.

Method used

Using electronic signature and process data proof storage technology, the lottery betting orders and dynamic information codes with timestamps are generated through the lottery betting client, combined with special equipment to realize real-name authentication and payment, and using distributed databases to generate encrypted electronic vouchers. The blockchain proof storage system is used to tamper with the key data to realize the digitization and traceability of the entire process.

Benefits of technology

Effectively prevent the risks of forgery and tampering, support real-time processing in high-concurrency scenarios, reduce reward disputes, improve system security and transaction traceability, realize automated tax processing, and reduce environmental pollution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120496221A_ABST
    Figure CN120496221A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic lottery system based on an electronic signature and process data storage technology, and relates to the technical field of lottery systems. Comprising a lottery buyer betting client which receives betting information (lottery types, period numbers and number selection schemes) of lottery buyers through a standard betting control, generates a betting order containing a timestamp and a dynamic information code (a two-dimensional code / bar code, and the time efficiency is 60 seconds), and synchronously collects user real-name authentication information and betting behavior data (operation time and number selection records). A thermo-sensitive paper bill is replaced by the electronic certificate, so that the problem of certificate damage caused by environmental factors is avoided; by combining the electronic signature and the block chain evidence storage technology, tampering-free evidence storage of the voucher hash value is realized, counterfeiting and tampering risks are effectively prevented, and awarding disputes are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lottery systems, and in particular to an electronic lottery system based on electronic signature and process data notarization technology. Background Art

[0002] Paper lottery tickets are issued by lottery players who provide their betting information to distributors. The distributors then use a ticket printer to print this information, including the lottery type, issue number, gameplay, number selection plan, bet amount, and betting time, onto thermal paper. This information serves as proof of purchase and prize redemption. The thermal paper used in paper lottery tickets has a coating consisting of a heat-sensitive color-forming layer composed of an adhesive, a developer, and a leuco dye (also called a leuco dye). When a printer prints the ticket, the heat from the print head causes a chemical reaction between the developer and the leuco dye on the thermal paper coating, resulting in a color change and the resulting image.

[0003] The traditional paper lottery system has the problem that thermal paper vouchers are easily affected by environmental factors such as high temperature and humidity, causing blurred or faded images and text, and lack effective anti-counterfeiting technology. There is a risk of forgery and tampering, which can easily lead to prize redemption disputes. Betting data needs to be manually entered or scanned for identification, which cannot meet the real-time processing requirements of high-concurrency betting scenarios and can easily lead to order backlogs. The entire process of betting, payment, and prize redemption lacks a reliable electronic evidence storage mechanism, making it difficult to quickly trace transaction records in the event of a dispute. User identity information is weakly correlated with betting behavior, and there is a risk of identity theft or cross-terminal prize redemption fraud. The personal income tax withholding for prizes of more than 10,000 yuan relies on manual review and manual declaration, which is inefficient and easily leads to inaccurate tax data, increasing the difficulty of supervision. The production and disposal of a large number of paper bills causes technical pain points such as waste of forest resources and environmental pollution. Therefore, the present invention proposes an electronic lottery system based on electronic signature and process data evidence storage technology, and reconstructs the lottery business process through digital and intelligent technology to solve the above problems. Summary of the Invention

[0004] The purpose of the present invention is to provide an electronic lottery system based on electronic signature and process data notarization technology, which solves the technical problems raised in the background technology.

[0005] To achieve the above objectives, the present invention provides the following technical solutions: an electronic lottery system based on electronic signature and process data storage technology, wherein the lottery player betting client receives the lottery player's betting information (lottery type, issue number, number selection plan) through a standard betting control, generates a betting order with a timestamp and a dynamic information code (QR code / barcode, valid for 60 seconds), and simultaneously collects the user's real-name authentication information and betting behavior data (operation time, number selection record);

[0006] Specialized equipment: integrated with a camera, display, and operation buttons, it uses the electronic lottery betting technology interface and bank payment channel to scan information codes, analyze order details (lottery player identity, bet amount), receive scanned code payments, and upload data to the sales system;

[0007] Lottery sales system: Based on a distributed database architecture, it generates an encrypted electronic voucher file (PDF format, including a unique order number) after receiving betting data;

[0008] Electronic signature service: Provided by an authoritative security certification agency, the electronic certificate file is hashed (SHA-256) using the RSA asymmetric encryption algorithm, and the signature is completed after the lottery agency's digital certificate is attached, meeting the statutory conditions of Article 13 of the "Electronic Signature Law";

[0009] Blockchain evidence storage system: Using alliance chain technology, the hash value of electronic vouchers, betting order data, payment serial number, and key nodes of user IP addresses are stored on the chain to generate an unalterable evidence hash value.

[0010] Preferably, the betting controls of the lottery betting client include:

[0011] Single number selection interface: The digital matrix is arranged through the touch screen, and lottery players can manually select numbers;

[0012] Multiple number selection interface: select the number selection range through the drop-down menu, and the system will automatically generate a combination plan;

[0013] Identity verification module: Integrates a facial recognition camera or fingerprint recognition sensor, extracts biometric features through the OpenCV library, and performs real-time comparison with the public security database.

[0014] Preferably, the interaction process of the special machine includes:

[0015] After the camera scans the information code, it retrieves the order data from the sales system through the RESTful interface and displays the lottery type, issue number, and bet amount on the display screen;

[0016] Receive the payment QR code presented by the lottery player, complete the fund transfer through the UnionPay Express Payment Channel, and obtain the payment voucher number;

[0017] Upload the order data, payment voucher number and equipment ID to the sales system through an encrypted channel to trigger the generation of electronic vouchers.

[0018] Preferably, the distributed database architecture and electronic voucher generation mechanism of the lottery agency sales system include:

[0019] Distributed architecture: It uses a master-slave replication architecture with three master nodes and five slave nodes, distributed across data centers in three geographical regions.

[0020] The master node uses the PostgreSQL 14.5 database, the slave node uses MySQL 8.0, and real-time data synchronization is achieved through Debezium CDC;

[0021] The database sharding strategy is based on betting time (sharding by day) and lottery type (modulo by lottery ID), ensuring that more than 100,000 concurrent orders can be processed per second.

[0022] Electronic voucher generation process: After receiving the betting data, traffic peak is shaving through the Apache Kafka message queue, with a queue capacity of 1 million messages;

[0023] The iText 7.2.5 library is used to generate PDF documents, which contain the following structured data fields:

[0024] Header area: order number (UUIDv4 format, 36-bit string), generation timestamp (ISO8601 format);

[0025] Main area: lottery information, betting numbers, betting amount, and expected prize range;

[0026] Bottom area: Anti-counterfeiting QR code (including SHA-256 encrypted order summary) and lottery agency electronic signature area;

[0027] After generation, it is encrypted using the AES-256-GCM algorithm with a 256-bit key length, a 12-byte initialization vector (IV) length, and an additional 16-byte authentication tag to ensure data integrity.

[0028] Preferably, the steps for implementing the electronic signature service include:

[0029] The security certification agency issues a certificate for the lottery organization's electronic signature. The certificate contains the organization's public key, validity period, and CA signature;

[0030] Perform block hashing on the electronic certificate file to generate a multi-level summary value which is then merged with the signature information to form an electronic signature that complies with the X.509 standard.

[0031] Preferably, the evidence data of the blockchain evidence storage system includes:

[0032] Betting stage: electronic voucher hash value, user ID number desensitized data, betting terminal MAC address, operation timestamp;

[0033] Prize redemption stage: Prize redemption application time, hash value of the prize redeemed voucher, and distributor terminal number form a full-process evidence chain from betting to prize redemption.

[0034] Preferably, the electronic lottery prize redemption process includes:

[0035] Small and medium prizes (≤10,000 yuan): The lottery player's client generates a dynamic redemption code (updated every 60 seconds). A dedicated machine scans and parses the hash value of the electronic voucher. The blockchain evidence storage system is called through a smart contract to perform a hash comparison. If the hash value matches, a redemption instruction is sent to the sales system. After completion, the voucher is stamped with a "redeemed" timestamp.

[0036] Grand prize (>10,000 yuan): Lottery players bring their electronic vouchers to the provincial lottery center, and staff scan the prize redemption code through a dedicated prize verification terminal. The verification process is the same as for small and medium prizes. After verification, the manual review and prize distribution process will be triggered.

[0037] Preferably, in the hash comparison mechanism, the electronic certificate file generates a 256-bit hash value using the SHA-256 algorithm, and performs a byte-level comparison with the original hash value stored in the blockchain. If there is any inconsistency, the certificate is determined to have been tampered with and the prize is refused.

[0038] Preferably, the electronic signature lottery is uniquely associated with the lottery player's identity through the ID number bound when the user registers. The sales system automatically identifies the winning amount when redeeming the prize, and simultaneously triggers the personal income tax withholding module (tax rate 20%) for prizes ≥ 10,000 yuan, and synchronizes the tax information to the tax system.

[0039] Preferably, the electronic certificate is stored in an encrypted form on the lottery agency's cloud server and is kept for 5 years from the date of redemption. It supports real-time verification of the signature validity and evidence record by entering the certificate number on the official website of the security certification agency.

[0040] Compared with related technologies, the electronic lottery system based on electronic signature and process data storage technology provided by the present invention has the following beneficial effects:

[0041] 1. The present invention provides an electronic lottery system based on electronic signature and process data storage technology. It replaces thermal paper tickets with electronic certificates to avoid certificate damage caused by environmental factors. It combines electronic signature and blockchain storage technology to achieve tamper-proof storage of certificate hash values, effectively preventing the risks of forgery and tampering and reducing prize redemption disputes.

[0042] 2. The present invention provides an electronic lottery system based on electronic signature and process data notarization technology. By adopting a distributed database architecture (3 master and 5 slave nodes) and Apache Kafka message queue, it supports processing more than 100,000 concurrent orders per second. It optimizes data storage through time slicing and lottery ID modulo strategy to meet the real-time processing requirements in high-concurrency scenarios and avoid order backlogs.

[0043] 3. The present invention provides an electronic lottery system based on electronic signature and process data storage technology. Through the blockchain storage system, key data from the betting stage (electronic certificate hash value, user identity desensitized data, etc.) and the prize redemption stage (prize redemption application time, prize redemption certificate hash value, etc.) are uploaded to the chain, forming a full-process evidence chain from betting to prize redemption, supporting hash comparison to verify certificate integrity, ensuring transaction traceability, and improving system security. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a module flow chart of the present invention;

[0045] Figure 2 It is a module association diagram of the present invention;

[0046] Figure 3 This is a flowchart of the electronic lottery betting process of the present invention;

[0047] Figure 4 This is a flowchart of the electronic lottery prize redemption process of the present invention. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0049] Example 1:

[0050] See also Figure 1-Figure 4 The present invention provides a technical solution: an electronic lottery system based on electronic signature and process data storage technology, comprising:

[0051] Lottery betting client: Receives lottery betting information (lottery type, issue number, number selection plan) from lottery players through standard betting controls, generates a betting order with a timestamp and a dynamic information code (QR code / barcode, valid for 60 seconds), and simultaneously collects user real-name authentication information and betting behavior data (operation time, number selection records);

[0052] The betting control of the lottery betting client supports single / multiple number selection. When placing an order, user identity verification is completed through biometric recognition or dynamic password, and the verification data is synchronized to the blockchain evidence storage system;

[0053] In this implementation plan, the lottery betting client implements full-process digital operation through standard betting controls:

[0054] Dynamic information code management: The generated QR code / barcode is encrypted using the AES-128 algorithm, with a time limit of 60 seconds. It will automatically expire after the timeout to prevent the information code from being maliciously used;

[0055] Real-name authentication and behavior collection: Through facial recognition cameras or fingerprint sensors, biometric feature extraction is completed based on the OpenCV library, and real-time encrypted comparison is performed with the public security database to ensure the authenticity of the user's identity. The betting behavior data collected simultaneously includes operation timestamps and number selection trajectory records (such as click sequence and number of modifications), forming a complete betting behavior log.

[0056] Betting order generation: The order contains core information such as lottery type, issue number, and number selection plan. The order time is accurately recorded through the UTC timestamp to ensure that the time cannot be tampered with.

[0057] Specialized equipment: integrated with a camera, display, and operation buttons, it uses the electronic lottery betting technology interface and bank payment channel to scan information codes, analyze order details (lottery player identity, bet amount), receive scanned code payments, and upload data to the sales system;

[0058] The interaction process of special tools includes:

[0059] After the camera scans the information code, it retrieves the order data from the sales system through the RESTful interface and displays the lottery type, issue number, and bet amount on the display screen;

[0060] Receive the payment QR code presented by the lottery player, complete the fund transfer through the UnionPay Express Payment Channel, and obtain the payment voucher number;

[0061] Upload the order data, payment voucher number, and equipment ID to the sales system through an encrypted channel to trigger the generation of an electronic voucher;

[0062] In this implementation, dedicated equipment achieves secure payment and data upload through multi-module collaboration:

[0063] RESTful interface call: After scanning the information code, the sales system API is called through the HTTPS protocol. The interface uses JWT token authentication to ensure the legitimacy of data transmission identity;

[0064] UnionPay payment integration: When connecting to UnionPay's express payment channel, TLS1.3 encryption protocol is used to transmit payment information. The payment voucher number contains a combination of device ID, timestamp and random number to prevent replay attacks.

[0065] Encrypted channel and data triggering: Order data, payment vouchers and equipment ID are encrypted using the SM4 national encryption algorithm before being uploaded. After the sales system receives the complete data, it triggers the electronic voucher generation process through the message queue to ensure real-time data transmission and processing.

[0066] Lottery sales system: Based on a distributed database architecture, it generates an encrypted electronic voucher file (PDF format, including a unique order number) after receiving betting data;

[0067] The distributed database architecture and electronic voucher generation mechanism of the lottery agency sales system include:

[0068] Distributed architecture: It uses a master-slave replication architecture with three master nodes and five slave nodes, distributed across data centers in three geographical regions.

[0069] The master node uses the PostgreSQL 14.5 database, the slave node uses MySQL 8.0, and real-time data synchronization is achieved through Debezium CDC;

[0070] The database sharding strategy is based on betting time (sharding by day) and lottery type (modulo by lottery ID), ensuring that more than 100,000 concurrent orders can be processed per second.

[0071] Electronic voucher generation process: After receiving the betting data, traffic peak is shaving through the Apache Kafka message queue, with a queue capacity of 1 million messages;

[0072] The iText 7.2.5 library is used to generate PDF documents, which contain the following structured data fields:

[0073] Header area: order number (UUIDv4 format, 36-bit string), generation timestamp (ISO8601 format);

[0074] Main area: lottery information, betting numbers, betting amount, and expected prize range;

[0075] Bottom area: Anti-counterfeiting QR code (including SHA-256 encrypted order summary) and lottery agency electronic signature area;

[0076] After generation, it is encrypted using the AES-256-GCM algorithm with a 256-bit key length, a 12-byte initialization vector (IV) length, and an additional 16-byte authentication tag to ensure data integrity;

[0077] In this implementation, the sales system uses a multi-layered technical architecture to ensure high concurrency and data security:

[0078] Distributed database design:

[0079] The three master nodes use PostgreSQL 14.5 to support complex transaction processing, and the five slave nodes use MySQL 8.0 to handle read requests. Debezium CDC is used to achieve millisecond-level synchronization of master and slave data to ensure data consistency.

[0080] The sharding strategy is divided into two dimensions: betting time and lottery type ID. A single node processes an average of over 86.4 million orders per day, meeting the concurrent needs during peak periods.

[0081] Electronic certificate generation and encryption:

[0082] Apache Kafka queues are used to buffer betting data. When the queue is full, a traffic peak reduction mechanism is triggered to ensure system stability.

[0083] When the PDF voucher is generated, the UUIDv4 order number in the header is generated using the Java UUID class, and the timestamp follows the ISO8601 standard (e.g., 2025-06-12T14:30:00+08:00).

[0084] The anti-counterfeiting QR code at the bottom contains the SHA-256 hash value of the order summary, and users can verify the integrity of the certificate by scanning the code;

[0085] The credential encryption uses the AES-256-GCM algorithm, the initialization vector (IV) is generated using a random number, and the 16-byte authentication tag is used to verify whether the data has been tampered with.

[0086] Electronic signature service: Provided by an authoritative security certification agency, the electronic certificate file is hashed (SHA-256) using the RSA asymmetric encryption algorithm, and the signature is completed after the lottery agency's digital certificate is attached, meeting the statutory conditions of Article 13 of the "Electronic Signature Law";

[0087] The implementation steps of the electronic signature service include:

[0088] The security certification agency issues a certificate for the lottery organization's electronic signature. The certificate contains the organization's public key, validity period, and CA signature;

[0089] Perform block hashing on the electronic certificate file to generate a multi-level summary value, which is then combined with the signature information to form an electronic signature that complies with the X.509 standard;

[0090] In this implementation plan, the electronic signature service strictly complies with the requirements of the Electronic Signature Law:

[0091] Digital certificate issuance: The security certification authority (CA) issues an X.509v3 format certificate to the lottery organization, which includes the organization's public key, validity period, and the CA's RSA 2048-bit signature. The certificate is updated in real time through the CRL;

[0092] Block hash and signature merging: The electronic certificate is divided into 512KB blocks, and the SHA-256 hash value is calculated for each block. The multi-level summary value and signature information are then merged through ASN.1 encoding to form a signature structure that complies with the PKCS#7 standard, ensuring that the signature is bound to the certificate content.

[0093] Blockchain evidence storage system: Using alliance chain technology, the hash value of electronic vouchers, betting order data, payment serial number, and key nodes of user IP addresses are stored on the chain to generate an unalterable evidence hash value;

[0094] The evidence data of the blockchain evidence system includes:

[0095] Betting stage: electronic voucher hash value, user ID number desensitized data, betting terminal MAC address, operation timestamp;

[0096] Prize redemption stage: Prize redemption application time, hash value of the prize redemption voucher, and distributor terminal number form a full-process evidence chain from betting to prize redemption;

[0097] In this implementation plan, blockchain evidence storage uses alliance chain technology to build a full-process evidence chain:

[0098] Evidence data processing:

[0099] During the betting phase, the user's ID number is desensitized, and the terminal MAC address is hashed using SHA-256 and uploaded to the blockchain to protect user privacy.

[0100] During the prize redemption phase, the distributor's terminal number is recorded and mapped to the betting terminal's MAC address to prevent cross-terminal prize redemption fraud.

[0101] Smart contract application: When redeeming a prize, the blockchain evidence storage system is automatically called through the smart contract to compare the hash value of the electronic certificate. If they are consistent, the prize redemption permission is returned. The entire process does not require human intervention to ensure that the result cannot be tampered with.

[0102] The electronic lottery prize redemption process includes:

[0103] Small and medium prizes (≤10,000 yuan): The lottery player's client generates a dynamic redemption code (updated every 60 seconds). A dedicated machine scans and parses the hash value of the electronic voucher. The blockchain evidence storage system is called through a smart contract to perform a hash comparison. If the hash value matches, a redemption instruction is sent to the sales system. After completion, the voucher is stamped with a "redeemed" timestamp.

[0104] Grand Prize (>10,000 yuan): Lottery players bring their electronic vouchers to the provincial lottery center, where staff scan the prize redemption code using a dedicated prize verification terminal. The verification process is the same as for small and medium prizes. Passing the verification triggers manual review and prize distribution.

[0105] In the hash comparison mechanism, the electronic certificate file generates a 256-bit hash value using the SHA-256 algorithm, which is then compared byte-by-byte with the original hash value stored on the blockchain. If they are inconsistent, the certificate is deemed to have been tampered with and the prize will be denied.

[0106] In this implementation, the redemption process is graded based on the amount to ensure security and efficiency:

[0107] Automatic redemption of small and medium prizes:

[0108] The dynamic redemption code is generated every 60 seconds using the HMAC-SHA256 algorithm and includes the order number and timestamp to prevent reuse;

[0109] After scanning, a dedicated machine analyzes the voucher hash value and uses the smart contract to call the blockchain evidence data. After byte-level comparison and consistency, the sales system automatically marks the voucher as "redeemed" and stamps the redemption time through the timestamp server;

[0110] Manual review of the grand prize:

[0111] For prizes exceeding 10,000 yuan, lottery players must bring their electronic vouchers to the provincial center, where staff will scan the prize redemption code using a dedicated prize verification terminal. The verification process is the same as for small and medium-sized prizes.

[0112] After the verification is passed, the manual review process is triggered. The review content includes user identity information, betting records and payment transactions. After confirmation, the bonus will be paid through the bank's dedicated line.

[0113] Electronically signed lottery tickets are uniquely linked to lottery players through their ID number, which is bound to the lottery player's registration. The sales system automatically identifies the winning amount when the prize is redeemed, and triggers the individual tax withholding module (tax rate 20%) for prizes of 10,000 yuan or more, and synchronizes the tax information to the tax system.

[0114] In this implementation plan, the system implements automated tax processing through identity binding:

[0115] Unique identity association: When registering, users need to upload their ID card and complete facial recognition. The system will encrypt and bind the ID card number to the betting account (using SHA-256+salt value encryption) to ensure "one person, one account";

[0116] Automatic withholding of personal income tax: When redeeming the prize, the sales system will analyze the winning amount in real time. If it is ≥ 10,000 yuan, the tax interface will be automatically called to calculate the 20% tax amount, generate a withholding certificate, and synchronize the tax information through the tax system interface, in compliance with the requirements of the "Personal Income Tax Law".

[0117] The electronic certificate is stored in an encrypted form on the lottery agency's cloud server and is kept for 5 years from the date of redemption. It supports real-time verification of the signature validity and evidence record by entering the certificate number on the official website of the security certification agency.

[0118] In this implementation, the credential storage and verification mechanism ensures long-term traceability:

[0119] Encrypted storage and expiration management: Electronic vouchers are stored in cloud servers using AES-256-GCM encryption. Storage paths are managed hierarchically by "lottery type + issue number + order number." They are stored for five years from the date of redemption and automatically deleted upon expiration.

[0120] Real-time verification process: Users can enter the certificate number through the official website of the security certification agency. The system retrieves the hash value of the blockchain certificate and compares it with the certificate hash value stored on the server. At the same time, it verifies the validity of the electronic signature and returns the verification result.

Claims

1. An electronic lottery system based on electronic signature and process data evidence storage technology, characterized in that: include: Lottery betting client: Receives lottery betting information (lottery type, issue number, number selection plan) from lottery players through standard betting controls, generates a betting order with a timestamp and a dynamic information code (QR code / barcode, valid for 60 seconds), and simultaneously collects user real-name authentication information and betting behavior data (operation time, number selection records); Specialized equipment: integrated with a camera, display, and operation buttons, it uses the electronic lottery betting technology interface and bank payment channel to scan information codes, analyze order details (lottery player identity, bet amount), receive scanned code payments, and upload data to the sales system; Lottery sales system: Based on a distributed database architecture, it generates an encrypted electronic voucher file (PDF format, including a unique order number) after receiving betting data; Electronic signature service: Provided by an authoritative security certification agency, the electronic certificate file is hashed (SHA-256) using the RSA asymmetric encryption algorithm, and the signature is completed after the lottery agency's digital certificate is attached, meeting the statutory conditions of Article 13 of the "Electronic Signature Law"; Blockchain evidence storage system: Using alliance chain technology, the hash value of electronic vouchers, betting order data, payment serial number, and key nodes of user IP addresses are stored on the chain to generate an unalterable evidence hash value.

2. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 1, characterized in that: The betting controls of the lottery betting client include: Single number selection interface: The digital matrix is arranged through the touch screen, and lottery players can manually select numbers; Multiple number selection interface: select the number selection range through the drop-down menu, and the system will automatically generate a combination plan; Identity verification module: Integrates a facial recognition camera or fingerprint recognition sensor, extracts biometric features through the OpenCV library, and performs real-time comparison with the public security database.

3. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 1, characterized in that: The interaction process of the special machine includes: After the camera scans the information code, it retrieves the order data from the sales system through the RESTful interface and displays the lottery type, issue number, and bet amount on the display screen; Receive the payment QR code presented by the lottery player, complete the fund transfer through the UnionPay Express Payment Channel, and obtain the payment voucher number; Upload the order data, payment voucher number and equipment ID to the sales system through an encrypted channel to trigger the generation of electronic vouchers.

4. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 1, characterized in that: The distributed database architecture and electronic voucher generation mechanism of the lottery agency sales system include: Distributed architecture: It uses a master-slave replication architecture with three master nodes and five slave nodes, distributed across data centers in three geographical regions. The master node uses the PostgreSQL 14.5 database, the slave node uses MySQL 8.0, and real-time data synchronization is achieved through Debezium CDC; The database sharding strategy is based on betting time (sharding by day) and lottery type (modulo by lottery ID), ensuring that more than 100,000 concurrent orders can be processed per second. Electronic voucher generation process: After receiving the betting data, traffic peak is shaving through the Apache Kafka message queue, with a queue capacity of 1 million messages; The iText 7.2.5 library is used to generate PDF documents, which contain the following structured data fields: Header area: order number (UUIDv4 format, 36-bit string), generation timestamp (ISO8601 format); Main area: lottery information, betting numbers, betting amount, and expected prize range; Bottom area: Anti-counterfeiting QR code (including SHA-256 encrypted order summary) and lottery agency electronic signature area; After generation, it is encrypted using the AES-256-GCM algorithm with a 256-bit key length, a 12-byte initialization vector (IV) length, and an additional 16-byte authentication tag to ensure data integrity.

5. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 1 is characterized by: The implementation steps of the electronic signature service include: The security certification agency issues a certificate for the lottery organization's electronic signature. The certificate contains the organization's public key, validity period, and CA signature; Perform block hashing on the electronic certificate file to generate a multi-level summary value which is then merged with the signature information to form an electronic signature that complies with the X.509 standard.

6. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 1, characterized in that: The evidence data of the blockchain evidence storage system includes: Betting stage: electronic voucher hash value, user ID number desensitized data, betting terminal MAC address, operation timestamp; Prize redemption stage: Prize redemption application time, hash value of the prize redeemed voucher, and distributor terminal number form a full-process evidence chain from betting to prize redemption.

7. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 6, characterized in that: The electronic lottery prize redemption process includes: Small and medium prizes (≤ 10,000 yuan): The lottery player's client generates a dynamic redemption code (updated every 60 seconds). A dedicated machine scans and parses the hash value of the electronic voucher. The blockchain evidence storage system is called through a smart contract to perform a hash comparison. If the hash value matches, a redemption instruction is sent to the sales system. After completion, the voucher is stamped with a "redeemed" timestamp. Grand prize (>10,000 yuan): Lottery players bring their electronic vouchers to the provincial lottery center, and staff scan the prize redemption code through a dedicated prize verification terminal. The verification process is the same as for small and medium prizes. After verification, the manual review and prize distribution process will be triggered.

8. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 7, characterized in that: In the hash comparison mechanism, the electronic certificate file generates a 256-bit hash value using the SHA-256 algorithm, and performs a byte-level comparison with the original hash value stored in the blockchain. If there is any inconsistency, the certificate is determined to have been tampered with and the prize will be rejected.

9. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 1, characterized in that: The electronic signature lottery is uniquely linked to the lottery player's identity through the ID number bound when the user registers. The sales system automatically identifies the winning amount when redeeming the prize, and simultaneously triggers the personal income tax withholding module (tax rate 20%) for prizes ≥ 10,000 yuan, and synchronizes the tax information to the tax system.

10. The electronic lottery system based on electronic signature and process data evidence storage technology according to claim 1, characterized in that: The electronic certificate is stored in an encrypted form on the lottery agency's cloud server and is kept for 5 years from the date of redemption. It supports real-time verification of the signature validity and evidence records by entering the certificate number on the official website of the security certification agency.

Citation Information

Cited By

  • Lottery marketing activity processing method and system

    CN121391282A

  • Method and system for improving lottery sales rewarding safety based on encryption processing

    CN121788183A