A power transaction platform server, a client and a clearing case exchange method
By employing a step-by-step encryption method in the electricity market trading platform, the problem of data leakage during case exchange was solved, ensuring the information security of market participants and supporting the exchange of case files and laboratory analysis within the platform.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-05
- Publication Date
- 2026-04-07
AI Technical Summary
The existing power market trading platform poses a risk of data leakage during the case exchange process, and case documents cannot be effectively exchanged within the trading platform, affecting the information security of market participants.
A step-by-step encryption method is adopted. The server encrypts and compresses the case information file for storage. The client encrypts the file to form a case exchange file during export. The file is then decrypted and verified at the target location before being stored in the platform database. This ensures that the case file can only be exchanged within the trading platform and prevents data leakage.
It ensures the security of core data of market participants in case files, prevents the risk of human leakage, realizes the secure exchange of case files within the trading platform, and supports case inversion and analysis in a laboratory environment.
Smart Images

Figure CN111046093B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automation of electricity market trading platforms, specifically to a method for exchanging the server, client, and clearing cases of an electricity spot market trading platform. Background Technology
[0002] The electricity spot market is currently in the pilot construction phase. The clearing results of the spot market need to be released to market participants in a timely manner, with participants particularly concerned about economic data such as traded electricity, traded volume, and traded prices. To compare, analyze, and verify the accuracy of the market clearing results, the electricity market trading platform must provide multi-case management functionality, enabling snapshots and simulations of complete data slices involved in the clearing calculations under different scenarios. Case exchange is a crucial part of the simulation process and must ensure the secure exchange of case data from the operating environment to the simulation verification environment, especially regarding the confidential data of market participants; leaks must be strictly prevented during the exchange. Therefore, a secure and reliable case exchange method is a vital function of the electricity market trading platform.
[0003] Therefore, a technical solution is needed to overcome the shortcomings of existing technologies. Summary of the Invention
[0004] To overcome the shortcomings of the prior art, the present invention provides a method for exchanging power market trading platform server, client and clearing cases in power market transaction clearing.
[0005] A server-side application for an electricity market trading platform includes: a case service module and a loading module;
[0006] The case service module is used to compress and encrypt the data of power market optimization and clearing in the platform database into a case information file according to the data type and store it.
[0007] The loading module is used to extract and decompress the stored case information files into power market optimization and clearing data and store it in the platform database.
[0008] Preferably, the server further includes a file storage module for storing case information files and case information.
[0009] Preferably, the file storage module includes: a case information file submodule and a case information table;
[0010] The case information file submodule is used to store case information files;
[0011] The case information table is used to store case information corresponding to the case information file;
[0012] The case information includes: case ID and creation time.
[0013] Preferably, the file storage module is a file database.
[0014] Preferably, the case service module includes:
[0015] The data output submodule is used to output the data from the power market optimization and clearing process in the platform database to a local temporary folder according to the data type. Then, the entire folder is encrypted and compressed to generate a case information file, and case information is generated at the same time.
[0016] The case storage submodule is used to store the case information file into the file storage module, and at the same time add a record to the case information table to store the case information.
[0017] Preferably, the loading module includes:
[0018] The data generation submodule is used to read the case information file from the file database based on the case ID to be loaded, and decrypt and decompress it to a local folder;
[0019] The data storage submodule is used to write data from the local folder into the corresponding data tables in the platform database according to their types.
[0020] Preferably, the data types include: physical models, economic models, planning data, declaration data, clearing data, and statistical data;
[0021] The data for the electricity market optimization and clearing process includes input data, output data, and intermediate process data.
[0022] Preferably, the server is installed in the electricity market trading environment or in the electricity market trading laboratory environment.
[0023] Preferably, the case ID has a fixed length and includes: region, trading instrument, trading period, effective time, and instance number.
[0024] Based on the same inventive concept, this invention also provides: a power market trading platform client, comprising:
[0025] File encryption module: used to extract case information files stored on the power market trading platform server, then encrypt them to form case exchange files, and output them to the target location;
[0026] The file decryption module is used to read, decrypt, decompress, and verify the case exchange files at the target location to form case files, which are then stored in the power market trading platform server.
[0027] Preferably, the file encryption module includes:
[0028] The file reading submodule is used to read the case information corresponding to the case ID from the case information table of the power market trading platform server based on the specified case ID, and to obtain the corresponding case information file from the file database of the power market trading platform server.
[0029] The case exchange file generation submodule is used to encrypt and compress the case exchange file, generate the case exchange file, and output it to the target location.
[0030] The target location is the local directory.
[0031] Preferably, the file decryption module is specifically used for:
[0032] The case exchange file is read from the local directory and decompressed and decrypted to obtain the file header, case information file, case information, and verification code. The case information file is verified using the verification code. If the verification is successful, the case information file is stored in the file database of the power market trading platform, and the case information is stored in the case information table of the power market trading platform server.
[0033] The verification includes: verifying the validity, correctness and completeness of the case exchange file.
[0034] Preferably, the file header includes: a signature, the length of the case information, and the length of the case information file;
[0035] The case information includes: Case ID, Transaction Sequence ID, Case Name, Effective Time, Expiration Time, Creation Time, Modification Time, Remarks, Case Application Number, and Case File Path.
[0036] Preferably, the checksum is generated by the CRC32 algorithm and is the result of the CRC32 algorithm calculation of the file header, case information, and case information file.
[0037] Preferably, the client is installed in the electricity market trading environment or in the electricity market trading laboratory environment.
[0038] Based on the same inventive concept, this invention also provides a method for exchanging clearing cases in the electricity market, comprising:
[0039] The power market trading platform server compresses and encrypts the power market optimization and clearing data in the platform database into a case information file according to data type and stores it.
[0040] The electricity market trading platform client extracts the stored case information file, encrypts it to form a case exchange file, and outputs it to the target location;
[0041] The electricity market trading platform client reads, decrypts, decompresses, and verifies the case exchange files at the target location to form case files, which are then stored in the electricity market trading platform server.
[0042] The server of the electricity market trading platform extracts and decompresses the stored case information files into electricity market optimization and clearing data, which is then stored in the platform database.
[0043] Preferably, the power market trading platform server compresses and encrypts the power market optimization and clearing data into a case information file according to data type and stores it, including:
[0044] The server-side of the power market trading platform, installed in the power market trading environment, outputs the power market optimization and clearing data from the power market trading platform database in the operating environment to a local temporary folder according to the data type, and then encrypts and compresses the entire folder to generate a case information file.
[0045] The case information file is stored in the file storage module, and a record is added to the case information table, storing the case information.
[0046] The case information includes: Case ID and Creation Time.
[0047] Preferably, the electricity market trading platform client extracts the stored case information file, encrypts it to form a case exchange file, and outputs it to the target location, including:
[0048] The electricity market trading platform client installed in the electricity market trading operation environment reads the case information corresponding to the case ID from the case information table of the electricity market trading platform server based on the specified case ID, and obtains the corresponding case information file from the file database of the electricity market trading platform server;
[0049] Generate a case exchange file according to the set case exchange format, encrypt the case exchange file, and output it to the target location according to the preset file naming convention;
[0050] The target location is the local directory.
[0051] Preferably, the electricity market trading platform client reads, decrypts, and verifies the case exchange file at the target location to form a case file, which is then stored in the electricity market trading platform server, including:
[0052] The power market trading platform client installed in the power market trading test environment reads the case exchange file from the local directory, and decompresses and decrypts the case exchange file to form a case information file and case information; the case information file is verified, and if it passes the verification, the case information file is stored in the file database of the power market trading platform, and the case information is stored in the case information table of the power market trading platform;
[0053] The decompressed and decrypted files include a file header, case information, case information file, and verification code;
[0054] The verification includes: verifying the validity, correctness and completeness of the case exchange file.
[0055] Preferably, the power market trading platform server extracts and decompresses the stored case information files into power market optimization and clearing data, which is then stored in the platform database, including:
[0056] The power market trading platform server installed in the power market trading test environment reads the case information file from the file database based on the case ID to be loaded, and decrypts and decompresses it to a local folder;
[0057] The data in the local folder is written into the corresponding data tables in the database of the power market trading platform installed in the power market trading test environment, according to their data types.
[0058] Compared with the closest existing technology, the technical solution provided by the present invention has the following beneficial effects:
[0059] 1. The present invention provides a power market trading platform server, comprising: a case service module and a loading module; the case service module is used to compress and encrypt power market optimization and clearing data in the platform database into a case information file according to data type and store it; the loading module is used to extract and decompress the stored case information file into power market optimization and clearing data and store it in the platform database; the case information exchange method of the present invention relies entirely on the power market trading platform to prevent the case files from being cracked after loss.
[0060] 2. The present invention provides a method for exchanging power market clearing cases, comprising: a case service module of the power market trading platform server compressing and encrypting power market optimization clearing data in the platform database into a case information file according to data type and storing it; a file encryption module of the power market trading platform client extracting the stored case information file, encrypting it to form a case exchange file, and outputting it to a target location; a file decryption module of the power market trading platform client reading, decrypting, decompressing, and verifying the case exchange file at the target location to form a case file, which is then stored in the power market trading platform server; and a loading module of the power market trading platform server extracting and decompressing the stored case information file into power market optimization clearing data and storing it in the platform database. The case information exchanged in this invention adopts a step-by-step encryption method: the server encrypts and compresses the case when saving it, and the client encrypts it when exporting it, ensuring the security of the core data of market members in the case file. In addition, it also ensures that the case file can only be exchanged within the trading platform, guaranteeing that there is no risk of human leakage of the core information of market members participating in power market transactions during the case file exchange process; the multi-encrypted case exchange file cannot be decrypted offline.
[0061] 3. This invention ensures that case files can only be exchanged between power market trading platforms in the same scenario, which not only guarantees the information security of market participants within the scope of operation, but also allows for case inversion and analysis in a laboratory environment. Attached Figure Description
[0062] Figure 1 This is a schematic diagram of the power market transaction clearing system of the present invention. Detailed Implementation
[0063] The present invention will now be described in further detail with reference to the accompanying drawings.
[0064] Example 1
[0065] like Figure 1 As shown, this patent provides a method for exchanging clearing cases in the electricity market, including naming methods, formats, encryption methods, and exchange methods for case exchange files:
[0066] First, the naming convention for case exchange files.
[0067] Case exchange files have the extension .cas and are named "Case ID_Creation Time.cas". The case ID is unique, all uppercase, and contains five fields: region, trading instrument, trading period, effective time, and instance number, separated by underscores, with a fixed length of 30 bytes. The region uses a two-letter code, e.g., Fujian FJ; the trading instrument uses a two-letter code followed by a number, with the number used for classification; common instruments include Electricity (EN), Ancillary Services (AS), Capacity (CA), Transmission Rights (TR), and Generation Rights (GR); the trading period contains three bytes: Multi-day (DX), Day-ahead (D-1), Intraday (D+0), and Real-time (T+0); the effective time format is YYYYMMDDHHMM, representing year, month, day, hour, and minute respectively. For multi-day and day-ahead markets, HHMM is the timestamp of case generation; finally, the number is the code for the clearing application, e.g., CASE0 represents the main clearing application, CASE1 represents the minor application 1, CASE2 represents the minor application 2, and so on.
[0068] Second, the format of the case exchange files.
[0069] The case exchange file is encrypted. The decompressed file includes a file header, exported case information, encrypted and compressed case files, and a verification code.
[0070] The file header contains a signature, the length of the exported case information, and the length of the encrypted and compressed case file. The signature is 0xcecfcecf.
[0071] The exported case information includes Case ID, Transaction Sequence ID, Case Name, Effective Time, Expiration Time, Creation Time, Modification Time, Remarks, Case Application Number, and Case File Path.
[0072] The encrypted and compressed case files are encrypted and compressed case data that needs to be exchanged. The data files are encrypted by the case service, decrypted by the case service, and stored in the file database of the trading platform.
[0073] The checksum is generated by the CRC32 algorithm and is the result of the CRC32 algorithm calculation of the file header, exported case information, and encrypted and compressed case file.
[0074] Third, case compression and encryption methods.
[0075] A two-tiered encryption method is employed, involving both the server and client sides. Both server and client encryption utilize dynamic passwords, consisting of a randomly generated static password and a dynamic password specific to the case study. The server encrypts and compresses the case study files, storing the compressed files in a file database. The client retrieves the files from the database, generates a case exchange file according to the case exchange format, and encrypts the exchange file as well. The decryption process begins with the client program decrypting the exchange file. Upon successful decryption, the file is verified for validity, correctness, and integrity. If verified, it is stored in the database. Then, when the trading platform loads a case study, it invokes the case study service to decrypt and decompress the file, completing the case loading and enabling case analysis.
[0076] Fourth, the method for exchanging case files.
[0077] Step 1: The server in the operating environment compresses and encrypts the data from the power market optimization and clearing process in the platform database into a case information file according to the data type and stores it.
[0078] Step 2: The client in the runtime environment extracts the stored case information file, then encrypts it to form a case exchange file, and outputs it to the target location;
[0079] Step 3: The client in the laboratory environment reads, decrypts, decompresses, and verifies the case exchange file at the target location to form a case file, which is then stored on the server.
[0080] Step 4: The loading module on the server side of the laboratory environment extracts and decompresses the stored case information file into optimized clearing data and stores it in the platform database of the laboratory environment. The case information exchanged in this invention adopts a step-by-step encryption method to ensure the security of the core data of market members in the case file, ensure that the case file can only be exchanged within the trading platform, and at the same time, the multi-encrypted case exchange file cannot be decrypted offline.
[0081] Specifically:
[0082] Step 1: On the power market trading platform A, through the case service, the input, output and intermediate process data of power market optimization and clearing are categorized and output to a local temporary folder according to physical model, economic model, planning data, declaration data, clearing data and statistical data. Then, the entire folder is encrypted and compressed to generate encrypted and compressed case files, which are stored in the file database. At the same time, a record is added to the case information table, storing the case information of the specified case ID.
[0083] Step 2: On the power market trading platform A, the client program is invoked through the interface to read the case information of the specified case ID from the case information table in the database, obtain the encrypted and compressed case file from the file database, generate the case exchange file according to the case exchange format, encrypt the case exchange file, and output it to a local file according to the file naming convention.
[0084] Step 3: On the power market trading platform B, the client program is called through the interface to read the case exchange file exchanged locally, decrypt the case exchange file, and verify the validity, correctness and integrity of the file after successful decryption. If the verification is successful, the case information is written into the case information table of the database and the encrypted and compressed case data is stored in the file database.
[0085] Step 4: On the power market trading platform B, the server program is called through the interface to read the encrypted and compressed case file from the file database, decrypt and decompress it to the local temporary folder, generate case input, output and intermediate data files, and write them into the corresponding data tables in the database in the order of physical model, economic model, planning data, declaration data, clearing data and statistical data, thus completing the case loading process.
[0086] Example 2:
[0087] A typical application scenario for this invention is the exchange of data between an electricity market trading platform and a laboratory simulation verification platform. The entire embodiment involves four steps, including:
[0088] Step 1: The server in the operating environment compresses and encrypts the data from the power market optimization and clearing process in the platform database into a case information file according to the data type and stores it.
[0089] Step 2: The client in the runtime environment extracts the stored case information file, then encrypts it to form a case exchange file, and outputs it to the target location;
[0090] Step 3: The client in the laboratory environment reads, decrypts, decompresses, and verifies the case exchange file at the target location to form a case file, which is then stored on the server.
[0091] Step 4: The loading module on the server side of the laboratory environment extracts and decompresses the stored case information file into optimized clearing data and stores it in the platform database of the laboratory environment. The case information exchanged in this invention adopts a step-by-step encryption method to ensure the security of the core data of market members in the case file, ensure that the case file can only be exchanged within the trading platform, and at the same time, the multi-encrypted case exchange file cannot be decrypted offline.
[0092] Specifically as follows:
[0093] Suppose that on August 4, 2019, the spot market bidding for electricity in a certain province (coded as MS) was shut down. Operator Xiao Yang verified and confirmed various data. After confirming that everything was correct, he started the optimization and clearing calculation, which was completed at 16:35. Xiao Yang entered the case management screen, clicked "save case" on the operation interface, and subsequently generated a calculation case with the case ID MS_EN1_D-1_E201908051635_CASE0, containing inputs, outputs, and intermediate results such as the physical model, economic model, planned data, declaration data, clearing data, and statistical data.
[0094] Xiao Yang submitted the clearing results to his superiors. After approval by leaders of various departments, the clearing results were officially released at 17:30 that day. After receiving the day-ahead spot market clearing results for August 5, 2019, power plant A's technician, Xiao Wu, checked the electricity volume and price data, which were of most concern to him. He found that the electricity price was significantly lower than the previous day, so he raised questions with the spot trading department.
[0095] At 18:50, Xiao Yang responded to the questions by exporting the case from the spot trading platform, generating a case exchange file MS_EN1_D-1_E201908051635_CASE0_20190804185025.cas, and transferring this file to the laboratory's power market simulation verification platform. He then imported and loaded the case, restarted the optimized clearing calculation, and completed the calculation at 19:05, saving the case as MS_EN1_D-1_E201908051905_CASE1. He then switched to the case comparison screen, loading two cases, MS_EN1_D-1_E201908051635_CASE0 and FJ_EN1_D-1_E201908051905_CASE1. Clicking the comparison button and viewing various data, results, and statistical indicators, he found that the two calculation results were completely consistent. The clearing result from the spot trading platform was entirely correct, and there were no technical issues.
[0096] Finally, the relevant departments conducted a comprehensive analysis of transaction declarations, power load, incoming power, outgoing power, and transmission channels, and found the real reason why the electricity price was lower than yesterday. Power Plant A agreed with the response from the spot trading department.
[0097] Example 3:
[0098] The power market trading platform server involved in this invention has two modules, one installed in the power market trading operation environment and the other installed in the power market trading laboratory environment, including: a case service module and a loading module;
[0099] The case service module is used to compress and encrypt the data from the power market optimization and clearing process in the platform database into a case information file according to the data type and then store it.
[0100] The loading module is used to extract and decompress the stored case information files into power market optimization and clearing data and store it in the platform database.
[0101] The server also includes a file storage module, which is used to store case information files and case information.
[0102] The file storage module includes: a case information file submodule and a case information table;
[0103] The case information file submodule is used to store case information files;
[0104] The case information table is used to store case information corresponding to the case information file;
[0105] The case information includes: Case ID and Creation Time.
[0106] The file storage module is a file database.
[0107] The case service module includes:
[0108] The data output submodule is used to output the data from the power market optimization and clearing process in the platform database to a local temporary folder according to the data type. Then, the entire folder is encrypted and compressed to generate a case information file, and case information is generated at the same time.
[0109] The case storage submodule is used to store case information files into the file storage module, and at the same time add a record to the case information table to store the case information.
[0110] The loaded modules include:
[0111] The data generation submodule is used to read case information files from the file database based on the case ID to be loaded, and then decrypt and decompress them to a local folder;
[0112] The data storage submodule is used to write data from the local folder into the corresponding data tables in the platform database according to their types.
[0113] Data types include: physical models, economic models, planning data, declaration data, clearing data, and statistical data;
[0114] The data for the optimization and clearing of the electricity market includes input data, output data, and intermediate process data.
[0115] The case ID has a fixed length and includes: region, trading instrument, trading period, effective time, and instance number.
[0116] Example 4:
[0117] The electricity market trading platform client involved in this invention has two components, one installed in the electricity market trading operating environment and the other installed in the electricity market trading laboratory environment, including:
[0118] File encryption module: used to extract case information files stored on the power market trading platform server, then encrypt them to form case exchange files, and output them to the target location;
[0119] The file decryption module is used to read, decrypt, decompress, and verify the case exchange files at the target location to form case files, which are then stored in the power market trading platform server.
[0120] The file encryption module includes:
[0121] The file reading submodule is used to read the case information corresponding to the case ID from the case information table of the power market trading platform server based on the specified case ID, and to obtain the corresponding case information file from the file database of the power market trading platform server.
[0122] The case exchange file generation submodule is used to encrypt and compress the case exchange file, generate the case exchange file, and output it to the target location.
[0123] The target location is the local directory.
[0124] The file decryption module is specifically used for:
[0125] Read the case exchange file from the local directory, and decompress and decrypt the case exchange file to obtain the file header, case information file, case information and verification code; use the verification code to verify the case information file, and if it passes the verification, store the case information file in the file database of the power market trading platform, and store the case information in the case information table of the power market trading platform server;
[0126] Verification includes: validating the validity, correctness, and completeness of the case exchange files.
[0127] The file header includes: the signature, the length of the case information, and the length of the case information file.
[0128] Case information includes: Case ID, Transaction Sequence ID, Case Name, Effective Time, Expiration Time, Creation Time, Modification Time, Remarks, Case Application Number, and Case File Path.
[0129] The checksum is generated by the CRC32 algorithm and is the result of the CRC32 algorithm calculation of the file header, case information, and case information file.
[0130] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0131] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0132] These computer program instructions may also be stored in a device that can boot a computer or other programmable data processing device.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Those skilled in the art can still make modifications or equivalent substitutions to the specific implementation of the present invention by referring to the above embodiments. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention are within the protection scope of the claims of the present invention pending approval.
Claims
1. A method for exchanging clearing cases in the electricity market, characterized in that, include: The server-side of the power market trading platform installed in the power market trading environment compresses and encrypts the power market optimization and clearing data in the platform database of the power market trading platform according to the data type into a case information file and stores it. The electricity market trading platform client installed in the electricity market trading environment extracts the stored case information files, then encrypts them to form case exchange files, and outputs them to the local directory; The client of the power market trading platform installed in the power market trading test environment reads, decrypts, decompresses, and verifies the case exchange files in the local directory to form case files, which are then stored in the server of the power market trading platform installed in the power market trading test environment. The server-side of the power market trading platform installed in the power market trading test environment extracts and decompresses the stored case information files into power market optimization and clearing data, which is then stored in the platform database of the power market trading platform in the test environment. The encryption process for both the server-side and client-side of the power market trading platform, installed within the power market trading environment, is based on randomly generated static passwords and dynamic passwords relevant to the specific case.
2. The exchange method according to claim 1, characterized in that, The power market trading platform server installed in the power market trading environment compresses and encrypts the power market optimization and clearing data into a case information file according to data type and stores it, including: The server-side of the power market trading platform, installed in the power market trading environment, outputs the power market optimization and clearing data from the power market trading platform database in the operating environment to a local temporary folder according to the data type, and then encrypts and compresses the entire folder to generate a case information file. The case information file is stored in the file storage module, and a record is added to the case information table, storing the case information. The case information includes: Case ID and Creation Time.
3. The exchange method according to claim 2, characterized in that, The power market trading platform client installed in the power market trading environment extracts the stored case information file, encrypts it to form a case exchange file, and outputs it to the local directory, including: The electricity market trading platform client installed in the electricity market trading operation environment reads the case information corresponding to the case ID from the case information table of the electricity market trading platform server based on the specified case ID, and obtains the corresponding case information file from the file database of the electricity market trading platform server; Generate a case exchange file according to the set case exchange format, encrypt the case exchange file, and output it to the local directory according to the preset file naming convention.
4. The exchange method according to claim 3, characterized in that, The power market trading platform client installed in the power market trading test environment reads, decrypts, and verifies the case exchange files in the local directory to form case files, which are then stored in the power market trading platform server installed in the power market trading test environment, including: The power market trading platform client installed in the power market trading test environment reads the case exchange file from the local directory, and decompresses and decrypts the case exchange file to form a case information file and case information; the case information file is verified, and if it passes the verification, the case information file is stored in the file database of the power market trading platform in the test environment, and the case information is stored in the case information table of the power market trading platform in the test environment. The decompressed and decrypted files include a file header, case information, case information file, and verification code; The verification includes: verifying the validity, correctness and completeness of the case exchange file.
5. The exchange method according to claim 4, characterized in that, The power market trading platform server installed in the power market trading test environment extracts and decompresses the stored case information files into power market optimization and clearing data, which is then stored in the platform database of the power market trading platform in the test environment, including: The power market trading platform server installed in the power market trading test environment reads the case information file from the file database based on the case ID to be loaded, and decrypts and decompresses it to a local folder; The data in the local folder is written into the corresponding data tables in the database of the power market trading platform installed in the power market trading test environment, according to their data types.
6. A server-side application for an electricity market trading platform, characterized in that, include: The power market trading platform server is installed in the power market trading operation environment and in the power market trading laboratory environment. The power market trading platform server installed in the power market trading operation environment includes a case service module, and the power market trading platform server installed in the power market trading laboratory environment includes a loading module. The case service module is used to compress and encrypt the power market optimization and clearing data in the platform database of the power market trading platform in the operating environment into a case information file according to the data type and store it. The loading module is used to extract and decompress the stored case information file into power market optimization and clearing data and store it in the platform database of the power market trading platform in the laboratory environment. The case information file extracted by the loading module is formed by reading, decrypting, decompressing, and verifying the case exchange file stored in the local directory after it is read by the power market trading platform client installed in the power market trading test environment; the case exchange file stored in the local directory is formed by encrypting the case information file stored by the case service module after it is installed in the power market trading operation environment by the power market trading platform client. The encryption process for both the server-side and client-side of the power market trading platform installed in the power market trading environment is based on randomly generated static passwords and dynamic passwords related to the case.
7. The server according to claim 6, characterized in that, The server-side components of the power market trading platform, installed in the power market trading environment, also include a file storage module for storing case information files and case information.
8. The server according to claim 7, characterized in that, The file storage module includes: a case information file submodule and a case information table; The case information file submodule is used to store case information files; The case information table is used to store case information corresponding to the case information file; The case information includes: case ID and creation time.
9. The server according to claim 8, characterized in that, The file storage module is a file database.
10. The server according to claim 9, characterized in that, The case service module includes: The data output submodule is used to output the data from the power market optimization and clearing process in the platform database to a local temporary folder according to the data type. Then, the entire folder is encrypted and compressed to generate a case information file, and case information is generated at the same time. The case storage submodule is used to store the case information file into the file storage module, and at the same time add a record to the case information table to store the case information.
11. The server according to claim 10, characterized in that, The loading module includes: The data generation submodule is used to read the case information file from the file database based on the case ID to be loaded, and decrypt and decompress it to a local folder; The data storage submodule is used to write data from the local folder into the corresponding data tables in the platform database according to their types.
12. The server according to claim 6, characterized in that, The data types include: physical models, economic models, planning data, declaration data, clearing data, and statistical data; The data for the electricity market optimization and clearing process includes input data, output data, and intermediate process data.
13. The server according to claim 8, characterized in that, The case ID has a fixed length and includes: region, trading instrument, trading period, effective time, and instance number.
14. A client application for an electricity market trading platform, characterized in that: include: The power market trading platform client installed in the power market trading operation environment and the power market trading platform client installed in the power market trading test environment include a file encryption module and a file decryption module, respectively. The file encryption module is used to extract case information files stored in the power market trading platform server installed in the power market trading operation environment, encrypt them to form case exchange files, and output them to the local directory. The file decryption module is used to read, decrypt, decompress, and verify the case exchange files in the local directory to form case files, which are then stored in the power market trading platform server installed in the power market trading test environment. The case information file extracted by the file encryption module is formed by compressing and encrypting the data of power market optimization and clearing in the platform database of the power market trading platform installed in the power market trading operation environment according to the data type. The encryption process for both the server-side and client-side of the power market trading platform installed in the power market trading environment is based on randomly generated static passwords and dynamic passwords related to the case.
15. The client according to claim 14, characterized in that, The file encryption module includes: The file reading submodule is used to read the case information corresponding to the case ID from the case information table of the power market trading platform server installed in the power market trading operation environment based on the specified case ID, and to obtain the corresponding case information file from the file database of the power market trading platform server installed in the power market trading operation environment. The case exchange file generation submodule is used to encrypt and compress the case exchange file, generate the case exchange file, and output it to the local directory.
16. The client according to claim 15, characterized in that, The file decryption module is specifically used for: Read the case exchange file from the local directory, and decompress and decrypt the case exchange file to obtain the file header, case information file, case information and verification code; use the verification code to verify the case information file, and if it passes the verification, store the case information file in the file database of the power market trading platform in the test environment, and store the case information in the case information table of the power market trading platform server installed in the power market trading test environment; The verification includes: verifying the validity, correctness and completeness of the case exchange file.
17. The client according to claim 16, characterized in that, The file header includes: a signature, the length of the case information, and the length of the case information file; The case information includes: Case ID, Transaction Sequence ID, Case Name, Effective Time, Expiration Time, Creation Time, Modification Time, Remarks, Case Application Number, and Case File Path.
18. The client according to claim 16, characterized in that, The checksum is generated by the CRC32 algorithm and is the result of the CRC32 algorithm calculation of the file header, case information, and case information file.
Citation Information
Patent Citations
Data processing, encrypting and integrity verification method, identity authentication method and system
CN106790250A
Automatic interaction method and system for power market trading competitive price data
CN108564456A