Vehicle network comprising a plurality of nodes supporting a blockchain
The vehicle network optimizes proof of work calculations by using a coordinator node to manage parameters and distribute tasks, addressing resource limitations and ensuring secure transaction tracing.
Patent Information
- Application Number
- FR2021008203
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-07-28
AI Technical Summary
Existing networks require significant computing power and storage for proof of work calculations, which may not be available in certain environments, such as vehicle networks.
A vehicle network with a coordinator node that manages parameters like memory size, transaction size, CPU time, and nonce search strategy to optimize proof of work calculations across nodes, allowing for distributed calculation and verification.
Enables efficient proof of work calculations within vehicle networks with limited resources, balancing memory, calculation time, and CPU usage while ensuring secure transaction tracing and data integrity.
Smart Images

Figure 00000023_0000 
Figure 00000024_0000 
Figure 00000024_0001
Abstract
Description
Title of the invention: Vehicle network comprising a plurality of nodes supporting a blockchain
[0001] The present invention relates to a network comprising a plurality of nodes, all of the nodes being configured to contribute to a blockchain comprising a plurality of blocks. It finds a particular but non-limiting application in motor vehicles.
[0002] Networks known to those skilled in the art are networks in the IT field "Information Technology" which comprise a plurality of nodes, the plurality of nodes being configured to contribute to a block chain (called "Block Chain" in English) comprising a plurality of blocks. The nodes are servers and / or computers. Each block comprises at least one rewritable memory and is composed of at least one transaction and a cryptographic fingerprint of the previous block of the block chain. Each node is configured to: - calculating from the transactions of a current block, the cryptographic fingerprint of the previous block and a nonce, a proof of work of said current block, said proof of work being a cryptographic fingerprint with a predetermined validity criterion, and - transmit to all other nodes a nonce found that validates the proof of work with the validity criterion determined for the said current block. The proof of work guarantees the authenticity of each transaction.
[0003] A disadvantage of this state of the art is that the calculations of the different proofs of work require very significant and rapid computing power as well as a large set of storage memories which are not always available in the networks depending on the domains in which they are implemented.
[0004] In this context, the present invention aims to propose a vehicle network comprising a plurality of nodes, all of the nodes being configured to contribute to a block chain comprising a plurality of blocks which makes it possible to resolve the mentioned drawback.
[0005] To this end, the invention proposes a vehicle network comprising a plurality of nodes, said plurality of nodes being configured to contribute to a blockchain comprising a plurality of blocks, each block being composed of at least one transaction and a cryptographic fingerprint of a previous block of the blockchain, each node comprising at least one rewritable memory and being configured to: - calculating a proof of work of a current block, from said at least one transaction of said current block, the cryptographic fingerprint of the previous block and a nonce, said proof of work being a cryptographic fingerprint with a predetermined validity criterion, and characterized in that each node is configured to transmit to at least one node a found nonce which validates the proof of work with the validity criterion determined for said current block, and in that said network comprises a coordinator node configured to send one or more of the following parameters to the other nodes: - a primary parameter for storing a number of blocks depending on the size of said rewritable memory of the nodes, - a secondary parameter to define the size of a transaction based on a number of bytes allocated for a transaction, - a tertiary parameter to define a number of times to recalculate said proof of work based on the available CPU time of each node, - a quaternary parameter to define a search strategy for said nonce for the calculation of said proof of work, and in that said network comprises at least one node configured to: - receive transactions from one or more nodes, - construct a block from said received transactions based on a determined number of transactions per block.
[0006] Thus, as we will see in detail below, the fact of configuring the network via a coordinator node makes it possible to adapt to the computing power, the available memory, the CPU time available for the calculation of a proof of work in the nodes of the network. Thus, we obtain proofs of work in a reasonable time. Furthermore, having a coordinator node also makes it possible, if necessary, to notify the other nodes of the end of the calculation of the proof of work with the nonce found and to begin the verification.
[0007] According to non-limiting embodiments, said network may further comprise one or more additional characteristics taken alone or in all technically possible combinations, among the following.
[0008] According to a non-limiting embodiment, said at least one node which is configured to receive the transactions and construct a block from said transactions is said coordinator.
[0009] According to a non-limiting embodiment, said coordinator node is further configured to send said constructed block to the other nodes of said network to launch the calculation of the proof of work of said block.
[0010] According to a non-limiting embodiment, said at least one node which is configured to receive the transactions and construct a block from said transactions is all of the nodes of said network.
[0011] According to a non-limiting embodiment, a single node is configured to generate the transactions of a block, or several nodes are configured to generate the transactions of a block.
[0012] According to a non-limiting embodiment, the predetermined validity criterion relates to the start of the cryptographic fingerprint which must begin with a determined number of characters.
[0013] According to a non-limiting embodiment, a single node is configured to verify with the found nonce whether the predetermined validity criterion of the cryptographic fingerprint of said current block is met.
[0014] According to a non-limiting embodiment, several nodes are configured to verify with the found nonce whether the predetermined validity criterion of the cryptographic fingerprint of the block is met.
[0015] According to a non-limiting embodiment, said quaternary parameter indicates that each node is configured to use a different nonce to calculate said proof of work.
[0016] According to a non-limiting embodiment, said quaternary parameter indicates that one or more nodes are configured to use an even or odd nonce to calculate said proof of work.
[0017] According to a non-limiting embodiment, said quaternary parameter indicates that one or more nodes are configured to use a random nonce to calculate said proof of work.
[0018] According to a non-limiting embodiment, said quaternary parameter indicates that one or more nodes are configured to use an incremental nonce to calculate said proof of work.
[0019] According to a non-limiting embodiment, said quaternary parameter indicates that one or more nodes are configured to use a nonce according to a cooperative strategy according to which the different nodes share ranges of nonce values to calculate said proof of work.
[0020] According to a non-limiting embodiment, for a nonce which comprises values over a range of values between 0 and a maximum value Max, a node of index i will scan a range of nonce values equal to i*Max / N up to [(i+l)Max / N]-l, with i=0 to N-1, and N the total number of nodes.
[0021] According to a non-limiting embodiment, the nonce found is transmitted to said coordinator node
[0022] According to a non-limiting embodiment, the nonce found is transmitted directly to all the other nodes of said network.
[0023] According to a non-limiting embodiment, said coordinator node is further configured to add a block to the blockchain when the proof of work of said block has been verified.
[0024] According to a non-limiting embodiment, said coordinator node is further configured to store the chain of blocks in its rewritable memory.
[0025] According to a non-limiting embodiment, said transaction is a V2X transaction, with X an infrastructure, or with X said vehicle comprising said network, or with X another vehicle, or with X a device carried by a pedestrian.
[0026] According to a non-limiting embodiment, a node is an electronic control unit.
[0027] According to a non-limiting embodiment, said network is a vehicle network of a vehicle.
[0028] The invention and its various applications will be better understood upon reading the following description and examining the accompanying figures:
[0029] [Fig-1] is a schematic view of a network comprising a plurality of nodes, the set of nodes being configured to contribute to a blockchain comprising a plurality of blocks, according to a non-limiting embodiment of the invention,
[0030] [Fig.2] is a schematic illustration of a blockchain to which contributes said set of nodes of said network of [Fig.l], according to a non-limiting embodiment,
[0031] [Fig.3] is a schematic illustration of a proof-of-work calculation by a node of said network of [Fig.l], according to a non-limiting embodiment,
[0032] [Fig.4] is a schematic view of three different experiments taking into account taking into account the different settings for said network of [Fig.l], according to a non-limiting embodiment,
[0033] [Fig.5] is a table showing the results of the three different experiments of [Fig.4], according to a non-limiting example,
[0034] [Fig.6] is a diagram illustrating a search for a proof of work by different nodes of said network of [Fig.l], according to a first non-limiting embodiment,
[0035] [Fig.7] is a diagram illustrating a search for a proof of work by different nodes of said network of [Fig.l], according to a second non-limiting embodiment.
[0036] Identical elements, by structure or by function, appearing in different figures retain, unless otherwise specified, the same references.
[0037] The network 1 according to the invention is described with reference to Figures 1 to 7.
[0038] In a non-limiting embodiment, the network 1 is a vehicle network. of a vehicle 4. It is thus otherwise called vehicle network 1 in the remainder of the description. In a non-limiting embodiment, the vehicle 4 is a motor vehicle. By motor vehicle, we mean any type of motorized vehicle. This embodiment is taken as a non-limiting example in the remainder of the description. In the remainder of the description, the vehicle 4 is thus otherwise called motor vehicle 4.
[0039] The vehicle network 1 comprises a plurality of nodes 10 including a coordinator node 10'. In the non-limiting embodiment of the vehicle network 1, a node 10 is an electronic control unit. In the remainder of the description, a node 10 will otherwise be called an electronic control unit 10. In a non-limiting embodiment, the vehicle network 1 comprises between 50 and 150 electronic control units 10. In non-limiting examples, the electronic control units 10 are configured to perform functions of mileage counting, air conditioning, wiping, engine control, camera management, sensor management, semi-autonomous or autonomous driving, etc. In other non-limiting examples, the electronic control units 10 are configured to perform functions: - sending orders for consumables (windshield wipers, filters, brake pads in non-limiting examples, - connection to electric charging stations and payment for electricity consumption.
[0040] The nodes 10 are configured to exchange information by means of messages T otherwise called transactions T in the remainder of the description. In a non-limiting embodiment, the nodes 10 are further configured to exchange information by means of transactions T with other elements inside said motor vehicle 4. In these cases, in a non-limiting embodiment, a transaction T is a V2X transaction, with X said motor vehicle 4 comprising said vehicle network 1. The nodes 10 are also configured to exchange information by means of transactions T with other elements outside the motor vehicle 4.In this case, in non-limiting embodiments, a transaction T is thus a V2X transaction with X an infrastructure 5 (a base station, an electric charging terminal, a connected object in non-limiting examples), another vehicle 6, a device 7 (a Smartphone, a connected object in a non-limiting example) carried by a pedestrian.
[0041] Each node 10 comprises a rewritable memory 100. In a non-limiting embodiment, the rewritable memory 100 is a Flash memory. In a non-limiting embodiment, a node 10 comprises a rewritable memory 100 of about one hundred kilobytes. In a non-limiting example, the rewritable memory 100 is between 200 and 400 kilobytes. In a non-limiting variant embodiment, the rewritable memory 100 is equal to 256 kilobytes.
[0042] In order to have traceability of the transactions T exchanged, the plurality of nodes 10 is configured to contribute to a blockchain 2 comprising a plurality of blocks 20. A blockchain 2 is illustrated in [Fig.2] in a non-limiting example. Each block 20 is composed of at least one transaction T and a cryptographic fingerprint H i of a previous block 20 which is the previous adjacent block. A block 20 is preceded by only one previous block 20 and precedes only one next block 20. In a non-limiting embodiment, the block 20 is composed of a plurality of transactions T.
[0043] Thus, a node 10 is configured to generate a transaction T (function illustrated in [Fig.l] fl(10, T)).
[0044] In a first non-limiting embodiment, the transaction(s) T of the same block 20 are generated by a single node 10.
[0045] In a second non-limiting embodiment, the transaction(s) T of the same block 20 are generated by several nodes 10.
[0046] Each node 10 is configured to: - calculating a proof of work PoW of a current block 20 (otherwise called current block 20), from the transactions T of said current block 20, the cryptographic fingerprint H i of the previous block 20 and a nonce r, said proof of work PoW being a cryptographic fingerprint H with a predetermined validity criterion cl (function illustrated in [Fig.l] f2(10, PoW(cl), T, H br)), - transmit to at least one node 10 a nonce r found which validates the proof of work PoW with the determined validity criterion cl for said current block 20 (function illustrated in [Fig.l] f3(10, 10, r)). The nonce r is an integer used only once by a node 10.
[0047] In a first non-limiting embodiment, each node 10 is configured to transmit to the coordinator node 10' said nonce r found.
[0048] In a second non-limiting embodiment, each node 10 is configured to transmit to all the other nodes 10 of said vehicle network 1 (including the coordinator node 10') said found nonce r.
[0049] Thus, as illustrated in [Fig.2], a block 20 further comprises the found PoW proof of work.
[0050] In a non-limiting embodiment, the cryptographic fingerprint H is a hash. In a non-limiting alternative embodiment, the hash is a SHA256 hash. Thus, the proof of work PoW is a hash H with a predetermined validity criterion. cl. In a non-limiting embodiment, a hash H has a size of 32 bytes.
[0051] In a non-limiting embodiment, the predetermined validity criterion cl relates to the start of the cryptographic fingerprint H which must begin with a determined number Nb of characters. In a non-limiting embodiment, the determined number Nb is between 1 and 4. It will be noted that beyond 4, the calculation of a proof of work PoW will take much too long. In a non-limiting variant embodiment, the determined number Nb is equal to 1. In a non-limiting embodiment the characters are 0. Thus, in a non-limiting example, the predetermined validity criterion cl defines that the cryptographic fingerprint H always begins with a 0. Thus, in the non-limiting example taken, the proof of work PoW is a hash H which begins with a 0.
[0052] The nodes 10 of the vehicle network 1 search for a PoW proof of work for the current block 20. The first node 10 that finds a PoW proof of work thus sends a notification to said at least one node 10 (it transmits the nonce r found) so that the other nodes 10 of the vehicle network 1 stop their calculation of a PoW proof of work, and thus launch a verification. If the notification is sent to the coordinator node 10', the latter will send a notification to the other nodes 10 of the vehicle network 1 so that they stop their search for a PoW proof of work and launch the verification. It will be noted that some nodes 10 may not be available (due to a malfunction, corruption in non-limiting examples).
[0053] In a non-limiting embodiment, a node 10 is further configured to verify with the nonce r found whether the predetermined validity criterion cl of the cryptographic fingerprint H of said current block 20 is fulfilled (function illustrated in [Fig.l] f4(10, r, cl)). Thus, the node 10 will verify that the found proof of work PoW corresponds to the predetermined validity criterion cl, namely the criterion of 0 in the given non-limiting example. The node(s) 10 which verify the validity of the cryptographic fingerprint H are called verifier nodes 10. Each node 10 knows the current block 10, and the cryptographic fingerprint H i of the previous block 20. For the verification, the verifier node(s) 10 will thus calculate the cryptographic fingerprint H on the current block 20 using the received nonce r. If the cryptographic fingerprint H thus calculated verifies the predetermined validity criterion cl, then the proof of work PoW is verified.
[0054] In a first non-limiting embodiment, a single node 10 is configured to verify with the nonce r found whether the predetermined validity criterion cl of the cryptographic fingerprint H of said current block 20 is fulfilled. In a non-limiting variant embodiment, this node 10 is the coordinator node 10'.
[0055] In a second non-limiting embodiment, several nodes 10 are configured to verify with the found nonce r whether the predetermined validity criterion cl of the cryptographic fingerprint H of the block 20 is fulfilled. In this case, the plurality of nodes 10 comprises a portion of the nodes 10 of the vehicle network 1 or all the nodes 10 of the vehicle network 1. This allows for a more robust verification in the case where a node 10 is corrupted. This also allows for a majority vote. Indeed, if several nodes 10 consider that the predetermined validity criterion cl of the cryptographic fingerprint H of the block 20 is fulfilled, the proof of work PoW is validated. Otherwise, it is not validated.
[0056] As illustrated in [Fig.l], the network 1 comprises at least one node 10 configured to: - receive transactions from one or more nodes 10 (function illustrated in [Fig.l] f5(10, 10, T), and - construct a block 20 from said transactions T received according to a determined number nO of transactions T per block 20 to launch the calculation of the proof of work PoW of said block 20 (function illustrated in [Fig.l] f6(10, 20(T, nO), PoW)),.
[0057] In a first non-limiting embodiment, said at least one node 10 is the coordinator node 10'. Thus, the coordinator node 10' is configured to: - perform the functions f5 and f6, and - send the constructed block 20 to the other nodes 10 of said vehicle network 1 (function illustrated in [Fig.l] f7(10', 10, 20(n0, T))) to launch the calculation of the proof of work PoW, The coordinator node 10' thus receives and groups the generated T transactions.
[0058] Thus, the network 1 comprises a single node 10 which performs the functions f5 and f6. In this first non-limiting embodiment, each node 10 is further configured to receive from said coordinator block 10' a constructed block 20 comprising a number nO of transactions T (function illustrated in [Fig.l] f9(10, 10', 20(n0, T))).
[0059] In a second non-limiting embodiment, said at least one node 10 is the set of nodes 10 of the network 1 including the coordinator node 10'. Thus, each node 10 is configured to perform the functions f5 and f6. Thus, the network 1 comprises several nodes 10 which perform the functions f5 and f6.
[0060] In a non-limiting embodiment, the coordinator node 10' is further configured to store the block chain 2 in its rewritable memory 100 (function illustrated in [Fig.l] f 10(10', 2, 100). This makes it possible to store the block chain 2 in only one location in the vehicle network 1.
[0061] The construction of a block 20 comprises the concatenation of one or more transactions T and the addition of the cryptographic fingerprint H । of the previous block 20. Thus, the block 20 is constructed when the determined number nO is reached. In a mode non-limiting embodiment, the determined number nO is equal to 3. Block 20 thus comprises three transactions T.
[0062] In the first non-limiting embodiment, the coordinator node 10' thus waits to have three transactions T to construct a block 20 and launch the search for a proof of work PoW on said block 20.
[0063] In the second non-limiting embodiment, each node 10 (including the coordinator node 10') thus waits to have three transactions T to construct a block 20 and launch the search for a proof of work PoW on said block 20.
[0064] In the case of the first non-limiting embodiment, the launch of the calculation of the proof of work PoW comprises the provision by the coordinator node 10' of the constructed block 10 which is the current block 20 with the transactions T to the other nodes 10 so that they begin the search for the proof of work PoW. In other words, when the coordinator node 10' has constructed a block 20, it sends it to the other nodes 10 of the vehicle network 1 to launch the search for the proof of work PoW.
[0065] [Fig.3] illustrates a PoW proof-of-work calculation, namely a search for a PoW proof-of-work by a node 10. The search operation is otherwise called a mining operation or mining. As illustrated in [Fig.3], for the calculation of a PoW proof-of-work, a node 10 will have as inputs the cryptographic fingerprint H । of the previous block 20, the block 20 (received from the coordinator node 10' if applicable) called the current block 20, and a nonce r. Thus, the cryptographic fingerprint H of the current block 20 is calculated from the cryptographic fingerprint H i of the previous block 20, the current block 20 and a nonce r.
[0066] A nonce r is thus used in combination with the cryptographic fingerprint H i of the previous block 20 to find the cryptographic fingerprint H of the block 20 which meets the predetermined validity criterion cl. The verifier nodes 10 check whether the cryptographic fingerprint H found meets the predetermined validity criterion cl. If the cryptographic fingerprint H found meets the predetermined validity criterion cl, this means that the proof of work PoW is found, and the current block 20 is added to the block chain 2 (OK branch) with its cryptographic fingerprint H and the cryptographic fingerprint H i of the previous node 10. If not (NOK branch), this means that the proof of work PoW is not found. In this case, the current block 20 is not added to the block chain 2 and the node 10 starts the search for the proof of work PoW again with a new nonce r.The nonce r is modified until a cryptographic fingerprint H is found that meets the predetermined validity criterion cl, here which begins with a 0 in the non-limiting example taken.
[0067] To adapt to the constraints of the domain of the network 1, here the domain of motor vehicles in the non-limiting embodiment taken, the coordinator node 10' is configured to transmit one or more of the following parameters p (illustrated in [Fig.l]) to the other nodes 10 which makes it possible to configure the network 1: - a primary parameter pl for storing a number ni of blocks 20 depending on the size of said rewritable memory 100 of the nodes 10, - a secondary parameter p2 to define the size of a transaction T based on a number n2 of bytes allocated for a transaction T, - a tertiary parameter p3 to define a number n3 of times when said proof of work PoW is recalculated according to an available CPU time of each node 10, - a quaternary parameter p4 to define a search strategy for said nonce r for the calculation of said proof of work PoW.
[0068] In a non-limiting embodiment, the parameters p are coded on 32 bits. The primary parameter pl comprises a value between 1 and NI, with NI being an integer. The secondary parameter p2 comprises a value between 1 and N2, with N2 being an integer. The tertiary parameter p3 comprises a value between 1 and N3, with N3 being an integer. The quaternary parameter p4 comprises a value between 1 and N4, with N4 being an integer.
[0069] The different parameters p are sized according to the desired computational performance and the constraints in terms of CPU time consumption (CPU_tc), memory consumption (Mem_tc) and computation time (T_tc) of the nodes 10. Thus, the larger the numbers NI to N4, the greater the CPU consumption will be. The parameters p are defined to have a consensus between these three constraints and obtain the desired performances, in particular the desired computational performance of the PoW proof of work in seconds or minutes or the CPU load occupation in % in a non-limiting example. The determination of the values of the parameters p is done by experimentation. It will be noted that in addition to the computation of a PoW proof of work, the nodes 10 must execute the function(s) for which they are usually dedicated. For this purpose, these functions also consume CPU time.Thus, the calculation of a PoW proof of work will be distributed according to the available CPU time which is not used by the other functions.
[0070] [Fig.4] illustrates three non-limiting examples of experiments referenced EX1, EX2 and EX3 with certain different parameters p.
[0071] In experiment EX1, a block chain 2 comprises a maximum of 50 blocks. A block 20 comprises 10 transactions (n0=10), each transaction T being coded on 8 bytes (n2=8). A single block 20 can be stored in rewritable memory 100 (nl=1). And the PoW proof of work is recalculated 50 times (n3=50). An incremental nonce r is used, with the first nonce r being 0. All 10 nodes use the same nonce r.
[0072] In the EX2 experiment, a blockchain 2 includes 17 blocks maximum. A block 20 includes 10 transactions (n0=10), each transaction T being encoded on 8 bytes (n2=8). A single block can be stored in rewritable memory 100 (nl=1). And the proof of work PoW is recalculated 10 times (n3=10). An incremental nonce r is used, the first nonce r being 0. All nodes 10 use the same nonce r.
[0073] In the EX3 experiment, a blockchain 2 includes 17 blocks maximum. A block 20 includes 3 transactions (n0=3), each transaction T being encoded on 8 bytes (n2=8). A single block can be stored in rewritable memory 100 (nl=1). And the proof of work PoW is recalculated 3 times (n3=10). An incremental nonce r is used, the first nonce r being 0. All nodes 10 use the same nonce r.
[0074] With these parameters p thus configured, mining can begin (step E1); then the loop calculation of the proof of work PoW (step E2) can be carried out until it is found (step E3); the verification of the proof of work PoW is then executed (step E4); and finally if it is validated the addition of block 20 to the block chain 2 (step E5).
[0075] [Fig.5] illustrates the results of these three experiments EX1, EX2 and EX3 as a function of the memory consumption Mem_tc, the computation time for a trial T_tc for the PoW proof of work, the overall computation time Tg_tc for the PoW proof of work (which includes all computation trials), and the CPU time consumption CPU_tc.
[0076] As can be seen, experiment EX3 is the best in terms of Mem_tc memory consumption with 1889 bytes used against 3275 bytes for experiment EX2 and 9413 bytes for experiment EX1. This indicates that the fewer T transactions and the fewer 20 blocks in a 2 block chain, the less rewritable memory 100 is used.
[0077] Furthermore, experiment EX3 is also the best in terms of computation time for a T_tc test with 900qs (microseconds) against 15000 qs for experiment EX1 and 3000qs for experiment EX2. This allows for a maximum CPU time not to be exceeded for the computation of the PoW proof of work so that nodes 10 can perform the other tasks allocated to them.
[0078] Furthermore, experiment EX1 is the best in terms of mining with the lowest value of overall computation time of the PoW proof of work. We find the nonce r more quickly. It is indeed the fastest for the overall computation time Tg_tc of the PoW proof of work with 2.5 minutes against 8 minutes for experiment EX2 and 28 minutes for experiment EX3. However, this is done at the expense of CPU time CPU_tc since there is an overload of consumption CPU_tc CPU time with 150% versus 30% for experiment EX2 and 9% for experiment EX3. Therefore, node 10 will not be able to process other functions due to lack of CPU time allocated for these other functions. It is therefore necessary to find a balance between the overall computation time Tg_tc and the CPU consumption CPU_tc.
[0079] Thus, thanks to the parameters p, we can configure network 1 to find a good compromise between the CPU time and the overall computation time Tg_tc of the PoW proof of work. This increases the chances of quickly finding a nonce r while limiting the CPU usage time.
[0080] In a non-limiting embodiment, the number ni is equal to 1. Thus, each node 10 can store a single block 20 in its rewritable memory 100. The stored block 20 is the current block 20 for which the proof of work PoW must be sought. It is not necessary to store the entire chain of blocks 2 for the calculation of the proof of work PoW. The number 1 is particularly suitable for the electronic control units 10 of a vehicle network 1. Indeed, the rewritable memory 100 of an electronic control unit 10 is of the order of 256 kilobytes, which is small.
[0081] In a non-limiting embodiment, the number n2 is equal to 8 bytes. This size is particularly suitable for the electronic control units 10 of a vehicle network 1.
[0082] In a non-limiting embodiment, the number n3 is equal to 3. This size is particularly suitable for the electronic control units 10 of a vehicle network 1. Indeed, the CPU time used for searching for the proof of work PoW is a time when an electronic control unit 10 is not busy performing other tasks. This is a time when it is inactive (“idle” in English). If the available CPU time is significant, this number n3 can be increased.
[0083] In a first non-limiting embodiment, said quaternary parameter p4 indicates that each node 10 is configured to use a different nonce r to calculate said proof of work PoW. Thus, the nodes 10 do not perform the same calculation of the proof of work PoW, which makes it possible to optimize the calculations.
[0084] In a second non-limiting embodiment, said quaternary parameter p4 indicates that one or more nodes 10 are configured to use an even or odd nonce r to calculate said PoW proof of work. This increases the chances of quickly finding the PoW proof of work.
[0085] In a third non-limiting embodiment, said quaternary parameter p4 indicates that one or more nodes 10 are configured to use a random nonce r to calculate said proof of work PoW. This allows each node 10 to use a different nonce r.
[0086] In a fourth non-limiting embodiment, said quaternary parameter p4 indicates that one or more nodes 10 are configured to use an incremental nonce r to calculate said proof of work PoW. This is a simple calculation to perform. The nodes 10 use the same starting nonce r.
[0087] In a fifth non-limiting embodiment, the quaternary parameter p4 indicates that one or more nodes 10 are configured to use a nonce r according to a cooperative strategy according to which the different nodes 10 share ranges of values I of nonce r to calculate said proof of work PoW. In a non-limiting variant embodiment, for a nonce r which comprises values over a range of values I between 0 and a maximum value Max (Max integer), a node 10 of index i will scan a range of values I of nonces r equal to i*Max / N up to [(i+l)*Max / N]-l, with i=0 to Nl, and N the total number of nodes 10 in the vehicle network 1. This makes it possible to coordinate the search for nonce r and to optimize this search.
[0088] Thus, in a non-limiting example, if N=10, and Max = 4,294,967,295: - node 10 with index 0 will scan the range of values I = [0 - (Max / 10)-l], - node 10 with index 1 will scan the range of values I = [Max - (2*Max / 10)-l], ... - node 10 with index Nl will scan the range of values I = [9*Max - (10*Max / 10)-l].
[0089] Thus, these different non-limiting embodiments allow for sharing of calculations and allow for faster finding of the PoW proof of work. It will be noted that the five non-limiting embodiments can be combined with each other according to any of the combinations. Thus, certain nodes 10 will be configured to use a nonce r according to a non-limiting embodiment, other nodes 10 will be configured to use a nonce r according to another non-limiting embodiment, etc.
[0090] [Fig.6] illustrates in detail the steps of a search for proof of work PoW by different nodes 10 of the vehicle network 1, according to a first non-limiting embodiment. In the non-limiting example illustrated, four nodes 10, referenced ECU0, ECU1, ECU2 and ECU3, are illustrated. The coordinator node 10' is referenced ECU1. In the non-limiting embodiment illustrated, each node 10 can generate one or more transactions T. In the non-limiting embodiment illustrated, it is the coordinator node 10' which receives the transactions T, which constructs the block 20 and sends it to the other nodes 10.
[0091] For brevity, in the illustrated non-limiting example, the determined number n0=2. In the illustrated non-limiting embodiment, all nodes 10 are verifier nodes 10. In the illustrated non-limiting embodiment, nl=1, n2=8 bytes, n3=3, and p4 is defined such that the nonce r is incremented.
[0092] It will be noted that initially the block chain 2 is initialized. The initialization makes it possible to indicate to all the nodes 10 of the vehicle network 1 which algorithm for the fingerprint cryptographic fingerprint H will be used and what is the predetermined validity criterion cl that is used. In the non-limiting example the algorithm used is SHA256. In the non-limiting example used, the predetermined validity criterion cl is a single zero at the beginning of the cryptographic fingerprint H. This initialization step is carried out by the coordinator node 10'.
[0093] In a step El illustrated Fl(10, T), a node 10, referenced here ECUO, generates a first transaction T and sends it to the coordinator node 10' which receives it (step El' illustrated Fl'(10', 10, T)).
[0094] In a step E2 illustrated F2(10, T), another node 10, referenced here ECU2, generates a second transaction T and sends it to the coordinator node 10' which receives it (step E2' illustrated F2'(10', 10, T)). This step is carried out before, after or simultaneously with the first step El.
[0095] The determined number nO of transactions T having been reached, in a step E3 illustrated F3(10', 20, T), the coordinator node 10' constructs a block 20 from the first transaction T and second transaction T.
[0096] In a step E4 illustrated F4(10', 10, 20), the coordinator node 10' sends to the other nodes 10 said block 20 thus constructed to launch the calculation of the proof of work PoW of said block 20, which becomes the current block 20.
[0097] In a step E5 illustrated F5(10, 20, 100), each node 10 saves the received block 20, which is the current block 20 in its rewritable memory 100. The saves are carried out in parallel or in sequence in any order.
[0098] In a step E6 illustrated F6(10, PoW(20, H 4, r), cl), mining begins and is carried out by all nodes 10 including the coordinator node 10'. All nodes 10 search for a PoW proof of work for block 20 from said transactions T of said current block 20, the cryptographic fingerprint H i of the previous block 20 and a nonce r. The PoW proof of work must be a cryptographic fingerprint H which meets the predetermined validity criterion cl.
[0099] In a step E7 illustrated F7(10, PoW, cl), one of the nodes 10, here the one referenced ECU3, finds the cryptographic fingerprint H which fulfills the predetermined validity criterion cl, and which is therefore the proof of work PoW for the current block 20. It will be noted that finding the proof of work PoW is a function in particular of the computing power of a node 10 and the available CPU time. In a non-limiting example, the node 10 which takes care of the air conditioning function will be more available in winter than in summer for example.
[0100] In a step E8 illustrated F8(10, 10', r), the node 10 referenced ECU3 sends to the coordinator node 10' the nonce r found which made it possible to calculate the proof of work PoW.
[0101] In a step E8' illustrated F8'(10', 10, r), the coordinator node 10' transmits the found nonce r to the other nodes 10 so that they can verify the PoW proof of work. It thus notifies the end of the calculation of the PoW proof of work with the found nonce r and notifies them to start the verification step below.
[0102] In another non-limiting embodiment not illustrated, the node 10 referenced ECU3 directly sends the nonce r found to all the other nodes 10 of the vehicle network 1 including the coordinator node 10' so that they can verify the proof of work PoW.
[0103] In a step E9 illustrated F9(10, r, H(cl)), the nodes 10, referenced ECU0, ECU1 and ECU2, each check whether the nonce r found makes it possible to obtain a cryptographic fingerprint H which meets the predetermined validity criterion cl. The checks are carried out in parallel or in sequence in any order.
[0104] In a step E10 illustrated F10(10,v), the nodes 10, referenced ECU0 and ECU2, return the result v of their verification to the coordinator node 10'. The sendings are carried out in parallel or in sequence in any order.
[0105] In another non-limiting embodiment not illustrated, the nodes 10, referenced ECU0, ECU1 and ECU2, send to all the other nodes 10 of the vehicle network 1 the result v of their verification.
[0106] If all of the nodes 10 or the majority of the nodes 10 have a positive verification (positive result v), then in a step Eli illustrated Fl 1(10',20, 2), the coordinator node 10' adds the current block 20 in the block chain 2 which is saved in its rewritable memory 100. The current block 20 thus becomes the last block 20 of the block chain 2. If not, the nonce r found is refused, the current block 20 is not added to the block chain 2 and the nodes 10 continue the calculation of the proof of work PoW until receiving a valid nonce r.
[0107] [Fig.7] illustrates in detail the steps of a PoW proof of work search by different nodes 10 of the vehicle network 1, according to a second non-limiting embodiment. In the illustrated non-limiting example, four nodes 10, referenced ECU0, ECU1, ECU2 and ECU3, are illustrated. The coordinator node 10' is referenced ECU1. In the illustrated non-limiting embodiment, each node 10 can generate one or more transactions T. In the illustrated non-limiting embodiment, each node 10 receives the transactions T and constructs the block 20.
[0108] For brevity, in the illustrated non-limiting example, the determined number n0=2. In the illustrated non-limiting embodiment, all nodes 10 are verifier nodes 10. In the illustrated non-limiting embodiment, nl=1, n2=8 bytes, n3=3, and p4 is defined such that the nonce r is incremented.
[0109] It will be noted that initially the block chain 2 is initialized. The initialization makes it possible to indicate to all the nodes 10 of the vehicle network 1 which algorithm for the fingerprint cryptographic fingerprint H will be used and what is the predetermined validity criterion cl that is used. In the non-limiting example the algorithm used is SHA256. In the non-limiting example used, the predetermined validity criterion cl is a single zero at the beginning of the cryptographic fingerprint H. This initialization step is carried out by the coordinator node 10'.
[0110] In a step El illustrated Fl(10, T), a node 10, referenced here ECU0, generates a first transaction T and sends it to all the other nodes 10 including the coordinator node 10' which receive it (step El' illustrated Fl'(10, 10, T)).
[0111] In a step E2 illustrated F2(10, T), another node 10, referenced here ECU2, generates a second transaction T and sends it to all the other nodes 10 including the coordinator node 10' which receive it (step E2' illustrated F2'(10, 10, T)). This step is carried out before, after or simultaneously with the first step El.
[0112] The determined number nO of transactions T having been reached, in a step E3 illustrated F3(10, 20, T), each node 10 constructs the block 20 from the first transaction T and second transaction T.
[0113] In a step E4 illustrated F4(10, 20, 100), each node 10 saves the block 20 that it has constructed, which is the current block 20 in its rewritable memory 100. The saves are carried out in parallel or in sequence in any order.
[0114] In a step E5 illustrated F5(10, PoW(20, H 4, r), cl), mining begins and is performed by all nodes 10 including the coordinator node 10'. All nodes 10 search for a PoW proof of work for block 20 from said transactions T of said current block 20, the cryptographic fingerprint H i of the previous block 20 and a nonce r. The PoW proof of work must be a cryptographic fingerprint H which meets the predetermined validity criterion cl.
[0115] In a step E6 illustrated F6(10, PoW, cl), one of the nodes 10, here the one referenced ECU3, finds the cryptographic fingerprint H which fulfills the predetermined validity criterion cl, and which is therefore the proof of work PoW for the current block 20. It will be noted that finding the proof of work PoW is a function in particular of the computing power of a node 10 and the available CPU time. In a non-limiting example, the node 10 which takes care of the air conditioning function will be more available in winter than in summer for example.
[0116] In a step E7 illustrated F7(10, 10, r), the node 10 referenced ECU3 sends to all the other nodes including the coordinator node 10' the nonce r found which made it possible to calculate the PoW proof of work so that they can verify the PoW proof of work.
[0117] In a step E8 illustrated F8(10, r, H(cl)), the nodes 10, referenced ECU0, ECU1 and ECU2, each check whether the nonce r found makes it possible to obtain a fingerprint cryptographic H that meets the predetermined validity criterion cl. The checks are performed in parallel or in sequence in any order.
[0118] In a step E9 illustrated F9(10,v), the nodes 10, referenced ECUO, ECU1 and ECU2, return the result v of their verification to all the other nodes 10 of the network 1 including the coordinator node 10'. The sendings are carried out in parallel or in sequence in any order.
[0119] If all of the nodes 10 or the majority of the nodes 10 have a positive verification (positive result v), then in a step E10 illustrated F10(10',20,2), the coordinator node 10' adds the current block 20 to the block chain 2 which is saved in its rewritable memory 100. The current block 20 thus becomes the last block 20 of the block chain 2. If not, the nonce r found is refused, the current block 20 is not added to the block chain 2 and the nodes 10 continue calculating the proof of work PoW until receiving a valid nonce r.
[0120] Of course, the description of the invention is not limited to the embodiments described above and to the field described above. Thus, the invention can be applied to fields other than the field of motor vehicles, such as, in non-limiting examples, the railway field, the aeronautics field, the IOT field including connected objects. Thus, in a non-limiting embodiment, the coordinator node 10' is further configured to send to the other nodes 10 an additional parameter relating to a maximum number of blocks 20 in the block chain 2. Thus, the network 1 is further configured by means of this additional parameter. This makes it possible to address the limited memory capacity in the motor vehicle 4 as a whole. Thus, in a non-limiting embodiment, certain nodes 10 may not generate a transaction T. They are used only to calculate a proof of work PoW.
[0121] Thus, the invention described presents in particular the following advantages: - it allows a chain of blocks 2 to be implemented within a network 1 whose nodes 10 do not have the computing power (often in Gigahertz) and the memory (often in Gigabytes) of the servers or computers found in the IT ("Information Technology" field). In particular, it allows a chain of blocks 2 to be used in a vehicle network 1: it allows a chain of blocks 2 to be implemented within a network 1 whose nodes 10 have low computing power (in Megahertz), and a small memory (in kilobytes or Megabytes), - it allows to solve the computation time constraint of a PoW proof of work by means of a distributed computation between the nodes 10 and to optimize the search time of the PoW proof of work, - it allows to find a compromise between the memory available in a node 10 of a network 1, the calculation time of a PoW proof of work, and the consumption of CPU time, - it provides an easy implementation of a blockchain 2 embedded in a network 1, in particular a vehicle network 1, - the fact of using a blockchain 2 within a network 1, in particular a vehicle 4, offers the possibility of tracing transactions T and of strengthening the security of data exchanged during transactions T; transactions T cannot be falsified, - it thus makes it possible to carry out a PoW proof of work search in a reasonable time for a network 1 whose nodes 10 do not have a lot of computing power, - the use of a blockchain 2 is more secure than a classic cryptographic solution because it avoids the falsification of the traceability of all transactions T unlike the cryptographic solution which only avoids the falsification of transactions T and which does not guarantee traceability, - it allows the use of a chain of blocks 2 in a network 1 of a vehicle 4 which solves the problem of connectivity outside the vehicle 4 commonly used to obtain a chain of blocks 2 in the prior art, since all the exchanges are made between the nodes 10 of the vehicle network 1 in the vehicle 4, and no longer with elements external to the vehicle 4, such as a server which uses its computing power which manages the entire chain of blocks 2; the fact of being able to manage its own chain of blocks 2 thus makes the vehicle 4 more autonomous, - having a chain of blocks 2 in a network 1 of a vehicle 4 makes it possible to use this vehicle 4 in a super network formed by several vehicles which can exchange different transactions T coming from said vehicles in particular.
Claims
1. Claims Vehicle network (1) of a vehicle (4), said network (1) comprising a plurality of nodes (10), said plurality of nodes (10) being configured to contribute to a blockchain (2) comprising a plurality of blocks (20), each block (20) being composed of at least one transaction (T) and a cryptographic fingerprint (H i) of a previous block (20) of the blockchain (2), each node (10) comprising at least one rewritable memory (100) and being configured to: - calculating a proof of work (PoW) of a current block (20), from said at least one transaction (T) of said current block (20), from the cryptographic fingerprint (H4) of the previous block (20) and from a nonce (r), said proof of work (PoW) being a cryptographic fingerprint (H) with a predetermined validity criterion (cl), and characterized in that each node (10) is configured to transmit to at least one node (10) a nonce (r) found which validates the proof of work (PoW) with the determined validity criterion (cl) for said current block (20), and in that said network (1) comprises a coordinator node (10') configured to send one or more of the following parameters (p) to the other nodes (10): - a primary parameter (pl) for storing a number (ni) of blocks (20) depending on the size of said rewritable memory (100) of the nodes (10), - a secondary parameter (p2) to define the size of a transaction (T) based on a number (n2) of bytes allocated for a transaction (T), - a tertiary parameter (p3) to define a number (n3) of times when said proof of work (PoW) is recalculated based on the available CPU time of each node (10), - a quaternary parameter (p4) to define a search strategy for said nonce (r) for the calculation of said proof of work (PoW), and in that said network (1) comprises at least one node (10) configured to: - receive transactions (T) from one or more nodes (10), - constructing a block (20) from said transactions (T) received according to a determined number (nO) of transactions (T) per block (20).
2. Vehicle network (1) according to claim 1, wherein said at least one node (10) which is configured to receive the transactions (T) and construct a block (20) from said transactions (T) is said coordinator (10').
3. Vehicle network (1) according to claim 2, wherein said coordinator node (10') is further configured to send said constructed block (20) to the other nodes (10) of said network (1) to initiate the calculation of the proof of work (PoW) of said block (20).
4. Vehicle network (1) according to claim 1, wherein said at least one node (10) which is configured to receive the transactions (T) and construct a block (20) from said transactions (T) is the set of nodes (10) of said network (1).
5. The vehicle network (1) of claim 1, wherein a single node (10) is configured to generate the transactions (T) of a block (20), or multiple nodes (10) are configured to generate the transactions (T) of a block (20).
6. Vehicle network (1) according to any one of the preceding claims, according to which the predetermined validity criterion (cl) relates to the start of the cryptographic fingerprint (H) which must begin with a determined number (Nb) of characters.
7. Vehicle network (1) according to any one of the preceding claims, according to which a single node (10) is configured to check with the nonce (r) found whether the predetermined validity criterion (cl) of the cryptographic fingerprint (H) of said current block (20) is fulfilled.
8. Vehicle network (1) according to any one of claims 1 to 6, according to which several nodes (10) are configured to check with the found nonce (r) whether the predetermined validity criterion (cl) of the cryptographic fingerprint (H) of the block (20) is fulfilled.
9. A vehicle network (1) according to any preceding claim, wherein said quaternary parameter (p4) indicates that each node (10) is configured to use a different nonce (r) to calculate said proof of work (PoW).
10. Vehicle network (1) according to any one of the preceding claims, according to which said quaternary parameter (p4) indicates that one or more nodes (10) are configured to use an even or odd nonce (r) to calculate said proof of work (PoW).
11. A vehicle network (1) according to any one of the preceding claims 1 to 8 or according to claim 10, wherein said quaternary parameter (p4) indicates that one or more nodes (10) are configured to use a random nonce (r) to calculate said proof of work (PoW).
12. A vehicle network (1) according to any preceding claim, wherein said quaternary parameter (p4) indicates that one or more nodes (10) are configured to use an incremental nonce (r) to calculate said proof of work (PoW).
13. Vehicle network (1) according to any one of the preceding claims, wherein said quaternary parameter (p4) indicates that one or more nodes (10) are configured to use a nonce (r) according to a cooperative strategy according to which the different nodes (10) share ranges of values (I) of nonce (r) to calculate said proof of work (PoW).
14. Vehicle network (1) according to the preceding claim, according to which for a nonce (r) which comprises values over a range of values (I) between 0 and a maximum value Max, a node (10) of index i will scan a range of values (I) of nonces (r) equal to i*Max / N up to [(i+l)Max / N]-l, with i=0 to Nl, and N the total number of nodes (10).
15. Vehicle network (1) according to any one of the preceding claims, according to which the nonce (r) found is transmitted to said coordinator node (10').
16. Vehicle network (1) according to any one of the preceding claims 1 to 14, according to which the nonce (r) found is transmitted directly to all the other nodes (10) of said network (1).
17. A vehicle network (1) according to any preceding claim, wherein said coordinator node (10') is further configured to add a block (20) into the blockchain (2) when the proof of work (PoW) of said block (20) has been verified.
18. Vehicle network (1) according to any one of the preceding claims, according to which said coordinator node (10') is further configured to store in its rewritable memory (100) the blockchain (2). 22
19. Vehicle network (1) according to any one of the preceding claims, wherein said transaction (T) is a V2X transaction, with X an infrastructure (5), or with X said vehicle (4) comprising said network (1), or with X another vehicle (6), or with X a device (7) carried by a pedestrian.
