CN112200533A - Block chain-based consumption voucher full-life-cycle management method and device - Google Patents
Block chain-based consumption voucher full-life-cycle management method and device Download PDFInfo
- Publication number
- CN112200533A CN112200533A CN202010999996.7A CN202010999996A CN112200533A CN 112200533 A CN112200533 A CN 112200533A CN 202010999996 A CN202010999996 A CN 202010999996A CN 112200533 A CN112200533 A CN 112200533A
- Authority
- CN
- China
- Prior art keywords
- transaction
- renewable energy
- voucher
- hash value
- power consumption
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000007726 management method Methods 0.000 title claims abstract description 24
- 238000005265 energy consumption Methods 0.000 claims abstract description 23
- 238000004806 packaging method and process Methods 0.000 claims abstract description 11
- 238000010521 absorption reaction Methods 0.000 claims description 18
- 238000004364 calculation method Methods 0.000 claims description 17
- 238000000034 method Methods 0.000 claims description 15
- 230000007246 mechanism Effects 0.000 claims description 12
- 238000012937 correction Methods 0.000 claims description 7
- 238000012795 verification Methods 0.000 claims description 5
- 238000004519 manufacturing process Methods 0.000 claims description 4
- 238000007789 sealing Methods 0.000 claims description 3
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000003860 storage Methods 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000010248 power generation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL 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
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS 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
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Tourism & Hospitality (AREA)
- Computer Security & Cryptography (AREA)
- Entrepreneurship & Innovation (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Operations Research (AREA)
- Technology Law (AREA)
- Development Economics (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Computing Systems (AREA)
- Primary Health Care (AREA)
- Quality & Reliability (AREA)
- Bioethics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a block chain-based consumption certificate full life cycle management method and a block chain-based consumption certificate full life cycle management device.A renewable energy consumption responsibility weight system generates 1 certificate principle according to 1MW.h renewable energy electric quantity, generates a renewable energy power consumption certificate, calculates a hash value of the consumption certificate, and links up a chain and packs the chain into blocks after electronic signature; after the holder of the renewable energy power consumption certificate conducts certificate transaction in the responsibility weight system, hash operation is conducted on transaction information, secondary hash operation is conducted by combining a chain-linking hash value of the previous certificate transaction, and chain linking and packaging are conducted; the renewable energy power consumption voucher full life cycle information is stored in the main database, and a consumption voucher holder can trace the source of the renewable energy power consumption voucher according to the consumption voucher number. The invention realizes the mutual recognition and mutual trust of the accounting of the renewable energy consumption based on the block chain, and the account is real, credible and non-repudiation.
Description
Technical Field
The invention relates to a block chain-based consumption voucher full-life cycle management method and device, and belongs to the technical field of electric power transaction.
Background
The file of the modified energy source [2019]807 requires that the proportion of renewable energy source power which is required to be achieved according to the provincial administrative region to the power consumption regulations is shared by the power selling enterprises and the power users to take over the responsibility. In order to complete the weight of the responsibility for consumption, the principal of the responsibility for consumption should take the actual consumption of the renewable energy as the principal, and at the same time, the principal is allowed to voluntarily subscribe the green power certificate and purchase the consumption of the annual consumption index of other principal for the excess completion as the auxiliary means for completing the responsibility for consumption.
At present, the identity information of the electric power commodity is not sound, and most buyers only know the electric quantity information consumed by themselves and cannot know the information such as the type and the source of the electric quantity. Therefore, on one hand, the market transparency is poor, and the consumption responsibility main body cannot check whether the actually consumed renewable energy electric quantity is real and credible; on the other hand, the over-consumption market constructed by the 807 has no clear subject matter, and the over-consumption transaction cannot be carried out.
Therefore, public and transparent renewable energy power commodity identity information must be established, scheme guidance and technical support are provided for excess consumption market organization and renewable energy consumption responsibility weight system construction, market transparency of the power transaction industry is improved, credit investigation cost is reduced, steady development of excess consumption transaction is guaranteed, and a basis is provided for maintenance of a consumption responsibility main body and assessment of consumption responsibility completion conditions of related departments.
Disclosure of Invention
The invention aims to provide a block chain-based consumption certificate full life cycle management method and a block chain-based consumption certificate full life cycle management device, which are used for establishing accurate and reliable identity information, namely a renewable energy power consumption certificate, for renewable energy products and providing scheme guidance for developing renewable energy excess consumption market transactions.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
the invention provides a block chain-based consumption voucher full life cycle management method, which comprises the following steps:
generating a renewable energy power consumption voucher;
the renewable energy power consumption voucher is used as a target object of the transaction to carry out the transaction;
and tracing the renewable energy power consumption voucher information and the transaction information based on the block chain.
Further, the generating of the renewable energy power consumption certificate includes:
generating 1 voucher according to the physical settlement information or the actual settlement document of the renewable energy consumption responsibility weight system and the principle of generating 1 voucher according to the electric quantity of 1MW.h renewable energy, generating a renewable energy power consumption voucher and storing the voucher information into a main database;
carrying out Hash operation on the renewable energy power consumption voucher information to form a consumption voucher Hash value;
chaining the hash value of the absorption certificate after electronic signature;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
Furthermore, the renewable energy power consumption voucher is in a coding form, and the renewable energy power consumption voucher codes sequentially from left to right:
the electric quantity type adopts 2-bit digital coding: wind power 11, photovoltaic 12 and hydroelectric 13;
the transaction sequence number adopts 18-bit alphanumeric combination and is automatically generated during transaction;
the transaction achievement time adopts 8-digit combination, 4 digits are adopted according to the year, 2 digits are adopted in the month, and 2 digits are adopted in the day;
the production province adopts 5-bit letter combination and uses the service scene coding of the electric power trading platform;
the consumption province adopts 5-bit letter combination and uses the service scene coding of the electric power trading platform;
the number information of the original acquirers of the voucher adopts 16-bit alphanumeric combination and uses the code of a market main body when the market main body is registered on the electric power trading platform;
and the combination of (a) and (b),
the voucher serial number adopts 6 digits;
each renewable energy power consumption voucher corresponds to a consumption voucher subject name.
Further, the trading the renewable energy power consumption voucher as a target of the trading includes:
the holder of the renewable energy power consumption voucher carries out consumption voucher transaction in the renewable energy consumption responsibility weight system;
carrying out Hash operation on the name of a purchaser and a seller, the code of the purchaser and the seller, the transaction achieving time, the transaction mode, the transaction type and the transaction sequence number of the transaction information of the renewable energy power consumption voucher;
performing secondary hash operation on the hash operation result and the uplink hash value of the previous transaction of the absorption certificate;
performing electronic signature on the secondary hash value, and taking the uplink as the uplink hash value of the transaction of the absorption certificate;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
Further, the uplink hash value of the first transaction of the renewable energy power consumption voucher is a result of performing a second hash operation on the hash value of the consumption voucher and the hash value of the first transaction information of the consumption voucher.
Furthermore, the method also comprises the following steps of,
and after the transaction is finished, storing the transaction information into a main database.
Further, tracing the renewable energy power consumption voucher information and the transaction information based on the blockchain includes:
acquiring renewable energy power consumption voucher information needing to be traced from a master database and all transaction information carried out by the renewable energy power consumption voucher;
calculating the second hash value of the consumption voucher and the hash value of the first transaction information;
comparing the calculated secondary hash value with the hash value on the chain after the transaction is completed;
and according to the comparison result, tracing the renewable energy power consumption voucher information and the transaction information.
Further, the tracing of the renewable energy power consumption voucher information and the transaction information is continuously performed according to the comparison result, including:
if the hash values are the same, performing hash operation of the next transaction, namely performing secondary hash operation on the calculated secondary hash value and the hash value of the next transaction information; analogizing in sequence until all transaction information is calculated, comparing the finally calculated secondary hash value with the last transaction uplink hash value of the consumption certificate stored in the block chain, and finishing the tracing of the renewable energy power consumption certificate;
if the hash values are different, the transaction information calculated at this time is tampered, the transaction information of the sub-database is replaced by the tampered transaction information in the main database, secondary hash calculation is carried out, comparison is carried out on the transaction information and the hash values on the chain, and if the results are the same, tampering correction is finished; and performing hash operation of the next transaction until all transaction information is calculated, and completing the tracing of the renewable energy power consumption voucher.
Further, the method also comprises the following steps:
setting a timing task for the renewable energy power consumption certificate;
the timing task is as follows: and when the renewable energy power consumption voucher reaches the consumption responsibility weight assessment period, the renewable energy power consumption voucher is automatically transferred to a verification and cancellation account for sealing and storing.
Further, the method also comprises the following steps:
when the timing task is triggered, carrying out hash operation on the transfer-out time of the consumption certificate, the transfer-in account, the name of the holder of the consumption certificate and the code of the holder of the consumption certificate;
performing secondary hash calculation on the obtained hash value and the uplink hash value of the latest transaction of the renewable energy power consumption voucher;
and linking the secondary hash calculation result to store the certificate.
In another aspect, the present invention further provides a block chain-based consumption voucher full-life cycle management apparatus, including:
the generating module is used for generating a renewable energy power consumption voucher;
the transaction module is used for performing transaction by taking the renewable energy power consumption voucher as a target object of the transaction;
and the number of the first and second groups,
and the source tracing module is used for tracing the renewable energy power consumption voucher information and the transaction information based on the block chain.
Further, the generating module is specifically configured to,
generating 1 voucher according to the physical settlement information or the actual settlement document of the renewable energy consumption responsibility weight system and the principle of generating 1 voucher according to the electric quantity of 1MW.h renewable energy, generating a renewable energy power consumption voucher and storing the voucher information into a main database;
carrying out Hash operation on the renewable energy power consumption voucher information to form a consumption voucher Hash value;
chaining the hash value of the absorption certificate after electronic signature;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
Further, the transaction module is specifically configured to,
carrying out consumption voucher transaction in a renewable energy consumption responsibility weight system;
carrying out Hash operation on the name of a purchaser and a seller, the code of the purchaser and the seller, the transaction achieving time, the transaction mode, the transaction type and the transaction sequence number of the transaction information of the renewable energy power consumption voucher;
performing secondary hash operation on the hash operation result and the uplink hash value of the previous transaction of the absorption certificate;
performing electronic signature on the secondary hash value, and taking the uplink as the uplink hash value of the transaction of the absorption certificate;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
Further, the tracing module is specifically configured to,
acquiring renewable energy power consumption voucher information needing to be traced and all transaction information carried out by the renewable energy power consumption voucher;
calculating the second hash value of the consumption voucher and the hash value of the first transaction information;
comparing the calculated secondary hash value with the hash value on the chain after the transaction is completed;
and according to the comparison result, tracing the renewable energy power consumption voucher information and the transaction information.
Further, the tracing module is further configured to,
if the hash value comparison result is the same, performing hash operation of the next transaction, namely performing secondary hash operation on the calculated secondary hash value and the hash value of the next transaction information; analogizing in sequence until all transaction information is calculated, comparing the finally calculated secondary hash value with the last transaction uplink hash value of the consumption certificate stored in the block chain, and finishing the tracing of the renewable energy power consumption certificate;
if the hash value comparison result is different, the transaction information calculated this time is tampered, the transaction information of the sub-database is replaced by the tampered transaction information in the main database, secondary hash calculation is carried out, the secondary hash calculation is compared with the hash value on the chain, and if the result is the same, tampering correction is completed; and performing hash operation of the next transaction until all transaction information is calculated, and completing the tracing of the renewable energy power consumption voucher.
The invention achieves the following beneficial effects:
the invention provides a block chain-based consumption certificate full life cycle management method and device, which are used for establishing accurate and reliable identity information, namely a renewable energy power consumption certificate, for a renewable energy product, so that credit investigation cost of the product and an enterprise in transaction is reduced. The block chain has the tamper-proof characteristic, the mutual recognition and mutual trust of the accounting of the consumption of the renewable energy can be realized, accounts are real, credible and non-repudiatable, particularly for local power grids and incremental distribution networks, the electric quantity information of the renewable energy cannot be collected, and the data right is confirmed through the block chain; the traceability characteristic of the block chain can realize the traceability record of the full life cycle of the consumption electric quantity of the renewable energy source, on one hand, the credibility of the deposit certificate is enhanced, and on the other hand, the phenomenon of repeated transaction arbitrage of the excess consumption quantity can be effectively prevented.
The identity information of the non-falsifiable power consumption voucher is established through the block chain technology and serves as a bottom technology support platform for construction, and scheme guidance is provided for development of market trading of renewable energy excess consumption.
Drawings
FIG. 1 is a flow chart of the renewable energy power consumption voucher generation according to the present invention;
FIG. 2 is a flow chart of a renewable energy power consumption voucher transaction according to the present invention;
fig. 3 is a tracing flow chart of the renewable energy power consumption voucher in the invention.
Detailed Description
The invention is further described below. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The invention provides a block chain-based consumption voucher full life cycle management method, which comprises the following steps:
generating a renewable energy power consumption voucher;
the renewable energy power consumption voucher is used as a target object of the transaction to carry out the transaction;
and tracing the renewable energy power consumption voucher information and the transaction information based on the block chain.
In particular, the method comprises the following steps of,
generating a renewable energy power consumption voucher, comprising:
the renewable energy consumption responsibility weight system generates 1 voucher according to the principle that 1MW.h renewable energy electric quantity generates 1 voucher according to physical settlement information or actual settlement receipts (an electric charge settlement receipt, an electric charge settlement invoice and an electric charge settlement bank transfer certificate) of the system, so as to generate the renewable energy electric consumption voucher. The renewable energy consumption responsibility weight system mainly carries out excess consumption transaction and green certificate transaction.
The voucher information includes, but is not limited to, a consumption voucher body name, an electric quantity type, a transaction sequence number, a transaction fulfillment time, a production province, a consumption province, and voucher original acquirer number information. The name of the consumption voucher main body is the number of the consumption main body in the renewable energy consumption responsibility weight system. The absorption body includes: electricity vendors and electricity consumers.
The credentials are represented in encoded form. The encoding rules are shown in table 1.
TABLE 1 renewable energy consumption voucher coding rule Table
In the table, the market body includes: power generation enterprises, power selling companies, and power consumers.
The renewable energy consumption responsibility weighting system stores the generated renewable energy power consumption voucher information in a main database, performs hash operation on the renewable energy power consumption voucher information to form a consumption voucher hash value, and links the consumption voucher hash value after electronic signature. The block chain module adopts a deleted Proof of authority (DPoS) consensus mechanism to pack and block. The renewable energy power consumption voucher generation process is shown in fig. 1.
In particular, the method comprises the following steps of,
trade with renewable energy power consumption voucher as the subject matter of trade, including:
the holder of the renewable energy power consumption voucher carries out consumption voucher transaction in the renewable energy consumption responsibility weight system, and after the transaction is completed, the transaction information is stored in the main database.
The transaction information comprises the name of the buyer, the code of the buyer, the transaction achievement time, the transaction mode, the transaction type and the transaction serial number.
And carrying out Hash operation on the name of a buyer and a seller, the code of the buyer and the seller, the transaction achieving time, the transaction mode, the transaction type and the transaction sequence number of the transaction information of the renewable energy power consumption voucher, and carrying out secondary Hash operation on the operation result by combining the uplink Hash value of the previous consumption voucher transaction.
And the consumption certificate holder electronically signs the secondary hash value and then uplinks the secondary hash value. The block chain module adopts a deleted Proof of authority (DPoS) consensus mechanism to pack and block. The renewable energy power consumption voucher transaction process is shown in fig. 2.
It should be noted that the uplink hash value of the first transaction of the absorption certificate is the second hash result of the hash value of the absorption certificate and the hash value of the first transaction information.
Before the transaction begins, the renewable energy consumption responsibility weighting system firstly carries out tamper-proof verification on the renewable energy power consumption voucher information and the transaction information in the main database, the verification is error-free, and the renewable energy consumption voucher transaction can be developed.
In particular, the method comprises the following steps of,
tracing the renewable energy power consumption voucher information and the transaction information based on the block chain, comprising:
the full life cycle information of the renewable energy power consumption voucher is stored in the main database, and a consumption voucher holder or business personnel can trace the source of the renewable energy power consumption voucher according to the consumption voucher number.
In order to ensure the accuracy of the voucher full life cycle information in the master database, hash calculation can be performed on the consumed voucher information and the transaction information used for hash calculation in the master database according to the manner shown in fig. 3, which includes:
acquiring consumption certificate information required to be traced from a master database and all transaction information carried out by the consumption certificate;
calculating the two-time hash value of the consumption voucher and the hash value of the first transaction information according to the transaction achievement time;
comparing the calculated secondary hash value with the hash value on the chain after the transaction is completed;
if the hash values are the same, performing hash operation of the next transaction, namely performing secondary hash operation on the calculated secondary hash value and the hash value of the next transaction information; analogizing in sequence until all transaction information is calculated, comparing the finally calculated secondary hash value with the last transaction uplink hash value of the consumption certificate stored in the block chain, and finishing the tracing of the renewable energy power consumption certificate;
and when the hash values are different, the fact that the consumption voucher information or the transaction information in the renewable energy consumption responsibility weight system is tampered is proved. At this time, the tampered transaction information in the main database needs to be replaced by the transaction information in the sub-database, secondary hash calculation is performed, comparison is performed with the hash value on the link, and if the result is the same, tampering correction is completed. And performing hash operation of the next transaction until all transaction information is calculated, and completing the tracing of the renewable energy power consumption voucher.
Taking fig. 3 as an example, when the hash value (0,1) is the same as the hash value on the corresponding chain, and the hash value (0,1,2) is different from the hash value on the chain, it is proved that the credential transfer transaction information of the 2 nd time is falsified. At the moment, the renewable energy consumption responsibility weighting system replaces the 2 nd voucher transfer transaction information in the main database with the 2 nd voucher transfer transaction information in the sub-database, performs secondary hash calculation to obtain hash values (0,1 and 2), compares the hash values with the hash values on the chain, and finishes tampering correction if the results are the same.
Specifically, the method further comprises the following steps of verifying and selling the renewable energy power consumption certificate:
when the renewable energy power consumption voucher is generated, setting a timing task for the consumption voucher in a service system: and automatically transferring the whole (consumption responsibility weight assessment period) to a specified account (verification account) for sealing when x is x days of the next year x months for generating the consumption voucher.
And when the timed task is triggered, carrying out hash operation on the transfer-out time of the consumption certificate, the transfer-in account, the name of the holder of the consumption certificate and the code of the holder of the consumption certificate, carrying out secondary hash calculation on the obtained hash value in combination with the uplink hash value of the latest transaction of the consumption certificate, and linking the final result into a chain for storage.
The invention also provides a block chain-based consumption voucher full life cycle management device, which comprises:
the generating module is used for generating a renewable energy power consumption voucher;
the transaction module is used for performing transaction by taking the renewable energy power consumption voucher as a target object of the transaction;
and the number of the first and second groups,
and the source tracing module is used for tracing the renewable energy power consumption voucher information and the transaction information based on the block chain.
The generating module is specifically configured to,
generating 1 voucher according to the physical settlement information or the actual settlement document of the renewable energy consumption responsibility weight system and the principle of generating 1 voucher according to the electric quantity of 1MW.h renewable energy, generating a renewable energy power consumption voucher and storing the voucher information into a main database;
carrying out Hash operation on the renewable energy power consumption voucher information to form a consumption voucher Hash value;
chaining the hash value of the absorption certificate after electronic signature;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
The transaction module is specifically configured to,
carrying out consumption voucher transaction in a renewable energy consumption responsibility weight system;
carrying out Hash operation on the name of a purchaser and a seller, the code of the purchaser and the seller, the transaction achieving time, the transaction mode, the transaction type and the transaction sequence number of the transaction information of the renewable energy power consumption voucher;
performing secondary hash operation on the hash operation result and the uplink hash value of the previous transaction of the absorption certificate;
performing electronic signature on the secondary hash value, and taking the uplink as the uplink hash value of the transaction of the absorption certificate;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
Further, the tracing module is specifically configured to,
acquiring renewable energy power consumption voucher information needing to be traced and all transaction information carried out by the renewable energy power consumption voucher;
calculating the second hash value of the consumption voucher and the hash value of the first transaction information;
comparing the calculated secondary hash value with the hash value on the chain after the transaction is completed;
and according to the comparison result, tracing the renewable energy power consumption voucher information and the transaction information.
The tracing module is also used for tracing the source,
if the hash value comparison result is the same, performing hash operation of the next transaction, namely performing secondary hash operation on the calculated secondary hash value and the hash value of the next transaction information; analogizing in sequence until all transaction information is calculated, comparing the finally calculated secondary hash value with the last transaction uplink hash value of the consumption certificate stored in the block chain, and finishing the tracing of the renewable energy power consumption certificate;
if the hash value comparison result is different, the transaction information calculated this time is tampered, the transaction information of the sub-database is replaced by the tampered transaction information in the main database, secondary hash calculation is carried out, the secondary hash calculation is compared with the hash value on the chain, and if the result is the same, tampering correction is completed; and performing hash operation of the next transaction until all transaction information is calculated, and completing the tracing of the renewable energy power consumption voucher.
It is to be noted that the apparatus embodiment corresponds to the method embodiment, and the implementation manners of the method embodiment are all applicable to the apparatus embodiment and can achieve the same or similar technical effects, so that the details are not described herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (15)
1. A block chain-based consumption voucher full-life-cycle management method is characterized by comprising the following steps:
generating a renewable energy power consumption voucher;
the renewable energy power consumption voucher is used as a target object of the transaction to carry out the transaction;
and tracing the renewable energy power consumption voucher information and the transaction information based on the block chain.
2. The block chain based consumption certificate full life cycle management method according to claim 1, wherein the generating a renewable energy power consumption certificate comprises:
generating 1 voucher according to the physical settlement information or the actual settlement document of the renewable energy consumption responsibility weight system and the principle of generating 1 voucher according to the electric quantity of 1MW.h renewable energy, generating a renewable energy power consumption voucher and storing the voucher information into a main database;
carrying out Hash operation on the renewable energy power consumption voucher information to form a consumption voucher Hash value;
chaining the hash value of the absorption certificate after electronic signature;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
3. The block chain-based consumption certificate full-life-cycle management method according to claim 2, wherein the renewable energy power consumption certificate is in a coded form, and the renewable energy power consumption certificate codes sequentially from left to right:
the electric quantity type adopts 2-bit digital coding: wind power 11, photovoltaic 12 and hydroelectric 13;
the transaction sequence number adopts 18-bit alphanumeric combination and is automatically generated during transaction;
the transaction achievement time adopts 8-digit combination, 4 digits are adopted according to the year, 2 digits are adopted in the month, and 2 digits are adopted in the day;
the production province adopts 5-bit letter combination and uses the service scene coding of the electric power trading platform;
the consumption province adopts 5-bit letter combination and uses the service scene coding of the electric power trading platform;
the number information of the original acquirers of the voucher adopts 16-bit alphanumeric combination and uses the code of a market main body when the market main body is registered on the electric power trading platform;
and the combination of (a) and (b),
the voucher serial number adopts 6 digits;
each renewable energy power consumption voucher corresponds to a consumption voucher subject name.
4. The block chain based consumption certificate full life cycle management method according to claim 1, wherein the trading the renewable energy power consumption certificate as a target object of the trading comprises:
the holder of the renewable energy power consumption voucher carries out consumption voucher transaction in the renewable energy consumption responsibility weight system;
carrying out Hash operation on the name of a purchaser and a seller, the code of the purchaser and the seller, the transaction achieving time, the transaction mode, the transaction type and the transaction sequence number of the transaction information of the renewable energy power consumption voucher;
performing secondary hash operation on the hash operation result and the uplink hash value of the previous transaction of the absorption certificate;
performing electronic signature on the secondary hash value, and taking the uplink as the uplink hash value of the transaction of the absorption certificate;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
5. The method as claimed in claim 4, wherein the uplink hash value of the first transaction of the renewable energy power consumption voucher is a result of performing a second hash operation on the hash value of the consumption voucher and the hash value of the first consumption voucher transaction information.
6. The block chain based consumption certificate full life cycle management method according to claim 4, further comprising,
and after the transaction is finished, storing the transaction information into a main database.
7. The block chain-based consumption voucher full-life cycle management method according to claim 1, wherein the tracing the renewable energy power consumption voucher information and the transaction information based on the block chain comprises the following steps:
acquiring renewable energy power consumption voucher information needing to be traced from a master database and all transaction information carried out by the renewable energy power consumption voucher;
calculating the second hash value of the consumption voucher and the hash value of the first transaction information;
comparing the calculated secondary hash value with the hash value on the chain after the transaction is completed;
and according to the comparison result, tracing the renewable energy power consumption voucher information and the transaction information.
8. The block chain-based consumption voucher full-life cycle management method according to claim 7, wherein the continuing tracing the renewable energy power consumption voucher information and the transaction information according to the comparison result comprises:
if the hash values are the same, performing hash operation of the next transaction, namely performing secondary hash operation on the calculated secondary hash value and the hash value of the next transaction information; analogizing in sequence until all transaction information is calculated, comparing the finally calculated secondary hash value with the last transaction uplink hash value of the consumption certificate stored in the block chain, and finishing the tracing of the renewable energy power consumption certificate;
if the hash values are different, the transaction information calculated at this time is tampered, the transaction information of the sub-database is replaced by the tampered transaction information in the main database, secondary hash calculation is carried out, comparison is carried out on the transaction information and the hash values on the chain, and if the results are the same, tampering correction is finished; and performing hash operation of the next transaction until all transaction information is calculated, and completing the tracing of the renewable energy power consumption voucher.
9. The block chain-based consumption certificate full-life-cycle management method according to claim 1, further comprising:
setting a timing task for the renewable energy power consumption certificate;
the timing task is as follows: and when the renewable energy power consumption voucher reaches the consumption responsibility weight assessment period, the renewable energy power consumption voucher is automatically transferred to a verification and cancellation account for sealing and storing.
10. The block chain-based consumption certificate full-life cycle management method according to claim 9, further comprising:
when the timing task is triggered, carrying out hash operation on the transfer-out time of the consumption certificate, the transfer-in account, the name of the holder of the consumption certificate and the code of the holder of the consumption certificate;
performing secondary hash calculation on the obtained hash value and the uplink hash value of the latest transaction of the renewable energy power consumption voucher;
and linking the secondary hash calculation result to store the certificate.
11. A block chain based consumption voucher full lifecycle management apparatus, comprising:
the generating module is used for generating a renewable energy power consumption voucher;
the transaction module is used for performing transaction by taking the renewable energy power consumption voucher as a target object of the transaction;
and the number of the first and second groups,
and the source tracing module is used for tracing the renewable energy power consumption voucher information and the transaction information based on the block chain.
12. The apparatus according to claim 11, wherein the generating module is specifically configured to,
generating 1 voucher according to the physical settlement information or the actual settlement document of the renewable energy consumption responsibility weight system and the principle of generating 1 voucher according to the electric quantity of 1MW.h renewable energy, generating a renewable energy power consumption voucher and storing the voucher information into a main database;
carrying out Hash operation on the renewable energy power consumption voucher information to form a consumption voucher Hash value;
chaining the hash value of the absorption certificate after electronic signature;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
13. The block chain-based consumption certificate full-life cycle management apparatus according to claim 11, wherein the transaction module is specifically configured to,
carrying out consumption voucher transaction in a renewable energy consumption responsibility weight system;
carrying out Hash operation on the name of a purchaser and a seller, the code of the purchaser and the seller, the transaction achieving time, the transaction mode, the transaction type and the transaction sequence number of the transaction information of the renewable energy power consumption voucher;
performing secondary hash operation on the hash operation result and the uplink hash value of the previous transaction of the absorption certificate;
performing electronic signature on the secondary hash value, and taking the uplink as the uplink hash value of the transaction of the absorption certificate;
and packaging the uplink hash value into blocks by adopting a proxy rights and interests certification consensus mechanism.
14. The apparatus according to claim 11, wherein the tracing module is specifically configured to,
acquiring renewable energy power consumption voucher information needing to be traced and all transaction information carried out by the renewable energy power consumption voucher;
calculating the second hash value of the consumption voucher and the hash value of the first transaction information;
comparing the calculated secondary hash value with the hash value on the chain after the transaction is completed;
and according to the comparison result, tracing the renewable energy power consumption voucher information and the transaction information.
15. The block chain-based consumption certificate full-life cycle management apparatus according to claim 14, wherein the tracing module is further configured to,
if the hash value comparison result is the same, performing hash operation of the next transaction, namely performing secondary hash operation on the calculated secondary hash value and the hash value of the next transaction information; analogizing in sequence until all transaction information is calculated, comparing the finally calculated secondary hash value with the last transaction uplink hash value of the consumption certificate stored in the block chain, and finishing the tracing of the renewable energy power consumption certificate;
if the hash value comparison result is different, the transaction information calculated this time is tampered, the transaction information of the sub-database is replaced by the tampered transaction information in the main database, secondary hash calculation is carried out, the secondary hash calculation is compared with the hash value on the chain, and if the result is the same, tampering correction is completed; and performing hash operation of the next transaction until all transaction information is calculated, and completing the tracing of the renewable energy power consumption voucher.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010999996.7A CN112200533A (en) | 2020-09-22 | 2020-09-22 | Block chain-based consumption voucher full-life-cycle management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010999996.7A CN112200533A (en) | 2020-09-22 | 2020-09-22 | Block chain-based consumption voucher full-life-cycle management method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112200533A true CN112200533A (en) | 2021-01-08 |
Family
ID=74015881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010999996.7A Pending CN112200533A (en) | 2020-09-22 | 2020-09-22 | Block chain-based consumption voucher full-life-cycle management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112200533A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113222594A (en) * | 2021-04-09 | 2021-08-06 | 四川中电启明星信息技术有限公司 | Transaction method of renewable energy power excess consumption voucher based on block chain |
CN113240380A (en) * | 2021-04-13 | 2021-08-10 | 国网河北省电力有限公司沧州供电分公司 | System and method for distributed power management |
CN115277108A (en) * | 2022-07-05 | 2022-11-01 | 成都安恒信息技术有限公司 | Method and system for defending decentralized application race attack |
CN115983875A (en) * | 2023-03-16 | 2023-04-18 | 浙江华云信息科技有限公司 | Method and device for tracing rights and interests value data in green environment |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107316239A (en) * | 2017-07-14 | 2017-11-03 | 众安信息技术服务有限公司 | A kind of authentification of message and source tracing method and system based on block chain |
TWI608434B (en) * | 2016-12-20 | 2017-12-11 | Chunghwa Telecom Co Ltd | Decentralized electronic transaction record method and system with traceability verification mechanism |
CN107688944A (en) * | 2017-07-21 | 2018-02-13 | 杭州云象网络技术有限公司 | A kind of power system method of commerce based on block chain |
US20180121923A1 (en) * | 2015-06-18 | 2018-05-03 | Coinplug, Inc. | System and method for verifying forgery of financial institution proof documents on basis of block chain |
CN109086630A (en) * | 2018-07-31 | 2018-12-25 | 温州市图盛科技有限公司 | A kind of power information tracing method based on block chain |
CN110210970A (en) * | 2019-05-30 | 2019-09-06 | 国网河北省电力有限公司经济技术研究院 | Energy method of commerce, device and terminal device based on block chain |
JP6630425B1 (en) * | 2018-12-03 | 2020-01-15 | みんな電力株式会社 | Power trading history generation system |
KR102068250B1 (en) * | 2019-04-10 | 2020-01-20 | 이태식 | Asset split trading management program using smart contract of block chain network |
CN110969447A (en) * | 2019-11-25 | 2020-04-07 | 江苏省农业科学院 | Product depth traceability system based on block chain technology |
CN111047320A (en) * | 2019-12-19 | 2020-04-21 | 山东爱城市网信息技术有限公司 | Solar power transaction method, device and medium based on block chain |
CN111105277A (en) * | 2019-12-25 | 2020-05-05 | ***股份有限公司 | Block chain state change transaction tracing method and device |
CN111382463A (en) * | 2020-04-02 | 2020-07-07 | 中国工商银行股份有限公司 | Block chain system and method based on stream data |
-
2020
- 2020-09-22 CN CN202010999996.7A patent/CN112200533A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180121923A1 (en) * | 2015-06-18 | 2018-05-03 | Coinplug, Inc. | System and method for verifying forgery of financial institution proof documents on basis of block chain |
TWI608434B (en) * | 2016-12-20 | 2017-12-11 | Chunghwa Telecom Co Ltd | Decentralized electronic transaction record method and system with traceability verification mechanism |
CN107316239A (en) * | 2017-07-14 | 2017-11-03 | 众安信息技术服务有限公司 | A kind of authentification of message and source tracing method and system based on block chain |
CN107688944A (en) * | 2017-07-21 | 2018-02-13 | 杭州云象网络技术有限公司 | A kind of power system method of commerce based on block chain |
CN109086630A (en) * | 2018-07-31 | 2018-12-25 | 温州市图盛科技有限公司 | A kind of power information tracing method based on block chain |
JP6630425B1 (en) * | 2018-12-03 | 2020-01-15 | みんな電力株式会社 | Power trading history generation system |
KR102068250B1 (en) * | 2019-04-10 | 2020-01-20 | 이태식 | Asset split trading management program using smart contract of block chain network |
CN110210970A (en) * | 2019-05-30 | 2019-09-06 | 国网河北省电力有限公司经济技术研究院 | Energy method of commerce, device and terminal device based on block chain |
CN110969447A (en) * | 2019-11-25 | 2020-04-07 | 江苏省农业科学院 | Product depth traceability system based on block chain technology |
CN111047320A (en) * | 2019-12-19 | 2020-04-21 | 山东爱城市网信息技术有限公司 | Solar power transaction method, device and medium based on block chain |
CN111105277A (en) * | 2019-12-25 | 2020-05-05 | ***股份有限公司 | Block chain state change transaction tracing method and device |
CN111382463A (en) * | 2020-04-02 | 2020-07-07 | 中国工商银行股份有限公司 | Block chain system and method based on stream data |
Non-Patent Citations (1)
Title |
---|
张显 等: "基于区块链的可再生能源超额消纳量交易体系", 《中国电力》, pages 60 - 70 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113222594A (en) * | 2021-04-09 | 2021-08-06 | 四川中电启明星信息技术有限公司 | Transaction method of renewable energy power excess consumption voucher based on block chain |
CN113222594B (en) * | 2021-04-09 | 2024-03-19 | 四川中电启明星信息技术有限公司 | Transaction method of renewable energy power excess consumption certificate based on blockchain |
CN113240380A (en) * | 2021-04-13 | 2021-08-10 | 国网河北省电力有限公司沧州供电分公司 | System and method for distributed power management |
CN115277108A (en) * | 2022-07-05 | 2022-11-01 | 成都安恒信息技术有限公司 | Method and system for defending decentralized application race attack |
CN115277108B (en) * | 2022-07-05 | 2024-06-11 | 成都安恒信息技术有限公司 | Method and system for defending anti-centralised application first-aid running attack |
CN115983875A (en) * | 2023-03-16 | 2023-04-18 | 浙江华云信息科技有限公司 | Method and device for tracing rights and interests value data in green environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112200533A (en) | Block chain-based consumption voucher full-life-cycle management method and device | |
Andoni et al. | Blockchain technology in the energy sector: A systematic review of challenges and opportunities | |
CN112633780B (en) | Method for processing carbon resource based on climate chain, related device and storage medium | |
CN107426234A (en) | A kind of green electric power supply authentication mechanism based on block chain technology | |
CN116882994A (en) | Method and system for providing authenticated, auditable and immutable input for intelligent contracts | |
CN112488778A (en) | Bill processing method and related device | |
US20200051186A1 (en) | Real-time renewable energy credits | |
CN109636610B (en) | Decentralized data transaction system and method | |
CN112232813A (en) | Renewable energy power consumption voucher management method and device based on block chain | |
Cali et al. | DLT/blockchain in transactive energy use cases segmentation and standardization framework | |
CN112487491A (en) | Control method and related device for block chain system | |
Yang et al. | A double-chain blockchain with economic attributes and network constraints of prosumer transactions | |
Su et al. | A blockchain system supporting cross-border data protection and consistency verification in unified global carbon emissions trading framework | |
Hsiao | Blockchain for corporate renewable energy procurement-potential for verification of renewable energy certificates | |
Xie et al. | Electronic invoice authenticity verifying scheme based on signature recognition | |
CN110163732A (en) | A kind of processing method and processing system of accounting statement | |
KR20230020091A (en) | Method and system for ghg reduction activity verification and compensation using blockchain network and cryptocurrency | |
CN113240380A (en) | System and method for distributed power management | |
Gupta et al. | An Intrinsic Review on Securitization using Blockchain | |
US20230394599A1 (en) | Blockchain-based carbon neutral transaction processing method and system for the same | |
CN113159768B (en) | Transaction certificate storage method, device and equipment | |
CN111311256A (en) | Supply chain financial credit increasing method based on block chain | |
Kong et al. | Research on Construction and Application of Accounting Information System Based on Blockchain Technology | |
CN117455312B (en) | Intelligent power grid supply chain quality detection method and system based on block chain technology | |
Wongthongtham et al. | The costs and benefits of blockchain based peer-to-peer energy trading: an evaluation from the perspective of carbon emission and economic value |
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 |