US 11,695,566 B2
Method and apparatus for recording mileage data of vehicle on blockchain
Fei Chen, Shanghai (CN); Wei Zhang, Shanghai (CN); Gang Qian, Shanghai (CN); Yanyu Chen, Shanghai (CN); Ruixue Wang, Shanghai (CN); and Ziyu Liu, Shanghai (CN)
Assigned to Zhiji Automotive Technology Co., Ltd., Shanghai (CN)
Filed by ZHIJI AUTOMOTIVE TECHNOLOGY CO., LTD., Shanghai (CN)
Filed on Dec. 16, 2021, as Appl. No. 17/553,652.
Claims priority of application No. 202110675166.3 (CN), filed on Jun. 18, 2021.
Prior Publication US 2022/0407715 A1, Dec. 22, 2022
Int. Cl. H04L 29/06 (2006.01); H04L 9/32 (2006.01); G06F 16/22 (2019.01); G06F 21/60 (2013.01); H04L 9/00 (2022.01)
CPC H04L 9/3239 (2013.01) [G06F 16/2255 (2019.01); G06F 21/602 (2013.01); H04L 9/50 (2022.05)] 10 Claims
OG exemplary drawing
 
1. A method for recording mileage data of a vehicle on a blockchain, comprising:
providing a vehicle database and a mileage database, wherein the vehicle database is configured to store an identification number that uniquely identifies the vehicle and an account address of the vehicle on the blockchain, a vehicle code, a first maximum value of vehicle codes in the vehicle database, and the mileage database is configured to store the mileage data about vehicle kilometers of travel (VKT);
providing a vehicle code recording database, wherein the vehicle code recording database is configured to record a second maximum value of vehicle codes at an execution time;
obtaining a vehicle identification number (VIN) from the vehicle database in response to determining that the second maximum value is less than the first maximum value of the vehicle codes in the vehicle database;
obtaining the mileage data of the vehicle from the mileage database according to the VIN;
storing data related to the mileage data in the blockchain; and
updating a vehicle code in the vehicle code recording database using the first maximum value;
wherein the blockchain comprises transaction data,
wherein storing data related to the mileage data in the blockchain comprises: storing the data related to the mileage data as a part of the transaction data:
wherein the method further comprises:
generating a hash value according to the transaction data; and
recording the VIN and the hash value in a vehicle hash value database, wherein in the vehicle hash value database, each VIN corresponds to a plurality of hash values, and the plurality of hash values are arranged in a chronological order, and
wherein the transaction data comprises the account address.