Search

CN-122020727-A - Electric power market transaction data tracing and compliance verification method and system

CN122020727ACN 122020727 ACN122020727 ACN 122020727ACN-122020727-A

Abstract

The invention discloses a method and a system for tracing and compliance verification of electric power market transaction data, and relates to the technical field of data tracing. Dividing transaction data into public and private field sets by each node, calculating hash values of the private field sets, generating zero knowledge proof, carrying out digital signature by using a private key to form transaction data packets, carrying out parallel verification on the data packets by all network nodes, storing the data packets in a memory pool, selecting a plurality of data packets, constructing a merck tree, packaging the merck root of the merck tree, the hash values and the time stamps of the previous block into block heads, packaging the transaction data packets into block bodies, assembling candidate blocks, confirming the validity of the candidate blocks through a power grid security contract, and adding the nodes into a block chain. The invention can realize the full life cycle credible tracing and automatic combination rule supervision of the electric power market transaction data from the power generation source to the final settlement, and constructs a complete credible data chain penetrating through the links of power generation, transaction, transmission and settlement.

Inventors

  • ZHANG JING
  • ZHANG JISHENG
  • TIAN HONGJIE
  • CHEN HAIDONG
  • HE CHUNNING
  • LI QIANG
  • JING HUA
  • ZHANG CHAO
  • SHAO LIN
  • LIU TING

Assignees

  • 宁夏电力交易中心有限公司

Dates

Publication Date
20260512
Application Date
20251204

Claims (10)

  1. 1. The utility model provides a power market transaction data traceability and compliance verification method which is characterized by comprising the following steps: s1, dividing transaction data of each node in an electric power market into a public field set and a private field set, calculating a hash value of the private field set, generating a zero knowledge proof, and digitally signing the public field set, the hash value and the zero knowledge proof by using a private key to form a transaction data packet; S2, the all-network node verifies the transaction data packet in parallel, and after verification, the transaction data packet is stored in a memory pool; Step S3, selecting a plurality of transaction data packets from the memory pool, constructing a merck tree, packaging the merck root of the merck tree, the hash value of the previous block and the timestamp into a block header, packaging the transaction data packets into a block body, and assembling the block body into a candidate block; and S4, the full-network nodes confirm the validity of the candidate blocks through a power grid security contract, and each node adds the candidate blocks to the local block chain copy.
  2. 2. The method for tracing and verifying compliance of transaction data in an electric power market according to claim 1, wherein each node in the electric power market splits its transaction data into a public field set and a private field set, calculates a hash value of the private field set, generates a zero knowledge proof, digitally signs the public field set, the hash value and the zero knowledge proof using a private key, and forms a transaction data packet comprising the sub-steps of: step S11, dividing transaction data into a public field set and a privacy field set based on the sensitivity of the transaction data by each node of the power market; Step S12, calculating a hash value of the privacy field set, and generating zero knowledge proof through a zero knowledge proof algorithm; And S13, performing data splicing on the public field set, the hash value and the zero knowledge proof, and digitally signing the data by using a private key by the node to form a transaction data packet.
  3. 3. The method for tracing and compliance verification of electric power market transaction data according to claim 1, wherein the parallel verification of the transaction data packet by the all-network node, after verification, comprises the following sub-steps: step S21, broadcasting the transaction data packet to a blockchain network, and independently and parallelly verifying the transaction data packet by all network nodes; And S22, storing the verified transaction data packet into a memory pool of each node, and broadcasting the transaction data packet to the whole network.
  4. 4. The method for tracing and verifying compliance of power market transaction data according to claim 1, wherein selecting a plurality of transaction data packets from a memory pool, constructing a merck tree, encapsulating hash values and time stamps of a merck root and a previous block into a block header, encapsulating the transaction data packets into a block body, and assembling the transaction data packets into candidate blocks comprises the following sub-steps: Step S31, selecting a block-out node based on the effective contribution accumulation contribution points of all nodes, selecting a plurality of transaction data packets from a memory pool of the block-out node, and constructing a merck tree; Step S32, the hash value and the time stamp of the Merck root and the previous block of the Merck tree are added to the block header, the transaction data packet is packaged into a block body, the block body is assembled into a candidate block, and the candidate block is broadcasted to the block chain network.
  5. 5. The method for tracing and compliance verification of electric power market transaction data according to claim 1, wherein the step of the nodes of the whole network to confirm the validity of the candidate block by means of the power grid security contract, each node adding it to the local block chain copy comprises the following sub-steps: s41, invoking a verification function of a power grid security contract by a whole network node, and triggering power grid security verification; step S42, verifying the candidate blocks through a multiple security verification mechanism of the power grid security contract to generate a verification result; step S43, based on the verification result, the validity of the candidate block is confirmed, and each node adds the candidate block to the local block chain copy.
  6. 6. The utility model provides an electric power market transaction data traceability and compliance check-up system which characterized in that includes: the data packet forming module divides transaction data of each node in the electric power market into a public field set and a private field set, calculates a hash value of the private field set, generates zero knowledge proof, and digitally signs the public field set, the hash value and the zero knowledge proof by using a private key to form a transaction data packet; The data packet verification module is used for verifying the transaction data packets in parallel by the all-network nodes, and storing the transaction data packets into the memory pool after verification; The candidate block forming module is used for selecting a plurality of transaction data packets from the memory pool, constructing a merck tree, packaging the merck root of the merck tree, the hash value and the timestamp of the previous block into a block head, packaging the transaction data packets into a block body and assembling the block body into candidate blocks; And the block uplink module is used for enabling the nodes of the whole network to achieve consistency confirmation on the effectiveness of the candidate blocks through a power grid security contract, and each node is added to the local block chain copy.
  7. 7. The system for tracing and compliance verification of electric power market transaction data according to claim 6, wherein the data packet forming module comprises: The data splitting sub-module splits the transaction data into a public field set and a privacy field set based on the sensitivity of the transaction data by each node of the electric power market; the hash value and zero knowledge proof generation sub-module calculates the hash value of the privacy field set and generates zero knowledge proof through a zero knowledge proof algorithm; And the digital signature generation sub-module is used for carrying out data splicing on the public field set, the hash value and the zero knowledge proof, and the node uses the private key to carry out digital signature on the public field set, the hash value and the zero knowledge proof to form a transaction data packet.
  8. 8. The power market transaction data traceability and compliance verification system of claim 6, the data packet verification system is characterized by comprising a data packet verification module, in particular: The data packet parallel verification sub-module broadcasts the transaction data packet to the blockchain network, and all network nodes independently and parallelly verify the transaction data packet; and the data packet is put into the pool submodule, and the verified transaction data packet is stored into the memory pool of each node and is broadcast to the whole network.
  9. 9. The system for tracing and compliance verification of electric power market transaction data according to claim 6, wherein the candidate block forming module comprises: The merck tree construction submodule is used for selecting a block node based on the effective contribution accumulation contribution points of all nodes, selecting a plurality of transaction data packets from a memory pool of the block node and constructing an merck tree; And the candidate block assembling submodule packages the transaction data packet into a block body to assemble a candidate block and broadcasts the candidate block to the block chain network by the hash value and the timestamp of the merck root of the merck tree and the previous block to the block head.
  10. 10. The system for tracing and compliance verification of electric power market transaction data according to claim 6, wherein the block uplink module comprises: the verification triggering sub-module is used for calling a verification function of the power grid security contract by the whole network node and triggering power grid security verification; the security verification sub-module verifies the candidate blocks through a multiple security verification mechanism of the power grid security contract to generate a verification result; And the candidate block uplink sub-module confirms the validity of the candidate block based on the verification result, and each node adds the candidate block to the local block chain copy.

Description

Electric power market transaction data tracing and compliance verification method and system Technical Field The invention relates to the technical field of data tracing, in particular to a method and a system for tracing and verifying the compliance of electric power market transaction data. Background With the deep advancement of the power market reform, the power trading mode is gradually diversified, and the participants comprise power generation enterprises, power selling companies, power grid institutions, supervision departments and the like, and the trading data are characterized by multiple sources, isomerization and multiple circulation links, and relate to various data such as power generation side generated energy and energy types, trading side contract parameters and trading volume, transmission side transmission paths, settlement side expense details and the like. The storage and the traceability of the transaction data of the current electric power market mainly depend on a centralized information system of each participant, but the prior art faces the core technical problem of how to realize the complete process of credible, complete and efficient traceability of the transaction data from the power generation source to the final consumption. The method comprises the steps of storing data of all parties in a scattered mode to form a data island, enabling a tracing chain to be easily interrupted due to non-uniform formats and incompatible interfaces, enabling operation to be complex, enabling efficiency to be low, enabling data to be easily tampered or enabling tracing results to lack of credibility due to system attack distortion in a centralized storage mode, enabling all systems to be different in recording rules, enabling uniform identity identification and data association mechanisms to be lacked, enabling link data of power generation, transaction, transmission and the like to be not bound accurately, and enabling corresponding relation and source legitimacy to be difficult to confirm. These problems lead to low efficiency, poor reliability and incomplete chain of the existing traceability work, and cannot meet the requirements of supervision compliance verification and participant authenticity verification, so that a technical scheme for breaking through data islands, guaranteeing data non-falsification and realizing full-flow coherent traceability is needed. Disclosure of Invention The invention provides a method for tracing and verifying compliance of electric power market transaction data, which comprises the following steps: s1, dividing transaction data of each node in an electric power market into a public field set and a private field set, calculating a hash value of the private field set, generating a zero knowledge proof, and digitally signing the public field set, the hash value and the zero knowledge proof by using a private key to form a transaction data packet; S2, the all-network node verifies the transaction data packet in parallel, and after verification, the transaction data packet is stored in a memory pool; Step S3, selecting a plurality of transaction data packets from the memory pool, constructing a merck tree, packaging the merck root of the merck tree, the hash value of the previous block and the timestamp into a block header, packaging the transaction data packets into a block body, and assembling the block body into a candidate block; and S4, the full-network nodes confirm the validity of the candidate blocks through a power grid security contract, and each node adds the candidate blocks to the local block chain copy. The method for tracing and verifying the source and the compliance of the transaction data of the electric power market, as described above, comprises the following sub-steps of dividing the transaction data of each node of the electric power market into a public field set and a private field set, calculating the hash value of the private field set, generating a zero knowledge proof, digitally signing the public field set, the hash value and the zero knowledge proof by using a private key, and forming a transaction data packet: step S11, dividing transaction data into a public field set and a privacy field set based on the sensitivity of the transaction data by each node of the power market; Step S12, calculating a hash value of the privacy field set, and generating zero knowledge proof through a zero knowledge proof algorithm; And S13, performing data splicing on the public field set, the hash value and the zero knowledge proof, and digitally signing the data by using a private key by the node to form a transaction data packet. The method for tracing and verifying the transaction data of the electric power market as described above, wherein the parallel verification of the transaction data packet by the whole network node, after verification, the storage of the transaction data packet into the memory pool comprises the following sub-steps: step S2