In recent years, new energy vehicle ownership and charging loads have shown a rapid upward trend, and the amount of data on charging platforms has increased dramatically. However, the traditional centralized data storage method will be more and more difficult to cope with the increasing massive data. For this reason, blockchain technology is introduced, and a charging transaction data storage scheme is designed by using blockchain technology to select a number of charging stations as data center nodes in the new energy vehicle charging platform. In this shared charging pile cross-domain data security protection system running consensus process adopts EPBFT consensus algorithm, the data center nodes use the consensus mechanism between the encrypted data for decentralized synchronous storage. Finally, relevant experiments verify the effectiveness of the cross-domain data security protection system for shared charging piles of new energy vehicles proposed in this paper. In the security performance test experiments, the time-consuming method of this paper can meet the efficiency requirements of new energy vehicle charging data aggregation scenarios, and at the same time, it ensures that the charging data aggregation process is not tampered with and privacy protection. In the operation efficiency comparison experiments, the protocol proposed in this paper in the generation of authentication messages needed to increase the random number of four times the elliptic curve on the multiplier operation, authentication messages and other comparative schemes compared to the length of the token there is a significant reduction in the signature checking process is more efficient advantage. In the charging right allocation analysis, by adding the credit value method, this paper’s method can improve the reasonableness of the charging right allocation of each charging station, and at the same time, it can incentivize each charging station to obtain a higher credit value through better quality service. This proves the superiority of the system designed in this paper.