CN116562929A - Point exchange method based on blockchain and related equipment - Google Patents

Point exchange method based on blockchain and related equipment Download PDF

Info

Publication number
CN116562929A
CN116562929A CN202310356328.6A CN202310356328A CN116562929A CN 116562929 A CN116562929 A CN 116562929A CN 202310356328 A CN202310356328 A CN 202310356328A CN 116562929 A CN116562929 A CN 116562929A
Authority
CN
China
Prior art keywords
account
points
enterprise account
amount
redemption
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
Application number
CN202310356328.6A
Other languages
Chinese (zh)
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.)
Qingdao Haier Refrigerator Co Ltd
Qingdao Haier Smart Technology R&D Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Refrigerator Co Ltd
Qingdao Haier Smart Technology R&D Co Ltd
Haier Smart Home 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 Qingdao Haier Refrigerator Co Ltd, Qingdao Haier Smart Technology R&D Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Refrigerator Co Ltd
Priority to CN202310356328.6A priority Critical patent/CN116562929A/en
Publication of CN116562929A publication Critical patent/CN116562929A/en
Pending legal-status Critical Current

Links

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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0236Incentive or reward received by requiring registration or ID from user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a block chain-based point exchange method and related equipment. Relates to the technical field of block chains. The invention comprises the following steps: the enterprise account acquires a target enterprise account, the amount of the credits before the redemption and the account of the user in the target enterprise account according to the received request of the credits after the redemption from the user; the blockchain obtains the post-redemption amount of points issued by the target enterprise account according to the relationship between the points of the enterprise account and the points of the target enterprise account and the pre-redemption amount, and sends the post-redemption amount of points and the account of the user in the target enterprise account to the target enterprise account; the blockchain calculates the exchange amount according to the enterprise account and the pre-exchange point quantity, or calculates the exchange amount according to the target enterprise account and the post-exchange point quantity. The invention automatically converts the points by utilizing the intelligent contracts in the blockchain and ensures the authenticity and fairness of the whole point exchange process by utilizing the technical characteristics of the decentric, untampereable and consensus mechanism of the blockchain.

Description

Point exchange method based on blockchain and related equipment
Technical Field
The invention relates to the technical field of blockchains, in particular to a blockchain-based point exchange method and related equipment.
Background
Points have been widely used today as a marketing tool to increase user loyalty and liveness. Because enterprise points are issued by each enterprise separately, the points are too many in variety and difficult to manage. Therefore, a centralized point redemption system is proposed to address the point management difficulty. The centralized point exchange system generally needs an intermediary organization to make credit endorsements, and point exchanges of a plurality of enterprises are uniformly processed by the intermediary organization, so that the benefit relationship between the intermediary organization and the enterprises is complex, benefit delivery is easy to generate between the intermediary organization and the enterprises due to the opacity of the intermediary organization, and the authenticity and fairness of point exchanges are difficult to ensure. Therefore, the problem of store point redemption centralization in the prior art has not yet been addressed as an effective solution.
Disclosure of Invention
In view of the above problems, the present invention provides a method for exchanging points based on blockchain and related device for overcoming the above problems or at least partially solving the above problems, which implement the exchange of points based on blockchain, thereby implementing the decentralization of enterprise point exchange and ensuring the authenticity and fairness of point exchange.
Specifically, the invention provides a block chain-based point redemption method, which comprises the following steps:
the enterprise account acquires a target enterprise account, the amount of the credits before the exchange and the account of the user in the target enterprise account according to the received request of the credits after the exchange from the user; the point exchange request is used for exchanging the points issued by the enterprise account owned by the user into the points issued by the target enterprise account; the pre-redemption amount of points is the amount of points issued by the user that need to be redeemed with the enterprise account;
the blockchain obtains the post-redemption amount of points issued by the target enterprise account according to the relationship between the points of the enterprise account and the points of the target enterprise account and the pre-redemption amount of points, and sends the post-redemption amount of points and the account of the user in the target enterprise account to the target enterprise account;
the blockchain calculates to obtain the exchange amount according to the enterprise account and the pre-exchange point quantity, or calculates to obtain the exchange amount according to the target enterprise account and the post-exchange point quantity, wherein the exchange amount is the total amount of the universal currency required by exchanging the post-exchange point quantity;
the enterprise account transfers the redemption amount to the target enterprise account via the blockchain;
and the target enterprise account sends the points equivalent to the amount of the post-exchange points to the account of the user in the target enterprise account according to the received amount of the exchange and the amount of the post-exchange points and the account of the user in the target enterprise account.
Optionally, the blockchain obtains the post-redemption credit amount issued by the target enterprise account according to the relationship between the credit of the enterprise account and the credit of the target enterprise account and the pre-redemption credit amount, including:
invoking a communication intelligent contract, wherein the communication intelligent contract is internally recorded with at least the exchange proportion of the points issued by the enterprise account and the universal currency and the exchange proportion of the points issued by the target enterprise account and the universal currency; the generic intelligent contract is embedded in the blockchain;
inputting the account name of the enterprise account and the account name of the target enterprise account into the communication intelligent contract, and calculating to obtain the point exchange proportion of the enterprise account and the target enterprise account;
and inputting the pre-redemption amount of points into the intelligent contract, and calculating to obtain the post-redemption amount of points according to the point exchange proportion of the points of the enterprise account and the target enterprise account and the pre-redemption amount of points.
Optionally, the blockchain calculates a redemption amount according to the enterprise account and the pre-redemption amount, including:
invoking the intelligent contract, and inputting the account name of the enterprise account and the amount of the credits before the redemption into the intelligent contract;
the intelligent contract calculates the exchange amount according to the exchange proportion of the points issued by the enterprise account and the universal currency and the quantity of the points before the exchange;
the calculating the exchange amount according to the target enterprise account and the amount of the post-exchange points comprises the following steps:
invoking the intelligent contract, and inputting the account name of the target enterprise account and the amount of the post-redemption points into the intelligent contract;
and the intelligent contract calculates the exchange amount according to the exchange proportion of the points issued by the target enterprise account and the universal currency and the amount of the post-exchange points.
Optionally, the transferring the redemption amount to the target enterprise account by the enterprise account through the blockchain includes:
in response to the enterprise account drawing points of an amount equal to the pre-redemption amount from an account of the user corresponding to the enterprise account, the universal currency account of the blockchain obtains a redemption amount from the enterprise account, wherein the points issued by the enterprise account are stored in the account of the user corresponding to the enterprise account;
in response to the general currency account receiving the redemption amount, checking the redemption amount;
in response to the redemption amount checking passing, the blockchain transfers the redemption amount from the generic currency account to the target enterprise account through the redemption smart contract.
Optionally, said checking said redemption amount includes:
in response to the universal monetary account receiving the redemption amount, all nodes of the blockchain invoking the generic intelligent contract to verify whether the redemption amount is correct;
and in response to the verification of the redemption amount being correct, recognizing that the redemption amount check passes.
Optionally, the sending the points equal to the post-redemption point number to the user's account in the target enterprise account includes:
and the target enterprise account informs an enterprise internal server of adding the point data corresponding to the amount of the post-exchange points to the account of the user in the target enterprise account through a message sending mechanism of the blockchain.
Optionally, the point redemption method further includes:
allowing the enterprise account to issue a credit in response to the enterprise logging into the enterprise account;
in response to the enterprise account issuing the points, records generated at the time of the point issue are linked and verified.
Optionally, the point redemption method further includes:
enabling a generic smart contract embedded in the blockchain;
the blockchain generates the enterprise account and records the account name of the enterprise account into the intelligent contract;
creating a generic monetary account, the account name of which is sent into the redemption smart contract, the generic monetary account being commonly managed by all nodes of the blockchain.
Optionally, the allowing the enterprise account to issue points further includes:
obtaining a conversion ratio of the points to the common currency from the enterprise account in response to the enterprise account issuing the points, the conversion ratio of the points to the common currency being defined by at least the enterprise;
recording the exchange proportion into the intelligent contract;
allowing the enterprise account to equity issue the points according to the exchange relation, or allowing the enterprise account to lever issue the points according to the exchange relation.
The invention also provides a computer device, which comprises a memory, a processor and a machine executable program stored on the memory and running on the processor, wherein the processor executes the machine executable program to realize the block chain-based point exchange method.
According to the credit exchange method and the related equipment based on the blockchain, the enterprise account agent user performs credit exchange on the blockchain, conversion among different types of credits and calculation of exchange amount are performed through intelligent contracts when the credits are exchanged, and the transfer can be completed only through common currency common accounts and verification of all blockchain nodes when the exchange amount is transferred, so that the credit exchange is realized. The technical characteristics of the block chain decentralization, non-falsification and consensus mechanism are utilized, so that the authenticity and fairness of the whole process of point exchange are ensured.
The above, as well as additional objectives, advantages, and features of the present invention will become apparent to those skilled in the art from the following detailed description of a specific embodiment of the present invention when read in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter by way of example and not by way of limitation with reference to the accompanying drawings. The same reference numbers will be used throughout the drawings to refer to the same or like parts or portions. It will be appreciated by those skilled in the art that the drawings are not necessarily drawn to scale. In the accompanying drawings:
FIG. 1 is a schematic flow chart diagram of a point redemption method in accordance with one embodiment of the invention;
FIG. 2 is another schematic flow chart diagram of a point redemption method in accordance with one embodiment of the invention;
FIG. 3 is a schematic block diagram of a machine-readable storage medium according to one embodiment of the invention;
FIG. 4 is a schematic block diagram of a computer device in accordance with one embodiment of the present invention.
Detailed Description
A blockchain-based point redemption method and associated devices in accordance with embodiments of the present invention are described below with reference to fig. 1-4.
FIG. 1 is a schematic flow chart of a point redemption method according to one embodiment of the invention, as shown in FIG. 1, the embodiment of the invention provides a blockchain-based point redemption method comprising:
step S1: the enterprise account acquires a target enterprise account, the amount of the credits before the redemption and the account of the user in the target enterprise account according to the received request of the credits after the redemption from the user; the point exchange request is used for exchanging the points issued by the enterprise account owned by the user into the points issued by the target enterprise account; the number of the credits before the redemption is the number of the credits issued by the enterprise account which the user needs to use for the redemption;
step S2: the blockchain obtains the post-redemption amount of points issued by the target enterprise account according to the relationship between the points of the enterprise account and the points of the target enterprise account and the pre-redemption amount, and sends the post-redemption amount of points and the account of the user in the target enterprise account to the target enterprise account;
step S3: the blockchain calculates to obtain the exchange amount according to the enterprise account and the pre-exchange point quantity, or calculates to obtain the exchange amount according to the target enterprise account and the post-exchange point quantity, wherein the exchange amount is the total amount of the universal currency required by exchanging the post-exchange point quantity;
step S4: the enterprise account transfers the exchange amount to the target enterprise account through the blockchain;
step S5: and the target enterprise account sends the points equal to the amount of the post-exchange points to the account of the user in the target enterprise account according to the received amount of the exchange points, the amount of the post-exchange points and the account of the user in the target enterprise account.
In particular, the points may be digital assets of the user, and the common currency is preferably rmb. Specifically, the enterprise account is preferably an enterprise internal server, and the enterprise internal server can be used as a node of the blockchain to be connected with other servers used as nodes of the blockchain, or can be independent of the blockchain and connected with the blockchain. The user registers different accounts with different enterprises, and the points issued by the enterprises are stored in the accounts registered by the user with the enterprises. When the user needs to conduct the communication between the points issued by different enterprises, the computer server of the user sends a slave request to the internal server of the enterprise, the enterprise server receives and takes the points from the account registered by the user in the enterprise according to the request, and the user is connected with the blockchain instead of the client, so that the communication between the points is completed.
According to the credit exchange method and the related equipment based on the blockchain, the enterprise account agent user performs credit exchange on the blockchain, conversion of exchange proportion and calculation of exchange amount among different types of credits are performed through intelligent contracts when the credits are exchanged, and the transfer can be completed only through common currency common accounts and verification of all blockchain nodes when the exchange amount is transferred, so that the credit exchange is achieved. The intelligent contract in the block chain is utilized to automatically convert the points, and the technical characteristics of the block chain of decentralization, non-tampering and consensus mechanism are utilized, so that the authenticity and fairness of the whole point exchange process are ensured.
In some embodiments of the present invention, the blockchain obtains the post-redemption credit amount issued by the target enterprise account according to the relationship between the credit of the enterprise account and the credit of the target enterprise account and the pre-redemption credit amount, including:
calling a communication intelligent contract, wherein the communication intelligent contract is recorded with at least the exchange proportion of the points issued by the enterprise account and the common currency and the exchange proportion of the points issued by the target enterprise account and the common currency; the intelligent contract is embedded in the blockchain;
inputting the account name of the enterprise account and the account name of the target enterprise account into a communication intelligent contract, and calculating to obtain the point exchange proportion of the enterprise account and the target enterprise account;
and inputting the pre-redemption amount of points into the intelligent contract for communication, and calculating to obtain the post-redemption amount of points according to the point exchange proportion of the enterprise account and the target enterprise account and the pre-redemption amount of points.
Specifically, after the intelligent contract is communicated to receive the account name of the enterprise account and the account name of the target enterprise account, inquiring the exchange relationship between the points issued by the enterprise account and the universal currency according to the account name of the enterprise account, inquiring the exchange relationship between the points issued by the target enterprise account and the universal currency according to the account name of the target enterprise account, and finally calculating the exchange relationship between the points issued by the enterprise account and the universal currency and the exchange relationship between the points issued by the target enterprise account and the universal currency to obtain the point exchange proportion of the points issued by the enterprise account and the target enterprise account.
In some embodiments of the present invention, the blockchain calculates a redemption amount based on the enterprise account and the number of premiums, including:
calling a communication intelligent contract, and inputting the account name and the amount of the credits before the communication into the communication intelligent contract;
calculating the exchange amount by the intelligent contract according to the exchange proportion of the points issued by the enterprise account and the universal currency and the quantity of the points before the exchange;
according to the target enterprise account and the amount of the points after the exchange, the method comprises the following steps:
calling a communication intelligent contract, and inputting the account name and the amount of the post-exchange points of the target enterprise account into the communication intelligent contract;
and calculating the exchange amount by the intelligent contract according to the exchange proportion of the points issued by the account of the target enterprise and the universal currency and the amount of the points after the exchange.
According to the setting method provided by the embodiment of the invention, the conversion between the points and the conversion amount are automatically carried out by utilizing the intelligent contract, and compared with the conversion carried out by the intermediary in the prior art, the accuracy and the authenticity of the point conversion result and the conversion amount are ensured.
In some embodiments of the present invention, the transferring the redemption amount to the target enterprise account by the enterprise account through the blockchain includes:
in response to the enterprise account drawing points of the same amount as the pre-redemption amount from an account of the user corresponding to the enterprise account, the universal currency account of the blockchain obtains the redemption amount from the enterprise account, and the points issued by the enterprise account are stored in the account of the user corresponding to the enterprise account;
in response to the general currency account receiving the redemption amount, checking the redemption amount;
in response to the redemption amount checking passing, the blockchain transfers the redemption amount from the generic currency account to the target enterprise account through the redemption smart contract.
In the setting method of the embodiment of the present invention,
in some embodiments of the invention, the checking the redemption amount includes:
in response to the universal currency account receiving the redemption amount, all nodes of the blockchain invoke a generic intelligent contract to verify whether the redemption amount is correct;
in response to the redemption amount verifying correct, the redemption amount check is deemed to pass.
Specifically, the universal currency account is managed by all nodes of the blockchain, when the universal currency account finishes receiving the converted amount, and when the conversion is converted, according to a consensus mechanism of the blockchain, all nodes call intelligent contracts to verify whether the converted amount is correct, and after all nodes pass verification, the universal currency account is allowed to convert the converted amount. When the data of a single node is modified, verification of the redemption amount may be made by other nodes. The authenticity and the non-tamper property of the exchange amount are ensured.
In some embodiments of the present invention, the sending the same amount of points as the amount of post-redemption points to the user's account in the target enterprise account includes:
the target enterprise account informs an enterprise internal server of adding the point data corresponding to the amount of the post-redemption points to the account of the user in the target enterprise account through a message sending mechanism of the blockchain.
In some embodiments of the present invention, when an enterprise account is logged out, that is, the enterprise does not execute the point exchange method any more, the blockchain sends a request for point exchange to the nodes on all blockchains through the intelligent contract, all the nodes check the total amount of various points currently owned by the logged out enterprise account and the balance of the common currency account, and after checking, destroy all the types of points owned by the enterprise account and exchange the points into the common currency, thus completing the whole log-out process.
As shown in fig. 2, in some embodiments of the present invention, the point redemption method further includes:
step S21: responsive to the enterprise logging into the enterprise account, allowing the enterprise account to issue a credit;
step S22: in response to the enterprise account issuing the points, records generated at the time of the point issuance are linked and verified.
Specifically, the enterprise server registers accounts on the blocks of the blockchain, and as the enterprise accounts, the blocks form the blockchain, the enterprise server and the block servers are all in communication connection through a network, and data transmission is performed through an encryption technology.
Further, there are mainly two paths for the point redemption, one is the C2C redemption and the other is the B2B redemption. The C2C exchange is that the enterprise is only responsible for issuing the points, does not endorse the value of the points, is similar to the operation mode of a stock exchange, and the points are exchanged by self-pairing transaction between clients, and the proportion of different point exchanges is determined by the clients. And B2B exchange, namely, rules and proportion for deciding point exchange among enterprises, wherein the point exchange of customers is exchanged through an intermediary mechanism according to the proportion set by the enterprises, and the whole process is dominated by the enterprises. The C2C exchange has high marketization degree, but the points are different from stocks, the points are more in release types, small in release amount, small in use range and extremely low in transaction amount, if the points are exchanged among clients autonomously, the situation that the clients who want to sell the points cannot find proper buyers and the clients who want to buy the points cannot find proper sellers easily occurs, and finally the point communication cannot be realized. Thus, the point redemption method of the present invention is preferably a B2B based point redemption method.
According to the setting method of the embodiment of the invention, based on the block chain issuing integration, the technical characteristics of block chain decentralization and non-falsifiability are utilized, thus decentralization of integration issuing is realized, and the situation that enterprises and integration issuing institutions carry out benefit conveying is avoided.
As shown in fig. 2, in some embodiments of the present invention, the point redemption method further includes:
step S23: enabling a generic smart contract embedded in the blockchain;
step S24: generating an enterprise account by the blockchain, and recording the account name of the enterprise account into a communication intelligent contract;
step S25: creating a universal monetary account, sending an account name of the universal monetary account to the generic intelligent contract, the universal monetary account being commonly managed by all nodes of the blockchain.
In some embodiments of the present invention, the above-mentioned allowing the enterprise account to issue the points further includes:
in response to the enterprise account issuing the points, obtaining a conversion ratio of the points to the common currency from the enterprise account, the conversion ratio of the points to the common currency being defined by at least the enterprise;
recording the exchange proportion into a communication intelligent contract;
the enterprise account is allowed to issue points according to the exchange relationship or the enterprise account is allowed to lever issue points according to the exchange relationship.
In particular, the points are preferably digital assets of the user, and both the issuance and redemption of the points require a value anchor, such as: enterprise a communicates to realize the movement of customer digital assets between different enterprises, while enterprise a exchanges 1 primordial to a currency per 100 points. And B enterprise 200 points exchange 1 element of the civil coin, so that the exchange rate of A points exchange B points is 1:2, and the A enterprise completes the value anchoring of the points. When the user performs exchange, the user can directly exchange according to the established exchange rate. When the enterprise joins the blockchain, the enterprise firstly credits the blockchain general currency account with a certain amount of RMB, and then issues the equal-value points on the blockchain according to the exchange relationship between the points issued by the enterprise and the RMB, so that the points are issued.
Wherein, the allowing the enterprise account to issue the points according to the exchange relationship, includes: the enterprise account credits the common currency account with equal amount according to the amount of points required to be issued and according to the exchange relation;
the above-mentioned allowing the enterprise account to leverage issue points according to the exchange relationship includes: the enterprise account does not transfer the general currency to the general currency account when issuing the points, but transfers the general currency of equal amount to the general currency account according to the real-time exchange when the point exchange occurs.
As shown in fig. 3 and 4, the present embodiment also provides a machine-readable storage medium and a computer device. Fig. 3 is a schematic block diagram of a machine-readable storage medium 40 according to one embodiment of the invention, and fig. 4 is a schematic block diagram of a computer device 50 according to one embodiment of the invention.
The machine-readable storage medium 40 has stored thereon a machine-executable program 41, which when executed by a processor, implements the blockchain-based point redemption method of any of the embodiments described above.
The computer device 50 may include a memory 520, a processor 510, and a machine executable program 41 stored on the memory 520 and running on the processor 510, and the processor 510 implements the blockchain-based point redemption method of any of the embodiments described above when executing the machine executable program 41.
It should be noted that the logic and/or steps represented in the flow diagrams or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any machine-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
For the purposes of this description of embodiments, a machine-readable storage medium 40 can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the machine-readable storage medium 40 include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the machine-readable storage medium 40 may even be paper or other suitable medium upon which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
The computer device 50 may be, for example, a server, a desktop computer, a notebook computer, a tablet computer, or a smart phone. In some examples, computer device 50 may be a cloud computing node. Computer device 50 may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer device 50 may be implemented in a distributed cloud computing environment where remote processing devices coupled via a communications network perform tasks. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
Computer device 50 may include a processor 510 adapted to execute stored instructions, a memory 520 providing temporary storage space for the operation of the instructions during operation. Processor 510 may be a single core processor, a multi-core processor, a computing cluster, or any number of other configurations. Memory 520 may include Random Access Memory (RAM), read only memory, flash memory, or any other suitable storage system.
Processor 510 may be connected through a system interconnect (e.g., PCI-Express, etc.) to an I/O interface (input/output interface) adapted to connect computer device 50 to one or more I/O devices (input/output devices). The I/O devices may include, for example, a keyboard and a pointing device, which may include a touch pad or touch screen, among others. The I/O device may be a built-in component of the computer device 50 or may be a device externally connected to the computing device.
The processor 510 may also be linked through a system interconnect to a display interface suitable for connecting the computer device 50 to a display device. The display device may include a display screen as a built-in component of the computer device 50. The display device may also include a computer monitor, television, projector, or the like, that is externally connected to the computer device 50. Further, a network interface controller (network interface controller, NIC) may be adapted to connect the computer device 50 to a network through a system interconnect. In some embodiments, the NIC may use any suitable interface or protocol (such as an internet small computer system interface, etc.) to transfer data. The network may be a cellular network, a radio network, a Wide Area Network (WAN), a Local Area Network (LAN), or the internet, among others. The remote device may be connected to the computing device through a network.
The flowcharts provided by this embodiment are not intended to indicate that the operations of the method are to be performed in any particular order, or that all of the operations of the method are included in all of each case. Furthermore, the method may include additional operations. Additional variations may be made to the above-described methods within the scope of the technical ideas provided by the methods of the present embodiments.

Claims (10)

1. A blockchain-based point redemption method comprising:
the enterprise account acquires a target enterprise account, the amount of the credits before the exchange and the account of the user in the target enterprise account according to the received request of the credits after the exchange from the user; the point exchange request is used for exchanging the points issued by the enterprise account owned by the user into the points issued by the target enterprise account; the pre-redemption amount of points is the amount of points issued by the user that need to be redeemed with the enterprise account;
the blockchain obtains the post-redemption amount of points issued by the target enterprise account according to the relationship between the points of the enterprise account and the points of the target enterprise account and the pre-redemption amount of points, and sends the post-redemption amount of points and the account of the user in the target enterprise account to the target enterprise account;
the blockchain calculates to obtain the exchange amount according to the enterprise account and the pre-exchange point quantity, or calculates to obtain the exchange amount according to the target enterprise account and the post-exchange point quantity, wherein the exchange amount is the total amount of the universal currency required by exchanging the post-exchange point quantity;
the enterprise account transfers the redemption amount to the target enterprise account via the blockchain;
and the target enterprise account sends the points equivalent to the amount of the post-exchange points to the account of the user in the target enterprise account according to the received amount of the exchange and the amount of the post-exchange points and the account of the user in the target enterprise account.
2. The redemption method of claim 1, wherein the blockchain deriving the number of post-redemption points issued by the target enterprise account based on the relationship between the points of the enterprise account and the points of the target enterprise account and the number of pre-redemption points comprises:
invoking a communication intelligent contract, wherein the communication intelligent contract is internally recorded with at least the exchange proportion of the points issued by the enterprise account and the universal currency and the exchange proportion of the points issued by the target enterprise account and the universal currency; the generic intelligent contract is embedded in the blockchain;
inputting the account name of the enterprise account and the account name of the target enterprise account into the communication intelligent contract, and calculating to obtain the point exchange proportion of the enterprise account and the target enterprise account;
and inputting the pre-redemption amount of points into the intelligent contract, and calculating to obtain the post-redemption amount of points according to the point exchange proportion of the points of the enterprise account and the target enterprise account and the pre-redemption amount of points.
3. The point redemption method of claim 2, wherein the blockchain calculating a redemption amount based on the enterprise account and the pre-redemption amount includes:
invoking the intelligent contract, and inputting the account name of the enterprise account and the amount of the credits before the redemption into the intelligent contract;
the intelligent contract calculates the exchange amount according to the exchange proportion of the points issued by the enterprise account and the universal currency and the quantity of the points before the exchange;
the calculating the exchange amount according to the target enterprise account and the amount of the post-exchange points comprises the following steps:
invoking the intelligent contract, and inputting the account name of the target enterprise account and the amount of the post-redemption points into the intelligent contract;
and the intelligent contract calculates the exchange amount according to the exchange proportion of the points issued by the target enterprise account and the universal currency and the amount of the post-exchange points.
4. The point redemption method of claim 2, wherein the enterprise account transferring the redemption amount to the target enterprise account through the blockchain includes:
in response to the enterprise account drawing points of an amount equal to the pre-redemption amount from an account of the user corresponding to the enterprise account, the universal currency account of the blockchain obtains a redemption amount from the enterprise account, wherein the points issued by the enterprise account are stored in the account of the user corresponding to the enterprise account;
in response to the general currency account receiving the redemption amount, checking the redemption amount;
in response to the redemption amount checking passing, the blockchain transfers the redemption amount from the generic currency account to the target enterprise account through the redemption smart contract.
5. The point redemption method of claim 4, wherein the checking the redemption amount includes:
in response to the universal monetary account receiving the redemption amount, all nodes of the blockchain invoking the generic intelligent contract to verify whether the redemption amount is correct;
and in response to the verification of the redemption amount being correct, recognizing that the redemption amount check passes.
6. The redemption method of claim 1, wherein the transmitting the points equal to the number of post-redemption points to the user's account with the target enterprise account includes:
and the target enterprise account informs an enterprise internal server of adding the point data corresponding to the amount of the post-exchange points to the account of the user in the target enterprise account through a message sending mechanism of the blockchain.
7. The point redemption method of claim 1, further comprising:
allowing the enterprise account to issue a credit in response to the enterprise logging into the enterprise account;
in response to the enterprise account issuing the points, records generated at the time of the point issue are linked and verified.
8. The point redemption method of claim 1, further comprising:
enabling a generic smart contract embedded in the blockchain;
the blockchain generates the enterprise account and records the account name of the enterprise account into the intelligent contract;
creating a generic monetary account, the account name of which is sent into the redemption smart contract, the generic monetary account being commonly managed by all nodes of the blockchain.
9. The point redemption method of claim 7, wherein the allowing the enterprise account to issue points further comprises:
obtaining a conversion ratio of the points to the common currency from the enterprise account in response to the enterprise account issuing the points, the conversion ratio of the points to the common currency being defined by at least the enterprise;
recording the exchange proportion into the intelligent contract;
allowing the enterprise account to equity issue the points according to the exchange relation, or allowing the enterprise account to lever issue the points according to the exchange relation.
10. A computer device comprising a memory, a processor and a machine executable program stored on the memory and running on the processor, and the processor implementing the blockchain-based point redemption method of any of claims 1 to 9 when executing the machine executable program.
CN202310356328.6A 2023-04-04 2023-04-04 Point exchange method based on blockchain and related equipment Pending CN116562929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310356328.6A CN116562929A (en) 2023-04-04 2023-04-04 Point exchange method based on blockchain and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310356328.6A CN116562929A (en) 2023-04-04 2023-04-04 Point exchange method based on blockchain and related equipment

Publications (1)

Publication Number Publication Date
CN116562929A true CN116562929A (en) 2023-08-08

Family

ID=87499096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310356328.6A Pending CN116562929A (en) 2023-04-04 2023-04-04 Point exchange method based on blockchain and related equipment

Country Status (1)

Country Link
CN (1) CN116562929A (en)

Similar Documents

Publication Publication Date Title
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
CN108764868A (en) Block chain node-agent account checking method and block reconciliation agent node
KR20200094531A (en) System and method for providing digital asset services basesd on blockchain
JP6457391B2 (en) Method and system for distributing data streams
CN109643415A (en) Trade management technology
CN110866753B (en) Third party settlement control method and device, electronic equipment and storage medium
KR102343432B1 (en) Virtual currency payment system and method on-line and off-line for nodes included in mobile-based blockchain distributed network
KR20190057909A (en) Real estate contract method and broker system based on block chain
WO2023207146A1 (en) Service simulation method and apparatus for esop system, and device and storage medium
CN109933626B (en) Financial business data processing method and device and financial transaction terminal
CN112907244B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN112381645A (en) Information processing method and device for bill transaction
KR102073591B1 (en) System and method for managing apartment house using blockchain
CN113706302A (en) Cross-chain-based block chain financial data generation method and system
KR20200094983A (en) Block chain based electronic contract method and system
CN116562929A (en) Point exchange method based on blockchain and related equipment
CN115983853A (en) Client side green electricity application service method and system based on block chain and electronic equipment
CN110276612A (en) Bill business intention data transmission method and related system
CN113781230A (en) Transaction processing method and device based on block chain
CN110852891B (en) Data processing method and device based on rolling stock and readable storage medium
CN112633953A (en) Service processing method and system based on block chain
KR102125081B1 (en) Blockchain Middle Ware System using Virtual Money
JP2021015609A (en) Information processing system
US20190130401A1 (en) Alternative payment server and method for providing alternative payment service using same
KR102398641B1 (en) System for providing card payment agent service and method performing thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication