CN112215611B - Block chain-based offer method, seller node equipment, terminal equipment and storage medium - Google Patents

Block chain-based offer method, seller node equipment, terminal equipment and storage medium Download PDF

Info

Publication number
CN112215611B
CN112215611B CN202011312787.7A CN202011312787A CN112215611B CN 112215611 B CN112215611 B CN 112215611B CN 202011312787 A CN202011312787 A CN 202011312787A CN 112215611 B CN112215611 B CN 112215611B
Authority
CN
China
Prior art keywords
preferential
node
transaction
buyer
condition
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.)
Active
Application number
CN202011312787.7A
Other languages
Chinese (zh)
Other versions
CN112215611A (en
Inventor
张伦泳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011312787.7A priority Critical patent/CN112215611B/en
Publication of CN112215611A publication Critical patent/CN112215611A/en
Application granted granted Critical
Publication of CN112215611B publication Critical patent/CN112215611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure provides a blockchain-based offer method, a seller node, a terminal device and a storage medium, wherein the method comprises the following steps: the seller node establishes an preferential fund pool and preferential conditions based on the intelligent contract, so that when each buyer node in the blockchain purchases based on the intelligent contract, part of funds in the shopping amount which need to be paid to the seller node are put into the preferential fund pool; and when the current transaction condition reaches the preferential condition, enabling each buyer node to acquire funds in the preferential fund pool based on the intelligent contract. The embodiment of the disclosure utilizes the blockchain technology to correlate the preferential activity with the actual promotion preferential condition of the merchant, the client can automatically obtain the preferential activity when the preferential activity is reached, and the merchant automatically obtains the preferential activity planned to be issued to the client when the preferential activity is not reached.

Description

Block chain-based offer method, seller node equipment, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a blockchain-based offer method, a vendor node device, a terminal device, and a computer-readable storage medium.
Background
With the increasing level of consumer consumption, more and more merchants are aware of the importance of developing offers to the promotion of goods. However, the current way of coupons adopted by merchants is to hold full-scale activities or issue coupons to customers, wherein full-scale activities are not attractive to a part of customer groups for intelligent consumption, and thus the effect of commodity promotion is not achieved, and the way of issuing coupons to customers not only consumes time and labor of merchants, but also can ensure that only a small part of customers obtain coupons, and finally the good effect of commodity promotion is not achieved. Therefore, it is highly desirable to provide a solution that can efficiently offer customers with a reduced amount of benefits, thereby improving the commodity promotion capability of merchants, while guaranteeing the rights and interests of merchants.
Disclosure of Invention
The present disclosure provides a blockchain-based offer method, a vendor node, a terminal device, and a computer storage medium to address at least the above problems.
According to an aspect of an embodiment of the present disclosure, there is provided a blockchain-based offer method, including:
the seller node establishes an preferential fund pool and preferential conditions based on the intelligent contract, so that when each buyer node in the blockchain purchases based on the intelligent contract, part of funds in the shopping amount which need to be paid to the seller node are put into the preferential fund pool;
when the current transaction condition reaches the preferential condition, enabling each buyer node to acquire funds in the preferential fund pool based on the intelligent contract;
and when the current transaction condition does not reach the preferential condition, enabling the seller node to acquire funds in the preferential fund pool based on the intelligent contract.
In one embodiment, after the seller node establishes the preferential fund pool and preferential conditions based on the smart contract, the method further comprises:
the seller node or any buyer node judges whether the current moment reaches the preset preferential moment;
if the current time reaches the preset preferential time, the seller node or any buyer node judges whether the current transaction condition reaches the preferential condition;
if the current transaction condition reaches the preferential condition, enabling each buyer node to acquire funds in the preferential fund pool based on the intelligent contract;
and if the current transaction condition does not reach the preferential condition, enabling the seller node to acquire funds in the preferential fund pool based on the intelligent contract.
In one embodiment, before the seller node establishes the preferential fund pool and preferential conditions based on the smart contract, further comprising:
the seller node setting a first collection transaction and a second collection transaction in the smart contract; the first collection transaction is used for indicating that the current transaction condition reaches the preferential condition, the buyer node obtains funds in the preferential fund pool, and the second collection transaction is used for indicating that the current transaction condition does not reach the preferential condition, and the seller node obtains funds in the preferential fund pool;
the seller node signs the first and second collection transactions and broadcasts into a blockchain.
In one embodiment, after the seller node establishes the preferential fund pool and preferential conditions based on the intelligent contract and before the seller node or any buyer node judges whether the current time reaches the preset preferential time, the method further comprises:
the seller node or any buyer node respectively calculates the fund amount to be input into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by the buyer nodes according to the shopping amount to be paid to the buyer nodes;
the seller node sets a first payment transaction according to the fund amount and the payment amount, signs the first payment transaction and then sends the first payment transaction to a corresponding buyer node, so that the buyer node signs the first payment transaction additionally and returns the first payment transaction to the seller node, signs the first collection transaction and the second collection transaction additionally after signing the first payment transaction additionally, and broadcasts the first collection transaction and the second collection transaction to a blockchain;
after the seller node monitors that the buyer node signs the first and second collection transactions additionally, the first payment transaction is broadcasted into a blockchain, so that the buyer node pays corresponding payment amount to the seller node, and simultaneously, funds corresponding to the corresponding funds amount are put into the preferential funds pool.
In one embodiment, before the seller node establishes the preferential fund pool and preferential conditions based on the smart contract, further comprising:
the seller node setting up a second payment transaction in the smart contract;
the seller node or any buyer node respectively calculates the fund amount to be put into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by the buyer node according to the shopping amount to be paid to the buyer node, comprising:
and the seller node or any buyer node respectively calculates the fund amount to be input into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by each buyer node according to the second payment transaction and the shopping amount to be paid to the buyer node by each buyer node.
In one embodiment, the determining, by the seller node or any of the buyer nodes, whether the current transaction situation meets the offer condition includes:
the seller node or any buyer node obtains the purchase transaction total amount of each buyer node based on the intelligent contract shopping from a blockchain;
the seller node or any buyer node judges whether the total amount of the purchase transaction reaches a preset amount;
if the total amount of the purchase transaction reaches the preset amount, the seller node or any buyer node judges that the current transaction condition reaches the preferential condition;
if the total amount of the purchase transaction does not reach the preset amount, the seller node or any buyer node judges that the current transaction condition does not reach the preferential condition.
According to another aspect of the disclosed embodiments, there is provided a seller node apparatus, comprising:
the system comprises an offer module, a first module and a second module, wherein the offer module is used for setting up an offer fund pool and offer conditions based on intelligent contracts, so that when each buyer node in a blockchain purchases based on the intelligent contracts, part of funds in shopping amounts which need to be paid to the seller node are put into the offer fund pool, and when the current transaction condition reaches the offer conditions, each buyer node acquires funds in the offer fund pool based on the intelligent contracts; the method comprises the steps of,
and the acquisition module is used for acquiring funds in the preferential funds pool based on the intelligent contract when the current transaction condition does not reach the preferential condition.
In one embodiment, the seller node apparatus further comprises:
the judging module is used for judging whether the current moment reaches the preset preferential moment after the preferential fund pool and the preferential condition are established by the preferential module;
the judgment module is further configured to continuously judge whether the current transaction condition reaches the preferential condition when judging that the current time reaches a preset preferential time, and if so, enable each buyer node to acquire funds in the preferential fund pool based on the intelligent contract;
the acquisition module is further configured to acquire funds in the preferential funds pool based on the intelligent contract when the judgment module judges that the preferential condition is not reached.
According to still another aspect of the embodiments of the present disclosure, there is also provided a terminal device including a memory and a processor, the memory storing a computer program, the processor executing the blockchain-based offer method when the processor runs the computer program stored in the memory.
According to yet another aspect of embodiments of the present disclosure, a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the blockchain-based offer method.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the block chain-based preferential method provided by the embodiment of the disclosure, a preferential fund pool and preferential conditions are established by a seller node based on an intelligent contract, so that when buying based on the intelligent contract, each buyer node in the block chain invests partial fund in shopping amount which needs to be paid to the seller node into the preferential fund pool; when the current transaction condition reaches the preferential condition, enabling each buyer node to acquire funds in the preferential fund pool based on the intelligent contract; and when the current transaction condition does not reach the preferential condition, enabling the seller node to acquire funds in the preferential fund pool based on the intelligent contract. The embodiment of the disclosure utilizes the blockchain technology to correlate the preferential activity with the actual promotion preferential condition of the merchant, and the customer can automatically obtain the preferential activity when the preferential activity is reached, so that the preferential activity is more flexible and efficient than the related technology, and meanwhile, the preferential activity is more beneficial to achieving the promotion purpose of the merchant and guaranteeing the rights and interests of the merchant.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the disclosure. The objectives and other advantages of the disclosure will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosed embodiments and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain, without limitation, the disclosed embodiments.
FIG. 1 is a flow chart of a blockchain-based offer method provided by embodiments of the present disclosure;
FIG. 2 is a flowchart of a blockchain-based offer method according to another embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a vendor node device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the following detailed description of the specific embodiments of the present disclosure will be given with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order; moreover, embodiments of the present disclosure and features of embodiments may be arbitrarily combined with each other without conflict.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present disclosure, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
Aiming at the current commercial establishments, especially off-line physical stores, the adopted preferential activity forms are limited, the common preferential mode is the full-reduction activity held on holidays, the same on-line preferential activity is always existed in the same time period, and the customer flow of the physical stores is difficult to pull. According to the embodiment of the disclosure, the blockchain technology is utilized, the preferential conditions are associated with the preferential activities, when the preferential conditions are met, the preferential activities are automatically exchanged for clients purchasing goods, so that users can be guaranteed to obtain the preferential activities in time, meanwhile, merchants do not need to take time and effort to hold full deactivation or issue coupons, when the corresponding preferential conditions are not met, sellers can automatically obtain the preferential activities planned to be issued to the users, so that the interests of the merchants when the preferential activities are carried out but the promotion effect is not met are guaranteed, the preferential mode based on the embodiment of the disclosure can enable the buyers and sellers to win each other, further, the preferential promotion can be effectively realized by setting the preferential conditions as the transaction quantity, the client flow is improved, and the effect of commodity promotion is achieved.
Referring to fig. 1, fig. 1 is a flowchart of a blockchain-based offer method according to an embodiment of the present disclosure, where the method includes the following steps S101 to S102.
In step S101, the seller node establishes a preferential fund pool and preferential conditions based on the intelligent contract, so that each buyer node in the blockchain invests part of funds in the shopping amount required to be paid to the seller node into the preferential fund pool when shopping based on the intelligent contract.
In this embodiment, the seller node creates an intelligent contract, where the intelligent contract can agree on a preferential manner of the seller node and a payment manner of the buyer node, where the preferential manner includes creating a preferential fund pool, and returning funds in the preferential fund pool to the buyer node when a preferential condition is reached, and the payment manner includes dividing a total price to be paid into two parts of a payment amount c and a fund amount r when a transaction is generated by a merchant of the seller node by a customer, where the payment amount c is directly paid to the merchant, and the fund amount r is put into the preferential fund pool. If the preferential condition is reached, all r are returned according to the original path. The seller node establishes a pool of offer funds and offer conditions based on the intelligent contract, wherein the offer conditions may be that the total transaction amount, i.e., the transaction amount, of the merchant reaches a preset amount at the end of the transaction day, and in some embodiments, the offer conditions may also be other offer conditions set by the merchant according to its merchandise promotion goals, which is not limited by the present disclosure.
Further, the smart contract in the embodiment of the present disclosure includes:
(1) Setting transaction T { [ I ] U ],[c→M,r→R]}
(2) Setting a return transaction T refund {[I R ],[r i →U i ,1≤i≤S]|[t,S≥n,T i in-chain]}
(3) Setting up a cash register transaction T collection {[I R ],[sum(r i )→M],1≤i≤S|[t,S<n]}
(4) M pair T, T refund And T collection Signed and broadcast to the blockchain.
It will be appreciated that the seller node sets up a return transaction and a collect transaction in the smart contract, signs it, broadcasts it to the blockchain, and when the buyer appends its signature in step (7) later, the return transaction and collect transaction take effect, the buyer obtains an offer based on the return transaction and collect transaction, wherein the return transaction is that the buyer node automatically obtains the offer funds from the fund pool when the offer condition is reached, and the collect transaction automatically obtains the offer funds in the offer fund pool when the offer condition is not reached, as described in detail in the following embodiment.
(5)U i When the merchant M shops and settles, M calculates the amount c which should be paid to the merchant immediately according to the shopping amount of the ith customer Ui and (1) the preset ratio of c to r i And an amount r that can be returned if the condition is satisfied i Modifying transaction T to T i {[I Ui ],[c i
M,r i →R]Signature and send to U i
(6)U i For T i Signature transmission to M
(7)U i For T refund And T collection Appended signature and broadcast to blockchain
(8) M will T i Broadcast to blockchain
(9) When the time t arrives, the following process is performed
M or any U i Calculate T refund And T collection The number S2.If S of the different digital signatures<n
3. Will T collection Broadcast to blockchain
4.else
5. Will T refund Broadcast to blockchain
6.end if
Description:
(A)[I U ]representing the input of the transaction T, i.e. funds owned by the payer. [ c→M, r→R]
Indicating that the amount c is paid to M and the amount R is paid to R. Wherein M is the merchant and R is the public fund pool.
(B)[t,S≥n,T i in-chain]Is transaction T refund The condition that is satisfied, i.e. after time T, if for T refund The number S of signed (different) clients reaches or exceeds a preset n,
and the clients participating in the signature generate at least one transaction T i Transaction T refund Takes effect.
(C)[t,S<n]Is transaction T collection Effective conditions, i.e. after time T, if applied to T collection If the number S of signed (different) clients does not reach the preset n, T collection Takes effect.
(D) (4) although T is now refund And T collection Broadcast to the blockchain is directly ignored by the blockchain system, i.e., both transactions are considered invalid because time t has not yet been reached. But both transactions can be seen by the overall node. U in this way (7) i Can be directly to T refund And T collection And (5) adding a signature.
(E) Ui vs T in (6) i The signature is sent to M, and then wait until (8) M pairs will T i Broadcast to blockchain for signature branching to occur, i.e. if two different clients U i And U j Possibly at the same time to T refund And T collection Appending the signature, which creates a branch. This can be controlled by M pairs of T i To avoid. I.e. M and T again i Will not broadcast T to the blockchain i+1 Is sent to U i+1
(F) If final T refund Broadcast again to blockchain after time T and take effect, then according to all transactions T i [ I ] in the record of (2) Ui ]And ri, substituting it into r i Ui, thereby making all U i All get the respective amount r to be returned i
(G) If final T collection Is broadcast again to the blockchain after time t and takes effect,
will directly [ I ] R ]The total amount of (a) is paid to M.
Since (8) follows (7), M can ensure U i At the same time to T refund And T collection Signing and broadcasting to blockchains, i.e. to T refund And T collection The number of signatures is always the same. In some embodiments, the purchase amount is calculated by determining each buyer node pair T refund And T collection The number of signatures is more efficient and quicker in calculation mode, and the data can be effectively guaranteed not to be tampered.
In step S102, when the current transaction situation reaches the preferential condition, making each buyer node acquire funds in the preferential fund pool based on the intelligent contract;
in step S103, when the current transaction situation does not reach the preferential condition, the seller node is caused to acquire funds in the preferential fund pool based on the intelligent contract.
It should be noted that, the current transaction situation indicates a transaction situation that meets the judgment condition, and is different from a transaction set in the intelligent contract such as the first payment transaction and the second payment transaction in the embodiment.
In this embodiment, when the current transaction condition reaches the promotion condition, the buyer node automatically acquires funds in the promotion fund pool, and when the current transaction condition does not reach the promotion condition, the seller node automatically acquires funds in the promotion fund pool.
Referring to fig. 2, fig. 2 is a flowchart of a blockchain-based offer method according to another embodiment of the present disclosure, and based on the above embodiment, after the seller node establishes the offer fund pool and the offer condition based on the intelligent contract, the method further includes the following steps S201-S203.
In step S201, the seller node or any buyer node determines whether the current time reaches a preset preferential time, and if the current time reaches the preset preferential time, step S202 is executed;
specifically, the preset preferential time is a time point when the merchant will redeem the preferential to the user, for example, the preferential time of the merchant starts at a certain time point which is 10 days from 1 day, and ends at a time point which is 10 days later than 3 days in the same month, the preset preferential time can be set to be equal to the time point which is 10 days later than 3 days, and the seller node or any buyer node judges whether the preset preferential time is reached, wherein the preset preferential time can be broadcasted into the blockchain by the seller node.
In step S202, the seller node or any buyer node determines whether the current transaction situation reaches the preferential condition, if so, the step S102 is entered into where the buyer node obtains the funds in the preferential fund pool, and if not, the step S103 is entered into where the seller node obtains the funds in the preferential fund pool.
When judging that the preferential condition is not met, the seller node acquires the preferential funds in the preferential funds pool, compared with the prior art, the preferential activity carried out by the merchant fully releases the undirected user during the preferential period or before the preferential activity, and the problems that the preferential activity carried out by the merchant consumes a great deal of manpower and material resources and time but does not reach the promoting effect at last are likely to exist. Further, before the seller node establishes the preferential fund pool and preferential conditions based on the smart contract, the method further comprises the following steps:
the seller node setting a first collection transaction and a second collection transaction in the smart contract; the first collection transaction is used for indicating that the current transaction condition reaches the preferential condition, the buyer node obtains funds in the preferential fund pool, and the second collection transaction is used for indicating that the current transaction condition does not reach the preferential condition, and the seller node obtains funds in the preferential fund pool;
the seller node signs the first and second collection transactions and broadcasts to a blockchain for additional signing by the buyer node for consensus of the transactions.
In this embodiment, the first collection transaction and the second collection transaction are set up in the smart contract, and are used to instruct the seller and the buyer to obtain the funds in the funds pool, and broadcast the funds to the blockchain, so that the seller node and each buyer node reach consensus, and each buyer node participating in the preferential activity is ensured to automatically obtain the funds in the funds pool or the seller node automatically obtains the funds in the funds pool when the specific preferential condition arrives.
Wherein the first payment transaction may correspond to a return transaction T in the smart contract example mentioned in the previous embodiment refund The second collection transaction may correspond to collection transaction T in the smart contract example collection
Further, after the seller node establishes the preferential fund pool and preferential conditions based on the intelligent contract (step S101), and before the seller node or any buyer node determines whether the current time reaches the preset preferential time, the method further comprises the following steps:
the seller node or any buyer node respectively calculates the fund amount to be input into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by the buyer nodes according to the shopping amount to be paid to the buyer nodes;
the seller node sets a first payment transaction according to the fund amount and the payment amount, signs the first payment transaction and then sends the first payment transaction to a corresponding buyer node, so that the buyer node signs the first payment transaction additionally and returns the first payment transaction to the seller node, signs the first collection transaction and the second collection transaction additionally after signing the first payment transaction additionally, and broadcasts the first collection transaction and the second collection transaction to a blockchain;
after the seller node monitors that the buyer node signs the first and second collection transactions additionally, the first payment transaction is broadcasted into a blockchain, so that the buyer node pays corresponding payment amount to the seller node, and simultaneously, funds corresponding to the corresponding funds amount are put into the preferential funds pool.
In this embodiment, the first payment transaction is set by the seller node according to the fund amount and the payment amount, and the first payment transaction is signed to enable the buyer node to be additionally signed, the buyer node further signs the first payment transaction and the second payment transaction, the seller node broadcasts the first payment transaction to the blockchain, the first payment transaction is effective, and the preferential fund is ensured to be acquired in a contracted manner.
Also, in some embodiments the determination of the purchase transaction amount is made by calculating the signatures of the first and second payment transactions, in order to avoid signature branching, the buyer node first signs the first payment transaction to the seller node, and then waits until the seller node signs the first payment transaction, and then broadcasts the first payment transaction to the blockchain, where the branching occurs in order to sign, i.e., if two different customers may sign the first and second payment transactions at the same time, which creates a branching. This may be avoided by the seller node pair controlling the first payment transaction, i.e., the seller node does not send the first payment transaction calculated for the other customer to the other customer before broadcasting the first payment transaction to the blockchain, as may be appreciated in connection with the smart contract description (E) above.
Further, before the seller node establishes the preferential fund pool and preferential conditions based on the smart contract, the method further comprises the following steps:
the seller node setting up a second payment transaction in the smart contract;
the seller node or any buyer node respectively calculates the fund amount to be put into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by the buyer node according to the shopping amount to be paid to the buyer node, comprising:
and the seller node or any buyer node respectively calculates the fund amount to be input into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by each buyer node according to the second payment transaction and the shopping amount to be paid to the buyer node by each buyer node.
It will be appreciated that the second payment transaction is used to indicate the manner of calculating funds to be placed in the preferential fund pool, and by setting the second payment transaction in the smart contract, the seller node or any buyer node calculates the funds to be placed in the preferential manner, which is beneficial to guaranteeing fairness among the buyers and sellers.
Further, in connection with the smart contract described above, if it is desired that the amount ultimately returned to the customer is related to the total transaction amount V, the total transaction amount S, and the preset discount rate r/(c+r), T may be determined refund Change to T refund {[I R ],[f(S,V,c,r)→Ui,r i -f(S,V,c,r)→M,1≤i≤S]|[t,S≥n,T i in-chain]}. Where f (S, V, c, r) is a function of the 4 parameters S, V, c, r.
In this embodiment, the seller node or any buyer node further determines whether the preferential condition is reached, in one implementation, the preferential condition is mainly related to the total amount of purchase transaction actually generated, by associating the total amount of purchase transaction actually generated with the preferential activity, and automatically redeeming the preferential when the preferential activity is ended, specifically, the seller node or any buyer node determines whether the current transaction condition reaches the preferential condition, including the following steps:
the seller node or any buyer node obtains the purchase transaction total amount of each buyer node based on the intelligent contract shopping from a blockchain;
the seller node or any buyer node judges whether the total amount of the purchase transaction reaches a preset amount;
if the total amount of the purchase transaction reaches the preset amount, the seller node or any buyer node judges that the current transaction condition reaches the preferential condition;
if the total amount of the purchase transaction does not reach the preset amount, the seller node or any buyer node judges that the current transaction condition does not reach the preferential condition.
Further, the purchase transaction total amount is judged by judging the node pair T of each buyer refund And T collection The signature quantity is more efficient and quick in judging mode, the authenticity of the data can be effectively guaranteed, the data cannot be tampered, the efficiency of the buyer for acquiring the preferential is improved, and the user experience is further improved.
With the development of blockchain technology, a scheme for issuing coupons to clients by using blockchain technology is also presented, but the coupons are issued, issued and used mainly by using blockchains. The method and the system have the advantages that the actually generated transaction quantity is not related to the preferential activity, and the preferential is automatically redeemed when the preferential activity is finished on the same day, and the client flow can be effectively improved by relating the preferential to the actually generated transaction quantity, so that the method and the system provide a trigger for commodity promotion for the entity storefront.
For example, a mall's offer will begin at 10 am on 1 day of the month and end at 10 pm on 3 days of the same month. The preset rule (i.e., preferential condition) is that on the basis of routine full deactivation, if the total transaction number in the middle reaches 10 ten thousand, all transactions will obtain a return point of 5% of the actual transaction amount. The first completes a transaction with 100 yuan of money in the amount of money in the afternoon of 1 day; by 10 days and nights of the same month, the accumulated transaction amount of the market is 100 ten thousand yuan, wherein 95 ten thousand yuan is already posted to the account of the market, and the other 5 ten thousand yuan is in the fund pool R. (a) If the trade (different) clients accumulated in the market are more than 10 ten thousand times by 10 days late on 3 days of the same month: the market (or a client B) divides T1 at 10 points 3 days later refund Rebroadcast to zoneBlock chain then a refund of 5-membered will be obtained. Other customers cumulatively obtain refunds 49995 yuan. The market finally obtains 95 ten thousand yuan; (b) If the market is 10 days late by 3 days of the same month, the accumulated number of transaction (different) clients in the market is less than 10 ten thousand: the market (or a client B) divides T1 at 10 points 3 days later collection Again broadcast to the blockchain, the mall will acquire 5 ten thousand yuan in the fund pool, and the mall will eventually acquire 100 ten thousand yuan.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a vendor node device, as shown in fig. 3, where the vendor node device includes:
an offer module 31 configured to set up an offer fund pool and offer conditions based on an intelligent contract, so that each buyer node in a blockchain invests a part of funds in a shopping amount that needs to be paid to the seller node into the offer fund pool when shopping based on the intelligent contract, so that each buyer node obtains funds in the offer fund pool based on the intelligent contract when a current transaction condition reaches the offer conditions; the method comprises the steps of,
an acquisition module 32 is configured to acquire funds in the preferential fund pool based on the smart contract when the current transaction situation does not reach the preferential condition.
In one embodiment, the seller node apparatus further comprises:
the judging module is used for judging whether the current moment reaches the preset preferential moment after the preferential fund pool and the preferential condition are established by the preferential module;
the judgment module is further configured to continuously judge whether the current transaction condition reaches the preferential condition when judging that the current time reaches a preset preferential time, and if so, enable each buyer node to acquire funds in the preferential fund pool based on the intelligent contract;
the acquisition module is further configured to acquire funds in the preferential funds pool based on the intelligent contract when the judgment module judges that the preferential condition is not reached.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a terminal device, as illustrated in fig. 4, where the terminal device includes a memory 41 and a processor 42, where the memory 41 stores a computer program, and when the processor 42 runs the computer program stored in the memory 41, the processor 42 executes the blockchain-based preferential method.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a computer readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor executes the blockchain-based offer method.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present disclosure, and not for limiting the same; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (6)

1. A blockchain-based offer method, comprising:
the seller node establishes an preferential fund pool and preferential conditions based on the intelligent contract, so that when each buyer node in the blockchain purchases based on the intelligent contract, part of funds in the shopping amount which need to be paid to the seller node are put into the preferential fund pool;
when the current transaction condition reaches the preferential condition, enabling each buyer node to acquire funds in the preferential fund pool based on the intelligent contract;
when the current transaction condition does not reach the preferential condition, enabling the seller node to acquire funds in the preferential fund pool based on the intelligent contract;
after the seller node establishes the preferential fund pool and preferential conditions based on the intelligent contract, the method further comprises the following steps:
the seller node or any buyer node judges whether the current moment reaches the preset preferential moment;
if the current time reaches the preset preferential time, the seller node or any buyer node judges whether the current transaction condition reaches the preferential condition;
if the current transaction condition reaches the preferential condition, enabling each buyer node to acquire funds in the preferential fund pool based on the intelligent contract;
if the current transaction condition does not reach the preferential condition, the seller node acquires funds in the preferential fund pool based on the intelligent contract;
before the seller node establishes the preferential fund pool and preferential conditions based on the intelligent contract, further comprising:
the seller node setting a first collection transaction and a second collection transaction in the smart contract; the first collection transaction is used for indicating that the current transaction condition reaches the preferential condition, the buyer node obtains funds in the preferential fund pool, and the second collection transaction is used for indicating that the current transaction condition does not reach the preferential condition, and the seller node obtains funds in the preferential fund pool;
the seller node signs the first and second collection transactions and broadcasts into a blockchain;
after the seller node establishes the preferential fund pool and preferential conditions based on the intelligent contract and before the seller node or any buyer node judges whether the current moment reaches the preset preferential moment, the method further comprises the following steps:
the seller node or any buyer node respectively calculates the fund amount to be input into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by the buyer nodes according to the shopping amount to be paid to the buyer nodes;
the seller node sets a first payment transaction according to the fund amount and the payment amount, signs the first payment transaction and then sends the first payment transaction to a corresponding buyer node, so that the buyer node signs the first payment transaction additionally and returns the first payment transaction to the seller node, signs the first collection transaction and the second collection transaction additionally after signing the first payment transaction additionally, and broadcasts the first collection transaction and the second collection transaction to a blockchain;
after the seller node monitors that the buyer node signs the first and second collection transactions additionally, the first payment transaction is broadcasted into a blockchain, so that the buyer node pays corresponding payment amount to the seller node, and simultaneously, funds corresponding to the corresponding funds amount are put into the preferential funds pool.
2. The method of claim 1, wherein prior to the seller node establishing the preferential fund pool and preferential conditions based on the smart contract, further comprising:
the seller node setting up a second payment transaction in the smart contract;
the seller node or any buyer node respectively calculates the fund amount to be put into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by the buyer node according to the shopping amount to be paid to the buyer node, comprising:
and the seller node or any buyer node respectively calculates the fund amount to be input into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by each buyer node according to the second payment transaction and the shopping amount to be paid to the buyer node by each buyer node.
3. The method of claim 1, wherein the determining by the seller node or any of the buyer nodes whether the current transaction condition meets the offer condition comprises:
the seller node or any buyer node obtains the purchase transaction total amount of each buyer node based on the intelligent contract shopping from a blockchain;
the seller node or any buyer node judges whether the total amount of the purchase transaction reaches a preset amount;
if the total amount of the purchase transaction reaches the preset amount, the seller node or any buyer node judges that the current transaction condition reaches the preferential condition;
if the total amount of the purchase transaction does not reach the preset amount, the seller node or any buyer node judges that the current transaction condition does not reach the preferential condition.
4. A seller node apparatus, comprising:
the system comprises an offer module, a first module and a second module, wherein the offer module is used for setting up an offer fund pool and offer conditions based on intelligent contracts, so that when each buyer node in a blockchain purchases based on the intelligent contracts, part of funds in shopping amounts which need to be paid to the seller node are put into the offer fund pool, and when the current transaction condition reaches the offer conditions, each buyer node acquires funds in the offer fund pool based on the intelligent contracts; the method comprises the steps of,
an acquisition module configured to acquire funds in the preferential funds pool based on the smart contract when the current transaction condition does not reach the preferential condition;
the judging module is used for judging whether the current moment reaches the preset preferential moment after the preferential fund pool and the preferential condition are established by the preferential module;
the judgment module is further configured to continuously judge whether the current transaction condition reaches the preferential condition when judging that the current time reaches a preset preferential time, and if so, enable each buyer node to acquire funds in the preferential fund pool based on the intelligent contract;
the acquisition module is further configured to acquire funds in the preferential funds pool based on the intelligent contract when the judgment module judges that the preferential condition is not reached;
the method steps performed by the seller node apparatus include:
setting a first collection transaction and a second collection transaction in the intelligent contract before the preferential module establishes a preferential fund pool and preferential conditions; the first collection transaction is used for indicating that the current transaction condition reaches the preferential condition, the buyer node obtains funds in the preferential fund pool, and the second collection transaction is used for indicating that the current transaction condition does not reach the preferential condition, and the seller node obtains funds in the preferential fund pool;
signing the first and second cash register transactions and broadcasting into a blockchain;
after the preferential module establishes the preferential fund pool and preferential conditions, and before the judging module judges whether the current moment reaches the preset preferential moment, respectively calculating the fund amount to be put into the preferential fund pool and the payment amount to be paid to the seller node in the shopping amount to be paid to the seller node by the buyer node according to the shopping amount to be paid to the buyer node;
setting a first payment transaction according to the fund amount and the payment amount, signing the first payment transaction, and sending the first payment transaction to a corresponding buyer node, so that the buyer node signs the first payment transaction additionally and returns the first payment transaction to the seller node, signs the first collection transaction and the second collection transaction additionally after signing the first payment transaction additionally, and broadcasts the first collection transaction and the second collection transaction to a blockchain;
after the buyer node is monitored to carry out additional signature on the first collection transaction and the second collection transaction, the first payment transaction is broadcasted into a blockchain, so that the buyer node pays corresponding payment amount to the seller node, and simultaneously funds corresponding to the corresponding funds amount are put into the preferential funds pool.
5. A terminal device comprising a memory and a processor, the memory having a computer program stored therein, the processor performing the blockchain-based benefit method of any of claims 1 to 3 when the processor runs the computer program stored in the memory.
6. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, performs the blockchain based offer method according to any of claims 1 to 3.
CN202011312787.7A 2020-11-20 2020-11-20 Block chain-based offer method, seller node equipment, terminal equipment and storage medium Active CN112215611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011312787.7A CN112215611B (en) 2020-11-20 2020-11-20 Block chain-based offer method, seller node equipment, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011312787.7A CN112215611B (en) 2020-11-20 2020-11-20 Block chain-based offer method, seller node equipment, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112215611A CN112215611A (en) 2021-01-12
CN112215611B true CN112215611B (en) 2023-06-09

Family

ID=74068147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011312787.7A Active CN112215611B (en) 2020-11-20 2020-11-20 Block chain-based offer method, seller node equipment, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112215611B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112837084A (en) * 2020-12-24 2021-05-25 四川新华万云科技有限公司 Commodity transaction method and device based on block chain network and block chain network node
CN113240415B (en) * 2021-05-12 2023-11-03 中国联合网络通信集团有限公司 Stored-value card recharging method, system, equipment and storage medium based on block chain
CN113537987A (en) * 2021-07-21 2021-10-22 冰联(广州)网络科技有限公司 Electronic coupon transaction management method and system

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751349A (en) * 2015-01-27 2015-07-01 重庆市大小王科技股份有限公司 Infinite extension consumer and merchant interaction win-win system platform
CN105049539A (en) * 2015-09-21 2015-11-11 黎锋 Rebating method, device and system
CN105701602A (en) * 2016-01-06 2016-06-22 北京京东尚科信息技术有限公司 Resource distribution method and device
CN106302583A (en) * 2015-05-21 2017-01-04 腾讯科技(深圳)有限公司 A kind of information processing method, server and terminal
CN106339895A (en) * 2016-08-12 2017-01-18 重庆浩品峰电子商务有限公司 Reward method based on user consumption and reward system thereof
CN107508904A (en) * 2017-09-08 2017-12-22 阿里巴巴集团控股有限公司 Method for processing resource and device
CN107844993A (en) * 2017-11-01 2018-03-27 曾巨鹏 The block chain management system and method that a kind of body movement promotes
CN108713214A (en) * 2017-12-26 2018-10-26 深圳市开心分享网络科技有限公司 Rebating promotion method, device and computer readable storage medium are shared in a kind of shopping
CN110163595A (en) * 2019-04-24 2019-08-23 吉林大学珠海学院 Pre-payment consumption management method, system and storage medium based on block chain
CN110458702A (en) * 2019-07-15 2019-11-15 阿里巴巴集团控股有限公司 Based on the virtual resource allocation method and device of block chain, electronic equipment
CN110599201A (en) * 2019-09-11 2019-12-20 腾讯科技(深圳)有限公司 Information processing method, device, node equipment of block chain network and storage medium
CN110990881A (en) * 2019-11-21 2020-04-10 山东爱城市网信息技术有限公司 Community group purchase platform, equipment and medium based on block chain
CN110992052A (en) * 2019-12-05 2020-04-10 腾讯科技(深圳)有限公司 Data processing method and device, electronic equipment and storage medium
CN111340341A (en) * 2020-02-18 2020-06-26 中国工商银行股份有限公司 Processing method and device for shared fund
CN111553670A (en) * 2020-04-28 2020-08-18 腾讯科技(深圳)有限公司 Transaction processing method and device and computer readable storage medium
CN111798230A (en) * 2020-06-18 2020-10-20 昆明大棒客科技有限公司 Block chain based staged payment method, device and equipment

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751349A (en) * 2015-01-27 2015-07-01 重庆市大小王科技股份有限公司 Infinite extension consumer and merchant interaction win-win system platform
CN106302583A (en) * 2015-05-21 2017-01-04 腾讯科技(深圳)有限公司 A kind of information processing method, server and terminal
CN105049539A (en) * 2015-09-21 2015-11-11 黎锋 Rebating method, device and system
CN105701602A (en) * 2016-01-06 2016-06-22 北京京东尚科信息技术有限公司 Resource distribution method and device
CN106339895A (en) * 2016-08-12 2017-01-18 重庆浩品峰电子商务有限公司 Reward method based on user consumption and reward system thereof
CN107508904A (en) * 2017-09-08 2017-12-22 阿里巴巴集团控股有限公司 Method for processing resource and device
CN107844993A (en) * 2017-11-01 2018-03-27 曾巨鹏 The block chain management system and method that a kind of body movement promotes
WO2019127050A1 (en) * 2017-12-26 2019-07-04 深圳市开心分享网络科技有限公司 Shopping sharing rebate promoting method and device and computer readable storage medium
CN108713214A (en) * 2017-12-26 2018-10-26 深圳市开心分享网络科技有限公司 Rebating promotion method, device and computer readable storage medium are shared in a kind of shopping
CN110163595A (en) * 2019-04-24 2019-08-23 吉林大学珠海学院 Pre-payment consumption management method, system and storage medium based on block chain
CN110458702A (en) * 2019-07-15 2019-11-15 阿里巴巴集团控股有限公司 Based on the virtual resource allocation method and device of block chain, electronic equipment
CN110599201A (en) * 2019-09-11 2019-12-20 腾讯科技(深圳)有限公司 Information processing method, device, node equipment of block chain network and storage medium
CN110990881A (en) * 2019-11-21 2020-04-10 山东爱城市网信息技术有限公司 Community group purchase platform, equipment and medium based on block chain
CN110992052A (en) * 2019-12-05 2020-04-10 腾讯科技(深圳)有限公司 Data processing method and device, electronic equipment and storage medium
CN111340341A (en) * 2020-02-18 2020-06-26 中国工商银行股份有限公司 Processing method and device for shared fund
CN111553670A (en) * 2020-04-28 2020-08-18 腾讯科技(深圳)有限公司 Transaction processing method and device and computer readable storage medium
CN111798230A (en) * 2020-06-18 2020-10-20 昆明大棒客科技有限公司 Block chain based staged payment method, device and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"A consensus and incentive program for charging piles based on consortium blockchain";Qingsu He等;《CSEE Journal of Power and Energy Systems 》;第4卷(第4期);第452-458,全文 *
"区块链能拯救‘双11’吗?";栗建;《 IT经理世界》(第472期);第44-46页,全文 *

Also Published As

Publication number Publication date
CN112215611A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
US20210342873A1 (en) System and methods for discount retailing
CN112215611B (en) Block chain-based offer method, seller node equipment, terminal equipment and storage medium
JP7296930B2 (en) Systems and methods for enhanced commerce
US8768834B2 (en) Digital exchange and mobile wallet for digital currency
US11776025B2 (en) Client-side method, apparatus, and computer-readable medium on a network that leverages real-time sales volume for conducting transactions
US20130046605A1 (en) Group buying method and system for grocery and other multi-retailer environments
WO2013188820A2 (en) Apparatus, methods, and articles of manufacture for virtual currency transactions
WO2010091332A1 (en) System and method for converting closed loop cards into gift codes
US10528963B2 (en) Systems and methods for issuing, evaluating, and monitoring card-linked offers
CN103534723A (en) Online sale system through social auction method
US11620669B2 (en) System and method for a digital coin exchange
JP2019520641A (en) METHOD, APPARATUS AND SYSTEM FOR PROVIDING RANDOM ADDITIONAL DISCOUNTS AFTER Settlement in Electronic Commerce on an Open Market
CA2847674C (en) Auction method and server that establishes a sales price at the lowest bidding price among bidding prices of the selected winning bidders for all winning bidders satisfying an auction condition
US20140236749A1 (en) Applying customer feedback to group buying deals
CN110838066A (en) Settlement system, method and device under credit transaction scene
US20120323658A1 (en) Systems and methods for providing discount offers via an internet directory interface
CN112070505A (en) Resource verification and cancellation method and device
CN111401893A (en) Electronic card transaction management system and method
CN112200675B (en) Block chain-based transaction method, seller node system, equipment and medium
JPWO2004077323A1 (en) Calculation device / method, point or coupon service system
US20120203609A1 (en) System and method for a retail and investment application
CN113177820B (en) Resource processing method and system
WO2014089875A1 (en) Management method and service server of bonus point number
CN112184450B (en) Transaction settlement method, transaction node, device and medium based on blockchain
TW201911160A (en) Payment integration method and server for integrating payments for providing an improved payment integration process implemented by a server connected to a sales terminal and a plurality of payment terminals via a communication network

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
GR01 Patent grant
GR01 Patent grant