A data trust transaction method of a shared charging pile system
By building a data trust model in the shared charging pile system and utilizing hash algorithms and blockchain technology, the problem of data privacy leakage in shared charging piles has been solved, and the security, trustworthiness and traceability of charging transactions have been achieved, thereby improving the stability and fairness of the system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
- Filing Date
- 2022-12-26
- Publication Date
- 2026-05-08
AI Technical Summary
In shared charging stations, the identity privacy and transaction information of electric vehicle owners and charging station owners are transmitted in plaintext, posing a risk of data privacy leakage. The lack of unified, secure, and reliable transaction standards leads to data abuse and unfairness.
Construct a data trust model for the shared charging pile system, generate keys through hash algorithms, use blockchain nodes for data encryption and verification, establish unified business relationships and data standards, and achieve anonymity protection and traceability of charging transactions.
It ensures the security and integrity of charging transaction data, achieves data anonymity protection, improves the robustness and fairness of the system, and reduces resource consumption.
Smart Images

Figure CN115907761B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of shared charging pile technology, and more specifically to a trusted data transaction method for a shared charging pile system. Background Technology
[0002] Shared charging stations, as a supporting transportation infrastructure for the new energy electric vehicle industry, have received high attention from the government, generating economic benefits by transferring the right to use idle private charging stations. However, with the widespread application of shared charging stations in the market, private data such as the personal identity, phone number, bank card number, and vehicle VIN of electric vehicle owners, as well as the geographical location, phone number, parking space information, and charging transaction information of electric charging station owners, are all communicated in plaintext between the devices and platform servers. This has led to increasingly prominent privacy leaks during the shared charging process, gradually becoming a significant factor hindering the market promotion of shared charging stations.
[0003] The charging transaction process of shared charging stations carries a large amount of identity and transaction information of both electric vehicle owners and charging station owners. Currently, most shared charging stations use plaintext transmission without unified standards, which easily leads to data privacy leaks and data misuse. In the current application scenarios of the shared charging station market, the charging transaction process lacks supervision and traceability, and data transactions are inherently unfair.
[0004] Existing shared charging transaction methods directly communicate and negotiate via blockchain, with data owners then transmitting the data required by data buyers through other channels and platforms. In this approach, the blockchain merely serves as a communication channel between the two parties; electricity data, identity information, and transaction data during the charging process are transmitted in plaintext, still posing a risk of data leakage.
[0005] The current charging standard system lacks a unified and reliable transaction specification for shared charging. A basic data transaction information mechanism is needed to ensure the security and reliability of charging transaction data for shared charging piles, as well as the supervision and traceability of transaction records. Summary of the Invention
[0006] To address the technical problems existing in the prior art, this invention provides a trusted data transaction method for a shared charging pile system. By constructing a data transaction information method within the shared charging pile system, it ensures the secure and trusted transaction of charging transaction data. It also uses digital signatures to anonymize privacy data such as charging transactions, ensuring that the charging transaction process information is monitorable and traceable, and guaranteeing the privacy and integrity of data during the shared charging process and transactions.
[0007] This invention can be achieved by adopting the following technical solutions:
[0008] A method for trusted data transactions in a shared charging station system, the method comprising:
[0009] S1. Construct a trusted data model for shared charging piles and establish unified business relationships and data standards for the shared charging pile system;
[0010] S2. When a charging order is detected, the relevant charging data from the charging control terminal, blockchain node, and electric vehicle owner's mobile device are loaded into the shared charging pile data trust model, and a private key S is generated. K Safety parameters R and certification certificate K CA The public key P is calculated. K ;
[0011] S3. Divide the charging data into N data blocks and generate keys at each level. Calculate the hash value corresponding to each data block and transmit the hash value corresponding to each data block to the blockchain node.
[0012] S4. Based on the trusted model of shared charging data, the charging control terminal and the electric vehicle owner's mobile terminal generate a trusted smart contract for charging data transactions. Blockchain nodes exchange and verify keys, and billing information is synchronized to other blockchain nodes to complete the trusted transaction of charging data.
[0013] In the preferred technical solution, the construction of a trusted data model for shared charging piles includes: building it based on the data relationships between the charging control terminal, the electric vehicle owner's mobile terminal, the IPFS system, and the blockchain nodes.
[0014] Specifically, the data trust transaction method for a shared charging pile system is characterized in that the data relationship between the charging control terminal, the electric vehicle owner's mobile terminal, the IPFS system, and the blockchain node includes:
[0015] The charging control terminal and the IPFS system establish a data interaction channel. The charging control terminal encrypts and uploads the charging transaction data, and the IPFS system returns the storage address of the encrypted data.
[0016] The charging control terminal performs a hash operation on the electricity transaction data to obtain a data hash, and then uploads the data hash to the blockchain node to complete the data hash on-chain process.
[0017] The electric vehicle owner's mobile device requests charging data transactions from the charging control terminal. The charging control terminal returns an encrypted data storage address to the electric vehicle owner's mobile device. The electric vehicle owner's mobile device downloads the encrypted data from the IPFS system using the returned storage address. The electric vehicle owner's mobile device verifies the data consistency of the encrypted data provided by the charging control terminal through blockchain nodes.
[0018] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0019] This invention provides a trusted data transaction method for a shared charging pile system. By constructing a trusted data transaction method based on a hash algorithm within the shared charging pile system, the security, integrity, and non-disclosure of charging transaction data can be effectively guaranteed, offering advantages in system stability and resource consumption. Without changing the main working mode of the original system, MD5 digital signature technology is used to achieve anonymity protection of user information, ensuring the fairness of shared charging transaction data and demonstrating good system robustness. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0021] Figure 1 This is a flowchart illustrating the overall steps of the trusted data transaction method for the shared charging pile system in this invention embodiment;
[0022] Figure 2 This is a system architecture diagram of a shared charging pile in an embodiment of the present invention;
[0023] Figure 3 This is a schematic diagram of a trusted shared charging data model in an embodiment of the present invention;
[0024] Figure 4 This is a data relationship diagram of shared charging services in an embodiment of the present invention;
[0025] Figure 5 This is a flowchart of the shared charging data trust model loading process in an embodiment of the present invention;
[0026] Figure 6 This is a schematic diagram of trusted transactions of shared charging data in an embodiment of the present invention. Detailed Implementation
[0027] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments, and the implementation of the present invention is not limited thereto. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0028] Example 1:
[0029] The data trust transaction method for the shared charging pile system described in this invention mainly includes four steps: constructing a trustworthy charging data model, loading charging data into the trustworthy model, generating keys from charging data blocks at each level, and conducting trustworthy charging data transactions. The specific descriptions are as follows:
[0030] like Figure 1 The diagram illustrates the overall steps of a trusted data transaction method for a shared charging station system. The method includes the following steps:
[0031] S1. Constructing a trusted data model for shared charging piles and establishing unified business relationships and data standards for the shared charging pile system can improve the efficiency of data collection, storage, processing, transmission, and retrieval during the charging transaction process, and save system time.
[0032] like Figure 2 The diagram shows the architecture of a shared charging station system. This system includes a charging control terminal, blockchain nodes, and an IPFS (Inter-Planetary File System). The charging control terminal communicates with the blockchain nodes via CAN or serial port. The IPFS system communicates with the blockchain nodes point-to-point, using methods such as 4G / 5G or wired Ethernet. The blockchain nodes enable secure and reliable transactions between electric vehicle owners and charging stations, and also act as nodes for point-to-point sharing transactions. The IPFS system is a point-to-point distributed file storage system primarily used for system registration, smart contracts, and remote control of the charging system, enabling the monitoring and traceability of charging transaction information.
[0033] like Figure 3 As shown in the diagram, this is a schematic of a trusted data model for shared charging stations. This model is built upon the data relationships between the charging control terminal, the electric vehicle owner's mobile device, the IPFS (Inter-Planetary File System), and blockchain nodes. Figure 4 As shown in the diagram, the data relationship between the shared charging business, specifically the data relationships between the charging control terminal, the electric vehicle owner's mobile terminal, the IPFS system, and the blockchain nodes, includes:
[0034] The charging control terminal and the IPFS system establish a data interaction channel. The charging control terminal encrypts and uploads the charging transaction data, and the IPFS system returns the storage address of the encrypted data.
[0035] The charging control terminal performs a hash operation on the electricity transaction data to obtain a data hash, and then uploads the data hash to the blockchain node to complete the data hash on-chain process.
[0036] The electric vehicle owner's mobile device requests charging data transactions from the charging control terminal. The charging control terminal returns an encrypted data storage address to the electric vehicle owner's mobile device. The electric vehicle owner's mobile device downloads the encrypted data from the IPFS system using the returned storage address. The electric vehicle owner's mobile device verifies the data consistency of the encrypted data provided by the charging control terminal through blockchain nodes.
[0037] S2. When a charging order is detected, the relevant charging data from the charging control terminal, blockchain node, and electric vehicle owner's mobile terminal are loaded into the completed shared charging pile data trust model to provide basic data and public parameter sources for the charging transaction process and smart contract formation.
[0038] like Figure 5 As shown in the flowchart and data relationship diagram of the trusted shared charging model loading, the trusted charging model charging data loading is mainly completed by the charging control terminal, blockchain node, and electric vehicle owner's mobile terminal. When the electric vehicle owner's vehicle is charging at the charging control terminal, the charging control terminal sends a charging in progress message to the blockchain node; when the electric vehicle owner finishes charging at the charging control terminal, the charging control terminal sends a charging stop message to the blockchain node. The blockchain node considers the transition from the charging in progress message to the stop message sent by the charging control terminal as a detection of a charging order.
[0039] The relevant charging data from the charging control terminal, blockchain node, and electric vehicle owner's mobile device are loaded into the constructed shared charging pile data trust model, specifically including:
[0040] The blockchain node obtains charging demand information published by electric vehicle owners on their mobile devices. Based on this information, the blockchain node locates the target charging control terminal and then associates it with the electric vehicle owner's mobile device. The charging demand information includes the electric vehicle owner's contact number, license plate number, remaining SOC of the electric vehicle, remaining mileage of the electric vehicle, required voltage, required current, vehicle VIN, and required charging time period.
[0041] Obtain charging pile supply resource information from the charging control terminal, register with the blockchain node based on the charging pile supply resource information, and generate random public security parameters R and authentication certificate K upon successful registration. CA The charging pile supply resource information includes personal identification information, bank card information, contact number, geographical location of the charging control terminal, power of the charging control terminal, connection method of the charging control terminal, parking space, available time period, peak and off-peak time-of-use electricity price, and tariff rate.
[0042] Blockchain nodes randomly select a secure hash function based on addition cyclic group and multiplication cyclic group algorithms to generate private key S. K Then based on the private key S KSafety parameters R and certification certificate K CA The public key P is calculated. K Blockchain nodes push public and private key pairs to electric vehicle owners' mobile devices. The additive cyclic group and multiplicative cyclic group algorithms are hash calculation random element generation algorithms.
[0043] The blockchain node obtains the information published in real time by the charging control terminal during the charging process, and uses the public key P to transmit this information. K After verification with safety parameter R, the information is pushed to the electric vehicle owner's mobile device in real time. Information released in real time during charging includes operating status, charging voltage, charging current, charging start time, amount charged, charging cost, starting SOC, ending SOC, peak and off-peak electricity consumption, reason for shutdown, and charging bill.
[0044] S3. Divide the loaded charging data into N data blocks and generate keys for each block. Calculate the hash value for each data block and transmit the hash value to the blockchain node system. This allows for the reuse of the blockchain node system's computing channels, reducing memory resource overhead, maintaining data integrity and verifiability, and improving processing speed.
[0045] The amount of data generated by charging control terminals, blockchain nodes, and electric vehicle owners' mobile charging transactions is too large to be directly used in calculations. The data needs to be preprocessed to ensure the system's computing efficiency and the integrity and verifiability of the data.
[0046] Specifically, firstly, the charging control terminal fills and pads the charging transaction data according to the PKCS7 data filling rules by taking the 256-bit modulo; then, the filled and padded charging transaction data is divided into N data blocks (blocki).
[0047] Then, the charging control terminal uses the private key S K For each data block blocki, the group signature algorithm (MD5) is executed, and the generated data digest information is added to the end of the data block blocki before being stored in the IPFS system;
[0048] Finally, the charging control terminal calculates the hash value corresponding to each data block (blocki) containing digest information and transmits it to the blockchain node. The entire process is transmitted in encrypted form, ensuring data security, integrity, and privacy, while also improving system computing efficiency and reducing memory resource consumption by reusing system computing channels.
[0049] S4. Based on the trusted model of shared charging data, the charging control terminal and the electric vehicle owner's mobile terminal generate a trusted smart contract for charging data transactions. Blockchain nodes exchange and verify the secrets and synchronize the billing information to other blockchain nodes to complete the trusted transaction of charging data.
[0050] In the first phase, after the charging control terminal owner sees the data transaction request, they send the encrypted data address and symmetric key to the electric vehicle owner's mobile user. The electric vehicle owner's mobile user obtains the decrypted data block address and symmetric key, then downloads the data and verifies its validity and integrity. After successful verification, the electric vehicle owner's mobile user obtains charging authorization from the charging control terminal.
[0051] like Figure 6 As shown in the diagram, the trusted transaction of shared charging data includes step S4, which specifically includes:
[0052] After the electric vehicle owner's mobile user obtains charging authorization from the charging control terminal, a trusted smart contract for charging data transaction is formed, and the charging data transaction begins.
[0053] After receiving the charging bill information from the charging control terminal, the blockchain node initiates a transaction confirmation to the electric vehicle owner's mobile terminal user. The electric vehicle owner's mobile terminal user decrypts the bill using the symmetric key and verifies the accuracy and reasonableness of the bill before confirming the transaction.
[0054] Blockchain nodes use the system public key P K Extract the smart contract summary information and database address, generate a transaction log and upload it to the IPFS system. The blockchain node will then synchronize the billing information to other blockchain nodes to complete the trusted transaction of charging data.
[0055] In summary, this invention introduces blockchain technology based on hash algorithms to generate keys step by step, constructing a data transaction information method to ensure secure and reliable transactions of charging data for shared charging stations. Digital signatures are used to anonymize privacy data such as charging transactions, ensuring that information during the charging transaction process is monitorable and traceable, and guaranteeing data privacy and integrity during the shared charging process and transactions.
[0056] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.
Claims
1. A method for trusted data transactions in a shared charging pile system, characterized in that, Includes the following steps: S1. Construct a trusted data model for shared charging piles and establish unified business relationships and data standards for the shared charging pile system; The construction of a trusted data model for shared charging piles includes: building it based on the data relationships between charging control terminals, electric vehicle owner mobile terminals, the IPFS system, and blockchain nodes; The data relationships between the charging control terminal, the electric vehicle owner's mobile terminal, the IPFS system, and the blockchain nodes include: The charging control terminal and the IPFS system establish a data interaction channel. The charging control terminal encrypts and uploads the charging transaction data, and the IPFS system returns the storage address of the encrypted data. The charging control terminal performs a hash operation on the electricity transaction data to obtain a data hash, and then uploads the data hash to the blockchain node to complete the data hash on-chain process. The electric vehicle owner's mobile device requests charging data transactions from the charging control terminal. The charging control terminal returns an encrypted data storage address to the electric vehicle owner's mobile device. The electric vehicle owner's mobile device downloads the encrypted data from the IPFS system through the returned storage address. The electric vehicle owner's mobile device verifies the data consistency of the encrypted data provided by the charging control terminal through blockchain nodes. S2. When a charging order is detected, the relevant charging data from the charging control terminal, blockchain node, and electric vehicle owner's mobile device are loaded into the shared charging pile data trust model, and a private key S is generated. K Safety parameters R and certification certificates The public key P is calculated. K ; Step S2 specifically includes: The blockchain node obtains the charging demand information published by the electric vehicle owner's mobile terminal, finds the target charging control terminal based on the charging demand information, and then associates the charging control terminal with the electric vehicle owner's mobile terminal user. Obtain charging pile supply resource information from the charging control terminal, register with the blockchain node based on the charging pile supply resource information, and generate a random public security parameter R and an authentication certificate upon successful registration. ; Blockchain nodes randomly select a secure hash function based on addition cyclic group and multiplication cyclic group algorithms to generate private key S. K Then based on the private key S K Safety parameters R and certification certificates The public key P is calculated. K Blockchain nodes connect public and private P K Key S K Push notifications to electric vehicle owners' mobile devices; The blockchain node obtains the information released in real time by the charging control terminal during the charging process, verifies the information released in real time using the public key PK and security parameter R, and then pushes it to the electric vehicle owner's mobile terminal user in real time. S3. Divide the charging data into N data blocks and generate keys at each level. Calculate the hash value corresponding to each data block and transmit the hash value corresponding to each data block to the blockchain node. Step S3 specifically includes: The charging control terminal fills and pads the charging transaction data according to the PKCS7 data filling rules by taking the 256-bit modulo, and divides the filled and padded charging transaction data into N data blocks (blocki). The charging control terminal uses the private key SK to generate a data digest information by performing a group signature algorithm on each data block blocki. The generated data digest information is then added to the end of the data block blocki and stored in the IPFS system. The charging control terminal calculates the hash value corresponding to each data block (blocki) with summary information and transmits it to the blockchain node. S4. Based on the trusted model of shared charging data, the charging control terminal and the electric vehicle owner's mobile terminal generate a trusted smart contract for charging data transactions. Blockchain nodes exchange and verify keys, and billing information is synchronized to other blockchain nodes to complete the trusted transaction of charging data.
2. The data trust transaction method for a shared charging pile system according to claim 1, characterized in that, The shared charging pile system includes a charging control terminal, a blockchain node, and an IPFS system. The charging control terminal is connected and communicates with the blockchain node, and the IPFS system is also connected and communicates with the blockchain node.
3. The data trust transaction method for a shared charging pile system according to claim 1, characterized in that, The charging demand information published by the electric vehicle owner's mobile terminal includes: the electric vehicle owner's contact number, license plate number, remaining SOC of the electric vehicle, remaining mileage of the electric vehicle, required voltage, required current, vehicle VIN, and required charging time period. The charging pile supply resource information includes personal identity information, bank card information, contact number, geographical location of charging control terminal, power of charging control terminal, connection method of charging control terminal, parking space, available time period, peak and off-peak time-of-use electricity price, and rate. The charging control terminal releases information in real time during the charging process, including working status, charging voltage, charging current, charging start time, amount charged, charging cost, starting SOC, ending SOC, peak and off-peak electricity consumption, reason for shutdown, and charging bill information.
4. The data trust transaction method for a shared charging pile system according to claim 1, characterized in that, Step S4 specifically includes: After electric vehicle owners obtain charging authorization from the charging control terminal, a trusted smart contract for charging data transactions is formed. After receiving the charging bill information from the charging control terminal, the blockchain node initiates a transaction confirmation to the electric vehicle owner's mobile terminal user. The electric vehicle owner's mobile terminal user decrypts the bill using the symmetric key and verifies the accuracy and reasonableness of the bill before confirming the transaction. Blockchain nodes use the system public key P K Extract the smart contract summary information and database address, generate a transaction log and upload it to the IPFS system. The blockchain node synchronizes the billing information to other blockchain nodes to complete the trusted transaction of charging data.
Citation Information
Patent Citations
Distributed shared charging pile transaction system and method based on block chain
CN111047440A
Block chain evidence storage method of shared charging pile and shared charging pile platform
CN114817987A