CN111178887A - Distributed photovoltaic power generation and sale system and method based on block chain - Google Patents

Distributed photovoltaic power generation and sale system and method based on block chain Download PDF

Info

Publication number
CN111178887A
CN111178887A CN201911390461.3A CN201911390461A CN111178887A CN 111178887 A CN111178887 A CN 111178887A CN 201911390461 A CN201911390461 A CN 201911390461A CN 111178887 A CN111178887 A CN 111178887A
Authority
CN
China
Prior art keywords
node
settlement
electricity
intelligent contract
side node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911390461.3A
Other languages
Chinese (zh)
Other versions
CN111178887B (en
Inventor
黄笑华
黄昭慈
镇华
王超
向智宇
鲁静
程晗蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201911390461.3A priority Critical patent/CN111178887B/en
Publication of CN111178887A publication Critical patent/CN111178887A/en
Application granted granted Critical
Publication of CN111178887B publication Critical patent/CN111178887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • G06Q20/145Payments according to the detected use or quantity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S50/00Market activities related to the operation of systems integrating technologies related to power network operation or related to communication or information technologies
    • Y04S50/12Billing, invoicing, buying or selling transactions or other related activities, e.g. cost or usage evaluation

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a distributed photovoltaic power generation and sale system and a method based on a block chain, belongs to the technical field of distributed photovoltaics, and solves the problem of distributed photovoltaic settlement; the electricity selling side node is used for initiating electricity selling transactions and establishing an intelligent contract for photovoltaic power internet transaction settlement with the electricity purchasing side node; the electric quantity metering node is used for metering the internet surfing electric quantity for transaction, and chaining the encrypted electric quantity; the electricity purchasing side node is used for collecting the online transaction electric quantity of the chaining, and performing photovoltaic settlement to obtain settlement data; and after the signature verification and the consensus verification are carried out on the settlement data by each node, the electricity purchasing side node pays the electricity fee to the electricity selling side node. The invention can be used for a photovoltaic power internet access mode of 'full internet access, spontaneous self-use/surplus power internet access', and realizes the distributed safe sharing of photovoltaic projects and settlement information.

Description

Distributed photovoltaic power generation and sale system and method based on block chain
Technical Field
The invention relates to the technical field of distributed photovoltaics, in particular to a distributed photovoltaic power generation and sale system and a distributed photovoltaic power generation and sale method based on a block chain.
Background
The current distributed photovoltaic power generation and sale modes are as follows: the power consumption information acquisition system of a power grid company acquires data such as power generation user online electric quantity and generated energy, an electric power marketing MIS (Management information system) system of the power grid company issues electric charge according to the online electric quantity and the generated energy and then transmits the electric charge to the financial Management and control system, the financial affairs settle accounts according to data such as an electric charge settlement list and a generation invoicing, the online electric charge and central subsidy are initiated to pay to the photo-bank, and the photo-bank finishes the transfer payment of the electric charge. In the process, the financial management and control system needs to maintain the benchmarking electricity price, the subsidy standard, the corresponding current unit and the bank union number related to settlement, and report and summarize records layer by layer.
The following problems arise in this mode: the marketing basic information is lost, so that the necessary information of the financial link is incomplete, manual supplementary maintenance is needed, and the workload is large; an online information return mechanism is not arranged between the marketing system and the management and control system, offline notification is completely relied on, the effect and timeliness of retransmission cannot be guaranteed, the processing efficiency is low, and financial side settlement is affected; the photovoltaic user applies for information bank connection numbers and the filling of the units from beginning to end is not standard. These problems lead to a lengthy financial payment auditing process, untimely payment of the light e treasures, and even financial risks such as wrong account and missed account.
Disclosure of Invention
In view of the above analysis, the present invention aims to provide a distributed photovoltaic power generation and sale system and method based on a block chain, which solve the problem of the original micro-application distributed photovoltaic settlement system by using a block chain technology, provide a convenient, easy-to-use and lightweight distributed project subsidy settlement method and system, and provide support for safe, stable and efficient processing of the businesses after the distributed project is exploded.
The purpose of the invention is mainly realized by the following technical scheme:
the invention discloses a distributed photovoltaic power generation and distribution system based on a block chain, which comprises power selling side nodes, power purchasing side nodes and electric quantity metering nodes, wherein the power selling side nodes are connected with the power purchasing side nodes through the power selling side nodes;
the electricity selling side node is used for initiating electricity selling transactions and establishing an intelligent contract for settling photovoltaic power internet transaction with the electricity purchasing side node; deploying the intelligent contracts to a local database of each node on the block chain;
the electric quantity metering node is used for metering the internet surfing electric quantity for transaction, and chaining the encrypted electric quantity;
the electricity purchasing side node is used for acquiring the online transaction electric quantity of the chaining, and performing photovoltaic settlement to obtain settlement data after the intelligent contract is triggered; and after signature verification and consensus verification are carried out on the settlement data by each node including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays the electricity fee to the electricity selling side node.
Further, the establishing of the intelligent contract comprises:
utilizing a formatted photovoltaic settlement contract template which is agreed by each node on the block chain to generate a contract text of the intelligent contract;
obtaining an intelligent contract code after programming and verification;
distributing the intelligent contract code to each node;
each node temporarily stores the received intelligent contract codes in a local memory, packages the intelligent contract codes temporarily stored in a set time period into a contract set, calculates the Hash value of the set and assembles the set into a block;
each node diffuses the blocks in the local memory to other nodes of the whole network;
the node receiving the block compares and verifies the Hash value stored locally;
the consensus is achieved through multiple rounds of sending and comparison, and the method is extended to all sections of the whole network.
Further, the block includes a Hash value of the current block, a Hash value of the previous block, a timestamp, smart contract data, and smart contract record data.
Further, the intelligent contract deployment comprises:
after the intelligent contract is achieved, a sender of the intelligent contract adopts a private key and a public key of a receiver of the intelligent contract to sign and encrypt the intelligent contract;
installing the intelligent contract subjected to signature encryption on a block chain, namely a service platform;
and the blockchain service platform synchronizes the intelligent contracts to a local database of each node on the blockchain.
Further, the signature encryption encrypts non-critical private data of the power transaction.
Further, the intelligent contract initiating photovoltaic settlement triggering conditions comprise;
when the online transaction electric quantity data changes, regularly and automatically triggering intelligent contracts of all nodes; alternatively, the first and second electrodes may be,
after the block link receives the data of the electric quantity of the online transaction, an intelligent contract is triggered by the power selling side node in the block link, and photovoltaic settlement is initiated.
Further, the power purchasing side nodes comprise a reward part node and a financial part node of a power grid enterprise;
the service charge part node carries out electric charge compliance audit on the result of the photovoltaic settlement initiated by the intelligent contract and links the audit result;
the financial department node acquires the result of the photovoltaic settlement of the audit compliance to bill, and links the electronic invoice data; the block chain carries out matching verification according to the electronic invoice data of the chain and the intelligent contract photovoltaic settlement result on the chain, and the corresponding relation between the invoice and the settlement result is chain;
after the invoice passes the verification, the earning part node makes a settlement document according to the payment posting amount and the plan, and pushes the settlement document to the finance part node for auditing to generate a settlement certificate; and linking the settlement document and the settlement voucher.
Further, the block chain carries out distributed encryption and evidence storage on settlement data, receipts and certificates.
Further, the settlement result in the intelligent contract is decrypted through the private key of the power purchasing side node and the public key of the power distributing side node; and performing corresponding power scheduling work with the internet power in the settlement result at a time interval preset by the intelligent contract according to the settlement result.
The invention also discloses a power distribution and sale method based on the distributed photovoltaic power distribution and sale system, which is characterized by comprising the following steps:
step S1, the electricity selling side node initiates an electricity selling transaction and establishes an intelligent contract for photovoltaic power internet transaction settlement with the electricity purchasing side node;
step S2, deploying the intelligent contracts to a local database of each node on the block chain;
step S3, the online electricity used for the transaction is measured through the electricity quantity measuring node, and the encrypted online electricity is linked up;
step S4, the electricity purchasing side node collects the online transaction electric quantity of the chain, and when the intelligent contract is triggered, photovoltaic settlement is carried out to obtain settlement data; and after signature verification and consensus verification are carried out on the settlement data by each node including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays the electricity fee to the electricity selling side node.
The invention has the following beneficial effects:
1. the invention can be used for a photovoltaic power internet access mode of 'full internet access, spontaneous self-use/surplus power internet access', realizes the distributed safe sharing of photovoltaic projects and settlement information, solves the problem that the data of each system cannot be acquired in real time due to the operation of a service system related to a plurality of departments, can not be falsified once the data is stored in a block chain, can audit the shared log every time, and strengthens the reality and mutual trust of source data.
2. Intelligent matching of electric power transaction amount and price is implemented, and accurate financial settlement is realized; the intelligent contracts are subjected to random transaction matching, the generated energy and the online electric quantity which are collected from the intelligent electric meter and recorded on the chain are subjected to transaction clearing according to the block chain, the clearing amount can simultaneously run the same code through all the nodes, and the results are mutually verified, so that the data consistency, the settlement accuracy and the intellectualization are realized; the intelligent contract automatically executes fund transfer according to a transaction settlement result, the automatic point-to-point settlement of the contract reduces the transaction dispute probability, and the trust problem among strange nodes is solved.
3. The intelligent contract is an application program and a reusable automatic execution script which run on a block chain, and for the condition that a plurality of contracts exist on the chain, each contract can agree different electric power transaction participants, each subcommand in each contract can also be appointed to run a specific transaction, and the complex audit service logic of a power grid company can be completed by utilizing the intelligent contract, so that the subsequent financial management risk is avoided.
4. The power consumer including the timestamp, the transaction hash, the block chain hash, the block height, the original data and the evidence storing information are connected with a transaction related information chain, so that the power consumer can conveniently inquire and display at the power grid side and the user side, perform real-time panoramic display and data analysis, and realize value co-creation of the energy industry.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, wherein like reference numerals are used to designate like parts throughout.
Fig. 1 is a schematic diagram of a distributed photovoltaic power generation and distribution system according to a first embodiment of the present invention;
FIG. 2 is a block composition transfer diagram according to one embodiment of the present invention;
fig. 3 is a flowchart of a distributed photovoltaic electricity distribution method according to a first embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and which together with the embodiments of the invention serve to explain the principles of the invention.
Example one
The embodiment discloses a distributed photovoltaic power generation and distribution system based on a block chain, as shown in fig. 1, comprising a distributed photovoltaic power station, a power selling side node, a power purchasing side node and an electric quantity metering node which are used as basic organization nodes of the block chain, and the block chain which is a service platform;
in the present embodiment, the term "node" is generally used to refer to a mobile phone, a desktop, a service platform, or other terminals capable of accessing the blockchain network.
The block chain as a service platform (BaaS platform) refers to a block chain service platform for creating, managing and maintaining a block chain network and providing a photovoltaic power generation and electricity selling application service.
The electricity selling side node is used for initiating electricity selling transactions and establishing an intelligent contract for settling photovoltaic power internet transaction with the electricity purchasing side node; deploying the intelligent contracts to a local database of each node on the block chain;
the electricity selling side node is a terminal of a block chain used by photovoltaic power producers and consumers, the photovoltaic power producers and consumers can comprise residential power producers and consumers, industrial power producers and consumers and commercial power producers and consumers, the produced electricity can be completely on line, and can also be automatically used/surplus electricity on line, and the electricity is sold to the electricity purchasing side node on line;
the electricity purchasing side node can be a power grid enterprise or a terminal of a block chain used by other power consumers in a cell microgrid.
The power purchasing side nodes of the power grid enterprise comprise a financial department node and a reward department node;
financial department node: namely, the service platform of the financial management and control system of the financial department of the power grid enterprise performs synchronous auditing of the system and manual documents (invoices) according to the settlement information transmitted by marketing and the provided related documents. And checking the settlement information, and performing invoice confirmation and certificate making after the verification is correct, and performing accounting processing. And after the electricity purchasing accounting post checks that the payment information is correct, the financial management and control system confirms, pays and controls the certificate, and then feeds back the marketing MIS system.
A campsite node: the service platform of the marketing MIS system in the electric network enterprise service part is used for rechecking electric meter data, transmitting the data to an electric quantity and electric charge auditing link after error processing is avoided, transmitting the data to a work order of the electric quantity and electric charge auditing link, and auditing electric quantity and electric charge and settling document auditing and transmitting by an auditor according to the corresponding relation between the generated energy and the online electric quantity.
The electricity selling side nodes are provided with corresponding distributed photovoltaic power stations and used for generating electric quantity capable of being used for online transaction;
the electric quantity metering node is connected with the distributed photovoltaic power station and used for metering the internet surfing electric quantity for transaction and chaining the electric quantity after encryption;
specifically, the electric quantity metering node meters the internet surfing electric quantity for transaction through intelligent electric quantity collecting equipment, and the intelligent electric quantity collecting equipment can be an intelligent electric meter widely used in electric power metering;
the online transaction electric quantity can be directly linked up through an interface of the intelligent electric meter, or after being checked to be correct through a reward part node of a power grid enterprise, the electric quantity is linked up again.
Preferably, the encryption mode of the electricity metering node may be signature encryption by using a private key of the electricity selling side node and a public key of the electricity purchasing side node corresponding to the encryption mode.
The electricity purchasing side node is used for acquiring the online transaction electric quantity of the chaining, and performing photovoltaic settlement to obtain settlement data after the intelligent contract is triggered; and after signature verification and consensus verification are carried out on the settlement data by each node including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays the electricity fee to the electricity selling side node.
Specifically, the process of establishing the intelligent contract between the power selling side node and the power purchasing side node includes:
1) utilizing a formatted photovoltaic settlement contract template which is agreed by each node on the block chain to generate a contract text of the intelligent contract;
the contract text is generated after the power grid enterprise marketing center accepts the grid-connected application of users of photovoltaic users and the charging rules of all parties of the photovoltaic power grid-connected transaction are agreed;
when parties establish new contracts for photovoltaic power grid transactions, the contracts can be designed using informal specifications and then described using formatted photovoltaic settlement contract templates agreed upon by nodes on the blockchain.
The formatted photovoltaic settlement contract templates which are commonly identified by all the nodes on the block chain can be downloaded from the related services of the block chain, namely a service platform, and the contract templates can not be tampered after being commonly identified and linked, so that the individual nodes are prevented from being increased, deleted and modified privately and maliciously.
Photovoltaic project information, complete customer profile information, and pricing rules for photovoltaic settlement may be included in the contract text. The pricing rules comprise charging, electric quantity, tax rate contract rules and the like for calculating the electricity purchasing fee and the subsidy amount.
2) The contract text is programmed and verified to obtain an intelligent contract code;
generating intelligent contract codes by programming the contract texts; the intelligent contract code is then verified to verify the consistency of the intelligent contract code and the contract text.
Specifically, a formal verification method can be adopted to verify the intelligent contract code;
since there may be leaks of intelligent contract code and contract text inconsistency caused by contract compilation, improper contract code compilation, improper execution environment implementation or a defect in contract code logic during contract construction, storage and execution of intelligent contracts, careful auditing and security check of the linked intelligent contracts are necessary. The embodiment utilizes a formal verification method to perform security audit on the intelligent contract codes so as to ensure that the intelligent contract codes and the settlement rules are consistent in nature and execution power; based on the established formalized constraints, relevant characteristics of the settlement contract are analyzed and verified to audit whether the settlement contract meets the expected security attributes, such as inconsistency, ambiguity, incompleteness and the like.
Intelligent contract code validation may be performed on a virtual machine.
3) Distributing the intelligent contract code to each node;
specifically, the verified intelligent contract code may be distributed to each node by way of P2P.
4) Each node temporarily stores the received intelligent contract codes in a local memory, packages the intelligent contract codes temporarily stored in a set time period into a contract set, calculates the Hash value of the set and assembles the set into a block;
as shown in fig. 2 below, each block contains the following information: the Hash value of the current block, the Hash value of the previous block, the timestamp, the contract data, and the intelligent contract record data. The contracts are stored in the contract set so as to be called immediately according to the service requirements.
5) Each node diffuses the blocks in the local memory to other nodes of the whole network;
6) the node receiving the block compares and verifies the Hash value stored locally;
the consensus is achieved through multiple rounds of sending and comparison, and the method is extended to all sections of the whole network.
Specifically, deploying the intelligent contract to the local database of each node on the blockchain includes the following steps:
1) after the intelligent contract is achieved, the intelligent contract sender signs and encrypts the intelligent contract by adopting a private key and a public key of an intelligent contract receiver;
preferably, the encryption may encrypt only non-critical private data of the power transaction, including anonymous, private data that should not be publicly exposed to make others non-queriable, transaction details such as transaction volume, and the like. Other unrelated people are prevented from obtaining private data through the blockchain through encryption.
The sender and the receiver of the intelligent contract can be power selling side nodes or power purchasing side nodes which are used as basic organization nodes in a block chain;
2) installing the intelligent contract subjected to signature encryption on a block chain, namely a service platform;
in the installation stage of the intelligent contract, both the electricity selling party and the electricity purchasing party can install the intelligent contract on a block chain, namely a service platform.
3) The blockchain service platform synchronizes the intelligent contracts to a local database of each node on the blockchain;
in particular, the blockchain synchronizes the intelligent contracts to local databases of other nodes through a P2P network.
In this embodiment, when the power purchasing side node is a power grid enterprise node, the comprised credit bureau node can pull the online transaction electric quantity on the block chain, and when the intelligent contract is triggered, photovoltaic settlement is performed to obtain settlement data;
triggering the intelligent contract to initiate photovoltaic settlement comprises two modes;
the first method is as follows: when the power generation and power utilization data change, regularly and automatically triggering intelligent contracts of all nodes; all nodes have a uniform container environment for operating the intelligent contract, and the change of power generation or power utilization data is monitored, namely, the automatic execution of the intelligent contract is triggered, and photovoltaic settlement is initiated;
the second method comprises the following steps: after the block link receives the power generation and utilization data collected from the power collection equipment, a user of the power selling side node triggers an intelligent contract to initiate photovoltaic settlement.
When the electricity purchasing side node is a power grid enterprise node, photovoltaic settlement is carried out on the intelligent contract to obtain settlement data, signature verification such as audit, invoicing and auditing and consensus verification are carried out on the settlement data, and then the electricity fee is paid to the user of the electricity selling side node; the electric charge comprises an electric charge and a subsidy amount.
The method specifically comprises the following steps:
the service charge part node carries out electric charge compliance audit on the result of the photovoltaic settlement initiated by the intelligent contract and links the audit result;
and the reward part node calculates the payment of the electric charge and the supplementary money uplink according to the pulled online transaction electric quantity, compares the payment of the electric charge and the supplementary money uplink with the calculation of the electric charge and the supplementary money on the block chain intelligent contract, checks the electric charge conformity and links the checking result.
The financial department node acquires the result of the photovoltaic settlement of the audit compliance to bill, and links the electronic invoice data;
the invoice contains metadata such as number, code, date of invoicing, check code/tax free amount. And when invoicing is carried out, for natural human scenes, invoicing is carried out by the reward part node according to the information of the electric quantity and the electric charge on the chain. One natural person makes one invoice (the electricity purchase fee and the subsidy are combined to make one invoice) for each project.
For unnatural people (such as business, industrial and other enterprise clients), the invoice is issued by the notification, the enterprise inquires the information of the quantity, price and fee on the chain, confirms that the information is correct, and goes to the tax bureau for issuing the invoice. The electricity purchasing fee and the central subsidy of the power grid can be separately invoiced according to the needs.
The block chain encrypts and stores the electronic invoice or paper bill according to the two-dimensional code, and verifies the electronic invoice or paper bill according to the intelligent contract rule of the invoice; and (5) transmitting the tax data into a tax system. Or, the tax bureau is used as a node to be added into the alliance chain, and the digital bill is generated on the block chain.
The block chain carries out matching verification according to the electronic invoice data of the chain and the intelligent contract photovoltaic settlement result on the chain, and the corresponding relation between the invoice and the settlement result is chain;
after the invoice is issued, comparing the invoice amount on the invoice named as 'distributed photovoltaic electricity purchasing charge' with the payment due and electricity purchasing charge of settlement data calculated by a contract on a chain, and comparing the invoice tax amount with the tax amount of the settlement data. When the invoice amount is equal to the amount of the electric charge to be paid and the same, and the tax amount difference between the invoice tax amount and the settlement data is within a set range (within plus or minus 0.03 yuan), the matching is considered to be successful, the invoice is effective, the invoice is stored on a block chain through hash encryption, and the corresponding relation between the invoice and the settlement data is linked. The system will display that each record ID (GID) to be settled corresponds to a number, and there may be the following three cases according to the settlement service scenario:
scene one: if one invoice corresponds to the subsidy data of a plurality of months, namely the invoice and the settlement data are in a 1-to-many relationship, the returned invoice information of each GID is the same when the invoices are returned.
Scene two: if a certain unit needs to make a plurality of invoices when the monthly subsidy amount is huge, namely the invoices and the settlement data are in a multi-to-1 relationship, a plurality of records (number of invoices) GID are returned when the relationship is returned, the GID are the same, and the corresponding invoice information is different.
Scene three: and (4) simultaneously settling subsidies for N months by a certain unit, but if the sum of money is larger and N invoices need to be separated, returning N records.
After the invoice passes the verification, the earning part node makes a settlement document according to the payment posting amount and the plan, and pushes the settlement document to a financial part node in the block chain for auditing to generate a settlement certificate; and linking the settlement document and the settlement certificate to be not falsifiable, thereby providing a reliable data basis for subsequent audit.
After the distributed photovoltaic settlement processing is completed, payment application, approval, payment and payment information feedback can be carried out.
Specifically, after the distributed photovoltaic settlement processing is completed, a payment application approval process of electricity purchase fee and subsidy amount can be started: and the payment application approval circulation can be carried out by generating and approving the payment prefabricated certificate, and after the payment application approval is finished, formal payment and fund transfer are carried out, so that the prefabricated certificate is converted into a formal accounting certificate.
After the power grid payment is successful, the payment information is fed back to the reward part, and the reward part is fed back to the photovoltaic owner in a short message mode.
Specifically, the block chain performs distributed encryption and evidence storage on information and settlement data (including subsidy catalog information, settlement data due to payment, settled data, paid data and the like) generated in each link, and documents and certificates, and the information and the settlement data cannot be tampered and traced.
The distributed photovoltaic power generation and distribution system in the example can also be used for dispatching power to work. The specific method comprises the following steps:
decrypting the settlement result in the intelligent contract through the private key of the electricity purchasing side node and the public key of the electricity selling side node,
acquiring newly increased power quantity of the power grid within a time period preset by the intelligent contract according to a settlement result;
and scheduling the electric power on the power grid in the period according to the newly increased electric quantity.
Compared with the prior art, the method and the device can be used for a photovoltaic power internet access mode of 'full internet access, spontaneous self-use/surplus power internet access', realize distributed safe sharing of photovoltaic projects and settlement information, solve the problem that data of each system cannot be acquired in real time due to operation of business systems related to multiple departments, and ensure that the data cannot be falsified once stored in a block chain, shared logs can be audited every time, and the source data is strengthened to be real and mutually trusted; intelligent matching of electric power transaction amount and price is implemented, and accurate financial settlement is realized; the automatic point-to-point settlement reduces the transaction dispute probability and solves the trust problem among strange nodes; complex auditing service logic of a power grid company can be completed, and subsequent financial management risks are avoided; the power consumer including the timestamp, the transaction hash, the block chain hash, the block height, the original data and the evidence storing information are connected with a transaction related information chain, so that the power consumer can conveniently inquire and display at the power grid side and the user side, perform real-time panoramic display and data analysis, and realize value co-creation of the energy industry.
Example two
The embodiment discloses an electricity distribution method based on a distributed photovoltaic electricity distribution system as in the first embodiment, as shown in fig. 3, the method includes the following steps:
step S1, the electricity selling side node initiates an electricity selling transaction and establishes an intelligent contract for photovoltaic power internet transaction settlement with the electricity purchasing side node;
step S2, deploying the intelligent contracts to a local database of each node on the block chain;
step S3, the online electricity used for the transaction is measured through the electricity quantity measuring node, and the encrypted online electricity is linked up;
step S4, the electricity purchasing side node collects the online transaction electric quantity of the chain, and when the intelligent contract is triggered, photovoltaic settlement is carried out to obtain settlement data; and after signature verification and consensus verification are carried out on the settlement data by each node including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays the electricity fee to the electricity selling side node.
It should be noted that the above embodiments are based on the same inventive concept, and the description is not repeated, so that they can be referred to each other.
Compared with the prior art, the beneficial effects of the present embodiment are substantially the same as those provided by the first embodiment, and are not repeated herein.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.

Claims (10)

1. A distributed photovoltaic power generation and distribution system based on a block chain is characterized by comprising a power distribution side node, a power purchase side node and an electric quantity metering node;
the electricity selling side node is used for initiating electricity selling transactions and establishing an intelligent contract for settling photovoltaic power internet transaction with the electricity purchasing side node; deploying the intelligent contracts to a local database of each node on the block chain;
the electric quantity metering node is used for metering the internet surfing electric quantity for transaction, and chaining the encrypted electric quantity;
the electricity purchasing side node is used for acquiring the online transaction electric quantity of the chaining, and performing photovoltaic settlement to obtain settlement data after the intelligent contract is triggered; and after signature verification and consensus verification are carried out on the settlement data by each node including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays the electricity fee to the electricity selling side node.
2. The distributed photovoltaic power generation and distribution system of claim 1, wherein the establishment of the smart contract comprises:
utilizing a formatted photovoltaic settlement contract template which is agreed by each node on the block chain to generate a contract text of the intelligent contract;
obtaining an intelligent contract code after programming and verification;
distributing the intelligent contract code to each node;
each node temporarily stores the received intelligent contract codes in a local memory, packages the intelligent contract codes temporarily stored in a set time period into a contract set, calculates the Hash value of the set and assembles the set into a block;
each node diffuses the blocks in the local memory to other nodes of the whole network;
the node receiving the block compares and verifies the Hash value stored locally;
the consensus is achieved through multiple rounds of sending and comparison, and the method is extended to all sections of the whole network.
3. The distributed photovoltaic settlement system of claim 2,
the block includes a Hash value of the current block, a Hash value of the previous block, a timestamp, intelligent contract data, and intelligent contract record data.
4. The distributed photovoltaic power generation and sale system of claim 1, wherein the smart contract deployment comprises:
after the intelligent contract is achieved, a sender of the intelligent contract adopts a private key and a public key of a receiver of the intelligent contract to sign and encrypt the intelligent contract;
installing the intelligent contract subjected to signature encryption on a block chain, namely a service platform;
and the blockchain service platform synchronizes the intelligent contracts to a local database of each node on the blockchain.
5. The distributed photovoltaic power generation and distribution system of claim 4, wherein the signature encryption encrypts non-critical private data for power transactions.
6. The distributed photovoltaic power generation and distribution system of claim 1, wherein the smart contract initiation photovoltaic settlement trigger condition comprises;
when the online transaction electric quantity data changes, regularly and automatically triggering intelligent contracts of all nodes; alternatively, the first and second electrodes may be,
after the block link receives the data of the electric quantity of the online transaction, an intelligent contract is triggered by the power selling side node in the block link, and photovoltaic settlement is initiated.
7. The distributed photovoltaic power generation and sale system according to any one of claims 1-6, wherein the power-purchasing-side nodes comprise a camppart node and a finance part node of a power grid enterprise;
the service charge part node carries out electric charge compliance audit on the result of the photovoltaic settlement initiated by the intelligent contract and links the audit result;
the financial department node acquires the result of the photovoltaic settlement of the audit compliance to bill, and links the electronic invoice data; the block chain carries out matching verification according to the electronic invoice data of the chain and the intelligent contract photovoltaic settlement result on the chain, and the corresponding relation between the invoice and the settlement result is chain;
after the invoice passes the verification, the earning part node makes a settlement document according to the payment posting amount and the plan, and pushes the settlement document to the finance part node for auditing to generate a settlement certificate; and linking the settlement document and the settlement voucher.
8. The distributed photovoltaic power generation and distribution system according to claim 7, wherein the blockchain performs distributed encryption for deposit of settlement data, documents and certificates.
9. The distributed photovoltaic power distribution and sale system according to claim 7, wherein the settlement result in the intelligent contract is decrypted by a private key of the power purchasing side node and a public key of the power distribution and sale side node; and performing corresponding power scheduling work with the internet power in the settlement result at a time interval preset by the intelligent contract according to the settlement result.
10. A power distribution method based on the distributed photovoltaic power distribution system according to claims 1 to 9, comprising:
step S1, the electricity selling side node initiates an electricity selling transaction and establishes an intelligent contract for photovoltaic power internet transaction settlement with the electricity purchasing side node;
step S2, deploying the intelligent contracts to a local database of each node on the block chain;
step S3, the online electricity used for the transaction is measured through the electricity quantity measuring node, and the encrypted online electricity is linked up;
step S4, the electricity purchasing side node collects the online transaction electric quantity of the chain, and when the intelligent contract is triggered, photovoltaic settlement is carried out to obtain settlement data; and after signature verification and consensus verification are carried out on the settlement data by each node including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays the electricity fee to the electricity selling side node.
CN201911390461.3A 2019-12-27 2019-12-27 Distributed photovoltaic power generation and selling system and method based on block chain Active CN111178887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911390461.3A CN111178887B (en) 2019-12-27 2019-12-27 Distributed photovoltaic power generation and selling system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911390461.3A CN111178887B (en) 2019-12-27 2019-12-27 Distributed photovoltaic power generation and selling system and method based on block chain

Publications (2)

Publication Number Publication Date
CN111178887A true CN111178887A (en) 2020-05-19
CN111178887B CN111178887B (en) 2023-05-09

Family

ID=70654265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911390461.3A Active CN111178887B (en) 2019-12-27 2019-12-27 Distributed photovoltaic power generation and selling system and method based on block chain

Country Status (1)

Country Link
CN (1) CN111178887B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111798209A (en) * 2020-06-30 2020-10-20 远光软件股份有限公司 Engineering project management method based on block chain, electronic equipment and storage medium
CN112214552A (en) * 2020-11-05 2021-01-12 深圳市瀚兰区块链地产有限公司 Construction engineering construction intelligent contract execution method and device and electronic equipment
CN113437758A (en) * 2021-06-25 2021-09-24 安徽海螺建材设计研究院有限责任公司 Photovoltaic grid-connected system and metering method of cement plant
CN113706312A (en) * 2021-09-08 2021-11-26 北京中电普华信息技术有限公司 Photovoltaic electricity transaction method and device based on block chain
CN116342266A (en) * 2022-12-30 2023-06-27 广东电力交易中心有限责任公司 Method for checking date and solidifying date of data of power transaction metering point

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062671A (en) * 2017-11-03 2018-05-22 深圳市轱辘车联数据技术有限公司 Data trade method, block chain node server and data submit terminal
CN108364203A (en) * 2018-02-07 2018-08-03 深圳壹账通智能科技有限公司 Electronic invoice generation method, system, computer equipment and storage medium
CN108805710A (en) * 2018-05-28 2018-11-13 华北电力大学 A kind of distribution type electric energy method of commerce based on block chain intelligence contract technology
CN109040133A (en) * 2018-09-27 2018-12-18 上海点融信息科技有限责任公司 The method, apparatus and storage medium of intelligent contract are installed in block chain network
CN109191199A (en) * 2018-08-27 2019-01-11 国网能源研究院有限公司 Distributed energy charge settlement system and method based on block chain
US20190236598A1 (en) * 2018-01-31 2019-08-01 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing machine learning models for smart contracts using distributed ledger technologies in a cloud based computing environment
CN110298610A (en) * 2019-05-05 2019-10-01 江苏一乙生态农业科技有限公司 A kind of Express Logistics block catenary system and its operation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062671A (en) * 2017-11-03 2018-05-22 深圳市轱辘车联数据技术有限公司 Data trade method, block chain node server and data submit terminal
US20190236598A1 (en) * 2018-01-31 2019-08-01 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing machine learning models for smart contracts using distributed ledger technologies in a cloud based computing environment
CN108364203A (en) * 2018-02-07 2018-08-03 深圳壹账通智能科技有限公司 Electronic invoice generation method, system, computer equipment and storage medium
CN108805710A (en) * 2018-05-28 2018-11-13 华北电力大学 A kind of distribution type electric energy method of commerce based on block chain intelligence contract technology
CN109191199A (en) * 2018-08-27 2019-01-11 国网能源研究院有限公司 Distributed energy charge settlement system and method based on block chain
CN109040133A (en) * 2018-09-27 2018-12-18 上海点融信息科技有限责任公司 The method, apparatus and storage medium of intelligent contract are installed in block chain network
CN110298610A (en) * 2019-05-05 2019-10-01 江苏一乙生态农业科技有限公司 A kind of Express Logistics block catenary system and its operation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VAN-CAM NGUYEN 等: "Digitizing invoice and managing vat payment using blockchain smart contract" *
熊涛: "S公司供应商管理改进研究" *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111798209A (en) * 2020-06-30 2020-10-20 远光软件股份有限公司 Engineering project management method based on block chain, electronic equipment and storage medium
CN112214552A (en) * 2020-11-05 2021-01-12 深圳市瀚兰区块链地产有限公司 Construction engineering construction intelligent contract execution method and device and electronic equipment
CN113437758A (en) * 2021-06-25 2021-09-24 安徽海螺建材设计研究院有限责任公司 Photovoltaic grid-connected system and metering method of cement plant
CN113437758B (en) * 2021-06-25 2022-07-26 安徽海螺建材设计研究院有限责任公司 Photovoltaic grid-connected system and metering method for cement plant
CN113706312A (en) * 2021-09-08 2021-11-26 北京中电普华信息技术有限公司 Photovoltaic electricity transaction method and device based on block chain
CN116342266A (en) * 2022-12-30 2023-06-27 广东电力交易中心有限责任公司 Method for checking date and solidifying date of data of power transaction metering point

Also Published As

Publication number Publication date
CN111178887B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN111177758A (en) Distributed photovoltaic settlement method and system based on block chain
CN107909358B (en) Energy settlement method, device and system
US11150271B2 (en) Method or system for management of a device for energy consumption by applying blockchain protocol
CN111178887A (en) Distributed photovoltaic power generation and sale system and method based on block chain
CN107423945B (en) Intelligent energy transaction management system and method based on block chain technology
CN107240002B (en) Electric power transaction method and device and micro-grid system
CN112488778A (en) Bill processing method and related device
CN110717832B (en) Clean energy trading method, system, device and storage medium based on block chain
CN112053152B (en) Distributed energy grid-connected authentication and transaction method based on green rights and interests consensus mechanism
CN112488777B (en) Bill processing method and related device
CN112365330A (en) Transaction method of renewable distributed energy uniform price two-way auction based on super account book
JP2020091529A (en) System for generating power transaction history
KR20220036814A (en) System for distributing profits of renewable energy to residents
CN112487491A (en) Control method and related device for block chain system
CN113065960A (en) Transaction system based on block chain
CN113643131A (en) Microgrid distributed energy trading method and system based on block chain
WO2020231288A1 (en) Information system for buying and selling electrical energy
CN116228340A (en) Block chain-based energy transaction method, computing equipment and storage medium
KR102062644B1 (en) System and method for management of collective building
CN116342130A (en) Intelligent settlement service system for small amount of pre-charge electric charge
CN113763146B (en) Self-service tax handling system
KR20210073183A (en) System for dealing a carbon exhaust using microgrid
CN111292176A (en) Tax proxy method, device, electronic equipment and computer-readable storage medium
JP2020091871A (en) System for generating power transaction history
US20230124657A1 (en) EGR Powered System and Energy Provider Billing Entity, Billing Management Using Blockchain

Legal Events

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