Abstract:The traditional architecture based on a central server is an important solution for the construction of background services in the past. However, with the explosive growth of the number of users and application requirements, this architecture has put forward higher requirements for the computing and storage capabilities of the central node and brought a crisis of confidence. A typical representative of distributed systems, namely, blockchain, is the core technology of Bitcoin, and it has been widely concerned by researchers in recent years due to its characteristics such as tampering prohibition, traceability, and forgery data prohibition. This study aims to apply the consortium blockchain to the charging network composed of electric vehicles, charging piles, smart electric meters, and transmission networks and use blockchain technology to manage charging records, so as to protect the interests of each party and provide transaction disputes with data-level support. In addition to a dedicated consortium blockchain, this study also proposes a new consensus mechanism and a corresponding smart query contract suitable for the trusted charging model of electric vehicles. The experimental results show that the designed consensus mechanism can operate safely and efficiently in this trusted charging network model and can make users quickly search for transactions.