Block chain-based activity subsidy system, method and related device

By using blockchain technology in the activity subsidy system, user information is stored in a distributed manner and subsidy data is made transparent and traceable. This solves the problem of data opacity under centralized server management and enhances the trust between consumers and merchants.

CN121961663APending Publication Date: 2026-05-01JIALIAN PAYMENTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
JIALIAN PAYMENTS CO LTD
Filing Date
2025-11-27
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, centralized server management of activity subsidy systems leads to data opacity, making it impossible for consumers and merchants to verify subsidy information, thus triggering a crisis of trust.

Method used

By using blockchain technology, user information is uploaded through the registration and authentication module, transferred to the contract account through the activity creation module, allocated through the activity allocation module, and verified through the activity verification module, thus achieving full transparency and traceability of subsidy data throughout the entire process.

Benefits of technology

It solves the problem of data opacity in traditional systems, enhances consumers' and merchants' trust in the fairness of subsidies, and ensures the efficient and orderly implementation of promotional activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121961663A_ABST
    Figure CN121961663A_ABST
Patent Text Reader

Abstract

The invention discloses an activity subsidy system and method based on a block chain and a related device, which are used for realizing full-process transparency and traceability of activity subsidy data. The method comprises a registration authentication module used for completing registration authentication of a target user and uploading information of the target user to a preset block chain; the activity creation module is used for acquiring an activity rule and an activity budget created by an activity initiator user, and transferring funds of the activity budget into a contract account in a preset block chain as an activity subsidy; the activity transfer module is used for acquiring a consumption record, submitted by the merchant user, of the consumer user, transferring an activity subsidy to a consumer wallet of the consumer user based on the consumption record, generating a subsidy acquisition record and uploading the subsidy acquisition record to a preset block chain; and the activity cancel-after-verification module is used for acquiring an activity cancel-after-verification application initiated by the consumer user, allocating the activity subsidy to the merchant wallet based on the activity cancel-after-verification application, generating a subsidy cancel-after-verification record and uploading the subsidy cancel-after-verification record to the preset block chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information technology, and in particular to a blockchain-based activity subsidy system, method, and related apparatus. Background Technology

[0002] With increasingly fierce market competition, consumers are becoming more cautious in their choices when faced with a dazzling array of goods and services. To attract consumers' attention and encourage purchasing decisions, businesses are launching various promotional activities. These activities not only boost product or service sales in the short term but also help companies build brand image and enhance consumer loyalty. Subsidies, as the foundation of promotional activities, directly impact their success or failure. Effective subsidy strategies can precisely reach the target customer group, stimulate consumer desire, and bring considerable economic benefits and increased market share to businesses. In existing technologies, centralized server technology is typically used to operate promotional subsidy systems. Specifically, businesses or third-party platforms store all subsidy-related data, such as disbursement rules, fund flows, and verification records, on a centralized server. When a consumer participates in a promotional activity, the system retrieves data from the centralized server according to preset rules to determine if the consumer meets the subsidy criteria. If eligible, the subsidy is disbursed according to the established process.

[0003] However, using centralized servers for activity subsidy data management presents a serious problem of data opacity. Since all data is controlled solely by the activity initiator or a third-party platform, consumers and merchants cannot directly verify its authenticity. This leads to situations where, during the subsidy distribution process, errors occur in subsidy calculation, delayed disbursement, or verification anomalies. Consumers and merchants are unaware of the specific details of the subsidies, raising questions about the fairness of the subsidies and reducing their trust in the system, resulting in severe negative consequences. Summary of the Invention

[0004] To address the aforementioned technical issues, this application provides a blockchain-based activity subsidy system, method, and related apparatus.

[0005] The technical solution provided in this application is described below: The first aspect of this application provides a blockchain-based activity subsidy system, the activity subsidy system comprising: The registration and authentication module is used to complete the registration and authentication of target users and upload the information of the registered and authenticated target users to a preset blockchain. The target users include consumer users, merchant users and event initiator users. The activity creation module, connected to the registration and authentication module, is used to obtain the activity rules and activity budget created by the activity initiator user, and transfer the funds of the activity budget corresponding to the activity rules to the contract account in the preset blockchain as activity subsidies; The activity allocation module, connected to the activity creation module, is used to obtain the consumption records of the consumer users submitted by the merchant users, and to allocate the activity subsidies in the contract account to the consumer wallets of the consumer users based on the consumption records, while generating subsidy acquisition records and uploading them to the preset blockchain; The activity verification module, connected to the activity allocation module, is used to obtain the activity verification application initiated by the consumer user, allocate the activity subsidy in the consumer's wallet to the merchant user's merchant wallet based on the activity verification application, and generate a subsidy verification record and upload it to the preset blockchain.

[0006] Optionally, the activity creation module includes: The verification submodule is used to obtain the activity rules and activity budget created by the activity initiator user through a preset smart contract, and to perform a reasonableness verification on the activity rules. The reasonableness verification includes the upper limit verification of the subsidy ratio and the validity verification of the activity time. The preset smart contract includes an activity rule contract, a subsidy calculation contract, a fund transfer contract, and a verification contract. The rule uploading submodule is used to generate the hash value of the activity rule using a preset hash algorithm after the rationality verification is passed, and upload the hash value to the preset blockchain; The subsidy transfer submodule is used to determine the corresponding activity budget funds based on the hash value, and transfer the funds as activity subsidies to the contract account of the preset blockchain.

[0007] Optionally, the activity allocation module is specifically used for: Obtain the consumer's consumption record and the digital signature of the consumption record submitted by the merchant user; Verify that the digital signature is valid; If so, the subsidy amount is calculated based on the activity rules through the preset smart contract, and the activity subsidy in the contract account is transferred to the consumer user's consumer wallet according to the subsidy amount. At the same time, a subsidy acquisition record is generated and uploaded to the preset blockchain.

[0008] Optionally, the activity subsidy system further includes: The contract management module is used to manage the activity rule contract, the subsidy calculation contract, the fund transfer contract, and the verification contract. The report management module is used to query the data records corresponding to the target user and to monitor the data records.

[0009] Optionally, the registration and authentication module includes: The registration submodule is used to obtain the registration information submitted by the target user and complete the registration of the target user based on the registration information, wherein the target user includes consumer users, merchant users and event initiator users; The authentication submodule is used to authenticate the target user who has completed registration and generate a unique user identifier for the target user who has passed the authentication. The information upload submodule is used to associate the user's unique identifier with the corresponding target user and upload it to the preset blockchain.

[0010] Optionally, the authentication submodule is specifically used for: The system authenticates the registered consumer users, merchant users, or event initiator users, and generates a unique user identifier for each authenticated consumer user, merchant user, or event initiator user. The authentication of the registered consumer users, merchant users, or event initiator users includes: When the consumer user completes registration, the consumer user is authenticated through a preset verification method; When the merchant user completes registration, the merchant user's business license, legal representative information, and store address are submitted to the event initiator for review in order to complete the merchant user's authentication. When the user who initiated the event completes registration, the company's qualification certificate is reviewed to complete the user's authentication.

[0011] A second aspect of this application provides a blockchain-based activity subsidy method, the activity subsidy method comprising: Complete the registration and authentication of target users, and upload the information of the registered and authenticated target users to the preset blockchain. The target users include consumer users, merchant users, and event initiator users. Obtain the activity rules and activity budget created by the activity initiator user, and transfer the funds of the activity budget corresponding to the activity rules to the contract account in the preset blockchain as activity subsidies; Obtain the consumption records of the consumer user submitted by the merchant user, and transfer the activity subsidy in the contract account to the consumer user's consumer wallet based on the consumption records, while generating a subsidy acquisition record and uploading it to the preset blockchain; Obtain the activity redemption application initiated by the consumer user, transfer the activity subsidy in the consumer's wallet to the merchant user's merchant wallet based on the activity redemption application, and generate a subsidy redemption record and upload it to the preset blockchain.

[0012] Optionally, the step of transferring the activity subsidy from the consumer's wallet to the merchant user's merchant wallet based on the activity reimbursement application includes: Based on the activity reimbursement application, a preset smart contract verifies whether the remaining amount of the activity subsidy in the consumer's wallet is greater than or equal to the reimbursement amount of the activity reimbursement application, and whether the remaining amount is within the validity period; If so, then obtain the activity rules and the merchant user corresponding to the activity reimbursement application; The preset smart contract verifies whether the merchant user is within the redemption scope of the activity rules; If so, the activity subsidy in the consumer's wallet will be transferred to the merchant user's merchant wallet.

[0013] A third aspect of this application provides a blockchain-based activity subsidy device, the activity subsidy device comprising: Processor, memory, input / output units, and bus; The processor is connected to the memory, the input / output unit, and the bus; The memory stores a program that the processor invokes to execute the second aspect and any optional activity subsidy method within the second aspect.

[0014] The fourth aspect of this application provides a computer-readable storage medium on which a program is stored, which, when executed on a computer, performs the second aspect and any optional activity subsidy method of the second aspect.

[0015] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: This application implements an activity subsidy system based on blockchain, achieving full-process transparency and traceability of subsidy data and overcoming the shortcomings of opaque data in traditional centralized systems. First, a registration and authentication module is set up to complete the registration and authentication of three types of target users: consumers, merchants, and activity initiators. User information is then uploaded to a pre-defined blockchain, breaking the limitation of traditional systems where user information is solely held by the platform. The distributed storage characteristics of blockchain ensure the authenticity and verifiability of user information, providing a foundation for subsequent data transparency. Then, the activity creation module obtains the activity rules and budget from the activity initiator and transfers the activity subsidies to a blockchain contract account, replacing the traditional centralized server storage model. The flow of funds in the contract account is controlled by the blockchain smart contract, preventing unilateral tampering of budget data by the activity initiator or the platform, and ensuring financial transparency. Finally, the activity allocation module, based on the consumption records submitted by merchants, allocates subsidies from contract accounts to consumers' wallets and generates subsidy acquisition records, which are then uploaded to the blockchain. The activity redemption module, based on consumer redemption applications, allocates subsidies to merchants' wallets and uploads redemption records. Both modules achieve real-time data uploading to the blockchain, allowing consumers and merchants to query complete subsidy allocation and redemption records at any time without relying on unilateral notification from the activity initiator or platform, completely resolving the issue of data opacity. This entire solution addresses the trust crisis caused by the lack of data transparency in traditional systems, enhances consumer and merchant trust in the fairness of subsidies, ensures the efficient and orderly implementation of promotional activities, and avoids negative impacts. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A schematic diagram of an embodiment of the blockchain-based activity subsidy system provided in this application; Figure 2 A schematic diagram of the structure of an embodiment of the activity creation module of the blockchain-based activity subsidy system provided in this application; Figure 3 A schematic flowchart of an embodiment of the activity allocation module of the blockchain-based activity subsidy system provided in this application; Figure 4 A schematic diagram illustrating the structure of an embodiment of the contract management module and report management module of the blockchain-based activity subsidy system provided in this application; Figure 5 A schematic diagram of the structure of an embodiment of the registration and authentication module of the blockchain-based activity subsidy system provided in this application; Figure 6 A schematic flowchart of an embodiment of the blockchain-based activity subsidy method provided in this application; Figure 7 A schematic flowchart illustrating an embodiment of the blockchain-based activity subsidy method provided in this application for verifying consumer wallets; Figure 8 A schematic diagram of an embodiment of the blockchain-based activity subsidy device provided in this application. Detailed Implementation

[0018] This application provides a blockchain-based event subsidy system that enables full-process transparency and traceability of event subsidy data.

[0019] It should be noted that the blockchain-based activity subsidy system, device, and related devices provided in this application can be applied to terminals, systems, or servers. For example, a terminal can be a smartphone, computer, tablet, smart TV, smartwatch, portable computer, or a desktop computer, etc. For ease of explanation, this application uses a terminal as the implementing entity for illustration.

[0020] Please see Figure 1 This application first provides an embodiment of a blockchain-based activity subsidy system, which includes: The registration and authentication module 101 is used to complete the registration and authentication of target users and upload the information of the registered and authenticated target users to the preset blockchain. The target users include consumer users, merchant users and event initiator users. The registration and authentication module in this embodiment mainly completes the registration and authentication of three types of target users: consumer users, merchant users, and event initiator users. By leveraging the distributed storage characteristics of blockchain, it breaks the limitation of user information being held solely by the platform in traditional centralized systems. User information is stored synchronously across multiple nodes in the blockchain, and each node can verify the information, ensuring that user information cannot be tampered with by a single entity and remains authentic and verifiable at all times.

[0021] Specifically, the system first receives registration information submitted by various target users. For example, consumer users submit personal identification information, merchant users submit business licenses and other qualification materials, and event organizers submit information such as company qualifications and event registration details. Upon receiving this information, the registration and authentication module verifies its authenticity and validity. Once authentication is successful, the registered and authenticated target user information is uploaded to a pre-defined blockchain.

[0022] The activity creation module 102 is connected to the registration and authentication module. It is used to obtain the activity rules and activity budget created by the activity initiator user, and transfer the funds of the activity budget corresponding to the activity rules to the contract account in the preset blockchain as activity subsidies. In this embodiment, the activity creation module is connected to the registration and authentication module. It mainly utilizes the blockchain smart contract's ability to control contract accounts to ensure that the flow of funds fully complies with the smart contract rules and is not subject to interference from a single entity.

[0023] Specifically, the activity creation module interacts with the registration and authentication module to verify the identity and legitimacy of the activity initiator. After verification, the activity creation module obtains the activity rules set by the activity initiator, such as "a subsidy of 50 yuan is available for purchases over 200 yuan" and "the subsidy is valid for 30 days." It also obtains the activity budget determined by the activity initiator. After obtaining the activity rules and budget, the activity creation module transfers the funds from the activity budget corresponding to the activity rules as activity subsidies to a pre-defined contract account on the blockchain.

[0024] The activity allocation module 103 is connected to the activity creation module. It is used to obtain the consumption records of consumer users submitted by merchant users, and to allocate the activity subsidies in the contract account to the consumer wallet of the consumer user based on the consumption records. At the same time, it generates subsidy acquisition records and uploads them to the preset blockchain. In this embodiment, the activity allocation module is connected to the activity creation module. The accuracy of the allocation is ensured through data interaction and rule verification, and the immutability and traceability of subsidy acquisition records are achieved with the help of blockchain.

[0025] When the activity allocation module and the activity creation module connect their data, the activity allocation module obtains key information such as the created activity rules and the activity subsidies in the contract account to ensure that subsequent allocation operations comply with the activity settings. Next, the activity allocation module receives consumer consumption records submitted by merchant users. These records include detailed information such as consumer identity, consumption amount, and consumption time, for example, "Consumer A spent 300 yuan at Merchant B on November 22, 2010." The activity allocation module verifies the consumption records according to the activity rules to determine whether the consumer's consumption complies with the rules. Subsequently, based on the verification results and the calculated valid subsidy amount, the corresponding activity subsidy in the contract account is allocated to the consumer's wallet. Simultaneously, a subsidy acquisition record containing the consumption record, subsidy amount, allocation time, and consumer and merchant information is generated and uploaded to the preset blockchain in real time.

[0026] The activity redemption module 104 is connected to the activity allocation module. It is used to obtain the activity redemption application initiated by the consumer user, allocate the activity subsidy in the consumer's wallet to the merchant user's merchant wallet based on the activity redemption application, and generate a subsidy redemption record to be uploaded to the preset blockchain.

[0027] In this embodiment, the activity verification module is connected to the activity allocation module. The main purpose is to ensure the rationality of the verification through data linkage between the front and back modules, and to use blockchain to achieve permanent storage and public accessibility of the verification records.

[0028] After the activity redemption module connects with the activity allocation module, it first confirms the consumer's subsidy receipt status, including the redeemable subsidy amount in the consumer's wallet and the subsidy validity period, ensuring that subsequent redemptions are based on valid subsidy amounts. Then, the activity redemption module obtains the activity redemption application initiated by the consumer. The application must include the consumer's identity information, the subsidy amount to be redeemed, and the corresponding merchant information, for example, "Consumer A requests to redeem a 50 yuan subsidy from their wallet to Merchant B."

[0029] When receiving an activity redemption application, the activity redemption module verifies the application to confirm that the consumer's wallet has sufficient redeemable subsidies, the subsidies are still valid, and the merchant information in the application matches the merchant information in previous consumption records. After successful verification, the activity redemption module transfers the corresponding activity subsidy amount from the consumer's wallet to the merchant wallet of the specified merchant user in the application. Simultaneously, it generates a subsidy redemption record containing the redemption amount, consumer and merchant information, redemption time, and application verification result, and uploads this record to the pre-set blockchain in real time.

[0030] This event subsidy system, built on blockchain technology, achieves end-to-end transparency and traceability of subsidy data, overcoming the lack of transparency in traditional centralized systems. First, a registration and authentication module is set up to complete the registration and authentication of three target user groups: consumers, merchants, and event organizers. User information is then uploaded to a pre-defined blockchain, breaking the limitation of traditional systems where user information is solely held by the platform. The distributed storage characteristics of blockchain ensure the authenticity and verifiability of user information, laying the foundation for subsequent data transparency. Then, the event creation module obtains the event organizer's event rules and budget, transferring event subsidies to a blockchain contract account. This replaces the traditional centralized server-based fund storage model. The flow of funds in the contract account is controlled by blockchain smart contracts, preventing unilateral manipulation of budget data by the event organizer or platform, thus ensuring financial transparency. Finally, the activity allocation module, based on the consumption records submitted by merchants, allocates subsidies from contract accounts to consumers' wallets and generates subsidy acquisition records, which are then uploaded to the blockchain. The activity redemption module, based on consumer redemption applications, allocates subsidies to merchants' wallets and uploads redemption records. Both modules achieve real-time data uploading to the blockchain, allowing consumers and merchants to query complete subsidy allocation and redemption records at any time without relying on unilateral notification from the activity initiator or platform, completely resolving the issue of data opacity. This entire solution addresses the trust crisis caused by the lack of data transparency in traditional systems, enhances consumer and merchant trust in the fairness of subsidies, ensures the efficient and orderly implementation of promotional activities, and avoids negative impacts.

[0031] See Figure 2 As shown, Figure 2 A schematic diagram illustrating the structure of an embodiment of the activity creation module of the blockchain-based activity subsidy system provided in this application, the embodiment including: The verification submodule 1021 is used to obtain the activity rules and activity budget created by the activity initiator user through a preset smart contract, and to verify the rationality of the activity rules. The rationality verification includes the upper limit verification of the subsidy ratio and the validity verification of the activity time. The preset smart contracts include the activity rule contract, the subsidy calculation contract, the fund transfer contract, and the reimbursement verification contract. The verification submodule in this embodiment mainly obtains the activity rules and budget created by the activity initiator through a preset smart contract, and performs a reasonableness verification on the activity rules. The preset smart contract includes an activity rule contract, a subsidy calculation contract, a fund transfer contract, and a verification contract, providing a compliance basis for the creation of the activity.

[0032] Specifically, the verification submodule first obtains the activity rules and budget created by the activity initiator through a contract template in a preset smart contract. For example, the activity rules are "Time: 2025.12.5-2025.12.20, Activity: 80 RMB off for every 300 RMB spent", and the activity budget is 150,000 RMB. Then, the verification submodule retrieves the system's preset reasonableness verification standard and performs reasonableness verification on the subsidy ratio limit and the activity time validity rules according to this reasonableness verification standard. After completing the verification, the verification submodule returns the verification result to the activity initiator.

[0033] Furthermore, if the verification result fails, the reason for the failure needs to be returned to the activity initiator; if the verification result passes, the process proceeds to the rule upload submodule.

[0034] The rule upload submodule 1022 is used to generate the hash value of the activity rule using a preset hash algorithm after the rationality verification is passed, and upload the hash value to the preset blockchain; After the verification submodule completes and passes the rationality verification, the hash value of the activity rule is generated and uploaded to the blockchain through the rule upload submodule.

[0035] First, the rule upload submodule confirms the verification result of the validation submodule and synchronously obtains complete activity rule information from the preset smart contract and the activity initiator. Then, the rule upload submodule calls the preset hash algorithm to take the above complete activity rules as input and generate a unique hash value. This hash value is one-way and unique. If any activity rule is modified, the generated hash value will be completely different. Finally, the rule upload submodule associates the generated hash value with the corresponding activity rule and uploads it to the preset blockchain to ensure that the hash value is stored synchronously on multiple nodes and cannot be tampered with by a single entity.

[0036] Subsidy transfer submodule 1023 is used to determine the corresponding activity budget funds based on the hash value and transfer the funds as activity subsidies to the contract account of the preset blockchain.

[0037] The subsidy transfer submodule uses hash values ​​to transfer the corresponding funds to the blockchain contract account, ensuring that the funds are used only for the subsidy distribution of the corresponding activities, and that neither the activity initiator nor the platform has the authority to misappropriate them. At the same time, merchants and consumers can check the fund balance and transaction records of the contract account through the blockchain, and understand the progress of the use of the activity budget in real time, ensuring that the funds are truly in place.

[0038] Specifically, the subsidy transfer submodule obtains the complete activity rules corresponding to the hash value by associating it with the activity rules through the hash value generated by the rule uploading submodule, mainly confirming the activity budget funds and the information of the activity initiator. Subsequently, the subsidy transfer submodule sends a fund transfer instruction to the activity initiator, prompting the activity initiator to transfer the activity budget funds to a pre-set blockchain contract account. This contract account is a smart contract account jointly managed by the activity rules contract and the fund flow contract. After confirming the instruction, the activity initiator will transfer the funds to the contract account, and the subsidy transfer submodule will record the transaction information during the transaction. Finally, the pre-set blockchain verifies the transaction, and after successful verification, the information is synchronized, completing the transfer of subsidy funds.

[0039] See Figure 3 As shown, Figure 3 A schematic flowchart of an embodiment of the activity allocation module of the blockchain-based activity subsidy system provided in this application is shown. This embodiment includes: S101. Obtain the consumer user's consumption records and digital signatures submitted by the merchant user; In this embodiment, the activity allocation module first obtains the consumption records actively submitted by the merchant user. The consumption records include complete consumption information, such as the consumer user ID, consumption amount, consumption time, unique order number, and corresponding activity ID, so as to accurately associate the corresponding activity with the user.

[0040] Simultaneously, the activity allocation module receives the digital signature generated by the merchant for the consumption record. This digital signature is encrypted using the merchant's private key, generated and stored during the registration and authentication phase, and serves to prove the authenticity and legitimacy of the consumption record's source. By simultaneously acquiring the consumption record and digital signature, the problem of unreliable and easily forged consumption records in existing activity subsidy technologies is resolved at its source.

[0041] S102. Verify whether the digital signature is valid; In this embodiment, after obtaining the consumption record and the corresponding digital signature, the validity of the obtained consumption record and the corresponding digital signature is verified to ensure that the consumption record is authentic and has not been tampered with.

[0042] Specifically, the activity allocation module retrieves the public key of the merchant user who submitted the consumption record from the user information storage area of ​​the preset blockchain. This public key was uploaded and stored on the blockchain during the registration and authentication phase. This public key and the private key used by the merchant to generate the digital signature are a key pair using an asymmetric encryption algorithm. The public key can be publicly used to verify the signature. Subsequently, the activity allocation module performs a hash operation on the obtained consumption record to generate the hash value of the current record. At the same time, it uses the retrieved merchant public key to decrypt the submitted digital signature, restoring the hash value calculated by the merchant for the original consumption record when generating the signature. Finally, the hash value calculated by the activity allocation module is compared with the hash value obtained from decrypting the signature. If the two are completely consistent, the digital signature is valid, and step S103 is executed; if the two are inconsistent, the digital signature is invalid, and there is a problem with the consumption record.

[0043] S103. Calculate the subsidy amount through a preset smart contract based on the activity rules, and transfer the activity subsidy in the contract account to the consumer user's consumer wallet according to the subsidy amount. At the same time, generate a subsidy acquisition record and upload it to the preset blockchain.

[0044] Once the digital signature is confirmed to be valid, the activity allocation module retrieves the corresponding activity rules from the preset blockchain based on the activity associated with the consumption record, and calls the subsidy calculation contract in the preset smart contract. Subsequently, the subsidy calculation contract reads the consumption amount in the consumption record, performs logical calculations according to the activity rules, and calculates the subsidy amount to be issued. For example, if 300 yuan meets the condition of "300 minus 80", the calculated subsidy amount is 80 yuan.

[0045] After calculating the subsidy amount, the activity allocation module will also call the fund transfer contract in the preset smart contract to deduct the calculated 80 yuan activity subsidy from the contract account of the preset blockchain, and transfer the funds to the consumer wallet of the consumer user corresponding to the consumption record. At the same time, the subsidy acquisition record is generated in real time and uploaded to the preset blockchain for storage, ensuring that the record is tamper-proof and traceable.

[0046] See Figure 4 As shown, Figure 4 The following is a schematic diagram of an embodiment of the contract management module and report management module included in the blockchain-based activity subsidy system provided in this application. The contract management module and report management module are described in detail below. This embodiment includes: The contract management module 105 is used to manage activity rule contracts, subsidy calculation contracts, fund transfer contracts, and verification contracts. The contract management module in this embodiment mainly manages the entire lifecycle of the activity rule contract, subsidy calculation contract, fund transfer contract and verification contract in the preset smart contracts, avoiding the problems of difficulty in modification after system deployment, high vulnerability risk and easy breakage of historical data.

[0047] The contract management module uses the Solidity language to write various contracts and has built a contract template library based on the blockchain platform. When an event initiator creates an event, the system automatically calls the matching event rule contract template.

[0048] Furthermore, before contract deployment, the contract management module connects with professional auditing tools or third-party institutions to check for vulnerabilities such as reentrancy attacks and integer overflows. For example, it reviews the logic in the subsidy calculation contract where "discount amount = consumption amount × subsidy ratio" to ensure there are no calculation errors. After the review is passed, the contract is deployed to the blockchain. If any contract is found to have a vulnerability or risk, an emergency shutdown command can be initiated through the contract management module to freeze the corresponding contract's fund operation permissions.

[0049] The report management module 106 is used to query the data records corresponding to the target user and to supervise the data records.

[0050] In this embodiment, the report management module assigns permissions to different roles based on an access control list: consumer users can query their own full data records, including consumption records, subsidy acquisition records, subsidy transfer records, and redemption records during activities; merchant users can query information about participating in activities, subsidy redemption revenue records, and related consumption records submitted by consumers; activity initiators can query the overall data of their activities and conduct activity performance analysis through data reports automatically generated by the report management module. Simultaneously, the report management module synchronizes data with the blockchain in real time throughout the process, ensuring that the queried records are consistent with the blockchain and guaranteeing data authenticity.

[0051] See Figure 5 As shown, Figure 5 A schematic diagram of the structure of a registration and authentication module in the blockchain-based activity subsidy system provided in this application is shown below. The registration and authentication module includes: The registration submodule 1011 is used to obtain the registration information submitted by the target user and complete the registration of the target user based on the registration information. The target users include consumer users, merchant users and event initiator users. In this embodiment, the registration submodule sets differentiated registration information collection fields for different types of target users: consumer users submit basic personal information such as mobile phone number and ID card number; merchant users submit business-related information such as business license number, store address, and legal representative contact information; and activity initiator users submit qualification information such as company name, unified social credit code, and company registered address.

[0052] After receiving the information submitted by the target user, the registration submodule first performs a preliminary validation of the information format. For example, it verifies whether the mobile phone number conforms to the 11-digit format and whether the merchant's business license number contains the correct character combination to ensure the integrity and compliance of the information. After the preliminary validation is passed, the registration submodule creates a unique account for the target user and stores the target user's registration information, completing the registration process.

[0053] The authentication submodule 1012 is used to authenticate the target users who have completed registration and generate a unique user identifier for the authenticated target users. In this embodiment, the authentication submodule performs differentiated authentication for different target users. After all types of users pass authentication, the authentication submodule also generates a unique identifier for each target user. For example, the unique identifier for consumer user A is "CONS-001", the unique identifier for merchant user B is "MER-001", and the unique identifier for activity initiator C is "ORG-001". This effectively ensures the authenticity and uniqueness of the target user's identity and avoids the problem of user identity confusion caused by lax identity authentication.

[0054] In an optional embodiment, the authentication submodule is specifically used for: Verify registered consumer users, merchant users, or event organizers, and generate a unique user identifier for each verified consumer user, merchant user, or event organizer. After target users complete registration through the registration submodule, different authentication methods are used for different user types, and a unique identifier is generated for users who pass the authentication. The specific authentication methods are as follows: When a consumer completes registration, the authentication process is completed through a preset verification method: first, a verification code is sent to the mobile phone number reserved by the consumer. After the consumer enters the correct verification code, the ID card photo is compared with the real-time face through facial recognition technology. Once the identity is confirmed to be consistent, the authentication is completed. When a merchant completes registration, the merchant's business license, legal representative information, and store address are submitted to the event organizer for review in order to complete the merchant's certification. The organizer collects scanned copies of the merchant's business license, legal representative's ID information, actual store address, and other materials, compiles them into a review package, and submits it to the event organizer. The event organizer verifies the authenticity of the materials, and once the review is passed, the merchant certification is completed. When an event organizer completes registration, the organizer's company qualification certificate is reviewed to complete the event organizer's authentication: the event organizer submits the company qualification certificate to the system administrator, who manually reviews whether the company has the legal qualifications to launch the event. Once the review is passed, the organizer's authentication is completed.

[0055] The information upload submodule 1013 is used to associate a user's unique identifier with the corresponding target user and upload it to a preset blockchain.

[0056] In this embodiment, the information upload submodule retrieves the complete information of the authenticated target user, and then associates and binds this information with the corresponding generated user unique identifier to form a "unique identifier-user information" correspondence package. For example, "CONS-001" is bound to consumer user A.

[0057] Simultaneously, the information upload submodule also uploads the associated relationship package to the preset blockchain. During the upload process, the information upload submodule utilizes the distributed storage characteristics of blockchain to ensure that the associated data is stored synchronously on multiple nodes, and each node can verify the data, avoiding the risk of data tampering by a single node.

[0058] See Figure 6 As shown, Figure 6 A schematic flowchart of an embodiment of the blockchain-based activity subsidy method provided in this application is shown. This activity subsidy method is applied to, for example... Figures 1 to 5 The activity subsidy system described in the embodiments includes: S201. Complete the registration and authentication of target users, and upload the information of the registered and authenticated target users to the preset blockchain. Target users include consumer users, merchant users, and event initiator users. S202. Obtain the activity rules and activity budget created by the activity initiator user, and transfer the funds of the activity budget corresponding to the activity rules to the contract account in the preset blockchain as activity subsidies; S203. Obtain the consumption records of consumer users submitted by merchant users, and transfer the activity subsidies in the contract account to the consumer wallet of the consumer user based on the consumption records, while generating subsidy acquisition records and uploading them to the preset blockchain; S204. Obtain the activity redemption application initiated by the consumer user, transfer the activity subsidy in the consumer's wallet to the merchant user's merchant wallet based on the activity redemption application, and generate a subsidy redemption record and upload it to the preset blockchain.

[0059] For detailed implementation methods, please refer to [link / reference]. Figures 1 to 5 Examples are not detailed here.

[0060] In step S204 above, during the process of transferring the activity subsidy from the consumer's wallet to the merchant's wallet, the consumer's wallet needs to be verified. Please refer to [link / reference needed]. Figure 7 , Figure 7An embodiment of the blockchain-based activity subsidy method provided in this application for verifying consumer wallets includes: S301. Based on the activity redemption application, verify through a preset smart contract whether the remaining amount of the activity subsidy in the consumer's wallet is greater than or equal to the redemption amount of the activity redemption application, and whether the remaining amount is within the validity period. In this embodiment, the system first receives an activity redemption application submitted by a consumer user. Then, based on the application, a preset smart contract is invoked. The smart contract retrieves the remaining subsidy amount and the subsidy validity period for the consumer user under the corresponding activity. Subsequently, the smart contract automatically compares the remaining amount with the redemption amount and compares the current system time with the subsidy validity period within a specified time range.

[0061] If the remaining amount of the activity subsidy in the consumer's wallet is greater than or equal to the redemption amount of the redemption application, and the remaining amount is within the validity period, then proceed to step S302; if any one of these conditions is not met, then the verification fails.

[0062] S302. Obtain the activity rules and merchant users corresponding to the activity verification application; Once the preset smart contract confirms successful verification, the activity rules corresponding to the activity verification application are retrieved from the preset blockchain, along with the detailed information of the corresponding merchant user, providing data support for subsequent verification steps.

[0063] S303. Verify whether merchant users are within the redemption scope of the activity rules through a preset smart contract; In this embodiment, a pre-defined smart contract determines the redemption scope conditions from the activity rules. These conditions may include geographical restrictions, merchant type restrictions, and a whitelist of partner merchants. Subsequently, the pre-defined smart contract extracts the corresponding information of the merchant user for comparison. For example, if the rule restricts the merchant type to "Beijing Chaoyang District," the contract compares whether the merchant's registered address belongs to that area; if the merchant type is restricted to "retail," the contract compares whether the merchant type matches; if the rule includes a whitelist of partner merchants, the contract checks whether the merchant's identifier is on the whitelist.

[0064] If the smart contract verifies that the merchant user is within the redemption scope of the activity rules, then step S304 is executed; if the smart contract verifies that the merchant user is not within the redemption scope of the activity rules, then redemption is not possible.

[0065] S304. Transfer the activity subsidy in the consumer's wallet to the merchant's wallet.

[0066] When a merchant user is within the redemption range of the activity rules, the activity subsidy equal to the redemption amount will be deducted from the consumer's wallet. During the deduction process, the wallet will be automatically verified through a preset smart contract to further confirm whether the balance still meets the deduction requirements.

[0067] After successful deduction, the deducted activity subsidy will be automatically transferred to the merchant's wallet, and a subsidy redemption transaction record will be generated. The record includes information such as the redemption amount, activity ID, and transfer time for both the consumer and merchant users.

[0068] This application also provides a blockchain-based activity subsidy device; please refer to [link / reference]. Figure 8 , Figure 8 One embodiment of the blockchain-based activity subsidy device provided in this application includes: Processor 801, memory 802, input / output unit 803, bus 804; The processor 801 is connected to the memory 802, the input / output unit 803, and the bus 804; The memory 802 stores a program, and the processor 801 calls the program to execute any of the above-mentioned activity subsidy methods.

[0069] This application also relates to a computer-readable storage medium storing a program, characterized in that, when the program is run on a computer, it causes the computer to perform any of the above-mentioned activity subsidy methods.

[0070] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0071] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0072] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0073] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0074] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A blockchain-based activity subsidy system, characterized in that, include: The registration and authentication module is used to complete the registration and authentication of target users and upload the information of the registered and authenticated target users to a preset blockchain. The target users include consumer users, merchant users and event initiator users. The activity creation module, connected to the registration and authentication module, is used to obtain the activity rules and activity budget created by the activity initiator user, and transfer the funds of the activity budget corresponding to the activity rules to the contract account in the preset blockchain as activity subsidies; The activity allocation module, connected to the activity creation module, is used to obtain the consumption records of the consumer users submitted by the merchant users, and to allocate the activity subsidies in the contract account to the consumer wallets of the consumer users based on the consumption records, while generating subsidy acquisition records and uploading them to the preset blockchain; The activity verification module, connected to the activity allocation module, is used to obtain the activity verification application initiated by the consumer user, allocate the activity subsidy in the consumer's wallet to the merchant user's merchant wallet based on the activity verification application, and generate a subsidy verification record and upload it to the preset blockchain.

2. The activity subsidy system according to claim 1, characterized in that, The activity creation module includes: The verification submodule is used to obtain the activity rules and activity budget created by the activity initiator user through a preset smart contract, and to perform a reasonableness verification on the activity rules. The reasonableness verification includes the upper limit verification of the subsidy ratio and the validity verification of the activity time. The preset smart contract includes an activity rule contract, a subsidy calculation contract, a fund transfer contract, and a verification contract. The rule uploading submodule is used to generate the hash value of the activity rule using a preset hash algorithm after the rationality verification is passed, and upload the hash value to the preset blockchain; The subsidy transfer submodule is used to determine the corresponding activity budget funds based on the hash value, and transfer the funds as activity subsidies to the contract account of the preset blockchain.

3. The activity subsidy system according to claim 2, characterized in that, The activity allocation module is specifically used for: Obtain the consumer's consumption record and the digital signature of the consumption record submitted by the merchant user; Verify that the digital signature is valid; If so, the subsidy amount is calculated based on the activity rules through the preset smart contract, and the activity subsidy in the contract account is transferred to the consumer user's consumer wallet according to the subsidy amount. At the same time, a subsidy acquisition record is generated and uploaded to the preset blockchain.

4. The activity subsidy system according to claim 3, characterized in that, The activity subsidy system also includes: The contract management module is used to manage the activity rule contract, the subsidy calculation contract, the fund transfer contract, and the verification contract. The report management module is used to query the data records corresponding to the target user and to monitor the data records.

5. The activity subsidy system according to any one of claims 1 to 4, characterized in that, The registration and authentication module includes: The registration submodule is used to obtain the registration information submitted by the target user and complete the registration of the target user based on the registration information, wherein the target user includes consumer users, merchant users and event initiator users; The authentication submodule is used to authenticate the target user who has completed registration and generate a unique user identifier for the target user who has passed the authentication. The information upload submodule is used to associate the user's unique identifier with the corresponding target user and upload it to the preset blockchain.

6. The activity subsidy system according to claim 5, characterized in that, The authentication submodule is specifically used for: The system authenticates the registered consumer users, merchant users, or event initiator users, and generates a unique user identifier for each authenticated consumer user, merchant user, or event initiator user. The authentication of the registered consumer users, merchant users, or event initiator users includes: When the consumer user completes registration, the consumer user is authenticated through a preset verification method; When the merchant user completes registration, the merchant user's business license, legal representative information, and store address are submitted to the event initiator for review in order to complete the merchant user's authentication. When the user who initiated the event completes registration, the company's qualification certificate is reviewed to complete the user's authentication.

7. A blockchain-based activity subsidy method, characterized in that, include: Complete the registration and authentication of target users, and upload the information of the registered and authenticated target users to the preset blockchain. The target users include consumer users, merchant users, and event initiator users. Obtain the activity rules and activity budget created by the activity initiator user, and transfer the funds of the activity budget corresponding to the activity rules to the contract account in the preset blockchain as activity subsidies; Obtain the consumption records of the consumer user submitted by the merchant user, and transfer the activity subsidy in the contract account to the consumer user's consumer wallet based on the consumption records, while generating a subsidy acquisition record and uploading it to the preset blockchain; Obtain the activity redemption application initiated by the consumer user, transfer the activity subsidy in the consumer's wallet to the merchant user's merchant wallet based on the activity redemption application, and generate a subsidy redemption record and upload it to the preset blockchain.

8. The activity subsidy method according to claim 7, characterized in that, The step of transferring the activity subsidy from the consumer's wallet to the merchant's wallet based on the activity reimbursement application includes: Based on the activity reimbursement application, a preset smart contract verifies whether the remaining amount of the activity subsidy in the consumer's wallet is greater than or equal to the reimbursement amount of the activity reimbursement application, and whether the remaining amount is within the validity period; If so, then obtain the activity rules and the merchant user corresponding to the activity reimbursement application; The preset smart contract verifies whether the merchant user is within the redemption scope of the activity rules; If so, the activity subsidy in the consumer's wallet will be transferred to the merchant user's merchant wallet.

9. A blockchain-based activity subsidy device, characterized in that, include: Processor, memory, input / output units, and bus; The processor is connected to the memory, the input / output unit, and the bus; The memory stores a program that the processor invokes to perform the activity subsidy method as described in any one of claims 7 to 8.

10. A computer-readable storage medium having a program stored thereon, the program performing the activity subsidy method as described in any one of claims 7 to 8 when executed on a computer.