CN111178887B - Distributed photovoltaic power generation and selling system and method based on block chain - Google Patents

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

Info

Publication number
CN111178887B
CN111178887B CN201911390461.3A CN201911390461A CN111178887B CN 111178887 B CN111178887 B CN 111178887B CN 201911390461 A CN201911390461 A CN 201911390461A CN 111178887 B CN111178887 B CN 111178887B
Authority
CN
China
Prior art keywords
settlement
electricity
node
intelligent contract
data
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.)
Active
Application number
CN201911390461.3A
Other languages
Chinese (zh)
Other versions
CN111178887A (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 selling system and method based on a blockchain, which belong to the technical field of distributed photovoltaics and solve the problem of distributed photovoltaic settlement, wherein the system comprises an electricity selling side node, an electricity purchasing side node and an electric quantity metering node; the electricity selling side node is used for initiating electricity selling transaction, and an intelligent contract for photovoltaic power online transaction settlement is established with the electricity purchasing side node; the electric quantity metering node is used for metering the internet surfing electric quantity for transaction, and is used for uploading after encryption; the power purchasing side node is used for collecting the uplink online transaction electric quantity and carrying out photovoltaic settlement to obtain settlement data; after each node performs signature verification and consensus verification on the settlement data, the electricity purchasing side node pays electricity fees to the electricity selling side node. The invention can be used for a photovoltaic power internet surfing mode of full internet surfing, spontaneous self-use/residual electricity internet surfing, and realizes the distributed safe sharing of photovoltaic projects and settlement information.

Description

Distributed photovoltaic power generation and selling 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 selling system and method based on a block chain.
Background
The current distributed photovoltaic power distribution mode is: the power consumption information acquisition system of the power grid company acquires data such as the online electric quantity and the generated energy of a power generator, the power marketing MIS (management information system-Management Information System)) system of the power grid company issues electric charges according to the online electric quantity and the generated energy and then transmits the electric charges to the financial management and control system, the financial accounts are settled and checked according to the data such as an electric charge settlement bill, an invoice and the like, the online electric charges and the central subsidy are initiated to be paid to the light e bank, and the light e bank completes the pay-through work of the electric charges. In the process, the financial management and control system needs to maintain the price of the post, the subsidy standard, the corresponding business units and the Union number related to settlement, and report and record the price layer by layer.
The following problems occur in this mode: the marketing basic information is missing, so that the necessary filling information of the financial link is incomplete, the supplementary maintenance is needed manually, and the workload is high; the marketing system and the management and control system have no online information feedback mechanism, and completely rely on offline notification, so that the retransmission effect and timeliness cannot be ensured, the processing efficiency is low, and the financial side settlement is affected; the photovoltaic user applies for information bank line numbers and irregular filling of units to be communicated. These problems lead to lengthy financial payment auditing flows, untimely optical e-bank payment, and even occurrence of financial risks such as misstatement, missed account and the like.
Disclosure of Invention
In view of the above analysis, the invention aims to provide a distributed photovoltaic power generation system and a distributed photovoltaic power generation method based on a blockchain, which solve the problem of an original micro-application distributed photovoltaic settlement system by adopting a blockchain 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 services after the sudden increase of a distributed project.
The aim of the invention is mainly realized by the following technical scheme:
the invention discloses a distributed photovoltaic power generation and selling system based on a block chain, which comprises an electricity selling side node, an electricity purchasing side node and an electric quantity metering node;
the electricity selling side node is used for initiating electricity selling transaction and establishing an intelligent contract for photovoltaic power online transaction settlement with the electricity purchasing side node; deploying the intelligent contract into a local database of each node on the blockchain;
the electric quantity metering node is used for metering the internet surfing electric quantity for transaction and uploading the encrypted internet surfing electric quantity;
the electricity purchasing side node is used for collecting the uplink transaction electric quantity, and after the intelligent contract is triggered, photovoltaic settlement is carried out to obtain settlement data; after signature verification and consensus verification are carried out on the settlement data by all nodes including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays electricity fees to the electricity selling side node.
Further, the establishing of the smart contract includes:
utilizing each node on the blockchain to reach a commonly-agreed formatted photovoltaic settlement contract template to generate a contract text of the intelligent contract;
obtaining an intelligent contract code after programming and verification;
distributing the smart 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 a Hash value of the set, and assembles a block;
each node diffuses the blocks in the local memory to other nodes of the whole network;
the nodes receiving the blocks compare and verify the locally stored Hash values;
consensus is achieved through multi-round transmission and comparison, and the method is expanded to all sections of the whole network.
Further, the block includes a Hash value of a current block, a Hash value of a previous block, a time stamp, smart contract data, and smart contract record data.
Further, the smart contract deployment includes:
when the intelligent contract is achieved, the sender of the intelligent contract carries out signature encryption on the intelligent contract by adopting a private key and a public key of a receiver of the intelligent contract;
installing the intelligent contract subjected to signature encryption on a blockchain serving platform;
the blockchain, i.e., the service platform, synchronizes the intelligent contracts to the local database of each node on the blockchain.
Further, the signature encryption encrypts non-critical privacy data of the power transaction.
Further, the intelligent contract initiating photovoltaic settlement triggering conditions include;
when the online transaction electric quantity data changes, automatically triggering intelligent contracts of all nodes at regular intervals; or,
after the block link receives the data of the electric quantity of the internet transaction, an intelligent contract is triggered by an electricity selling side node in the block link, and photovoltaic settlement is initiated.
Further, the electricity purchasing side node comprises a marketing department node and a finance department node of a power grid enterprise;
the marketing department node performs compliance audit of electric charge on the intelligent contract initiated photovoltaic settlement result, and links the audit result;
the financial department node obtains a result of the photovoltaic settlement of the auditing compliance to issue an invoice, and the electronic invoice data is linked; the blockchain performs matching verification according to the uplink electronic invoice data and the intelligent contract photovoltaic settlement result on the chain, and links the corresponding relation of the invoice and the settlement result;
after the invoice passes the verification, the marketing department node makes a settlement bill according to the payment amount and the plan, and pushes the settlement bill to the finance department node for auditing to generate a settlement certificate; and the settlement document is linked with the settlement certificate.
Further, the blockchain performs distributed encryption and certification storage on settlement data, documents and certificates.
Further, 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; and making a power dispatching work corresponding to the internet surfing power in the settlement result in a period preset by the intelligent contract according to the settlement result.
The invention also discloses an electricity selling method based on the distributed photovoltaic electricity selling system, which is characterized by comprising the following steps of:
step S1, the electricity selling side node initiates electricity selling transaction, and an intelligent contract for photovoltaic power online transaction settlement is established with the electricity purchasing side node;
step S2, deploying the intelligent contract into a local database of each node on a blockchain;
s3, metering the Internet surfing electric quantity for transaction through an electric quantity metering node, and uploading after encryption;
s4, the power purchasing side node collects uplink transaction electric quantity, and after the intelligent contract is triggered, photovoltaic settlement is carried out to obtain settlement data; after signature verification and consensus verification are carried out on the settlement data by all nodes including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays electricity fees to the electricity selling side node.
The invention has the following beneficial effects:
1. the invention can be used for photovoltaic power networking modes of full surfing, spontaneous self-use/surplus electricity surfing, realizes distributed safe sharing of photovoltaic projects and settlement information, solves the problem that data of each system cannot be acquired in real time due to business system operation involving a plurality of departments, cannot be tampered once the data is stored in a blockchain, can audit each sharing log, and strengthens reality and mutual trust of source data.
2. The intelligent matching of the electric power transaction amount and the price is implemented, so that the financial accurate settlement is realized; the intelligent contracts are subjected to random transaction matching, transaction clearing is carried out according to the generated energy and the online electric energy which are acquired from the intelligent electric meter by the blockchain and recorded on the chain, the clearing amount can pass through all nodes to run the same code at the same time, and the results are checked mutually, so that data consistency, settlement accuracy and intellectualization are realized; the intelligent contract automatically executes fund transfer according to the transaction settlement result, the contract automatic point-to-point settlement reduces the transaction dispute probability, and the trust problem between strange nodes is solved.
3. The intelligent contracts are application programs running on the blockchain and reusable automatic execution scripts, and for a plurality of contracts existing on the chain, each contract can agree on different power transaction participants, each subcommand in each contract can be appointed to run a specific transaction, the intelligent contracts can be used for completing complex audit business logic of a power grid company, and subsequent financial management risks are avoided.
4. The method has the advantages that the electric power users can conveniently inquire and display the electric network side and the user side and perform real-time panoramic display and data analysis on the transaction related information chain comprising the time stamp, the transaction hash, the blockchain hash, the blockheight, the original data and the certificate storage information, so that the value co-creation of the energy industry is realized.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, like reference numerals being used to refer to like parts throughout the several views.
FIG. 1 is a schematic diagram of a distributed photovoltaic power generation system in accordance with a first embodiment of the present invention;
FIG. 2 is a block diagram illustrating a block configuration transfer according to a first embodiment of the present invention;
fig. 3 is a flowchart of a distributed photovoltaic power distribution method according to a first embodiment of the present invention.
Detailed Description
Preferred embodiments of the present invention are described in detail below with reference to the attached drawing figures, which form a part of the present application and, together with the embodiments of the present invention, serve to explain the principles of the invention.
Example 1
The embodiment discloses a distributed photovoltaic power generation and selling system based on a blockchain, which is shown in fig. 1 and comprises a distributed photovoltaic power station, a power selling side node, a power purchasing side node and an electric quantity metering node which are taken as blockchain basic organization nodes, and a blockchain serving platform;
in this embodiment, reference is generally made to a "node" which refers to a cell phone, desktop, and service platform in a blockchain network, or other terminal that can access the blockchain network, etc.
The blockchain, i.e., service platform (BaaS platform), refers to a blockchain service platform that creates, manages, and maintains a blockchain network and provides photovoltaic electricity vending application services.
The electricity selling side node is used for initiating electricity selling transaction and establishing an intelligent contract for photovoltaic power online transaction settlement with the electricity purchasing side node; deploying the intelligent contract into a local database of each node on the blockchain;
the electricity selling side node is a terminal of a block chain used by a photovoltaic electricity generator and eliminator, the photovoltaic electricity generator and eliminator can comprise a resident electricity generator and eliminator, an industrial electricity generator and a commercial electricity generator and eliminator, the produced electric quantity can be fully connected with the internet, or can be automatically used/surplus to be connected with the internet, and the electricity can be sold to the electricity purchasing side node;
the electricity purchasing side node can be a terminal of a power grid enterprise or other electricity consumers in a cell micro-grid using a blockchain.
The power purchasing side nodes of the power grid enterprise comprise financial department nodes and marketing department nodes;
finance department node: the service platform of the financial management and control system of the electric network enterprise financial department carries out synchronous auditing of the system and manual receipts (invoices) according to the settlement information transmitted by marketing and the related receipts provided. Checking settlement information, checking and confirming the invoice, making the certificate and performing accounting processing after checking and checking. After checking the payment information, the power purchase check post confirms, pays and makes a certificate in the financial management and control system, and then feeds back to the marketing MIS system.
Marketing department node: the service platform of the marketing MIS system in the marketing department of the power grid enterprise is used for rechecking the data of the electric meter, transmitting the data to an electric quantity and electricity charge checking link after processing the data without errors, transmitting the data to a work order of the electric quantity and electricity charge checking link, checking the electric quantity and electricity charge by a check operator according to the corresponding relation between the generated energy and the online electric quantity, and checking and transmitting the settlement receipts.
The electricity selling side nodes are respectively provided with a distributed photovoltaic power station corresponding to the electricity selling side nodes and are used for generating electricity quantity capable of realizing online transaction;
the electric quantity metering node is connected with the distributed photovoltaic power station and is used for metering the internet surfing electric quantity for transaction and uploading the encrypted internet surfing electric quantity;
specifically, the electric quantity metering node meters the internet electric quantity for transaction through an intelligent electric quantity collection device, and the intelligent electric quantity collection device can be an intelligent electric meter widely used in electric quantity metering;
the electric quantity of the online transaction can be directly uploaded through an interface of the intelligent electric meter, or can be uploaded after being checked by a marketing department node of a power grid enterprise.
Preferably, the encryption mode of the electric quantity metering node may be to adopt a private key of the electricity selling side node and a public key of the electricity purchasing side node corresponding to the electric quantity metering node to perform signature encryption.
The electricity purchasing side node is used for collecting the uplink transaction electric quantity, and after 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 all nodes including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays electricity fee to the electricity selling side node.
Specifically, the intelligent contract establishment process between the electricity selling side node and the electricity purchasing side node includes:
1) Utilizing each node on the blockchain to reach a commonly-agreed formatted photovoltaic settlement contract template to generate a contract text of the intelligent contract;
the contract text is generated after agreement is achieved on charging rules of photovoltaic power online transaction by each party after the grid enterprise marketing center receives a user grid-connected application of a photovoltaic subscriber;
when parties establish a new contract for a photovoltaic power online transaction, the contract may be designed using informal specifications, and then described using a formatted photovoltaic settlement contract template agreed upon by nodes on the blockchain.
The formatted photovoltaic settlement contract template which is agreed by all nodes on the blockchain can be downloaded from related services of the blockchain, namely the service platform, and the contract template cannot be tampered after being agreed to be uplink, so that the private malicious addition and deletion of a single node is prevented.
Photovoltaic project information, complete customer profile information, and pricing rules for photovoltaic settlement may be included in the contract text. The pricing rules include billing for calculating electricity purchase fees and subsidy amounts, electricity amounts, tax rate contract rules, and the like.
2) The intelligent contract code is obtained after the contract text is programmed and verified;
generating intelligent contract codes from the contract text through programming; and verifying the intelligent contract code to verify the consistency of the intelligent contract code and the contract text.
Specifically, the intelligent contract code can be verified by adopting a formal verification method;
because intelligent contract is about the loopholes that the intelligent contract code and the contract text are inconsistent due to the fact that the compiling of the contract, the writing of the contract code is incorrect, the implementation environment is not properly realized or the logic of the contract code is defective in the process of constructing, storing and executing the contract, careful audit and security check of the uplink intelligent contract are necessary. The embodiment utilizes a formal verification method to carry out security audit on the intelligent contract code so as to ensure that the intelligent contract code and the settlement rule keep consistent in nature and execution force; based on the established formalized constraint, the relevant characteristics of the settlement contract are analyzed and verified to audit whether the settlement contract meets the expected safety attribute, if so, whether the problems of inconsistency, ambiguity, imperfection and the like exist.
The smart contract code verification may be performed on the virtual machine.
3) Distributing the smart contract code to each node;
in particular, the authenticated smart 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 a Hash value of the set, and assembles 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 conveniently and instantly called according to business requirements.
5) Each node diffuses the blocks in the local memory to other nodes of the whole network;
6) The nodes receiving the blocks compare and verify the locally stored Hash values;
consensus is achieved through multi-round transmission and comparison, and the method is expanded to all sections of the whole network.
Specifically, deploying the intelligent contract into a local database of each node on the blockchain includes the steps of:
1) When the intelligent contract is achieved, the intelligent contract sender adopts a private key and a public key of an intelligent contract receiver to carry out signature encryption on the intelligent contract;
preferably, the encryption may encrypt only non-critical privacy data of the power transaction, including privacy data that should not be publicly revealed to make others irrequirible, such as anonymity, transaction details such as transaction amount, etc. Other unrelated persons are prevented from obtaining private data through the blockchain through encryption.
The sender and the receiver of the intelligent contract can be electricity selling side nodes or electricity purchasing side nodes which are taken as basic organization nodes in the blockchain;
2) Installing the intelligent contract subjected to signature encryption on a blockchain serving platform;
in the installation stage of the intelligent contract, the intelligent contract can be installed on the blockchain serving platform by both electricity selling and electricity purchasing parties.
3) The blockchain serving platform synchronizes the intelligent contracts to a local database of each node on the blockchain;
specifically, the blockchain synchronizes the intelligent contracts to local databases of other nodes through a P2P network.
In this embodiment, when the electricity purchasing side node is a power grid enterprise node, the marketing part node included in the electricity purchasing side node can pull the online transaction electric quantity on the blockchain, and after the intelligent contract is triggered, photovoltaic settlement is performed to obtain settlement data;
triggering the intelligent contract to initiate photovoltaic settlement includes two ways;
mode one: when the power generation and power consumption data change, automatically triggering intelligent contracts of all nodes at regular intervals; all nodes have a unified container environment for running intelligent contracts, and the change of power generation or power consumption data is detected, namely the intelligent contracts are automatically executed by triggering, and photovoltaic settlement is initiated;
mode two: after the block link receives the power generation and power utilization data acquired from the power acquisition 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, the intelligent contract is subjected to photovoltaic settlement to obtain settlement data, signature verification and consensus verification such as auditing, billing and auditing are required, and then the electricity fee is paid to the user of the electricity selling side node; the electric charge comprises an electric charge and an auxiliary amount.
The method specifically comprises the following steps:
the marketing department node performs compliance audit of electric charge on the intelligent contract initiated photovoltaic settlement result, and links the audit result;
the marketing department node calculates the payable electricity purchase fee and the subsidy amount according to the pulled online transaction electricity quantity, compares the payable electricity purchase fee and the subsidy amount with the blockchain intelligent contract calculation electricity purchase fee and the subsidy amount, checks the compliance of the electricity fee, and links the checking result.
The financial department node obtains the result of the photovoltaic settlement of the auditing compliance to make an invoice, and the electronic invoice data is linked;
the invoice contains metadata such as numbers, codes, invoicing dates, check codes/non-tax containing amounts and the like. When making an invoice, the marketing department node makes an invoice by the generation of the invoice according to the on-chain electric quantity and the electric charge information for the natural person scene. A natural person issues an invoice (purchase of electricity and subsidy) for an item.
For non-natural persons (such as business, industry and other enterprise clients), the invoicing is informed, the enterprise inquires the information of the quantity, the price and the fee on the chain, confirms that the information is correct, and goes to the tax bureau to invoice. The power grid electricity purchase fee and the central supplement can be separately billed as required.
The block chain encrypts and stores the electronic ticket or the paper ticket according to the two-dimension code, and verifies the electronic ticket or the paper ticket according to the invoice intelligent contract rule; and (5) entering a tax system. Alternatively, the tax bureau is added as a node to the alliance chain, and a digital ticket is generated on the blockchain.
The blockchain performs matching verification according to the uplink electronic invoice data and the intelligent contract photovoltaic settlement result on the chain, and links the corresponding relation of the invoice and the settlement result;
after the invoice is issued, the invoice amount on the invoice named as the distributed photovoltaic electricity purchase fee is compared with the electricity purchase fee payable of settlement data calculated by the on-link contract, and the invoice tax is compared with the tax of the settlement data. And when the invoice amount is equal to the electricity charge which is payable and the tax difference of the invoice tax and the settlement data is within a set range (within plus or minus 0.03 yuan), the invoice is considered to be successfully matched, the invoice is effective, the invoice is stored on the blockchain through hash encryption, and the corresponding relation between the invoice and the settlement data is uplink. In the system, each record ID (GID) to be settled corresponds to a number, and the following three situations can exist according to settlement business scenes:
scene one: when the relationship is returned, the invoice information returned by each GID is the same.
Scene II: when the amount of the subsidy of a certain unit in the month is huge, a plurality of invoices need to be made, namely, the relationship between the invoices and settlement data is that the number of the invoices is 1, records of a plurality of (number of invoices) GIDs are returned when the relationship is returned, the GIDs are the same, and corresponding invoice information is different.
Scene III: some unit settles the subsidy for N months at the same time, but the amount is larger and N invoices need to be separated, and then the relation returns N x N records.
After invoice verification is passed, the marketing department node makes a settlement receipt according to the payment amount and the plan, and pushes the settlement receipt to a finance department node in a blockchain for auditing to generate a settlement receipt; and the settlement receipt and the settlement certificate are uplink and can not be tampered, so that a reliable data basis is provided for subsequent audit.
After the distributed photovoltaic settlement process is completed, payment application, approval, payment and payment information feedback can be performed.
Specifically, after the distributed photovoltaic settlement processing is completed, a payment application approval process of the electricity purchase fee and the subsidy amount can be initiated: when the payment application is approved, the generation and the verification of the payment prefabricated certificate can be carried out, the formal payment is carried out after the approval of the payment application is finished, the fund transfer is finished, and the prefabricated certificate is converted into a formal accounting certificate.
After the power grid is paid successfully, payment information is fed back to the marketing department, and the marketing department feeds back to the photovoltaic owner in a short message mode.
Specifically, the blockchain performs distributed encryption and certification storage on information and settlement data (including subsidy catalog information, settlement data, settled data, paid data and the like) generated by each link, receipts and certificates, and the information and settlement data are not tamperable and traceable.
The distributed photovoltaic power generation system in this example can also be used to schedule power. 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,
obtaining new electric quantity of the power grid in a period preset by the intelligent contract according to the settlement result;
and dispatching the power on the power grid in the period according to the newly increased power quantity.
In summary, compared with the prior art, the embodiment can be used for a photovoltaic power internet mode of full internet surfing, spontaneous self-use/surplus electricity internet surfing, so that the distributed safe sharing of photovoltaic projects and settlement information is realized, the problem that data of each system cannot be acquired in real time due to operation of business systems of a plurality of departments is solved, once the data is stored in a blockchain, the data cannot be tampered, each sharing log can be audited, and the reality and mutual trust of source data are enhanced; the intelligent matching of the electric power transaction amount and the price is implemented, so that the financial accurate settlement is realized; automatic point-to-point settlement reduces transaction disputes probability and solves trust problems among strange nodes; complex audit business logic of the power grid company can be completed, and subsequent financial management risks are avoided; the method has the advantages that the electric power users can conveniently inquire and display the electric network side and the user side and perform real-time panoramic display and data analysis on the transaction related information chain comprising the time stamp, the transaction hash, the blockchain hash, the blockheight, the original data and the certificate storage information, so that the value co-creation of the energy industry is realized.
Example two
The embodiment discloses an electricity vending method based on the distributed photovoltaic electricity vending system as in the first embodiment, as shown in fig. 3, comprising the following steps:
step S1, the electricity selling side node initiates electricity selling transaction, and an intelligent contract for photovoltaic power online transaction settlement is established with the electricity purchasing side node;
step S2, deploying the intelligent contract into a local database of each node on a blockchain;
s3, metering the Internet surfing electric quantity for transaction through an electric quantity metering node, and uploading after encryption;
s4, the power purchasing side node collects uplink transaction electric quantity, and after the intelligent contract is triggered, photovoltaic settlement is carried out to obtain settlement data; after signature verification and consensus verification are carried out on the settlement data by all nodes including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays electricity fees 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, and the description may be referred to each other.
Compared with the prior art, the beneficial effects of the present embodiment are substantially the same as those provided in the first embodiment, and are not described in detail herein.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention.

Claims (2)

1. The distributed photovoltaic power generation and selling system based on the block chain is characterized by comprising an electricity selling side node, an electricity purchasing side node and an electric quantity metering node;
the electricity selling side node is used for initiating electricity selling transaction and establishing an intelligent contract for photovoltaic power online transaction settlement with the electricity purchasing side node; deploying the intelligent contract into a local database of each node on the blockchain;
the electric quantity metering node is used for metering the internet surfing electric quantity for transaction and uploading the encrypted internet surfing electric quantity;
the electricity purchasing side node is used for collecting the uplink transaction electric quantity, and after the intelligent contract is triggered, photovoltaic settlement is carried out to obtain settlement data; after signature verification and consensus verification are carried out on the settlement data by all nodes including an electricity purchasing side node and an electricity selling side node, the electricity purchasing side node pays electricity fees to the electricity selling side node; wherein the generation of the smart contract comprises the following sub-steps:
1) Utilizing each node on the blockchain to reach a commonly-agreed formatted photovoltaic settlement contract template to generate a contract text of the intelligent contract;
describing the contract by using a formatted photovoltaic settlement contract template agreed by each node on the blockchain when each party establishes a new contract for photovoltaic power online transaction; downloading a formatted photovoltaic settlement contract template which is agreed by all nodes on the blockchain from related services of a blockchain serving platform, wherein the formatted photovoltaic settlement contract template is not tamperable after being agreed to be uplink;
2) The intelligent contract code is obtained after the contract text is programmed and verified;
the intelligent contract code is subjected to security audit by using a formal verification method, so that the intelligent contract code and the settlement rule are ensured to be consistent in nature and execution force;
3) Distributing the smart contract code to each node;
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 a Hash value of the set, and assembles a block;
each block contains the following information: the Hash value of the current block, the Hash value of the previous block, the timestamp, contract data and intelligent contract record data;
5) Each node diffuses the blocks in the local memory to other nodes of the whole network;
6) The nodes receiving the blocks compare and verify the locally stored Hash values;
consensus is achieved through multi-round transmission and comparison, and the method is expanded to all sections of the whole network;
wherein deploying the smart contract into a local database of each node on the blockchain comprises the steps of:
1) When the intelligent contract is achieved, the intelligent contract sender adopts a private key and a public key of an intelligent contract receiver to carry out signature encryption on the intelligent contract;
the encryption only encrypts non-key privacy data of the power transaction, wherein the non-key privacy data comprises privacy data which is anonymous and can not be inquired by others through non-public display of transaction details such as transaction amount;
the sender and the receiver of the intelligent contract are electricity selling side nodes or electricity purchasing side nodes serving as basic organization nodes in the blockchain;
2) Installing the intelligent contract subjected to signature encryption on a blockchain serving platform;
in the installation stage of the intelligent contract, the intelligent contract is installed on a block chain serving platform by both electricity selling and electricity purchasing parties;
3) The blockchain serving platform synchronizes the intelligent contracts to a local database of each node on the blockchain;
synchronizing the intelligent contracts to local databases of other nodes by the blockchain through a P2P network;
the intelligent contract initiating photovoltaic settlement triggering conditions comprise;
when the online transaction electric quantity data changes, automatically triggering intelligent contracts of all nodes at regular intervals; or,
after the block link receives the data of the electric quantity of the internet transaction, triggering an intelligent contract by an electricity selling side node in the block link to initiate photovoltaic settlement;
when the electricity purchasing side node is a power grid enterprise node, carrying out signature verification and consensus verification including auditing, billing and auditing on settlement data obtained by carrying out photovoltaic settlement on the intelligent contract, and then paying electric charge to a user of the electricity selling side node; the electric charge comprises an electric charge and an auxiliary amount;
the method specifically comprises the following steps:
the electricity purchasing side node comprises a marketing part node and a financial part node of a power grid enterprise;
the marketing department node performs compliance audit of electric charge on the intelligent contract initiated photovoltaic settlement result, and links the audit result;
the marketing department node calculates the payable electricity purchase fee and the subsidy amount according to the pulled online transaction electricity amount, compares the payable electricity purchase fee and the subsidy amount calculated by the blockchain intelligent contract, checks the compliance of the electricity fee, and links the checking result;
the financial department node obtains the result of the photovoltaic settlement of the auditing compliance to make an invoice, and the electronic invoice data is linked;
the blockchain performs matching verification according to the uplink electronic invoice data and the intelligent contract photovoltaic settlement result on the chain, and links the corresponding relation of the invoice and the settlement result;
after the invoice is issued, comparing the invoice amount on the invoice with the electric charge payable of the settlement data calculated by the on-link contract, and comparing the invoice tax with the tax of the settlement data; when the invoice amount is equal to the electricity charge which is paid and the tax difference of the invoice tax and the settlement data is in a set range, the matching is considered successful, and the invoice is effective; the invoice is stored on the blockchain through hash encryption, and the corresponding relation between the invoice and settlement data is uplink;
displaying a number corresponding to each record ID to be settled in the system;
when the relation between the invoice and the settlement data is 1-to-many, and the relation is returned, the invoice information returned by each record ID to be settled is the same;
when the invoice and the settlement data are in a relation of a plurality of pairs of 1, returning a relation, and returning a plurality of IDs of records to be settled; the plurality of records to be settled have the same ID and the corresponding invoice information is different;
n months of subsidy is settled at the same time, but N invoices are required to be separated when the amount is large, and N records are returned by the relation; after invoice verification is passed, the marketing department node makes a settlement receipt according to the payment amount and the plan, and pushes the settlement receipt to a finance department node in a blockchain for auditing to generate a settlement receipt; the settlement receipt and the settlement certificate are uplink and cannot be tampered, and a reliable data basis is provided for subsequent audit;
after the distributed photovoltaic settlement processing is completed, carrying out payment application, approval, payment and payment information feedback;
the blockchain carries out distributed encryption and certification storage on information and settlement data, receipts and certificates generated by links including subsidized catalog information, payable settlement data, settled data and paid data, and is not tamperable and traceable; the distributed photovoltaic power generation and selling system is also used for dispatching power; decrypting a 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, and obtaining a new electric quantity of the power grid in a period preset by the intelligent contract according to the settlement result; and dispatching the power on the power grid in the period according to the newly increased power quantity.
2. An electricity vending method based on the distributed photovoltaic electricity vending system of claim 1, comprising:
step S1, an electricity selling side node initiates electricity selling transaction, and an intelligent contract for photovoltaic power online transaction settlement is established with an electricity purchasing side node;
step S2, deploying the intelligent contract into a local database of each node on a blockchain;
s3, metering the Internet surfing electric quantity for transaction through an electric quantity metering node, and uploading after encryption;
s4, collecting uplink transaction electric quantity by the electricity purchasing side node, and performing photovoltaic settlement after triggering the intelligent contract to obtain settlement data; after signature verification and consensus verification are carried out on the settlement data by all nodes including the electricity purchasing side node and the electricity selling side node, the electricity purchasing side node pays electricity fees 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 CN111178887A (en) 2020-05-19
CN111178887B true 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)

Families Citing this family (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
CN112116309A (en) * 2020-08-10 2020-12-22 国网河北省电力有限公司沧州供电分公司 User electricity consumption data acquisition method based on block chain
CN112214552A (en) * 2020-11-05 2021-01-12 深圳市瀚兰区块链地产有限公司 Construction engineering construction intelligent contract execution method and device and electronic equipment
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108364203A (en) * 2018-02-07 2018-08-03 深圳壹账通智能科技有限公司 Electronic invoice generation method, system, computer equipment and storage medium
CN110298610A (en) * 2019-05-05 2019-10-01 江苏一乙生态农业科技有限公司 A kind of Express Logistics block catenary system and its operation method

Family Cites Families (5)

* 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
US11257073B2 (en) * 2018-01-31 2022-02-22 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
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108364203A (en) * 2018-02-07 2018-08-03 深圳壹账通智能科技有限公司 Electronic invoice generation method, system, computer equipment and storage medium
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.《Van-Cam NGUYEN Pham Hoai Luan Nara Institute of Science and Technology》.2019,第74-77页. *
熊涛.S公司供应商管理改进研究.《中国优秀硕士学位论文全文数据库 经济与管理科学辑》.2018,(第8期),第J152-247页. *

Also Published As

Publication number Publication date
CN111178887A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111178887B (en) Distributed photovoltaic power generation and selling system and method based on block chain
CN111177758A (en) Distributed photovoltaic settlement method and system based on block chain
CN107909358B (en) Energy settlement method, device and system
CN107240002B (en) Electric power transaction method and device and micro-grid system
US11150271B2 (en) Method or system for management of a device for energy consumption by applying blockchain protocol
CN107423945B (en) Intelligent energy transaction management system and method based on block chain technology
CN110717832B (en) Clean energy trading method, system, device and storage medium based on block chain
CN112488778A (en) Bill processing method and related device
CN109658067A (en) A kind of power engineering project control platform and system
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
CN111047440A (en) Distributed shared charging pile transaction system and method based on block chain
CN112163954A (en) Transaction method and device based on block chain
CN112200646A (en) Material contract fund payment approval management system and method
CN113065960A (en) Transaction system based on block chain
CN112487491A (en) Control method and related device for block chain system
CN113129087A (en) Electronic invoice management method and system based on enterprise chain code
US20240161126A1 (en) Methods and apparatus for dlt-enabled digitized tokens for carbon credits
CN115796779A (en) Park source network load storage regulation and control service system and method based on block chain
CN113935836B (en) Cross-border payment method, system, equipment and medium based on Fabric alliance chain
CN115760392A (en) Green certificate transaction system based on block chain and chain loading method thereof
CN114511324A (en) Method, system, network device and storage medium for managing zero-work economic service
CN113763146A (en) Self-service tax system
CN111144958A (en) Block chain-based electronic invoice issuing method, device and 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
GR01 Patent grant
GR01 Patent grant