A blockchain-based power transaction system

By using a blockchain-based power trading system, which utilizes a third-party platform and blockchain verification to generate and merge transaction documents, the problems of cyberattacks and trust in power trading are solved, thus achieving safe and reliable power trading.

CN114926246BActive Publication Date: 2026-06-30INFORMATION & COMM CO OF STATE GRID XINJIANG ELECTRIC POWER CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INFORMATION & COMM CO OF STATE GRID XINJIANG ELECTRIC POWER CO LTD
Filing Date
2022-05-24
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Existing power trading systems are vulnerable to cyberattacks and cannot guarantee transaction trust, especially with centralized storage and processing via a central database.

Method used

A blockchain-based power trading system is adopted. Power and user information are obtained through a third-party platform to generate transaction documents, and identity verification is performed on the blockchain. The information of both parties is compared and verified using a random number generated by the buyer and a verification code. Finally, the transaction documents are merged and the transaction is executed.

Benefits of technology

It achieves distributed storage and information tamper-proofing, improves the security and trustworthiness of transactions, and avoids the network attack risks of centralized databases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114926246B_ABST
    Figure CN114926246B_ABST
Patent Text Reader

Abstract

This application provides a blockchain-based power trading system. The system includes: acquiring power information; generating a seller's transaction document based on the power information and sending it to the blockchain for identity verification; acquiring user information; generating a buyer's transaction document based on the user information and sending it to the blockchain for identity verification; the buyer generating a random number and sending the random number to both the seller and a third-party platform; the seller generating a verification code based on the random number and sending it to the third-party platform; the third-party platform obtaining the decoded random number contained in the verification code and comparing it with the random number sent by the buyer for verification; if the verification passes, the seller's transaction document and the buyer's transaction document are merged to generate a power trading document, which is then sent to both the seller and the buyer, and the transaction is executed. This application achieves distributed data storage and tamper-proof information through blockchain verification and storage, thus improving transaction security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application seeks protection for an electricity trading technology, and more particularly relates to a blockchain-based electricity trading system. This application also relates to a blockchain-based electricity trading method. Background Technology

[0002] Electricity is the absolute mainstay of energy in modern society's production and daily life, with an extremely wide coverage, basically involving all people. Especially in urban areas, the importance of electricity for both living and production is self-evident.

[0003] Currently, electricity trading can be conducted online, but this trading method is still in a relatively early stage. It uses a centralized database to store and process electricity consumption and transaction data. This method may be vulnerable to cyberattacks on the Internet. At the same time, the data center operator, as an intermediary between the seller and the buyer in electricity trading, cannot guarantee a trustworthy transaction. Therefore, a new electricity trading system is needed. Summary of the Invention

[0004] To address the problems in the prior art, this application provides a blockchain-based power trading system. This application also relates to a blockchain-based power trading method.

[0005] This application provides a blockchain-based electricity trading system, including: a seller, a buyer, and a third-party platform;

[0006] The third-party platform obtains electricity information, generates seller transaction documents based on the electricity information, and sends the seller transaction documents and seller information to the blockchain for identity verification.

[0007] The third-party platform obtains user information, generates buyer transaction documents based on the user information, and sends the seller transaction documents and user information to the blockchain for identity verification.

[0008] The buyer generates a random number and sends the random number to both the seller and the third-party platform. The seller then generates a verification code based on the random number and sends it to the third-party platform.

[0009] The third-party platform decodes the verification code, obtains the decoded random number contained in the verification code, compares it with the random number sent by the buyer, and verifies it. If the verification is successful, the seller's transaction document and the buyer's transaction document are merged to generate an electricity transaction document, which is sent to the seller and the buyer respectively, and the transaction is executed.

[0010] Optionally, after the electricity transaction document is sent to the seller, a payment link will be generated based on the consumption amount in the electricity transaction document and sent to the buyer.

[0011] Optionally, the third-party platform may be connected to the seller and the buyer via different links.

[0012] Optionally, the verification code is generated based on multiple algorithms, wherein the verification code includes a time code, and the algorithm category at that time is determined based on the time code.

[0013] Optionally, the timecode is provided by the third-party platform.

[0014] This application also provides a blockchain-based electricity trading method, including:

[0015] Obtain electricity information, generate seller transaction documents based on the electricity information, and send the seller transaction documents and seller information to the blockchain for identity verification;

[0016] Obtain user information, generate buyer transaction documents based on the user information, and send the seller transaction documents and user information to the blockchain for identity verification;

[0017] The system receives a random number generated by the buyer and a verification code generated by the seller based on the random number. It decodes the verification code to obtain the decoded random number contained in the verification code and compares it with the random number. If the verification is successful, the system merges the seller's transaction document and the buyer's transaction document to generate an electricity transaction document.

[0018] Optionally, after the electricity transaction document is sent to the seller, a payment link will be generated based on the consumption amount in the electricity transaction document and sent to the buyer.

[0019] Optionally, the third-party platform may be connected to the seller and the buyer via different links.

[0020] Optionally, the verification code is generated based on multiple algorithms, wherein the verification code includes a time code, and the algorithm category at that time is determined based on the time code.

[0021] Optionally, the timecode is provided by the third-party platform.

[0022] The advantages of this application compared to the prior art are:

[0023] This application provides a blockchain-based power trading system, comprising: a seller, a buyer, and a third-party platform; the third-party platform acquires power information, generates a seller transaction document based on the power information, and sends the seller transaction document and seller information to the blockchain for identity verification; the third-party platform acquires user information, generates a buyer transaction document based on the user information, and sends the seller transaction document and user information to the blockchain for identity verification; the buyer generates a random number and sends the random number to both the seller and the third-party platform; the seller generates a verification code based on the random number and sends it to the third-party platform; the third-party platform decodes the verification code, obtains the decoded random number contained in the verification code, compares it with the random number sent by the buyer, and if the verification is successful, merges the seller's transaction document and the buyer's transaction document to generate a power trading document, sends it to both the seller and the buyer, and executes the transaction. This application achieves distributed data storage and tamper-proof information through blockchain verification and storage, thereby improving transaction security. Attached Figure Description

[0024] Figure 1 This is a schematic diagram of the blockchain-based power trading system described in this application.

[0025] Figure 2 This is a schematic diagram in this application.

[0026] Figure 3 This is a flowchart of the blockchain-based electricity trading process in this application. Detailed Implementation

[0027] The following are examples of specific implementation processes provided to illustrate the technical solutions to be protected in this application. However, this application may also be implemented in other ways different from those described herein. Those skilled in the art can implement this application by different technical means under the guidance of the concept of this application. Therefore, this application is not limited to the specific embodiments below.

[0028] This application provides a blockchain-based power trading system, comprising: a seller, a buyer, and a third-party platform; the third-party platform acquires power information, generates a seller transaction document based on the power information, and sends the seller transaction document and seller information to the blockchain for identity verification; the third-party platform acquires user information, generates a buyer transaction document based on the user information, and sends the seller transaction document and user information to the blockchain for identity verification; the buyer generates a random number and sends the random number to both the seller and the third-party platform; the seller generates a verification code based on the random number and sends it to the third-party platform; the third-party platform decodes the verification code, obtains the decoded random number contained in the verification code, compares it with the random number sent by the buyer, and if the verification is successful, merges the seller transaction document and the buyer transaction document to generate a power trading document, sends it to both the seller and the buyer, and executes the transaction.

[0029] Figure 1 This is a schematic diagram of the blockchain-based power trading system described in this application.

[0030] Please refer to Figure 1 As shown, the seller 101 is an electricity provider, the buyer 102 is an electricity consumer, and the third-party platform 103 is an electricity trading platform.

[0031] Figure 2 This is a diagram of the transaction system link structure in this application.

[0032] Please refer to Figure 2 As shown, each third-party platform connects to multiple sellers 101 and buyers 102.

[0033] The third-party platform 103 acquires electricity information, generates seller transaction documents based on the electricity information, and sends the seller transaction documents and seller information to the blockchain for identity verification.

[0034] The seller 101 data includes: name, authentication information, etc., and the electricity information includes: electricity parameters, electricity price, and other related electricity information.

[0035] The seller information and power information are obtained, and a seller transaction document is generated based on the seller signal and power information. The transaction document includes at least the power price, the power supply time interval, the power price change rules during the power supply time interval, and other power consumption rules and power purchase rules.

[0036] The seller information and the electricity information are related, and this relationship can be achieved through the same tag. Based on the relationship, the seller transaction documents and seller information are sent to the blockchain for authentication.

[0037] The identity verification refers to storing and recording the seller's transaction document and the corresponding seller information on the blockchain, and verifying whether the information is genuine.

[0038] In this application, the verification is actually performed through the distributed recording rules of the blockchain to verify anti-counterfeiting, and the seller's promised transaction documents are recorded through the distributed rules.

[0039] The third-party platform 103 obtains user information, generates buyer transaction documents based on the user information, and sends the seller transaction documents and user information to the blockchain for identity verification.

[0040] In this application, "buyer 102" refers to the same person as "user," and both terms have the same meaning. "Buyer 102" refers to an electricity consumer.

[0041] When purchasing electricity, buyer 102 first sends a purchase request to the third-party platform 103. The purchase request includes the buyer's user information, which at least includes the amount of electricity to be purchased and the type of purchase.

[0042] Based on the user information, a buyer's transaction document is generated, and the buyer's transaction document and user information are sent to the blockchain for identity verification.

[0043] Specifically, the identity verification of the buyer 102 is the same as that of the seller 101, which involves storing and recording the buyer's transaction documents and user information, and verifying whether the information is true.

[0044] The blockchain described in this application is created based on the third-party platform 103. There are multiple third-party platforms 103, and each third-party platform 103 corresponds to a different seller 101 and buyer 102. However, when performing the identity verification, any one of the third-party platforms 103 sends the electricity information, seller transaction documents, user information and buyer transaction documents, which are then verified, stored and recorded by the other third-party transaction platforms 103.

[0045] The buyer 102 generates a random number and sends the random number to the seller 101 and the third-party platform 103 respectively. The seller 101 generates a verification code based on the random number and sends it to the third-party platform.

[0046] In the specific transaction process, the buyer 102 is the active party, and the seller 101 is the passive party. The active party means that all transaction instructions are sent by the buyer 102, because the buyer 102 is the payer. The seller 101 is the passive party, but the seller 101 can set rules that the electricity transaction can only be carried out after payment is received.

[0047] Based on the above rules, the buyer 102 first generates a random number to verify the authenticity of all parties. Since the information of the buyer 102 and the seller 101 has been verified and stored on the blockchain, only simple verification is needed to determine the authenticity.

[0048] First, buyer 102 generates a random number, which is then sent to seller 101 and third-party platform 103. Seller 101 generates a verification code based on the random number and sends it to third-party platform 103.

[0049] The verification code is generated based on the random data using different algorithms, such as different versions of the national cryptographic algorithm or hash algorithm.

[0050] The third-party platform 103 decodes the verification code, obtains the decoded random number contained in the verification code, compares it with the random number sent by the buyer 102, and verifies it. If the verification is successful, the transaction documents of the seller 101 and the buyer 102 are merged to generate an electricity transaction document, which is then sent to the seller 101 and the buyer 102 respectively, and the transaction is executed.

[0051] Specifically, the verification code verification means that the verification random number and the random number are the same. After the verification is completed, the third-party platform 103 merges the seller's transaction document and the buyer's transaction document to generate an electricity transaction document, and sends the electricity transaction document to the buyer 102 and the seller 101 respectively, and the seller 101 and the buyer 102 execute the electricity transaction.

[0052] The transaction steps include: the seller generating a payment connection based on the consumption amount recorded in the electricity transaction document and sending it to the buyer 102.

[0053] The buyer 101 completes the payment, and the seller verifies whether the payment is completed and sends the power through the payment port.

[0054] Preferably, the third-party platform is connected to the seller and the buyer through different links, specifically one-to-one individual connections.

[0055] Preferably, the verification code is generated based on multiple algorithms, and the verification code includes a time code. The algorithm category at that time is determined based on the time code. This includes reading time information from the third-party platform, generating a time code based on the time information, and sending the time code to the seller 101. The seller 101 adds the time code to the verification code when generating the verification code.

[0056] This application also provides a blockchain-based electricity trading method, which uses blockchain for identity authentication and information storage, avoiding issues of transaction integrity and data centralization.

[0057] Figure 3 This is a flowchart of the blockchain-based electricity trading process in this application.

[0058] Please refer to Figure 3 As shown, S101 acquires electricity information, generates a seller transaction document based on the electricity information, and sends the seller transaction document and seller information to the blockchain for identity verification.

[0059] The third-party platform 103 acquires electricity information, generates seller transaction documents based on the electricity information, and sends the seller transaction documents and seller information to the blockchain for identity verification.

[0060] The seller 101 data includes: name, authentication information, etc., and the electricity information includes: electricity parameters, electricity price, and other related electricity information.

[0061] The seller information and power information are obtained, and a seller transaction document is generated based on the seller signal and power information. The transaction document includes at least the power price, the power supply time interval, the power price change rules during the power supply time interval, and other power consumption rules and power purchase rules.

[0062] The seller information and the electricity information are related, and this relationship can be achieved through the same tag. Based on the relationship, the seller transaction documents and seller information are sent to the blockchain for authentication.

[0063] The identity verification refers to storing and recording the seller's transaction document and the corresponding seller information on the blockchain, and verifying whether the information is genuine.

[0064] In this application, the verification is actually performed through the distributed recording rules of the blockchain to verify anti-counterfeiting, and the seller's promised transaction documents are recorded through the distributed rules.

[0065] Please refer to Figure 3 As shown, S102 obtains user information, generates a buyer's transaction document based on the user information, and sends the seller's transaction document and user information to the blockchain for identity verification.

[0066] In this application, "buyer 102" refers to the same person as "user," and both terms have the same meaning. "Buyer 102" refers to an electricity consumer.

[0067] When purchasing electricity, buyer 102 first sends a purchase request to the third-party platform 103. The purchase request includes the buyer's user information, which at least includes the amount of electricity to be purchased and the type of purchase.

[0068] Based on the user information, a buyer's transaction document is generated, and the buyer's transaction document and user information are sent to the blockchain for identity verification.

[0069] Specifically, the identity verification of the buyer 102 is the same as that of the seller 101, which involves storing and recording the buyer's transaction documents and user information, and verifying whether the information is true.

[0070] The blockchain described in this application is created based on the third-party platform 103. There are multiple third-party platforms 103, and each third-party platform 103 corresponds to a different seller 101 and buyer 102. However, when performing the identity verification, any one of the third-party platforms 103 sends the electricity information, seller transaction documents, user information and buyer transaction documents, which are then verified, stored and recorded by the other third-party transaction platforms 103.

[0071] The buyer 102 generates a random number and sends the random number to the seller 101 and the third-party platform 103 respectively. The seller 101 generates a verification code based on the random number and sends it to the third-party platform.

[0072] In the specific transaction process, the buyer 102 is the active party, and the seller 101 is the passive party. The active party means that all transaction instructions are sent by the buyer 102, because the buyer 102 is the payer. The seller 101 is the passive party, but the seller 101 can set rules that the electricity transaction can only be carried out after payment is received.

[0073] Based on the above rules, the buyer 102 first generates a random number to verify the authenticity of all parties. Since the information of the buyer 102 and the seller 101 has been verified and stored on the blockchain, only simple verification is needed to determine the authenticity.

[0074] First, buyer 102 generates a random number, which is then sent to seller 101 and third-party platform 103. Seller 101 generates a verification code based on the random number and sends it to third-party platform 103.

[0075] The verification code is generated based on the random data using different algorithms, such as different versions of the national cryptographic algorithm or hash algorithm.

[0076] Please refer to Figure 3As shown, S103 receives the random number generated by the buyer and the verification code generated by the seller based on the random number, decodes the verification code to obtain the decoded random number contained in the verification code, compares it with the random number, and if the verification is successful, merges the seller's transaction document and the buyer's transaction document to generate an electricity transaction document.

[0077] Specifically, the verification code verification means that the verification random number and the random number are the same. After the verification is completed, the third-party platform 103 merges the seller's transaction document and the buyer's transaction document to generate an electricity transaction document, and sends the electricity transaction document to the buyer 102 and the seller 101 respectively, and the seller 101 and the buyer 102 execute the electricity transaction.

[0078] The transaction steps include: the seller generating a payment connection based on the consumption amount recorded in the electricity transaction document and sending it to the buyer 102.

[0079] The buyer 101 completes the payment, and the seller verifies whether the payment is completed and sends the power through the payment port.

[0080] Preferably, the third-party platform is connected to the seller and the buyer through different links, specifically one-to-one individual connections.

[0081] Preferably, the verification code is generated based on multiple algorithms, and the verification code includes a time code. The algorithm category at that time is determined based on the time code. This includes reading time information from the third-party platform, generating a time code based on the time information, and sending the time code to the seller 101. The seller 101 adds the time code to the verification code when generating the verification code.

[0082] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims

1. A blockchain-based power trading system, characterized in that, include: Sellers, buyers, and third-party platforms; The third-party platform obtains electricity information, generates seller transaction documents based on the electricity information, and sends the seller transaction documents and seller information to the blockchain for identity verification. The third-party platform obtains user information, generates buyer transaction documents based on the user information, and sends the buyer transaction documents and user information to the blockchain for identity verification. The buyer generates a random number and sends the random number to both the seller and the third-party platform. The seller then generates a verification code based on the random number and sends it to the third-party platform. The third-party platform decodes the verification code, obtains the decoded random number contained in the verification code, compares it with the random number sent by the buyer, and verifies it. If the verification is successful, the seller's transaction document and the buyer's transaction document are merged to generate an electricity transaction document, which is sent to the seller and the buyer respectively, and the transaction is executed.

2. The blockchain-based power trading system according to claim 1, characterized in that, After the electricity transaction document is sent to the seller, a payment link will be generated based on the consumption amount in the electricity transaction document and sent to the buyer.

3. The blockchain-based power trading system according to claim 1, characterized in that, The third-party platform is connected to the seller and the buyer via different links.

4. The blockchain-based power trading system according to claim 1, characterized in that, The verification code is generated based on multiple algorithms, and includes a time code. The algorithm category at that time is determined based on the time code.

5. The blockchain-based power trading system according to claim 4, characterized in that, The timecode is provided by the third-party platform.

6. A blockchain-based electricity trading method, characterized in that, Applied to the power trading system as described in any one of claims 1-5, the method comprises: Obtain electricity information, generate seller transaction documents based on the electricity information, and send the seller transaction documents and seller information to the blockchain for identity verification; Obtain user information, generate buyer transaction documents based on the user information, and send the buyer transaction documents and user information to the blockchain for identity verification; The system receives a random number generated by the buyer and a verification code generated by the seller based on the random number. It decodes the verification code to obtain the decoded random number contained in the verification code and compares it with the random number. If the verification is successful, the system merges the seller's transaction document and the buyer's transaction document to generate an electricity transaction document.

7. The blockchain-based power trading method according to claim 6, characterized in that, After the electricity transaction document is sent to the seller, a payment link will be generated based on the consumption amount in the electricity transaction document and sent to the buyer.

8. The blockchain-based power trading method according to claim 6, characterized in that, The third-party platform is connected to the seller and the buyer via different links.

9. The blockchain-based power trading method according to claim 6, characterized in that, The verification code is generated based on multiple algorithms, and includes a time code. The algorithm category at that time is determined based on the time code.

10. The blockchain-based power trading method according to claim 9, characterized in that, The timecode is provided by the third-party platform.