CN113094433A - Block chain-based consumption coupon processing method and device - Google Patents

Block chain-based consumption coupon processing method and device Download PDF

Info

Publication number
CN113094433A
CN113094433A CN202110365714.2A CN202110365714A CN113094433A CN 113094433 A CN113094433 A CN 113094433A CN 202110365714 A CN202110365714 A CN 202110365714A CN 113094433 A CN113094433 A CN 113094433A
Authority
CN
China
Prior art keywords
consumption
chain
coupon
coupons
consumption coupon
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
CN202110365714.2A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110365714.2A priority Critical patent/CN113094433A/en
Publication of CN113094433A publication Critical patent/CN113094433A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • 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
    • 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/0222During e-commerce, i.e. online transactions

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a block chain-based consumption coupon processing method and device, relates to the field of information security, and can be used in the field of finance, and the method comprises the following steps: determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end; distributing the consumption operation instruction to a consumption coupon fragmentation chain corresponding to the optimal consumption coupon main chain so that the consumption coupon fragmentation chain executes the consumption operation instruction; and performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain. The circulation of the electronic consumer coupons can be realized by utilizing the block chain technology.

Description

Block chain-based consumption coupon processing method and device
Technical Field
The application relates to the field of information security, can be used in the field of finance, and particularly relates to a block chain-based consumption coupon processing method and device.
Background
In the big background of electronic commerce, in order to stabilize the economic situation, the consumption coupon management end of government institutions, financial institutions and third party payment platforms often issues electronic consumption coupons to stimulate consumption. The traditional electronic consumer coupon circulation mode has the following bottlenecks, which cause that the traditional electronic consumer coupon circulation mode has poor effect in practical use, and is particularly represented in the following aspects:
(1) the electronic consumption coupon is more limited in exchange and has a high threshold.
(2) The electronic consumption coupons are too dispersed to be shared and accumulated for use, and the circulation rate of the consumption coupons and the consumption interest of users are reduced.
(3) The issued electronic consumer coupons are opaque, the public trust is lost, a user cannot check whether the consumer coupons are issued in time, and the trust stickiness is lacked.
(4) Under a centralized architecture, an electronic consumer ticket operation platform is extremely complex.
(5) The electronic consumer ticket data is easy to be attacked by hackers and has low security.
(6) The electronic consumption coupon clearing rules between government agencies and merchant enterprises are complex, and an effective consumption coupon ecosystem is not formed.
At present, the block chain technology is used as a core technology for triggering a subversive revolution surge under the current situation, the problems can be well solved, the conventional transaction process and record storage mode can be changed, so that the transaction cost is greatly reduced, the transaction efficiency is improved, meanwhile, the block chain technology has the properties of transparency, openness and non-falsification, the full-process deposit record of the electronic consumption coupons from issuing to consuming can be carried out, and the traceability of issuing and consuming is ensured. At present, there is no method for realizing the circulation of consumption tickets by applying the block chain technology.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a block chain-based consumption coupon processing method and device, which can realize the circulation of electronic consumption coupons by using a block chain technology.
In order to solve the technical problem, the application provides the following technical scheme:
in a first aspect, the present application provides a block chain-based consumption ticket processing method, including:
determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end;
distributing the consumption operation instruction to a consumption coupon fragmentation chain corresponding to the optimal consumption coupon main chain so that the consumption coupon fragmentation chain executes the consumption operation instruction;
and performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain.
Further, the determining an optimal consumption coupon main chain according to the consumption operation instruction received from the consumption coupon management end and the load balancing rule of the consumption coupon management end comprises:
determining the weight of each consumption coupon main chain according to the load balancing rule;
and determining the optimal consumption coupon main chain according to the weight.
Further, the step of executing the consuming operation instruction by the consuming ticket fragmentation chain comprises:
and executing fragment chain consumption coupon generation operation according to the preset name, denomination, type, validity period, use range and use platform of the consumption coupons.
Further, the step of executing the consuming operation instruction by the consuming ticket fragmentation chain further includes:
and executing fragmentation chain consumption coupon issuing operation on the generated consumption coupons according to preset use time, use mode, denomination, activity name, issuing object, issuing form, issuing data and getting limit of the consumption coupons.
Further, the step of executing the consuming operation instruction by the consuming ticket fragmentation chain further includes:
and sequentially executing fragmentation chain consumption coupon sharing operation, getting operation, consumption operation and invalidation operation on the issued consumption coupons.
Further, the performing on-chain data synchronization and off-chain data synchronization on the execution results that are well-known on the chain of the consumption coupon shards includes:
uploading the key information of the consumption coupons corresponding to the consensus-completed consumption coupon fragmentation chain to the consumption coupon main chain; the key information comprises information such as consumption coupon ID, a release main body, main body description, consumption coupon type, consumption coupon amount, consumption coupon starting validity period, consumption coupon ending validity period, available commodity, consumer name, consumer contact telephone, creator, creation time, chain cut ID and the like;
confirming the key information of the consumption coupons on the consumption coupon main chain corresponding to the consumption coupon fragmentation chain in a node voting manner, and broadcasting the confirmed key information of the consumption coupons to other consumption coupon main chains to finish the data synchronization on the chain;
and downloading the confirmed key information of the consumption coupons to the consumption coupon management end to finish the data synchronization under the chain.
In a second aspect, the present application provides a block chain-based consumption ticket processing apparatus, comprising:
the optimal main chain determining unit is used for determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end;
an operation instruction execution unit, configured to allocate the consuming operation instruction to a consuming coupon fragmentation chain corresponding to the optimal consuming coupon main chain, so that the consuming coupon fragmentation chain executes the consuming operation instruction;
and the data synchronization unit is used for performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain.
Further, the optimal main chain determining unit includes:
the main chain weight determining module is used for determining the weight of each consumption coupon main chain according to the load balancing rule;
and the optimal main chain determining module is used for determining an optimal consumption coupon main chain according to the weight.
Further, the block chain-based consumption ticket processing apparatus is further specifically configured to:
and executing fragment chain consumption coupon generation operation according to the preset name, denomination, type, validity period, use range and use platform of the consumption coupons.
Further, the block chain-based consumption ticket processing apparatus is further specifically configured to:
and executing fragmentation chain consumption coupon issuing operation on the generated consumption coupons according to preset use time, use mode, denomination, activity name, issuing object, issuing form, issuing data and getting limit of the consumption coupons.
Further, the block chain-based consumption ticket processing apparatus is further specifically configured to:
and sequentially executing fragmentation chain consumption coupon sharing operation, getting operation, consumption operation and invalidation operation on the issued consumption coupons.
Further, the data synchronization unit includes:
the key information uploading module is used for uploading the key information of the consumption coupons corresponding to the consensus-completed consumption coupon fragmentation chain to the consumption coupon main chain; the key information comprises information such as consumption coupon ID, a release main body, main body description, consumption coupon type, consumption coupon amount, consumption coupon starting validity period, consumption coupon ending validity period, available commodity, consumer name, consumer contact telephone, creator, creation time, chain cut ID and the like;
the on-chain data synchronization module is used for confirming the key information of the consumption coupons on the consumption coupon main chain corresponding to the consumption coupon fragmentation chain in a node voting manner and broadcasting the confirmed key information of the consumption coupons to other consumption coupon main chains to finish on-chain data synchronization;
and the linked data synchronization module is used for downloading the confirmed key information of the consumption coupons to the consumption coupon management end to complete linked data synchronization.
In a third aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the block chain based method for processing consumer coupons when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the block chain based consumption ticket processing method.
Aiming at the problems in the prior art, the block chain-based consumption coupon processing method and device can realize the circulation of electronic consumption coupons by using a block chain technology, and meanwhile, the block chain technology has the properties of transparency, openness and non-falsification, so that the evidence storage record of the whole flow from the issuance to the consumption of the electronic consumption coupons can be carried out, the traceability of the issuance consumption is ensured, the safety of electronic commerce operation is greatly improved, the circulation efficiency of the electronic consumption coupons is improved, the consumption experience of customers is improved, and further, government institutions or business enterprises can be guided to carry out optimization and release decision on the electronic consumption coupons.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a block chain-based consumption coupon processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of determining an optimal consuming coupon backbone according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating uplink data synchronization and downlink data synchronization according to an embodiment of the present application;
FIG. 4 is a block diagram of a block chain based consumption ticket processing apparatus according to an embodiment of the present application;
FIG. 5 is a structural diagram of an optimum main chain determining unit in the embodiment of the present application;
FIG. 6 is a block diagram of a data synchronization unit in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application;
FIG. 8 is a diagram of a multi-scenario management system design architecture in an embodiment of the present application;
FIG. 9 is a schematic view of a service application scenario of a multi-scenario management system in an embodiment of the present application;
FIG. 10 is a schematic view illustrating a business operation flow of a multi-scenario management system in an embodiment of the present application;
FIG. 11 is a block chain node diagram of a multi-scenario management system according to an embodiment of the present application;
fig. 12 is a schematic diagram of transaction processing and an account book of the multi-scenario management system in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The block chain-based consumption coupon processing method and device relate to the field of information security, can be used in the financial field, and can also be used in any field except the financial field.
Referring to fig. 1, in order to enable circulation of electronic consumer tickets by using a block chain technology, the present application provides a block chain-based consumer ticket processing method, including:
s101: determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end;
s102: distributing the consumption operation instruction to a consumption coupon fragmentation chain corresponding to the optimal consumption coupon main chain so that the consumption coupon fragmentation chain executes the consumption operation instruction;
s103: and performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain.
It can be understood that the block chain based consumption coupon processing method provided by the application can be applied to a block chain based consumption coupon multi-scenario management system. The system uses the block chain technology to determine the authenticity of the transaction commitment, can grasp the wind control standard, provides guarantee for the consumption coupon voucher generated on the block chain, and ensures that consumers can carry out transaction and transfer with confidence. Based on the block chain technology, each participant can obtain a complete consumption track of the consumption coupon in the system, and through effective statistical analysis and data mining, government institutions or business enterprises can be helped to understand consumption patterns of consumers, so that promotion is improved to provide personalized and customized preferential combinations, and potential target consumers are discovered while existing consumers are maintained.
Based on the consensus mechanism of the block chain technology, the issuing, circulation and use of the consumption coupon do not need a central organization, thereby not only preventing the fraudulent events, but also providing more convenient, independent, efficient and low-cost service for government organizations or business enterprises.
The technical scheme of the application is described in detail in the following with reference to the accompanying drawings.
Referring to fig. 8, a design architecture diagram of a multi-scenario management system for consuming tickets based on block chains includes: the system comprises three major parts, namely a bottom management and control system, a core component and a consumer coupon ecology.
(1) The bottom layer management and control system comprises core modules such as a distributed database, a publishing platform, a data management and control platform and a hyperlink service.
The distributed data base is a decentralized data base, and is composed of a group of data which are distributed on different computers in a computer network, and each node in the network has independent processing capacity and can execute local application. At the same time, each node can also execute global applications through the network communication subsystem. The basic features of a distributed database include physical distribution, logical integrity, and site autonomy. Other features may also be derived from these three basic features, including data distribution transparency, mechanisms to reach consensus on established agreements, appropriate data redundancy, and the distribution of transaction management. Data such as encrypted stored accounts and transaction events are stored in the distributed database, and the distributed database is provided with an authority management and encryption and decryption algorithm module, so that rear-end access control on bottom data can be realized.
And secondly, the release platform is a platform for registering the relevant information of the consumer coupons and automatically generating a hyperlink. The platform can register consumption coupon marketing information (including a use range, a consumption coupon category, an aging time and a user use appointment), can also submit automatic accounting, consumption coupon total cost, popularization number and the like, and generate a hyperlink. The hyperlink can be downloaded, exported, and shared across multiple consumption instrument managers (also known as channels).
The data management and control platform can provide integrated, self-service data management service and a unified data access interface, integrates high-added-value data generated in the process of hyperlink sharing of all parties, provides data analysis, data management, data calling and the like, and is used for guiding government institutions or business enterprises to carry out consumption coupon optimization and release decision.
The hyperchain service can be provided for participants to obtain the consumption coupons through different channels (such as various large banks, government agencies, merchant enterprises, third-party payment platforms and the like), consumption coupon consumption is realized in the chain sharing and spreading process, and the consumption coupons are continuously and rapidly split in block chain multi-scene application, so that marketing conversion between the consumption coupons and commodities is realized.
(2) The core components include application programming interfaces, software development kits, consumer coupon release, consumer coupon redemption, adoption, reimbursement payment, remittance clearing, and consumer coupon uplink systems, among other components.
The application programming interface, the software development kit, the consumption coupon release, the consumption coupon exchange, the reception situation, the reimbursement payment, the remittance clearing and the like are light-weight, high-safety and high-availability components aiming at block link point data processing, provide a calling interface for upper-layer application, and forward the calling interface to a lower-layer management and control system for processing, and the components can be plugged and flexibly assembled, so that the secondary development efficiency is improved, the development cost is reduced, and more functions and solution sub-components can be provided according to business and scene appeal in the follow-up process.
And the consumption coupon chaining system is a consumption coupon management system realized based on a block chain, and because the block chain is a decentralized distributed account book, the consumption coupon chaining system accesses unified consumption coupons based on the block chain, and each added government agency or business enterprise can stimulate user consumption according to own consumption coupon release rules. The consumption coupons can be issued on the chain or a pass (Token) is issued on the chain aiming at each kind of consumption coupons accessed, the exchange between the consumption coupons can realize point-to-point transaction through an intelligent contract, thus the consumption coupons of users can be uniformly accumulated to be used by any party in the consumption coupon alliance, the 'exit' of the consumption coupons is expanded, and diversified services are enjoyed. As the nodes in the block chain network, people can supervise each other, the transaction is transparent and traceable, and the public confidence of the consumer coupons is improved.
(3) The consumer coupon ecology comprises modes of consumer coupon alliance, consumer coupon marketing and the like.
The consumption coupon alliance supports an access mechanism of an alliance chain, and provides functions of multi-chain isolation, authority management of alliance multi-organization multi-account numbers and the like in a multi-organization association and regional autonomous mode.
Consumption coupon marketing refers to popularization, exchange, sharing, exchange and the like of consumption coupons, the conversion rate between the consumption coupons and commodities is improved through the marketing scheme of the consumption coupons, drainage of different channels is realized, the consumption rate of consumers is increased, and diversified services are enjoyed.
According to the above description, the block chain-based consumption coupon processing method provided by the application can realize circulation of electronic consumption coupons by using a block chain technology, and meanwhile, the block chain technology has the properties of transparent disclosure and non-falsification, so that the evidence storage record of the whole flow from issuance to consumption of the electronic consumption coupons can be carried out on the electronic consumption coupons, traceability of issuance consumption is guaranteed, the safety of electronic commerce operation is greatly improved, the circulation efficiency of the electronic consumption coupons is improved, the consumption experience of customers is improved, and further, government institutions or business enterprises can be guided to carry out optimization and release decision on the electronic consumption coupons.
Referring to fig. 2, determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end includes:
s201: determining the weight of each consumption coupon main chain according to a load balancing rule;
s202: and determining the optimal consumption coupon main chain according to the weight.
It can be understood that the multi-scenario management system based on block chain consumption coupons can access different consumption coupon management terminals (also called channels), such as various large banks, government agencies, third party payment platforms and the like. The channel may initiate operating instructions for a consumer ticket-related transaction. The operation instructions comprise a consumption coupon generating operation, a consumption coupon issuing operation, a consumption coupon sharing operation, a consumption coupon getting operation, a consumption coupon consuming operation, a consumption coupon canceling operation and the like.
Aiming at the operation instruction, the optimal consumption coupon main chain can be determined according to the consumption operation instruction received from the consumption coupon management end and the load balancing rule of the consumption coupon management end.
Specifically, DNS load balancing can be performed according to the user domain name, and a corresponding main-chain server is requested to perform a service transaction operation. The DNS load balancing processing can effectively solve the problems of transaction network congestion and server downtime, and when network congestion occurs or a server does not respond, the best consumer coupon main chain can be selected according to the DNS load balancing rule, so that the block chain performance is greatly improved.
In addition, the weight of each consumption coupon main chain can be determined according to the load balancing rule, for example, the weight of a more idle server is great, the weight of a more busy server is small, and the like, and the application is not limited to this. After the weights of the servers are determined, the optimal consumption coupon main chain can be determined according to the weights, for example, the main chain corresponding to the server with the largest weight can be selected as the optimal consumption coupon main chain.
In an embodiment, the service transaction operation specifically includes, according to the sequence of service occurrence: consumption coupon generation, consumption coupon release, consumption coupon sharing, consumption coupon reception, consumption coupon consumption, consumption coupon invalidation, chain-down data synchronization and the like.
The DNS load balancing method may be as follows:
firstly, a user requests domain name resolution from a DNS server;
step two, the DNS server returns the corresponding IP address xxx
And thirdly, the user accesses the server xxx.xxx.xxx corresponding to the server cluster by using the IP address xxx.xxx.xxx.
And fourthly, selecting the optimal consumption coupon main chain to perform the business transaction operation requested by the user by the server xxx, xxx and xxx according to the weight use condition of the corresponding consumption coupon main chain cluster.
From the above description, the block chain-based consumption coupon processing method provided by the application can determine the optimal consumption coupon main chain according to the consumption operation instruction received from the consumption coupon management end and the load balancing rule of the consumption coupon management end.
In one embodiment, the step of executing the consuming operation instruction by the consuming ticket fragmentation chain comprises:
and executing fragment chain consumption coupon generation operation according to the preset name, denomination, type, validity period, use range and use platform of the consumption coupons.
It can be understood that after load balancing is completed, the optimal consumption coupon main chain can receive operation instructions from each channel, and then the operation instructions of consumption coupon generation, consumption coupon release, consumption coupon sharing, consumption coupon receiving, consumption coupon consumption, consumption coupon invalidation, data synchronization and the like can be distributed to the consumption coupon fragment chain corresponding to the optimal consumption coupon main chain. The consumption coupon fragmentation chains respectively comprise consumption coupon generation, consumption coupon release, consumption coupon sharing, consumption coupon reception, consumption coupon consumption, consumption coupon invalidation, data synchronization and the like. And the corresponding consumer ticket trade can be instructed in the consumer ticket fragment chain. In this way, the fragmentation processing can lead different fragments to store different state data, and each fragment and the nodes in the fragment only maintain and manage the respective fragment data, but not the complete world state data. By the method, redundant storage with less states can be realized, and the expandability of the block chain system in storage is improved.
After the corresponding consumption coupon fragment chain is processed, the commonly-identified block fragments can be converged into a complete block and submitted to a consumption coupon main chain block chain system. The consumption coupon fragment chain is responsible for accounting, and the consumption coupon main chain is responsible for confirmation, so that the problem of double flowers can be effectively avoided.
The fragmentation chain consumption coupon generation means that the fragmentation chain only processes consumption coupon generation, namely what consumption coupons need to be created, and basic attributes such as name, denomination, type, validity period, use range and use platform of the consumption coupons need to be set.
In one embodiment, the step of executing the consuming operation instruction by the consuming ticket fragmentation chain further includes:
and executing fragmentation chain consumption coupon issuing operation on the generated consumption coupons according to preset use time, use mode, denomination, activity name, issuing object, issuing form, issuing data and getting limit of the consumption coupons.
It can be understood that the issuance of the consumption tickets in the fragmentation chain refers to that the fragmentation chain only processes the issuance of the consumption tickets, namely, the time, the manner, the person and the denomination of each consumption ticket. At least several conditions are set when the consumer coupons are released: activity name, issuing and issuing object, issuing form, issuing data, drawing limit and the like.
In one embodiment, the step of executing the consuming operation instruction by the consuming ticket fragmentation chain further includes:
and sequentially executing fragmentation chain consumption coupon sharing operation, getting operation, consumption operation and invalidation operation on the issued consumption coupons.
The sharing of the consumed coupons in the sharding chain refers to that the sharding chain only processes the consumed coupon sharing, namely, the users share and propagate the consumed coupons among users through a third-party payment platform. Meanwhile, the operation merchant can actively push the consumption coupons to the user for renewing, promoting, repurchasing and stimulating consumption, and simultaneously, the user is informed to be reached.
The fragmentation chain consumption coupon getting means that the fragmentation chain only processes consumption coupon getting, and after a consumer obtains the consumption coupons through a third-party payment platform, the consumer can directly find the consumption coupons in a card package of a corresponding platform.
The fragmentation chain consumption coupon is that the fragmentation chain only processes consumption coupon consumption, and after consumption, when a consumer uses the platform for payment and reaches a use threshold of the consumption coupon after consumption, the consumption coupon can be directly used for deducting corresponding amount during payment.
The fragmentation chain consumption coupon invalidation refers to that the fragmentation chain only processes the consumption coupons invalidation, namely the operation of overdue and overdue invalidation of the consumption coupons and the like, or the operation of actively invalidating the consumption coupons and the like in the legal meeting specification of the consumption coupon main body.
The fragment chain data synchronization means that the fragment chain only processes the uplink synchronous data of the chain, namely, whether the fragment chain actively initiates updating operation consumption coupon data on a channel platform, for example, a merchant actively makes waste consumption coupons; the operating consumption note data is updated by the block chain consumption note multi-scene management system, such as the automatic invalidation of the expired consumption notes. The consumer coupon data remains in-time down-link synchronized.
From the above description, in the block chain-based consumption coupon processing method provided by the present application, the consumption coupon fragmentation chain can execute the consumption operation instruction.
Referring to fig. 3, performing on-chain data synchronization and off-chain data synchronization on execution results that are well-known on a consumption coupon fragmentation chain includes:
s301: uploading the key information of the consumption coupons corresponding to the consensus-completed consumption coupon fragmentation chain to the consumption coupon main chain; the key information comprises information such as consumption coupon ID, a release main body, main body description, consumption coupon type, consumption coupon amount, consumption coupon starting validity period, consumption coupon ending validity period, available commodity, consumer name, consumer contact telephone, creator, creation time, chain cut ID and the like;
s302: confirming the key information of the consumption coupons on the consumption coupon main chain corresponding to the consumption coupon fragmentation chain in a node voting manner, and broadcasting the confirmed key information of the consumption coupons to other consumption coupon main chains to finish the data synchronization on the chain;
it can be understood that, for data synchronization, it is necessary to include the key information of the consumer coupons on all fragmentation chains into the main chain, and then confirm the block information on the fragmentation chains by the main chain. The backbone does not include any other data than the consuming ticket critical information for the tile chain blocks and the necessary information of the backbone itself. Wherein the consuming ticket key information comprises: the system comprises a consumption coupon ID and a publishing main body, wherein the main body describes the consumption coupon type, the consumption coupon amount, the consumption coupon starting validity period, the consumption coupon ending validity period, available commodities, the name of a consumer, the contact telephone of the consumer, a creator, creation time, the chain cut ID and the like. And when the main chain confirms that the account book data of the fragment chain is not problematic, the data are broadcasted and synchronized to other consumption coupon main chains, so that the consistency of the stored data account book of the fragment chain is ensured, and the data synchronization on the chain is completed.
S303: and downloading the confirmed key information of the consumption coupons to the consumption coupon management end to finish the data synchronization under the chain.
It is understood that data synchronization refers to bi-directional synchronization of the downlink-uplink system. When there is a change in downlink data on the link, a timely synchronous update is guaranteed. For example, the account book data of the scrapped consumer coupons in batch in the block chain system can be synchronized into the database of the corresponding channel in time, that is, the data under the chain is synchronized. Similarly, when operation change data exists in different channels, coupon data consumed on the associated chain can be synchronized in time, namely, on-chain data synchronization is carried out. In order to guarantee consistency of block data on a chain and data under the chain, consistency check is carried out on latest state data of the block chain and the data under the chain in a timing query mode.
In one embodiment, data synchronization may be performed in an asynchronous manner by using the NSQ messaging server as middleware for downlink-uplink data collaboration. Therefore, the problem that the update of the database under the chain needs to be waited when the transaction is executed can be avoided, and the influence of data synchronization on the performance of the block chain system is effectively reduced.
The NSQ is an open-source distributed real-time message platform based on the Go language, can be used for real-time message service in a large-scale system, can process hundreds of millions of messages every day, and has a distributed and decentralized topological structure. The architecture has the characteristics of no single point of failure, fault tolerance, high availability and the ability to maintain reliable delivery of messages. Meanwhile, NSQ is easy to configure and deploy, supports numerous message protocols, and has a design goal of providing a strong infrastructure for decentralized services operating in a distributed environment.
In an embodiment, fig. 9 is a schematic view of a service application scenario of a block chain based consumption coupon multi-scenario management system, a consumption coupon main chain of the block chain based consumption coupon multi-scenario management system and a plurality of side chains such as consumption coupons of government agencies or business enterprises are built, a main multi-side block chain cooperation system is built, the consumption coupons can circulate on each side chain through the main chain, and the purposes of information interaction and value transfer are achieved.
The user can obtain the consumption coupons through channels such as a third-party payment platform, various large banks, government agencies, merchant enterprises and the like, and meanwhile, the government agencies or the merchant enterprises can issue the consumption coupons by means of the wide coverage characteristics of the channels. Therefore, the consumption coupons can be rapidly distributed to specific people in a specific area in a large range, and the access rate of the consumption coupons at a consumption end is improved.
The traceability of consumption issuing can be ensured by using the block chain to carry out evidence storage record on consumption ticket issuing and government mutual subsidy issuing. In addition, the block chain can realize decentralized management, through cooperation among all channels, block chain consumption coupon league ecology can be built, consumption coupon scenes are co-built, and more comprehensive services including but not limited to full-view management of information such as consumption coupon issuing, registration, use, consumption, subsidy and remittance clearing and the like in all channels are provided for issuing organizations and supervisors.
Fig. 10 is a block chain consumption coupon multi-scenario management system based service operation flow diagram, each government agency or business enterprise joining the federation can uniformly access the consumption coupons on a block chain platform according to the consumption coupon rules of the government agency or business enterprise, the consumption coupons are generated, released and popularized on the chain, data analysis, data management, data calling and the like are provided for the government agency or business enterprise, and then the government agency or business enterprise is guided to perform consumption coupon optimization and accurate release. Meanwhile, the users can acquire the consumption coupons through different channels, the related information of the consumption coupons can be forwarded or shared among the users, the redemption of the consumption coupons of the users can realize point-to-point transaction through an intelligent contract, and the consumption coupons can be traced to the deposit records of the whole consumption process.
FIG. 11 is a block chain link point diagram of a block chain based expense ticket management system including N main chain nodes, where N is a positive integer. The N backbone nodes) includes N fragmentation chain nodes. Distributing fragment chain transactions according to specific attributes and operation instructions; different fragment chains store different state data, and each fragment and node only maintains and manages respective fragment data instead of complete world state data, so that redundant storage of less states can be realized, and the expandability of a block chain system in storage is improved. Finally, the insides of different fragment chains respectively complete consensus, and then the well-known block fragments are converged into a complete block to be submitted to a main chain system.
Fig. 12 is a schematic diagram of transaction processing and an account book of a block chain consumption coupon multi-scene management system, and by introducing a fragmentation consensus technology, a DNS load balancing technology, and a data synchronization technology, a block chain consumption coupon multi-scene management system supporting simultaneous access of N channels and using N main chains and N fragmentation chains respectively corresponding to the main chains can be constructed. The system well solves the problems of block chain transaction processing efficiency and mass data storage, improves the performance of the block chain, and expands the service application scene.
Based on the same inventive concept, the present application further provides a block chain-based consumption ticket processing apparatus, which can be used to implement the method described in the foregoing embodiments, as described in the following embodiments. Because the principle of solving the problem of the consumption ticket processing device based on the block chain is similar to the consumption ticket processing method based on the block chain, the implementation of the consumption ticket processing device based on the block chain can refer to the implementation of the software performance reference determination method, and repeated details are omitted. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Referring to fig. 4, in order to enable circulation of electronic consumer tickets using a block chain technique, the present application provides a block chain-based consumer ticket processing apparatus, including:
an optimal main chain determining unit 401, configured to determine an optimal consuming coupon main chain according to a consuming operation instruction received from a consuming coupon management end and a load balancing rule of the consuming coupon management end;
an operation instruction executing unit 402, configured to allocate the consuming operation instruction to a consuming coupon fragmentation chain corresponding to the optimal consuming coupon main chain, so that the consuming coupon fragmentation chain executes the consuming operation instruction;
a data synchronization unit 403, configured to perform on-chain data synchronization and off-chain data synchronization on the execution result that is well-known on the consumption coupon fragment chain.
Referring to fig. 5, the optimal main chain determining unit 401 includes:
a main chain weight determining module 501, configured to determine a weight of each consuming coupon main chain according to the load balancing rule;
an optimal main chain determining module 502, configured to determine an optimal consuming ticket main chain according to the weight.
In an embodiment, the block chain-based consumption ticket processing apparatus is further specifically configured to:
and executing fragment chain consumption coupon generation operation according to the preset name, denomination, type, validity period, use range and use platform of the consumption coupons.
In an embodiment, the block chain-based consumption ticket processing apparatus is further specifically configured to:
and executing fragmentation chain consumption coupon issuing operation on the generated consumption coupons according to preset use time, use mode, denomination, activity name, issuing object, issuing form, issuing data and getting limit of the consumption coupons.
In an embodiment, the block chain-based consumption ticket processing apparatus is further specifically configured to:
and sequentially executing fragmentation chain consumption coupon sharing operation, getting operation, consumption operation and invalidation operation on the issued consumption coupons.
Referring to fig. 6, the data synchronization unit 403 includes:
a key information uploading module 601, configured to upload the key information of the consumption tickets corresponding to the consensus completed consumption ticket fragmentation chain to the consumption ticket main chain; the key information comprises information such as consumption coupon ID, a release main body, main body description, consumption coupon type, consumption coupon amount, consumption coupon starting validity period, consumption coupon ending validity period, available commodity, consumer name, consumer contact telephone, creator, creation time, chain cut ID and the like;
an on-chain data synchronization module 602, configured to confirm the key information of the consumption coupons on the consumption coupon main chain corresponding to the consumption coupon fragmentation chain in a node voting manner and broadcast the confirmed key information of the consumption coupons to other consumption coupon main chains, so as to complete on-chain data synchronization;
and the linked data synchronization module 603 is configured to download the confirmed key information of the consumer coupons to the consumer coupon management end, so as to complete linked data synchronization.
From a hardware level, in order to enable circulation of electronic consumer tickets by using a block chain technology, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the block chain-based consumer ticket processing method, where the electronic device specifically includes the following contents:
a Processor (Processor), a Memory (Memory), a communication Interface (Communications Interface) and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the consumption coupon processing device based on the block chain and relevant equipment such as a core service system, a user terminal, a relevant database 104 and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may refer to an embodiment of the block chain-based consumption ticket processing method and an embodiment of the block chain-based consumption ticket processing apparatus in the embodiment, which are incorporated herein, and repeated details are not repeated.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), an in-vehicle device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the block chain-based consumption ticket processing method may be performed on the electronic device side as described above, or all operations may be performed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be in communication connection with a remote server to implement data transmission with the server. The server may include a server on the side of the task scheduling center, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 7 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 7, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 7 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the functionality of the block chain based consumer coupon processing method may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
s101: determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end;
s102: distributing the consumption operation instruction to a consumption coupon fragmentation chain corresponding to the optimal consumption coupon main chain so that the consumption coupon fragmentation chain executes the consumption operation instruction;
s103: and performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain.
According to the above description, the block chain-based consumption coupon processing method provided by the application can realize circulation of electronic consumption coupons by using a block chain technology, and meanwhile, the block chain technology has the properties of transparent disclosure and non-falsification, so that the evidence storage record of the whole flow from issuance to consumption of the electronic consumption coupons can be carried out on the electronic consumption coupons, traceability of issuance consumption is guaranteed, the safety of electronic commerce operation is greatly improved, the circulation efficiency of the electronic consumption coupons is improved, the consumption experience of customers is improved, and further, government institutions or business enterprises can be guided to carry out optimization and release decision on the electronic consumption coupons.
In another embodiment, the block chain based consumption ticket processing apparatus may be configured separately from the central processor 9100, for example, the block chain based consumption ticket processing apparatus of the data composite transmission apparatus may be configured as a chip connected to the central processor 9100, and the functions of the block chain based consumption ticket processing method may be implemented by the control of the central processor.
As shown in fig. 7, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 7; further, the electronic device 9600 may further include components not shown in fig. 7, which may be referred to in the art.
As shown in fig. 7, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless lan module, may be disposed in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
Embodiments of the present application further provide a computer-readable storage medium capable of implementing all steps in the block chain-based consumption ticket processing method in which the execution subject is the server or the client in the above embodiments, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the block chain-based consumption ticket processing method in which the execution subject is the server or the client, for example, the processor implements the following steps when executing the computer program:
s101: determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end;
s102: distributing the consumption operation instruction to a consumption coupon fragmentation chain corresponding to the optimal consumption coupon main chain so that the consumption coupon fragmentation chain executes the consumption operation instruction;
s103: and performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain.
According to the above description, the block chain-based consumption coupon processing method provided by the application can realize circulation of electronic consumption coupons by using a block chain technology, and meanwhile, the block chain technology has the properties of transparent disclosure and non-falsification, so that the evidence storage record of the whole flow from issuance to consumption of the electronic consumption coupons can be carried out on the electronic consumption coupons, traceability of issuance consumption is guaranteed, the safety of electronic commerce operation is greatly improved, the circulation efficiency of the electronic consumption coupons is improved, the consumption experience of customers is improved, and further, government institutions or business enterprises can be guided to carry out optimization and release decision on the electronic consumption coupons.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the present application are explained by applying specific embodiments in the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (14)

1. A block chain-based consumption coupon processing method is characterized by comprising the following steps:
determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end;
distributing the consumption operation instruction to a consumption coupon fragmentation chain corresponding to the optimal consumption coupon main chain so that the consumption coupon fragmentation chain executes the consumption operation instruction;
and performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain.
2. The method for processing the consumption coupon based on the block chain according to claim 1, wherein the determining the best consumption coupon main chain according to the consumption operation instruction received from the consumption coupon management end and the load balancing rule of the consumption coupon management end comprises:
determining the weight of each consumption coupon main chain according to the load balancing rule;
and determining the optimal consumption coupon main chain according to the weight.
3. The method for processing consumption tickets based on partition chains according to claim 1, wherein the step of executing the consumption ticket partition chain to execute the consumption operation instructions comprises:
and executing fragment chain consumption coupon generation operation according to the preset name, denomination, type, validity period, use range and use platform of the consumption coupons.
4. The method for processing consumption tickets based on partition chains according to claim 3, wherein the step of executing the consumption ticket partition chain to consume operation instructions further comprises:
and executing fragmentation chain consumption coupon issuing operation on the generated consumption coupons according to preset use time, use mode, denomination, activity name, issuing object, issuing form, issuing data and getting limit of the consumption coupons.
5. The method for processing consumption tickets based on partition chains according to claim 3, wherein the step of executing the consumption ticket partition chain to consume operation instructions further comprises:
and sequentially executing fragmentation chain consumption coupon sharing operation, getting operation, consumption operation and invalidation operation on the issued consumption coupons.
6. The method for processing consumption coupons based on a block chain of claim 1, wherein said performing on-chain and off-chain data synchronization on execution results that are consensus on said chain of consumption coupon shards comprises:
uploading the key information of the consumption coupons corresponding to the consensus-completed consumption coupon fragmentation chain to the consumption coupon main chain; the key information comprises information such as consumption coupon ID, a release main body, main body description, consumption coupon type, consumption coupon amount, consumption coupon starting validity period, consumption coupon ending validity period, available commodity, consumer name, consumer contact telephone, creator, creation time, chain cut ID and the like;
confirming the key information of the consumption coupons on the consumption coupon main chain corresponding to the consumption coupon fragmentation chain in a node voting manner, and broadcasting the confirmed key information of the consumption coupons to other consumption coupon main chains to finish the data synchronization on the chain;
and downloading the confirmed key information of the consumption coupons to the consumption coupon management end to finish the data synchronization under the chain.
7. A blockchain-based consumption ticket processing apparatus, comprising:
the optimal main chain determining unit is used for determining an optimal consumption coupon main chain according to a consumption operation instruction received from a consumption coupon management end and a load balancing rule of the consumption coupon management end;
an operation instruction execution unit, configured to allocate the consuming operation instruction to a consuming coupon fragmentation chain corresponding to the optimal consuming coupon main chain, so that the consuming coupon fragmentation chain executes the consuming operation instruction;
and the data synchronization unit is used for performing on-chain data synchronization and off-chain data synchronization on the execution results which are well known on the consumption coupon fragment chain.
8. The block chain-based consumption ticket processing apparatus according to claim 7, wherein the optimal main chain determining unit comprises:
the main chain weight determining module is used for determining the weight of each consumption coupon main chain according to the load balancing rule;
and the optimal main chain determining module is used for determining an optimal consumption coupon main chain according to the weight.
9. The blockchain-based consumption ticket processing apparatus of claim 7, further being specifically configured to:
and executing fragment chain consumption coupon generation operation according to the preset name, denomination, type, validity period, use range and use platform of the consumption coupons.
10. The blockchain-based consumption ticket processing apparatus of claim 9, further being specifically configured to:
and executing fragmentation chain consumption coupon issuing operation on the generated consumption coupons according to preset use time, use mode, denomination, activity name, issuing object, issuing form, issuing data and getting limit of the consumption coupons.
11. The blockchain-based consumption ticket processing apparatus of claim 9, further being specifically configured to:
and sequentially executing fragmentation chain consumption coupon sharing operation, getting operation, consumption operation and invalidation operation on the issued consumption coupons.
12. The blockchain-based consumption ticket processing apparatus according to claim 7, wherein the data synchronization unit includes:
the key information uploading module is used for uploading the key information of the consumption coupons corresponding to the consensus-completed consumption coupon fragmentation chain to the consumption coupon main chain; the key information comprises information such as consumption coupon ID, a release main body, main body description, consumption coupon type, consumption coupon amount, consumption coupon starting validity period, consumption coupon ending validity period, available commodity, consumer name, consumer contact telephone, creator, creation time, chain cut ID and the like;
the on-chain data synchronization module is used for confirming the key information of the consumption coupons on the consumption coupon main chain corresponding to the consumption coupon fragmentation chain in a node voting manner and broadcasting the confirmed key information of the consumption coupons to other consumption coupon main chains to finish on-chain data synchronization;
and the linked data synchronization module is used for downloading the confirmed key information of the consumption coupons to the consumption coupon management end to complete linked data synchronization.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the block chain based consumer coupon processing method according to any of the claims 1 to 6 are implemented by the processor when executing the program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the block chain based consumption ticket processing method of any one of claims 1 to 6.
CN202110365714.2A 2021-04-06 2021-04-06 Block chain-based consumption coupon processing method and device Pending CN113094433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110365714.2A CN113094433A (en) 2021-04-06 2021-04-06 Block chain-based consumption coupon processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110365714.2A CN113094433A (en) 2021-04-06 2021-04-06 Block chain-based consumption coupon processing method and device

Publications (1)

Publication Number Publication Date
CN113094433A true CN113094433A (en) 2021-07-09

Family

ID=76673777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110365714.2A Pending CN113094433A (en) 2021-04-06 2021-04-06 Block chain-based consumption coupon processing method and device

Country Status (1)

Country Link
CN (1) CN113094433A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537987A (en) * 2021-07-21 2021-10-22 冰联(广州)网络科技有限公司 Electronic coupon transaction management method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537987A (en) * 2021-07-21 2021-10-22 冰联(广州)网络科技有限公司 Electronic coupon transaction management method and system

Similar Documents

Publication Publication Date Title
CN108776929A (en) Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
CN103946879A (en) Electronic payment systems and supporting methods and devices
CN103036942A (en) Advanced content hosting
CN110287266A (en) A kind of distributed system and data processing method
CN112020018B (en) Block chain accounting group generation method, consensus method and block chain system
JP2012531640A (en) 24 hour global low delay computer controlled switching system
CN116707821A (en) Transaction data processing method and device based on blockchain
CN113094433A (en) Block chain-based consumption coupon processing method and device
CN110852748A (en) Group transaction method, device and storage medium
CN110351362A (en) Data verification method, equipment and computer readable storage medium
US20230325895A1 (en) Systems and methods for dynamic interface generation for commerce platform onboarding
CN113205199A (en) Mobile phone bank foreign currency and cash reservation method and device
CN111930624A (en) Test link message data processing method and device
CN115037472B (en) Transaction processing method and system based on double-layer DAG consensus mechanism and service equipment
CN115879889A (en) Service processing method and device based on block chain and computer equipment
CN115099930A (en) Financial business data processing method and device
CN112231415B (en) Data synchronization method and system of block chain network, electronic device and readable medium
CN112600945B (en) Distributed block chain service system, construction method thereof and storage medium
CN114155091A (en) Financing method, device and system based on block chain
CN112102058A (en) Management system parameter configuration method and device
CN109741055A (en) Blacklist call method, device, server and storage medium
CN110070442A (en) A kind of refund processing method, server and storage medium
KR20200097148A (en) Method for ensuring the trust of selling probability based items
KR102587907B1 (en) System and method for investing virtual money

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