CN113205323A - Red packet circulation method and device based on block chain - Google Patents
Red packet circulation method and device based on block chain Download PDFInfo
- Publication number
- CN113205323A CN113205323A CN202110594783.0A CN202110594783A CN113205323A CN 113205323 A CN113205323 A CN 113205323A CN 202110594783 A CN202110594783 A CN 202110594783A CN 113205323 A CN113205323 A CN 113205323A
- Authority
- CN
- China
- Prior art keywords
- red packet
- payment
- block chain
- red
- target user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000004044 response Effects 0.000 claims abstract description 9
- 238000003860 storage Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 13
- 238000009826 distribution Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 12
- 239000000872 buffer Substances 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000005192 partition Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000003999 initiator Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Finance (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a red packet circulation method and device based on a block chain, and relates to the technical field of block chains. The method comprises the following steps: in response to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain. The invention can improve the data security and the high-efficiency traceability of the transaction in each circulation link of the red packet.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a red packet circulation method and device based on a block chain.
Background
In order to pull users and strengthen user dependence, the internet company can provide a plurality of user marketing activities including but not limited to red envelope robbing, reward money, gold coins, stamps and the like, in the marketing activities, long link transaction processes such as red envelope issuing, receiving, using, verification and the like relate to fund transactions, verification is carried out only through some service main keys and technical main keys set by the system of the internet company, and risks such as red envelope information leakage, embezzlement, red envelope denomination modification and the like exist in all links.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a red packet circulation method and a red packet circulation device based on a block chain, which specifically comprise the following technical schemes:
in a first aspect, the present invention provides a red packet circulation method based on a block chain, including:
in response to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; the red packet data includes: a red packet sending mode, a red packet validity period and a payment account;
sending a red packet issuing instruction containing the red packet validity period to a target user based on the red packet sending mode, and receiving a pickup instruction of the target user responding to the red packet issuing instruction; the receiving instruction comprises the red envelope denomination received by the target user;
storing the red packet denomination received by the target user to a block chain;
responding to a red packet payment instruction sent by the target user and checking a red packet payment denomination in the red packet payment instruction; the red packet payment instruction comprises a red packet payment denomination and a transaction party;
and checking the amount of the payment denomination of the red envelope to the transaction party through the payment account after passing, and storing the payment record to the block chain.
Further, before the responding to the obtained red packet issuing request information, the method further includes:
establishing a block chain for storing red packet information and setting a necessary filling element for red packet distribution; wherein the mandatory fill elements at least comprise a red packet sending mode, a red packet validity period and a payment account.
Further, after storing the red envelope denomination retrieved by the target user onto the blockchain, the method further includes:
sending the block chain mark of the red packet denomination on the block chain, which is obtained by the target user, to the target user; wherein the blockchain flag is used for the target user to check the local denomination data and the denomination data on the blockchain.
Further, after the storing the payment record on the blockchain, the method further includes:
and carrying out used marking processing on the red packet state corresponding to the target user on the block chain.
In a second aspect, the present invention provides a red packet circulation device based on a block chain, including:
the request module is used for responding to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; the red packet data includes: a red packet sending mode, a red packet validity period and a payment account;
the issuing module is used for sending a red packet issuing instruction containing the red packet validity period to a target user based on the red packet sending mode and receiving a receiving instruction of the target user responding to the red packet issuing instruction; the receiving instruction comprises the red envelope denomination received by the target user;
the storage module is used for storing the red packet denomination acquired by the target user to a block chain;
the checking module is used for responding to the red packet payment instruction sent by the target user and checking the red packet payment denomination in the red packet payment instruction; the red packet payment instruction comprises a red packet payment denomination and a transaction party;
and the payment module is used for checking the amount of the payment denomination of the red envelope to the transaction party through the payment account after the payment is passed, and storing a payment record to the block chain.
Further, still include:
the system comprises an initial module, a judging module and a judging module, wherein the initial module is used for establishing a block chain for storing red packet information and setting necessary filling elements for red packet distribution; wherein the mandatory fill elements at least comprise a red packet sending mode, a red packet validity period and a payment account.
Further, still include:
the mark module is used for sending the block chain mark of the red packet denomination on the block chain, which is taken by the target user, to the target user; wherein the blockchain flag is used for the target user to check the local denomination data and the denomination data on the blockchain.
Further, still include:
and the marking module is used for marking the used red packet state corresponding to the target user on the block chain.
In a third aspect, the present invention provides an electronic device, which includes 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 red packet circulation method based on the block chain when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, performs the steps of the red packet circulation method based on a blockchain.
According to the technical scheme, the red packet circulation method and device based on the block chain are characterized in that red packet data in red packet issuing request information are stored to the block chain and a payment account for providing red packet funds in the red packet issuing request information is locked by responding to the acquired red packet issuing request information; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain. The data security and the high-efficiency transaction traceability in each circulation link of the red envelope can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart of a red packet circulation method based on a block chain according to an embodiment of the present invention.
Fig. 2 is a second flowchart of a red packet circulation method based on a block chain in an embodiment of the present invention.
Fig. 3 is a third flow chart of a red packet circulation method based on a block chain in the embodiment of the present invention.
Fig. 4 is a fourth flowchart illustrating a red packet circulation method based on a block chain in an embodiment of the present invention.
Fig. 5 is a schematic diagram of a first structure of a red packet flow device based on a block chain in an embodiment of the invention.
Fig. 6 is a second structural diagram of a red packet circulation device based on a block chain in an embodiment of the present invention.
Fig. 7 is a schematic diagram of a third structure of a red packet circulation device based on a block chain in an embodiment of the present invention.
Fig. 8 is a fourth structural diagram of a red packet circulation device based on a block chain in an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides an embodiment of a red packet circulation method based on a block chain, which specifically comprises the following contents in reference to fig. 1:
in a first aspect, the present invention provides a red packet circulation method based on a block chain, including:
s101: in response to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; the red packet data includes: a red packet sending mode, a red packet validity period and a payment account;
in this step, receiving the entity needing marketing to send the red packet issuing request information, wherein the red packet issuing request information comprises a red packet sending mode (random amount or equivalent amount), a red packet validity period, the number of red packets, the total amount and the payment account. And writing the information (such as the denomination, the valid period and the like) which can not be tampered with by the red packet into the blockchain, and locking the account balance in the payment account. It should be noted that the account balance locked is at least greater than the total amount of the red envelope.
S102: sending a red packet issuing instruction containing the red packet validity period to a target user based on the red packet sending mode, and receiving a pickup instruction of the target user responding to the red packet issuing instruction; the receiving instruction comprises the red envelope denomination received by the target user;
in this step, the target user is a user meeting the preset requirement, the user meeting the requirement is actively and randomly issued with the red packet, and the user receives the red packet and obtains the received red packet denomination. The user uploads the fetching instruction so as to determine the red envelope denomination to be fetched in the field of the user,
s103: storing the red packet denomination received by the target user to a block chain;
s104: responding to a red packet payment instruction sent by the target user and checking a red packet payment denomination in the red packet payment instruction; the red packet payment instruction comprises a red packet payment denomination and a transaction party;
in this step, the target user uses the red envelope to conduct a payment transaction for the full or fractional amount. I.e. the payment instruction sent by the target user in red envelope and responding to the payment instruction. Checking the payment denomination in the payment instruction of the red envelope, determining that the payment denomination of the red envelope is less than or equal to the denomination of the red envelope held by the target user, and determining whether the validity period and the use state of the red envelope accord with a preset scene or not within a preset time period.
S105: and checking the amount of the payment denomination of the red envelope to the transaction party through the payment account after passing, and storing the payment record to the block chain.
In this step, after the audit is passed, the payment account is used to pay the amount of the payment denomination of the red envelope to the transaction party and the red envelope is verified and cancelled.
As can be seen from the above description, in the red packet circulation method based on the block chain provided in the embodiment of the present invention, by responding to the obtained red packet issuance request information, red packet data in the red packet issuance request information is stored in the block chain and a payment account for providing red packet funds in the red packet issuance request information is locked; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain. The data security and the high-efficiency transaction traceability in each circulation link of the red envelope can be improved.
In an embodiment of the present invention, referring to fig. 2, in the red packet circulation method based on a block chain, referring to fig. 2 specifically includes the following contents:
s100: establishing a block chain for storing red packet information and setting a necessary filling element for red packet distribution; wherein the mandatory fill elements at least comprise a red packet sending mode, a red packet validity period and a payment account.
In this step, users are collected in a group to generate a red-envelope group. And establishing a block chain, and determining the number of the red packages, the red package sending mode, the red package validity period and the payment account. And acquiring data corresponding to the essential filling elements before red packet marketing.
In an embodiment of the present invention, referring to fig. 3, the red packet circulation method based on the block chain specifically includes the following contents:
s106: sending the block chain mark of the red packet denomination on the block chain, which is obtained by the target user, to the target user; wherein the blockchain flag is used for the target user to check the local denomination data and the denomination data on the blockchain.
In this step, the target user is enabled to check the local denomination data against the denomination data on the blockchain by the blockchain flag.
The blockchain is taken as a red packet transaction shared database, each process of the red packet is recorded in the blockchain transaction mode, and supervision, tracking and statistics such as red packet distribution, use and the like are easier to realize according to the non-tampering characteristic of the blockchain.
In an embodiment of the present invention, referring to fig. 4, the red packet circulation method based on the block chain specifically includes the following contents:
s107: and carrying out used marking processing on the red packet state corresponding to the target user on the block chain.
In the step, the state of the red packet is set as used marking processing, so that supervision, tracking and statistics such as red packet distribution, use and the like are easier.
To further explain the present solution, the present invention provides a full-flow embodiment of a red packet circulation method based on a blockchain, where the red packet circulation method based on a blockchain specifically includes the following contents:
the interactive entities involved in the red envelope marketing campaign mainly comprise users, marketing systems and transaction parties, and the roles of the entities are briefly described below.
Entity 101: the user is the initiator of the red envelope getting and using; the user can own the red envelope by getting.
The entity 102: the marketing system, namely the producer, the issue and the verification of the red packet, is an integral initiator of the red packet marketing campaign.
Entity 103: the transaction party is a financial institution established by law, and the invention uses a verified and sold collection bank for the red envelope.
The entity 104: the payment account is a supply account corresponding to the red packet, provides all the money of the red packet, and when the user uses the red packet, the money is paid by the account to offset the red packet and is paid to the transaction party.
Entity 105: the block chain is regarded as a red packet transaction data sharing database, and records red packet use transaction information in the form of block chain transaction.
The whole process of the red packet circulation method based on the block chain comprises the following steps:
step 1): and (3) red packet generation: entity 102 generates a red packet group, establishes a block chain, specifies the number of red packets, the validity period, the denomination total, the red packet status, etc., writes the red packet non-tampering information such as the red packet id, the denomination, the validity period, etc., into the block chain, and locks the account balance in entity 104.
Step 2): red packet issuing: the entity 102 makes an active random issuance of red packets to users who meet the requirements.
Step 3): getting the red envelope: the entity 101 receives the red envelope pushed by the entity 102 or receives the red envelope by other methods such as page clicking and the like.
Step 4): the red packet is used: entity 101 uses the red envelope to conduct payment transactions for full or fractional amounts (e.g., buy a bag of rice 100 dollars, where the red envelope pays 10 dollars, and the own bank card pays 90 dollars).
Step 5): and (4) red packet verification: after the payment transaction of the entity 101 reaches the entity 102, the entity 102 checks the blockchain flag in the red packet information sent by the entity 101 to ensure that the blockchain information is consistent with the expectation, checks the amount, the state, the validity period and the like of the red packet, takes out the amount corresponding to the denomination of the red packet from the entity 104 after the check is passed and pays the amount to the entity 103, and sets the state of the red packet to be used and other related information.
It should be noted that the blockchain is regarded as a red packet transaction shared database, which not only records the first 5 steps of the red packet in the form of blockchain transaction, but also facilitates supervision, tracking and statistics of red packet distribution, use and the like according to the non-falsification characteristic.
From the above description, the blockchain technology is adopted, and characteristics of decentralization, tamper resistance, openness and transparency of the blockchain are embedded into each circulation link of the marketing activity entity red envelope, so that data can be safely shared, transactions can be efficiently traced, and the non-tamper safety requirements of each attribute of the red envelope in marketing of a user are met.
An embodiment of the present invention provides a specific implementation manner of a red packet circulation device based on a block chain, which is capable of implementing all contents in the red packet circulation method based on the block chain, and referring to fig. 5, the red packet circulation device based on the block chain specifically includes the following contents:
the request module 10 is configured to, in response to the obtained red packet issuance request information, store red packet data in the red packet issuance request information to a block chain and lock a payment account for providing red packet funds in the red packet issuance request information; the red packet data includes: a red packet sending mode, a red packet validity period and a payment account;
the issuing module 20 is configured to send a red packet issuing instruction including the valid period of the red packet to a target user based on the red packet sending manner, and receive a pickup instruction of the target user in response to the red packet issuing instruction; the receiving instruction comprises the red envelope denomination received by the target user;
the storage module 30 is configured to store the red envelope denomination taken by the target user onto a block chain;
the checking module 40 is used for responding to the red packet payment instruction sent by the target user and checking the red packet payment denomination in the red packet payment instruction; the red packet payment instruction comprises a red packet payment denomination and a transaction party;
and the payment module 50 is used for checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after the payment is passed, and storing a payment record on the block chain.
In an embodiment of the present invention, referring to fig. 6, the red packet circulation device based on the blockchain specifically includes the following contents:
an initial module 60, configured to establish a block chain for storing red packet information and set a necessary padding element for red packet distribution; wherein the mandatory fill elements at least comprise a red packet sending mode, a red packet validity period and a payment account.
In an embodiment of the present invention, referring to fig. 7, the red packet circulation device based on the blockchain specifically includes the following contents:
a flag module 70, configured to send a blockchain flag of the red envelope denomination on a blockchain, which is received by the target user, to the target user; wherein the blockchain flag is used for the target user to check the local denomination data and the denomination data on the blockchain.
In an embodiment of the present invention, referring to fig. 8, the red packet circulation device based on the blockchain specifically includes the following contents:
and a marking module 80, configured to perform used marking processing on the red packet state corresponding to the target user on the block chain.
The embodiment of the red packet circulation device based on the block chain provided by the present invention may be specifically used to execute the processing procedure of the embodiment of the red packet circulation method based on the block chain in the above embodiment, and the functions of the red packet circulation device based on the block chain are not described herein again, and reference may be made to the detailed description of the embodiment of the method.
As can be seen from the above description, in the red packet circulation device based on the block chain according to the embodiment of the present invention, by responding to the obtained red packet issuance request information, red packet data in the red packet issuance request information is stored in the block chain and a payment account for providing red packet funds in the red packet issuance request information is locked; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain. The data security and the high-efficiency transaction traceability in each circulation link of the red envelope can be improved.
The application provides an embodiment of an electronic device for implementing all or part of contents in the red packet circulation method based on the block chain, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between related devices; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment of the method for implementing red packet circulation based on a block chain and the embodiment of the apparatus for implementing red packet circulation based on a block chain in the embodiments, and the contents thereof are incorporated herein, and repeated details are not repeated herein.
Fig. 9 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 9, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 9 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the red packet circulation function based on the blockchain may be integrated into the central processor 9100.
The central processor 9100 may be configured to control as follows:
in response to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, red packet data in the red packet issuance request information is stored on the block chain and a payment account for providing red packet funds in the red packet issuance request information is locked by responding to the obtained red packet issuance request information; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain. The data security and the high-efficiency transaction traceability in each circulation link of the red envelope can be improved.
In another embodiment, the red packet circulation device based on the partition chain may be configured separately from the central processor 9100, for example, the red packet circulation based on the partition chain may be configured as a chip connected to the central processor 9100, and the red packet circulation based on the partition chain may be implemented by the control of the central processor.
As shown in fig. 9, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 9; in addition, the electronic device 9600 may further include components not shown in fig. 9, which may be referred to in the prior art.
As shown in fig. 9, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits 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 in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present invention further provides a computer-readable storage medium capable of implementing all the steps in the red packet circulation method based on the blockchain in the above embodiments, where the computer-readable storage medium stores a computer program, and the computer program implements all the steps of the red packet circulation method based on the blockchain in the above embodiments when executed by a processor, for example, the processor implements the following steps when executing the computer program:
in response to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain.
As can be seen from the above description, in the computer-readable storage medium provided in the embodiment of the present invention, in response to the obtained red packet issuance request information, red packet data in the red packet issuance request information is stored in the blockchain, and a payment account for providing red packet funds in the red packet issuance request information is locked; sending a red packet issuing instruction containing the valid period of the red packet to a target user based on a red packet sending mode, and receiving a receiving instruction of the target user responding to the red packet issuing instruction; storing the red envelope denomination received by the target user to the block chain; responding to a red packet payment instruction sent by a target user and checking a red packet payment denomination in the red packet payment instruction; and checking the amount of the red envelope payment denomination paid to the transaction party through the payment account after passing, and storing the payment record on the block chain. The data security and the high-efficiency transaction traceability in each circulation link of the red envelope can be improved.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.
Claims (10)
1. A red packet circulation method based on a block chain is characterized by comprising the following steps:
in response to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; the red packet data includes: a red packet sending mode, a red packet validity period and a payment account;
sending a red packet issuing instruction containing the red packet validity period to a target user based on the red packet sending mode, and receiving a pickup instruction of the target user responding to the red packet issuing instruction; the receiving instruction comprises the red envelope denomination received by the target user;
storing the red packet denomination received by the target user to a block chain;
responding to a red packet payment instruction sent by the target user and checking a red packet payment denomination in the red packet payment instruction; the red packet payment instruction comprises a red packet payment denomination and a transaction party;
and checking the amount of the payment denomination of the red envelope to the transaction party through the payment account after passing, and storing the payment record to the block chain.
2. The red packet circulation method based on the block chain according to claim 1, further comprising, before the responding to the obtained red packet issuance request information:
establishing a block chain for storing red packet information and setting a necessary filling element for red packet distribution; wherein the mandatory fill elements at least comprise a red packet sending mode, a red packet validity period and a payment account.
3. The red packet circulation method based on block chain according to claim 1, further comprising, after storing the red packet denomination retrieved by the target user onto the block chain:
sending the block chain mark of the red packet denomination on the block chain, which is obtained by the target user, to the target user; wherein the blockchain flag is used for the target user to check the local denomination data and the denomination data on the blockchain.
4. The blockchain-based red packet circulation method according to claim 1, further comprising, after the storing the payment record onto the blockchain:
and carrying out used marking processing on the red packet state corresponding to the target user on the block chain.
5. A red packet circulation device based on block chains is characterized by comprising:
the request module is used for responding to the acquired red packet issuing request information, storing red packet data in the red packet issuing request information to a block chain and locking a payment account for providing red packet funds in the red packet issuing request information; the red packet data includes: a red packet sending mode, a red packet validity period and a payment account;
the issuing module is used for sending a red packet issuing instruction containing the red packet validity period to a target user based on the red packet sending mode and receiving a receiving instruction of the target user responding to the red packet issuing instruction; the receiving instruction comprises the red envelope denomination received by the target user;
the storage module is used for storing the red packet denomination acquired by the target user to a block chain;
the checking module is used for responding to the red packet payment instruction sent by the target user and checking the red packet payment denomination in the red packet payment instruction; the red packet payment instruction comprises a red packet payment denomination and a transaction party;
and the payment module is used for checking the amount of the payment denomination of the red envelope to the transaction party through the payment account after the payment is passed, and storing a payment record to the block chain.
6. The blockchain-based red packet circulating device according to claim 5, further comprising:
the system comprises an initial module, a judging module and a judging module, wherein the initial module is used for establishing a block chain for storing red packet information and setting necessary filling elements for red packet distribution; wherein the mandatory fill elements at least comprise a red packet sending mode, a red packet validity period and a payment account.
7. The blockchain-based red packet circulating device according to claim 5, further comprising:
the mark module is used for sending the block chain mark of the red packet denomination on the block chain, which is taken by the target user, to the target user; wherein the blockchain flag is used for the target user to check the local denomination data and the denomination data on the blockchain.
8. The blockchain-based red packet circulating device according to claim 5, further comprising:
and the marking module is used for marking the used red packet state corresponding to the target user on the block chain.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the blockchain based red packet circulating method according to any one of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the blockchain-based red packet circulation method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110594783.0A CN113205323A (en) | 2021-05-28 | 2021-05-28 | Red packet circulation method and device based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110594783.0A CN113205323A (en) | 2021-05-28 | 2021-05-28 | Red packet circulation method and device based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113205323A true CN113205323A (en) | 2021-08-03 |
Family
ID=77023564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110594783.0A Pending CN113205323A (en) | 2021-05-28 | 2021-05-28 | Red packet circulation method and device based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113205323A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108921525A (en) * | 2018-06-29 | 2018-11-30 | 北京金山安全软件有限公司 | Processing method and device for block chain red packet, electronic equipment and medium |
CN109727009A (en) * | 2019-01-28 | 2019-05-07 | 杭州复杂美科技有限公司 | Red packet processing method, equipment and storage medium |
CN109816362A (en) * | 2019-01-28 | 2019-05-28 | 杭州复杂美科技有限公司 | Red packet processing method, equipment and storage medium |
CN110363512A (en) * | 2019-07-12 | 2019-10-22 | 上海唯链信息科技有限公司 | The processing of block chain red packet creates, gets method and apparatus, medium and computer program |
-
2021
- 2021-05-28 CN CN202110594783.0A patent/CN113205323A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108921525A (en) * | 2018-06-29 | 2018-11-30 | 北京金山安全软件有限公司 | Processing method and device for block chain red packet, electronic equipment and medium |
CN109727009A (en) * | 2019-01-28 | 2019-05-07 | 杭州复杂美科技有限公司 | Red packet processing method, equipment and storage medium |
CN109816362A (en) * | 2019-01-28 | 2019-05-28 | 杭州复杂美科技有限公司 | Red packet processing method, equipment and storage medium |
CN110363512A (en) * | 2019-07-12 | 2019-10-22 | 上海唯链信息科技有限公司 | The processing of block chain red packet creates, gets method and apparatus, medium and computer program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10489780B2 (en) | Systems and methods for use of distributed ledger technology for recording and utilizing credit account transaction information | |
CN104574050B (en) | The method, apparatus and system settled accounts online | |
CN104680361B (en) | A kind of enchashment method and system based on third-party platform | |
CN106960388A (en) | The method and apparatus of the digital asset circulation of transregional piece of chain | |
CN109345214A (en) | A kind of method of payment, system and the associated component of digital cash Wallet System | |
CN111507839B (en) | Block chain-based data processing method, device, storage medium and equipment | |
CN110874742B (en) | Payment method and device based on block chain and intelligent contract | |
CN112163946A (en) | Accounting processing method and device based on distributed transaction system | |
CN113256403A (en) | Personal petty loan method, device and system based on block chain and 5G message | |
CN110008716A (en) | Block chain method of commerce and device, electronic equipment, storage medium | |
CN110033370A (en) | Account creation method and device, electronic equipment, storage medium | |
CN111881166B (en) | Method, device and system for processing operation data based on block chain | |
CN112907243A (en) | Block chain transaction auditing method and device | |
CN111222869A (en) | Transaction data processing method, device, computer equipment and medium | |
CN112116482A (en) | Financing data processing method and device based on block chain | |
CN113689211B (en) | Payment processing method and device | |
CN111062717A (en) | Data transfer processing method and device and computer readable storage medium | |
CN113595724B (en) | Block chain-based accounting method, device, equipment and readable storage medium | |
CN109829811A (en) | Loan method and loan device | |
CN111950009B (en) | Block chain-based method and device for detecting replacement sales data | |
CN110009323A (en) | Block chain method of commerce and device, electronic equipment, storage medium | |
CN113191881A (en) | Financial business supervision data processing method, device and system based on block chain | |
CN110009492A (en) | Block chain method of commerce and device, electronic equipment, storage medium | |
CN112184248A (en) | Card organization payment refusal bill data processing method and device | |
CN111861429A (en) | Block chain transaction mining work fee entrusting method and down-chain repeater |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |