A green electricity power transaction tracking and tracing method and system

By adopting a node-based decision-making model and a diffusion storage strategy, the problems of data tampering and slow transactions in the green electricity trading traceability system have been solved, enabling fast and reliable transaction tracking and traceability, and improving the transparency and credibility of the green electricity market.

CN119784495BActive Publication Date: 2025-11-04SHENZHEN COMTOP INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411482783.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-11-04
Estimated Expiration
2044-10-23

AI Technical Summary

Technical Problem

Existing green electricity trading traceability systems suffer from problems such as centralized data storage being easily tampered with or lost, and consensus algorithms exhibiting issues like wasted computing power, excessively long transaction times, and dishonesty among nodes, resulting in insufficient credibility and speed in transaction tracking and traceability.

Method used

By adopting a node-based decision model and a diffusion storage strategy, green electricity transaction information is collected and preprocessed. Smart contracts are used to verify and calculate decision factor values ​​to construct a node security score dataset. Key nodes are selected for on-chain storage, and abnormal nodes are removed to improve transaction processing speed and throughput.

Benefits of technology

It has improved the credibility and speed of green electricity trading traceability, enhanced the transparency and credibility of transactions, and promoted the consumption and utilization of clean energy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119784495B_ABST
    Figure CN119784495B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of power market, especially to a green electricity power transaction tracking and tracing method and system, the method comprises the following steps: collecting the original green electricity transaction information generated after the transaction of the green electricity producer and seller is completed, and preprocessing the original green electricity transaction information to obtain standardized green electricity transaction information; using a smart contract to verify the standardized green electricity transaction information, and calculating the decision factor values of each node in the blockchain network using a node decision model after verification; based on the decision factor values, using a diffusion storage strategy to store the verified standardized green electricity transaction information on the chain; according to the query information provided by the producer and seller, each block in the blockchain is retrieved, and then the corresponding tracing information is obtained and fed back to the producer and seller. The present application uses a node decision model and a diffusion storage strategy to improve the security of the consensus node, improve the transaction processing speed and throughput, and thus improve the credibility and speed of transaction tracking and tracing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electricity market, and in particular to a green electricity power transaction tracking and tracing method and system. BACKGROUND

[0002] Under the background of global climate change and environmental protection becoming a global consensus, green electricity, as an important part of renewable energy, is becoming increasingly important. With the advancement of technology and the promotion of policy, the green electricity trading market is experiencing unprecedented rapid development. However, the prosperity of this market has also made the generation and circulation speed of green electricity transaction data grow rapidly. In order to ensure the credibility of the data, it becomes more and more important to record and save transaction information using data tracing technology. However, the traditional data tracing system is mostly centralized, and the centralized storage of data tracing information has problems such as being tampered with maliciously or lost accidentally, which not only affects the willingness and trust of consumers, but also restricts the further development of the green electricity market.

[0003] In order to solve the above problems, the industry and academia actively explore the application of emerging technologies in the field of green electricity power transaction. Among them, blockchain, as a decentralized distributed ledger, can provide a secure and reliable storage environment for data tracing information, ensuring the credibility and integrity of data tracing information. However, there are still some problems in applying blockchain technology to green electricity transaction information tracing. Specifically, the existing consensus algorithms such as PoW algorithm and PoS algorithm have the disadvantages of waste of computing power and long transaction time; in the DPoS algorithm, most nodes never participate in voting, and there is a phenomenon of malicious nodes bribing voting nodes, which prolongs the transaction time; the PBFT algorithm supports a limited number of nodes, and as the number of nodes increases, the communication complexity and delay will also increase; other algorithms such as PoB, dPoW and PoH have problems of asset loss, low flexibility and inability to be used independently. The existence of these problems reduces the processing speed and throughput of green electricity power transaction, and further reduces the credibility and speed of green electricity power transaction tracking and tracing.

[0004] In summary, a new green electricity power transaction tracing method is needed to improve the credibility and speed of green electricity power transaction tracking and tracing, to enhance the transparency and credibility of the green electricity power market, to promote clean energy consumption and utilization, and to help carbon emission reduction and sustainable development. SUMMARY

[0005] In view of the defects in the prior art, the present application provides a green electricity power transaction tracking and tracing method and system.

[0006] To achieve the above object, in a first aspect, the present application provides a green electricity power transaction tracking and tracing method, which comprises the following steps: collecting original green electricity transaction information generated after a green electricity producer and seller completes a transaction, and preprocessing the original green electricity transaction information to obtain standardized green electricity transaction information; verifying the standardized green electricity transaction information using a smart contract, and calculating the decision factor values of each node in a blockchain network using a node decision model after verification; based on the decision factor values, using a diffusion storage strategy to store the standardized green electricity transaction information that has passed verification on the chain; and according to the query information provided by the producer and seller, retrieving each block in the blockchain, and then obtaining the corresponding tracing information and feeding it back to the producer and seller. The present application uses a node decision model and a diffusion storage strategy to improve the security of consensus nodes, improve the transaction processing speed and throughput, and thus improve the credibility and speed of transaction tracking and tracing.

[0007] Optionally, the preprocessing of the original green electricity transaction information includes data cleaning, information formatting, data checking, data encryption and data desensitization.

[0008] Further, preprocessing the original green electricity transaction information can improve the accuracy of transaction data, and thus improve the credibility of transaction tracking and tracing.

[0009] Optionally, the node decision model satisfies the following relationship:

[0010]

[0011] wherein, is the decision factor value of the i th node in the blockchain network, is the number of times the i th node in the blockchain network participates in green electricity transactions, is the registration duration of the i th node in the blockchain network, and N is the number of nodes in the blockchain network, is the number of times the i th node in the blockchain network participates in consensus, is the number of times the i th node in the blockchain network participates in effective consensus.

[0012] Further, the node decision model is established based on the number of times the node participates in green electricity transactions, the registration duration of the node, and the data of participating in consensus, and can reflect the credit status of the node in the whole process of green electricity power transaction, which provides a basis for improving the credibility of transaction tracking and tracing.

[0013] Optionally, the diffusion storage strategy comprises the following steps:

[0014] The nodes in the blockchain network vote for each other;

[0015] constructing a node security score dataset based on the votes of each node in the blockchain network, the decision factor values and node basic information;

[0016] selecting a key node using a key node selection scheme according to the node security score dataset;

[0017] The key node packages the standardized green electricity transaction information that passes the verification to generate a new block, and further realizes the on-chain storage of the new block.

[0018] Further, the application uses a diffusion storage strategy to store the standardized green electricity transaction information that passes the verification on the chain, improves the transaction processing speed and throughput, and further improves the credibility and speed of transaction tracking and tracing.

[0019] Optionally, the step of constructing a node security score dataset based on the votes of each node in the blockchain network, the decision factor values and node basic information includes the following steps:

[0020] According to the votes of each node in the blockchain network, the decision factor values and the node basic information, a node security score calculation model is used to calculate the node security score of each node.

[0021] The node security score of each node is used to construct a node security score dataset.

[0022] Further, the application uses a node security score calculation model to calculate the node security score of each node, and further establishes a node security score dataset, which provides a data basis for the elimination of abnormal nodes and helps to improve the credibility of transaction tracking and tracing.

[0023] Optionally, the node basic information includes the total amount of green electricity transactions, the available amount of money and the holding period of available money.

[0024] The node security score calculation model satisfies the following relationship:

[0025]

[0026] wherein, is the node security score of the i-th node in the blockchain network, is the total amount of green electricity transactions of the i-th node in the blockchain network, is the total amount of green electricity transactions of all nodes in the blockchain network, is the number of votes obtained by the i-th node in the blockchain network, is the number of available money held by the i-th node in the blockchain network, is the holding period of available money of the i-th node in the blockchain network, is the maximum holding period of available money, is the maximum holding period of available money of the ith node in the blockchain network, is the decision factor value of the ith node in the blockchain network.

[0027] Further, the node security score calculation model comprehensively considers the green electricity transaction data of the node, the node votes, the decision factor value and the available money, and can reflect the security of the node, thereby providing a data basis for eliminating abnormal nodes in the blockchain network and helping to improve the credibility of transaction tracking and tracing.

[0028] Optionally, the key node selection scheme comprises the following steps:

[0029] A cluster judgment threshold is set, and a cluster value of each node security score is calculated using a cluster judgment model;

[0030] Nodes corresponding to the node security scores whose cluster values are less than the cluster judgment threshold are deleted to obtain candidate key nodes;

[0031] A node decision threshold is set, and the candidate key nodes whose decision factor values are greater than the node decision threshold are selected as the key nodes.

[0032] Further, the present application eliminates abnormal nodes in the blockchain network based on the cluster judgment model, and selects nodes with larger decision factor values from the remaining nodes as key nodes to generate a new block, thereby improving the credibility and speed of transaction tracking and tracing.

[0033] Optionally, the cluster judgment model satisfies the following relationship:

[0034]

[0035] wherein, is the cluster value of the ith node security score, is the node security score of the ith node in the blockchain network, is the mean of all node security scores in the node security score data set, is the standard deviation of the node security scores in the node security score data set, and S is the node security score data set, is the maximum value of

[0036] Further, the present application calculates the cluster value of each node security score using the cluster judgment model, and deletes the nodes corresponding to the node security scores whose cluster values are less than the cluster judgment threshold, thereby realizing the deletion of abnormal nodes, improving the security of key nodes, and shortening the block time, thereby improving the speed of transaction tracking and tracing.​

[0037] Optionally, the key node packs the standardized green electricity transaction information that passes the verification to generate a new block, and then realizes the on-chain storage of the new block.

[0038] The key node collects the standardized green electricity transaction information that passes the verification to perform validity verification, and then packs the standardized green electricity transaction information that passes the verification to generate a new block.

[0039] The key node broadcasts the new block in the blockchain network and receives the new block by other nodes to perform validity verification, and then realizes the on-chain storage of the new block.

[0040] Further, the standardized green electricity transaction information that passes the verification is stored on the chain using a diffusion storage strategy, which improves the transaction processing speed and throughput, and then improves the credibility and speed of transaction tracking and tracing.

[0041] In a second aspect, the present application also provides a green electricity power transaction tracking and tracing system, which comprises a data acquisition device, a data query device, a processor and a storage, the storage comprises a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program comprises program instructions, the program instructions enable the processor to realize the green electricity power transaction tracking and tracing method of the present application when executed by the processor. The system based on the method provided by the present application can realize the fast tracking and tracing of green electricity power transaction, and improve the practicability of the method of the present application. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0043] Figure 1 The flowchart of the green electricity power transaction tracking and tracing method of the embodiment of the present application;

[0044] Figure 2 The framework diagram of the green electricity power transaction tracking and tracing system of the embodiment of the present application. DETAILED DESCRIPTION

[0045] Specific embodiments of the present invention will now be described in detail. It should be noted that the embodiments described herein are for illustrative purposes only and are not intended to limit the invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be apparent to those skilled in the art that these specific details are not necessary to practice the invention. In other instances, well-known circuits, software, or methods have not been specifically described to avoid obscuring the invention.

[0046] Throughout this specification, references to "an embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in connection with that embodiment or example is included in at least one embodiment of the invention. Therefore, the phrases "in an embodiment," "in an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily refer to the same embodiment or example. Furthermore, specific features, structures, or characteristics can be combined in one or more embodiments or examples in any suitable combination and / or sub-combination. Moreover, those skilled in the art will understand that the illustrations provided herein are for illustrative purposes and are not necessarily drawn to scale.

[0047] It should be noted in advance that, in one alternative embodiment, except for independent descriptions, the same symbols or letters appearing in all formulas have the same meaning and value.

[0048] In one optional embodiment, please refer to Figure 1 This invention provides a method for tracing and tracking green electricity transactions, the method comprising the following steps:

[0049] S1. Collect the original green electricity transaction information generated after the green electricity producers and sellers complete the transaction, and preprocess the original green electricity transaction information to obtain standardized green electricity transaction information.

[0050] Specifically, in this embodiment, it is assumed that green electricity producers and sellers have installed power generation devices, energy storage devices, and smart data acquisition devices, and have already completed registration on the blockchain network. The energy storage device stores the electrical energy generated by the power generation device. The power generation device and energy storage device are connected to the smart data acquisition device, which is connected to the power distribution network. The power generation device is a photovoltaic power generation system, the energy storage device is a battery bank, and the smart data acquisition device is a smart meter. The smart data acquisition device can monitor the electricity generated by the power generation device and the electricity stored by the energy storage device in real time, and can also monitor the traded electricity in real time when producers and sellers engage in green electricity transactions.

[0051] Further, the original green electricity transaction information of the producer and seller includes basic information of the green electricity transaction parties, transaction electricity quantity, transaction price, transaction time, green electricity project information, green power certificate information, transaction mode and transaction contract, etc. The basic information of the green electricity transaction parties includes the name, registered address and ID number of the producer and seller, and if the producer and seller is not an individual, the basic information of the green electricity transaction parties further includes the unified social credit code of the producer and seller. The transaction time includes the transaction start time and transaction settlement time. The green electricity project information includes the green electricity type and geographical location. The green power certificate information includes the green certificate number, green certificate issuing agency and green certificate status, and the green power certificate information is usually only available for non-individual green electricity producers. The transaction mode includes individual business mutual transaction and purchase from the power grid. The transaction contract is an electronic contract text signed by the green electricity transaction parties, which records the transaction terms and breach of contract responsibilities in detail.

[0052] Further, the original green electricity transaction information is preprocessed to obtain standardized green electricity transaction information. The specific preprocessing operations include data cleaning, information formatting, data verification, data encryption and data desensitization. Preprocessing the original green electricity transaction information can ensure the security of the data, improve the accuracy of the transaction data, and further improve the credibility of the transaction tracking and tracing.

[0053] S2, using a smart contract to verify the standardized green electricity transaction information, and using a node decision model to calculate the decision factor value of each node in the blockchain network after verification.

[0054] Specifically, in the present embodiment, the source code of the smart contract is written using the high-level programming language Solidity, and the smart contract is deployed on all nodes in the blockchain network to automate the partial supervision function of the green electricity transaction data. The smart contract should have at least the following functions: assisting the producer and seller to register on the blockchain network; verifying the identity of the equipment and the producer and seller, and then agreeing or refusing the producer and seller to query information or upload data; generating transaction orders and transaction contracts, and verifying the transaction orders and contracts. Considering that the blockchain technology has been applied to green electricity transactions in the prior art, the specific functions or design schemes of the smart contract can refer to the prior art, and will not be described in detail in the present embodiment.

[0055] Further, the standardized green electricity transaction information is verified, and a node decision model is used to calculate the decision factor value of each node in the blockchain network after verification. The node decision model satisfies the following relationship:

[0056]

[0057] wherein, is the decision factor value of the i-th node in the blockchain network, The number of times that the ith node in the blockchain network participates in green electricity transactions, The registration duration of the ith node in the blockchain network, and N is the number of nodes in the blockchain network, The number of times that the ith node in the blockchain network participates in consensus, The number of times that the ith node in the blockchain network participates in valid consensus. The node decision model is established based on the number of times that the node participates in green electricity transactions, the registration duration of the node, and the data of participating in consensus. The greater the value of the node decision factor, the more honest the node is in the whole process of green electricity transaction, which provides data support for finding accurate and reliable key nodes, and further provides a foundation for improving the credibility of transaction tracking and tracing.

[0058] S3, based on the decision factor value, using a diffusion storage strategy to store the standardized green electricity transaction information that passes the verification on the chain.

[0059] Specifically, in this embodiment, the diffusion storage strategy is used to store the standardized green electricity transaction information that passes the verification on the chain, which improves the transaction processing speed and throughput, and further improves the credibility and speed of transaction tracking and tracing. The diffusion storage strategy includes the following steps:

[0060] T1, the nodes in the blockchain network vote for each other.

[0061] In this embodiment, all nodes in the blockchain network have the right to vote, which can improve the enthusiasm of nodes participating in green electricity transactions to some extent, and help to find accurate and reliable key nodes, improve the credibility of transaction tracing, and make the tracing result more reliable.

[0062] T2, based on the number of votes of each node in the blockchain network, the decision factor value and the node basic information, a node security score dataset is constructed.

[0063] Specifically, step T2 further includes the following steps:

[0064] T21, according to the number of votes of each node in the blockchain network, the decision factor value and the node basic information, the node security score of each node is calculated using a node security score calculation model.

[0065] In this embodiment, the node basic information includes the total amount of green electricity transactions, the available amount of money and the holding period of available amount of money, and the node security score calculation model satisfies the following relationship:

[0066]

[0067] Wherein, The node security score of the ith node in the blockchain network, a total amount of green electricity transactions of an i th node in the blockchain network, a total amount of green electricity transactions of all nodes in the blockchain network, a number of votes obtained by an i th node in the blockchain network, an available amount of money held by an i th node in the blockchain network, an available money holding time of an i th node in the blockchain network, a maximum available money holding time, a maximum available money holding time of an i th node in the blockchain network, a decision factor value of an i th node in the blockchain network. The node security score calculation model synthesizes the green electricity transaction data of the node, the votes of the node, the decision factor value and the available money, and can reflect the security of the node. Generally, the greater the node security score, the higher the node security. The embodiment provides a data basis for eliminating abnormal nodes in the blockchain network by calculating the node security score, which helps to improve the credibility of transaction tracking and tracing.

[0068] Further, the producers and sellers use the available money for green electricity transactions in the blockchain network. If a producer and seller holds a certain part of the available money for 1 year so far, the available money holding time of this part of the available money is 1 year. Obviously, the available money of the producer and seller will be divided into different parts as the number of transactions changes. Assuming that the available money of a certain producer and seller is divided into 6 parts, each part of the available money has a different available money holding time, which is the maximum value of the 6 different available money holding times. As for the available money holding time of each node, it is calculated from the available money holding times of different parts of the available money of the node. The specific calculation method can refer to the PoS consensus mechanism.

[0069] T22, constructing a node security score dataset using the node security scores of each node.

[0070] In the embodiment, the node security score dataset can be represented as , and S represents the node security score dataset.

[0071] T3, selecting a key node using a key node selection scheme according to the node security score dataset.

[0072] The key node selection scheme includes the following steps:

[0073] H1, setting a cluster judgment threshold, and calculating a cluster value of each node security score using a cluster judgment model.

[0074] In the embodiment, the cluster judgment threshold is 0.4, and the cluster judgment model satisfies the following relationship:

[0075]

[0076] wherein, is the cluster value of the security score of the ith node, is the node security score of the ith node in the blockchain network, is the mean value of all node security scores in the node security score data set, is the standard deviation of the node security scores in the node security score data set, and S is the node security score data set, is the maximum value of

[0077] Generally, the larger the node security score, the higher the node security. However, if malicious nodes collude with each other to vote maliciously, it will have a greater impact on the node security score. Usually, the votes of malicious nodes are significantly higher than those of other nodes, and thus the node security score of the malicious nodes is significantly higher than that of other nodes. If the malicious nodes are regarded as key nodes to verify the green power transaction information and generate new blocks for storage on the blockchain, abnormal data may be caused, and thus the accuracy of the information is reduced. Therefore, based on the node security scores of the nodes, the malicious nodes need to be deleted, so that the remaining normal nodes can reach a consensus more quickly, ensuring the security and stability of the blockchain network, improving the credibility of the green power transaction tracking and tracing, making the tracing result more reliable, and shortening the node block time to meet the increasing green power transaction volume.

[0078] H2, deleting the nodes corresponding to the node security scores less than the cluster judgment threshold, to obtain candidate key nodes.

[0079] H3, setting a node decision threshold, and selecting the candidate key nodes with the decision factor values greater than the node decision threshold as the key nodes.

[0080] In the embodiment, since the size of the node decision factor value can reflect the integrity of the nodes in the whole process of green power transaction, after deleting the malicious nodes, the embodiment selects the most reliable and trustworthy nodes from the candidate key nodes by setting a node decision threshold, to further improve the security of the selected nodes, and thus further improve the credibility of the green power transaction tracking and tracing.

[0081] ​Further, the node decision threshold is set to the median of the decision factor values of all nodes in the blockchain network in this embodiment. In other alternative embodiments, the node decision threshold can also be set to other values.

[0082] T4, the key node packs the standardized green electricity transaction information that passes the verification to generate a new block, thereby realizing the on-chain storage of the new block.

[0083] In step T4, the following steps are further included:

[0084] T41, the key node collects the standardized green electricity transaction information that passes the verification to perform validity verification, and then packs the standardized green electricity transaction information that passes the verification to generate a new block.

[0085] In this embodiment, the key node performs validity verification on the collected standardized green electricity transaction information that passes the verification, including checking the qualifications of the transaction parties, the integrity of the transaction data, whether the transaction complies with the relevant regulations and policies of green electricity transaction, etc. Only when the standardized green electricity transaction information passes the validity verification of at least 2 / 3 of the key nodes, it will be considered as valid standardized green electricity transaction information, and then the key node will pack the valid standardized green electricity transaction information to generate a new block.

[0086] T42, the key node broadcasts the new block in the blockchain network and receives it by other nodes to perform validity verification, thereby realizing the on-chain storage of the new block.

[0087] S4, according to the query information provided by the producer and seller, each block in the blockchain is retrieved, and then the corresponding traceability information is obtained and fed back to the producer and seller.

[0088] Specifically, in this embodiment, the query information provided by the producer and seller can be one or a combination of the following: basic information of the green electricity transaction parties, transaction electricity, transaction price, transaction time, green electricity project information, green power certificate information, and transaction method. Then, according to the query information provided by the producer and seller, each block in the blockchain is retrieved, and then the corresponding traceability information is obtained and fed back to the producer and seller.

[0089] It should be noted that in some cases, the actions described in the specification can be performed in different orders and still achieve the desired results, and in this embodiment, the order of the steps given is only to make the embodiment look clearer and more understandable, and is not a limitation.

[0090] In an alternative embodiment, please refer to Figure 2The application provides a green electricity power transaction tracking and tracing system, which comprises a data acquisition device A1, a data query device A2, a processor A3 and a storage A4, the storage A4 comprises a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the program instructions enable the processor A3 to execute the contents described in steps S1 to S4 when the processor A3 executes the computer program.

[0091] Specifically, in the embodiment, when the computer program executed by the processor A3 realizes the contents described in steps S1 to S4, the original green electricity transaction information is collected by using the data acquisition device A1, and the standardized green electricity transaction information is obtained by preprocessing the original green electricity transaction information, the producers and sellers can input the query information by using the data query device A2, and the traceability information is displayed on the data query device A2 for the producers and sellers.

[0092] The system can realize the rapid tracking and tracing of the green electricity power transaction based on the method provided by the application, and improve the practicability of the method.

[0093] In summary, the method uses the diffusion storage strategy to store the standardized green electricity transaction information that passes the verification, improves the transaction processing speed and throughput, and further improves the credibility and speed of transaction tracking and tracing. The use of the node decision model to calculate the decision factor value of each node can reflect the integrity of the node in the whole process of green electricity power transaction, which provides a basis for improving the credibility of transaction tracking and tracing. The node security score calculation model is used to calculate the node security score of each node and establish a node security score dataset, and then the cluster judgment model is used to calculate the cluster value of each node security score, and the node corresponding to the node security score whose cluster value is less than the cluster judgment threshold is deleted as an abnormal node, and the abnormal data carried by the malicious node is also eliminated, so that the key node has high security and can shorten the block time, improve the credibility and speed of transaction tracking and tracing. In addition, the system provided by the application is adapted to the method provided by the application, which can realize the rapid tracking and tracing of the green electricity power transaction, and improve the practicability of the method.

[0094] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the application, and not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can modify the technical solutions described in the foregoing embodiments, or make equivalent replacement to part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the application, and they should be covered in the scope of the claims and description of the application.

Claims

1. A green electricity power transaction tracking and tracing method, characterized in that, The method comprises the following steps: Collecting original green electricity transaction information generated after the completion of a green electricity producer transaction, and preprocessing the original green electricity transaction information to obtain standardized green electricity transaction information; Using a smart contract to verify the standardized green electricity transaction information, and using a node decision model to calculate the decision factor value of each node in the blockchain network after verification; The node decision model satisfies the following relationship: wherein, is the decision factor value of the i-th node in the blockchain network, is the number of times the i-th node in the blockchain network participates in green electricity transactions, is the registration duration of the i-th node in the blockchain network, and N is the number of nodes in the blockchain network, is the number of times the i-th node in the blockchain network participates in consensus, is the number of times the i-th node in the blockchain network participates in valid consensus. Based on the decision factor value, the standardized green electricity transaction information that passes verification is stored using a diffusion storage strategy; The diffusion storage strategy comprises the following steps: The nodes in the blockchain network vote for each other; Using a node security score calculation model to calculate the node security score of each node according to the number of votes of each node in the blockchain network, the decision factor value and node basic information; Using the node security score of each node to build a node security score dataset; According to the node security score dataset, a key node selection scheme is used to select a key node; The key node packages the standardized green electricity transaction information that passes verification to generate a new block, and then stores the new block on the chain; According to the query information provided by the producer, each block in the blockchain is retrieved, and the corresponding traceability information is obtained and fed back to the producer.

2. The green electricity power transaction tracking and tracing method according to claim 1, wherein: The preprocessing of the original green electricity transaction information includes data cleaning, information formatting, data verification, data encryption and data desensitization.

3. The green electricity power transaction tracking and tracing method according to claim 1, wherein: The node basic information includes the total amount of green electricity transactions, the available amount of money and the holding period of available money; The node security score calculation model satisfies the following relationship: wherein, the node security score of the i-th node in the blockchain network, the total amount of green electricity transactions of the i-th node in the blockchain network, the total amount of green electricity transactions of all nodes in the blockchain network, the number of votes obtained by the i-th node in the blockchain network, the number of available amounts held by the i-th node in the blockchain network, the holding period of available amounts of the i-th node in the blockchain network, the maximum holding period of available amounts, the maximum holding period of available amounts of the i-th node in the blockchain network, the decision factor value of the i-th node in the blockchain network.

4. The green electricity power transaction tracking and tracing method of claim 1, wherein, The key node selection scheme comprises the following steps: Set the cluster judgment threshold, and use the cluster judgment model to calculate the cluster value of each node security score; Delete the node security score corresponding to the node whose cluster value is less than the cluster judgment threshold to obtain a candidate key node; Set a node decision threshold, and select the candidate key node whose decision factor value is greater than the node decision threshold as the key node.

5. A green electricity power transaction tracking and tracing method according to claim 4, wherein, The cluster judgment model satisfies the following relationship: wherein, is a cluster value for the i-th node security score, is the node security score for the i-th node in the blockchain network, is a mean value of all node security scores in the node security score dataset, is a standard deviation of node security scores in the node security score dataset, S is the node security score dataset, is is a maximum value of 6. A green electricity power transaction tracking and tracing method according to claim 1, characterized in that, The key node packages the standardized green electricity transaction information that passes verification to generate a new block, and then stores the new block on the chain, which comprises the following steps: The key node collects the standardized green electricity transaction information that passes verification to verify its effectiveness, and then packages the standardized green electricity transaction information that passes verification to generate a new block; The key node broadcasts the new block in the blockchain network and receives it from other nodes for effectiveness verification, thereby realizing the storage of the new block on the chain.

7. A green electricity power transaction tracking and tracing system characterized in that, The green electricity power transaction tracking and tracing system comprises a data acquisition device, a data query device, a processor and a storage, the storage comprises a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the program instructions enable the processor to implement the green electricity power transaction tracking and tracing method according to any one of claims 1-6 when executed by the processor.

Citation Information

Patent Citations

  • Green electricity tracing method and system based on R-PBFT consensus algorithm and timestamp

    CN113438084A

  • Power transaction method based on multi-chain block chain architecture

    CN114663091A