The invention discloses a
power market transaction data traceability and compliance
verification method and
system, and relates to the technical field of data
traceability. The method comprises the following steps of: splitting
transaction data into public and private field sets by each node, calculating a hash value of the private field set, generating a zero-knowledge proof, performing
digital signature by using a private key, forming a
transaction data packet, verifying the data packet in parallel by the nodes of the whole network, storing the data packet into a
memory pool, selecting a plurality of data packets, constructing a Merkel tree, and packaging the Merkel root of the block and the hash value and the
timestamp of the previous block to a block head, packaging a transaction data packet to a block body, assembling to form a candidate block, performing consistency confirmation on the validity of the candidate block through a
power grid security contract, and adding the candidate block to the block chain by each node. According to the invention, full-life-cycle credible
traceability and automatic compliance supervision of
power market transaction data from a power generation source to final settlement can be realized, and a set of complete credible data chain penetrating links of power generation, transaction, transmission and settlement is constructed.