[go: up one dir, main page]

CN111062814A - A method, device and system for resource transfer based on blockchain - Google Patents

A method, device and system for resource transfer based on blockchain Download PDF

Info

Publication number
CN111062814A
CN111062814A CN202010179614.6A CN202010179614A CN111062814A CN 111062814 A CN111062814 A CN 111062814A CN 202010179614 A CN202010179614 A CN 202010179614A CN 111062814 A CN111062814 A CN 111062814A
Authority
CN
China
Prior art keywords
energy
data
metering data
resource
blockchain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010179614.6A
Other languages
Chinese (zh)
Inventor
朱永春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010179614.6A priority Critical patent/CN111062814A/en
Publication of CN111062814A publication Critical patent/CN111062814A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Human Resources & Organizations (AREA)
  • Tourism & Hospitality (AREA)
  • Automation & Control Theory (AREA)
  • Databases & Information Systems (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本说明书一个或多个实施例提供了一种基于区块链的资源转移方法、装置及系统,其中,该方法包括:获取能源供应方的供能计量数据、以及能源使用方的用能计量数据,其中,该供能计量数据和用能计量数据是能源计量数据系统上传至区块链的。利用区块链中部署的智能合约,基于供能计量数据和用能计量数据,确定能源供应方的资源分配数据以及能源使用方的资源支付数据。将资源分配数据和资源支付数据传输至支付服务系统,以使该支付服务系统基于资源分配数据和资源支付数据、在能源供应方的账户和能源使用方的账户之间进行资源转移。

Figure 202010179614

One or more embodiments of this specification provide a method, device and system for resource transfer based on blockchain, wherein the method includes: acquiring energy supply metering data of an energy supplier and energy consumption metering data of an energy user , wherein the energy supply metering data and energy consumption metering data are uploaded to the blockchain by the energy metering data system. Using the smart contracts deployed in the blockchain, based on the energy supply metering data and energy consumption metering data, the resource allocation data of the energy supplier and the resource payment data of the energy user are determined. The resource allocation data and the resource payment data are transmitted to the payment service system, so that the payment service system transfers resources between the energy supplier's account and the energy user's account based on the resource allocation data and the resource payment data.

Figure 202010179614

Description

Resource transfer method, device and system based on block chain
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for transferring resources based on a block chain.
Background
At present, with the wide popularization of energy conservation and emission reduction work, heat exhausted by high-energy-consumption enterprises can be used for secondary utilization of energy, so that the high-energy-consumption enterprises can serve as energy suppliers to supply the heat exhausted by the high-energy-consumption enterprises to energy users (such as heating enterprises), pollution caused by heat exhaust can be prevented, the high-energy-consumption enterprises can obtain certain extra income, and the win-win purpose is achieved.
However, in the prior art, for the case that there are a plurality of energy suppliers providing energy for the energy consumers, the charging amount of the energy consumers is mainly measured by using extensive management and control, and the profits of the plurality of energy suppliers are shared.
Accordingly, it is required to provide a technique for resource transfer between an energy supplier and an energy consumer with high security and high reliability.
Disclosure of Invention
One or more embodiments of the present specification provide a resource transfer method based on a block chain, including:
energy supply metering data of an energy supply party and energy consumption metering data of an energy use party are obtained, 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, using the smart contracts deployed in the blockchain, 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. 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.
One or more embodiments of the present specification provide a resource transfer apparatus based on a block chain, including:
the system comprises a metering data acquisition module, a block chain and a block chain, wherein the metering data acquisition module acquires energy supply metering data of an energy supply party and energy consumption metering data of an energy use party, and the energy supply metering data and the energy consumption metering data are uploaded to the block chain by an energy metering data system. A resource data determination module 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, which transmits 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 user based on the resource allocation data and the resource payment data.
One or more embodiments of the present specification provide a block chain-based resource transfer system, including: the system comprises at least one blockchain node in a blockchain, and an energy metering data system and a payment service system which are in communication connection with the at least one blockchain 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 the energy supplier and energy consumption metering data of the energy consumer; and 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; and transmitting the resource allocation data and the resource payment data to the 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.
One or more embodiments of the present specification provide a resource transfer apparatus based on a block chain, including:
a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to:
energy supply metering data of an energy supply party and energy consumption metering data of an energy use party are obtained, 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, using the smart contracts deployed in the blockchain, 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. 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.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed by a processor, implement a method of:
energy supply metering data of an energy supply party and energy consumption metering data of an energy use party are obtained, 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, using the smart contracts deployed in the blockchain, 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. 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.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings that are needed in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some of the embodiments described in one or more of the specification, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic diagram of a first application scenario of a resource transfer system based on a block chain according to one or more embodiments of the present disclosure;
FIG. 2 is a schematic diagram of data flow in an application scenario of resource transfer based on a block chain shown in FIG. 1;
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;
fig. 4 is a schematic diagram of a second application scenario of a resource transfer system based on a block chain according to one or more embodiments of the present specification;
FIG. 5 is a schematic diagram of data flow in the application scenario of resource transfer based on block chains shown in FIG. 4;
fig. 6 is a schematic block composition diagram of a resource transfer device based on a block chain according to one or more embodiments of the present disclosure;
fig. 7 is a schematic diagram illustrating a first structural component of a resource transfer system based on a block chain according to one or more embodiments of the present disclosure;
fig. 8 is a schematic structural component diagram of a second resource transfer system based on a block chain according to one or more embodiments of the present disclosure;
fig. 9 is a schematic structural diagram of a resource transfer device based on a block chain according to one or more embodiments of the present specification.
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.

Claims (21)

1.一种基于区块链的资源转移方法,包括:1. A blockchain-based resource transfer method, comprising: 获取能源供应方的供能计量数据、以及能源使用方的用能计量数据,其中,所述供能计量数据和所述用能计量数据是能源计量数据系统上传至区块链的;Obtain the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user, wherein the energy supply metering data and the energy consumption metering data are uploaded to the blockchain by the energy metering data system; 利用所述区块链中部署的智能合约,基于所述供能计量数据和所述用能计量数据,确定所述能源供应方的资源分配数据以及所述能源使用方的资源支付数据;Using the smart contract deployed in the blockchain, based on the energy supply metering data and the energy consumption metering data, determine the resource allocation data of the energy supplier and the resource payment data of the energy user; 将所述资源分配数据和所述资源支付数据传输至支付服务系统,以使所述支付服务系统基于所述资源分配数据和所述资源支付数据、在所述能源供应方的账户和所述能源使用方的账户之间进行资源转移。transmitting the resource allocation data and the resource payment data to a payment service system so that the payment service system is based on the resource allocation data and the resource payment data, an account with the energy provider and the energy source Resource transfer between consumer accounts. 2.根据权利要求1所述的方法,其中,所述区块链包括至少一个第一区块链节点,所述第一区块链节点与所述能源计量数据系统对应的服务器的部署区域相同,所述能源计量数据系统与所述第一区块链节点之间设置有防火墙;2. The method of claim 1, wherein the blockchain includes at least one first blockchain node, the first blockchain node being the same deployment area as a server corresponding to the energy metering data system , a firewall is set between the energy metering data system and the first blockchain node; 所述获取能源供应方的供能计量数据、以及能源使用方的用能计量数据,包括:The obtaining of the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user includes: 所述第一区块链节点获取所述能源计量数据系统穿过所述防火墙所上传的能源供应方的供能计量数据、以及能源使用方的用能计量数据。The first blockchain node acquires the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user uploaded by the energy metering data system through the firewall. 3.根据权利要求2所述的方法,其中,所述方法还包括:3. The method of claim 2, wherein the method further comprises: 所述第一区块链节点对所述供能计量数据进行加密,得到加密后的供能计量数据,以及对所述用能计量数据进行加密,得到加密后的用能计量数据;The first blockchain node encrypts the energy supply measurement data to obtain encrypted energy supply measurement data, and encrypts the energy consumption measurement data to obtain encrypted energy consumption measurement data; 所述第一区块链节点将所述加密后的供能计量数据和所述加密后的用能计量数据写入所述区块链。The first blockchain node writes the encrypted energy supply metering data and the encrypted energy consumption metering data into the blockchain. 4.根据权利要求2所述的方法,其中,所述第一区块链节点的数量大于2或等于2;4. The method of claim 2, wherein the number of the first blockchain nodes is greater than or equal to 2; 所述第一区块链节点获取所述能源计量数据系统穿过所述防火墙所上传的能源供应方的供能计量数据、以及能源使用方的用能计量数据,包括:The first blockchain node obtains the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user uploaded by the energy metering data system through the firewall, including: 至少两个所述第一区块链节点中任一目标区块链节点获取所述能源计量数据系统穿过所述防火墙所上传的能源供应方的供能计量数据、以及能源使用方的用能计量数据;Any target blockchain node in the at least two first blockchain nodes obtains the energy supply metering data of the energy supplier and the energy consumption of the energy user uploaded by the energy metering data system through the firewall measurement data; 所述目标区块链节点将所述供能计量数据和所述用能计量数据共识同步至其他所述第一区块链节点。The target blockchain node synchronizes the energy supply metering data and the energy consumption metering data to other first blockchain nodes by consensus. 5.根据权利要求2所述的方法,其中,所述区块链还包括至少预设数量的第二区块链节点,所述第二区块链节点与所述第一区块链节点的部署区域不同;5. The method according to claim 2, wherein the blockchain further comprises at least a preset number of second blockchain nodes, the second blockchain nodes being the same as the first blockchain nodes. Different deployment areas; 在获取能源供应方的供能计量数据、以及能源使用方的用能计量数据之前,还包括:Before obtaining the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user, it also includes: 所述第二区块链节点获取能源服务提供平台上传的资源转移数据确定模板;The second blockchain node obtains the resource transfer data determination template uploaded by the energy service providing platform; 所述第二区块链节点基于所述资源转移确定模板,生成用于确定资源分配及资源支付数据确定的智能合约。The second blockchain node generates a smart contract for determining resource allocation and resource payment data based on the resource transfer determination template. 6.根据权利要求1所述的方法,其中,所述将所述资源分配数据和所述资源支付数据传输至支付服务系统,包括:6. The method of claim 1, wherein the transmitting the resource allocation data and the resource payment data to a payment service system comprises: 利用预言机技术调用支付服务系统,并将所述资源分配数据和所述资源支付数据传输至所述支付服务系统。The payment service system is invoked by using the oracle technology, and the resource allocation data and the resource payment data are transmitted to the payment service system. 7.根据权利要求6所述的方法,其中,所述方法还包括:7. The method of claim 6, wherein the method further comprises: 利用预言机技术获取针对所述支付服务系统的接口调用记录;以及,Using the oracle technology to obtain the interface call record for the payment service system; and, 利用预言机技术获取所述支付服务系统返回的资源转移记录;Obtain the resource transfer record returned by the payment service system by using the oracle technology; 将所述接口调用记录和所述资源转移记录写入所述区块链。Write the interface call record and the resource transfer record into the blockchain. 8.根据权利要求5所述的方法,其中,所述方法还包括:8. The method of claim 5, wherein the method further comprises: 所述第二区块链节点获取能源服务提供平台上传的数据访问授权信息,其中,所述数据访问授权信息包括:被授权方的标识信息和/或被授权访问数据的标识信息;The second blockchain node obtains the data access authorization information uploaded by the energy service providing platform, wherein the data access authorization information includes: the identification information of the authorized party and/or the identification information of the authorized access data; 所述第二区块链节点将所述数据访问授权信息写入所述区块链。The second blockchain node writes the data access authorization information into the blockchain. 9.根据权利要求8所述的方法,其中,所述方法还包括:9. The method of claim 8, wherein the method further comprises: 所述第二区块链节点获取针对所述区块链中所述供能计量数据或所述用能计量数据的数据访问请求;其中,所述数据访问请求中携带有数据访问方的标识信息和/或请求访问的目标计量数据的标识信息;The second blockchain node obtains a data access request for the energy supply metering data or the energy consumption metering data in the blockchain; wherein, the data access request carries the identification information of the data access party and/or identification information of the target metering data for which access is requested; 所述第二区块链节点根据所述数据访问请求和所述数据访问授权信息,判断所述数据访问方是否具有访问所述目标计量数据的访问权限;The second blockchain node determines whether the data access party has the access authority to access the target metering data according to the data access request and the data access authorization information; 所述第二区块链节点在确定所述数据访问方具有访问所述目标计量数据的访问权限时,将所述目标计量数据传输至所述数据访问方。The second blockchain node transmits the target metering data to the data accessor when it is determined that the data accessor has access rights to access the target metering data. 10.一种基于区块链的资源转移装置,包括:10. A resource transfer device based on blockchain, comprising: 计量数据获取模块,其获取能源供应方的供能计量数据、以及能源使用方的用能计量数据,其中,所述供能计量数据和所述用能计量数据是能源计量数据系统上传至区块链的;A metering data acquisition module, which acquires the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user, wherein the energy supply metering data and the energy consumption metering data are uploaded to the block by the energy metering data system chain; 资源数据确定模块,其利用所述区块链中部署的智能合约,基于所述供能计量数据和所述用能计量数据,确定所述能源供应方的资源分配数据以及所述能源使用方的资源支付数据;A resource data determination module, which utilizes the smart contract deployed in the blockchain, based on the energy supply metering data and the energy consumption metering data, determines the resource allocation data of the energy supplier and the energy user's resource allocation data. Resource payment data; 资源数据发送模块,其将所述资源分配数据和所述资源支付数据传输至支付服务系统,以使所述支付服务系统基于所述资源分配数据和所述资源支付数据、在所述能源供应方的账户和所述能源使用方的账户之间进行资源转移。A resource data sending module, which transmits the resource allocation data and the resource payment data to a payment service system, so that the payment service system, based on the resource allocation data and the resource payment data, on the energy supply side Transfer resources between the account of the energy user and the account of the energy user. 11.根据权利要求10所述的装置,其中,所述区块链包括至少一个第一区块链节点,所述第一区块链节点与所述能源计量数据系统对应的服务器的部署区域相同,所述能源计量数据系统与所述第一区块链节点之间设置有防火墙;11. The apparatus of claim 10, wherein the blockchain includes at least one first blockchain node, the first blockchain node being the same deployment area as a server corresponding to the energy metering data system , a firewall is set between the energy metering data system and the first blockchain node; 所述第一区块链节点,其获取所述能源计量数据系统穿过所述防火墙所上传的能源供应方的供能计量数据、以及能源使用方的用能计量数据。The first blockchain node acquires the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user uploaded by the energy metering data system through the firewall. 12.根据权利要求11所述的装置,其中,所述第一区块链节点,其:12. The apparatus of claim 11, wherein the first blockchain node: 对所述供能计量数据进行加密,得到加密后的供能计量数据,以及对所述用能计量数据进行加密,得到加密后的用能计量数据;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; 将所述加密后的供能计量数据和所述加密后的用能计量数据写入所述区块链。Write the encrypted energy supply metering data and the encrypted energy consumption metering data into the blockchain. 13.根据权利要求11所述的装置,其中,所述第一区块链节点的数量大于2或等于2;至少两个所述第一区块链节点中任一目标区块链节点,其:13. The apparatus according to claim 11, wherein the number of the first blockchain nodes is greater than or equal to 2; any target blockchain node in at least two of the first blockchain nodes, which : 获取所述能源计量数据系统穿过所述防火墙所上传的能源供应方的供能计量数据、以及能源使用方的用能计量数据;acquiring the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user uploaded by the energy metering data system through the firewall; 将所述供能计量数据和所述用能计量数据共识同步至其他所述第一区块链节点。Consensus synchronization of the energy supply metering data and the energy consumption metering data to the other first blockchain nodes. 14.根据权利要求11所述的装置,其中,所述区块链还包括至少预设数量的第二区块链节点,所述第二区块链节点与所述第一区块链节点的部署区域不同;所述第二区块链节点,其:14. The apparatus according to claim 11, wherein the blockchain further comprises at least a preset number of second blockchain nodes, the second blockchain nodes being the same as the first blockchain nodes. The deployment area is different; the second blockchain node, which: 获取能源服务提供平台上传的资源转移数据确定模板;Obtain the resource transfer data determination template uploaded by the energy service provider platform; 基于所述资源转移确定模板,生成用于确定资源分配及资源支付数据确定的智能合约。Based on the resource transfer determination template, a smart contract for determining resource allocation and resource payment data is generated. 15.根据权利要求10所述的装置,其中,所述资源数据发送模块,其:15. The apparatus according to claim 10, wherein the resource data sending module: 利用预言机技术调用支付服务系统,并将所述资源分配数据和所述资源支付数据传输至所述支付服务系统。The payment service system is invoked by using the oracle technology, and the resource allocation data and the resource payment data are transmitted to the payment service system. 16.根据权利要求15所述的装置,其中,所述装置还包括:资源转移记录获取模块,其:16. The apparatus according to claim 15, wherein the apparatus further comprises: a resource transfer record acquisition module, which: 利用预言机技术获取针对所述支付服务系统的接口调用记录;以及,Using the oracle technology to obtain the interface call record for the payment service system; and, 利用预言机技术获取所述支付服务系统返回的资源转移记录;Obtain the resource transfer record returned by the payment service system by using the oracle technology; 将所述接口调用记录和所述资源转移记录写入所述区块链。Write the interface call record and the resource transfer record into the blockchain. 17.根据权利要求14所述的装置,其中,所述第二区块链节点,其:17. The apparatus of claim 14, wherein the second blockchain node: 获取能源服务提供平台上传的数据访问授权信息,其中,所述数据访问授权信息包括:被授权方的标识信息和/或被授权访问数据的标识信息;Obtain the data access authorization information uploaded by the energy service providing platform, wherein the data access authorization information includes: the identification information of the authorized party and/or the identification information of the authorized access data; 将所述数据访问授权信息写入所述区块链。Write the data access authorization information into the blockchain. 18.根据权利要求17所述的装置,其中,所述第二区块链节点,其:18. The apparatus of claim 17, wherein the second blockchain node: 获取针对所述区块链中所述供能计量数据或所述用能计量数据的数据访问请求;其中,所述数据访问请求中携带有数据访问方的标识信息和/或请求访问的目标计量数据的标识信息;Obtain a data access request for the energy supply metering data or the energy consumption metering data in the blockchain; wherein, the data access request carries the identification information of the data access party and/or the target metering request for access the identification information of the data; 根据所述数据访问请求和所述数据访问授权信息,判断所述数据访问方是否具有访问所述目标计量数据的访问权限;According to the data access request and the data access authorization information, determine whether the data access party has the access right to access the target metering data; 在确定所述数据访问方具有访问所述目标计量数据的访问权限时,将所述目标计量数据传输至所述数据访问方。When it is determined that the data accessor has access rights to access the target metering data, the target metering data is transmitted to the data accessor. 19.一种基于区块链的资源转移系统,包括:区块链中的至少一个区块链节点、以及与所述至少一个区块链节点通信连接的能源计量数据系统和支付服务系统;19. A blockchain-based resource transfer system, comprising: at least one blockchain node in the blockchain, and an energy metering data system and a payment service system communicatively connected to the at least one blockchain node; 所述能源计量数据系统,采集能源供应方的供能计量数据、以及能源使用方的用能计量数据,并将所述供能计量数据和所述用能计量数据上传至所述区块链;The energy metering data system collects the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user, and uploads the energy supply metering data and the energy consumption metering data to the blockchain; 所述至少一个区块链节点,获取所述能源供应方的供能计量数据、以及所述能源使用方的用能计量数据;以及利用所述区块链中部署的智能合约,基于所述供能计量数据和所述用能计量数据,确定所述能源供应方的资源分配数据以及所述能源使用方的资源支付数据;以及将所述资源分配数据和所述资源支付数据传输至所述支付服务系统;The at least one block chain node obtains the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user; and utilizes the smart contract deployed in the block chain, based on the supply energy metering data and the energy usage metering data, determining resource allocation data for the energy supplier and resource payment data for the energy user; and transmitting the resource allocation data and the resource payment data to the payment service system; 所述支付服务系统,基于所述资源分配数据和所述资源支付数据、在所述能源供应方的账户和所述能源使用方的账户之间进行资源转移。The payment service system, based on the resource allocation data and the resource payment data, transfers resources between an account of the energy supplier and an account of the energy user. 20.一种基于区块链的资源转移设备,包括:20. A resource transfer device based on blockchain, comprising: 处理器;以及processor; and 被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:memory arranged to store computer-executable instructions which, when executed, cause the processor to: 获取能源供应方的供能计量数据、以及能源使用方的用能计量数据,其中,所述供能计量数据和所述用能计量数据是能源计量数据系统上传至区块链的;Obtain the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user, wherein the energy supply metering data and the energy consumption metering data are uploaded to the blockchain by the energy metering data system; 利用所述区块链中部署的智能合约,基于所述供能计量数据和所述用能计量数据,确定所述能源供应方的资源分配数据以及所述能源使用方的资源支付数据;Using the smart contract deployed in the blockchain, based on the energy supply metering data and the energy consumption metering data, determine the resource allocation data of the energy supplier and the resource payment data of the energy user; 将所述资源分配数据和所述资源支付数据传输至支付服务系统,以使所述支付服务系统基于所述资源分配数据和所述资源支付数据、在所述能源供应方的账户和所述能源使用方的账户之间进行资源转移。transmitting the resource allocation data and the resource payment data to a payment service system so that the payment service system is based on the resource allocation data and the resource payment data, an account with the energy provider and the energy source Resource transfer between consumer accounts. 21.一种存储介质,用于存储计算机可执行指令,所述可执行指令在被处理器执行时实现以下方法:21. A storage medium for storing computer-executable instructions that, when executed by a processor, implement the following methods: 获取能源供应方的供能计量数据、以及能源使用方的用能计量数据,其中,所述供能计量数据和所述用能计量数据是能源计量数据系统上传至区块链的;Obtain the energy supply metering data of the energy supplier and the energy consumption metering data of the energy user, wherein the energy supply metering data and the energy consumption metering data are uploaded to the blockchain by the energy metering data system; 利用所述区块链中部署的智能合约,基于所述供能计量数据和所述用能计量数据,确定所述能源供应方的资源分配数据以及所述能源使用方的资源支付数据;Using the smart contract deployed in the blockchain, based on the energy supply metering data and the energy consumption metering data, determine the resource allocation data of the energy supplier and the resource payment data of the energy user; 将所述资源分配数据和所述资源支付数据传输至支付服务系统,以使所述支付服务系统基于所述资源分配数据和所述资源支付数据、在所述能源供应方的账户和所述能源使用方的账户之间进行资源转移。transmitting the resource allocation data and the resource payment data to a payment service system so that the payment service system is based on the resource allocation data and the resource payment data, an account with the energy provider and the energy source Resource transfer between consumer accounts.
CN202010179614.6A 2020-03-16 2020-03-16 A method, device and system for resource transfer based on blockchain Pending CN111062814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010179614.6A CN111062814A (en) 2020-03-16 2020-03-16 A method, device and system for resource transfer based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010179614.6A CN111062814A (en) 2020-03-16 2020-03-16 A method, device and system for resource transfer based on blockchain

Publications (1)

Publication Number Publication Date
CN111062814A true CN111062814A (en) 2020-04-24

Family

ID=70307942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010179614.6A Pending CN111062814A (en) 2020-03-16 2020-03-16 A method, device and system for resource transfer based on blockchain

Country Status (1)

Country Link
CN (1) CN111062814A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914024A (en) * 2020-07-30 2020-11-10 中国联合网络通信集团有限公司 Certificate storage and query block chain construction method, device, system and query method
CN114187111A (en) * 2021-12-15 2022-03-15 长城信息股份有限公司 Investment product NFT display method and device based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341702A (en) * 2017-03-08 2017-11-10 阿里巴巴集团控股有限公司 A kind of method and device of business processing
CN109377411A (en) * 2018-10-29 2019-02-22 南方电网科学研究院有限责任公司 Method and device for centralized transaction matching in electricity market based on blockchain
CN109802948A (en) * 2018-12-27 2019-05-24 石更箭数据科技(上海)有限公司 Data processing equipment and transaction system
CN110472974A (en) * 2019-07-16 2019-11-19 阿里巴巴集团控股有限公司 Assets transfer method, apparatus and system based on block chain intelligence contract
CN110619523A (en) * 2019-09-26 2019-12-27 成都链安科技有限公司 Block chain intelligent contract firewall protection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341702A (en) * 2017-03-08 2017-11-10 阿里巴巴集团控股有限公司 A kind of method and device of business processing
CN109377411A (en) * 2018-10-29 2019-02-22 南方电网科学研究院有限责任公司 Method and device for centralized transaction matching in electricity market based on blockchain
CN109802948A (en) * 2018-12-27 2019-05-24 石更箭数据科技(上海)有限公司 Data processing equipment and transaction system
CN110472974A (en) * 2019-07-16 2019-11-19 阿里巴巴集团控股有限公司 Assets transfer method, apparatus and system based on block chain intelligence contract
CN110619523A (en) * 2019-09-26 2019-12-27 成都链安科技有限公司 Block chain intelligent contract firewall protection method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
夏友清: "基于区块链技术的Anti-APT型防火墙技术研究", 《信息与电脑》 *
故事的小黄花呢: "什么是区块链预言机", 《HTTPS://WWW.JIANSHU.COM/P/26C5137393CB》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914024A (en) * 2020-07-30 2020-11-10 中国联合网络通信集团有限公司 Certificate storage and query block chain construction method, device, system and query method
CN111914024B (en) * 2020-07-30 2023-06-02 中国联合网络通信集团有限公司 Certificate storage and query block chain construction method, device, system, query method
CN114187111A (en) * 2021-12-15 2022-03-15 长城信息股份有限公司 Investment product NFT display method and device based on block chain

Similar Documents

Publication Publication Date Title
CN111899008B (en) Resource transfer method, device, device and system
CN114253793A (en) Dynamic tracking control
CN107566337A (en) Communication means and device between a kind of block chain node
CN111552945B (en) Resource processing method, device and equipment
CN111767144B (en) Transaction route determination method, device, equipment and system for transaction data
CN114710350B (en) Method and device for distributing callable resources, electronic equipment and storage medium
CN114513528B (en) Method and system for service reservation and delegation based on blockchain
CN117879781A (en) User data circulation method, device and equipment based on block chain
CN115204880A (en) Consensus method and device for blockchain transaction
CN111062814A (en) A method, device and system for resource transfer based on blockchain
CN113849558A (en) A method and apparatus for deploying a data sharing service
CN114741736A (en) Data processing method and device, electronic equipment and storage medium
CN115964743A (en) User identification and user information processing method, device, equipment and medium
CN113673844B (en) An information feedback method, device and equipment
CN115829102A (en) Method and device for model training and risk prediction based on block chain
CN114896635A (en) Data processing method and device, electronic equipment and storage medium
CN114726537B (en) Data processing method and device
CN114710492B (en) Method and device for establishing direct connection channel, electronic equipment and storage medium
CN116645061A (en) Customs clearance data processing method based on block chain system and consensus node
CN114726858B (en) Data processing method and device, electronic equipment and storage medium
CN115760123A (en) Data processing method based on block chain and block chain link point
CN116886726A (en) Service access method based on block chain system and block chain link point
CN115935427A (en) A service request processing method, device and equipment
CN115766123A (en) Data cross-domain authorization method and device and electronic equipment
CN110083680B (en) Method and device for managing context data in a distributed system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200424