CN111680996A - Life payment data processing method, device and system based on block chain - Google Patents

Life payment data processing method, device and system based on block chain Download PDF

Info

Publication number
CN111680996A
CN111680996A CN202010469046.3A CN202010469046A CN111680996A CN 111680996 A CN111680996 A CN 111680996A CN 202010469046 A CN202010469046 A CN 202010469046A CN 111680996 A CN111680996 A CN 111680996A
Authority
CN
China
Prior art keywords
chain
node
payment data
block chain
life payment
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.)
Granted
Application number
CN202010469046.3A
Other languages
Chinese (zh)
Other versions
CN111680996B (en
Inventor
庞齐章
黄肇敏
彭顺求
陈法山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010469046.3A priority Critical patent/CN111680996B/en
Publication of CN111680996A publication Critical patent/CN111680996A/en
Application granted granted Critical
Publication of CN111680996B publication Critical patent/CN111680996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The invention discloses a life payment data processing method, a device and a system based on a block chain, wherein the block chain is a multi-level block chain, and the method comprises the following steps: receiving a job request from a cell chain node based on a pre-constructed cross-chain channel, the job request comprising: life payment data; performing corresponding operation on the life payment data according to the operation request; and carrying out block chain consensus operation on the operation result so as to facilitate subsequent query. By introducing the multi-level block chain, the invention can realize the operation of executing the operation request through the cross-chain channel, improve the processing capacity of the system and effectively avoid the problem of system downtime.

Description

Life payment data processing method, device and system based on block chain
Technical Field
The invention relates to the field of block chain data processing, in particular to a life payment data processing method, device and system based on a block chain.
Background
The current life payment is realized by recording the usage amount through electronic equipment and deducting the account monthly, but the following problems still exist: at present, various records, payment and the like are centralized systems, and used data are centralized and stored, so that the problems of data loss and the like caused by downtime of a server cluster cannot be solved.
Because the blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database recording, and data synchronization can be rapidly performed among the computing devices, the blockchain technology is widely applied in various fields, for example, the blockchain technology is also used for life payment.
At present, in a life payment scene based on a blockchain technology, the following problems exist: because the single-chain processing capacity in the industry is low, the single-chain processing capacity cannot deal with large-scale requests, and once the instantaneous requests are far greater than the processing capacity, the system is very easy to crash. Moreover, the current cross-link call processing capability is low, more configuration information is needed, and the cross-link network cannot be effectively constructed dynamically.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a system for processing living payment data based on a block chain, so as to solve at least one of the above-mentioned problems.
According to a first aspect of the present invention, there is provided a life payment data processing method based on a block chain, where the block chain is a multi-level block chain, the method includes:
receiving a job request from a cell chain node based on a pre-constructed cross-chain channel, the job request comprising: life payment data;
performing corresponding operation on the life payment data according to the operation request;
and carrying out block chain consensus operation on the operation result so as to facilitate subsequent query.
Specifically, the job request is an upload request, and the corresponding operation on the life payment data according to the job request includes:
and uploading the life payment data to an upper-level block chain node for gathering so as to facilitate clearing operation.
Specifically, the job request is an inquiry request, and the performing corresponding operations on the life payment data according to the job request includes:
acquiring use data and expense data corresponding to the life payment data;
and sending the use data and the expense data corresponding to the life payment data to a cell chain node so as to facilitate user query.
According to a second aspect of the present invention, there is provided a life payment data processing apparatus based on a block chain, the block chain being a multi-level block chain, the apparatus comprising:
a data receiving unit, configured to receive a job request from a cell chain node based on a pre-constructed inter-chain channel, where the job request includes: life payment data;
the execution unit is used for carrying out corresponding operation on the life payment data according to the operation request;
and the consensus unit is used for carrying out block chain consensus operation on the operation result so as to facilitate subsequent query.
Specifically, the job request is an upload request, and the execution unit is specifically configured to:
and uploading the life payment data to an upper-level block chain node for gathering so as to facilitate clearing operation.
Specifically, the job request is a query request, and the execution unit further includes:
the data acquisition module is used for acquiring use data and expense data corresponding to the life payment data;
and the data sending module is used for sending the use data and the expense data corresponding to the life payment data to a cell chain node so as to facilitate the query of a user.
According to a third aspect of the present invention, there is provided a life payment data processing system based on a block chain, where the block chain is a multi-level block chain, and the system includes: the system comprises a cell chain node, a cross-chain gateway center node and the life payment data processing device, wherein the cross-chain gateway center node constructs a cross-chain channel between the cell chain node and the life payment data processing device.
Wherein the inter-chain gateway central node comprises:
a request receiving unit, configured to receive a cross-link call request from the cell link node;
a gateway node determining unit, configured to determine a gateway node according to the cross-chain call request and configuration information between nodes of the current block chain;
and the cross-chain channel establishing unit is used for establishing a cross-chain channel between the cell link point and the gateway node so as to facilitate the communication between the cell link point and the life payment data processing device.
Specifically, the gateway node determination unit includes:
the node topology generating module is used for generating block chain node topology information based on a sequence diagram method according to the cross-chain calling request and the configuration information among the nodes of the current block chain;
and the gateway node determining module is used for determining the gateway node according to the block link node topology information.
Preferably, the cross-chain gateway central node further comprises:
and the secret key generation unit is used for generating a communication secret key pair applied to communication between the cell chain node and the life payment data processing device according to a preset rule.
According to a fourth aspect of the present invention, there is provided 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 above method when executing the program.
According to a fifth aspect of the invention, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above-mentioned method.
Compared with the scheme of processing the life payment by the single chain in the prior art, the method and the device for processing the service request have the advantages that the operation of the service request is executed based on the constructed cross-chain channel, and the block chain common identification operation is performed on the operation, so that the follow-up query is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of a life payment data processing system according to an embodiment of the invention;
FIG. 2 is a block diagram of a cross-chain gateway hub node 2 according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a cross-link channel setup according to an embodiment of the invention;
fig. 4 is a flow diagram of temporary key pair generation according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a transmission structure of a cross-chain network key according to an embodiment of the present invention;
fig. 6 is a block diagram of a life payment data processing device 3 according to an embodiment of the present invention;
FIG. 7 is a block chain structure diagram of a multi-level block chain based on cross-chains according to an embodiment of the present invention;
FIG. 8 is a network topology diagram of a cross-chain gateway network according to an embodiment of the invention;
FIG. 9 is a flowchart of cross-chain data processing in a block chain of a same service multi-level according to an embodiment of the present invention;
FIG. 10 is a flow chart of a life payment data processing method according to an embodiment of the invention;
FIG. 11 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the current life payment scenario based on the blockchain technology, as the single-chain processing capability in the industry is low, large-scale requests cannot be handled, and once the instantaneous requests (for example, a plurality of users simultaneously request for data query) are far greater than the processing capability, a system downtime is very easily caused. Based on this, the embodiment of the invention provides a life payment data processing scheme, and by introducing a multi-level block chain, the problem of poor single-chain concurrency capability can be solved, so that the system processing capability can be improved, and the problem of system downtime can be effectively avoided.
The multi-level block chain introduced by the embodiment of the invention is divided according to cells, each cell belongs to a cell chain (or called a cell service chain), and a plurality of cells in the same region form a region chain; the method comprises the steps that the encrypted electric meter, the water meter and the gas meter which are provided with an acquisition module are used for acquiring the consumption at regular time, the consumption data are uploaded to corresponding cell service chains, the total amount of the cell service chains in the same region is uploaded to an upper block chain and is summarized upwards step by step, and finally an electric power multistage block chain network, a hydraulic power multistage block chain network, a gas multistage block chain network and the like are formed. The electric power companies, the hydraulic power companies and the gas companies carry out total clearing with banks according to industry chain summary information, meanwhile, regional management departments at all levels can monitor the regional consumption through different regional chains at all levels, and users can realize summary payment of various fees through a dynamic cross-chain network to finish the settlement of the fees with the banks.
For a better understanding of the present invention, embodiments thereof are described in detail below with reference to the accompanying drawings.
Fig. 1 is a block diagram of a block chain-based life payment data processing system according to an embodiment of the present invention, and as shown in fig. 1, the system includes: the system comprises a cell chain node 1, a cross-chain gateway central node 2 and a life payment data processing device 3, wherein the cross-chain gateway central node constructs a cross-chain channel between a cell chain link point and the life payment data processing device, the cell chain link point is located in a cell service chain, the life payment data processing device is located in a higher-level service chain (or called a first-level service chain) of the cell service chain, and the system further comprises: the upper-level service chain of the first-level service chain may be referred to as a second-level service chain, and is used for summarizing data reported by the first-level service chain, and may further include a third-level service chain, and the like.
The cross-chain gateway central node 2 and the life payment data processing device 3 are described below.
Fig. 2 is a block diagram of a cross-chain gateway central node 2, and as shown in fig. 2, the cross-chain gateway central node 2 includes: a request receiving unit 21, a gateway node determining unit 22, and a cross-link channel establishing unit 23, where:
a request receiving unit 21, configured to receive a cross-link call request from the cell link node;
a gateway node determining unit 22, configured to determine a gateway node according to the cross-chain call request and configuration information between nodes of the current block chain;
a chain-crossing channel establishing unit 23, configured to establish a chain-crossing channel between the cell link point and the gateway node, so as to facilitate communication between the cell link point and the life payment data processing apparatus.
In a specific implementation process, with continued reference to fig. 2, the cross-chain gateway central node may further include: and the key generation unit 24 is used for generating a communication key pair applied to communication between the cell chain node and the living payment data processing device according to a preset rule.
The predetermined rule may be a rule for actually generating a key pair, and the present invention is not limited thereto.
Specifically, the gateway node determining unit 22 specifically includes: a node topology generation module and a gateway node determination module, wherein:
and the node topology generating module is used for generating the block chain node topology information based on a sequence diagram method according to the cross-chain calling request and the configuration information among the nodes of the current block chain. Therefore, the optimal gateway node can be determined, and the network transmission efficiency is improved.
And the gateway node determining module is used for determining the gateway node according to the block link node topology information.
An example of establishing a cross-link tunnel by the cross-link gateway central node 2 is given below.
Fig. 3 is a flowchart of cross-link channel establishment according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes:
step 301: and the service chain (corresponding to the cell chain node) sends the root certificate to a central gateway node (corresponding to the cross-chain gateway central node) by a line for configuration, then initiates a cross-chain calling transaction, and the cross-chain calling transaction is signed by a secondary service certificate signed by the root certificate.
Step 302: and the central gateway node carries out transaction on the cross-link request, verifies whether the certificate chain is in accordance, adds the service chain link point to a service chain dynamic list if the certificate chain is in accordance, waits for pairing with the gateway node, and rejects the cross-link request if the certificate chain is in accordance.
Step 303: and the central gateway node generates a dynamic network optimal topological graph through a priority graph method according to the dynamic list of the service chain, the calling quantity of the existing service chain nodes-gateway nodes and the weight coefficient (namely the weight coefficient of the service chain node) formed by the increase expectation. Generally, the newly added service link node has the lowest weight, the weight is increased along with the increase of the calling amount, when the weight is the maximum, the optimal binding gateway node of the full gateway network link is allocated, and the subsequent nodes are decreased accordingly.
Step 304: and the central gateway node generates a corresponding temporary key pair according to the generated service chain node-gateway node list.
Step 305: the central gateway node distributes the service chain root certificate to the corresponding binding gateway node, the gateway node loads the certificate, and then the binding gateway node establishes a communication link with the service chain node.
Fig. 4 is a flowchart of generation of a temporary key pair according to an embodiment of the present invention, and as shown in fig. 4, the flowchart includes:
step 401: and the central gateway node calculates an optimal path according to the weight coefficient, generates a dynamic network optimal topological graph through a sequence graph method, and then updates the optimal weight coefficient.
Step 402: the central gateway node confirms the temporary binding time of the binding gateway node according to the optimal weight coefficient, for example, the node with the most front importance ranking in the network obtains the largest service chain, and the binding gateway obtains the largest binding time, and the binding is relatively stable.
Step 403: and generating a temporary key pair according to a key generation rule based on the binding relationship and the binding time, and recording the binding relationship and the binding time by using the key. When the binding time is exceeded, the key is invalidated.
Fig. 5 is a schematic diagram of a transmission structure of a cross-link network key, as shown in fig. 5, wherein:
key-key pool: the central gateway node generates all communication key pairs according to the latest service chain node-gateway node list topology result.
Channel A \ B \ C: the method is characterized in that the method is an encryption communication channel between a central gateway node and each gateway node, and the central gateway node distributes a communication key pair to the corresponding gateway node through the channel to establish a cross-link channel.
Routene A \ B \ C: the gateway node is a communication processing coroutine between the central network node and each gateway node, and is responsible for reading an encrypted communication key pair from an encryption channel and decrypting the encrypted communication key pair for the gateway node to use.
Fig. 6 is a block diagram showing the configuration of the life payment data processing device 3, and as shown in fig. 6, the life payment data processing device 3 includes: a data receiving unit 31, an executing unit 32 and a consensus unit 33, wherein:
a data receiving unit 31, configured to receive a job request from a cell chain node based on a pre-constructed inter-chain channel, where the job request includes: life payment data;
the execution unit 32 is used for performing corresponding operation on the life payment data according to the job request;
the consensus unit 33 is configured to perform a block chain consensus operation on the operation result to facilitate subsequent query.
Compared with the scheme of processing the life payment by a single chain in the prior art, the embodiment of the invention realizes the operation of executing the job request by the cross-chain channel due to the introduction of the multi-level block chain, thereby improving the processing capacity of the system and effectively avoiding the problem of system downtime.
In an actual operation, when the operation request is an upload request, the execution unit is specifically configured to: and uploading the life payment data to an upper-level block chain node for gathering so as to facilitate clearing operation.
When the job request is a query request, the execution unit may include: data acquisition module and data transmission module, wherein:
the data acquisition module is used for acquiring use data and expense data corresponding to the life payment data;
and the data sending module is used for sending the use data and the expense data corresponding to the life payment data to a cell chain node so as to facilitate the query of a user.
The embodiment of the invention can solve the problem of poor single-chain concurrency capability in the prior art by introducing a multi-level block chain scheme, and ensures the safety of production data. The problem that interaction cannot be carried out across different service chains and the like is solved by introducing a dynamic cross-chain gateway network scheme. The cell chain records the use data of water, electricity, gas and the like of a user to form a service chain of each service field, the upper-level regional chain records the total use data of water, electricity, gas and the like of all the cell chains and the latest block HASH (Hash) information, and the data is gathered up step by step to realize the concurrent management of a larger area; the purpose of processing the consumption information of water, electricity, gas and the like by a plurality of cell chains and recording the total amount and HASH information by the upper-level regional chain is achieved, and the record is prevented from being falsified after the business processing. The total amount of regional chains is combined up by the block chains step by step, so that national use amount records are achieved, integral high-processing-capacity output is achieved, and the problems that the TPS (Transactions Per Second) of the current block chain single-chain system is low and cannot cope with large-scale services are solved. The cross-service interaction between different service chains can be realized through a dynamic cross-chain gateway network, the multi-service management is realized, the multi-service concurrency capability is improved, meanwhile, the quick and safe processing of cross-chain calling is ensured, and convenience is brought to users.
For further understanding of the present invention, the following describes the present invention in detail based on the multi-level block chain structure based on cross-chain as shown in fig. 7.
As shown in fig. 7, the multi-level blockchain mainly includes:
the industry chain: the nodes of the chain mainly form different company nodes in the same industry, for example, an industry chain A can be hydraulic, an industry chain B can be electric power, and a clearing bank can be used as an access node to obtain bills and realize fee deduction.
Partitioning chain: the nodes of the chain mainly form accounting nodes in different large areas in the same industry, each large area node is responsible for summarizing the total consumption and the total cost of the area, the process is repeated until the last cell chain is reached, the nodes mainly form collecting device nodes of electric power, water power, natural gas and the like, and a user client can be used as an access node to obtain personal consumption information.
Cross-link gateway network: the gateway node mainly comprises a plurality of gateway nodes, including a central gateway node and a common gateway node. The central gateway node uniformly maintains a gateway node-service chain dynamic list, dynamically updates the list according to actual needs, distributes dynamic keys to the central gateway node and each node through an encryption channel configured during networking, and completes the channel construction of the binding gateway-binding gateway after the node receives the dynamic keys distributed by the central node, thereby supporting cross-service calling between two service chains.
When a new area joins the multi-level blockchain network, a secondary blockchain network (for example, a cell chain) starts to record the usage information and the cost in the area by taking the current block of the upper-level blockchain network as a creation block.
Meanwhile, the secondary block chain network initiates cross-chain calling at regular time through a temporary cross-chain channel, accesses the dynamic cross-chain gateway network, and uploads the summarized usage and cost of the local area in the time period to the upper-level block chain.
Fig. 8 is a network topology diagram of the cross-link gateway network, as shown in fig. 8:
for the binding gateway node I, the service link node and the binding gateway node 1: 1, establishing a temporary cross-link channel between the binding gateways to realize cross-link calling through a cross-link network.
And for the central gateway node II, receiving and distributing a cross-link request, maintaining a service link node-gateway node list, generating an optimal topology result, and generating a temporary cross-link communication key pair.
And for the service chain node III, the service chain node is a conventional service chain node, and a binding gateway node is required to be connected when cross-chain calling is carried out.
Based on the multi-level block chain structure shown in fig. 7, the cross-chain data processing flow in the multi-level block chain of the same service is described below with reference to fig. 9 by taking electricity collection as an example. As shown in fig. 9, the process includes:
step 901: the user uses the electricity through daily life, produces the service data, sets up collection system in advance for data acquisition in real time and with data upload to the district chain, write into the account book after the node is identified altogether, save user's quantity information in the district chain block. And the node collects all the usage information of the current cell and calculates the cost to obtain the collected usage information and cost information. Similarly, after receiving the data sent by the cell chain, the primary regional chain executes a similar step to send the data to the primary regional chain.
In actual operation, the acquisition device can provide network communication between the acquisition node and the cell acquisition node, and each node broadcasts out usage information of the node and also pulls the usage information from adjacent nodes. The acquisition device also comprises a usage acquisition monitoring module which mainly provides monitoring service, when the ammeter rotates, the usage is recorded in real time and sent to a CPU processor of the acquisition device, and transaction broadcasting is carried out through network I/O by taking a user as the minimum granularity after packaging processing.
The acquisition device can also comprise a storage module which is mainly used for storing the usage information, including all the account book information of the private chain of the whole cell.
The acquisition device can also comprise an encryption device module which mainly provides a storage encryption function, encrypts the stored data and prevents lawbreakers from modifying maliciously.
Step 902: and calling a cross-chain intelligent contract at regular time by the cell chain, uploading the summary information to a primary regional chain through a temporary cross-chain channel, performing consensus on an operation result after the uploading is finished, and writing the uploaded mark of the summary information into an account book successfully by the consensus.
Step 903: and calling a cross-chain inquiry intelligent contract when the chain link point of the cell is positioned, inquiring whether the block uploaded by the chain is successfully uplink in the regional chain or not through a temporary cross-chain channel, performing consensus on the inquiry result, and writing the flag bit into the account book when the consensus is successful. And the intelligent contract uploads the uploaded cell summary information which is not successfully linked up again according to the zone bit. Similarly, the primary regional chain also performs this step on the primary blockchain.
Step 904: and the first-level block chain returns the query information to the current-level block chain through a temporary chain-crossing channel, judges whether the uploading is successful, and writes the account book information if the uploading is successful.
Step 905: and the central gateway node of the cross-link gateway network increases an expected weight coefficient according to the cross-link calling request and the calling quantity of the service link nodes-gateway nodes (also called as block link nodes-gateway nodes), generates a dynamic network optimal topological graph by using a sequence graph method, and dynamically updates a service link node-gateway node list.
Step 906: and the central gateway node generates a temporary communication key pair one by one according to the newly generated dynamic list.
Step 907: and the central gateway node distributes the communication key pair to the corresponding gateway node according to the newly generated dynamic list, and the gateway node communicates according to the communication key pair and establishes a temporary cross-link channel, so that a link called by the service chain cross-link is generated.
The dynamic cross-link network of the embodiment of the invention comprises a central gateway node and a common gateway node, wherein an encryption channel can be configured when the central gateway node is networked with the common node, the central gateway node is used for maintaining a dynamic block link node-gateway node list, weight coefficients expected to be formed are increased according to the calling amount of the block link node-gateway node, an optimal topological graph of the dynamic network is generated by a sequence graph method, then temporary encryption public and private key pairs are generated according to a topological result and respectively distributed to the corresponding gateway nodes, cross-link calling is initiated to the corresponding service chain, and the service chain is bound with a distribution gateway, so that the calling link of the service chain-bound gateway-service chain can be realized, the temporary encryption public and private keys are transmitted through the encryption channel, and the safety of the dynamic link is ensured.
The embodiment of the invention realizes interconnection and intercommunication among different service chains through a dynamic cross-chain network, and realizes cross-service interactive query on the service chains. The cross-link network adopted by the embodiment of the invention is a cluster formed by a plurality of servers, each two service chains needing to be interconnected need to be dynamically configured with a pair of gateway nodes, the gateway node resources are released after the calling is finished, and the gateway nodes reenter the queue to be called for the next time of allocation, so that the efficient utilization of the gateway resources is realized.
In practical operation, the units and the modules may be combined or may be singly arranged, and the present invention is not limited thereto.
Based on similar inventive concepts, the embodiment of the invention also provides a life payment data processing method based on the block chain, and the method can be preferably realized based on a life payment data processing device.
Fig. 10 is a flowchart of a life payment data processing method, as shown in fig. 10, the method includes:
step 1001, receiving a job request from a cell chain node based on a pre-constructed inter-chain channel, where the job request includes: life payment data;
step 1002, performing corresponding operation on the life payment data according to the operation request;
and 1003, performing block chain consensus on the operation result to facilitate subsequent query.
Compared with the scheme of processing the life payment by a single chain in the prior art, the embodiment of the invention realizes the operation of executing the job request by the cross-chain channel, thereby improving the processing capacity of the system and effectively avoiding the problem of system downtime.
In one embodiment, when the job request is an upload request, performing corresponding operations on the life payment data according to the job request specifically includes: and uploading the life payment data to an upper-level block chain node for gathering so as to facilitate clearing operation.
In another embodiment, when the job request is an inquiry request, the performing corresponding operations on the life payment data according to the job request specifically includes: acquiring use data and expense data corresponding to the life payment data; and sending the use data and the expense data corresponding to the life payment data to a cell chain node so as to facilitate user query.
The embodiment of the invention realizes interconnection and intercommunication among different service chains through a dynamic cross-chain network, and realizes cross-service interactive query on the service chains. The cross-link network adopted by the embodiment of the invention is a cluster formed by a plurality of servers, each two service chains needing to be interconnected need to be dynamically configured with a pair of gateway nodes, the gateway node resources are released after the calling is finished, and the gateway nodes reenter the queue to be called for the next time of allocation, so that the efficient utilization of the gateway resources is realized.
The specific execution process of each step may refer to the description in the above system embodiment, and is not described herein again.
FIG. 11 is a schematic diagram of an electronic device according to an embodiment of the invention. The electronic device shown in fig. 11 is a general-purpose data processing apparatus comprising a general-purpose computer hardware structure including at least a processor 1101 and a memory 1102. The processor 1101 and the memory 1102 are connected by a bus 1103. The memory 1102 is adapted to store one or more instructions or programs that are executable by the processor 1101. The one or more instructions or programs are executed by processor 1101 to implement the steps in the block chain-based life payment data processing method described above.
The processor 1101 may be a stand-alone microprocessor or a collection of one or more microprocessors. Thus, the processor 1101 implements the processing of data and the control of other devices by executing the commands stored in the memory 1102, thereby executing the method flows of embodiments of the present invention as described above. The bus 1103 connects the above-described components together, as well as connecting the above-described components to the display controller 1104 and the display device and input/output (I/O) device 1105. Input/output (I/O) devices 1105 may be a mouse, keyboard, modem, network interface, touch input device, motion sensing input device, printer, and other devices known in the art. Typically, input/output (I/O) devices 1105 are connected to the system through an input/output (I/O) controller 1106.
The memory 1102 may store, among other things, software components such as an operating system, communication modules, interaction modules, and application programs. Each of the modules and applications described above corresponds to a set of executable program instructions that perform one or more functions and methods described in embodiments of the invention.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps of the block chain-based life payment data processing method.
In summary, the embodiments of the present invention improve the security and the non-tamper property of the production data by introducing a multi-level blockchain network. By introducing the encryption channel of the cross-link gateway network, the safety of cross-link calling is improved. Specifically, the embodiment of the invention has the following advantages:
(1) convenient and fast: the system can solve the problems that the current family life payment is not real-time and cannot be monitored in real time. Through the mode of collecting and broadcasting, the user can realize second-level monitoring of the water and electricity usage of the user.
(2) Safety: a multi-level blockchain network guarantees tamper-proof of production data. The dynamic cross-link gateway network transmits the temporary key pair through the encryption channel, and the cross-link channel is established by the temporary key pair, so that the security of cross-link calling is ensured.
(3) Data lake resources: through a multi-level block chain network, regional power utilization, water utilization and natural gas data sharing is realized, real data support is provided for cross-regional allocation, and unnecessary production data waste is avoided.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (12)

1. A life payment data processing method based on a block chain is characterized in that the block chain is a multi-level block chain, and the method comprises the following steps:
receiving a job request from a cell chain node based on a pre-constructed cross-chain channel, the job request comprising: life payment data;
performing corresponding operation on the life payment data according to the operation request;
and carrying out block chain consensus operation on the operation result so as to facilitate subsequent query.
2. The method according to claim 1, wherein the job request is an upload request, and performing corresponding operations on the life payment data according to the job request comprises:
and uploading the life payment data to an upper-level block chain node for gathering so as to facilitate clearing operation.
3. The method according to claim 2, wherein the job request is an inquiry request, and performing corresponding operations on the life payment data according to the job request comprises:
acquiring use data and expense data corresponding to the life payment data;
and sending the use data and the expense data corresponding to the life payment data to a cell chain node so as to facilitate user query.
4. The utility model provides a life payment data processing apparatus based on block chain, its characterized in that, the block chain is multistage block chain, the device includes:
a data receiving unit, configured to receive a job request from a cell chain node based on a pre-constructed inter-chain channel, where the job request includes: life payment data;
the execution unit is used for carrying out corresponding operation on the life payment data according to the operation request;
and the consensus unit is used for carrying out block chain consensus operation on the operation result so as to facilitate subsequent query.
5. The apparatus according to claim 4, wherein the job request is an upload request, and the execution unit is specifically configured to:
and uploading the life payment data to an upper-level block chain node for gathering so as to facilitate clearing operation.
6. The apparatus of claim 5, wherein the job request is a query request, and wherein the execution unit further comprises:
the data acquisition module is used for acquiring use data and expense data corresponding to the life payment data;
and the data sending module is used for sending the use data and the expense data corresponding to the life payment data to a cell chain node so as to facilitate the query of a user.
7. A life payment data processing system based on a block chain is characterized in that the block chain is a multi-level block chain, and the system comprises: the life payment data processing device of any one of claims 4 to 6, wherein the inter-chain gateway central node constructs an inter-chain channel between the cell chain link and the life payment data processing device.
8. The system of claim 7, wherein the cross-chain gateway central node comprises:
a request receiving unit, configured to receive a cross-link call request from the cell link node;
a gateway node determining unit, configured to determine a gateway node according to the cross-chain call request and configuration information between nodes of the current block chain;
and the cross-chain channel establishing unit is used for establishing a cross-chain channel between the cell link point and the gateway node so as to facilitate the communication between the cell link point and the life payment data processing device.
9. The system according to claim 8, wherein the gateway node determining unit comprises:
the node topology generating module is used for generating block chain node topology information based on a sequence diagram method according to the cross-chain calling request and the configuration information among the nodes of the current block chain;
and the gateway node determining module is used for determining the gateway node according to the block link node topology information.
10. The system of claim 8, wherein the cross-chain gateway hub node further comprises:
and the secret key generation unit is used for generating a communication secret key pair applied to communication between the cell chain node and the life payment data processing device according to a preset rule.
11. 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 method according to any of claims 1 to 3 are implemented when the processor executes the program.
12. 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 method of any one of claims 1 to 3.
CN202010469046.3A 2020-05-28 2020-05-28 Block chain-based life payment data processing method, device and system Active CN111680996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010469046.3A CN111680996B (en) 2020-05-28 2020-05-28 Block chain-based life payment data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010469046.3A CN111680996B (en) 2020-05-28 2020-05-28 Block chain-based life payment data processing method, device and system

Publications (2)

Publication Number Publication Date
CN111680996A true CN111680996A (en) 2020-09-18
CN111680996B CN111680996B (en) 2023-09-22

Family

ID=72434989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010469046.3A Active CN111680996B (en) 2020-05-28 2020-05-28 Block chain-based life payment data processing method, device and system

Country Status (1)

Country Link
CN (1) CN111680996B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685486A (en) * 2018-11-28 2019-04-26 杭州云象网络技术有限公司 A kind of polymeric chain framework based on block chain technology
US20190268351A1 (en) * 2018-02-27 2019-08-29 Alibaba Group Holding Limited Method, apparatus, system, and electronic device for cross-blockchain interaction
US20190289068A1 (en) * 2017-06-07 2019-09-19 Zhongan Information Technology Service Co., Ltd. Method, apparatus and system for realizing communication between blockchains
CN110266716A (en) * 2019-06-24 2019-09-20 中国南方电网有限责任公司 Power grid unitary service platform system
CN110276602A (en) * 2018-03-13 2019-09-24 焦臻桢 Block chain Classifying Consensus method, system and the electronic equipment of internet of things oriented
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190289068A1 (en) * 2017-06-07 2019-09-19 Zhongan Information Technology Service Co., Ltd. Method, apparatus and system for realizing communication between blockchains
US20190268351A1 (en) * 2018-02-27 2019-08-29 Alibaba Group Holding Limited Method, apparatus, system, and electronic device for cross-blockchain interaction
CN110276602A (en) * 2018-03-13 2019-09-24 焦臻桢 Block chain Classifying Consensus method, system and the electronic equipment of internet of things oriented
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN109685486A (en) * 2018-11-28 2019-04-26 杭州云象网络技术有限公司 A kind of polymeric chain framework based on block chain technology
CN110266716A (en) * 2019-06-24 2019-09-20 中国南方电网有限责任公司 Power grid unitary service platform system
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Also Published As

Publication number Publication date
CN111680996B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
Wang et al. AEBIS: AI-enabled blockchain-based electric vehicle integration system for power management in smart grid platform
Kumar et al. Vehicular delay-tolerant networks for smart grid data management using mobile edge computing
CN105005570B (en) Magnanimity intelligent power data digging method and device based on cloud computing
CN112270550B (en) New energy power tracing method and system based on blockchain
CN109902075B (en) Distributed cloud storage management platform system based on IPFS and block chain
CN110489493A (en) A kind of cloudy data center services quality identification based on block chain
CN105306557A (en) Bridge health monitoring system based on cloud platform
CN105260232B (en) A kind of method and system for realizing cloud computing virtual machine internal most optimum distribution of resources
CN113379485B (en) Hash algorithm and secondary quotation-based demand response bidding transaction method and system
CN104239555A (en) MPP (massively parallel processing)-based parallel data mining framework and MPP-based parallel data mining method
CN111582850A (en) Electricity charge recharging method and device based on mobile phone bank
Li et al. Scalable blockchain storage mechanism based on two-layer structure and improved distributed consensus
CN111585798A (en) Network resource parameter configuration method, device and computer readable storage medium
Wang A novel electric vehicle charging chain design based on blockchain technology
CN113763169A (en) Energy routing device based on block chain and energy management method
CN116258609B (en) Electric power system transaction cooperation method, device and storage medium
CN111680996B (en) Block chain-based life payment data processing method, device and system
KR102221925B1 (en) Method for performing mining in parallel with machine learning and method for supproting the mining, in a distributed computing resource shring system based on block chain
Sharifi et al. Combing smart grid with community clouds: Next generation integrated service platform
CN115277692B (en) Automatic operation and maintenance method, device and system for edge network computing terminal equipment
Ou et al. Research on network performance optimization technology based on cloud-edge collaborative architecture
KR100609459B1 (en) parallel distributed processing system and method
CN115130885A (en) Power demand side management alternate optimization method, device, equipment and medium
CN106600112A (en) Power network engineering cost data management system
Xiao et al. A dynamic and resource sharing virtual network mapping algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant