A full-process welfare voucher issuance method and system based on blockchain technology

Through the combination of alliance chain and certified private chain, the inefficiency, poor data security and information island problems in the traditional welfare issuance system are solved, ensuring user privacy protection and fairness of welfare vouchers, and achieving fair and transparent welfare vouchers Distribution process.

CN118761099BActive Publication Date: 2025-01-03CHENGDU TIANFU CITIZEN CLOUD SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411245205.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-01-03
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

The traditional welfare distribution system has problems with inefficiency, poor data security and information islands, and a single blockchain method can easily lead to the leakage of user personal information during the issuance of welfare vouchers, affecting citizens' privacy protection.

Method used

Using a combination of alliance chain and authentication private chain, information interoperability is achieved through shared authentication nodes. Alliance chain is used for issuance, verification and supervision of welfare vouchers. Authentication private chain is used to store user privacy information. Merchant nodes generate random numbers for welfare. Coupons are issued, and identity verification and user redistribution are carried out through authentication nodes to ensure data security, fairness and justice.

Benefits of technology

It realizes the protection of user privacy data to prevent information leakage. At the same time, the fairness and impartiality of welfare vouchers are ensured through the verification process of merchant nodes, and avoids intervention from users and merchant nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761099B_ABST
    Figure CN118761099B_ABST
Patent Text Reader

Abstract

The present invention discloses a full-process welfare voucher issuance method and system based on blockchain technology, which is applied to the field of intelligent information technology. The method includes: building an alliance chain and an authentication private chain; the user registers the user through an authentication node, and the authentication node assigns the registered user to the user node; when the issuance node issues the welfare voucher, the merchant node generates a random number, the user node issues the welfare voucher to the user, and the merchant node verifies the issuance result; when the welfare voucher is used, the identity is authenticated through the authentication node; after a round of welfare voucher issuance is completed, the authentication node performs user redistribution. The present invention can not only ensure that the user's privacy data will not be leaked, but also ensure that the merchant node and the user node cannot interfere with the issuance process of the welfare voucher through the verification process of the merchant node, thereby ensuring the fairness and justice of the issuance of the welfare voucher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent information technology, and in particular to a full-process welfare voucher distribution method and system based on blockchain technology. Background Art

[0002] The traditional welfare distribution system has problems such as low efficiency and poor data security. For example, residents need to go through cumbersome procedures to apply for welfare, and welfare distribution agencies have difficulty tracking the receipt and verification of welfare. In addition, the traditional system has the problem of information islands, making it difficult to achieve information sharing between different agencies.

[0003] In the prior art, the Chinese patent with application number 202110594011.7 discloses a welfare voucher issuance method and system based on blockchain, which obtains the registration information uploaded by the member, generates a unique member number corresponding to the registration information, and stores the unique member number in the blockchain account book through a smart contract; calculates the class similarity between the welfare voucher issuance scheme to be issued and the historical welfare voucher issuance scheme that has been consumed, obtains the similarity value, and recommends the historical welfare voucher issuance scheme with the similarity within the set similarity range to the member number; after receiving the circulation or consumption request data of the member number, generates a circulation or consumption record, and saves it to the blockchain account book through a smart contract; using blockchain technology to realize the electronicization of welfare vouchers can not only prevent fraud incidents, but also provide merchants with more convenient, autonomous, efficient and low-cost services. However, in the process of welfare voucher issuance, the use of a single blockchain to achieve a fair, transparent and verifiable issuance process can easily cause the leakage of user personal information in the blockchain, which is not conducive to the protection of citizens' privacy. Summary of the invention

[0004] In order to at least overcome the above-mentioned deficiencies in the prior art, the purpose of this application is to provide a full-process welfare voucher issuance method and system based on blockchain technology.

[0005] In the first aspect, the embodiment of the present application provides a full-process welfare voucher issuance method based on blockchain technology, including:

[0006] Constructing a consortium chain and a certified private chain; the consortium chain and the certified private chain share a common certification node, and the nodes of the consortium chain also include a distribution node and a plurality of merchant nodes corresponding to different categories of consumer goods, and the certified private chain also includes a plurality of user nodes corresponding to different categories of consumer goods;

[0007] The user registers the user through the authentication node, and the authentication node assigns the registered user to the user node;

[0008] When the issuing node issues welfare coupons, the merchant node generates a random number, and the user node issues welfare coupons to users who meet the number of welfare coupons assigned to the user node according to the random number, and the merchant node verifies the issuance result;

[0009] When a user uses the coupon at a merchant, the user completes the purchase by identity verification through the authentication node;

[0010] After a round of welfare coupons are issued, the authentication node regenerates the user's registration information and reallocates the user of the user node.

[0011] When the embodiments of the present application are implemented, a consortium chain and a certified private chain are constructed, wherein the consortium chain is formed by the issuing institutions and the merchants who consume the coupons, and its main function is to be used for the issuance, cancellation and supervision of welfare coupons. Since it is connected to a large number of enterprises, the data security will be poor; while the certified private chain is a private chain with better information security, and is suitable for storing user privacy information; the consortium chain and the certified private chain realize information exchange through a shared authentication node, and the authentication node can isolate the information of the consortium chain and the certified private chain through a security gateway. All information exchanges between the consortium chain and the certified private chain require information authentication through a security gateway, and the security gateway belongs to the prior art and is not limited in the embodiments of the present application.

[0012] In an embodiment of the present application, the issuing node of the alliance chain can communicate with issuing institutions, such as banks, digital currency centers and other institutions, and the merchant node can communicate with merchants. In order to facilitate subsequent verification, the merchant nodes are divided according to the category of consumer goods, such as catering, daily necessities and other consumer goods. At this time, there are three merchant nodes, corresponding to catering, daily necessities and other consumer goods, respectively. Merchants of different types of consumer goods can communicate with the corresponding merchant nodes; user nodes need to be divided according to the category of consumer goods like merchant nodes, such as catering, daily necessities and other consumer goods. At this time, there are three user nodes, corresponding to catering, daily necessities and other consumer goods, respectively. Their main function is to extract welfare coupons for users who need welfare coupons of this consumer product type. When allocating, users can be assigned to corresponding user nodes according to the type of consumer goods required by the users when registering.

[0013] In the embodiment of the present application, when the issuing node issues welfare coupons, the merchant node generates a random number. Since the merchant node is in the alliance chain, it cannot obtain the specific registration information of the user, so the process of generating random numbers can be guaranteed to be non-cheating; similarly, the random number is generated by the merchant node, and when the user node issues welfare coupons according to the random number, its issuance algorithm and the verification algorithm of the merchant node need to be consistent; after issuance, the corresponding result will be sent to the alliance chain, and the merchant node will verify the issuance result to ensure that the user node will not cheat; and in the consumption process, the user can consume after identity authentication through the authentication node, and after a round of welfare coupons is issued, since the current user registration information already exists in the alliance chain, the authentication node needs to regenerate the user's registration information in the authentication private chain and reallocate the user, so as to ensure that the merchant node will not cheat when the next round of welfare coupons is issued. The embodiment of the present application uses the above technical solution to not only ensure that the user's privacy data will not be leaked, but also ensure that the merchant node and the user node cannot interfere with the issuance process of welfare coupons through the verification process of the merchant node, thereby ensuring the fairness and justice of the issuance of welfare coupons.

[0014] In a possible implementation, the user registers through the authentication node, and the authentication node assigns the registered user to the user node, including:

[0015] The authentication node obtains the user tag information and identity information provided by the user, generates a unique user ID for the user, and publishes the user tag information, the identity information and the identity array generated by the user ID in the account book of the authentication private chain; the user tag information includes the category of consumer goods selected by the user; the identity information is an ID card number or biometric information;

[0016] The authentication node assigns the user to the user node corresponding to the consumer product category according to the user tag information.

[0017] In a possible implementation, when the issuing node issues welfare coupons, the merchant node generates a random number, the user node issues welfare coupons to users who meet the number of welfare coupons assigned to the user node according to the random number, and the merchant node verifies the issuance result, including:

[0018] When the issuing node issues welfare coupons, the number of welfare coupons corresponding to each consumer product category is obtained and published in the ledger of the alliance chain. Each of the merchant nodes generates a random number and forms a random array with the random number and the corresponding consumer product category and publishes it in the ledger of the alliance chain.

[0019] The authentication node reads the number of welfare coupons from the ledger of the alliance chain and the random number array published in the ledger of the authentication private chain, and the user node reads the random number and the number of welfare coupons in the corresponding random number array;

[0020] The user node issues the welfare coupons to the users who meet the number of welfare coupons allocated to the user node according to the random number, and publishes the user ID of the user who issued the welfare coupons as the selected ID in the account book of the authentication private chain;

[0021] The authentication node reads the selected ID, publishes the selected ID and the user ID in the ledger of the alliance chain, and the merchant node verifies the corresponding selected ID according to the random number.

[0022] In a possible implementation, the user node distributes the welfare coupons to the users who meet the number of welfare coupons allocated to the user node according to the random number, including:

[0023] The user node calculates the remainder of the user ID of the user assigned to the user node and the random number, sorts the user IDs according to the remainders, and selects the user ID that is at the front and meets the number of welfare coupons as the selected ID;

[0024] The welfare coupons are distributed to the users corresponding to the selected IDs.

[0025] In a possible implementation, the merchant node verifies the selected ID corresponding to the random number, including:

[0026] The merchant node reads the selected ID and the user ID corresponding to the consumer product type of the merchant node from the ledger of the alliance chain;

[0027] The merchant node calculates the remainder of the user ID and the random number, sorts the user IDs according to the remainders, and selects the user ID that meets the number of welfare coupons at the front as the verification ID;

[0028] The merchant node completes the verification by comparing the selected ID with the verification ID.

[0029] In a possible implementation, when a user uses the welfare voucher at a merchant, completing the consumption through identity verification by the authentication node includes:

[0030] When the user uses the welfare voucher at a merchant, the user ID is requested through the identity identification information and the user ID is sent to the merchant. The merchant reads the selected ID from the corresponding merchant node and verifies the user ID according to the selected ID;

[0031] After verification, the user uses the welfare voucher to complete the consumption.

[0032] In a possible implementation, the authentication node regenerating the user's registration information and performing user reallocation of the user node includes:

[0033] After a round of welfare coupons are issued, the authentication node randomly reassigns the correspondence between the user ID and the identity identification information in the account book of the authentication private chain to update the identity array, and reallocates the users of the user node according to the identity array.

[0034] In the second aspect, the embodiment of the present application also provides a full-process welfare voucher issuance system based on blockchain technology, including:

[0035] A consortium chain and a certified private chain; the consortium chain and the certified private chain share a common certification node, and the nodes of the consortium chain further include a distribution node and a plurality of merchant nodes corresponding to different categories of consumer goods, and the certified private chain further includes a plurality of user nodes corresponding to different categories of consumer goods;

[0036] The authentication node is configured as:

[0037] Perform user registration and assign the registered user to the user node;

[0038] When the user uses the coupon at a merchant, identity verification is performed to complete the purchase;

[0039] After a round of welfare coupons are issued, the user's registration information is regenerated and the user nodes are redistributed;

[0040] The issuing node is configured as:

[0041] issuing welfare vouchers;

[0042] The merchant node is configured as follows:

[0043] When the issuing node issues welfare coupons, it generates a random number and verifies the issuance result;

[0044] The user node is configured as:

[0045] The welfare coupons are distributed to the users who meet the welfare coupon quantity allocated to the user node according to the random number.

[0046] In a possible implementation, the authentication node is further configured to:

[0047] Obtain user tag information and identity information provided by the user, generate a unique user ID for the user, and publish the user tag information, the identity information and the identity array generated by the user ID in the account book of the authentication private chain; the user tag information includes the category of consumer goods selected by the user; the identity information is an ID card number or biometric information;

[0048] The user is assigned to the user node corresponding to the consumer product category according to the user tag information.

[0049] In a possible implementation, the issuing node is further configured to:

[0050] When issuing welfare coupons, the number of welfare coupons corresponding to each consumer product category is obtained and published in the ledger of the alliance chain. Each merchant node generates a random number and forms a random array with the random number and the corresponding consumer product category and publishes it in the ledger of the alliance chain;

[0051] The authentication node is further configured to:

[0052] Read the number of welfare coupons from the ledger of the alliance chain and the random number array and publish it in the ledger of the authentication private chain;

[0053] The user node is also configured to:

[0054] Read the random number and the number of welfare coupons in the corresponding random array;

[0055] The welfare coupons are issued to the users who meet the number of welfare coupons allocated to the user node according to the random number, and the user ID of the user who issued the welfare coupons is published as the selected ID in the account book of the authentication private chain;

[0056] The authentication node is further configured to:

[0057] The selected ID is read, and the selected ID and the user ID are published in the ledger of the alliance chain. The merchant node verifies the corresponding selected ID according to the random number.

[0058] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0059] The present invention provides a full-process welfare voucher issuance method and system based on blockchain technology. Through the above technical solution, it can not only ensure that the user's privacy data will not be leaked, but also through the verification process of the merchant node, it is ensured that the merchant node and the user node cannot interfere with the issuance process of the welfare voucher, thereby ensuring the fairness and justice of the welfare voucher issuance. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0061] Figure 1 This is a schematic diagram of the steps of the method of the embodiment of the present application;

[0062] Figure 2 This is a schematic diagram of the system architecture of an embodiment of the present application. DETAILED DESCRIPTION

[0063] To make the purpose, technical scheme and advantages of the embodiment of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the embodiment of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0064] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0065] Please refer to Figure 1 , which is a flowchart of a full-process welfare voucher issuance method based on blockchain technology provided by an embodiment of the present invention. The full-process welfare voucher issuance method based on blockchain technology can be applied to Figure 2 A full-process welfare voucher issuance system based on blockchain technology, further, the full-process welfare voucher issuance method based on blockchain technology can specifically include the contents described in the following steps S1-S5.

[0066] S1: Constructing a consortium chain and a certified private chain; the consortium chain and the certified private chain share a common certification node, and the nodes of the consortium chain further include a distribution node and a plurality of merchant nodes corresponding to different categories of consumer goods, and the certified private chain further includes a plurality of user nodes corresponding to different categories of consumer goods;

[0067] S2: The user registers through the authentication node, and the authentication node assigns the registered user to the user node;

[0068] S3: When the issuing node issues welfare coupons, the merchant node generates a random number, and the user node issues welfare coupons to users who meet the number of welfare coupons assigned to the user node according to the random number, and the merchant node verifies the issuance result;

[0069] S4: When the user uses the welfare voucher at a merchant, the user completes the consumption by identity verification through the authentication node;

[0070] S5: After a round of welfare coupons are issued, the authentication node regenerates the user's registration information and reallocates the user of the user node.

[0071] When the embodiments of the present application are implemented, a consortium chain and a certified private chain are constructed, wherein the consortium chain is formed by the issuing institutions and the merchants who consume the coupons, and its main function is to be used for the issuance, cancellation and supervision of welfare coupons. Since it is connected to a large number of enterprises, the data security will be poor; while the certified private chain is a private chain with better information security, and is suitable for storing user privacy information; the consortium chain and the certified private chain realize information exchange through a shared authentication node, and the authentication node can isolate the information of the consortium chain and the certified private chain through a security gateway. All information exchanges between the consortium chain and the certified private chain require information authentication through a security gateway, and the security gateway belongs to the prior art and is not limited in the embodiments of the present application.

[0072] In an embodiment of the present application, the issuing node of the alliance chain can communicate with issuing institutions, such as banks, digital currency centers and other institutions, and the merchant node can communicate with merchants. In order to facilitate subsequent verification, the merchant nodes are divided according to the category of consumer goods, such as catering, daily necessities and other consumer goods. At this time, there are three merchant nodes, corresponding to catering, daily necessities and other consumer goods, respectively. Merchants of different types of consumer goods can communicate with the corresponding merchant nodes; user nodes need to be divided according to the category of consumer goods like merchant nodes, such as catering, daily necessities and other consumer goods. At this time, there are three user nodes, corresponding to catering, daily necessities and other consumer goods, respectively. Their main function is to extract welfare coupons for users who need welfare coupons of this consumer product type. When allocating, users can be assigned to corresponding user nodes according to the type of consumer goods required by the users when registering.

[0073] In the embodiment of the present application, when the issuing node issues welfare coupons, the merchant node generates a random number. Since the merchant node is in the alliance chain, it cannot obtain the specific registration information of the user, so the process of generating random numbers can be guaranteed to be non-cheating; similarly, the random number is generated by the merchant node, and when the user node issues welfare coupons according to the random number, its issuance algorithm and the verification algorithm of the merchant node need to be consistent; after issuance, the corresponding result will be sent to the alliance chain, and the merchant node will verify the issuance result to ensure that the user node will not cheat; and in the consumption process, the user can consume after identity authentication through the authentication node, and after a round of welfare coupons is issued, since the current user registration information already exists in the alliance chain, the authentication node needs to regenerate the user's registration information in the authentication private chain and reallocate the user, so as to ensure that the merchant node will not cheat when the next round of welfare coupons is issued. The embodiment of the present application uses the above technical solution to not only ensure that the user's privacy data will not be leaked, but also ensure that the merchant node and the user node cannot interfere with the issuance process of welfare coupons through the verification process of the merchant node, thereby ensuring the fairness and justice of the issuance of welfare coupons.

[0074] In a possible implementation, the user registers through the authentication node, and the authentication node assigns the registered user to the user node, including:

[0075] The authentication node obtains the user tag information and identity information provided by the user, generates a unique user ID for the user, and publishes the user tag information, the identity information and the identity array generated by the user ID in the account book of the authentication private chain; the user tag information includes the category of consumer goods selected by the user; the identity information is an ID card number or biometric information;

[0076] The authentication node assigns the user to the user node corresponding to the consumer product category according to the user tag information.

[0077] When the embodiment of the present application is implemented, during the user registration process, the user needs to provide user tag information and identity information, where the user tag information can be obtained through a questionnaire given to the user; for example, fill in the type of consumer goods for which the welfare coupon is required: catering, daily necessities and other consumer goods, so that the corresponding user tag information can be assigned according to the user's choice. The identity identification information is the ID card number or biometric information, which is the user's private information. The identity identification information only circulates within the authentication private chain and will not enter the alliance chain; the user ID is the most important information for identity identification within the alliance chain and the authentication private chain, and is also the information used for the subsequent allocation of welfare coupons, so before the merchant node generates a random number, the user ID will not enter the alliance chain.

[0078] In a possible implementation, when the issuing node issues welfare coupons, the merchant node generates a random number, the user node issues welfare coupons to users who meet the number of welfare coupons assigned to the user node according to the random number, and the merchant node verifies the issuance result, including:

[0079] When the issuing node issues welfare coupons, the number of welfare coupons corresponding to each consumer product category is obtained and published in the ledger of the alliance chain. Each of the merchant nodes generates a random number and forms a random array with the random number and the corresponding consumer product category and publishes it in the ledger of the alliance chain.

[0080] The authentication node reads the number of welfare coupons from the ledger of the alliance chain and the random number array published in the ledger of the authentication private chain, and the user node reads the random number and the number of welfare coupons in the corresponding random number array;

[0081] The user node issues the welfare coupons to the users who meet the number of welfare coupons allocated to the user node according to the random number, and publishes the user ID of the user who issued the welfare coupons as the selected ID in the account book of the authentication private chain;

[0082] The authentication node reads the selected ID, publishes the selected ID and the user ID in the ledger of the alliance chain, and the merchant node verifies the corresponding selected ID according to the random number.

[0083] When the embodiment of the present application is implemented, when issuing welfare coupons, the issuing node can obtain the number of welfare coupons corresponding to each category of consumer goods from the issuing agency, and share the information in the alliance chain through the account book of the alliance chain. At this time, the merchant node needs to generate a random number for the subsequent issuance of welfare coupons, and the random number will also share information in the alliance chain through the account book of the alliance chain. After the authentication node obtains the number of welfare coupons and the random number array from the account book of the alliance chain, it is forwarded to the account book of the authentication private chain through the security gateway, shared in the authentication private chain, and read by the user node. The user node can issue welfare coupons according to the random number, and share the issued selected ID in the account book of the authentication private chain. The authentication node publishes both the selected ID and the user ID on the account book of the alliance chain through the security gateway. At this time, the merchant node can know which user IDs have obtained the welfare coupons, and it can verify the welfare coupons through the same verification algorithm as the user node allocation algorithm to ensure that the user node does not cheat in the allocation process and achieve fair distribution.

[0084] In a possible implementation, the user node distributes the welfare coupons to the users who meet the number of welfare coupons allocated to the user node according to the random number, including:

[0085] The user node calculates the remainder of the user ID of the user assigned to the user node and the random number, sorts the user IDs according to the remainders, and selects the user ID that is at the front and meets the number of welfare coupons as the selected ID;

[0086] The welfare coupons are distributed to the users corresponding to the selected IDs.

[0087] When the embodiment of the present application is implemented, the allocation algorithm for distributing welfare coupons adopts the method of taking the remainder of a random number. At this time, the user ID itself needs to be a number or can be converted into a number. This belongs to the prior art and is not limited in the embodiment of the present application. Various sorting methods can be adopted according to the sorting of the remainder, such as sequential sorting and reverse sorting. In this way, fair distribution can be achieved relatively simply and effectively.

[0088] In a possible implementation, the merchant node verifies the selected ID corresponding to the random number, including:

[0089] The merchant node reads the selected ID and the user ID corresponding to the consumer product type of the merchant node from the ledger of the alliance chain;

[0090] The merchant node calculates the remainder of the user ID and the random number, sorts the user IDs according to the remainders, and selects the user ID that meets the number of welfare coupons at the front as the verification ID;

[0091] The merchant node completes the verification by comparing the selected ID with the verification ID.

[0092] When the embodiment of the present application is implemented, the selected ID and user ID are obtained at the merchant node, and the allocation result can be verified by the same verification algorithm as the allocation algorithm.

[0093] In a possible implementation, when a user uses the welfare voucher at a merchant, completing the consumption through identity verification by the authentication node includes:

[0094] When the user uses the welfare voucher at a merchant, the user ID is requested through the identity identification information and the user ID is sent to the merchant. The merchant reads the selected ID from the corresponding merchant node and verifies the user ID according to the selected ID;

[0095] After verification, the user uses the welfare voucher to complete the consumption.

[0096] When the embodiment of the present application is implemented, when using the welfare voucher, the user requests the user ID from the authentication node through his / her own identity identification information, and the merchant requests the selected ID from the merchant node, thereby completing the verification and cancellation of the welfare voucher.

[0097] In a possible implementation, the authentication node regenerating the user's registration information and performing user reallocation of the user node includes:

[0098] After a round of welfare coupons are issued, the authentication node randomly reassigns the correspondence between the user ID and the identity identification information in the account book of the authentication private chain to update the identity array, and reallocates the users of the user node according to the identity array.

[0099] When the embodiment of the present application is implemented, after a round of welfare coupons is issued, the merchant node has learned all user IDs, so it is necessary to re-randomly assign user IDs and identity identification information and update the identity array, and complete the user redistribution of user nodes at the same time. At this time, the merchant node cannot know the updated user ID status, so the next random number generation process cannot cheat.

[0100] Based on the same inventive concept, please refer to Figure 2 The embodiment of the present application also provides a full-process welfare voucher issuance system based on blockchain technology, including:

[0101] A consortium chain and a certified private chain; the consortium chain and the certified private chain share a common certification node, and the nodes of the consortium chain further include a distribution node and a plurality of merchant nodes corresponding to different categories of consumer goods, and the certified private chain further includes a plurality of user nodes corresponding to different categories of consumer goods;

[0102] The authentication node is configured as:

[0103] Perform user registration and assign the registered user to the user node;

[0104] When the user uses the coupon at a merchant, identity verification is performed to complete the purchase;

[0105] After a round of welfare coupons are issued, the user's registration information is regenerated and the user nodes are redistributed;

[0106] The issuing node is configured as:

[0107] issuing welfare vouchers;

[0108] The merchant node is configured as follows:

[0109] When the issuing node issues welfare coupons, it generates a random number and verifies the issuance result;

[0110] The user node is configured as:

[0111] The welfare coupons are distributed to the users who meet the welfare coupon quantity allocated to the user node according to the random number.

[0112] In a possible implementation, the authentication node is further configured to:

[0113] Obtain user tag information and identity information provided by the user, generate a unique user ID for the user, and publish the user tag information, the identity information and the identity array generated by the user ID in the account book of the authentication private chain; the user tag information includes the category of consumer goods selected by the user; the identity information is an ID card number or biometric information;

[0114] The user is assigned to the user node corresponding to the consumer product category according to the user tag information.

[0115] In a possible implementation, the issuing node is further configured to:

[0116] When issuing welfare coupons, the number of welfare coupons corresponding to each consumer product category is obtained and published in the ledger of the alliance chain. Each merchant node generates a random number and forms a random array with the random number and the corresponding consumer product category and publishes it in the ledger of the alliance chain;

[0117] The authentication node is further configured to:

[0118] Read the number of welfare coupons from the ledger of the alliance chain and the random number array and publish it in the ledger of the authentication private chain;

[0119] The user node is also configured to:

[0120] Read the random number and the number of welfare coupons in the corresponding random array;

[0121] The welfare coupons are issued to the users who meet the number of welfare coupons allocated to the user node according to the random number, and the user ID of the user who issued the welfare coupons is published as the selected ID in the account book of the authentication private chain;

[0122] The authentication node is further configured to:

[0123] The selected ID is read, and the selected ID and the user ID are published in the ledger of the alliance chain. The merchant node verifies the corresponding selected ID according to the random number.

[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0125] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0126] The units described as separate components may or may not be physically separated. As units, it is obvious that a person of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0128] If the integrated unit is implemented in the form of 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 the present invention is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a grid device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

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

Claims

1. A full-process welfare voucher distribution method based on blockchain technology, characterized in that: include: Constructing a consortium chain and a certified private chain; the consortium chain and the certified private chain share a common certification node, and the nodes of the consortium chain also include a distribution node and a plurality of merchant nodes corresponding to different categories of consumer goods, and the certified private chain also includes a plurality of user nodes corresponding to different categories of consumer goods; The user registers the user through the authentication node, and the authentication node assigns the registered user to the user node; When the issuing node issues welfare coupons, the merchant node generates a random number, and the user node issues welfare coupons to users who meet the number of welfare coupons assigned to the user node according to the random number, and the merchant node verifies the issuance result; When a user uses the coupon at a merchant, the user completes the purchase by identity verification through the authentication node; After a round of welfare coupons are issued, the authentication node regenerates the user's registration information and reallocates the user of the user node; The user registers through the authentication node, and the authentication node assigns the registered user to the user node, including: the authentication node obtains the user tag information and identity information provided by the user, generates a unique user ID for the user, and publishes the identity array generated by the user tag information, the identity information and the user ID in the account book of the authentication private chain; the user tag information includes the category of consumer goods selected by the user; the identity information is the ID card number or biometric information; The authentication node assigns the user to the user node corresponding to the consumer product category according to the user tag information; When the issuing node issues the welfare coupons, the merchant node generates a random number, and the user node issues the welfare coupons to the user who is assigned to the user node according to the random number and meets the number of welfare coupons, and the merchant node verifies the issuance result, including: when the issuing node issues the welfare coupons, the number of welfare coupons corresponding to each consumer product category is obtained and published in the account book of the alliance chain, and each of the merchant nodes generates a random number and forms a random array with the random number and the corresponding consumer product category and publishes it in the account book of the alliance chain; The authentication node reads the number of welfare coupons from the ledger of the alliance chain and the random number array published in the ledger of the authentication private chain, and the user node reads the random number and the number of welfare coupons in the corresponding random number array; The user node issues the welfare coupons to the users who meet the number of welfare coupons allocated to the user node according to the random number, and publishes the user ID of the user who issued the welfare coupons as the selected ID in the account book of the authentication private chain; The authentication node reads the selected ID, publishes the selected ID and the user ID in the ledger of the alliance chain, and the merchant node verifies the corresponding selected ID according to the random number.

2. According to claim 1, a full-process welfare voucher issuance method based on blockchain technology is characterized in that: The user node distributes the welfare coupons to the users who meet the number of welfare coupons assigned to the user node according to the random number, including: the user node calculates the remainder of the user ID of the user assigned to the user node and the random number, and sorts the user IDs according to the remainder, and selects the user ID that meets the number of welfare coupons at the front as the selected ID; The welfare coupons are distributed to the users corresponding to the selected IDs.

3. According to claim 2, a full-process welfare voucher issuance method based on blockchain technology is characterized in that: The merchant node verifies the corresponding selected ID according to the random number, including: the merchant node reads the selected ID and the user ID corresponding to the consumer product type of the merchant node from the account book of the alliance chain; The merchant node calculates the remainder of the user ID and the random number, sorts the user IDs according to the remainders, and selects the user ID that meets the number of welfare coupons at the front as the verification ID; The merchant node completes the verification by comparing the selected ID with the verification ID.

4. According to claim 1, a full-process welfare voucher issuance method based on blockchain technology is characterized in that: When the user uses the welfare voucher at a merchant, completing the consumption through identity authentication through the authentication node includes: when the user uses the welfare voucher at a merchant, requesting a user ID through the identity identification information, and sending the user ID to the merchant, and the merchant reading the selected ID from the corresponding merchant node and verifying the user ID according to the selected ID; After verification, the user uses the welfare voucher to complete the consumption.

5. According to claim 1, a full-process welfare voucher issuance method based on blockchain technology is characterized in that: The authentication node regenerates the user's registration information and redistributes the user of the user node, including: after a round of welfare coupons are issued, the authentication node randomly redistributes the correspondence between the user ID and the identity identification information in the account book of the authentication private chain, updates the identity array, and redistributes the user of the user node according to the identity array.

6. A full-process welfare voucher distribution system based on blockchain technology, characterized in that: include: A consortium chain and a certified private chain; the consortium chain and the certified private chain share a common certification node, and the nodes of the consortium chain further include a distribution node and a plurality of merchant nodes corresponding to different categories of consumer goods, and the certified private chain further includes a plurality of user nodes corresponding to different categories of consumer goods; The authentication node is configured as: Perform user registration and assign the registered user to the user node; When the user uses the coupon at a merchant, identity verification is performed to complete the purchase; After a round of welfare coupons are issued, the user's registration information is regenerated and the user nodes are redistributed; The issuing node is configured as: issuing welfare vouchers; The merchant node is configured as follows: When the issuing node issues welfare coupons, it generates a random number and verifies the issuance result; The user node is configured as: Distribute the welfare coupons to the users who meet the number of welfare coupons allocated to the user node according to the random number; The authentication node is further configured to: obtain user tag information and identity information provided by the user, generate a unique user ID for the user, and publish the user tag information, the identity information and the identity array generated by the user ID in the ledger of the authentication private chain; the user tag information includes the category of consumer goods selected by the user; the identity information is an ID card number or biometric information; Allocating the user to the user node corresponding to the consumer product category according to the user tag information; The issuing node is further configured to: when issuing welfare coupons, obtain the number of welfare coupons corresponding to each consumer product category and publish it in the ledger of the alliance chain; each of the merchant nodes generates a random number and forms a random array with the random number and the corresponding consumer product category and publishes it in the ledger of the alliance chain; The authentication node is further configured to: Read the number of welfare coupons from the ledger of the alliance chain and the random number array and publish it in the ledger of the authentication private chain; The user node is also configured to: Read the random number and the number of welfare coupons in the corresponding random array; The welfare coupons are issued to the users who meet the number of welfare coupons allocated to the user node according to the random number, and the user ID of the user who issued the welfare coupons is published as the selected ID in the account book of the authentication private chain; The authentication node is further configured to: The selected ID is read, and the selected ID and the user ID are published in the ledger of the alliance chain. The merchant node verifies the corresponding selected ID according to the random number.