Detailed Description
In order to make the technical solutions in one or more embodiments of the present disclosure better understood, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of one or more embodiments of the present disclosure, but not all embodiments. All other embodiments that can be derived by a person skilled in the art from the embodiments described in one or more of the present specification without inventive step should be considered within the scope of protection of this document.
It should be noted that one or more embodiments and features of the embodiments in the present description may be combined with each other without conflict. Reference will now be made in detail to one or more embodiments of the disclosure, examples of which are illustrated in the accompanying drawings.
One or more embodiments of the present disclosure provide a method, an apparatus, and a system for transferring resources based on a block chain, which automatically determine resource payment data of an energy user and resource allocation data of an energy provider based on energy metering data collected and uploaded to the block chain in real time by an energy metering data system by using a block chain technology and an intelligent contract, so as to ensure that the resource payment data and the resource allocation data are automatically determined and the resource transfer processing is automatically completed under a multi-party witness, improve the determination reliability of the resource payment data and the resource allocation data between the energy user and the energy provider and the security of a resource transfer process, and achieve the purpose of completing resource payment of the energy user for the usage of comprehensive energy and resource allocation among a plurality of energy providers for the supply of the comprehensive energy by using a refined management and control manner, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
Fig. 1 is a schematic application scenario diagram of a resource transfer system based on a block chain according to one or more embodiments of the present specification, and as shown in fig. 1, the system includes: the energy metering data system is used for receiving energy metering data collected by energy metering equipment, the energy metering data system can be a data server used for performing energy metering data statistics, and the data server can be an independent server or a server cluster consisting of a plurality of servers; the energy metering data received by the energy metering data system may be from a plurality of energy metering devices, the energy metering data comprising: energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, correspondingly, the energy metering device comprises: energy supply metering equipment deployed on an energy supplier side, energy consumption metering equipment deployed on an energy consumer side and other internet-of-things equipment, for example, the energy supplier can be a high-energy-consumption enterprise, and the energy consumer can be a heating enterprise or a heating user; the payment service system can be a background server for providing resource transfer service, and the background server can be an independent server or a server cluster consisting of a plurality of servers;
specifically, aiming at the process of resource transfer between an energy supplier and an energy user, energy supply metering equipment acquires energy supply metering data of the energy supplier and uploads the energy supply metering data to an energy metering data system; the energy consumption metering device collects energy consumption metering data of an energy user, uploads the energy consumption metering data to the energy metering data system, and the energy metering data system uploads the energy supply metering data and the energy consumption metering data to at least one block chain node in the block chain. The at least one block chain node acquires energy supply metering data of an energy supplier and energy utilization metering data of an energy user; determining resource allocation data of an energy supplier and resource payment data of an energy user based on the energy supply metering data and the energy consumption metering data by using an intelligent contract deployed in a block chain; and transmitting the resource allocation data and the resource payment data to a payment service system. The payment service system performs resource transfer between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data.
Based on the application scenario diagram of the resource transfer system based on the block chain in fig. 1, as shown in fig. 2, the energy metering data system may communicate with at least one block link point of the access block chain, and the payment service system may also communicate with at least one block link point of the access block chain, specifically, the resource transfer based on the block chain specifically includes:
the energy metering data system receives energy supply metering data of an energy supplier uploaded by the energy supply metering equipment and receives energy consumption metering data of an energy user uploaded by the energy consumption metering equipment; specifically, the energy supply metering equipment acquires energy supply metering data of an energy supplier and uploads the energy supply metering data to an energy metering data system; the energy consumption metering equipment is used for collecting energy consumption metering data of an energy user and uploading the energy consumption metering data to the energy metering data system;
the energy metering data system uploads the received energy supply metering data and energy consumption metering data to at least one block chain node in a block chain;
the system comprises at least one block chain node, a data processing unit and a data processing unit, wherein the block chain node acquires energy supply metering data of an energy supply party and energy consumption metering data of an energy use party;
at least one blockchain node, which determines resource allocation data of the energy supplier and resource payment data of the energy user based on energy supply metering data of the energy supplier and energy consumption metering data of the energy user by using an intelligent contract deployed in a blockchain; and the number of the first and second groups,
at least one block chain node, which transmits the resource allocation data and the resource payment data to a payment service system;
and the payment service system is used for transferring resources between the account of the energy supplier and the account of the energy user based on the received resource allocation data and resource payment data.
In the application scenario, by using the blockchain technology and the intelligent contract, the resource payment data of the energy user and the resource allocation data of the energy supplier are automatically determined based on the energy metering data which is collected by the energy metering data system in real time and uploaded to the blockchain, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
Fig. 3 is a first flowchart of a resource transfer method based on a block chain according to one or more embodiments of the present disclosure, where the method in fig. 3 can be performed by at least one block chain node in the block chain in fig. 1, as shown in fig. 3, and the method at least includes the following steps:
s302, acquiring energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, wherein the energy supply metering data and the energy consumption metering data are uploaded to a block chain by an energy metering data system;
specifically, energy supply metering data supplied by a target energy source user is collected in real time through energy supply metering equipment deployed on an energy source supplier side, the collected energy supply metering data is uploaded to an energy source metering data system, the energy source metering data system uploads the energy supply metering data to at least one block chain node in a block chain, energy consumption metering data consumed by the target energy source supplier and the energy source user is collected in real time through energy consumption metering equipment deployed on the energy source user side, the collected energy consumption metering data is uploaded to an energy source metering data system, and the energy consumption metering data is uploaded to at least one block chain node in the block chain through the energy source metering data system;
s304, determining resource allocation data of an energy supplier and resource payment data of an energy user based on the energy supply metering data and the energy consumption metering data by using an intelligent contract deployed in a block chain;
specifically, the intelligent contracts deployed in the blockchain are generated in advance based on a resource transfer data determination template uploaded by an energy service providing platform, and correspondingly, after energy supply metering data and energy consumption metering data are obtained, values of parameters of the intelligent contracts deployed in the blockchain are determined based on the energy supply metering data and the energy consumption metering data, so that resource allocation data of an energy supply party and resource payment data of an energy use party are automatically determined through the intelligent contracts;
wherein the energy supply metering data may include: the energy supplier identifier, the energy consumer identifier (i.e. the destination of the energy supplied by the energy supplier) and the energy supply amount, the energy consumption measurement data may include: the energy source supplier identification (namely the energy source consumed by the energy source user), the energy source user identification and the energy consumption amount are provided by a plurality of energy suppliers aiming at the condition that the number of the energy suppliers is multiple, correspondingly, the energy distribution data corresponding to each energy supplier is automatically determined through an intelligent contract, namely, the resource payment data of the energy supplier is automatically distributed to each energy supplier through the intelligent contract.
S306, transmitting the resource allocation data and the resource payment data to a payment service system so that the payment service system transfers resources between an account of an energy supplier and an account of an energy user based on the resource allocation data and the resource payment data;
specifically, after resource allocation data of an energy supplier and resource payment data of an energy user are automatically determined through an intelligent contract, a payment service system is automatically triggered to complete resource transfer between the energy supplier and the energy user;
wherein, the resource payment data may include: the energy consumption rate that the energy using party needs to pay to the energy supplying party, and the resource allocation data may include: energy source supplier can charge energy profit fee to energy source user; specifically, the payment service system transfers the digital resources in the account of the energy user according to the resource payment data, that is, after the resources are transferred between the account of the energy provider and the account of the energy user, the digital resources in the account of the energy user are the original remaining resources minus the energy consumption cost; correspondingly, the payment service system transfers the digital resources to the account of the energy supplier according to the resource allocation data, namely after the resources are transferred between the account of the energy supplier and the account of the energy user, the digital resources in the account of the energy supplier are the original residual resources plus the energy profit cost.
In one or more embodiments of the present specification, resource payment data of an energy user and resource allocation data of an energy supplier are automatically determined based on energy metering data collected in real time by an energy metering data system and uploaded to a blockchain by using blockchain technology and intelligent contracts, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
Furthermore, in consideration of ensuring the security of the energy metering data, the server corresponding to the energy metering data system is deployed in an internal machine room, the network to which the server corresponding to the energy metering data system is connected is an intranet network, and the energy metering device uploads the collected energy metering data to the energy metering data system through the internal network, so that the energy metering data received by the energy metering data system from the energy metering device is only checked by an intranet user, and an external user cannot acquire the energy metering data of the energy supplier or the energy metering data of the energy consumer, therefore, in order to transmit the energy metering data of the energy supplier and the energy metering data of the energy consumer to the external internet on the premise of ensuring the security of the energy metering data, the resource payment data of the energy consumer and the resource of the energy supplier are automatically determined by using a block chain technology and an intelligent contract Distributing data, wherein the block chain comprises at least one first block chain node, the first block chain node is the same as the deployment area of a server corresponding to the energy metering data system, namely the first block chain node is deployed in an internal machine room of an energy information center where the energy metering data statistical server is located, and a firewall is arranged between the energy metering data system and the first block chain node;
correspondingly, in step S302, acquiring energy supply metering data of the energy supplier and energy consumption metering data of the energy consumer specifically includes:
the first block link point acquires energy supply metering data of an energy supplier and energy utilization metering data of an energy user, which are uploaded by the energy metering data system through the firewall.
Specifically, because the networking network segment of the server corresponding to the energy metering data system is an intranet segment, the intranet data of the energy enterprise is safely isolated, and an external user cannot directly inquire the energy metering data on the energy metering data system, a first block chain node is arranged in a deployment area where the server corresponding to the energy metering data system is located, wherein the deployment area can be an internal machine room where the server corresponding to the energy metering data system is located, the networking network segment of the first block chain node is arranged as an external network segment of the deployment area where the server corresponding to the energy metering data system is located, namely a network connected with the first block chain node is the internet, and a firewall is arranged between the energy metering data system and the first block chain node, so that the firewall technology can be utilized to selectively transmit the energy metering data related to energy payment cost determination and energy profit allocation determination in a single direction through the firewall And the required energy metering data is transmitted to the Internet from an internal network connected with the energy metering data system on the premise of ensuring data security, and then the resource payment data of the energy user and the resource allocation data of the energy supplier are automatically determined by using a block chain technology and an intelligent contract.
In order to further ensure the data completeness of transmitting the energy supply metering data of the energy supplier and the energy consumption metering data of the energy consumer from the internal network to the internet, the method further includes, after acquiring the energy supply metering data of the energy supplier and the energy consumption metering data of the energy consumer, which are uploaded by the energy metering data system through the firewall, at the first block link point:
the first block chain link point encrypts energy supply metering data of an energy supplier to obtain encrypted energy supply metering data, and encrypts energy consumption metering data of an energy user to obtain encrypted energy consumption metering data;
and the first block chain link point writes the encrypted energy supply metering data and the encrypted energy consumption metering data into the block chain.
Specifically, after the first block link point acquires the energy supply metering data and the energy consumption metering data through the firewall technology, the energy supply metering data and the energy consumption metering data are not directly written into the block chain, the energy supply metering data and the energy consumption metering data are encrypted firstly, and then the encrypted metering data are written into the block chain.
Furthermore, energy metering data on the energy metering data system is uploaded to the internet from an internal network through first block chain nodes arranged in a deployment area where a server corresponding to the energy metering data system is located, and once the first block chain nodes are abnormal, the energy metering data cannot be uploaded to the internet, so that the high availability of the first block chain nodes is ensured in order to ensure the stability of transmitting the energy metering data of an energy supplier and the energy metering data of an energy consumer from the internal network to the internet, and the energy metering data can be normally transmitted to the block chain even if one first block chain node is abnormal, and on the basis, the number of the first block chain nodes is more than 2 or equal to 2; specifically, the number of the energy metering data systems may be multiple, and at this time, at least two first block chain nodes need to be deployed in an internal machine room where a server corresponding to each energy metering data system is located; for example, the total number of first blockchain nodes in a blockchain may be at least 2n, where n is the total number of energy metering data systems;
correspondingly, the above-mentioned first block chain link point obtains energy supply measurement data of the energy supplier that the energy measurement data system uploaded through preventing the hot wall and the energy consumption measurement data of the energy user, specifically includes:
any target block chain node of the at least two first block chain nodes acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user, wherein the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user are uploaded by the energy metering data system through a firewall; and the number of the first and second groups,
any target block chain link node in the at least two first block chain nodes synchronizes the acquired energy supply metering data and the acquired energy consumption metering data to other first block chain nodes in a consensus mode.
Specifically, considering that the firewall has a certain load balancing function, a target block chain node can be automatically selected from at least two first block chain nodes by the firewall based on a preset load balancing mode, the energy metering data system is triggered to pass through the firewall to upload energy supply metering data and energy consumption metering data to the target block chain node, and the target block chain node is used for synchronizing the energy metering data to other block chain nodes, so that the stability that the energy supply metering data and the energy consumption metering data are transmitted to the internet from the internal network by the first block chain node can be ensured.
The method comprises the steps that in the process of resource transfer between an account of an energy supplier and an account of an energy user, resource allocation data of the energy supplier and resource payment data of the energy user are automatically determined through an intelligent contract, so that the intelligent contract for determining the resource allocation and resource payment data needs to be deployed in a block chain in advance, and on the basis of the intelligent contract, the block chain further comprises at least a preset number of second block chain nodes, and the second block chain nodes are different from the deployment region of the first block chain nodes; the deployment area of the second block chain node can be an external machine room different from an internal machine room where the energy metering data system is located, the network connected with the second block chain node is the internet, and the energy service providing platform is in communication connection with the second block chain node;
correspondingly, before acquiring the energy supply metering data of the energy supplier and the energy consumption metering data of the energy consumer at the above step S302, the method further includes:
a second block link point acquires a resource transfer data determination template uploaded by an energy service providing platform; the resource transfer data determination template can be generated by the energy service providing platform based on a preset energy charging rule and a preset resource allocation rule;
the second block link point generates an intelligent contract for determining resource allocation and resource payment data based on the resource transfer determination template, wherein energy charging unit price information in the intelligent contract can be a dynamic parameter, and the energy service providing platform dynamically determines and credibly links the resource according to the energy supply capacity of the energy supplier and the energy utilization requirement of the energy user;
in addition, the resource transfer data determination template includes a plurality of dynamic fields, for example, basic attribute information of the energy supplier or the energy consumer, such as a business name, address information, and business account information, and therefore, the business service system of the energy supplier or the energy consumer is also required to upload the basic attribute information to the second block chaining node in advance, and the second block chaining node updates the plurality of dynamic fields in the resource transfer data determination template based on the basic attribute information, so as to trigger the smart contract generated based on the resource transfer determination template to take effect.
The resource transfer data determination template further includes a plurality of variable parameters, and correspondingly, the intelligent contract for determining the resource allocation and resource payment data includes a plurality of variable parameters, and specifically, based on the acquired energy supply metering data of the energy supplier and the energy consumption metering data of the energy consumer, values of parameters of the intelligent contract deployed in the block chain can be determined, so that the resource allocation data of the energy supplier and the resource payment data of the energy consumer are automatically determined through the intelligent contract.
Specifically, when at least two first block link points deployed in an internal machine room of an energy enterprise data center (i.e., a data service center provided with a server corresponding to an energy metering data system) are unavailable at the same time, resource allocation data of an energy supplier and resource payment data of an energy user can be determined through a second block link point deployed in an external machine room connected to the internet based on energy metering data uploaded to a block chain, so that resource transfer between an account of the energy supplier and an account of the energy user is realized.
Further, for a process of triggering the payment service system to automatically perform resource transfer between the account of the energy provider and the account of the energy user, considering that there may be a case that the payment service system does not access the block chain, if the payment service system is called through the API to complete automatic resource transfer, and the payment service system returns a corresponding resource transfer record to write into the block chain, since the payment service system does not participate in the consensus storage of the resource transfer record, for the payment service system, there may be a case that the resource transfer record in the block chain cannot be certified with confidence, therefore, in order to improve the confidence level of the payment service system on the payment call record stored on the block chain, based on this, the above S306 transmits the above resource allocation data and the resource payment data to the payment service system, specifically including:
and calling a payment service system by using a prediction machine technology, and transmitting the resource allocation data and the resource payment data to the payment service system.
According to the method, the automatic payment settlement is realized for the energy consumption of energy users and the automatic income distribution is completed for the energy supply amount of a plurality of energy suppliers by utilizing a prediction machine technology under the condition that a payment service system does not access a block chain, so that the interface calling record of the payment service system can be recorded by the block chain link point in a trusted manner, and the interface calling record recorded in the block chain can achieve credible consensus between the block chain link point and the payment service system.
Specifically, after the calling the payment service system by using the predictive machine technology and transmitting the resource allocation data and the resource payment data to the payment service system, the method further includes:
acquiring an interface calling record aiming at the payment service system by using a prophone technology; and the number of the first and second groups,
acquiring a resource transfer record returned by the payment service system by using a predicting machine technology;
and writing the interface call record and the resource transfer record into a block chain.
Specifically, the interface call record may include: the interface call time, the payment service system identifier and other related information, and the resource transfer record may include: and the interface call record and the resource transfer record uplink are used as storage evidence so as to trace and verify the resource transfer process between the account of the energy supplier and the account of the energy user.
In order to effectively manage and control the access operation of the energy metering data in the blockchain, so as to further improve the security of the energy metering data, based on this, before acquiring the energy supply metering data of the energy supplier and the energy consumption metering data of the energy consumer in the above S302, the method further includes:
the second block link point acquires data access authorization information uploaded by the energy service providing platform, wherein the data access authorization information comprises: identification information of an authorized party and/or identification information of authorized access data;
and the second block chain link point writes the data access authorization information into the block chain.
Specifically, for each energy supply enterprise or energy utilization enterprise with energy supply metering data query requirements, real-name registration is performed in advance to join a blockchain alliance, and an energy service providing platform uploads data access authorization information of the energy supply enterprise or energy utilization enterprise needing data access authorization to a blockchain in advance, namely, the access authorization is set for energy supply metering data in the blockchain, so that a subsequent blockchain node judges whether a current data access party has data access authorization or not based on the data access authorization information, and therefore, the data access request of the energy supply enterprise or energy utilization enterprise can be responded on the premise of real-name authorization of the energy supply enterprise or energy utilization enterprise, the safety of the energy metering data is ensured, and the risk that the energy metering data are leaked is avoided.
Specifically, for the condition that the energy service providing platform performs data access authorization on an external user with a data access requirement in advance, after receiving a data access request, automatically judging whether a data access party has a corresponding data access right, and only allowing the external user with the data access right to access the energy metering data in the block chain, so as to improve the access security of the energy metering data in the block chain, based on which, the method further comprises:
a second block link point acquires a data access request aiming at energy supply metering data or energy use metering data in the block chain; the data access request carries identification information of a data access party and/or identification information of target metering data requested to be accessed;
the second block chain node judges whether the data access party has the access authority to access the target metering data or not according to the data access request and the data access authorization information;
and when the second block chain node determines that the data access party has the access right to access the target metering data, transmitting the target metering data to the data access party.
Specifically, in order to ensure traceability of query and access operations of the energy metering data, the second block link point generates a corresponding query record of the metering data according to the query operation of the data access method on the target metering data, and uploads the query record of the metering data to the block chain.
In an embodiment, as shown in fig. 4, based on an application scenario diagram of the resource transfer system based on the block chain in fig. 1, the system further includes: an energy service providing platform; the at least one blockchain node may include: the system comprises at least one first block chain node and a preset number of second block chain nodes;
the number of the first block chain nodes is more than 2 or equal to 2; the first block link point is the same as the deployment area of the server corresponding to the energy metering data system, namely the first block link point is deployed in an internal machine room of an energy information center where the energy metering data statistical server is located, a firewall is arranged between the energy metering data system and the first block link point, the connection network of the energy metering data system corresponding to the server is an internal network, and the connection network of the first block link point is the internet; the number of the second block chain nodes is greater than the preset number, the deployment areas of the second block chain nodes and the first block chain nodes are different, and the connection network of the second block chain nodes is the internet;
the minimum preset number of the second block chain nodes is the minimum node number determined based on a preset common identification mechanism, for example, taking the preset common identification mechanism as a state machine copy replication algorithm PBFT as an example, the minimum node number is 3f +1, and f represents the number of block chain links that are allowed to be inactive, so as to ensure high availability of the second block chain nodes, that is, under the condition that none of the first block chain links is available, it is ensured that the resource allocation data of the energy supplier and the resource payment data of the energy consumer can be normally completed through the second block chain links, and the resource transfer between the account of the energy supplier and the account of the energy consumer is completed.
Specifically, based on the deployment area of the blockchain node in fig. 4, as shown in fig. 5, the energy metering data system may communicate with a first blockchain link point of the access blockchain, the payment service system may communicate with a second blockchain link point of the access blockchain, and the energy service providing platform may communicate with a second blockchain link point of the access blockchain, based on which the specific resource transfer process based on the blockchain includes:
the energy service providing platform generates a resource transfer data determining template based on a preset energy charging rule and a preset resource allocation rule;
the energy service providing platform uploads the resource transfer data determining template to any second block chain node in the block chain;
the second block chain node generates an intelligent contract for determining resource allocation and resource payment data based on the resource transfer determination template; and writing the intelligent contract into a block chain;
the energy metering data system receives energy supply metering data of an energy supplier uploaded by the energy supply metering equipment and receives energy consumption metering data of an energy user uploaded by the energy consumption metering equipment; specifically, the energy supply metering equipment acquires energy supply metering data of an energy supplier and uploads the energy supply metering data to an energy metering data system; the energy consumption metering equipment is used for collecting energy consumption metering data of an energy user and uploading the energy consumption metering data to the energy metering data system;
the energy metering data system uploads the received energy supply metering data and the received energy consumption metering data to at least one first block chain node in the block chain;
the first block chain node acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user, and commonly identifies and synchronizes the energy supply metering data and the energy consumption metering data to other block chain nodes so as to write the energy supply metering data and the energy consumption metering data into a block chain;
the second block chain node determines resource allocation data of the energy supplier and resource payment data of the energy user based on energy supply metering data of the energy supplier and energy consumption metering data of the energy user by using the intelligent contract deployed in the block chain; and the number of the first and second groups,
the second block chain node calls a payment service system by using a prediction machine technology and transmits the resource allocation data and the resource payment data to the payment service system;
the payment service system is used for transferring resources between the account of the energy supplier and the account of the energy user based on the received resource allocation data and resource payment data;
the payment service system returns the resource transfer record to the second block node;
the second block chain node acquires an interface calling record aiming at the payment service system by using a prediction machine technology; and the number of the first and second groups,
the second block chain node receives a resource transfer record returned by the payment service system by using a prediction machine technology;
the second block chain node writes the interface call record and the resource transfer record into the block chain;
the energy service providing platform is used for sending data access authorization information to the second block link points;
the second block chain node receives the data access authorization information uploaded by the energy service providing platform;
the second block chain node writes the data access authorization information into a block chain;
the second block chain node judges whether the data access party has the access authority to access the target metering data or not according to the received data access request and the data access authorization information in the block chain;
and the second block chain node transmits the target metering data to the corresponding data access party when the data access party is determined to have the access right to access the target metering data.
The energy supply metering data and the energy consumption metering data of the energy supplier are acquired, wherein the energy supply metering data and the energy consumption metering data are uploaded to the block chain by an energy metering data system. And determining resource allocation data of the energy supplier and resource payment data of the energy user based on the energy supply metering data and the energy consumption metering data by using the intelligent contracts deployed in the blockchain. And transmitting the resource allocation data and the resource payment data to the payment service system so that the payment service system performs resource transfer between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data. By utilizing the block chain technology and the intelligent contract, the resource payment data of the energy user and the resource allocation data of the energy supplier are automatically determined based on the energy metering data which is collected by the energy metering data system in real time and uploaded to the block chain, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
Corresponding to the above resource transfer method based on the block chain described in fig. 2 to fig. 5, based on the same technical concept, one or more embodiments of the present specification further provide a resource transfer apparatus based on the block chain, and fig. 6 is a schematic diagram of module compositions of the resource transfer apparatus based on the block chain provided in one or more embodiments of the present specification, where the apparatus is configured to execute the resource transfer method based on the block chain described in fig. 2 to fig. 5, and as shown in fig. 6, the apparatus includes:
the metering data acquisition module 601 is used for acquiring energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, wherein the energy supply metering data and the energy consumption metering data are uploaded to a block chain by an energy metering data system;
a resource data determination module 602 that determines resource allocation data of the energy supplier and resource payment data of the energy consumer based on the energy supply metering data and the energy consumption metering data using the smart contracts deployed in the blockchain;
a resource data sending module 603, configured to transmit the resource allocation data and the resource payment data to a payment service system, so that the payment service system performs resource transfer between the account of the energy supplier and the account of the energy consumer based on the resource allocation data and the resource payment data.
In one or more embodiments of the present specification, resource payment data of an energy user and resource allocation data of an energy supplier are automatically determined based on energy metering data collected in real time by an energy metering data system and uploaded to a blockchain by using blockchain technology and intelligent contracts, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
Optionally, the block chain includes at least one first block chain node, the first block chain node is the same as a deployment area of a server corresponding to the energy metering data system, and a firewall is disposed between the energy metering data system and the first block chain node;
the first block chain node acquires energy supply metering data of an energy supplier and energy utilization metering data of an energy user, wherein the energy supply metering data of the energy supply supplier and the energy utilization metering data of the energy user are uploaded by the energy metering data system through the firewall.
Optionally, the first blockchain node is to:
encrypting the energy supply metering data to obtain encrypted energy supply metering data, and encrypting the energy consumption metering data to obtain encrypted energy consumption metering data;
and writing the encrypted energy supply metering data and the encrypted energy consumption metering data into the block chain.
Optionally, the number of first blockchain nodes is greater than 2 or equal to 2; any one target blockchain node of the at least two first blockchain nodes, which:
acquiring energy supply metering data of an energy supplier and energy consumption metering data of an energy user, which are uploaded by the energy metering data system through the firewall;
and synchronizing the energy supply metering data and the energy consumption metering data to other first blockchain nodes.
Optionally, the blockchain further includes at least a preset number of second blockchain nodes, and the deployment regions of the second blockchain nodes and the first blockchain nodes are different; the second blockchain node, which:
acquiring resource transfer data determination templates uploaded by an energy service providing platform;
and generating an intelligent contract for determining resource allocation and resource payment data determination based on the resource transfer determination template.
Optionally, the resource data sending module 603 is configured to:
and calling a payment service system by using a prediction machine technology, and transmitting the resource allocation data and the resource payment data to the payment service system.
Optionally, the apparatus further comprises: a resource transfer record acquisition module that:
acquiring an interface calling record aiming at the payment service system by using a prophetic machine technology; and the number of the first and second groups,
acquiring a resource transfer record returned by the payment service system by using a predicting machine technology;
and writing the interface call record and the resource transfer record into the block chain.
Optionally, the second blockchain node is to:
acquiring data access authorization information uploaded by an energy service providing platform, wherein the data access authorization information comprises: identification information of an authorized party and/or identification information of authorized access data;
and writing the data access authorization information into the block chain.
Optionally, the second blockchain node is to:
obtaining a data access request aiming at the energy supply metering data or the energy consumption metering data in the block chain; the data access request carries identification information of a data access party and/or identification information of target metering data requested to be accessed;
judging whether the data access party has the access authority to access the target metering data or not according to the data access request and the data access authorization information;
transmitting the target metering data to the data accessor upon determining that the data accessor has access rights to access the target metering data.
The resource transfer device based on the block chain in one or more embodiments of the present specification includes a metering data acquisition module, which acquires energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, wherein the energy supply metering data and the energy consumption metering data are uploaded to the block chain by an energy metering data system. And the resource data determination module is used for determining resource allocation data of the energy supplier and resource payment data of the energy user based on the energy supply metering data and the energy consumption metering data by utilizing the intelligent contracts deployed in the blockchain. And the resource data sending module is used for transmitting the resource allocation data and the resource payment data to the payment service system so that the payment service system can transfer the resources between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data. By utilizing the block chain technology and the intelligent contract, the resource payment data of the energy user and the resource allocation data of the energy supplier are automatically determined based on the energy metering data which is collected by the energy metering data system in real time and uploaded to the block chain, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
It should be noted that, the embodiment of the resource transfer apparatus based on the block chain in this specification and the embodiment of the resource transfer method based on the block chain in this specification are based on the same inventive concept, and therefore, specific implementation of this embodiment may refer to implementation of the foregoing corresponding resource transfer method based on the block chain, and repeated details are not repeated.
Corresponding to the above resource transfer method based on the block chain described in fig. 2 to fig. 5, based on the same technical concept, one or more embodiments of the present specification further provide a resource transfer system based on the block chain, and fig. 7 is a schematic structural composition diagram of the resource transfer system based on the block chain provided in one or more embodiments of the present specification, where the system is configured to execute the resource transfer method based on the block chain described in fig. 2 to fig. 5, and as shown in fig. 7, the system includes: the system comprises at least one block chain node in a block chain, and an energy metering data system and a payment service system which are in communication connection with the at least one block chain node;
the energy metering data system collects energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, and uploads the energy supply metering data and the energy consumption metering data to the block chain;
the at least one block chain node acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user; determining resource allocation data of an energy supplier and resource payment data of an energy user based on the energy supply metering data and the energy consumption metering data by using the intelligent contract deployed in the blockchain; and transmitting the resource allocation data and the resource payment data to a payment service system;
the payment service system transfers resources between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data.
Specifically, the specific process of resource transfer based on the block chain includes:
the energy supply metering equipment is used for acquiring energy supply metering data of an energy supplier and uploading the energy supply metering data to the energy metering data system; and the number of the first and second groups,
the energy consumption metering equipment is used for acquiring energy consumption metering data of an energy user and uploading the energy consumption metering data to the energy metering data system;
the energy metering data system uploads the received energy supply metering data and energy consumption metering data to at least one block chain node in a block chain;
the system comprises at least one block chain node, a data processing unit and a data processing unit, wherein the block chain node acquires energy supply metering data of an energy supply party and energy consumption metering data of an energy use party;
at least one blockchain node, which determines resource allocation data of the energy supplier and resource payment data of the energy user based on energy supply metering data of the energy supplier and energy consumption metering data of the energy user by using an intelligent contract deployed in a blockchain; and the number of the first and second groups,
at least one block chain node, which transmits the resource allocation data and the resource payment data to a payment service system;
and the payment service system is used for transferring resources between the account of the energy supplier and the account of the energy user based on the received resource allocation data and resource payment data.
Further, as shown in fig. 8, the system further includes: an energy service providing platform; the at least one blockchain node may include: the system comprises at least one first block chain node and a preset number of second block chain nodes;
the number of the first block chain nodes is more than 2 or equal to 2; the first block link point is the same as the deployment area of the server corresponding to the energy metering data system, if the first deployment area is the first block link point, the first block link point is deployed in an internal machine room of an energy information center where the energy metering data statistical server is located, a firewall is arranged between the energy metering data system and the first block link point, the connection network of the server corresponding to the energy metering data system is an internal network, and the connection network of the first block link point is the internet; the number of the second block chain nodes is greater than the preset number, the second block chain nodes are different from the deployment region of the first block chain nodes, if the second block chain nodes are deployed in a second deployment region different from the first deployment region, the connection network of the second block chain nodes is the internet;
specifically, the energy metering data system may communicate with a first block link point of the access block chain, the payment service system may communicate with a second block link point of the access block chain, and the energy service providing platform may communicate with the second block link point of the access block chain, based on which the specific resource transfer process based on the block chain includes:
the energy service providing platform generates a resource transfer data determining template based on a preset energy charging rule and a preset resource allocation rule;
the energy service providing platform uploads the resource transfer data determining template to any second block chain node in the block chain;
the second block chain node generates an intelligent contract for determining resource allocation and resource payment data based on the resource transfer determination template; and writing the intelligent contract into a block chain;
the energy metering data system receives energy supply metering data of an energy supplier uploaded by the energy supply metering equipment and receives energy consumption metering data of an energy user uploaded by the energy consumption metering equipment; specifically, the energy supply metering equipment acquires energy supply metering data of an energy supplier and uploads the energy supply metering data to an energy metering data system; the energy consumption metering equipment is used for collecting energy consumption metering data of an energy user and uploading the energy consumption metering data to the energy metering data system;
the energy metering data system uploads the received energy supply metering data and the received energy consumption metering data to at least one first block chain node in the block chain;
the first block chain node acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user, and commonly identifies and synchronizes the energy supply metering data and the energy consumption metering data to other block chain nodes so as to write the energy supply metering data and the energy consumption metering data into a block chain;
the second block chain node determines resource allocation data of the energy supplier and resource payment data of the energy user based on energy supply metering data of the energy supplier and energy consumption metering data of the energy user by using the intelligent contract deployed in the block chain; and the number of the first and second groups,
the second block chain node calls a payment service system by using a prediction machine technology and transmits the resource allocation data and the resource payment data to the payment service system;
the payment service system is used for transferring resources between the account of the energy supplier and the account of the energy user based on the received resource allocation data and resource payment data;
the payment service system returns the resource transfer record to the second block node;
the second block chain node acquires an interface calling record aiming at the payment service system by using a prediction machine technology; and the number of the first and second groups,
the second block chain node receives a resource transfer record returned by the payment service system by using a prediction machine technology;
the second block chain node writes the interface call record and the resource transfer record into the block chain;
the energy service providing platform is used for sending data access authorization information to the second block link points;
the second block chain node receives the data access authorization information uploaded by the energy service providing platform;
the second block chain node writes the data access authorization information into a block chain;
the second block chain node judges whether the data access party has the access authority to access the target metering data or not according to the received data access request and the data access authorization information in the block chain;
and the second block chain node transmits the target metering data to the corresponding data access party when the data access party is determined to have the access right to access the target metering data.
In the resource transfer system based on the block chain in one or more embodiments of the present specification, by using the block chain technology and the intelligent contract, based on the energy metering data collected and uploaded to the block chain in real time by the energy metering data system, the resource payment data of the energy user and the resource allocation data of the energy provider are automatically determined, so that it is ensured that the resource payment data and the resource allocation data are automatically determined under the evidence of multiple parties, the resource transfer process is automatically completed, the determination reliability of the resource payment data and the resource allocation data between the energy user and the energy provider and the security of the resource transfer process are improved, the resource payment of the energy user for the usage condition of the integrated energy and the resource allocation among multiple energy providers for the supply condition of the integrated energy are completed in a refined control manner, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
It should be noted that, the embodiment of the resource transfer system based on the block chain in this specification and the embodiment of the resource transfer method based on the block chain in this specification are based on the same inventive concept, and therefore, specific implementation of this embodiment may refer to implementation of the foregoing corresponding resource transfer method based on the block chain, and repeated details are not repeated.
Further, corresponding to the methods shown in fig. 2 to fig. 5, based on the same technical concept, one or more embodiments of the present specification further provide a resource transfer device based on a block chain, where the device is configured to perform the above resource transfer method based on a block chain, as shown in fig. 9.
The resource transfer device based on the block chain may have a large difference due to different configurations or performances, and may include one or more processors 901 and a memory 902, and the memory 902 may store one or more stored applications or data. Memory 902 may be, among other things, transient storage or persistent storage. The application program stored in memory 902 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a blockchain-based resource transfer device. Still further, the processor 901 may be configured to communicate with the memory 902 to execute a series of computer-executable instructions in the memory 902 on a blockchain based resource transfer device. The blockchain-based resource transfer apparatus may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input-output interfaces 905, one or more keyboards 906, and the like.
In a particular embodiment, a blockchain based resource transfer device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the blockchain based resource transfer device, and execution of the one or more programs by one or more processors includes computer executable instructions for:
acquiring energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, wherein the energy supply metering data and the energy consumption metering data are uploaded to a block chain by an energy metering data system;
determining resource allocation data of the energy supplier and resource payment data of the energy consumer based on the energy supply metering data and the energy consumption metering data by using the intelligent contracts deployed in the blockchain;
transmitting the resource allocation data and the resource payment data to a payment service system to enable the payment service system to perform resource transfer between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data.
In one or more embodiments of the present specification, resource payment data of an energy user and resource allocation data of an energy supplier are automatically determined based on energy metering data collected in real time by an energy metering data system and uploaded to a blockchain by using blockchain technology and intelligent contracts, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
Optionally, when executed, the blockchain includes at least one first blockchain node, where the first blockchain node is the same as a deployment area of a server corresponding to the energy metering data system, and a firewall is disposed between the energy metering data system and the first blockchain node;
the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user are acquired, and the method comprises the following steps:
and the first block link point acquires energy supply metering data of an energy supplier and energy utilization metering data of an energy user, which are uploaded by the energy metering data system through the firewall.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
the first block chain link point encrypts the energy supply metering data to obtain encrypted energy supply metering data, and encrypts the energy consumption metering data to obtain encrypted energy consumption metering data;
the first block link point writes the encrypted energy supply metering data and the encrypted energy consumption metering data into the block chain.
Optionally, the number of first blockchain nodes is greater than 2 or equal to 2 when the computer executable instructions are executed;
the first block link point acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user, which are uploaded by the energy metering data system through the firewall, and comprises the following steps:
any target block chain node of at least two first block chain nodes acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user, wherein the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user are uploaded by the energy metering data system through the firewall;
the target blockchain node synchronizes the energy supply metering data and the energy consumption metering data to other first blockchain nodes.
Optionally, the computer executable instructions, when executed, further comprise at least a preset number of second blockchain nodes, the second blockchain nodes differing from a deployment region of the first blockchain nodes;
before acquiring the energy supply metering data of the energy supplier and the energy consumption metering data of the energy consumer, the method further comprises the following steps:
the second block link point acquires a resource transfer data determination template uploaded by an energy service providing platform;
the second block link point generates an intelligent contract for determining resource allocation and resource payment data determination based on the resource transfer determination template.
Optionally, computer executable instructions, when executed, transmit the resource allocation data and the resource payment data to a payment service system, comprising:
and calling a payment service system by using a prediction machine technology, and transmitting the resource allocation data and the resource payment data to the payment service system.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
acquiring an interface calling record aiming at the payment service system by using a prophetic machine technology; and the number of the first and second groups,
acquiring a resource transfer record returned by the payment service system by using a predicting machine technology;
and writing the interface call record and the resource transfer record into the block chain.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
the second block link point acquires data access authorization information uploaded by an energy service providing platform, wherein the data access authorization information comprises: identification information of an authorized party and/or identification information of authorized access data;
the second block link point writes the data access grant information into the block chain.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
the second block link point obtaining a data access request for the energy supply metering data or the energy consumption metering data in the block chain; the data access request carries identification information of a data access party and/or identification information of target metering data requested to be accessed;
the second block chain node point judges whether the data access party has the access right to access the target metering data or not according to the data access request and the data access authorization information;
and the second blockchain node transmits the target metering data to the data accessor when determining that the data accessor has the access right to access the target metering data.
The energy supply metering data and the energy consumption metering data of the energy supplier are acquired by the resource transfer equipment based on the block chain in one or more embodiments of the specification, wherein the energy supply metering data and the energy consumption metering data are uploaded to the block chain by the energy metering data system. And determining resource allocation data of the energy supplier and resource payment data of the energy user based on the energy supply metering data and the energy consumption metering data by using the intelligent contracts deployed in the blockchain. And transmitting the resource allocation data and the resource payment data to the payment service system so that the payment service system performs resource transfer between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data. By utilizing the block chain technology and the intelligent contract, the resource payment data of the energy user and the resource allocation data of the energy supplier are automatically determined based on the energy metering data which is collected by the energy metering data system in real time and uploaded to the block chain, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
It should be noted that, the embodiment of the resource transfer device based on the block chain in this specification and the embodiment of the resource transfer method based on the block chain in this specification are based on the same inventive concept, and therefore, specific implementation of this embodiment may refer to implementation of the foregoing corresponding resource transfer method based on the block chain, and repeated details are not repeated.
Further, based on the same technical concept, corresponding to the methods shown in fig. 2 to fig. 5, one or more embodiments of the present specification further provide a storage medium for storing computer-executable instructions, where in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, and the like, and the storage medium stores computer-executable instructions that, when executed by a processor, implement the following processes:
acquiring energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, wherein the energy supply metering data and the energy consumption metering data are uploaded to a block chain by an energy metering data system;
determining resource allocation data of the energy supplier and resource payment data of the energy consumer based on the energy supply metering data and the energy consumption metering data by using the intelligent contracts deployed in the blockchain;
transmitting the resource allocation data and the resource payment data to a payment service system to enable the payment service system to perform resource transfer between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data.
In one or more embodiments of the present specification, resource payment data of an energy user and resource allocation data of an energy supplier are automatically determined based on energy metering data collected in real time by an energy metering data system and uploaded to a blockchain by using blockchain technology and intelligent contracts, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the blockchain includes at least one first blockchain node, the first blockchain node is the same as a deployment area of a server corresponding to the energy metering data system, and a firewall is disposed between the energy metering data system and the first blockchain node;
the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user are acquired, and the method comprises the following steps:
and the first block link point acquires energy supply metering data of an energy supplier and energy utilization metering data of an energy user, which are uploaded by the energy metering data system through the firewall.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
the first block chain link point encrypts the energy supply metering data to obtain encrypted energy supply metering data, and encrypts the energy consumption metering data to obtain encrypted energy consumption metering data;
the first block link point writes the encrypted energy supply metering data and the encrypted energy consumption metering data into the block chain.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, the number of first blockchain nodes is greater than 2 or equal to 2;
the first block link point acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user, which are uploaded by the energy metering data system through the firewall, and comprises the following steps:
any target block chain node of at least two first block chain nodes acquires energy supply metering data of an energy supplier and energy consumption metering data of an energy user, wherein the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user are uploaded by the energy metering data system through the firewall;
the target blockchain node synchronizes the energy supply metering data and the energy consumption metering data to other first blockchain nodes.
Optionally, when executed by the processor, the blockchain further includes at least a preset number of second blockchain nodes, where the second blockchain nodes are different from the deployment regions of the first blockchain nodes;
before acquiring the energy supply metering data of the energy supplier and the energy consumption metering data of the energy consumer, the method further comprises the following steps:
the second block link point acquires a resource transfer data determination template uploaded by an energy service providing platform;
the second block link point generates an intelligent contract for determining resource allocation and resource payment data determination based on the resource transfer determination template.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, transmit the resource allocation data and the resource payment data to a payment service system, comprising:
and calling a payment service system by using a prediction machine technology, and transmitting the resource allocation data and the resource payment data to the payment service system.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
acquiring an interface calling record aiming at the payment service system by using a prophetic machine technology; and the number of the first and second groups,
acquiring a resource transfer record returned by the payment service system by using a predicting machine technology;
and writing the interface call record and the resource transfer record into the block chain.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
the second block link point acquires data access authorization information uploaded by an energy service providing platform, wherein the data access authorization information comprises: identification information of an authorized party and/or identification information of authorized access data;
the second block link point writes the data access grant information into the block chain.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
the second block link point obtaining a data access request for the energy supply metering data or the energy consumption metering data in the block chain; the data access request carries identification information of a data access party and/or identification information of target metering data requested to be accessed;
the second block chain node point judges whether the data access party has the access right to access the target metering data or not according to the data access request and the data access authorization information;
and the second blockchain node transmits the target metering data to the data accessor when determining that the data accessor has the access right to access the target metering data.
The storage medium stores computer executable instructions that, when executed by the processor, in one or more embodiments of the present description, obtain energy supply metering data of an energy supplier and energy consumption metering data of an energy consumer, wherein the energy supply metering data and the energy consumption metering data are uploaded to the blockchain by the energy metering data system. And determining resource allocation data of the energy supplier and resource payment data of the energy user based on the energy supply metering data and the energy consumption metering data by using the intelligent contracts deployed in the blockchain. And transmitting the resource allocation data and the resource payment data to the payment service system so that the payment service system performs resource transfer between the account of the energy supplier and the account of the energy user based on the resource allocation data and the resource payment data. By utilizing the block chain technology and the intelligent contract, the resource payment data of the energy user and the resource allocation data of the energy supplier are automatically determined based on the energy metering data which is collected by the energy metering data system in real time and uploaded to the block chain, thus, the automatic determination of the resource payment data and the resource allocation data and the automatic completion of the resource transfer processing under the multi-party witnesses can be ensured, the determination reliability of the resource payment data and the resource allocation data between the energy using party and the energy supplying party and the safety of the resource transfer process are improved, the resource payment of the energy using party is completed aiming at the use condition of the comprehensive energy by adopting a refined control mode, the resource allocation among a plurality of energy supplying parties is completed aiming at the supply condition of the comprehensive energy, and further, the resource transfer between the energy using party with high safety and high reliability and a plurality of energy supplying parties is realized.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the resource transfer method based on a block chain in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to the implementation of the resource transfer method based on a block chain, and repeated details are not repeated.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), Cal, jhdware Description Language, langua, mylar, pams, Hardware (Hardware Description Language), langva, Lola, HDL, palmware, Hardware (Hardware Description Language), VHDL (Hardware Description Language), and the like, which are currently used in the most popular languages. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone LabsC8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations of one or more of the present descriptions.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more of the present description 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 in the medium.
One or more of the present specification has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to one or more embodiments of the specification. 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more of the present description 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 in the medium.
One or more of the present specification can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more of the present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is merely illustrative of one or more embodiments of the present disclosure and is not intended to limit one or more embodiments of the present disclosure. Various modifications and alterations to one or more of the present descriptions will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more of the present specification should be included in the scope of one or more claims of the present specification.