Distributed power listed transaction method and device, storage medium and equipment
By building a power listing transaction alliance chain and using the data storage structure of the main chain and side chain, the load pressure and data storage problems of the traditional system during peak hours are solved, and the robustness and scalability of distributed power trading are improved.
Patent Information
- Application Number
- CN202410590126.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-06
AI Technical Summary
The traditional power listing and trading system faces huge operating pressure and data storage pressure during peak trading hours, resulting in poor robustness and inability to effectively manage distributed power transactions.
Construct a power listing transaction alliance chain including the main chain and side chain, complete the data uploading of listing information and delisting information on the side chain, and generate transaction information based on this information for signing processing. The contract information obtained after signing is on the side chain Complete the data uploading, and finally summarize and store the transaction summary data on the main chain.
The process data and result data of distributed listing transactions are stored through the alliance chain, which reduces the data storage burden, enhances the scalability of the system, avoids the load pressure and large concurrent operations of traditional systems during peak hours, and improves distribution The robustness of electric power listing transactions.
Smart Images

Figure CN118606330A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distributed power listing transactions, and in particular to a distributed power listing transaction method, device, storage medium and equipment. Background Art
[0002] With the advancement of electricity marketization, more and more market players are participating in electricity listing transactions, and more and more transaction process data are generated.
[0003] At present, the traditional power listing and trading system carries out user login, trading, data storage and other operations in the same service cluster. However, when the system is in the peak trading period, the increasing load pressure and concurrent operation volume bring huge operating pressure and data storage pressure to the traditional power listing and trading system. Therefore, there is an urgent need for a distributed power listing and trading method that can improve the robustness of distributed power trading and reduce data storage pressure. Summary of the invention
[0004] In view of this, the present invention provides a distributed power listing transaction method, apparatus, storage medium and equipment, the main purpose of which is to solve the problems of poor robustness of existing distributed power listing transactions during peak trading periods and high data storage pressure.
[0005] According to one aspect of the present invention, a distributed power listing transaction method is provided, comprising:
[0006] Build an electricity listing and trading alliance chain including the main chain and side chain;
[0007] The listing information or delisting information is uploaded to the side chain; and transaction information is generated based on the listing information and the delisting information, and the transaction information is uploaded to the corresponding side chain;
[0008] Based on the transaction information, the contract is signed on the side chain, and the contract information obtained after the contract is signed is uploaded to the corresponding side chain;
[0009] The contract information in each distributed power trading area is aggregated and processed on the side chain to obtain corresponding transaction summary data; and the transaction summary data is uploaded to the main chain.
[0010] Furthermore, the method further comprises:
[0011] Setting up alliance chain light nodes and alliance chain full nodes in the power listing transaction alliance chain;
[0012] The power trading operation organizations in each distributed power trading area and the power dispatching organizations in the system are respectively identified as full nodes of power trading operation organizations and full nodes of power dispatching organizations, and the market entities participating in distributed listing transactions are identified as light nodes of the alliance chain;
[0013] Connect the alliance chain light nodes in each distributed power trading area with the full nodes of the power trading operation organization in the corresponding trading area;
[0014] The full nodes of the power trading operation organization are respectively connected to the main chain and the side chain of the power listing transaction alliance chain, and the full nodes of the power dispatching organization are connected to the main chain.
[0015] Furthermore, completing the data chaining of listing information or delisting information on the side chain includes:
[0016] Receive data uplink requests from the alliance chain light nodes in each distributed power trading area during the transaction listing or delisting stage;
[0017] Based on the data chain request, the listing information or the delisting information is completed on the side chain; and the listing information or the delisting information is stored in the full node of the power trading operation organization in each distributed power trading area.
[0018] Further, generating transaction information based on the listing information and the delisting information includes:
[0019] Starting the full node of the power trading operation organization in each distributed power trading area, so that the full node of the power trading operation organization makes a power quantity judgment based on the listing information and the delisting information;
[0020] If the total amount of delisted electricity in the current power trading area is less than or equal to the total amount of listed electricity, all delisted electricity will be traded, and the corresponding transaction information will be generated;
[0021] If the total amount of delisted electricity in the current power trading area is greater than the total amount of listed electricity, all listed electricity will be traded and corresponding transaction information will be generated.
[0022] Furthermore, the performing of contract processing on the side chain based on the transaction information and completing data uploading of the transaction information on the corresponding side chain includes:
[0023] Distribute the transaction information to the alliance chain light nodes in the corresponding power trading area, so that the alliance chain light nodes can confirm and process the participating transaction information;
[0024] After the alliance chain light node has completed the confirmation, a transaction contract corresponding to the alliance chain light node is generated, and the transaction contract is distributed to the alliance chain light node, so that the alliance chain light node performs the contract signing process based on the transaction contract;
[0025] The contract information is obtained from the transaction contract after the signing process, and the obtained contract information is uploaded to the corresponding side chain through the full node of the power trading operation organization.
[0026] Furthermore, before aggregating and processing the contract information in each distributed power trading area on the side chain, the method further includes:
[0027] The full nodes of the power trading operation organizations in each distributed power trading area monitor the contract information on their respective side chains;
[0028] If the contract status in the contract information changes, the contract information is updated based on the changed contract status to obtain updated contract information;
[0029] The updated contract information is uploaded to the corresponding side chain.
[0030] Furthermore, after the transaction summary data is uploaded to the main chain, the method further includes:
[0031] Based on the full node of the electric power dispatching organization, the transaction summary data corresponding to each of the distributed power trading areas is obtained from the main chain, so that the full node of the electric power dispatching organization performs subsequent data analysis work based on the transaction summary data.
[0032] According to another aspect of the present invention, a distributed power listing transaction device is provided, comprising:
[0033] Building modules for building a power listing and trading alliance chain including a main chain and a side chain;
[0034] A listing and transaction module is used to complete the data chain of listing information or delisting information on the side chain; and generate transaction information based on the listing information and the delisting information, and complete the data chain of the transaction information on the corresponding side chain;
[0035] A contract signing module, used to perform contract signing processing on the side chain based on the transaction information, and complete data chaining of the contract information obtained after signing on the corresponding side chain;
[0036] The main chain data on-chain module is used to aggregate and process the contract information in each distributed power trading area on the side chain to obtain corresponding transaction summary data; and complete the data on-chain of the transaction summary data on the main chain.
[0037] Furthermore, the building block is also used for:
[0038] Setting up alliance chain light nodes and alliance chain full nodes in the power listing transaction alliance chain;
[0039] The power trading operation organizations in each distributed power trading area and the power dispatching organizations in the system are respectively identified as full nodes of power trading operation organizations and full nodes of power dispatching organizations, and the market entities participating in distributed listing transactions are identified as light nodes of the alliance chain;
[0040] Connect the alliance chain light nodes in each distributed power trading area with the full nodes of the power trading operation organization in the corresponding trading area;
[0041] The full nodes of the power trading operation organization are respectively connected to the main chain and the side chain of the power listing transaction alliance chain, and the full nodes of the power dispatching organization are connected to the main chain.
[0042] Furthermore, the listing and transaction module includes a listing and delisting unit and a transaction unit;
[0043] The listing and delisting unit is used for:
[0044] Receive data uplink requests from the alliance chain light nodes in each distributed power trading area during the transaction listing or delisting stage;
[0045] Based on the data chain request, the listing information or the delisting information is completed on the side chain; and the listing information or the delisting information is stored in the full node of the power trading operation organization in each distributed power trading area.
[0046] The transaction unit is used to:
[0047] Starting the full node of the power trading operation organization in each distributed power trading area, so that the full node of the power trading operation organization makes a power quantity judgment based on the listing information and the delisting information;
[0048] If the total amount of delisted electricity in the current power trading area is less than or equal to the total amount of listed electricity, all delisted electricity will be traded, and the corresponding transaction information will be generated;
[0049] If the total amount of delisted electricity in the current power trading area is greater than the total amount of listed electricity, all listed electricity will be traded and corresponding transaction information will be generated.
[0050] Furthermore, the signing module is also used for:
[0051] Distribute the transaction information to the alliance chain light nodes in the corresponding power trading area, so that the alliance chain light nodes can confirm and process the participating transaction information;
[0052] After the alliance chain light node has completed the confirmation, a transaction contract corresponding to the alliance chain light node is generated, and the transaction contract is distributed to the alliance chain light node, so that the alliance chain light node performs the contract signing process based on the transaction contract;
[0053] The contract information is obtained from the transaction contract after the signing process, and the obtained contract information is uploaded to the corresponding side chain through the full node of the power trading operation organization.
[0054] Furthermore, the device also includes a monitoring and updating module, which is used to:
[0055] The full nodes of the power trading operation organizations in each distributed power trading area monitor the contract information on their respective side chains;
[0056] If the contract status in the contract information changes, the contract information is updated based on the changed contract status to obtain updated contract information;
[0057] The updated contract information is uploaded to the corresponding side chain.
[0058] Furthermore, the device also includes an information disclosure module, which is used to:
[0059] Based on the full node of the electric power dispatching organization, the transaction summary data corresponding to each of the distributed power trading areas is obtained from the main chain, so that the full node of the electric power dispatching organization performs subsequent data analysis work based on the transaction summary data.
[0060] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned distributed power listing trading method.
[0061] According to another aspect of the present invention, there is provided a device, comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0062] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned distributed power listing transaction method.
[0063] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
[0064] The present invention provides a distributed power listing transaction method, device, storage medium and equipment. Compared with the prior art, the present invention constructs a power listing transaction alliance chain including a main chain and a side chain; completes the data chain of listing information or delisting information on the side chain; and generates transaction information based on the listing information and the delisting information, and completes the data chain of the transaction information on the corresponding side chain; based on the transaction information, the contract is signed on the side chain, and the contract information obtained after the contract is signed is completed on the corresponding side chain; the contract information in each distributed power trading area is summarized on the side chain to obtain the corresponding transaction summary data; and the transaction summary data is completed on the main chain. The distributed management of power listing transactions is realized. Since the present invention stores the process data and result data of distributed listing transactions through the alliance chain, the data storage burden is reduced and the scalability of listing transactions in applications or systems is enhanced. Through different distributed power generation projects and distribution networks, market players read and write power transaction data on the alliance chain side chain respectively, avoiding the problems of high load pressure and large number of concurrent operations during peak hours in traditional power listing and trading systems, and improving the robustness of users' distributed power listing and trading.
[0065] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0067] Figure 1 A schematic diagram of a process of a distributed power listing transaction method provided by an embodiment of the present invention is shown;
[0068] Figure 2 A schematic diagram showing a flow chart of another distributed power listing transaction method provided by an embodiment of the present invention;
[0069] Figure 3 A schematic diagram showing a flow chart of another distributed power listing transaction method provided by an embodiment of the present invention;
[0070] Figure 4 A schematic diagram showing a flow chart of another distributed power listing transaction method provided by an embodiment of the present invention;
[0071] Figure 5 A schematic diagram of the structure of a distributed power listing transaction device provided by an embodiment of the present invention is shown;
[0072] Figure 6 A schematic structural diagram of a device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0073] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0074] The embodiment of the present invention provides a distributed power listing transaction method, such as Figure 1 As shown, the method includes:
[0075] 101. Build a power listing and trading alliance chain including the main chain and side chain;
[0076] In the embodiment of the present invention, the current execution end constructs a power listing transaction alliance chain in order to reduce the data storage burden, wherein the power listing transaction alliance chain includes a main chain and a side chain. In the specific transaction process, the process data of the listing transaction is stored in the side chain of the distributed park, and only the result data is stored on the main chain.
[0077] 102. Complete the data chaining of listing information or delisting information on the side chain; generate transaction information based on the listing information and the delisting information, and complete the data chaining of the transaction information on the corresponding side chain;
[0078] In the embodiment of the present invention, the current execution end completes data chaining of the listing information on the side chain of the corresponding trading area during the listing stage of the distributed power listing transaction. Among them, the listing information is distributed conventional listing information or distributed fixed-price listing information; distributed conventional listing information includes market number, listing party transaction number, listing party name, listing party market role type, listing power, listing price, listing time, etc., and distributed fixed-price listing information includes market number, listing party transaction number, listing party name, listing party market role type, the lower limit of the annual power consumption scale of the delisting party, listing price, listing time, etc., which is not specifically limited in the embodiment of the present invention. In the delisting stage of the distributed power listing transaction, the current execution end completes data chaining of the delisting information on the side chain of the corresponding trading area. Among them, the delisting information is distributed conventional delisting information or distributed fixed-price delisting information; the distributed conventional delisting information includes the market number, the listing party transaction number, the delisting party transaction number, the delisting electricity, the delisting price, the delisting time, etc.; the distributed fixed-price delisting information includes the market number, the listing party transaction number, the listing party name, the listing party market role type, the status, the delisting party transaction number, the lower limit of the delisting party's annual electricity consumption scale, the listing electricity price, the listing time, etc., which are not specifically limited in the embodiment of the present invention. The "status" field in the above delisting information includes but is not limited to "can be delisted" and "delisted". The current execution end generates transaction information based on the above listing information and delisting information in the transaction stage of the distributed power listing transaction, and completes the data chain of the transaction information (distributed conventional listing transaction transaction information or distributed fixed-price listing transaction transaction information) on the side chain of the transaction area.
[0079] 103. Perform contract signing on the side chain based on the transaction information, and complete data chaining of the contract information obtained after signing on the corresponding side chain;
[0080] In an embodiment of the present invention, the current execution end performs contract signing processing on the side chain based on the transaction information during the signing stage of the distributed power listing transaction to obtain contract information. Among them, the contract information is divided into distributed conventional delisting contract information and distributed fixed-price delisting contract information according to the transaction type. After the contract signing process, the current execution end completes the data chaining of the obtained contract information on the corresponding side chain. It should be noted that the contract status in the contract information chained during the signing stage is "unpublished".
[0081] 104. Summarize and process the contract information in each distributed power trading area on the side chain to obtain corresponding transaction summary data; and complete the data chaining of the transaction summary data on the main chain.
[0082] In the embodiment of the present invention, before the main chain data is uploaded to the chain, the current execution end first summarizes and processes the contract information in each distributed power trading area on the side chain. When the contract status of the contract information of a certain distributed listing transaction is updated to "repealed" or "fulfilled", the contract information of each transaction type is summarized and processed on the side chain corresponding to the trading area to obtain the corresponding transaction summary data. Among them, the transaction summary data represents the declaration and transaction status of each transaction type in each trading area, including but not limited to the number of entities participating in the transaction type, the declared electricity, the number of entities that have completed the transaction, the final total transaction volume and the electricity by power source type, the average transaction price and the average price by power source type, the transaction security verification results and reasons, etc., which are not specifically limited in the embodiment of the present invention.
[0083] It should be noted that after the above-mentioned transaction summary data is uploaded to the main chain, the current execution end can also take information disclosure processing for the data on the main chain, such as setting up a full node of the power dispatching agency on the main chain, and obtaining the corresponding transaction summary data of each distributed power trading area from the main chain based on the full node of the power dispatching agency, that is, obtaining data representing the declaration and transaction status of each transaction type in each trading area, so that the full node of the power dispatching agency can perform subsequent data analysis based on the acquired transaction summary data. Among them, the role of the full node of the power dispatching agency is to disclose information to the power dispatching agency from the power trading operation agency. The content of the information disclosure is the data and information that needs to be exchanged and shared to maintain the normal operation of the power system and the power market. Information disclosure can continuously improve the market operation management, monitoring, and analysis capabilities of market operators, and effectively prevent the operation risks of the power trading market.
[0084] Furthermore, as a refinement and extension of the specific implementation of the above embodiment, in order to follow the principle of nearby consumption, reduce the power transmission and distribution pressure of the distribution network, and reduce the power resource loss in the power transmission and distribution process, another distributed power listing trading method is provided, such as Figure 2 As shown, the steps to build a distributed power listing transaction alliance chain including a main chain and a side chain include:
[0085] 201. Setting a consortium chain light node and a consortium chain full node in the power listing transaction consortium chain;
[0086] In the embodiment of the present invention, the current execution end sets up a consortium chain light node and a consortium chain full node in the power listing transaction consortium chain. Among them, the consortium chain light node uses a computing device (including but not limited to a desktop computer, a portable notebook computer, and a smart phone) available on the market as a hardware device, and the consortium chain full node should use a hardware computing device with certain computing power requirements.
[0087] 202. The power trading operation organizations in each distributed power trading area and the power dispatching organizations in the system shall be respectively identified as full nodes of power trading operation organizations and full nodes of power dispatching organizations, and the market entities participating in distributed listing transactions shall be identified as light nodes of the alliance chain;
[0088] In the embodiment of the present invention, the current execution end determines the power trading operation organization in each distributed power trading area as the full node of the power trading operation organization, and determines the power dispatching organization in the system as the full node of the power dispatching organization, and configures hardware computing devices with certain computing power requirements on the full node of the power trading operation organization and the full node of the power dispatching organization. The current execution end also determines the market entities participating in the distributed listing transaction as the alliance chain light node. The hardware devices configured on the alliance chain light node can be desktop computers, portable notebook computers, smart phones, etc., which are not specifically limited in the embodiment of the present invention.
[0089] It should be noted that the scope of market entities participating in distributed listing transactions is within the same distributed power generation project and distribution network, and the transaction method is direct transaction. Therefore, the transaction process is concentrated in the same distributed power generation project and distribution network, and the transaction process data is independent of each other in different transaction areas, and can be stored separately using the storage structure of the side chain. In this way, on the one hand, it can reduce the storage pressure of the alliance chain for transaction data and improve the load capacity of the alliance chain for distributed listing transactions; on the other hand, the amount of on-chain data that needs to be retrieved and decompiled in the transaction process data tracing process will be greatly reduced, greatly improving the query efficiency of the on-chain transaction data that has been stored.
[0090] 203. Connect the alliance chain light nodes in each distributed power trading area with the full nodes of the power trading operation organization in the corresponding trading area;
[0091] 204. Connect all nodes of the power trading operation organization to the main chain and side chain of the power listing transaction alliance chain respectively, and connect all nodes of the power dispatching organization to the main chain.
[0092] In an embodiment of the present invention, the current execution end connects the alliance chain light node in each distributed power trading area with the full node of the power trading operation organization in the corresponding trading area; and respectively connects the full node of the power trading operation organization to the main chain and side chain of the power listing trading alliance chain. It should be noted that in the distributed power generation project and the distribution network, the number of full nodes of the power trading operation organization can be increased or decreased according to the demand for data chain upload and chain data reading in each distributed power generation project and distribution network park. It should be noted that at least one alliance chain power trading operation organization full node should be constructed in each distributed power generation project and distribution network. In the alliance chain, the power dispatching organization accesses the alliance chain main chain in the form of an alliance chain full node. The above-mentioned hardware devices can exchange information through the Internet, and the transmission medium includes twisted pair, optical fiber, etc., which is not specifically limited in the embodiment of the present invention.
[0093] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to reduce the storage pressure of the alliance chain on transaction data and improve the load capacity of the alliance chain for distributed listing transactions, another distributed power listing transaction method is provided, and the steps of completing the data chaining of listing information or delisting information on the side chain include:
[0094] Receive data uplink requests from the alliance chain light nodes in each distributed power trading area during the transaction listing or delisting stage;
[0095] Based on the data chain request, the listing information or the delisting information is completed on the side chain; and the listing information or the delisting information is stored in the full node of the power trading operation organization in each distributed power trading area.
[0096] In an embodiment of the present invention, the current execution end receives a data chain request issued by a trading subject in each distributed power trading area during the transaction listing stage or delisting stage, that is, a data chain request based on a light node of the alliance chain by the trading subject; the current execution end completes the data chain of the listing information or the delisting information on the side chain of the power listing transaction alliance chain based on the above data chain request. Since the alliance chain light node in each distributed power trading area is connected to the full node of the power trading operation organization in the corresponding trading area, in the process of chaining the listing information or the delisting information, the above listing information or the delisting information is stored on the full node of the power trading operation organization in each distributed power trading area, so as to facilitate the subsequent information processing in the transaction completion stage.
[0097] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to quickly generate independent transaction information in each distributed power trading area, another distributed power listing transaction method is provided, and the step of generating transaction information based on the listing information and the delisting information includes:
[0098] Starting the full node of the power trading operation organization in each distributed power trading area, so that the full node of the power trading operation organization makes a power quantity judgment based on the listing information and the delisting information;
[0099] If the total amount of delisted electricity in the current power trading area is less than or equal to the total amount of listed electricity, all delisted electricity will be traded, and the corresponding transaction information will be generated;
[0100] If the total amount of delisted electricity in the current power trading area is greater than the total amount of listed electricity, all listed electricity will be traded and corresponding transaction information will be generated.
[0101] In the embodiment of the present invention, the current execution end starts the full node of the power trading operation organization in each distributed power trading area during the transaction stage of the distributed power listing transaction, so that the full node of the power trading operation organization makes a power judgment based on the previously stored listing information and delisting information, that is, the sum of the delisted power and the sum of the listed power in the current power trading area is judged. If the sum of the delisted power is less than or equal to the sum of the listed power, the delisted power in each distributed power trading area is fully traded, and the corresponding transaction information is generated; if the sum of the delisted power is greater than the sum of the listed power, the listed power in each distributed power trading area is fully traded, and the corresponding transaction information is generated. Among them, the transaction information is divided into distributed conventional listing transaction transaction information and distributed fixed price listing transaction transaction information according to the transaction type; the distributed conventional listing transaction transaction information includes the market number, the listing party transaction number, the delisting party transaction number, the transaction power, the transaction price, etc., which is not specifically limited in the embodiment of the present invention; the distributed fixed price listing transaction transaction information includes the market number, the listing party transaction number, the delisting party transaction number, the transaction power, the transaction price, etc., which is not specifically limited in the embodiment of the present invention. It should be noted that when all the listed electricity is sold, the delisted electricity will be sold in equal proportion to the listed electricity, and the transaction price will be the listing price.
[0102] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to independently complete the contract signing in each distributed power trading area and improve the contract signing efficiency, another distributed power listing transaction method is provided, such as Figure 3 As shown, the steps of performing contract processing on the side chain based on the transaction information and completing data chaining of the transaction information on the corresponding side chain include:
[0103] 301. Distribute the transaction information to the alliance chain light nodes in the corresponding power trading area, so that the alliance chain light nodes confirm and process the participating transaction information;
[0104] In an embodiment of the present invention, the current execution end distributes the transaction information to the alliance chain light node in the corresponding power trading area, so that the market entities participating in the transaction can confirm and process the transaction information in which they participate based on the alliance chain light node, that is, the market entities confirm the correctness of the transaction information.
[0105] 302. After the alliance chain light node has completed confirmation, a transaction contract corresponding to the alliance chain light node is generated, and the transaction contract is distributed to the alliance chain light node, so that the alliance chain light node performs contract signing based on the transaction contract;
[0106] In the embodiment of the present invention, after the current execution end waits for the alliance chain light node to confirm, it generates a transaction contract corresponding to the alliance chain light node, and distributes the transaction contract to the corresponding alliance chain light node, so that the market entities participating in the transaction can sign the contract based on the transaction contract on the alliance chain light node. Among them, the transaction contract can be divided into a distributed conventional listing transaction contract and a distributed fixed price listing transaction contract according to the transaction type, which is not specifically limited in the embodiment of the present invention.
[0107] 303. Obtain contract information from the transaction contract after the signing process, and complete the data chaining of the obtained contract information on the corresponding side chain through the full node of the power trading operation organization.
[0108] In the embodiment of the present invention, after the current execution end completes the transaction contract signing process on the alliance chain light node, the contract information is obtained, and the obtained contract information is completed on the corresponding side chain through the full node of the power trading operation organization. Among them, the contract information includes distributed conventional delisting contract information and distributed fixed-price delisting contract information; the distributed conventional delisting contract information includes the contract number, contract status, market number, market name, delivery time type, delivery time, contracted electricity, contracted electricity price, listed party transaction number, listed party name, listed party market role type, delisting party transaction number, delisting party name, delisting party market role type, etc., which are not specifically limited in the embodiment of the present invention. The distributed fixed-price delisting contract information includes the contract number, contract status, market number, market name, delivery time type, delivery time, contracted electricity, contracted electricity price, listed party transaction number, listed party name, listed party market role type, delisting party transaction number, delisting party name, delisting party market role type, etc., which are not specifically limited in the embodiment of the present invention. It should be noted that the contract status in the above contract information needs to be changed in a timely manner according to the contract performance, and the data needs to be uploaded to the chain after each change.
[0109] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to timely monitor the performance of market entities in each distributed power trading area so as to aggregate data on the side chain, another distributed power listing transaction method is provided, such as Figure 4 As shown, before the step of aggregating and processing the contract information in each distributed power trading area on the side chain, the method further includes:
[0110] 401. Based on the full nodes of the power trading operation institutions in each distributed power trading area, the contract information on each side chain is monitored;
[0111] 402. If the contract status in the contract information changes, the contract information is updated based on the changed contract status to obtain updated contract information;
[0112] 403. The updated contract information is uploaded to the corresponding side chain.
[0113] In an embodiment of the present invention, the current execution end monitors and processes the contract information on each side chain based on the full node of the power trading operation organization in each distributed power trading area, and mainly monitors the contract status field in the contract information during the monitoring process. Among them, the contract status field includes but is not limited to "unpublished", "published", "fulfilled", and "repealed". When the "contract status" field in the contract information changes, the contract information needs to be re-uploaded to each alliance chain side chain. It should be noted that the result data of the distributed listing transaction is the regular delisting contract information with a contract status of "fulfilled" or "repealed", and the fixed-price delisting contract information with a contract status of "fulfilled" or "repealed".
[0114] The embodiment of the present invention provides a distributed power listing transaction method. Compared with the prior art, the present invention constructs a power listing transaction alliance chain including a main chain and a side chain; completes the data chain of listing information or delisting information on the side chain; and generates transaction information based on the listing information and the delisting information, and completes the data chain of the transaction information on the corresponding side chain; performs contract signing on the side chain based on the transaction information, and completes the data chain of the contract information obtained after the contract signing on the corresponding side chain; summarizes the contract information in each distributed power trading area on the side chain to obtain the corresponding transaction summary data; and completes the data chain of the transaction summary data on the main chain, thereby realizing the distributed management of power listing transactions. Since the present invention stores the process data and result data of distributed listing transactions through the alliance chain, it reduces the data storage burden and enhances the scalability of listing transactions in applications or systems. Through different distributed power generation projects and distribution networks, market players read and write power transaction data on the alliance chain side chain respectively, avoiding the problems of high load pressure and large number of concurrent operations during peak hours in traditional power listing and trading systems, and improving the robustness of users' distributed power listing and trading.
[0115] As the above Figure 1 The implementation of the method shown in the figure, the embodiment of the present invention provides a distributed power listing trading device, such as Figure 5 As shown, the device comprises:
[0116] Construction module 51, used to construct an electricity listing transaction alliance chain including a main chain and a side chain;
[0117] The listing and transaction module 52 is used to complete the data chain of listing information or delisting information on the side chain; and generate transaction information based on the listing information and the delisting information, and complete the data chain of the transaction information on the corresponding side chain;
[0118] The contract signing module 53 is used to perform contract signing processing on the side chain based on the transaction information, and complete data chaining of the contract information obtained after the contract signing on the corresponding side chain;
[0119] The main chain data uplink module 54 is used to aggregate and process the contract information in each distributed power trading area on the side chain to obtain corresponding transaction summary data; and complete the data uplink of the transaction summary data on the main chain.
[0120] Furthermore, the construction module 51 is also used for:
[0121] Setting up alliance chain light nodes and alliance chain full nodes in the power listing transaction alliance chain;
[0122] The power trading operation organizations in each distributed power trading area and the power dispatching organizations in the system are respectively identified as full nodes of power trading operation organizations and full nodes of power dispatching organizations, and the market entities participating in distributed listing transactions are identified as light nodes of the alliance chain;
[0123] Connect the alliance chain light nodes in each distributed power trading area with the full nodes of the power trading operation organization in the corresponding trading area;
[0124] The full nodes of the power trading operation organization are respectively connected to the main chain and the side chain of the power listing transaction alliance chain, and the full nodes of the power dispatching organization are connected to the main chain.
[0125] Furthermore, the listing and transaction module 52 includes a listing and delisting unit and a transaction unit;
[0126] The listing and delisting unit is used for:
[0127] Receive data uplink requests from the alliance chain light nodes in each distributed power trading area during the transaction listing or delisting stage;
[0128] Based on the data chain request, the listing information or the delisting information is completed on the side chain; and the listing information or the delisting information is stored in the full node of the power trading operation organization in each distributed power trading area.
[0129] The transaction unit is used to:
[0130] Starting the full node of the power trading operation organization in each distributed power trading area, so that the full node of the power trading operation organization makes a power quantity judgment based on the listing information and the delisting information;
[0131] If the total amount of delisted electricity in the current power trading area is less than or equal to the total amount of listed electricity, all delisted electricity will be traded, and the corresponding transaction information will be generated;
[0132] If the total amount of delisted electricity in the current power trading area is greater than the total amount of listed electricity, all listed electricity will be traded and corresponding transaction information will be generated.
[0133] Furthermore, the signing module 53 is also used for:
[0134] Distribute the transaction information to the alliance chain light nodes in the corresponding power trading area, so that the alliance chain light nodes can confirm and process the participating transaction information;
[0135] After the alliance chain light node has completed the confirmation, a transaction contract corresponding to the alliance chain light node is generated, and the transaction contract is distributed to the alliance chain light node, so that the alliance chain light node performs the contract signing process based on the transaction contract;
[0136] The contract information is obtained from the transaction contract after the signing process, and the obtained contract information is uploaded to the corresponding side chain through the full node of the power trading operation organization.
[0137] Furthermore, the device also includes a monitoring and updating module, which is used to:
[0138] The full nodes of the power trading operation organizations in each distributed power trading area monitor the contract information on their respective side chains;
[0139] If the contract status in the contract information changes, the contract information is updated based on the changed contract status to obtain updated contract information;
[0140] The updated contract information is uploaded to the corresponding side chain.
[0141] Furthermore, the device also includes an information disclosure module, which is used to:
[0142] Based on the full node of the electric power dispatching organization, the transaction summary data corresponding to each of the distributed power trading areas is obtained from the main chain, so that the full node of the electric power dispatching organization performs subsequent data analysis work based on the transaction summary data.
[0143] The embodiment of the present invention provides a distributed power listing transaction device. Compared with the prior art, the present invention constructs a power listing transaction alliance chain including a main chain and a side chain; completes the data chain of listing information or delisting information on the side chain; and generates transaction information based on the listing information and the delisting information, and completes the data chain of the transaction information on the corresponding side chain; performs contract processing on the side chain based on the transaction information, and completes the data chain of the contract information obtained after the contract is signed on the corresponding side chain; summarizes the contract information in each distributed power trading area on the side chain to obtain the corresponding transaction summary data; and completes the data chain of the transaction summary data on the main chain, thereby realizing the distributed management of power listing transactions. Since the present invention stores the process data and result data of distributed listing transactions through the alliance chain, it reduces the data storage burden and enhances the scalability of listing transactions in applications or systems. Through different distributed power generation projects and distribution networks, market players read and write power transaction data on the alliance chain side chain respectively, avoiding the problems of high load pressure and large number of concurrent operations during peak hours in traditional power listing and trading systems, and improving the robustness of users' distributed power listing and trading.
[0144] According to one embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the distributed power listing transaction method in any of the above method embodiments.
[0145] Figure 6 A schematic diagram of the structure of a device provided according to an embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the device.
[0146] like Figure 6 As shown, the device may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .
[0147] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
[0148] The communication interface 604 is used to communicate with other devices such as clients or other servers.
[0149] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps of the above-mentioned distributed power listing transaction method.
[0150] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0151] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0152] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0153] The program 610 may be specifically configured to enable the processor 602 to perform the following operations:
[0154] Build an electricity listing and trading alliance chain including the main chain and side chain;
[0155] The listing information or delisting information is uploaded to the side chain; and transaction information is generated based on the listing information and the delisting information, and the transaction information is uploaded to the corresponding side chain;
[0156] Based on the transaction information, the contract is signed on the side chain, and the contract information obtained after the contract is signed is uploaded to the corresponding side chain;
[0157] The contract information in each distributed power trading area is aggregated and processed on the side chain to obtain corresponding transaction summary data; and the transaction summary data is uploaded to the main chain.
[0158] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A distributed power listing transaction method, characterized in that: include: Build an electricity listing and trading alliance chain including the main chain and side chain; The listing information or delisting information is uploaded to the side chain; Generate transaction information based on the listing information and the delisting information, and complete data chaining of the transaction information on the corresponding side chain; Based on the transaction information, the contract is signed on the side chain, and the contract information obtained after the contract is signed is uploaded to the corresponding side chain; The contract information in each distributed power trading area is aggregated and processed on the side chain to obtain corresponding transaction summary data; and the transaction summary data is uploaded to the main chain.
2. The method according to claim 1, characterized in that The method further comprises: Setting up alliance chain light nodes and alliance chain full nodes in the power listing transaction alliance chain; The power trading operation organizations in each distributed power trading area and the power dispatching organizations in the system are respectively identified as full nodes of power trading operation organizations and full nodes of power dispatching organizations, and the market entities participating in distributed listing transactions are identified as light nodes of the alliance chain; Connect the alliance chain light nodes in each distributed power trading area with the full nodes of the power trading operation organization in the corresponding trading area; The full nodes of the power trading operation organization are respectively connected to the main chain and the side chain of the power listing transaction alliance chain, and the full nodes of the power dispatching organization are connected to the main chain.
3. The method according to claim 2, characterized in that The completion of uploading the listing information or delisting information on the side chain includes: Receive data uplink requests from the alliance chain light nodes in each distributed power trading area during the transaction listing or delisting stage; Based on the data chain request, the listing information or the delisting information is completed on the side chain; and the listing information or the delisting information is stored in the full node of the power trading operation organization in each distributed power trading area.
4. The method according to claim 1, characterized in that: The generating of the transaction information based on the listing information and the delisting information comprises: Starting the full node of the power trading operation organization in each distributed power trading area, so that the full node of the power trading operation organization makes a power quantity judgment based on the listing information and the delisting information; If the total amount of delisted electricity in the current power trading area is less than or equal to the total amount of listed electricity, all delisted electricity will be traded, and the corresponding transaction information will be generated; If the total amount of delisted electricity in the current power trading area is greater than the total amount of listed electricity, all listed electricity will be traded and corresponding transaction information will be generated.
5. The method according to claim 1, characterized in that The performing of contract signing on the side chain based on the transaction information and completing data uploading of the transaction information on the corresponding side chain includes: Distribute the transaction information to the alliance chain light nodes in the corresponding power trading area, so that the alliance chain light nodes can confirm and process the participating transaction information; After the alliance chain light node has completed the confirmation, a transaction contract corresponding to the alliance chain light node is generated, and the transaction contract is distributed to the alliance chain light node, so that the alliance chain light node performs the contract signing process based on the transaction contract; The contract information is obtained from the transaction contract after the signing process, and the obtained contract information is uploaded to the corresponding side chain through the full node of the power trading operation organization.
6. The method according to claim 1, characterized in that Before aggregating and processing the contract information in each distributed power trading area on the side chain, the method further includes: The full nodes of the power trading operation organizations in each distributed power trading area monitor the contract information on their respective side chains; If the contract status in the contract information changes, the contract information is updated based on the changed contract status to obtain updated contract information; The updated contract information is uploaded to the corresponding side chain.
7. The method according to any one of claims 1 to 6, characterized in that: After the transaction summary data is uploaded to the main chain, the method further includes: Based on the full node of the electric power dispatching organization, the transaction summary data corresponding to each of the distributed power trading areas is obtained from the main chain, so that the full node of the electric power dispatching organization performs subsequent data analysis work based on the transaction summary data.
8. A distributed power listing and trading device, characterized in that: include: Building modules for building a power listing and trading alliance chain including a main chain and a side chain; The listing and transaction module is used to complete the data chain of listing information or delisting information on the side chain; Generate transaction information based on the listing information and the delisting information, and complete data chaining of the transaction information on the corresponding side chain; A contract signing module, used to perform contract signing processing on the side chain based on the transaction information, and complete data chaining of the contract information obtained after signing on the corresponding side chain; The main chain data on-chain module is used to aggregate and process the contract information in each distributed power trading area on the side chain to obtain corresponding transaction summary data; and complete the data on-chain of the transaction summary data on the main chain.
9. A storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction executes an operation corresponding to the distributed power listing transaction method according to any one of claims 1 to 7.
10. A device comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the distributed power listing trading method according to any one of claims 1-7.
Citation Information
Patent Citations
Energy data block chain uploading system and method based on error proof
CN114401095A
Virtual power plant transaction mechanism based on main-side chain structure
CN115511627A
Virtual power plant distributed transaction method and device based on block chain technology
CN115760396A
Block chain smart contract-based power listing transaction method, apparatus and device, and medium
CN116542769A
