Red envelope circulation method and device based on blockchain
By adopting blockchain technology in the red envelope circulation system, storing red envelope data and locking payment accounts, the problems of data security and transaction efficiency in red envelope circulation are solved, and the secure storage of red envelope information and the traceability of transactions are realized.
Patent Information
- Application Number
- CN202110594783.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2041-05-28
AI Technical Summary
In the prior art, the processes such as issuance, collection, use and verification of red envelopes have problems with data security and transaction efficiency, especially in fund transactions, where there is a risk of red envelope information leakage, theft, spoiling and denomination modification.
The blockchain-based red envelope circulation method is adopted to store red envelope data to the blockchain and lock the payment account to achieve secure storage of red envelopes and guarantee funds. The method includes responding to the red envelope issuance request, sending red envelope issuance instructions, storing the red envelope amount, checking the payment instructions, and storing the payment records on the blockchain.
It improves the data security and transaction efficiency of red envelopes in each circulation link, ensures the immutability of red envelope information and the traceability of transactions, and reduces the risk of red envelope information leakage and theft.
Smart Images

Figure CN113205323B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a red envelope circulation method and device based on blockchain. Background Art
[0002] In order to attract users and strengthen user dependence, Internet companies now launch many user marketing activities, including but not limited to grabbing red envelopes, bonuses, gold coins, stamps, etc. In marketing activities, there are relatively long transaction processes such as the issuance, receipt, use, and cancellation of red envelopes, which involve financial transactions. They are only verified through some business primary keys and technical primary keys set by their own systems. There are risks of red envelope information leakage, theft, fraud, and modification of red envelope denominations in each link. Summary of the invention
[0003] In view of the problems in the prior art, the present invention provides a red envelope circulation method and device based on blockchain, which specifically includes the following technical solutions:
[0004] In a first aspect, the present invention provides a red envelope circulation method based on blockchain, comprising:
[0005] In response to the obtained red envelope issuance request information, the red envelope data in the red envelope issuance request information is stored on the blockchain and the payment account used to provide the red envelope funds in the red envelope issuance request information is locked; the red envelope data includes: red envelope sending method, red envelope validity period and payment account;
[0006] Based on the red envelope sending method, a red envelope issuing instruction containing the red envelope validity period is sent to the target user, and a receiving instruction from the target user in response to the red envelope issuing instruction is received; the receiving instruction contains the denomination of the red envelope received by the target user;
[0007] The red envelope denomination received by the target user is stored on the blockchain;
[0008] Responding to the red envelope payment instruction sent by the target user and verifying the red envelope payment denomination in the red envelope payment instruction; the red envelope payment instruction includes the red envelope payment denomination and the transaction party;
[0009] After verification, the amount of the red envelope payment denomination is paid to the transaction party through the payment account, and the payment record is stored on the blockchain.
[0010] Furthermore, before responding to the acquired red envelope distribution request information, it also includes:
[0011] A blockchain is established to store red envelope information and mandatory elements for red envelope distribution are set; wherein the mandatory elements include at least the red envelope sending method, the red envelope validity period and the payment account.
[0012] Furthermore, after storing the red envelope denomination received by the target user on the blockchain, it also includes:
[0013] The blockchain mark of the red envelope denomination received by the target user on the blockchain is sent to the target user; wherein, the blockchain mark is used by the target user to verify the local denomination data and the denomination data on the blockchain.
[0014] Furthermore, after the payment record is stored on the blockchain, the method further includes:
[0015] The red envelope status corresponding to the target user on the blockchain is marked as used.
[0016] In a second aspect, the present invention provides a red envelope circulation device based on blockchain, comprising:
[0017] A request module, configured to respond to the obtained red envelope issuance request information, store the red envelope data in the red envelope issuance request information on the blockchain and lock the payment account used to provide the red envelope funds in the red envelope issuance request information; the red envelope data includes: red envelope sending method, red envelope validity period and payment account;
[0018] The issuing module is used to send a red envelope issuing instruction containing the validity period of the red envelope to the target user based on the red envelope sending method and receive a receiving instruction from the target user in response to the red envelope issuing instruction; the receiving instruction contains the denomination of the red envelope received by the target user;
[0019] A storage module, used to store the red envelope denomination received by the target user on the blockchain;
[0020] A checking module, used to respond to the red envelope payment instruction sent by the target user and check the red envelope payment denomination in the red envelope payment instruction; the red envelope payment instruction includes the red envelope payment denomination and the transaction party;
[0021] The payment module is used to pay the red envelope payment denomination to the transaction party through the payment account after verification, and store the payment record on the blockchain.
[0022] Furthermore, it also includes:
[0023] The initial module is used to establish a blockchain for storing red envelope information and set the required elements for red envelope distribution; wherein the required elements at least include the red envelope sending method, the red envelope validity period and the payment account.
[0024] Furthermore, it also includes:
[0025] A marking module is used to send the blockchain mark of the red envelope denomination received by the target user on the blockchain to the target user; wherein the blockchain mark is used by the target user to verify the local denomination data and the denomination data on the blockchain.
[0026] Furthermore, it also includes:
[0027] The marking module is used to mark the red envelope status corresponding to the target user on the blockchain as used.
[0028] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain-based red envelope circulation method when executing the program.
[0029] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the blockchain-based red envelope circulation method.
[0030] It can be seen from the above technical scheme that the present invention provides a red envelope circulation method and device based on blockchain, which stores the red envelope data in the red envelope issuance request information on the blockchain and locks the payment account used to provide red envelope funds in the red envelope issuance request information in response to the acquired red envelope issuance request information; sends a red envelope issuance instruction containing the validity period of the red envelope to the target user based on the red envelope sending method and receives the target user's receipt instruction in response to the red envelope issuance instruction; stores the red envelope denomination received by the target user on the blockchain; responds to the red envelope payment instruction sent by the target user and verifies the red envelope payment denomination in the red envelope payment instruction; after verification, pays the amount of the red envelope payment denomination to the transaction party through the payment account, and stores the payment record on the blockchain. It can improve the data security in each circulation link of the red envelope and the efficient traceability of the transaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 This is a first flow chart of a blockchain-based red envelope circulation method in an embodiment of the present invention.
[0033] Figure 2 This is a second flow chart of the blockchain-based red envelope circulation method in an embodiment of the present invention.
[0034] Figure 3 This is a third flow chart of the blockchain-based red envelope circulation method in an embodiment of the present invention.
[0035] Figure 4 This is a fourth flow chart of the blockchain-based red envelope circulation method in an embodiment of the present invention.
[0036] Figure 5 This is a first structural schematic diagram of a blockchain-based red envelope circulation device in an embodiment of the present invention.
[0037] Figure 6 This is a second structural schematic diagram of the blockchain-based red envelope circulation device in an embodiment of the present invention.
[0038] Figure 7 This is a third structural schematic diagram of the blockchain-based red envelope circulation device in an embodiment of the present invention.
[0039] Figure 8 A fourth structural schematic diagram of the blockchain-based red envelope circulation device in an embodiment of the present invention.
[0040] Fig. 9 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The present invention provides an embodiment of a red envelope circulation method based on blockchain, see Figure 1 The blockchain-based red envelope circulation method specifically includes the following contents:
[0043] In a first aspect, the present invention provides a red envelope circulation method based on blockchain, comprising:
[0044] S101: In response to the obtained red envelope issuance request information, the red envelope data in the red envelope issuance request information is stored in the blockchain and the payment account used to provide the red envelope funds in the red envelope issuance request information is locked; the red envelope data includes: red envelope sending method, red envelope validity period and payment account;
[0045] In this step, the entity that needs to take marketing action sends a red envelope request message, where the red envelope request message includes the red envelope sending method (random amount or equivalent amount), the red envelope validity period, the number of red envelopes, the total amount and the payment account. The red envelope's unalterable information (such as denomination, validity period, etc.) is written into the blockchain, and the account balance in the payment account is locked. It should be noted that the locked account balance is at least greater than the total amount of the red envelope.
[0046] S102: sending a red envelope issuing instruction containing the validity period of the red envelope to the target user based on the red envelope sending method and receiving a receiving instruction from the target user in response to the red envelope issuing instruction; the receiving instruction contains the denomination of the red envelope received by the target user;
[0047] In this step, the target user is the user who meets the preset requirements. The red envelopes are randomly distributed to the users who meet the requirements. The users receive the red envelopes and get the denomination of the red envelopes. The user uploads the receiving instructions to clarify the denomination of the red envelopes received in his own field.
[0048] S103: Storing the red envelope denomination received by the target user on the blockchain;
[0049] S104: responding to the red envelope payment instruction sent by the target user and verifying the red envelope payment denomination in the red envelope payment instruction; the red envelope payment instruction includes the red envelope payment denomination and the transaction party;
[0050] In this step, the target user uses the red envelope to make a full or partial payment transaction. That is, the target user sends a red envelope payment instruction and responds to the payment instruction. The red envelope payment denomination in the red envelope payment instruction is checked to determine whether the red envelope payment denomination is less than or equal to the red envelope denomination held by the target user, and whether the validity period of the red envelope is within the preset time period and whether the usage status meets the preset scenario.
[0051] S105: After verification, the amount of the red envelope payment denomination is paid to the transaction party through the payment account, and the payment record is stored on the blockchain.
[0052] In this step, after the review is passed, the amount of the red envelope payment denomination is paid to the transaction party through the payment account and the red envelope is written off.
[0053] From the above description, it can be seen that the blockchain-based red envelope circulation method provided by the embodiment of the present invention stores the red envelope data in the red envelope issuance request information on the blockchain and locks the payment account used to provide red envelope funds in the red envelope issuance request information in response to the acquired red envelope issuance request information; sends a red envelope issuance instruction containing the validity period of the red envelope to the target user based on the red envelope sending method and receives the target user's receipt instruction in response to the red envelope issuance instruction; stores the red envelope denomination received by the target user on the blockchain; responds to the red envelope payment instruction sent by the target user and verifies the red envelope payment denomination in the red envelope payment instruction; after verification, pays the amount of the red envelope payment denomination to the transaction party through the payment account, and stores the payment record on the blockchain. It can improve the data security in each circulation link of the red envelope and the efficient traceability of the transaction.
[0054] In one embodiment of the present invention, see Figure 2 In the red envelope circulation method based on blockchain, see Figure 2 The specific contents include:
[0055] S100: Establish a blockchain for storing red envelope information and set mandatory elements for red envelope distribution; wherein the mandatory elements at least include the red envelope sending method, the red envelope validity period and the payment account.
[0056] In this step, users are gathered into a group to generate a red envelope group. A blockchain is established to specify the number of red envelopes, the method of sending red envelopes, the validity period of red envelopes, and the payment account. Before conducting red envelope marketing, data corresponding to the required elements must be obtained.
[0057] In one embodiment of the present invention, see Figure 3 The blockchain-based red envelope circulation method specifically includes the following contents:
[0058] S106: Send the blockchain mark of the red envelope denomination received by the target user on the blockchain to the target user; wherein, the blockchain mark is used by the target user to verify the local denomination data and the denomination data on the blockchain.
[0059] In this step, the target user verifies the local denomination data and the denomination data on the blockchain through the blockchain mark.
[0060] The blockchain is regarded as a shared database of red envelope transactions, which records each process of red envelopes in the form of blockchain transactions. The tamper-proof nature of blockchain makes it easier to supervise, track and count the issuance and use of red envelopes.
[0061] In one embodiment of the present invention, see Figure 4 The blockchain-based red envelope circulation method specifically includes the following contents:
[0062] S107: Mark the red envelope status corresponding to the target user on the blockchain as used.
[0063] In this step, the status of the red envelope is set to be marked as used, which makes it easier to supervise, track and count the issuance and use of the red envelope.
[0064] To further illustrate this solution, the present invention provides a full-process embodiment of a red envelope circulation method based on blockchain, and the red envelope circulation method based on blockchain specifically includes the following contents:
[0065] The interactive entities involved in red envelope marketing activities mainly include users, marketing systems, and transaction parties. The following is a brief description of the roles played by each entity.
[0066] Entity 101: The user is the initiator of receiving and using the red envelope; the user can own the red envelope by receiving it.
[0067] Entity 102: The marketing system is responsible for generating, distributing, and redeeming red envelopes, and is the overall initiator of red envelope marketing activities.
[0068] Entity 103: The transaction party refers to a legally established financial institution, which in the present invention is the receiving bank that verifies the red envelope.
[0069] Entity 104: The advance account refers to the supply account corresponding to the red envelope, which provides all the red envelope funds. When the user uses the red envelope, the account will use money to offset the red envelope and pay it to the transaction party.
[0070] Entity 105: Blockchain. In the present invention, the blockchain is regarded as a red envelope transaction data sharing database, which records the red envelope usage transaction information in the form of blockchain transactions.
[0071] The whole process of the red envelope circulation method based on blockchain includes the following steps:
[0072] Step 1): Red envelope generation: Entity 102 generates a red envelope group, establishes a blockchain, specifies the number of red envelopes, validity period, denomination category, red envelope status, etc., writes the red envelope's tamper-proof information such as red envelope ID, denomination, validity period, etc. into the blockchain, and locks the account balance in entity 104.
[0073] Step 2): Red envelope distribution: Entity 102 actively and randomly distributes red envelopes to users who meet the requirements.
[0074] Step 3): Red envelope collection: Entity 101 collects the red envelope pushed by entity 102 or collects the red envelope through other methods such as page clicks.
[0075] Step 4): Red envelope usage: Entity 101 uses the red envelope to perform payment transactions in full or in part (e.g., buying a bag of rice for 100 yuan, of which 10 yuan is paid by red envelope and 90 yuan is paid by one's own bank card).
[0076] Step 5): Red envelope verification: After the payment transaction of entity 101 reaches entity 102, entity 102 verifies the blockchain logo in the red envelope information sent by entity 101 to ensure that the blockchain information is consistent with expectations, and verifies the amount, status, validity period, etc. of the red envelope. After the verification is passed, entity 104 takes out the amount corresponding to the face value of the red envelope and pays it to entity 103, and sets the status of the red envelope to used and other relevant information.
[0077] It should be noted that the blockchain is regarded as a shared database for red envelope transactions. It not only records the first five steps of the red envelope in the form of blockchain transactions, but also makes it easier to supervise, track and count the issuance and use of red envelopes due to its tamper-proof nature.
[0078] From the above description, it can be seen that blockchain technology is used to embed the decentralization, tamper-proof, open and transparent characteristics of blockchain into each circulation link of the physical red envelopes of marketing activities, so that data can be shared safely, transactions can be traced efficiently, and the security requirements of non-tamperability of various attributes of red envelopes in user marketing are met.
[0079] The embodiment of the present invention provides a specific implementation of a blockchain-based red envelope circulation device that can implement all the contents of the blockchain-based red envelope circulation method, see Figure 5 The blockchain-based red envelope circulation device specifically includes the following contents:
[0080] The request module 10 is used to store the red envelope data in the red envelope issuance request information on the blockchain and lock the payment account used to provide the red envelope funds in the red envelope issuance request information in response to the obtained red envelope issuance request information; the red envelope data includes: red envelope sending method, red envelope validity period and payment account;
[0081] The issuing module 20 is used to send a red envelope issuing instruction containing the validity period of the red envelope to the target user based on the red envelope sending method and receive a receiving instruction from the target user in response to the red envelope issuing instruction; the receiving instruction contains the denomination of the red envelope received by the target user;
[0082] The storage module 30 is used to store the red envelope denomination received by the target user on the blockchain;
[0083] A checking module 40, for responding to the red envelope payment instruction sent by the target user and checking the red envelope payment denomination in the red envelope payment instruction; the red envelope payment instruction includes the red envelope payment denomination and the transaction party;
[0084] The payment module 50 is used to pay the amount of the red envelope payment denomination to the transaction party through the payment account after verification, and store the payment record on the blockchain.
[0085] In one embodiment of the present invention, see Figure 6 The blockchain-based red envelope circulation device specifically includes the following contents:
[0086] The initial module 60 is used to establish a blockchain for storing red envelope information and set the required elements for red envelope distribution; wherein the required elements at least include the red envelope sending method, the red envelope validity period and the payment account.
[0087] In one embodiment of the present invention, see Figure 7 The blockchain-based red envelope circulation device specifically includes the following contents:
[0088] The marking module 70 is used to send the blockchain mark of the red envelope denomination received by the target user on the blockchain to the target user; wherein, the blockchain mark is used by the target user to verify the local denomination data and the denomination data on the blockchain.
[0089] In one embodiment of the present invention, see Figure 8 The blockchain-based red envelope circulation device specifically includes the following contents:
[0090] The marking module 80 is used to mark the red envelope status corresponding to the target user on the blockchain as used.
[0091] The embodiment of the blockchain-based red envelope circulation device provided by the present invention can be specifically used to execute the processing flow of the embodiment of the blockchain-based red envelope circulation method in the above-mentioned embodiment. Its functions will not be repeated here, and reference can be made to the detailed description of the above-mentioned method embodiment.
[0092] From the above description, it can be known that the blockchain-based red envelope circulation device provided by the embodiment of the present invention, by responding to the obtained red envelope issuance request information, stores the red envelope data in the red envelope issuance request information on the blockchain and locks the payment account used to provide red envelope funds in the red envelope issuance request information; sends a red envelope issuance instruction containing the red envelope validity period to the target user based on the red envelope sending method and receives the target user's receipt instruction in response to the red envelope issuance instruction; stores the red envelope denomination received by the target user on the blockchain; responds to the red envelope payment instruction sent by the target user and verifies the red envelope payment denomination in the red envelope payment instruction; after verification, pays the amount of the red envelope payment denomination to the transaction party through the payment account, and stores the payment record on the blockchain. It can improve the data security in each circulation link of the red envelope and the efficient traceability of the transaction.
[0093] The present application provides an embodiment of an electronic device for implementing all or part of the content of the blockchain-based red envelope circulation method. The electronic device specifically includes the following content:
[0094] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between related devices; the electronic device can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the electronic device can be implemented with reference to the embodiment for realizing the red envelope circulation method based on blockchain and the embodiment for realizing the red envelope circulation device based on blockchain, and the contents thereof are incorporated herein, and the repeated parts are not repeated.
[0095] Fig. 9 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig. 9 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig. 9 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0096] In one embodiment, the blockchain-based red envelope circulation function can be integrated into the central processor 9100.
[0097] The CPU 9100 may be configured to perform the following control:
[0098] In response to the acquired red envelope issuance request information, the red envelope data in the red envelope issuance request information is stored on the blockchain and the payment account used to provide the red envelope funds in the red envelope issuance request information is locked; based on the red envelope sending method, a red envelope issuance instruction containing a red envelope validity period is sent to the target user and a receiving instruction from the target user in response to the red envelope issuance instruction is received; the denomination of the red envelope received by the target user is stored on the blockchain; the red envelope payment instruction sent by the target user is responded to and the red envelope payment denomination in the red envelope payment instruction is verified; after the verification is passed, the amount of the red envelope payment denomination is paid to the transaction party through the payment account, and the payment record is stored on the blockchain.
[0099] From the above description, it can be seen that the electronic device provided by the embodiment of the present application, by responding to the obtained red envelope issuance request information, stores the red envelope data in the red envelope issuance request information on the blockchain and locks the payment account used to provide the red envelope funds in the red envelope issuance request information; sends a red envelope issuance instruction containing the red envelope validity period to the target user based on the red envelope sending method and receives the target user's receipt instruction in response to the red envelope issuance instruction; stores the red envelope denomination received by the target user on the blockchain; responds to the red envelope payment instruction sent by the target user and verifies the red envelope payment denomination in the red envelope payment instruction; after verification, pays the amount of the red envelope payment denomination to the transaction party through the payment account, and stores the payment record on the blockchain. It can improve the data security in each circulation link of the red envelope and the efficient traceability of the transaction.
[0100] In another embodiment, the blockchain-based red envelope circulation device can be configured separately from the central processor 9100. For example, the blockchain-based red envelope circulation can be configured as a chip connected to the central processor 9100, and the blockchain-based red envelope circulation function can be realized through the control of the central processor.
[0101] like Fig. 9 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig. 9 In addition, the electronic device 9600 may also include Fig. 9 For components not shown, reference may be made to the prior art.
[0102] like Fig. 9 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0103] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0104] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0105] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0106] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0107] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0108] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0109] The embodiment of the present invention also provides a computer-readable storage medium capable of implementing all the steps in the red envelope circulation method based on blockchain in the above embodiment. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the red envelope circulation method based on blockchain in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0110] In response to the acquired red envelope issuance request information, the red envelope data in the red envelope issuance request information is stored on the blockchain and the payment account used to provide the red envelope funds in the red envelope issuance request information is locked; based on the red envelope sending method, a red envelope issuance instruction containing a red envelope validity period is sent to the target user and a receiving instruction from the target user in response to the red envelope issuance instruction is received; the denomination of the red envelope received by the target user is stored on the blockchain; the red envelope payment instruction sent by the target user is responded to and the red envelope payment denomination in the red envelope payment instruction is verified; after the verification is passed, the amount of the red envelope payment denomination is paid to the transaction party through the payment account, and the payment record is stored on the blockchain.
[0111] From the above description, it can be known that the computer-readable storage medium provided by the embodiment of the present invention, by responding to the obtained red envelope issuance request information, stores the red envelope data in the red envelope issuance request information on the blockchain and locks the payment account used to provide the red envelope funds in the red envelope issuance request information; sends a red envelope issuance instruction containing the valid period of the red envelope to the target user based on the red envelope sending method and receives the target user's receiving instruction in response to the red envelope issuance instruction; stores the red envelope denomination received by the target user on the blockchain; responds to the red envelope payment instruction sent by the target user and verifies the red envelope payment denomination in the red envelope payment instruction; after verification, pays the amount of the red envelope payment denomination to the transaction party through the payment account, and stores the payment record on the blockchain. It can improve the data security in each circulation link of the red envelope and the efficient traceability of the transaction.
[0112] Although the present invention provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).
[0113] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, devices (systems) or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0114] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0117] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict. The present invention is not limited to any single aspect, any single embodiment, or any combination and / or replacement of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of the present invention can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A red envelope circulation method based on blockchain, characterized in that: include: In response to the obtained red envelope issuance request information, the red envelope data in the red envelope issuance request information is stored on the blockchain and the payment account used to provide the red envelope funds in the red envelope issuance request information is locked; the red envelope data includes: red envelope sending method, red envelope validity period and payment account; Based on the red envelope sending method, a red envelope issuing instruction containing the red envelope validity period is sent to the target user, and a receiving instruction from the target user in response to the red envelope issuing instruction is received; the receiving instruction contains the denomination of the red envelope received by the target user; The red envelope denomination received by the target user is stored on the blockchain; Sending the blockchain mark of the red envelope denomination received by the target user on the blockchain to the target user; wherein the blockchain mark is used by the target user to verify the local denomination data and the denomination data on the blockchain; Responding to a red envelope payment instruction sent by the target user and verifying the red envelope payment denomination in the red envelope payment instruction; the red envelope payment instruction includes the red envelope payment denomination and the transaction party; After verification, the amount of the red envelope payment denomination is paid to the transaction party through the payment account, and the payment record is stored on the blockchain.
2. The red envelope circulation method based on blockchain according to claim 1 is characterized in that: Before responding to the acquired red envelope distribution request information, the method further includes: A blockchain is established to store red envelope information and mandatory elements for red envelope distribution are set; wherein the mandatory elements include at least the red envelope sending method, the red envelope validity period and the payment account.
3. The red envelope circulation method based on blockchain according to claim 1 is characterized in that: After the payment record is stored on the blockchain, the method further includes: The red envelope status corresponding to the target user on the blockchain is marked as used.
4. A red envelope circulation device based on blockchain, characterized in that: include: A request module, configured to respond to the obtained red envelope issuance request information, store the red envelope data in the red envelope issuance request information on the blockchain and lock the payment account used to provide the red envelope funds in the red envelope issuance request information; the red envelope data includes: red envelope sending method, red envelope validity period and payment account; The issuing module is used to send a red envelope issuing instruction containing the validity period of the red envelope to the target user based on the red envelope sending method and receive a receiving instruction from the target user in response to the red envelope issuing instruction; the receiving instruction contains the denomination of the red envelope received by the target user; A storage module, used to store the red envelope denomination received by the target user on the blockchain; A marking module, used to send the blockchain mark of the red envelope denomination received by the target user on the blockchain to the target user; wherein the blockchain mark is used by the target user to verify the local denomination data and the denomination data on the blockchain; A checking module, used to respond to the red envelope payment instruction sent by the target user and check the red envelope payment denomination in the red envelope payment instruction; the red envelope payment instruction includes the red envelope payment denomination and the transaction party; The payment module is used to pay the red envelope payment denomination to the transaction party through the payment account after verification, and store the payment record on the blockchain.
5. The blockchain-based red envelope circulation device according to claim 4 is characterized in that: Also includes: The initial module is used to establish a blockchain for storing red envelope information and set the required elements for red envelope distribution; wherein the required elements at least include the red envelope sending method, the red envelope validity period and the payment account.
6. The red envelope circulation device based on blockchain according to claim 4 is characterized in that: Also includes: The marking module is used to mark the red envelope status corresponding to the target user on the blockchain as used.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the blockchain-based red envelope circulation method described in any one of claims 1 to 3 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the blockchain-based red envelope circulation method described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Block chain red envelope processing, creating and getting method and device, medium and computer program
CN110363512A