Electric vehicle information authentication method
Technical field
The present invention relates to vehicle transaction authentication techniques field, more particularly to a kind of electric vehicle information authentication method.
Background technology
During vehicle transaction, it there is a problem that car condition information is unknown, such as accident information, maintenance letter
Breath, this also becomes electric vehicle and carries out the obstruction that pass-along deal is smoothed out.
Block chain technology is decentralization, have to be suitable for skill as a kind of anonymous, decentralization technology, essence
Certification in art product process of exchange, however such as bit coin in reality, the calculation power for digging mine is excessively concentrated, the mine factory collection of ranking several former
The one third or so of whole calculation power is suffered, this present situation has violated the original idea of block chain technology so that existing block chain skill
Art can not adapt to electric vehicle transaction authentication very well.
Invention content
In view of this, the present invention provides a kind of electric vehicle information authentication method.
A kind of electric vehicle information authentication method, including:
The Vehicle Identify Number for obtaining electric vehicle, using the Vehicle Identify Number of electric vehicle as the unique identifier of electric vehicle;
After electric vehicle is maintained and/or repaired each time, electronic vapour is written into emm message and/or repair message
In vehicle information aggregate;
Establish the correspondence of electric vehicle information aggregate and unique identifier;By correspondence, unique identifier, electronic
Automobile information set is converted to original character string information;
Block is generated based on time scheduling rule, block is written into original character string information;
Block network according to the block of generation structure for electric vehicle authentification of message;
Electric vehicle information is authenticated by block network.
In electric vehicle information authentication method of the present invention,
It is described after electric vehicle is maintained and/or is repaired each time, electricity is written into emm message and/or repair message
Electrical automobile information aggregate includes:
After electric vehicle is maintained and/or repaired each time, electronic vapour is written into emm message and/or repair message
Vehicle information aggregate;
The emm message includes:Vehicle driving mileage information checks information, member replacing information, maintenance location information;
The repair message includes:Maintenance position information, maintenance mode information, repair location information, setting loss information.
In electric vehicle information authentication method of the present invention,
It is described by block network to electric vehicle information be authenticated including:
When electric vehicle transaction occurs, the original character string information described in block is read, by block network to original
Beginning character string information is authenticated;Certification by when, will Transaction Information be written block in.
In electric vehicle information authentication method of the present invention,
By block network to original character string information be authenticated including:
Block node in block network is carried out being divided into different confirmation subnets according to block node corresponding network address
Network;
It is arranged and confirms that the block node of sub-network confirms upper limit rule;
Confirm upper limit rule according to block node, original character string information is authenticated by block network.
In electric vehicle information authentication method of the present invention,
It is described to be included the following steps based on time scheduling rule generation block:
Block generates allocation rule, calculates power recognition rule in block generating process in S01, configuration block chain;
S02, block sum in allocation rule generation block chain is generated by block, and by block sum according to network address
Section is allocated each network address section of acquisition and corresponds to block pond;
The block generation request of S03, receiving node, whether the block of decision node generates asks corresponding request time full
Foot presets cooling time, and step S04 is jumped to when meeting, and the block for otherwise refusing node generates request;
S04, allocation rule is generated according to preset block, calculates power recognition rule generation block.
In electric vehicle information authentication method of the present invention,
The step S04 includes:
The block generation request of S1, receiving node, determine the network address section where the node of request, and judge place net
It corresponds to whether block pond reaches the upper limit in network address field, step S4 is jumped to when reaching the upper limit, otherwise jump to step S2;
S2, judge whether the node of request occurs calculating power exception by calculating power recognition rule, jumped when power exception is calculated in appearance
Step S4 is gone to, step S3 is otherwise jumped to;
S3, new block is generated according to default block create-rule information, and terminated;
S4, the block for refusing node generate request.
In electric vehicle information authentication method of the present invention,
Judge whether the node of request occurs calculating power including extremely by calculating power recognition rule in the step S2:
S21, it is sent to node and calculates power test program, and the calculation power test result of receiving node feedback;
S22, judge whether the node of request occurs calculating power exception according to calculation power test result.
In electric vehicle information authentication method of the present invention,
Further include before the step S21:
The mutual exclusion rule that each network address section interior nodes generate block chain is configured according to network address section;
Corresponding node, which is configured, according to mutual exclusion rule calculates power adjustment rule;
Correspondingly, the step S22 includes:
S221, judge whether the node of request meets mutual exclusion rule, when meeting mutual exclusion rule, jump to step S3;It is no
Then jump to step S222;
S222, the calculation power that the node entry that power adjustment rule adjustment is asked is calculated according to node influence coefficient;
S223, the calculation power for influencing the node of the request after coefficient is adjusted by calculating power, and judge the request after adjustment
Node calculation power whether calculate power exception.
In electric vehicle information authentication method of the present invention,
Block sum is allocated each network address section of acquisition according to network address section in the step S02 and corresponds to area
Block pond includes:
Network address is divided into the network address section of different levels;
Block sum divide according to the network address section of different levels and obtains each hierarchical network address field correspondence
Block pond.
In electric vehicle information authentication method of the present invention,
It is described according to network address section configure each network address section interior nodes and generate the mutual exclusion rule of block chain include:
Further include before the step S21:
The mutual exclusion rule that each network address section interior nodes generate block chain is configured according to network address section;
Corresponding node, which is configured, according to mutual exclusion rule calculates power adjustment rule;
Configuring corresponding node calculation power adjustment rule according to mutual exclusion rule includes:
θ=δ1*δ2*...δn, wherein θ is that node calculates power Tuning function, δ1For node this level network address section
Standard request rate, δ2For node the network address section of last layer grade standard request rate, and so on, n be node where
Total level of network address section.
Advantageous effects:The electric vehicle authentification of message of the present invention compared with the existing technology, can be realized:Pass through block
The situation of remote of electric vehicle is authenticated, the credibility of certification is substantially increased;In addition it is given birth to by the block of decision node
At asking whether corresponding request time meets default cooling time, certain some node in network is avoided constantly to be dug
Mine;Allocation rule is generated by block and generates block sum in block chain, and block sum is divided according to network address section
Block pond is corresponded to each network address section is obtained, block can be carried out forcing to be distributed distribution according to region, avoided because digging
The calculation power of mine is excessively concentrated, the generation of the most of block of mine factory monopolization of ranking several former so that by block to electric vehicle
The certification of process of exchange is more reliable.
Description of the drawings
Fig. 1 is electric vehicle information authentication method flow chart provided in an embodiment of the present invention.
Specific implementation mode
As shown in Figure 1, in embodiments of the present invention, a kind of electric vehicle information authentication method, including:
The Vehicle Identify Number for obtaining electric vehicle, using the Vehicle Identify Number of electric vehicle as the unique identifier of electric vehicle;
After electric vehicle is maintained and/or repaired each time, electronic vapour is written into emm message and/or repair message
In vehicle information aggregate;
Establish the correspondence of electric vehicle information aggregate and unique identifier;By correspondence, unique identifier, electronic
Automobile information set is converted to original character string information;
Block is generated based on time scheduling rule, block is written into original character string information;
Block network according to the block of generation structure for electric vehicle authentification of message;
Electric vehicle information is authenticated by block network.
Advantageous effects:The electric vehicle authentification of message of the present invention compared with the existing technology, can be realized:Pass through block
The situation of remote of electric vehicle is authenticated, the credibility of certification is substantially increased.
In electric vehicle information authentication method of the present invention,
It is described after electric vehicle is maintained and/or is repaired each time, electricity is written into emm message and/or repair message
Electrical automobile information aggregate includes:
After electric vehicle is maintained and/or repaired each time, electronic vapour is written into emm message and/or repair message
Vehicle information aggregate;
The emm message includes:Vehicle driving mileage information checks information, member replacing information, maintenance location information;
The repair message includes:Maintenance position information, maintenance mode information, repair location information, setting loss information.
In electric vehicle information authentication method of the present invention,
It is described by block network to electric vehicle information be authenticated including:
When electric vehicle transaction occurs, the original character string information described in block is read, by block network to original
Beginning character string information is authenticated;Certification by when, will Transaction Information be written block in.
In electric vehicle information authentication method of the present invention,
By block network to original character string information be authenticated including:
Block node in block network is carried out being divided into different confirmation subnets according to block node corresponding network address
Network;
It is arranged and confirms that the block node of sub-network confirms upper limit rule;
Confirm upper limit rule according to block node, original character string information is authenticated by block network.
By the way that the confirmation upper limit rule is arranged, certification can be avoided to be happened at a small range, it is credible to reduce certification.It can
Selection of land confirms that upper limit quantity is different for the block node of different confirmation sub-networks.
It optionally, can also be by being analyzed to identify the hash values of the corresponding hardware encoding of block node in sub-network, to match
The cooling time for setting the confirmation of block node, to carry out confirming that covering surface is more extensive by block.
In electric vehicle information authentication method of the present invention,
It is described to be included the following steps based on time scheduling rule generation block:
Block generates allocation rule, calculates power recognition rule in block generating process in S01, configuration block chain.
In the prior art, the allocation rule generated without block is gone yuan often by power size is calculated to determine generation
Node contribution margin, although the determination of contribution margin there are many mode, does not have distribution mechanism;And simple passes through calculation power
Size determines contribution margin so that large-scale mortar businesses concentrate a large amount of high-performance computers or server to be far longer than
The calculation power of common computer is to obtain more blocks.This step, can be right by generating allocation rule, calculating power recognition rule
It distinguishes to generate and be allocated, and the mine factory running that profession digs mine can be limited to a certain extent, improve its operating cost.
S02, block sum in allocation rule generation block chain is generated by block, and by block sum according to network address
Section is allocated each network address section of acquisition and corresponds to block pond;
Optionally, block sum is allocated according to network address section and can carries out segmentation division by IP address with 1.,
Can also 2. IP address in such a way that MAC Address is combined or 3. pass through backbone network, IP Address in LAN distribution rule
Then determine.
Optionally,
Block sum is allocated each network address section of acquisition according to network address section in the step S02 and corresponds to area
Block pond includes:
Network address is divided into the network address section of different levels;
Block sum divide according to the network address section of different levels and obtains each hierarchical network address field correspondence
Block pond.
In a preferred embodiment of the invention, by the way that network address to be divided into the network address section of different levels, and it is final
Divide and obtain each hierarchical network address field and correspond to block pond, for example allocation rule is as follows:
First level network address section A, B, C, and limit the transformation that A, B, C correspond to block in block pond.
Further, in the second level network address section, A is divided into a1, a2, a3, and limits a1, a2, a3 correspondence
The transformation of block in block pond, and can connect and be finely divided.
Preferred embodiment through the invention not only needs the requirement for meeting block pond in this hierarchical network address field, also needs
The hierarchical network address field for meeting this hierarchical network address field or more corresponds to the requirement in block pond so that block generate when pair
In limitation more the having levels property of quantity.
Optionally,
It is described according to network address section configure each network address section interior nodes and generate the mutual exclusion rule of block chain include:
According to the network address section configuration node of different levels different levels network address section standard request rate;
The mutual exclusion rule of block chain is generated according to standard request rate.
In a preferred embodiment of the invention, standard request rate is that the node asked in the hierarchical network address field accounts for all sections
The ratio value of point, standard request rate are to generate the mutual exclusion rule of block chain.
The block generation request of S03, receiving node, whether the block of decision node generates asks corresponding request time full
Foot presets cooling time, and step S04 is jumped to when meeting, and the block for otherwise refusing node generates request;
Optionally, the set-up mode that cooling time is set in the step S03 can be fixed cooling time, or floating
Dynamic cooling time, floating length cooling time and the number of blocks that the node generates are proportional.
S04, allocation rule is generated according to preset block, calculates power recognition rule generation block.
Optionally, the step S04 includes:
The block generation request of S1, receiving node, determine the network address section where the node of request, and judge place net
It corresponds to whether block pond reaches the upper limit in network address field, step S4 is jumped to when reaching the upper limit, otherwise jump to step S2;
S2, judge whether the node of request occurs calculating power exception by calculating power recognition rule, jumped when power exception is calculated in appearance
Step S4 is gone to, step S3 is otherwise jumped to;
Optionally,
Judge whether the node of request occurs calculating power including extremely by calculating power recognition rule in the step S2:
S21, it is sent to node and calculates power test program, and the calculation power test result of receiving node feedback;
S22, judge whether the node of request occurs calculating power exception according to calculation power test result.
Optionally,
Further include before the step S21:
The mutual exclusion rule that each network address section interior nodes generate block chain is configured according to network address section;
Corresponding node, which is configured, according to mutual exclusion rule calculates power adjustment rule.
Optionally, configuring corresponding node calculation power adjustment rule according to mutual exclusion rule includes:
θ=δ1*δ2*...δn, wherein θ is that node calculates power Tuning function, δ1For node this level network address section
Standard request rate, δ2For node the network address section of last layer grade standard request rate, and so on, n be node where
Total level of network address section.
Optionally,
The step S21 includes:
S211, it is sent to node and calculates power test program, the calculation power test program includes floating-point operation, node unique identification
Code obtains program;
The calculation power test result of the feedback of S222, receiving node, the calculation power test result include floating-point operation result, section
Point unique identifier.
Correspondingly, the step S22 includes:
S221, judge whether the node of request meets mutual exclusion rule, when meeting mutual exclusion rule, jump to step S3;It is no
Then jump to step S222;
S222, the calculation power that the node entry that power adjustment rule adjustment is asked is calculated according to node influence coefficient;
Optionally, the value of θ, which is the calculation power for the node entry asked, influences coefficient.
S223, the calculation power for influencing the node of the request after coefficient is adjusted by calculating power, and judge the request after adjustment
Node calculation power whether calculate power exception.
Calculation power of the product of the calculation power of calculation power influence coefficient and the node of request as the node of the request after adjustment.
Optionally, power outlier threshold is calculated in setting, and the calculation power of the node of the request after adjustment is carried out with power outlier threshold is calculated
Comparison then confirms that the calculation power of the node of the request after adjustment is abnormal if it is greater than power outlier threshold is calculated.
S3, new block is generated according to default block create-rule information, and terminated;
Optionally, in electric vehicle information authentication method of the present invention,
The step S3 includes:
Using the calculation power of the node of the request after adjustment as contribution margin according to generation new block.
S4, the block for refusing node generate request.
Advantageous effects:The electric vehicle information authentication method of the present invention compared with the existing technology, can be realized:Pass through
Block is authenticated the situation of remote of electric vehicle, substantially increases the credibility of certification;In addition pass through the area of decision node
Block, which generates, asks whether corresponding request time meets default cooling time, certain some node in network is avoided to carry out constantly
Dig mine;Allocation rule is generated by block and generates block sum in block chain, and block sum is carried out according to network address section
Distribution obtains each network address section and corresponds to block pond, can carry out according to region forcing distribution distribution to block, avoid because of
The calculation power for digging mine is excessively concentrated, the generation of the most of block of mine factory monopolization of ranking several former so that by block to electronic vapour
The certification of vehicle process of exchange is more reliable.
It is understood that for those of ordinary skill in the art, can be conceived with the technique according to the invention and be done
Go out various other corresponding changes and deformation, and all these changes and deformation should all belong to the protection model of the claims in the present invention
It encloses.