Blockchain-based Vehicle Information Authentication and Traceability Method and System

By obtaining multi-dimensional vehicle data to generate a real-time authentication identification set, and using blockchain consensus verification strategy to perform multi-node collaborative verification, the real-time and security problems of centralized vehicle information authentication are solved, dynamic authentication and traceability of vehicle information are realized, and the trustworthiness and efficiency of information management are improved.

CN120179735BActive Publication Date: 2025-07-25BEIJING CHEXIAO TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510661578.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-07-25
Estimated Expiration
2045-05-22

AI Technical Summary

Technical Problem

Traditional vehicle information authentication methods rely on centralized mechanisms and cannot reflect the dynamic changes of vehicles in real time. There is a single point of failure risk. The vehicle information traceability system is prone to tampering and data sharing is difficult, resulting in insufficient information security and reliability.

Method used

By obtaining multi-dimensional vehicle status data and environmental interaction data, a real-time authentication identification set is generated, and a multi-node collaborative verification is used to perform multi-node collaborative verification, a collection of target vehicle authentication results is generated, and stored in distributed nodes of the blockchain network to realize dynamic authentication and traceability.

Benefits of technology

Ensure the real-time and authenticity of vehicle information, resist the risks of data tampering, build a decentralized storage system, and improve information management efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120179735B_ABST
    Figure CN120179735B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for vehicle information authentication and traceability based on blockchain, which relates to the field of blockchain technology. First, an initial vehicle data set including multi-dimensional vehicle status data and environmental interaction data of a target vehicle is obtained, and it is processed to generate a real-time authentication identifier set through dynamic authentication identifier generation. Then, according to a preset blockchain consensus verification strategy, a target vehicle authentication result set is generated through collaborative verification by multiple nodes. Next, the target vehicle authentication result set and the initial data set are encapsulated into a target vehicle data block and synchronized to multiple distributed nodes of the blockchain network. Finally, when a vehicle information traceability request is received, the stored target vehicle data block is subjected to traceability verification to generate a traceability feedback result. Thus, by virtue of the characteristics of blockchain, the real-time nature of vehicle information authentication and the accuracy and reliability of traceability are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular, to a method and system for vehicle information authentication and traceability based on blockchain. Background Art

[0002] In the current field of vehicle information management, accurate vehicle information authentication and efficient information traceability are crucial for ensuring vehicle use safety, maintaining market order, and meeting users' needs for understanding vehicle full-life cycle information.

[0003] Currently, traditional vehicle information authentication methods mainly rely on centralized authentication institutions. These institutions usually adopt static authentication mechanisms and only authenticate based on some fixed information of the vehicle, such as vehicle identification numbers, driving license information, etc. This method has many limitations. On the one hand, due to the static nature of the information, it cannot reflect the dynamic changes of the vehicle during use in a timely manner, such as the real-time running state of the vehicle, the wear condition of parts, etc. On the other hand, there is a risk of single-point failure in centralized authentication institutions. Once data leakage, system failures, or malicious attacks occur in these institutions, the security and reliability of vehicle information will be seriously threatened.

[0004] In terms of vehicle information traceability, most existing traceability systems are built based on centralized databases. Data is centrally stored in a single server or a small number of server clusters, and the integrity and authenticity of the data depend on the operations and maintenance of database administrators. This makes the data easily tampered with or lost, and it is difficult to ensure the accuracy and credibility of traceability information. In addition, different vehicle-related enterprises and institutions may have their own independent information systems, and data sharing is difficult. As a result, when conducting vehicle information traceability, it is often necessary to perform cumbersome queries and coordination among multiple systems, resulting in low efficiency. Summary of the Invention

[0005] In view of the problems mentioned above, in combination with the first aspect of the present invention, embodiments of the present invention provide a method for vehicle information authentication and traceability based on blockchain, and the method includes:

[0006] Obtain an initial vehicle data set corresponding to a target vehicle, where the initial vehicle data set includes vehicle state data in multiple dimensions and associated environmental interaction data;

[0007] Perform dynamic authentication identifier generation processing on the initial vehicle data set to obtain a real-time authentication identifier set corresponding to the target vehicle;

[0008] Perform multi-node collaborative verification processing on the real-time authentication identifier set according to a preset blockchain consensus verification strategy to generate a target vehicle authentication result set;

[0009] Encapsulate the target vehicle authentication result set and the initial vehicle data set into a chained storage structure to generate a target vehicle data block, and synchronize the target vehicle data block to multiple distributed nodes in the blockchain network;

[0010] In response to a vehicle information traceability request, perform traceability verification processing on the target vehicle data block stored in the blockchain network to generate a vehicle information traceability feedback result.

[0011] In a possible implementation manner of the first aspect, the generating the real-time authentication identifier set corresponding to the target vehicle by performing dynamic authentication identifier generation processing on the initial vehicle data set includes:

[0012] Perform hash digest calculation processing on each vehicle status data in the initial vehicle data set to generate a first hash digest value corresponding to each vehicle status data;

[0013] Obtain the data collection timestamp of each vehicle status data, splice the data collection timestamp with the corresponding first hash digest value to generate a plurality of initial authentication identifier units;

[0014] Perform spatio-temporal correlation feature extraction processing on the environment interaction data to obtain a spatio-temporal correlation coding sequence corresponding to the environment interaction data;

[0015] Perform dynamic weight assignment processing on the plurality of initial authentication identifier units based on the spatio-temporal correlation coding sequence to generate a dynamic weight coefficient corresponding to each initial authentication identifier unit;

[0016] Perform weighted aggregation processing on the plurality of initial authentication identifier units according to the dynamic weight coefficient to generate the real-time authentication identifier set corresponding to the target vehicle.

[0017] In a possible implementation manner of the first aspect, the performing spatio-temporal correlation feature extraction processing on the environment interaction data to obtain a spatio-temporal correlation coding sequence corresponding to the environment interaction data includes:

[0018] Identify the geographical location identifier and time interval identifier included in the environment interaction data, and convert the geographical location identifier into a geographical coordinate coding vector;

[0019] Split the time interval identifier into a start timestamp and an end timestamp, calculate the time span value between the start timestamp and the end timestamp, and convert the time span value into a time span coding vector;

[0020] Perform multi-dimensional space mapping processing on the geographical coordinate coding vector and the time span coding vector to generate a spatio-temporal correlation mapping matrix;

[0021] Perform serialization encoding processing on the spatio-temporal correlation mapping matrix to obtain the spatio-temporal correlation encoding sequence corresponding to the environmental interaction data.

[0022] In a possible implementation manner of the first aspect, the dynamically assigning weights to the multiple initial authentication identification units based on the spatio-temporal correlation encoding sequence to generate a dynamic weight coefficient corresponding to each initial authentication identification unit includes:

[0023] Divide the spatio-temporal correlation encoding sequence into multiple encoding segments, and each encoding segment corresponds to an initial authentication identification unit;

[0024] Perform feature parsing processing on each encoding segment to generate a segment weight parameter corresponding to each encoding segment;

[0025] Generate a dynamic weight coefficient for each initial authentication identification unit through calculation processing based on the correlation degree between the segment weight parameter and the corresponding initial authentication identification unit, where the correlation degree calculation processing includes:

[0026] Obtain whether the data collection timestamp included in the initial authentication identification unit is within the start timestamp and end timestamp interval corresponding to the spatio-temporal correlation encoding sequence to obtain a time matching degree, where the time matching degree is 1 or 0;

[0027] Verify whether the preset geographical area corresponding to the data type of the vehicle status data corresponding to the initial authentication identification unit includes the position represented by the geographical coordinate encoding vector to obtain a space matching degree, where the space matching degree is 1 or 0;

[0028] Perform weighted summation on the time matching degree and the space matching degree to obtain the dynamic weight coefficient.

[0029] In a possible implementation manner of the first aspect, the multi-node collaborative verification processing of the real-time authentication identification set according to the preset blockchain consensus verification strategy to generate a target vehicle authentication result set includes:

[0030] Screen multiple verification nodes from the blockchain network, and distribute a hash digest copy of the real-time authentication identification set and the corresponding initial vehicle data set to each verification node;

[0031] Execute verification operations in each verification node:

[0032] Regenerate a verification hash digest value for each vehicle status data based on the hash digest copy of the initial vehicle data set, and perform item-by-item comparison processing on the verification hash digest value and the first hash digest value in the real-time authentication identification set to generate a hash matching degree index;

[0033] Extract the data collection timestamps of each initial authentication identifier unit in the real-time authentication identifier set, and generate a timestamp verification sequence arranged in chronological order;

[0034] Verify whether the continuity of the timestamp verification sequence conforms to a preset time increment rule, and generate a time continuity index;

[0035] When the hash matching degree index exceeds the first verification threshold and the time continuity index exceeds the second verification threshold, generate a local authentication pass result for this verification node;

[0036] Generate the target vehicle authentication result set according to the comparison relationship between the number of local authentication pass results of all verification nodes and a preset consensus node number threshold.

[0037] In a possible implementation manner of the first aspect, the step of comparing the verification hash digest value with the first hash digest value in the real-time authentication identifier set item by item to generate a hash matching degree index includes:

[0038] Traverse each initial authentication identifier unit in the real-time authentication identifier set, and extract the corresponding first hash digest value;

[0039] Locate the original data unit corresponding to the initial authentication identifier unit in the hash digest copy, and recalculate the verification hash digest value of the original data unit;

[0040] Calculate the character difference degree between the first hash digest value and the verification hash digest value, and determine that the hash match is successful when the character difference degree is zero;

[0041] Count the number of successful hash matches of all initial authentication identifier units, and calculate the ratio of the number of successful hash matches to the total number of initial authentication identifier units to generate the hash matching degree index;

[0042] When the hash matching degree index reaches the first verification threshold, trigger a data integrity verification pass event.

[0043] In a possible implementation manner of the first aspect, the step of verifying whether the continuity of the timestamp verification sequence conforms to a preset time increment rule and generating a time continuity index includes:

[0044] Convert the timestamp verification sequence into a timestamp numerical sequence and sort it in ascending order to generate a reference time sequence;

[0045] Calculate the time interval values between adjacent timestamps in the timestamp verification sequence to generate an actual time interval distribution;

[0046] Generate a theoretical time interval value according to the preset acquisition frequency of the vehicle data acquisition device;

[0047] Calculate the difference between the actual time interval distribution and the theoretical time interval value to generate a set of time deviation values;

[0048] Count the number of abnormal deviations exceeding the preset time tolerance threshold in the set of time deviation values;

[0049] Calculate the ratio of the number of abnormal deviations to the total number of timestamps to generate the time continuity index. When the time continuity index is lower than the second verification threshold, trigger the event that the time validity verification passes.

[0050] In a possible implementation manner of the first aspect, the encapsulation processing of the target vehicle authentication result set and the initial vehicle data set into a chained storage structure to generate a target vehicle data block includes:

[0051] Perform a hash tree construction process on the target vehicle authentication result set to generate an authentication result Merkle tree, and obtain the root hash value of the authentication result Merkle tree;

[0052] Perform data chunking on the initial vehicle data set to generate multiple data chunk units;

[0053] Generate a hash value for each data chunk unit and construct a Merkle tree to obtain a data chunk Merkle tree and a root hash value;

[0054] Perform encryption processing on the data chunk units to generate encrypted data chunks, and perform associated storage processing on the encrypted data chunks and the leaf node hash values of the corresponding data chunk Merkle trees to generate a data chunk index table;

[0055] Construct a block header structure, where the block header structure includes the root hash value, the hash value of the previous block, timestamp information, geographical coordinate coding vector, time span coding vector, and consensus verification parameters;

[0056] Perform combined encapsulation processing on the block header structure, the data chunk index table, and the encrypted data chunks to generate the target vehicle data block.

[0057] In a possible implementation manner of the first aspect, the response to the vehicle information traceability request is to perform traceability verification processing on the target vehicle data block stored in the blockchain network to generate a vehicle information traceability feedback result, including:

[0058] Parse the target time range and target geographical area in the vehicle information traceability request, and locate a set of target data blocks in the blockchain network that meet the target time range and target geographical area;

[0059] Perform integrity verification processing on each target data block in the set of target data blocks, where the integrity verification processing includes:

[0060] Extract the root hash value in the block header structure of the target data block;

[0061] Recalculate the current Merkle root hash value of the encrypted data chunks based on the data chunk index table;

[0062] Verify whether the current Merkle root hash value is consistent with the root hash value in the block header structure;

[0063] When the integrity verification of all target data blocks passes, initiate a decryption key application to the key management service of the blockchain network according to the authorization credential carried in the vehicle information traceability request; after verifying the legality of the authorization credential, the key management service generates a decryption key matching the target data block based on the dynamic sharding technology, and decrypts the encrypted data chunks according to the decryption key to obtain the original vehicle data chunks;

[0064] Recombine the original vehicle data chunks according to the data chunk index table to generate a complete set of traceable vehicle data;

[0065] Perform an association analysis process on the set of traceable vehicle data and the set of target vehicle authentication results to generate the vehicle information traceability feedback result.

[0066] For example, in a possible implementation manner of the first aspect, the performing an association analysis process on the set of traceable vehicle data and the set of target vehicle authentication results to generate the vehicle information traceability feedback result includes

[0067] Identify the authentication identification unit corresponding to each data unit in the set of traceable vehicle data;

[0068] Search for the authentication result status corresponding to the authentication identification unit in the set of target vehicle authentication results;

[0069] Statistically analyze the proportional relationship between the number of authentication identification units in the passed state and the number of authentication identification units in the failed state;

[0070] Generate a data credibility score according to the proportional relationship, and determine the overall verification level of the set of traceable vehicle data based on the data credibility score;

[0071] Perform a combined encapsulation process on the overall verification level and the set of traceable vehicle data to generate a vehicle information traceability feedback result including a verification level identifier.

[0072] In another aspect, an embodiment of the present invention further provides a blockchain-based vehicle information authentication and traceability system, including a processor and a machine-readable storage medium. The machine-readable storage medium is connected to the processor. The machine-readable storage medium is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the machine-readable storage medium to implement the above method.

[0073] Based on the above aspects, the embodiment of the present invention can comprehensively and dynamically reflect the vehicle state and environmental interaction situation by obtaining a multi-dimensional initial vehicle data set. The dynamic authentication identifier generation process is performed on the initial vehicle data set and verified by multiple nodes in cooperation, ensuring the real-time and authenticity of vehicle information, effectively resisting the risks of data tampering and forgery, and enhancing the credibility of authentication. The authentication result and the initial data are encapsulated in a chained storage structure and synchronized to multiple distributed nodes of the blockchain network, constructing a decentralized storage system. Using the immutable characteristic of the blockchain, the integrity and permanence of vehicle data are guaranteed, avoiding data loss or damage problems. When responding to a vehicle information traceability request, it is possible to perform traceability verification based on the complete and reliable data stored in the blockchain, quickly and accurately generate a traceability feedback result, providing an efficient, transparent and trustworthy solution for information query and verification in the entire life cycle of the vehicle, and greatly improving the overall efficiency and user experience of vehicle information management. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 It is a schematic flowchart of the execution process of the blockchain-based vehicle information authentication and traceability method provided by an embodiment of the present invention.

[0075] Figure 2 It is a schematic diagram of exemplary hardware and software components of the blockchain-based vehicle information authentication and traceability system provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0076] The present invention will be specifically described below with reference to the accompanying drawings of the specification. Figure 1 It is a schematic flowchart of the blockchain-based vehicle information authentication and traceability method provided by an embodiment of the present invention. The blockchain-based vehicle information authentication and traceability method will be introduced in detail below.

[0077] Step S110: Obtain an initial vehicle data set corresponding to a target vehicle, where the initial vehicle data set includes vehicle state data in multiple dimensions and associated environmental interaction data.

[0078] In this embodiment, an ordinary family car is used as the target vehicle. This car is equipped with a variety of sensors to collect vehicle status data. For example, its speed sensor collects speed information at fixed time intervals, forming sequences S1, S2, S3... Sn, where Si represents the vehicle speed collected at time ti, with the unit of kilometers per hour. The engine speed sensor of the vehicle collects the engine speed and records it in sequences R1, R2, R3... Rn, where Ri represents the engine speed at time ti, with the unit of revolutions per minute. The brake system sensor of the vehicle records the brake status and identifies it with B1, B2, B3... Bn, where Bi represents different states of the brake at time ti, such as normal, mild wear, or severe wear.

[0079] In terms of environmental interaction data, the global positioning system (GPS) of the car continuously obtains the vehicle's location, generating geographical location identifiers P1, P2, P3... Pn, and each identifier corresponds to a specific geographical location code. The clock system of the vehicle records the time of each data collection, forming time interval identifiers T1, T2, T3... Tn, and each time interval identifier contains the start and end time points of data collection.

[0080] After that, these vehicle status data and environmental interaction data in different dimensions are integrated together to form an initial vehicle data set I, and this initial vehicle data set comprehensively covers various information of the car during driving.

[0081] Step S120: Perform dynamic authentication identifier generation processing on the initial vehicle data set to obtain the real-time authentication identifier set corresponding to the target vehicle.

[0082] In the scenario of the above ordinary family car, perform dynamic authentication identifier generation processing on the initial vehicle data set I.

[0083] Step S121: Perform hash digest calculation processing on each vehicle status data in the initial vehicle data set to generate a first hash digest value corresponding to each vehicle status data.

[0084] For the vehicle status data in the initial vehicle data set I, take the vehicle speed sequences S1, S2, S3... Sn as an example. A common hashing algorithm is used, such as the SHA-256 algorithm. Perform hashing calculation on S1. According to the rules of the SHA-256 algorithm, take the value of S1 and related information as input, and through a series of bit operations and transformations, generate the corresponding first hash digest value H1. Similarly, perform the same hashing calculation on S2 to generate H2, and so on, perform hashing calculation on Sn to generate Hn. For the engine speed sequences R1, R2, R3... Rn, also use the same SHA-256 algorithm. Calculate the first hash digest value Hn+1 for R1, calculate Hn+2 for R2, until calculate H2n for Rn. For the brake status identifiers B1, B2, B3... Bn, also use the SHA-256 algorithm. Calculate the first hash digest value H2n+1 for B1, calculate H2n+2 for B2, until calculate H3n for Bn.

[0085] Step S122: Obtain the data acquisition timestamps of each of the vehicle status data, and splice the data acquisition timestamps with the corresponding first hash digest values to generate a plurality of initial authentication identification units.

[0086] For the vehicle speed sequences S1, S2, S3... Sn, their corresponding data acquisition timestamps are t1, t2, t3... tn. Splice t1 with H1 to form the initial authentication identification unit U1, and its form is to connect the time value of t1 with the character sequence of H1 according to a set format. Similarly, splice t2 with H2 to form U2, and splice tn with Hn to form Un. For the engine speed sequences R1, R2, R3... Rn, their corresponding timestamps are also t1, t2, t3... tn. Splice t1 with Hn+1 to form Un+1, t2 with Hn+2 to form Un+2, and tn with H2n to form U2n. For the brake status identifiers B1, B2, B3... Bn, splice t1 with H2n+1 to form U2n+1, t2 with H2n+2 to form U2n+2, and tn with H3n to form U3n. In this way, a series of initial authentication identification units are generated.

[0087] Step S123: Perform spatio-temporal correlation feature extraction processing on the environmental interaction data to obtain the spatio-temporal correlation coding sequence corresponding to the environmental interaction data.

[0088] In the scenario of this family car, process the environmental interaction data.

[0089] Step S1231: Identify the geographical location identifier and time interval identifier included in the environmental interaction data, and convert the geographical location identifier into a geographical coordinate coding vector.

[0090] Extract geographical location identifiers P1, P2, P3... Pn and time interval identifiers T1, T2, T3... Tn from the environmental interaction data. Taking the geographical location identifier P1 as an example, assume that P1 corresponds to a specific geographical coding. Through the conventional geographical coding conversion rules of the prior art, convert it into a geographical coordinate coding vector G1. G1 is a multi-dimensional vector containing information such as longitude and latitude. For example, G1 = [g11, g12], where g11 represents the longitude-related value and g12 represents the latitude-related value. Similarly, convert P2 into G2 = [g21, g22] and Pn into Gn = [gn1, gn2].

[0091] Step S1232: Split the time interval identifier into a start timestamp and an end timestamp, calculate the time span value between the start timestamp and the end timestamp, and convert the time span value into a time span coding vector.

[0092] For the time interval identifier T1, assume that the time interval it represents is from t1s to t1e. Split it into the start timestamp t1s and the end timestamp t1e. Calculate the time span value Δt1 = t1e - t1s, with the unit of seconds. Through the conventional time span coding rules of the prior art, convert Δt1 into a time span coding vector Tq1. Tq1 may be a one-dimensional vector. For example, Tq1 = [tq11], where tq11 is a value obtained by converting Δt1 according to the coding rules. Similarly, for T2, split to obtain the start timestamp t2s and the end timestamp t2e, calculate Δt2 = t2e - t2s, and convert it into a time span coding vector Tq2 = [tq21]. For Tn, obtain Δtn = tne - tns and convert it into a time span coding vector Tqn = [tqn1].

[0093] Step S1233: Perform multi-dimensional space mapping processing on the geographical coordinate coding vector and the time span coding vector to generate a spatio-temporal association mapping matrix.

[0094] Taking the geographical coordinate coding vector G1 = [g11, g12] and the time span coding vector Tq1 = [tq11] as an example, perform mapping processing on G1 and Tq1 through the conventional multi-dimensional space mapping rules of the prior art. Assume that the mapping rule is to combine g11, g12, and tq11 according to a set mathematical relationship into a matrix element. Generate a spatio-temporal association mapping matrix M1. For example, M1 = [[m111, m112], [m121, m122]], where m111, m112, m121, and m122 are values calculated according to g11, g12, and tq11 through the mapping rule. Similarly, generate M2 for G2 and Tq2, and generate Mn for Gn and Tqn.

[0095] Step S1234: Perform serialization encoding processing on the spatio-temporal correlation mapping matrix to obtain the spatio-temporal correlation encoding sequence corresponding to the environmental interaction data.

[0096] Perform serialization encoding processing on the spatio-temporal correlation mapping matrix M1. Assume that a conventional serialization encoding rule of an existing technology is adopted, and the matrix elements in M1 are arranged in a set order and converted into a character sequence. For example, convert M1 = [[m111, m112], [m121, m122]] into the character sequence Sq1 = "m111, m112, m121, m122". After further encoding processing, the final spatio-temporal correlation encoding sequence C1 is formed. Similarly, process M2 to obtain C2, and process Mn to obtain Cn. Combine C1, C2, Cn, etc. together to form the complete spatio-temporal correlation encoding sequence C corresponding to the environmental interaction data.

[0097] Step S124: Based on the spatio-temporal correlation encoding sequence, perform dynamic weight allocation processing on the multiple initial authentication identification units to generate a dynamic weight coefficient corresponding to each initial authentication identification unit.

[0098] In the above-mentioned household car scenario, perform dynamic weight allocation on multiple initial authentication identification units based on the generated spatio-temporal correlation encoding sequence C.

[0099] Step S1241: Divide the spatio-temporal correlation encoding sequence into multiple encoding segments, and each encoding segment corresponds to an initial authentication identification unit.

[0100] Assume that the spatio-temporal correlation encoding sequence C is composed of the character sequence "c1, c2, c3... cn". According to the set division rule, divide it into multiple encoding segments F1, F2, F3... Fn, and each encoding segment Fi corresponds to an initial authentication identification unit Ui. For example, the encoding segment F1 may be "c1, c2, c3", corresponding to the initial authentication identification unit U1.

[0101] Step S1242: Perform feature analysis processing on each encoding segment to generate a segment weight parameter corresponding to each encoding segment.

[0102] Taking the encoding segment F1 = "c1, c2, c3" as an example, analyze the characters in F1 through the conventional feature analysis rules of the existing technology. Assume that the analysis rule is to calculate based on information such as the numerical value and position of the characters to obtain the segment weight parameter Wp1. For example, Wp1 may be a numerical value obtained by performing weighted calculation on c1, c2, c3. Similarly, analyze F2 to obtain Wp2, and analyze Fn to obtain Wpn.

[0103] Step S1243: Calculate and process based on the correlation between the segment weight parameter and the corresponding initial authentication identification unit to generate a dynamic weight coefficient for each initial authentication identification unit, where the correlation calculation process includes:

[0104] Step S12431: Obtain whether the data acquisition timestamp included in the initial authentication identification unit is within the start timestamp and end timestamp range corresponding to the spatio-temporal correlation coding sequence to obtain a time matching degree, where the time matching degree is 1 or 0.

[0105] Taking the initial authentication identification unit U1 and the corresponding coding segment F1 as an example, assume that the time interval represented by the spatio-temporal correlation coding sequence corresponding to F1 is from t1s to t1e, and the data acquisition timestamp included in U1 is t1. If t1s <= t1 <= t1e, then the time matching degree Tm1 = 1; otherwise Tm1 = 0. Similarly, for U2 and the corresponding F2, if the time interval corresponding to F2 is from t2s to t2e, and the timestamp in U2 is t2, if t2s <= t2 <= t2e, then Tm2 = 1, otherwise Tm2 = 0.

[0106] Step S12432: Verify whether the preset geographical area corresponding to the data type of the vehicle status data corresponding to the initial authentication identification unit contains the location represented by the geographical coordinate coding vector to obtain a space matching degree, where the space matching degree is 1 or 0.

[0107] Assume that the vehicle status data corresponding to the initial authentication identification unit U1 is the vehicle speed S1, and the preset geographical area for the vehicle speed data type is several specific regional ranges in the city. The geographical coordinate coding vector G1 = [g11, g12] corresponding to the coding segment F1. If the location represented by [g11, g12] is within the preset geographical area for the vehicle speed data type, then the space matching degree Sm1 = 1; otherwise Sm1 = 0. Similarly, for U2 and the corresponding F2, if the vehicle status data corresponding to U2 is the engine speed R2, compare the preset geographical area for the R2 data type with the location represented by the geographical coordinate coding vector G2 corresponding to F2. If it is within the preset area, then Sm2 = 1, otherwise Sm2 = 0.

[0108] Step S12433: Perform weighted summation of the time matching degree and the space matching degree to obtain the dynamic weight coefficient.

[0109] For the initial authentication identification unit U1, assume that the time matching degree Tm1 = 1 and the space matching degree Sm1 = 0. According to the weighted summation rule, assume that the weight of the time matching degree is 0.6 and the weight of the space matching degree is 0.4. Then the dynamic weight coefficient W1 = 0.6 * Tm1 + 0.4 * Sm1 = 0.6 * 1 + 0.4 * 0 = 0.6. Similarly, for U2, if Tm2 = 0 and Sm2 = 1, then W2 = 0.6 * Tm2 + 0.4 * Sm2 = 0.6 * 0 + 0.4 * 1 = 0.4. And so on, the corresponding dynamic weight coefficient Wn is calculated for each initial authentication identification unit.

[0110] Step S125: Perform weighted aggregation processing on the multiple initial authentication identification units according to the dynamic weight coefficient to generate a real-time authentication identification set corresponding to the target vehicle.

[0111] In the above-mentioned family car scenario, there are multiple initial authentication identification units U1, U2, U3... Un, and corresponding dynamic weight coefficients W1, W2, W3... Wn. Adopt the weighted aggregation rule. For example, for U1 and W1, U2 and W2, assume that the weighted aggregation combines the initial authentication identification unit with the weight coefficient in a set format. Combine U1 with W1 to form the aggregation unit Au1. For example, the form of Au1 may be to connect the character sequence of U1 and the value of W1 in the conventional format of the existing technology. Similarly, combine U2 with W2 to form Au2, and combine Un with Wn to form Aun. Combine Au1, Au2, Aun, etc. together to generate a real-time authentication identification set R corresponding to the target vehicle.

[0112] Step S130: Perform multi-node collaborative verification processing on the real-time authentication identification set according to a preset blockchain consensus verification strategy to generate a target vehicle authentication result set.

[0113] Based on the real-time authentication identification set R generated in the above-mentioned family car scenario, perform multi-node collaborative verification according to a preset blockchain consensus verification strategy.

[0114] Step S131: Screen multiple verification nodes from the blockchain network and distribute a hash digest copy of the real-time authentication identification set and the corresponding initial vehicle data set to each verification node.

[0115] Suppose there are many nodes in the blockchain network. According to the conventional screening rules of the existing technology, N nodes are selected from these nodes as verification nodes, denoted as V1, V2, V3... VN. For the real-time authentication identifier set R, its complete content is distributed to each verification node Vi. At the same time, the initial vehicle data set I is hashed using the same hashing algorithm as before, such as the SHA-256 algorithm, to generate a hashed digest copy Hc of the initial vehicle data set I, and Hc is distributed to each verification node Vi.

[0116] Step S132: Perform a verification operation in each verification node:

[0117] Step S1321: Regenerate the verification hashed digest value of each vehicle status data based on the hashed digest copy of the initial vehicle data set, and compare the verification hashed digest value item by item with the first hashed digest value in the real-time authentication identifier set to generate a hash matching degree index.

[0118] In the verification node V1, take the hashed digest copy Hc of the initial vehicle data set I as an example. Extract the information related to the vehicle status data from Hc, and recalculate the hash value of the vehicle status data according to the same hashing algorithm as used to generate the first hashed digest value before, such as the SHA-256 algorithm. Taking the vehicle speed sequence S1, S2, S3... Sn as an example, the verification hashed digest values Vh1, Vh2, Vh3... Vhn are recalculated. Compare Vh1 with the first hashed digest value H1 corresponding to the vehicle speed S1 in the real-time authentication identifier set R. Calculate the character difference degree between the two through the character comparison rule. For example, compare the character sequences of Vh1 and H1 bit by bit and count the number of different characters. Suppose Vh1 = "abcdef" and H1 = "abcdeg", then the character difference degree is 1. When the character difference degree is zero, it is determined that the hash match is successful. Perform the same comparison operation on the verification hashed digest values and the first hashed digest values corresponding to all vehicle status data, and count the number of successful hash matches. Suppose there are n data in the vehicle speed sequence, and among them, the verification hashed digest values of m data have a character difference degree of zero with the first hashed digest value, that is, the number of successful hash matches is m. Calculate the hash matching degree index Hm = m / n. Similarly, perform the same operation in the verification nodes V2, V3... VN to obtain their respective hash matching degree indexes Hm2, Hm3... HmN.

[0119] Step S1322: Extract the data acquisition timestamps of each initial authentication identifier unit in the real-time authentication identifier set, and arrange them in chronological order to generate a timestamp verification sequence.

[0120] In the verification node V1, the data acquisition timestamps ti of each initial authentication identity unit Ui are extracted from the real-time authentication identity set R. These timestamps are arranged in ascending chronological order to generate a timestamp verification sequence Ts = [t1, t2, t3... tn]. Similarly, the same operation is performed in the verification nodes V2, V3... VN to obtain their respective timestamp verification sequences Ts2, Ts3... TsN.

[0121] Step S1323: Verify whether the continuity of the timestamp verification sequence conforms to a preset time increment rule to generate a time continuity index.

[0122] In the verification node V1, for the timestamp verification sequence Ts = [t1, t2, t3... tn], it is converted into a timestamp numerical sequence and sorted in ascending order to generate a reference time sequence Rs = [r1, r2, r3... rn], where r1 <= r2 <= r3 <=... <= rn. Calculate the time interval values between adjacent timestamps, such as Δr1 = r2 - r1, Δr2 = r3 - r2, to generate an actual time interval distribution ΔRs = [Δr1, Δr2, Δr3... Δrn-1]. According to the preset acquisition frequency of the vehicle data acquisition device, assuming the preset acquisition frequency is to acquire data every fixed time interval T0, then the theoretical time interval value is T0. Calculate the difference between the actual time interval distribution ΔRs and the theoretical time interval value T0 to obtain a time deviation value set Db = [db1, db2, db3... dbn-1], where db1 = Δr1 - T0, db2 = Δr2 - T0, and so on.

[0123] Then count the number of abnormal deviations in the time deviation value set Db that exceed the preset time tolerance threshold Td. For example, for db1, if its absolute value is greater than Td, it is recorded as an abnormal deviation; for db2, also judge whether its absolute value is greater than Td, and if so, it is recorded as an abnormal deviation, and so on to count the number of abnormal deviations as An. Then calculate the ratio of the number of abnormal deviations An to the total number of timestamps n to generate a time continuity index Tc, that is, Tc = An / n. When the time continuity index Tc is lower than the preset second verification threshold T2, a time validity verification pass event is triggered. Similarly, the same operation is performed in the verification nodes V2, V3... VN to obtain their respective time continuity indices Tc2, Tc3... TcN.

[0124] Step S1324: When the hash matching degree index exceeds the first verification threshold and the time continuity index exceeds the second verification threshold, generate a local authentication pass result for this verification node.

[0125] In the verification node V1, the hash matching degree metric Hm is compared with a preset first verification threshold T1, and at the same time, the time continuity metric Tc is compared with a preset second verification threshold T2. If Hm is greater than T1 and Tc is greater than T2, it is determined that the local authentication of the verification node V1 passes, and a local authentication pass result Pass1 is generated; if these two conditions are not met, that is, Hm is less than or equal to T1 or Tc is less than or equal to T2, a local authentication failure result Fail1 is generated. Similarly, the same comparison operation is performed in the verification nodes V2, V3... VN to generate their respective local authentication results Pass2 or Fail2, Pass3 or Fail3... PassN or FailN.

[0126] Step S1325: Generate the target vehicle authentication result set according to the comparison relationship between the number of local authentication pass results of all verification nodes and a preset consensus node number threshold.

[0127] Count the number of local authentication pass results Pass generated in all verification nodes V1, V2, V3... VN, denoted as Pn. Compare Pn with a preset consensus node number threshold Cn. If Pn is greater than or equal to Cn, the authentication result in the target vehicle authentication result set is generated as overall authentication passed, denoted as OverallPass; if Pn is less than Cn, the authentication result in the target vehicle authentication result set is generated as overall authentication failed, denoted as OverallFail. Thus, a target vehicle authentication result set O is generated, and this set contains the results of overall authentication passed or overall authentication failed for subsequent further processing of the target vehicle data.

[0128] Step S140: Perform a chained storage structure encapsulation process on the target vehicle authentication result set and the initial vehicle data set to generate a target vehicle data block.

[0129] In the above-mentioned family car scenario, a chained storage structure encapsulation process is performed based on the generated target vehicle authentication result set O and the initial vehicle data set I.

[0130] Step S141: Perform a hash tree construction process on the target vehicle authentication result set to generate an authentication result Merkle tree, and obtain the root hash value of the authentication result Merkle tree.

[0131] For the set O of target vehicle authentication results, assuming it contains authentication results OverallPass or OverallFail, as well as some possibly attached relevant authentication information, such as the local authentication results of each verification node, etc. Use the conventional hash tree construction algorithm in the prior art to process this information. First, take each information unit as a leaf node, calculate the hash value for each leaf node, using algorithms such as SHA-256, to generate the hash value of the leaf node. For example, for the authentication result OverallPass, the calculated hash value is HOP, and for the local authentication pass result Pass1 of a certain verification node, the calculated hash value is HP1. Then, combine the hash values of adjacent leaf nodes in pairs and calculate the hash value again to generate a new hash value as the hash value of the upper-level node. For example, combine HOP and HP1 to calculate the new hash value H1. And so on, continuously repeat this process until the entire authentication result Merkle tree is constructed. Finally, obtain the root hash value RootHash_O of this authentication result Merkle tree.

[0132] Step S142: Perform data chunking processing on the initial vehicle data set to generate multiple data chunk units.

[0133] For the initial vehicle data set I, this set contains vehicle status data and environmental interaction data in multiple dimensions, such as vehicle speed sequences S1, S2, S3... Sn, engine speed sequences R1, R2, R3... Rn, geographical location identifiers P1, P2, P3... Pn, etc. Chunk these data according to the set data chunking rules. Assume that chunking is based on a fixed data volume size standard. For example, every X data elements are divided into one chunk. For the vehicle speed sequences S1, S2, S3... Sn, it may be divided into data chunk units B1 = [S1, S2,..., SX], B2 = [SX + 1, SX + 2,..., S2X], etc. For the engine speed sequences R1, R2, R3... Rn, similar chunking is also performed to obtain data chunk units Bn1 = [R1, R2,..., RX], Bn2 = [RX + 1, RX + 2,..., R2X], etc. Similarly, perform chunking processing on geographical location identifiers and other environmental interaction data, and finally generate multiple data chunk units B1, B2, B3... Bm.

[0134] Step S143: Generate hash values for each data chunk unit and construct a Merkle tree to obtain the data chunk Merkle tree and the root hash value.

[0135] For each data chunk unit B1, B2, B3... Bm, use the same hashing algorithm as that for constructing the Merkle tree of authentication results, such as the SHA-256 algorithm, to perform hashing calculations on each data chunk unit to generate their respective hash values. For example, the hash value Hb1 is calculated for the data chunk unit B1, and the hash value Hb2 is calculated for B2. Then, using these hash values as leaf nodes, pairwise combination and hashing calculations are performed in the manner of constructing the Merkle tree of authentication results to construct the Merkle tree of data chunks. For example, the hash values Hb1 and Hb2 are combined and calculated to obtain a new hash value H1b, and the construction continues upwards until the root hash values RootHash_B1, RootHash_B2, RootHash_B3... RootHash_Bm of the Merkle tree of data chunks are obtained.

[0136] Step S144: Encrypt the data chunk unit to generate an encrypted data chunk, and perform an associated storage process on the encrypted data chunk and the leaf node hash value of the corresponding Merkle tree of data chunks to generate a data chunk index table.

[0137] For each data chunk unit B1, B2, B3... Bm, use a conventional encryption algorithm in the prior art, such as the AES encryption algorithm, to perform encryption processing on it. Taking the data chunk unit B1 as an example, B1 is used as the input, and according to the rules of the AES encryption algorithm, the encrypted data chunk Eb1 is generated. Similarly, B2 is encrypted to generate Eb2, and Bm is encrypted to generate Ebm. Then, each encrypted data chunk is associated with the leaf node hash value of the corresponding Merkle tree of data chunks. For example, Eb1 is associated with Hb1, and Eb2 is associated with Hb2. Through a conventional storage structure in the prior art, such as in the form of key-value pairs, with the encrypted data chunk as the value and the corresponding leaf node hash value as the key, a data chunk index table IndexTable is generated, which is used for subsequent searching and verification of the encrypted data chunks.

[0138] Step S145: Construct a block header structure, which includes the root hash value, the hash value of the previous block, timestamp information, geographical coordinate encoding vector, time span encoding vector, and consensus verification parameters.

[0139] Obtain relevant information from the previous processing results to construct the block header structure. Among them, the root hash value adopts the root hash value RootHash_O of the authenticated result Merkle tree. Assume that the hash value of the previous block is PrevHash, which is obtained from the previous generated block according to the chain structure of the blockchain. The timestamp information adopts the timestamp Tnow at the current processing moment, which can be obtained from the clock of the vehicle system or the time synchronization mechanism of the blockchain network. The geographical coordinate coding vector and the time span coding vector can be obtained from the environmental interaction data processing process, for example, select the parts related to the current data from the geographical coordinate coding vector Gn and the time span coding vector Tqn generated in steps S1231 and S1232. The consensus verification parameters include preset first verification threshold T1, second verification threshold T2, consensus node number threshold Cn and other parameters related to consensus verification. Combine these information together to construct the block header structure BlockHeader, which contains the key information of the current block and is used to identify and verify the legality of the block.

[0140] Step S146: Combine and encapsulate the block header structure, the data block index table and the encrypted data blocks to generate the target vehicle data block.

[0141] Combine and encapsulate the constructed block header structure BlockHeader, the data block index table IndexTable, and the encrypted data blocks Eb1, Eb2, Ebm, etc. Adopt the conventional encapsulation format of the existing technology. For example, place the block header structure at the front, followed by the data block index table, and finally the encrypted data blocks. Combine them together in this order to generate the target vehicle data block Block, which will be synchronized to multiple distributed nodes in the blockchain network for storage and management, completing the structured storage of vehicle data on the blockchain.

[0142] Step S150: In response to the vehicle information traceability request, perform traceability verification processing on the target vehicle data block stored in the blockchain network to generate a vehicle information traceability feedback result.

[0143] In the above-mentioned sedan scenario, when receiving a vehicle information traceability request, perform corresponding processing on the target vehicle data block stored in the blockchain network.

[0144] Step S151: Analyze the target time range and target geographical area in the vehicle information traceability request, and locate the set of target data blocks that meet the target time range and target geographical area in the blockchain network.

[0145] Assume that the received vehicle information traceability request contains a target time range from Tstart to Tend, and the target geographical area is defined by the geographical coordinate range Gmin = [gmin1, gmin2] to Gmax = [gmax1, gmax2]. In the blockchain network, traverse each target vehicle data block stored. For each block, extract the timestamp information Tnow and the geographical coordinate encoding vector Gn from its block header structure. For example, for the geographical coordinate encoding vector Gn = [gn1, gn2] of a certain block, determine whether it satisfies gmin1 <= gn1 <= gmax1 and gmin2 <= gn2 <= gmax2, and at the same time determine whether the timestamp Tnow satisfies Tstart <= Tnow <= Tend. If both conditions are met, include this block in the target data block set TargetBlocks. In this way, all target data block sets that meet the target time range and the target geographical area are located.

[0146] Step S152: Perform integrity verification processing on each target data block in the target data block set, and the integrity verification processing includes:

[0147] Step S1521: Extract the root hash value from the block header structure of the target data block.

[0148] For each target data block Block in the target data block set TargetBlocks, extract the root hash value RootHash_O from its block header structure BlockHeader. This root hash value is the root hash value of the Merkle tree of the authentication results obtained after the previous hash tree construction processing of the target vehicle authentication result set, and it is used to verify the consistency between the data in the block and the authentication results.

[0149] Step S1522: Recalculate the current Merkle root hash value of the encrypted data chunks based on the data chunk index table.

[0150] According to the data chunk index table IndexTable in the target data block, obtain the leaf node hash values Hb1, Hb2, Hbm corresponding to each encrypted data chunk Eb1, Eb2, Ebm. Then, in the same way as constructing the data chunk Merkle tree before, start from these leaf node hash values, combine them in pairs for hash calculation, and reconstruct the data chunk Merkle tree. For example, combine Hb1 and Hb2 to calculate a new hash value H1b, and continue to calculate upwards until the current Merkle root hash value CurrentRootHash_B is obtained.

[0151] Step S1523: Verify whether the current Merkle root hash value is consistent with the root hash value in the block header structure.

[0152] Compare the currently recalculated Merkle root hash value CurrentRootHash_B with the root hash value RootHash_O extracted from the block header structure. If CurrentRootHash_B is exactly the same as RootHash_O, it indicates that the data in the target data block has not been tampered with during storage, and the integrity verification passes; if the two are inconsistent, it indicates that there may be problems with the data, and the integrity verification fails. Perform such verification operations on all target data blocks in the target data block set TargetBlocks.

[0153] Step S153: When the integrity verification of all target data blocks passes, send a decryption key application to the key management service of the blockchain network according to the authorization credential carried in the vehicle information traceability request; after verifying the legality of the authorization credential, the key management service generates a decryption key matching the target data block based on the dynamic sharding technology, and decrypts the encrypted data chunks according to the decryption key to obtain the original vehicle data chunks.

[0154] After all target data blocks in the target data block set TargetBlocks pass the integrity verification, extract the authorization credential Credential from the vehicle information traceability request. Send this authorization credential to the key management service KeyManagementService of the blockchain network. After receiving the authorization credential, the key management service verifies its legality according to the preset verification rules. For example, check whether the format of the authorization credential is correct, whether it contains the necessary information fields, and whether it is within the validity period, etc. If the authorization credential is legal, the key management service generates a decryption key DecryptionKey matching the target data block based on the dynamic sharding technology according to the characteristics of the target data block, such as block number, timestamp, data type, etc. Then, use the decryption algorithm corresponding to the encryption algorithm, such as for the previously used AES encryption algorithm, use the corresponding AES decryption algorithm, take the decryption key DecryptionKey as the input, and decrypt the encrypted data chunks Eb1, Eb2, Ebm to obtain the original vehicle data chunks B1, B2, Bm.

[0155] Step S154: Reorganize the original vehicle data chunks according to the data chunk index table to generate a complete set of traceable vehicle data.

[0156] According to the association relationships recorded in the data block index table IndexTable, reorganize the original vehicle data blocks B1, B2, Bm obtained by decryption. For example, the data block index table records the original data position information corresponding to each data block unit. According to this information, recombine the data blocks B1, B2, Bm into a complete vehicle data sequence. For the vehicle speed data block, splice it in the original order, and perform the same operation for the engine speed data block, etc. Finally, generate a complete trace vehicle data set TraceData, which contains the complete data of the vehicle that meets the target time range and target geographical area at that time.

[0157] Step S155: Perform an association analysis process on the trace vehicle data set and the target vehicle authentication result set to generate the vehicle information trace feedback result.

[0158] In the above-mentioned family car scenario, perform an association analysis process on the generated trace vehicle data set TraceData and the target vehicle authentication result set O.

[0159] For example, step S1551: Identify the authentication identification unit corresponding to each data unit in the trace vehicle data set.

[0160] In the trace vehicle data set TraceData, each data unit has its corresponding authentication identification unit. For example, for the vehicle speed data unit S1, during the process of generating the real-time authentication identification set before, it corresponds to an initial authentication identification unit U1. Through the conventional identification association rules in the prior art, identify the corresponding relationship between each data unit and the authentication identification unit. Such association rules may be based on information such as data collection timestamps and data types. For example, if two data have the same data collection timestamp and belong to the same data type, they are considered to have a corresponding relationship.

[0161] Step S1552: Search for the authentication result status corresponding to the authentication identification unit in the target vehicle authentication result set.

[0162] For each identified authentication identification unit, search for its corresponding authentication result status in the target vehicle authentication result set O. For example, the authentication result corresponding to the authentication identification unit U1 may be Pass or Fail. By following the set search rules in the target vehicle authentication result set, such as searching according to the unique identification information of the authentication identification unit, determine its authentication result status.

[0163] Step S1553: Statistically analyze the proportional relationship between the number of authentication identification units in the passed state and the number of authentication identification units in the failed state.

[0164] The number of all authentication identification units in the traceable vehicle data set TraceData that are in the pass state is PassCount, and the number of those that are not in the pass state is FailCount. Then the ratio between them is calculated as Ratio = PassCount / FailCount, which reflects the overall authentication pass status of the data in the traceable vehicle data set.

[0165] Step S1554: Generate a data credibility score according to the proportional relationship, and determine the overall verification level of the retrospective vehicle data set based on the data credibility score.

[0166] According to the ratio relationship Ratio, the data credibility score Score is generated by setting the scoring rules. For example, if the Ratio is greater than a certain threshold R1, the Score is high; if the Ratio is less than a certain threshold R2 (R2 <R1),则Score为低分;在两者之间则为中等分数。然后根据数据可信度评分Score,按照预设的等级划分规则确定追溯车辆数据集合的整体验证等级Level。例如,高分对应的整体验证等级为高等级,中等分数对应的为中等级,低分对应的为低等级。

[0167] Step S1555: The overall verification level and the traceable vehicle data set are combined and packaged to generate a vehicle information traceability feedback result including a verification level identifier.

[0168] The determined overall verification level Level is combined and encapsulated with the traceable vehicle data set TraceData. The conventional encapsulation format of the prior art is adopted, such as adding the identification information of the overall verification level at the beginning or end of the traceable vehicle data set, and generating the vehicle information traceability feedback result FeedbackResult containing the verification level identification. The result will be returned to the entity that initiated the vehicle information traceability request, such as an insurance company, a vehicle owner or a relevant regulatory department.

[0169] To explain this process more clearly, assume that the traceable vehicle data set TraceData contains multiple different types of data units, such as the vehicle speed data unit sequence VS=[V1, V2, ..., Vx], the engine speed data unit sequence ER=[E1, E2, ..., Ey] and other related data units. The authentication identification units correspond to these data units one by one, namely VU=[U1, U2, ..., Ux] for vehicle speed data, EU=[Ux+1, Ux+2, ..., Ux+y] for engine speed data, etc.

[0170] When identifying the authentication identification unit corresponding to each data unit, through the conventional mapping rules of the prior art, for example, the corresponding relationship is jointly determined according to the data acquisition timestamp and the data type. Taking the vehicle speed data unit V1 as an example, its data acquisition timestamp is t1, and the data type is vehicle speed. By searching the information recorded during the process of generating the real-time authentication identification set before, the authentication identification unit U1 with the same timestamp t1 and corresponding to the vehicle speed data type is found.

[0171] When searching for the authentication result status corresponding to the authentication identification unit in the target vehicle authentication result set O, if the authentication result of the authentication identification unit U1 in O is Pass, then record this result. The same operation is performed on all authentication identification units, and the number of authentication identification units in the Pass state, PassCount, and the number of authentication identification units in the Fail state, FailCount, are counted.

[0172] When calculating the proportional relationship Ratio = PassCount / FailCount and generating the data credibility score Score based on this proportional relationship, a set of preset score mapping rules can be defined. For example, there are multiple threshold intervals, and when Ratio is in different intervals, it corresponds to different score ranges. If Ratio falls within the interval R1, the value of Score is between S1 - S2; if it falls within the interval R2, the value of Score is between S3 - S4, etc.

[0173] Determine the overall verification level Level according to the data credibility score Score. For example, when Score is in a certain higher score range, Level is a high level; when it is in the middle score range, Level is a medium level; when it is in a lower score range, Level is a low level.

[0174] Finally, combine and encapsulate to generate the vehicle information traceability feedback result FeedbackResult, which can adopt a conventional format of the prior art. For example, add a field to the header of FeedbackResult to identify the overall verification level Level, followed by the complete traceable vehicle data set TraceData. In this way, after receiving FeedbackResult, the recipient can first see the overall verification level and quickly understand the credibility of the data, and then view the specific traceable vehicle data set to obtain detailed vehicle operation information.

[0175] In this embodiment, the vehicle owner initiates a traceability request to understand the detailed situation of the vehicle during a specific journey. Through the vehicle information traceability feedback result FeedbackResult obtained, the vehicle owner can not only know the credibility of the vehicle data during this journey, but also understand the operating conditions of each component of the vehicle based on the traceable vehicle data set TraceData, such as whether the engine speed is stable and whether there are abnormal fluctuations, etc., so as to determine whether the vehicle needs maintenance.

[0176] For relevant regulatory authorities, the vehicle information traceability feedback result FeedbackResult obtained can be used to supervise whether the vehicle complies with traffic rules, environmental protection requirements, etc. For example, by tracing the emission-related data in the vehicle data set TraceData (assuming such data has been collected and stored previously), and determining the reliability of the data by combining the overall verification level, it can be determined whether the vehicle meets the emission standards and whether further supervision measures need to be taken.

[0177] Through the description of the above embodiments, those skilled in the art can clearly understand the specific implementation process of the vehicle information authentication and traceability method based on blockchain, so as to accurately carry out system development and deployment in actual application scenarios, meet the needs of different entities for vehicle information authentication and traceability, and at the same time ensure that the entire process is carried out within the framework of law, morality and public interests.

[0178] For example, in terms of data collection, it is necessary to ensure that the collected privacy-sensitive data (such as the personal information of the vehicle owner, high-precision information of the vehicle location, etc.) follows privacy protection and anti-disclosure technical means. Assuming the use of data encryption technology, when collecting data, the privacy-sensitive data is encrypted, and conventional encryption algorithms in the existing technology, such as the AES encryption algorithm, are used to convert the data into ciphertext form for storage and transmission. When these data need to be used, through a legal decryption process, such as obtaining the decryption key by virtue of an authorization certificate for decryption, to ensure the security and privacy of the data.

[0179] Another example is that in terms of rule setting, all the threshold settings involved (such as the first verification threshold, the second verification threshold, the consensus node quantity threshold, etc.), scoring rules, level division rules, etc. need to follow the principles of fairness, justice and reasonableness, and there is no situation of discrimination and prejudice that violates fairness and justice. These rules are clearly set during the system design and development stage and remain consistent and stable during the entire system operation process to ensure the reliability and effectiveness of the vehicle information authentication and traceability method.

[0180] Figure 2FIG. 0 shows a schematic diagram of exemplary hardware and software components of a blockchain-based vehicle information authentication and traceability system 100 that can implement the concepts of the present application. For example, the processor 120 can be used on the blockchain-based vehicle information authentication and traceability system 100 and is used to execute the functions in the present application.

[0181] The blockchain-based vehicle information authentication and traceability system 100 can be a general-purpose server or a special-purpose server, both of which can be used to implement the blockchain-based vehicle information authentication and traceability method of the present application. Although only one server is shown in the present application, for convenience, the functions described in the present application can be implemented in a distributed manner on multiple similar platforms to balance the processing load.

[0182] For example, the blockchain-based vehicle information authentication and traceability system 100 can include a network port 110 connected to a network, one or more processors 120 for executing program instructions, a communication bus 130, and different forms of storage media 140, such as disks, ROMs, or RAMs, or any combination thereof. Exemplarily, the blockchain-based vehicle information authentication and traceability system 100 can also include program instructions stored in a ROM, a RAM, or other types of non-transitory storage media, or any combination thereof. The method of the present application can be implemented according to these program instructions. The blockchain-based vehicle information authentication and traceability system 100 also includes an I / O interface 150 between the computer and other input / output devices.

[0183] For ease of explanation, only one processor is described in the blockchain-based vehicle information authentication and traceability system 100. However, it should be noted that the blockchain-based vehicle information authentication and traceability system 100 in the present application can also include multiple processors. Therefore, the steps executed by one processor described in the present application can also be jointly executed or separately executed by multiple processors. For example, if the processor of the blockchain-based vehicle information authentication and traceability system 100 executes steps A and B, it should be understood that steps A and B can also be jointly executed by two different processors or separately executed in one processor. For example, the first processor executes step A, the second processor executes step B, or the first processor and the second processor jointly execute steps A and B.

[0184] In addition, an embodiment of the present invention also provides a readable storage medium, in which computer-executable instructions are preset. When the processor executes the computer-executable instructions, the above-mentioned blockchain-based vehicle information authentication and traceability method is implemented.

[0185] It should be noted that, in order to simplify the description of the disclosure of the present invention and thus assist in the understanding of one or more embodiments of the invention, in the foregoing description of the embodiments of the present invention, sometimes a plurality of features are combined into one embodiment, drawing or description thereof.

Claims

1. A vehicle information authentication and traceability method based on blockchain, characterized in that, The method includes: Obtaining an initial vehicle data set corresponding to a target vehicle, where the initial vehicle data set includes vehicle status data in multiple dimensions and associated environmental interaction data; Performing dynamic authentication identifier generation processing on the initial vehicle data set to obtain a real-time authentication identifier set corresponding to the target vehicle; Performing multi-node collaborative verification processing on the real-time authentication identifier set according to a preset blockchain consensus verification policy to generate a target vehicle authentication result set; Performing chained storage structure encapsulation processing on the target vehicle authentication result set and the initial vehicle data set to generate a target vehicle data block, and synchronizing the target vehicle data block to multiple distributed nodes of a blockchain network; In response to a vehicle information traceability request, performing traceability verification processing on the target vehicle data block stored in the blockchain network to generate a vehicle information traceability feedback result; The performing chained storage structure encapsulation processing on the target vehicle authentication result set and the initial vehicle data set to generate a target vehicle data block includes: Performing hash tree construction processing on the target vehicle authentication result set to generate an authentication result Merkle tree, and obtaining the root hash value of the authentication result Merkle tree; Performing data chunking processing on the initial vehicle data set to generate multiple data chunk units; Generating a hash value for each data chunk unit and constructing a Merkle tree to obtain a data chunk Merkle tree and a root hash value; Performing encryption processing on the data chunk unit to generate an encrypted data chunk, and performing associated storage processing on the encrypted data chunk and the leaf node hash value of the corresponding data chunk Merkle tree to generate a data chunk index table; Constructing a block header structure, where the block header structure includes the root hash value, the hash value of the previous block, timestamp information, a geographic coordinate coding vector, a time span coding vector, and a consensus verification parameter; Performing combined encapsulation processing on the block header structure, the data chunk index table, and the encrypted data chunk to generate the target vehicle data block.

2. The vehicle information authentication and traceability method based on blockchain according to claim 1, wherein, The performing dynamic authentication identifier generation processing on the initial vehicle data set to obtain a real-time authentication identifier set corresponding to the target vehicle includes: Performing hash digest calculation processing on each vehicle status data in the initial vehicle data set to generate a first hash digest value corresponding to each vehicle status data; Obtaining the data collection timestamp of each vehicle status data, and performing splicing processing on the data collection timestamp and the corresponding first hash digest value to generate multiple initial authentication identifier units; Performing spatio-temporal correlation feature extraction processing on the environmental interaction data to obtain a spatio-temporal correlation coding sequence corresponding to the environmental interaction data; Performing dynamic weight assignment processing on the multiple initial authentication identifier units based on the spatio-temporal correlation coding sequence to generate a dynamic weight coefficient corresponding to each initial authentication identifier unit; Performing weighted aggregation processing on the multiple initial authentication identifier units according to the dynamic weight coefficient to generate a real-time authentication identifier set corresponding to the target vehicle.

3. The vehicle information authentication and traceability method based on blockchain according to claim 2, wherein Performing spatio-temporal correlation feature extraction processing on the environmental interaction data to obtain a spatio-temporal correlation coding sequence corresponding to the environmental interaction data, including: Identifying the geographical location identifier and time interval identifier included in the environmental interaction data, and converting the geographical location identifier into a geographical coordinate coding vector; Splitting the time interval identifier into a start timestamp and an end timestamp, calculating the time span value between the start timestamp and the end timestamp, and converting the time span value into a time span coding vector; Performing multi-dimensional space mapping processing on the geographical coordinate coding vector and the time span coding vector to generate a spatio-temporal correlation mapping matrix; Performing serialization coding processing on the spatio-temporal correlation mapping matrix to obtain a spatio-temporal correlation coding sequence corresponding to the environmental interaction data.

4. The vehicle information authentication and traceability method based on blockchain according to claim 3, characterized in that Performing dynamic weight allocation processing on the multiple initial authentication identification units based on the spatio-temporal correlation coding sequence to generate a dynamic weight coefficient corresponding to each initial authentication identification unit, including: Dividing the spatio-temporal correlation coding sequence into multiple coding segments, with each coding segment corresponding to an initial authentication identification unit; Performing feature analysis processing on each coding segment to generate a segment weight parameter corresponding to each coding segment; Generating a dynamic weight coefficient for each initial authentication identification unit through calculation processing based on the correlation degree between the segment weight parameter and the corresponding initial authentication identification unit, where the correlation degree calculation processing includes: Obtaining whether the data collection timestamp included in the initial authentication identification unit is within the interval of the start timestamp and the end timestamp corresponding to the spatio-temporal correlation coding sequence to obtain a time matching degree, where the time matching degree is 1 or 0; Verifying whether the preset geographical area corresponding to the data type of the vehicle state data corresponding to the initial authentication identification unit contains the position represented by the geographical coordinate coding vector to obtain a space matching degree, where the space matching degree is 1 or 0; Performing weighted summation on the time matching degree and the space matching degree to obtain the dynamic weight coefficient.

5. The vehicle information authentication and traceability method based on blockchain according to claim 1, characterized in that, Performing multi-node collaborative verification processing on the real-time authentication identification set according to a preset blockchain consensus verification strategy to generate a target vehicle authentication result set, including: Selecting multiple verification nodes from the blockchain network, and distributing a hash digest copy of the real-time authentication identification set and the corresponding initial vehicle data set to each verification node; Performing a verification operation in each verification node: Regenerating a verification hash digest value for each vehicle state data based on the hash digest copy of the initial vehicle data set, and performing item-by-item comparison processing on the verification hash digest value and the first hash digest value in the real-time authentication identification set to generate a hash matching degree index; Extracting the data collection timestamps of each initial authentication identification unit in the real-time authentication identification set, and arranging them in chronological order to generate a timestamp verification sequence; Verifying whether the continuity of the timestamp verification sequence conforms to a preset time increasing rule to generate a time continuity index; When the hash matching degree index exceeds the first verification threshold and the time continuity index exceeds the second verification threshold, generate a local authentication pass result for the verification node; Generate the target vehicle authentication result set according to the comparison relationship between the number of local authentication pass results of all verification nodes and the preset consensus node number threshold.

6. The method for vehicle information authentication and traceability based on blockchain according to claim 5, wherein, The step of comparing the verification hash digest value with the first hash digest values in the real-time authentication identification set item by item to generate a hash matching degree index includes: Traverse each initial authentication identification unit in the real-time authentication identification set and extract the corresponding first hash digest value; Locate the original data unit corresponding to the initial authentication identification unit in the hash digest copy and recalculate the verification hash digest value of the original data unit; Calculate the character difference degree between the first hash digest value and the verification hash digest value, and determine that the hash matching is successful when the character difference degree is zero; Count the number of successful hash matches of all initial authentication identification units, and calculate the ratio of the number of successful hash matches to the total number of initial authentication identification units to generate the hash matching degree index; When the hash matching degree index reaches the first verification threshold, trigger a data integrity verification pass event.

7. The method for vehicle information authentication and traceability based on blockchain according to claim 5, characterized in that, The step of verifying whether the continuity of the timestamp verification sequence conforms to the preset time increasing rule to generate a time continuity index includes: Convert the timestamp verification sequence into a timestamp numerical sequence and sort it in ascending order to generate a reference time sequence; Calculate the time interval value between adjacent timestamps in the timestamp verification sequence to generate an actual time interval distribution; Generate a theoretical time interval value according to the preset acquisition frequency of the vehicle data acquisition device; Perform a difference calculation between the actual time interval distribution and the theoretical time interval value to generate a time deviation value set; Count the number of abnormal deviations exceeding the preset time tolerance threshold in the time deviation value set; Calculate the ratio of the number of abnormal deviations to the total number of timestamps to generate the time continuity index. When the time continuity index is lower than the second verification threshold, trigger a time validity verification pass event.

8. The method for vehicle information authentication and traceability based on blockchain according to claim 1, wherein In response to a vehicle information traceability request, perform a traceability verification process on the target vehicle data block stored in the blockchain network to generate a vehicle information traceability feedback result, including: Parse the target time range and target geographical area in the vehicle information traceability request, and locate a set of target data blocks in the blockchain network that meet the target time range and target geographical area; Perform an integrity verification process on each target data block in the set of target data blocks. The integrity verification process includes: Extract the root hash value in the block header structure of the target data block; Recalculate the current Merkle root hash value of the encrypted data block based on the data block index table; Verify whether the current Merkle root hash value is consistent with the root hash value in the block header structure; When the integrity verification of all target data blocks passes, an application for a decryption key is sent to the key management service of the blockchain network according to the authorization credential carried in the vehicle information tracing request; after verifying the legality of the authorization credential, the key management service generates a decryption key matching the target data block based on the dynamic sharding technology, and decrypts the encrypted data chunks according to the decryption key to obtain the original vehicle data chunks; According to the data chunk index table, the original vehicle data chunks are reorganized to generate a complete traced vehicle data set; The traced vehicle data set and the target vehicle authentication result set are subjected to correlation analysis processing to generate the vehicle information tracing feedback result.

9. A vehicle information authentication and traceability system based on blockchain, characterized in that, It includes a processor and a memory. The memory is connected to the processor. The memory is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the memory to implement the blockchain-based vehicle information authentication and tracing method according to any one of claims 1-8 above.

Citation Information

Patent Citations

  • Vehicle information management method, apparatus, device and system

    CN110047168A

  • Blockchain-based grain and oil food full supply chain credible tracing model based on block chain and construction method

    CN110516965A