Vehicle data storage method and vehicle data storage system

The vehicle data storage system uses a blockchain with nodes generating blocks based on a common key and majority voting to ensure data authenticity and prevent forks, addressing computational inefficiencies and data loss in PoW-type blockchains.

JP7571480B2Active Publication Date: 2024-10-23DENSO CORP

Patent Information

Application Number
JP2020186669
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-10-23
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

Existing vehicle data storage methods face challenges in ensuring data authenticity and preventing forks in PoW-type blockchains, which require significant computational resources and lead to data loss.

Method used

A vehicle data storage system using a blockchain with multiple nodes that generate blocks including a signature value based on a common key, verify blocks through majority voting, and use random retransmission to prevent forks, reducing computational load and costs.

Benefits of technology

Ensures data authenticity while minimizing computational resources and costs, preventing data loss due to forks, and maintaining system robustness against node failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571480000001
    Figure 0007571480000001
  • Figure 0007571480000002
    Figure 0007571480000002
  • Figure 0007571480000003
    Figure 0007571480000003
Patent Text Reader

Abstract

To provide a vehicle data storage method and a vehicle data storage system, capable of securing reliability of storage data while suppressing an introduction cost.SOLUTION: Each of a plurality of ECUs 1 includes a common key Ky. Each ECU 1 generates a block in, for example, a constant time interval. The block contains a signature value obtained by encrypting original data containing a prior signature value as a signature value of a final block and a transaction by the common key, and thus front and rear blocks are associated. In each ECU 1, when the block is generated, it is distributed to each ECU 1 for requesting a verification. When the ECU 1 receives a block generated by the other ECU 1, legitimacy is verified by using the common key, and its result is transmitted to them. Each ECU 1 makes the block of which the legitimacy is recognized in the majority ECUs 1 connect to a block chain. In the case where the block is generated in the plurality of ECUs 1 at the same time, each of them submits a verification request after a stand for a random time, respectively.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a technique for storing vehicle data using blockchain technology. [Background technology]

[0002] Patent Document 1 discusses a technology for storing vehicle data on the cloud. In recent years, a system that ensures the authenticity of stored data using blockchain technology, as disclosed in Patent Document 2 and other documents, has been attracting attention.

[0003] Proof of Work (PoW) is known as a typical consensus algorithm for blockchain. Consensus algorithms such as PoW stipulate the conditions for new blocks to be added to the blockchain.

[0004] In a PoW blockchain, a block whose hash value, determined based on the hash value of the previous block, a transaction such as transaction data, and a nonce value as a variable, satisfies certain conditions, is approved as a block to be linked to the blockchain. Note that in a PoW blockchain, multiple terminals called miners search in a brute-force manner for a nonce value whose hash value satisfies the above-mentioned specific conditions (hereinafter, a proper nonce value), and a reward is paid to the miner who finds the nonce value first.

[0005] In a PoW-type blockchain, if two blocks with appropriate nonce values ​​are generated at the same time, a phenomenon called a fork may occur, in which the blockchain branches off. Since the blockchain is assumed to be one-way, when a fork occurs, the relatively shorter chain is invalidated. As a result, the blocks that belonged to the short chain are discarded. In general, in a PoW-type blockchain, the difficulty of the task of finding an appropriate nonce value is set high in order to prevent the occurrence of forks. As a result, in a PoW-type blockchain, the amount of calculation required to search for a nonce value is enormous, and the computational load and power consumption become bottlenecks.

[0006] In response to such issues, Patent Document 2 discloses a mechanism that, instead of mining nonce values, introduces privileged nodes to guarantee the authenticity of data and suppress the occurrence of chain branching (so-called forks). Specifically, a privileged node generates a block to which a signature is attached using a private key and transmits it to the network. A normal node connected to the network has a public key corresponding to the private key, and links the block to the blockchain on the condition that the validity of the signature value of the block distributed from the privileged node is confirmed by the public key. [Prior art documents] [Patent documents]

[0007] [Patent Document 1] JP 2019-117446 A [Patent Document 2] JP 2020-88864 A Summary of the Invention [Problem to be solved by the invention]

[0008] In a configuration in which vehicle data is uploaded to the cloud as in Patent Document 1, it is necessary to guarantee that the uploaded data has not been tampered with. This is because if tampered data is adopted as is, there is a risk that the system / service using the vehicle data will not function properly. It is necessary to guarantee that the stored data has not been tampered with not only when the vehicle data is stored on the cloud, but also when the vehicle data is stored locally in a storage medium arranged in the vehicle.

[0009] To address such issues, a mechanism that uses blockchain technology to block vehicle data before storing it is expected to increase the authenticity of data uploaded to the cloud or stored locally in the vehicle. However, PoW-type blockchains require a huge amount of calculation, so the storage process takes time. Using computing resources such as high-performance processors is expected to reduce calculation time, but this increases costs.

[0010] In addition, in a PoW blockchain, if multiple blocks are generated almost simultaneously, a fork occurs and the relatively shorter chain is invalidated. Invalidating a short chain means discarding some vehicle data. In other words, vehicle data that should have been preserved is discarded. For this reason, it is necessary to suppress the occurrence of forks as much as possible.

[0011] According to the configuration with a privileged node as disclosed in Patent Document 2, problems such as calculation time and occurrence of forks can be reduced, but if a malfunction occurs in the privileged node, the system may become inoperable. In addition, it is expected that the privileged node will require more high-performance and secure hardware than the normal node, which may lead to an increase in costs.

[0012] The present disclosure has been made based on these circumstances, and its purpose is to provide a vehicle data storage method and vehicle data storage system that can guarantee the authenticity of the stored data while keeping implementation costs down. [Means for solving the problem]

[0013] A vehicle data storage method for achieving the above object includes, as an example, a vehicle including a plurality of nodes (1, 1a to 1f) configured to be able to communicate with each other and having a common key that is common key information. It is executed by the system ,The blockchain is used to store data collected by nodes. For A vehicle data storage method, in which a block connected to a blockchain includes a signature value generated using a part of a previous block and a common key, and a transaction, which is data to be stored, and each of a plurality of nodes generates a block as a new block to be linked to the blockchain, the block including a new signature value generated based on a part of a final block located at the end of the blockchain and the common key (S104, T1); based on the generation of the new block, distributes the new block to a plurality of other nodes, and requests them to verify the new block (S105, T2); When a request for verification of a new block is received from a node, verifying the validity of the new block using the common key and transmitting the result to at least the node corresponding to the generation source of the new block (T3b to T3d); linking the new block to the blockchain based on a majority of the multiple nodes determining that the new block is valid (S108, T7); and when verification requests for two new blocks each having a different generation source are generated at the same time, at least one of the respective generation sources resends the verification request for the new block randomly or after a predetermined waiting time has elapsed (S203).

[0014] According to the above method, blocks that are recognized as valid by the majority rule are linked to the blockchain. Since the authenticity (in other words, the validity) of blocks newly created by multiple nodes is judged, the authenticity of data stored as blocks connected to the blockchain can be increased. In addition, if two new blocks are generated at the same time and the verification timing overlaps, at least one of the nodes resends the verification request randomly or after a predetermined time, so that the blockchain can be prevented from branching. In other words, the risk of data loss due to the occurrence of a fork can be reduced.

[0015] In addition, according to the above configuration, each node does not need to search for a nonce value whose hash value satisfies a specific condition. Therefore, it can be realized using inexpensive computing resources with a small processing load and relatively low performance. In other words, it is possible to ensure the authenticity of stored data while suppressing the introduction cost.

[0016] Further, a data storage system for a vehicle for achieving the above object includes a plurality of nodes (1, 1a to 1f) configured to be able to communicate with each other in a vehicle and having a common key that is common key information, and stores data collected by the nodes using a blockchain, wherein a block linked to the blockchain includes a signature value generated using a part of the previous block and the common key, and a transaction that is data to be stored, and each of the plurality of nodes includes a block generation unit (F2) that generates a block including a new signature value generated based on a part of the final block located at the end of the blockchain and the common key as a new block to be linked to the blockchain, and a block generation unit (F3) that generates the new block including the new signature value generated based on the part of the final block located at the end of the blockchain and the common key. The system is equipped with a verification request unit (F3) that distributes a new block to multiple other nodes based on the generation of the new block and requests them to verify the new block; a block verification unit (F6) that verifies the legitimacy of the new block using a common key when a request for verification of the new block is received from another node, and transmits the result to at least the node corresponding to the generation source of the new block; a blockchain update unit (F7) that connects the new block to the blockchain based on the majority of the multiple nodes determining that the new block is legitimate; and an arbitration unit (F8) that resends the verification request for the new block randomly or after a predetermined waiting time has elapsed if the timing of the verification request overlaps with that of other nodes.

[0017] The vehicle data storage system is a system for executing the vehicle data storage method described above, and provides the same effects as the method.

[0018] In addition, the symbols in parentheses in the claims indicate a correspondence with the specific means described in the embodiments described below as one aspect, and do not limit the technical scope of the present disclosure. [Brief description of the drawings]

[0019] [Figure 1] FIG. 2 is a diagram showing an example of an overall view of a vehicle data storage system Sys. [Diagram 2] FIG. 2 is a block diagram showing the configuration of an ECU 1. [Diagram 3] FIG. 1 is a diagram for explaining the configuration of a block included in a blockchain. [Figure 4] 13 is a flowchart of a block generation related process. [Diagram 5] This is a sequence diagram showing the operation of each ECU1 from when a block is generated to when it is linked to the blockchain BC. [Figure 6] 13 is a flowchart illustrating an example of a process for detecting a collision of blocks. [Figure 7] FIG. 13 is a diagram for explaining a modified example of a block configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] Hereinafter, the embodiments of the present disclosure will be described with reference to the drawings. In addition, by assigning the same reference numerals to corresponding components in each embodiment, duplicated descriptions may be omitted. When only a part of the configuration is described in each embodiment, the configuration of the other embodiment described above can be applied to the other parts of the configuration. In addition to the combination of configurations explicitly stated in the description of each embodiment, configurations of multiple embodiments can be partially combined even if not explicitly stated, as long as there is no particular problem with the combination. And, combinations of configurations described in multiple embodiments and modified examples that are not explicitly stated are also considered to be disclosed by the following description.

[0021] FIG. 1 is a diagram showing an example of a schematic configuration of a vehicle data storage system Sys according to the present disclosure. As shown in FIG. 1, the vehicle data storage system Sys includes a plurality of ECUs 1 as nodes. ECU is an abbreviation for Electronic Control Unit, and refers to an electronic control device. Here, a case including six ECUs 1 will be described as an example, but the number of ECUs constituting the system is not limited to this. The number of ECUs constituting the system may be three or more, and may be four or eight, for example. Hereinafter, when it is necessary to distinguish between each of the six ECUs 1, they will be referred to as ECUs 1a to 1f.

[0022] Each ECU 1 is connected to be able to communicate with the other ECU 1 via a communication cable. For example, each ECU 1 transmits and receives data to and from the other ECU 1 according to a communication protocol of Ethernet (registered trademark). The ECUs 1a to 1e are connected in a star shape, for example, with the ECU 1f as a hub. Note that, as an example, the network is configured in a star shape, but is not limited to this. As the network topology, various shapes such as a mesh type, a ring type, and a bus type can be adopted. In addition, a relay device (so-called a router) may be interposed between a certain ECU 1 and another ECU 1. Furthermore, as a communication standard between the ECUs 1, various standards such as Controller Area Network (CAN is a registered trademark) and FlexRay (registered trademark) can be adopted.

[0023] Each ECU 1 can be, for example, a domain ECU constituting a domain architecture. A domain ECU is an ECU that comprehensively controls a plurality of ECUs that belong to one functional field (i.e., a domain), and can also be called a domain controller. For example, ECU 1a is a body-related domain ECU. ECU 1b is an AD (Autonomous Driving) / ADAS (Advanced Driver-Assistance Systems)-related domain ECU. ECU 1c is a powertrain-related domain ECU. ECU 1d is an infotainment-related domain ECU. ECU 1e is an external communication-related domain ECU. ECU 1f is an ECU that serves as a gateway between domains. In another embodiment, the role of the gateway may be played by ECU 1e, which is an external communication-related domain ECU. For a certain ECU, the domain that the ECU manages is also referred to as a responsible domain.

[0024] The role of each ECU 1 described above is an example and can be changed as appropriate. Any of the multiple ECUs 1 may be a dedicated ECU for storing acquired data. Any of the multiple ECUs 1 may be an ECU that monitors the state of a driver's seat occupant using a DSM (Driver Status Monitor) or the like. The DSM is a device that detects the degree of eyelid opening, etc. by performing image recognition on a facial image of the driver's seat occupant captured by an infrared camera or the like.

[0025] In the present embodiment, as an example, the ECU1e is connected to a communication device 2 and is configured to be able to communicate data with a server Sv located outside the vehicle via a wide area communication network. The communication device 2 is a device for the vehicle to perform wireless communication with other devices. The communication device 2 is a communication module for performing wireless communication in accordance with a predetermined wide area wireless communication standard. Various standards such as LTE (Long Term Evolution), 4G, and 5G can be adopted as the wide area wireless communication standard here. For example, a DCM (Data Communication Module) can be adopted as the communication device 2. The vehicle becomes a connected car that can connect to the Internet by mounting the communication device 2. For example, the ECU1e can transmit a backup of data stored in the ECU1 to a server Sv installed on the cloud in cooperation with the communication device 2.

[0026] The communication device 2 may be configured to perform wireless communication directly with other devices, in other words, without the intervention of a base station, by a method conforming to a wide-area wireless communication standard. That is, the wide-area communication unit may be configured to perform cellular V2X. The communication device 2 may be configured to perform wireless communication directly with other moving objects and roadside devices present around the vehicle by a communication standard in which the communication distance is limited to within several hundred meters (hereinafter, a narrow-area communication standard). As the narrow-area communication standard, any standard may be adopted, such as the WAVE (Wireless Access in Vehicular Environment) standard and the DSRC (Dedicated Short Range Communications) standard disclosed in IEEE1509. The other moving objects are not limited to vehicles, but may include pedestrians, bicycles, and the like. That is, the communication device 2 may be configured to function as a V2X vehicle-mounted device. V2X is an abbreviation for Vehicle to X, and refers to a communication technology that connects vehicles to various things. The first letter of V2X, "V," refers to the automobile as the vehicle itself, and "X" can refer to various entities other than the vehicle itself, such as pedestrians, other vehicles, road facilities, networks, and servers. "X" can be interpreted as "Everything / Something."

[0027] Each ECU1 is configured to acquire data generated within its responsible domain and store the acquired data in a state that is difficult to tamper with through cooperation with other ECUs1. Hereinafter, the configuration of ECU1 will be described. Note that the configuration of each ECU1 regarding data storage is the same. That is, the following description of ECU1 can be applied to each of ECU1a~1f. Messages exchanged between each ECU1 are configured such that the validity of the messages is ensured by adding an electronic signature using the common key Ky.

[0028] <Regarding the configuration of ECU1> ECU1 executes logger processing for collecting and storing data, block registration processing for blocking the data accumulated by the logger processing and connecting it to the blockchain BC, etc. As shown in FIG. 2, ECU1 is mainly composed of a control circuit including a processor 11, a RAM 12, a storage 13, and an input / output interface 14 (IO in the figure), etc.

[0029] The processor 11 is hardware for arithmetic processing coupled to the RAM 12, and can execute various programs by accessing the RAM 12. The storage 13 is configured to include a non-volatile storage medium and stores various programs executed by the processor 11. At least a data storage program related to the collection, provision, and monitoring of data generated in the responsible domain is stored in the storage 13. The execution of the data storage program by the processor 11 corresponds to the execution of a vehicle data storage method corresponding to the data storage program. The input / output interface 14 is a circuit module for ECU1 to communicate with other devices (including sensors and ECUs) mounted on the vehicle.

[0030] Here, as an example, it is assumed that the ECU1 is configured to be able to use at least two different processing areas, namely the normal world and the secure world, by using the TrustZone (registered trademark) technology. The normal world is a normal area for executing an operating system and applications. The secure world is an area isolated from the normal world. In the secure world, a secure operating system and applications for processing that requires security are executed. Access from the normal world to the secure world is restricted by the function of the processor 11. Therefore, the existence of the secure world cannot be recognized from the normal world, and the security of the processing executed in the secure world and the information stored in the secure world is ensured.

[0031] The storage area (Untrusted Storage) where data is stored in the normal world can be called normal storage. Also, the storage area (Trusted Storage) used for data storage in the secure world can be called secure storage. The normal world and the secure world may be physically separated on the hardware or may be virtually separated by the cooperation of the hardware and software. The ECU1 uses functions such as context switching to separate the resources required for the execution of applications between the normal world and the secure world.

[0032] <Regarding the functions of ECU1> 2 as functional units that are realized, for example, when the processor 11 executes a data storage program stored in the storage 13. That is, the ECU 1 includes, as functional units, a logger F1, a block generation unit F2, a verification request unit F3, a verification result reception unit F4, a block reception unit F5, a block verification unit F6, a block chain update unit (hereinafter, BC update unit) F7, an arbitration unit F8, and an uploader F9. The ECU 1 also includes a temporary storage unit M1, a common key memory unit M2, and a block chain storage unit (hereinafter, BC storage unit) M3 as storage areas for data with different uses and security levels.

[0033] The temporary storage unit M1 is a storage area in which transactions TXN, which are data acquired by the logger F1 and are to be stored in blocks, are accumulated. The temporary storage unit M1 is realized, for example, by using a part of the storage area of ​​the RAM 12. The temporary storage unit M1 can be constructed in the normal world.

[0034] The common key memory unit M2 is a recording area in which a common key Ky, which is an encryption key held in common by each ECU1, is stored. The common key Ky is used in the block generation process and the received block verification process described below. The common key Ky is, for example, a fixed value set in advance. In another aspect, each ECU1 may be configured to share the common key Ky dynamically generated by a predetermined algorithm through encrypted communication. The common key memory unit M2 can be realized, for example, by using a part of the storage area of ​​the storage 13. The common key memory unit M2 can be constructed, for example, in a secure world. The common key Ky may be stored in a storage medium that ensures a certain level of security.

[0035] The BC storage unit M3 is an area for storing the blockchain BC. The blockchain BC of the present disclosure corresponds to a collection of data in which a large number of blocks are linearly linked in the order of generation time by including in the next block a signature value generated using a predetermined part of the previous block and the common key Ky. The method of generating each block and the block etc. will be described later. The BC storage unit M3 can be realized, for example, by using a part of the storage area of ​​the RAM 12 or the storage 13. The BC storage unit M3 can be constructed, for example, in the normal world. Note that BL in FIG. 2 is an abbreviation for block, and BL1 indicates the first block of the blockchain BC. Also, BL2 indicates the second block from the top.

[0036] The logger F1 is a functional unit that stores various data generated in the assigned domain, including the ECU1 itself, in the temporary storage unit M1. The logger F1 is electrically connected to, for example, a communication bus of an in-vehicle communication network constructed in the assigned domain. The logger F1 acquires various data generated by ECUs, sensors, etc. constituting the assigned domain through the communication bus. For example, the logger F1 selectively extracts preset data from data sequentially output to the communication bus from the in-vehicle sensors and ECUs constituting the assigned domain, and stores the data in the temporary storage unit M1 as a transaction TXN. The logger F1 corresponds to a configuration that collects data to be stored in blocks. The logger F1 can be, for example, an application that runs in the normal world.

[0037] The block generation unit F2 generates a block to be linked to the blockchain BC based on the transaction TXN stored in the temporary storage unit M1. A block is a unit of stored data that stores data of a specified size, number, or time in a lump. A block can also be called a data block. The block generation unit F2 creates one block based on the transaction TXN stored in the temporary storage unit M1 when a specified block generation condition is met.

[0038] Each block includes a block header Hd and a transaction TXN, as shown in FIG. 3. The block header Hd includes, for example, a block number and a signature value. The block number is information indicating the number of the block in the blockchain BC. The block number is also called the block height. The signature value included in each block is a value (character string) obtained by encrypting a hash value, whose original data is the transaction TXN of the block and the signature value of the previous block, with a common key Ky.

[0039] In addition to the signature value and the block number, the block header Hd may include source information indicating the ECU1 that generated the block, a timestamp indicating the time of generation, and the like. In addition, the block header Hd may include identification information of the ECU1 that guaranteed the validity of the block in a verification process described separately below. The block BLn shown in the figure indicates the final block BLn, which is the block currently located at the end of the blockchain BC. In addition, the block BLn+1 represents a newly created block (i.e., a new block). The block header Hd can be interpreted as, for example, a data field in which data other than the transaction TXN is accommodated in the block.

[0040] The block generation unit F2 has a function of calculating a signature value using the common key Ky. When generating a new block, the block generation unit F2 refers to the last block BLn stored in the BC storage unit M3, and obtains the signature value of the last block BLn as the previous signature value. Next, the block generation unit F2 generates a new signature value, which is the signature value of the new block, by encrypting a hash value obtained by inputting the previous signature value and the transaction TXN to be stored into a predetermined hash function with the common key Ky. In one aspect, such a signature value can be interpreted as an electronic signature.

[0041] For convenience, the hash value obtained by inputting the previous signature value and the transaction TXN to be saved into a predetermined hash function is also referred to as the original data hash value. A variety of hash functions can be used, such as SHA256, SHA-1, SHA-512, SHA-3, MD-5, and RIPEMD160. SHA stands for Secure Hash Algorithm. MD stands for Message Digest algorithm. RIPEMD stands for Race Integrity Primitive Evaluation Integrity Primitives Evaluation Message Digest. Each ECU1 is configured to generate and verify signature values ​​using a common hash function.

[0042] The block generation unit F2 also increments the block number of the last block BLn by one and sets the value as the newly generated block number. Then, it generates a block in which the new signature value and the current block number are described in the block header Hd. A new block generated by the block generation unit F2, which has not yet been agreed to be linked to the blockchain, is hereinafter also referred to as a verification target block.

[0043] The signature value to be included in the block may be the previous signature value and the transaction TXN to be stored encrypted with the common key Ky. In other words, the original data (in other words, the original data) that is the basis of the signature value may be the previous signature value and the transaction TXN to be stored. Furthermore, the original data of the signature value may include the transaction TXN of the last block BLn. The block generation unit F2 may generate a new signature value using a bit string at a predetermined position of the transaction TXN and the previous signature value, without using the entire previous or new transaction TXN. For example, the block generation unit F2 may create a signature value based on 5 to 10 bits at the beginning or end of the transaction TXN. In addition, the original data of the signature value may be only the previous signature value. The original data may be only the bit string at a predetermined position of the transaction TXN. However, from the viewpoint of tamper resistance of the transaction TXN, it is preferable that the original data directly or indirectly includes at least a part, more preferably all, of the elements of the transaction TXN to be included in the last block or the new block. In addition, other items included in the block, such as the block number, may be included in the original data. Each ECU 1 is configured to generate a signature value using a common procedure.

[0044] Such a block generating unit F2 generates a block based on the establishment of a predetermined block generating condition. The block generating condition may be a certain time that has passed since the previous generation of a block, a specified amount of transactions TXN has accumulated in the temporary storage unit M1, a predetermined vehicle event has occurred, or the like. The vehicle event may include the switching of the running power source between on and off, the start of automatic driving, and the replacement of parts. In addition, the generation of a block may be triggered by the reception of an upload instruction from the server Sv. The block generating unit F2 may also generate a block based on an instruction to generate a block from a specific other ECU1. For example, the block generating unit F2 periodically creates a block while the running power source is on. The running power source here is a power source for running a vehicle, and refers to an ignition power source if the vehicle is a gasoline vehicle. If the vehicle is an electric vehicle or a hybrid vehicle, the running power source refers to a system main relay.

[0045] The verification request unit F3 is configured to perform a verification request process that requests other ECUs 1 to verify a block generated by the block generation unit F2. The verification request unit F3 transmits a verification target block including the above-mentioned new signature value to other ECUs 1 based on the block generation unit F2 generating the block. The verification request unit F3 may transmit the verification target block to each ECU 1 without any preamble, or may transmit the verification target block after receiving approval to transmit the verification target block by exchanging a predetermined message with each ECU 1 in advance. Hereinafter, a request to verify a verification target block is also simply referred to as a verification request. Transmitting a verification request also includes transmitting a new block as a verification target block.

[0046] The verification result receiving unit F4 is configured to receive the result of verifying the verification target block from the other ECU 1. The verification result received by the verification result receiving unit F4 is output to the BC updating unit F7.

[0047] The block receiving unit F5 is configured to receive a block to be verified transmitted from another ECU1. The block receiving unit F5 outputs the received block to be verified to the block verifying unit F6. Such a block receiving unit F5 corresponds to a configuration that accepts a verification request from another ECU. The block to be verified can be called a pending block because it has not been decided whether or not it will be linked to the blockchain BC. Each ECU1 registers in the pending block a block to be verified received from another ECU1, or a block that it has generated and has not yet received the verification result from another ECU1.

[0048] If a pending block exists, the verification request unit F3 does not send a verification request to prevent the occurrence of a branch (so-called fork) of the blockchain BC. However, there may be a slight time difference due to communication processing, etc. between when another ECU1 generates a block and when it receives a verification request for that block. Therefore, for example, if multiple ECU1s generate new blocks at almost the same time (i.e., at the same time), there may be two or more pending blocks. In such a case, the arbitration unit F8, which will be described later, arbitrates so that the number of pending blocks is one or less.

[0049] The block verification unit F6 verifies the verification target block received by the block reception unit F5 using the common key Ky based on a verification request from another ECU1. For example, the block verification unit F6 decrypts the signature value of the received block using the common key Ky to extract an original data hash value. Also, the block verification unit F6 refers to the last block BLn stored in its own BC storage unit M3, and obtains the signature value of the last block BLn as a previous signature value. Next, the previous signature value and the transaction TXN included in the verification target block are input to a hash function to generate an original data hash value for verification. Then, if the original data hash value for verification matches the original data hash value extracted from the verification target block, it is determined that the block is valid (in other words, correct). On the other hand, if the original data hash value for verification does not match the original data hash value extracted from the verification target block, it is determined that the block is illegal (in other words, incorrect).

[0050] The above verification process corresponds to a process of confirming the consistency of an electronic signature or a block. Specifically, it corresponds to judging whether there is a contradiction between the block number and the previous signature value. Note that the method of verifying the validity of the block to be verified is not limited to the above method. For example, the validity of the block may be judged according to whether or not a bit string obtained by decrypting an encrypted block with a common key Ky has a predetermined correspondence with the previous signature value.

[0051] When the block verification unit F6 determines that the received block to be verified is a valid block, it transmits an approval message to the verification request source ECU1, which is a message approving the linking of the block to the blockchain BC. Here, the approval message is also referred to as ACK. On the other hand, when the block verification unit F6 determines that the block to be verified is an unauthorized block, it transmits a denial message to the verification request source ECU1, which is a message not approving the linking of the block to the blockchain BC. In this embodiment, the denial message is also referred to as NACK. It is preferable that the ACK or NACK includes target information indicating which block the verification result is for, verifier information indicating the ECU1 that performed the verification process (i.e., the source of the verification result), and the like.

[0052] The BC update unit F7 is configured to update the blockchain BC based on the verification result by the block verification unit F6 and the verification result information received by the verification result receiving unit F4. The BC update unit F7 links blocks that are recognized as valid by the majority (51% or more) of the multiple ECUs 1 that make up the system to the blockchain BC. Details of the BC update unit F7 will be described later.

[0053] The arbitration unit F8 is configured to detect block collisions and, if a block collision is detected, to perform arbitration to prevent the occurrence of a fork. A block collision here refers to a situation in which verification target blocks are transmitted from a plurality of ECUs 1 almost simultaneously. Alternatively, a block collision refers to an event in which a new block is generated when a block being verified exists. A block collision can be rephrased as a collision of verification requests. A block collision can also be rephrased as the occurrence of multiple blocks.

[0054] For example, the arbitration unit F8 determines that a block collision has occurred when another verification target block arrives in a situation where a pending block exists. In addition, in a configuration in which the ECUs 1 share an overview of the pending block, it may be determined that a block collision has occurred when the pending blocks in the ECUs 1 do not match. Alternatively, the arbitration unit F8 may detect a block collision based on the fact that an ACK or NACK for a block different from the pending block held by the arbitration unit F8 is transmitted from another ECU 1.

[0055] When the arbitration unit F8 detects a block collision, it transmits a collision detection message, which is a message indicating that a block collision has occurred, to all other ECUs 1 or to the ECU 1 corresponding to the source of the collided block. The collision detection message may be transmitted by the ECU 1 that first detected the block collision among the multiple ECUs 1. Alternatively, each ECU 1 may be configured to independently determine whether or not a block collision has occurred, without sharing the situation by transmitting a collision detection message.

[0056] However, it is expected that the timing at which a block collision can be detected due to communication delays and processing delays differs for each ECU 1. In light of such circumstances, it is preferable that each ECU 1 is configured to share the occurrence of a block collision with other ECUs 1 by broadcasting a collision detection message, etc. This is because if the ECU 1, which is the source of the verification request, can recognize the occurrence of a block collision early, it becomes possible to quickly perform retransmission control, etc., and the processing time from block generation to linking to the blockchain BC can be shortened.

[0057] When a block collision is detected, for example, each ECU1 discards the pending block. When each ECU1 discards the pending block, it may notify the generator of the pending block of the discarded block. In this embodiment, the ECU1 corresponding to the generator of the collided block retransmits the verification request at a timing when a random waiting time has elapsed. The waiting time is determined using a random number to minimize the possibility of repeated collisions. Such a waiting time can also be called a backoff time. For example, the waiting time can be determined by randomly selecting one of a plurality of candidate values ​​of the waiting time. The waiting time may be set in advance for each ECU1. In that case, the waiting time of each ECU1 is set to a different value. In addition, when a new block is added to the blockchain BC while waiting for retransmission, it is preferable that each ECU1 recreates a new block based on the information of the updated final block BLn.

[0058] The interval between the candidate values ​​of the waiting time may be set longer than the expected verification time, which is the expected value of the time required for the verification of one verification target block, specifically, from the transmission of a verification request until a majority consensus is obtained. For example, when the expected verification time is 600 milliseconds, the set of candidate values ​​of the waiting time may be 0 milliseconds, 1000 milliseconds, 2000 milliseconds, 3000 milliseconds, and 4000 milliseconds. Of course, the above values ​​are only examples and can be changed as appropriate according to the expected verification time. For example, when the expected verification time is about 300 milliseconds, the set of candidate values ​​of the waiting time may be 0 milliseconds, 500 milliseconds, 1000 milliseconds, 1500 milliseconds, 2000 milliseconds, etc.

[0059] The uploader F9 is configured to upload each block linked to the blockchain BC to the server Sv periodically or when a predetermined event occurs. The uploading of the blocks is performed in cooperation with the communication device 2. The uploader F9 does not need to be provided in all ECUs 1, and may be provided only in some of the ECUs 1. For example, only the ECU1e connected to the communication device 2 may have the function of the uploader F9. Also, the ECU1f as a gateway may be configured to perform the uploading. As an event for uploading data of the blockchain BC, for example, when an upload instruction is received from the server Sv or when a connection to a wireless LAN such as Wi-Fi (registered trademark) can be adopted. Note that uploading the blockchain BC to the server Sv is an optional element and may not be performed.

[0060] <About block generation related processes> Here, the block generation related processing executed by the ECU1 will be described using the flowchart shown in FIG. 4. The block generation related processing corresponds to a series of processes from generating a block to linking it to the blockchain BC. This description is applicable to any ECU1. The flowchart shown in FIG. 4 is started when a block generation condition is satisfied. For example, the flowchart shown in FIG. 4 may be executed at regular intervals. Here, as an example, the block generation related processing includes steps S101 to S109, but is not limited to this. The number of processing steps included in the block generation related processing, the execution order, etc. may be changed as appropriate. Note that the collection of data by the logger F1 may be executed sequentially, in other words, in parallel, independent of the processing flow shown in FIG. 4.

[0061] First, in step S101, the block generation unit F2 reads out the transaction TXN stored in the temporary storage unit M1 and proceeds to step S102. This step S101 can be called a data acquisition step. In step S102, the block generation unit F2 refers to the last block BLn, which is the block located at the end of the blockchain, acquires the previous signature value, and proceeds to step S103. This step S102 can be called a previous signature value acquisition step.

[0062] In step S103, the block generation unit F2 generates an original data hash value by inputting the previous signature value obtained in step S102 and the transaction TXN obtained in step S101 into a predetermined hash function. Then, the original data hash value is encrypted with the common key Ky to generate a signature value for the newly created block (i.e., a new signature value). When the process of step S103 is completed, the process proceeds to step S104. Note that step S103 can be called a signature generation step.

[0063] In step S104, the block generation unit F2 generates a block including the new signature value generated in step S103 and the transaction TXN obtained in step S101 as a new block, and proceeds to step S105. Step S104 can be called a block generation step.

[0064] In step S105, the verification request unit F3 transmits the block generated in step S104 as a verification target block to multiple other ECUs 1 connected to the network, requesting that they be verified. The verification target block may be transmitted to multiple ECUs 1 individually or simultaneously. In other words, the verification request unit F3 may transmit the verification request by unicast, or may distribute it by multicast or broadcast. Step S105 can be called a verification request step or an approval request step. When step S105 is completed, the process proceeds to step S106.

[0065] In step S106, the verification result is received from the ECU1 that transmitted the verification request. The verification result may be returned as, for example, an ACK indicating a positive opinion or a NACK indicating a negative opinion. When the verification results have been received from all the ECU1 that transmitted the verification request, or when a predetermined waiting time has elapsed since the transmission of step S105, the process proceeds to step S107. Alternatively, the process may proceed to step S107 when a majority decision is determined, such as when an ACK is received from a majority of the ECU1 that transmitted the verification request (in other words, 51% or more) or when a NACK is received from a majority of the ECU1 that transmitted the verification request. Step S106 can be called a verification result receiving step.

[0066] In step S107, it is determined whether or not ACK has been received from the majority of the ECUs 1 that have sent the verification requests. This step S107 corresponds to a step of determining whether or not the legitimacy of the newly created block has been recognized by the majority of the ECUs 1 that are connected to the network. If ACK has been received from the majority of the ECUs 1 that have sent the verification requests, a positive judgment is made in step S107 and the process proceeds to step S108. On the other hand, if ACK has not been obtained from the majority of the ECUs 1 that have sent the verification requests, a negative judgment is made in step S107 and the process proceeds to step S109. This step S107 can be called a majority decision step.

[0067] In step S108, the BC update unit F7 links the block newly created in step S104 to the block chain BC and stores it in the BC storage unit M3, and ends this flow. In step S109, the ECU1 executes a predetermined error process. For example, the ECU1 may re-execute the process after step S101 as the error process.

[0068] Note that if, even after trying the processes after step S101 a certain number of times, approval from the majority cannot be obtained in any case, ECU1 may determine that an abnormality has occurred in itself and output a predetermined error signal externally. In addition, ECU1e connected to communication device 2 may report to server Sv that an abnormality has occurred in the system based on the input of the error signal. If ECU1 fails to register a new block continuously for a predetermined number of times (for example, three times), it may provide the transaction TXN it holds to another ECU1 and request the other ECU1 to create a block that accommodates the transaction TXN. According to the mode of having another ECU1 create a block on its behalf in this way, even if an abnormality occurs in a certain ECU1, the risk of the data of the ECU1 leaking from the record can be reduced.

[0069] <Regarding the interaction between ECU1s> Next, the interaction between ECU1s will be described using the sequence diagram shown in FIG. 5. ECU-A, ECU-B, ECU-C, and ECU-D shown in FIG. 5 are different ECU1s. For example, ECU-A, ECU-B, ECU-C, and ECU-D can be ECU1a to 1d in order. In FIG. 5, only four ECU1s are shown due to the size of the paper, but as shown in FIG. 1, there can be five or more ECU1s connected to the network. In the example shown in FIG. 5, ECU-A is the ECU1 that newly generates a block, the verifier that issues a verification request, or the equivalent of the source of the new block. ECU-B to D correspond to the verifiers that verify the block generated by ECU-A.

[0070] First, when ECU-A generates a block (T1), it distributes the block to each of ECU-B to D and requests them to verify it (T2). In the example shown in FIG. 5, the mode of broadcasting / multicasting the verification target block is illustrated, but the verification target block may be transmitted and received individually for each ECU1. In addition, ECU-A registers the block generated in step T1 in the pending block.

[0071] When each of ECU-B to D receives a block from ECU-A (T3b, T3c, T3d), it registers the received block in the pending block and executes verification processing for the block (T4b, T4c, T4d). Then, as soon as verification of the received block is completed, it returns an ACK / NACK as the verification result to ECU-A (T5b, T5c, T5d). Note that in FIG. 5, the timing at which each of ECU-B to D returns the verification result is shown significantly staggered from one another in order to improve visibility.

[0072] Here, as an example, the verifiers ECU-B to D each transmit the verification result only to ECU-A, but this is not limited thereto. Each ECU1 may also transmit the verification result of the new block to other ECU1s other than the verification request source. In other words, each ECU1 may be configured to broadcast / multicast the verification result to all other ECU1s. According to such a configuration in which the verification results of each ECU1 are shared by all ECU1s, ECU1s other than the generation source can also determine the validity of the pending block at the same time. As a result, it becomes easier to maintain a consistent state of the blockchain BC held by each ECU1.

[0073] When ECU-A receives the verification results from each of ECU-B to D (T6), it decides whether to link the newly created block to the blockchain BC depending on whether the majority of the ECUs recognize the validity of the newly created block. As an example, it is assumed here that ACK is returned from all of ECU-B to D. In that case, ECU-A links the block generated in step T1 to the end of the blockchain BC and stores it (T7).

[0074] As a subsequent process, for example, ECU-A may inform other ECU-B to D of the disposition of the newly created block based on the multiple verification results received in step T6 (T8). For example, ECU-A may inform each of ECU-B to D that the validity has been guaranteed by majority vote, or that the validity has not been guaranteed by majority vote. With this configuration, each of ECU-B to D can quickly determine whether or not to link the block transmitted from ECU-A, which was set as a pending block, to the end of the blockchain BC that it holds.

[0075] In another embodiment, when each of ECU-B to D is configured to transmit the verification result of the verification target block to an ECU other than the generation source, it can be operated as follows. That is, each of ECU1 as a verifier may also finally determine the validity of the verification target block by majority vote using the verification results of other ECUs and its own verification result as a population. When the verification target block is determined to be a valid block by majority vote, each of ECU-B to D links the verification target block to the blockchain BC held by each of ECU-B to D. With such a configuration, the blockchain of each ECU1 can be updated quickly.

[0076] <About collision arbitration processing> FIG. 6 is a flowchart showing an example of the operation of the arbitration unit F8. The process flow as the collision arbitration process shown in FIG. 6 includes steps S201 to S203. Of course, the number of process steps included in the collision arbitration process and the order of execution can be changed as appropriate. The flowchart shown in FIG. 6 is executed, for example, by the arbitration unit F8 of each ECU1. Each arbitration unit F8 sequentially starts the process flow shown in FIG. 6 at a predetermined collision monitoring interval. The collision monitoring interval is set to a time that is sufficiently short compared to the expected verification required time, such as 50 milliseconds. If the collision monitoring interval is long, verification of each block may proceed even if a block collision occurs, and a branch (so-called fork) of the blockchain may occur. Note that the ECU1 may be configured to sequentially execute the collision arbitration process only when a pending block is registered.

[0077] First, in step S201, the arbitration unit F8 judges whether the ECU1 to which the arbitration unit F8 belongs has a pending block. If there is no pending block, a negative judgment is made in step S201 and the flow ends. On the other hand, if there is a pending block, a positive judgment is made in step S201 and the flow proceeds to step S202.

[0078] In step S202, it is determined whether or not a verification request has been received from an ECU 1 other than the generator of the pending block. For example, if a verification target block is received from an ECU 1 other than the generator of the pending block, it is determined that a block collision has occurred, and the process proceeds to step S203. On the other hand, if a verification target block has not been received from an ECU 1 other than the generator of the pending block, it is determined that a block collision has not occurred, and the process ends. Step S202 can be interpreted as a process of determining whether or not a new verification target block different from the pending block has been received.

[0079] In step S203, a process is performed to prevent a fork caused by a block collision from occurring. For example, the arbitration unit F8 transmits a collision detection message to each ECU1 to stop the ongoing verification process. The arbitration unit F8 may also request the ECU1 corresponding to the generator of the collided block to resend the block. The generator of the collided block transmits a verification request after a random waiting time has elapsed based on receipt of a collision detection message from another ECU1, a resend request from another ECU1, or detection of a block collision by itself.

[0080] <Effects of the above configuration> In the above configuration, whether or not to link a newly created block to the blockchain BC is determined based on a majority vote of multiple ECUs 1 as trusted nodes. This allows the authenticity (or legitimacy) of a newly created block to be determined by multiple ECUs 1, thereby increasing the authenticity of data stored as a block to be connected to the blockchain.

[0081] In addition, the vehicle data storage system Sys disclosed herein is not a PoW type blockchain. In other words, in the configuration disclosed herein, each ECU1 does not need to perform a process (so-called mining) of brute-force searching for a nonce value whose hash value satisfies a specific condition. Therefore, the processing load on the processor 11 can be suppressed. Therefore, the processor 11, RAM 12, and other computing resources can be realized using relatively low-performance, inexpensive electronic components.

[0082] As another configuration (hereinafter, comparative configuration) using a blockchain that does not require mining, a centralized configuration in which only one privileged node generates blocks, such as the system disclosed in Patent Document 1, is conceivable. However, in such a comparative configuration, if a malfunction occurs in the privileged node, there is a risk that the system that stores data will malfunction. In addition, in the comparative configuration, it is expected that the configuration of the privileged node will require more high-performance and secure hardware than that of a normal node, which may lead to increased costs.

[0083] In contrast to such a comparative configuration, the configuration of the present disclosure is not a centralized configuration, and each ECU1 has roughly equal rights to generate blocks. Specifically, each of the multiple ECU1s as nodes has the authority to generate blocks independently, and a block generated by a certain ECU1 is approved for connection to the blockchain BC based on the verification results of multiple other ECU1s. With such a configuration, even if a failure occurs in some ECU1, data storage by the other ECU1s can be continuously performed. Therefore, the configuration of the present disclosure can improve robustness against failures compared to the comparative configuration.

[0084] Furthermore, in the above configuration, each ECU 1 is configured such that, when a block collision is detected, the generator of the collided block resends the block approval request after a random waiting time has elapsed. This makes it possible to suppress the occurrence of forks without providing a privileged node. In other words, it is possible to improve robustness against failures and suppress the occurrence of forks at the same time.

[0085] In addition, verification of the generated block can be completed in a relatively short time using the common key Ky. For example, the expected verification time can be suppressed to less than one second. According to the configuration of the present disclosure, blocks can be generated frequently, so that the effect of suppressing the size of transactions included in one block from becoming bloated can be expected.

[0086] Furthermore, according to the configuration of the above embodiment, vehicle data for each domain is distributed and stored in each ECU 1. For example, data for a domain that an ECU 1 is responsible for is also blocked and stored in another ECU 1. Therefore, even if an ECU 1 breaks down and the stored data of that ECU 1 cannot be extracted, it is expected that necessary data can be obtained from another ECU 1.

[0087] In the above, a mode of determining whether to link a new block to the blockchain BC using ACK / NACK has been disclosed, but the criteria for determining whether to link a new block to the blockchain BC are not limited to this. For example, each ECU1 may be configured to distribute a block whose validity has been confirmed in a verification process to other ECUs. Then, each ECU1 may be configured to link the block to the blockchain BC when the same block is received from a majority of the ECUs 1, assuming that a majority vote agreement has been obtained. When each ECU1 receives a block from another ECU1, it is preferable to determine whether the block is the same as a previously received block based on the block number, origin information, transaction contents, etc. of the block.

[0088] In the above, as shown in Fig. 3 etc., a mode has been disclosed in which the signature value included in the new block is a value (character string) obtained by encrypting a hash value, which uses the transaction TXN of the new block and the signature value of the previous block as original data, with a common key Ky, but this is not limited thereto. For example, as shown in Fig. 7, the signature value may be a hash value obtained by inputting original data including the previous signature value, the common key Ky, and the transaction TXN of the new block into a predetermined hash function. In other words, the generation of the new signature value does not need to include a process such as encryption using a common key.

[0089] In the above case, each ECU1 generates a hash value for verification by inputting a data set consisting of the signature value of the final block held by itself, the common key Ky, and the transaction TXN included in the block to be verified into a hash function as a verification process. If the hash value for verification matches the hash value equivalent to the signature value included in the block to be verified, it is determined that the block is legitimate (in other words, correct). In other words, if a process such as encryption using a common key is not included when generating a new signature value, it is not necessary to include a process such as decryption using a common key in the verification process.

[0090] The data set as the original data of the signature value may be, for example, data obtained by combining the previous signature value, the transaction TXN of the new block, and the common key Ky in a predetermined order. The original data may also be data obtained by encrypting the previous signature value and the transaction TXN of the new block with the common key Ky. The original data may involve the common key Ky in some form, such as combining data strings or multiplying / adding bit strings. The ECU1 as the verifier may be configured to generate a hash value for verification using the transaction TXN of the received block in a manner similar to the manner in which a hash value is generated as the new signature value, and to compare the two.

[0091] Moreover, the block generation conditions are not limited to the above. For example, each ECU1 may be configured to generate a block at a timing when a random waiting time has elapsed since the timing when the vehicle stops. The timing when the vehicle stops corresponds to a turning point in the driving scene, and the processing load of the ECU1 is expected to be lower than when the vehicle is running. Therefore, it is suitable as a situation in which data up to that point is stored as a block. On the other hand, if the timing when the vehicle stops itself is used as a trigger for generating a block, multiple ECU1s will generate blocks simultaneously, which increases the possibility of block collision. In response to such concerns, according to a configuration in which each ECU1 generates a block at a timing when a further random waiting time has elapsed since the vehicle stops, the timing at which each ECU1 generates a block is distributed. As a result, it is possible to reduce the risk of block collision while using a turning point in the driving scene, such as the stopping of the vehicle, as the timing for generating a block. It is possible to determine that the vehicle has stopped from output signals of various in-vehicle sensors, such as a vehicle speed sensor.

[0092] In the above, an embodiment has been disclosed in which the ECU1 that generated the new block does not have a voting right in the majority vote to decide whether or not to link the new block to the blockchain BC. In other words, an embodiment has been disclosed in which the origin is not included in the majority vote population that determines the legitimacy of the new block. However, in another embodiment, the ECU that generated the new block may have the right to cast one vote for the side that guarantees the legitimacy of the newly created block. In other words, the ECU1 as the origin may be included in the majority vote population to decide whether or not to link the new block to the blockchain BC.

[0093] In addition, whether or not to grant a voting right to the generator of a new block may be changed depending on the number of ECU1s connected to the network. For example, when the number of ECU1s connected to the network is an even number, the number of ECU1s excluding the generators is an odd number, which is convenient in terms of the principle of majority rule. Therefore, when the number of ECU1s connected to the network is an even number, the generators may not be granted a voting right, or the vote of the generators may be invalidated. On the other hand, when the number of ECU1s connected to the network is an odd number, the number of ECU1s excluding the generators is an even number, which may result in half-and-half opinions. In consideration of such circumstances, when the number of ECU1s connected to the network is an odd number, the generators may also be granted a voting right.

[0094] The verification request unit F3 of the block generator does not have to transmit the verification request to all other ECUs 1 connected to the network. The verification request unit F3 may be configured to select an ECU 1 to which a verification request is to be sent from among a plurality of ECUs 1 connected to the network according to a predetermined rule or randomly. For example, the verification request unit F3 may be configured to adjust the number of ECUs 1 to which a verification request is sent so that the number of ECUs 1 that perform verification of the verification target block is an odd number.

[0095] Furthermore, each ECU1 may be configured to transmit a verification request only to an ECU1 that has been confirmed to be a legitimate terminal (i.e., its identity) among the ECU1 connected to the network. Each ECU1 may identify whether or not it is a legitimate terminal by performing, for example, a challenge-response authentication process with other ECU1 when the vehicle's running power is turned on. A whitelist or the like may be used as a material for verifying the identity. For example, an ECU1 registered in the whitelist may be regarded as a node whose identity has been confirmed, and may be adopted as a destination of the verification request. The whitelist may be registered, for example, by a worker at a manufacturing plant or a dealer shop. The whitelist is a list of terminals that are permitted to communicate, and includes information on the MAC addresses, IP addresses, port numbers, and the like of the terminals that are permitted to communicate. The whitelist may be included in the concept of an access control list (ACL).

[0096] In the above, the common key Ky is stored in a storage area where security is ensured using the TrustZone technology, but the present invention is not limited to this. A storage medium where security is ensured by other methods can be adopted as a storage destination of the common key Ky. For example, the common key Ky may be stored in a NOR type or NAND type secure flash memory. The common key Ky may be any code as key information shared by each ECU1, and may be any character string, numeric string, or function. The common key Ky corresponds to data for an ECU1 to determine the validity of another ECU1 or a block. The common key Ky may be a reversible key that can be used for both encryption and decryption, or may be an irreversible key. Each ECU1 may share two types of keys, a private key for encryption and a public key for decryption, as the common key Ky.

[0097] In the above, a mode in which a random waiting time is used to suppress re-collision in response to the occurrence of a block collision has been disclosed, but the present invention is not limited to this. As another mode, a priority order may be set for each ECU1, and when a block collision is detected, a verification request from an ECU1 with a relatively high priority order may be selected, and a verification request from an ECU1 with a low priority order may be discarded. In addition, when a block collision occurs, all pending blocks may be discarded in the ECU1, and then a verification request for a newly generated block may be retransmitted in order from the ECU1 with the highest priority order. It is preferable that the priority order for each ECU1 is appropriately set in consideration of the type of data handled by the ECU1. For example, data of an AD / ADAS ECU1 is useful for verification when an accident or the like occurs, so the priority order may be the highest. The priority order for each ECU1 may be set higher as the ECU handles data necessary for analyzing the circumstances and responsibility when an accident or the like occurs.

[0098] In the above, an aspect in which each ECU 1 constituting the blockchain network is a domain ECU has been disclosed, but this is not limiting. Each ECU 1 may be a sub-ECU in a domain. That is, the vehicle data storage system Sys of the present disclosure may be constructed in a domain. In addition, the vehicle data storage system Sys of the present disclosure is also applicable to vehicles in which a domain architecture is not adopted, for example, current vehicles in which the concept of a domain is not introduced, and vehicles that adopt a zone architecture. Furthermore, the nodes connected to the blockchain network are not limited to ECUs, and various computers can be adopted. The server Sv may be used as a node.

[0099] <Additional remarks> The device, system, and method thereof described in the present disclosure may be realized by a dedicated computer that configures a processor programmed to execute one or more functions embodied by a computer program. The device and method described in the present disclosure may also be realized using a dedicated hardware logic circuit. The device and method described in the present disclosure may also be realized by one or more dedicated computers configured by a combination of a processor that executes a computer program and one or more hardware logic circuits. The computer program may also be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer. That is, the means and / or functions provided by the processor 11, etc. can be provided by software recorded in a substantial memory device and a computer that executes the software, software only, hardware only, or a combination thereof. For example, some or all of the functions provided by the processor 11 may be realized as hardware. Aspects in which a certain function is realized as hardware include aspects in which it is realized using one or more ICs, etc. The processor 11 may be realized using an MPU, GPU, or DFP (Data Flow Processor) instead of a CPU. The processor 11 may be realized by combining a plurality of types of arithmetic processing devices, such as a CPU, an MPU, and a GPU. The processor 11 may be realized as a system-on-chip (SoC). Furthermore, the various processing units may be realized using a field-programmable gate array (FPGA) or an application specific integrated circuit (ASIC). The various programs may be stored in a non-transitive tangible storage medium. As a storage medium for the programs, various storage media, such as a hard-disk drive (HDD), a solid-state drive (SSD), a flash memory, and a secure digital (SD) card, may be used. [Explanation of symbols]

[0100] Sys Vehicle data storage system, Sv Server, 1·1a~1f ECU (node), 2 Communication device, 11 Processor, 12 RAM, 13 Storage, F1 Logger, F2 Block generation unit, F3 Verification request unit, F4 Verification result reception unit, F5 Block reception unit, F6 Block verification unit, F7 BC update unit (blockchain update unit), F8 Arbitration unit, F9 Uploader, M1 Temporary storage unit, M2 Common key memory unit, M3 BC storage unit (blockchain storage unit)

Claims

1. A vehicle data storage method for storing data collected by a plurality of nodes (1, 1a to 1f) using a blockchain, the method being executed by a system including a plurality of nodes (1, 1a to 1f) configured to be able to communicate with each other in a vehicle and having a common key that is common key information, A block in the blockchain includes a signature value generated using a part of the previous block and the common key, and a transaction that is data to be stored; Each of the plurality of nodes Generating a new block to be linked to the blockchain, the new block including a part of the final block at the end of the blockchain and a new signature value generated based on the common key (S104, T1); Based on the generation of the new block, distributing the new block to a plurality of other nodes and requesting them to verify the new block (S105, T2); When a request for verification of the new block is received from another node, verifying the validity of the new block using the common key and transmitting the result of the verification to at least the node corresponding to the generation source of the new block (T3b to T3d); Linking the new block to the blockchain based on the majority of the multiple nodes determining that the new block is valid (S108, T7); When verification requests for two new blocks having different generation origins occur at the same time, at least one of the generation origins resends the verification request for the new block randomly or after a predetermined waiting time has elapsed (S203).

2. 2. The vehicle data storage method according to claim 1, A data storage method for a vehicle, comprising: when two verification requests for the new block from different generation sources occur simultaneously, both generation sources each wait for a random time and then resend the verification request for the new block.

3. 3. The vehicle data storage method according to claim 1, further comprising: A priority is set for each of the plurality of nodes, When verification requests for two new blocks having different generation origins occur simultaneously, the new block generated by the node having a higher priority among the generation origins of the two new blocks is verified, while the new block generated by the node having a lower priority is rejected.

4. A vehicle data storage method according to any one of claims 1 to 3, comprising: A vehicle data storage method, wherein the signature value of the new block is a hash value obtained by inputting the signature value included in the final block and the transaction to be included in the new block into a predetermined hash function, and encrypting the hash value using the common key.

5. A vehicle data storage method according to any one of claims 1 to 4, comprising: A data storage method for a vehicle, comprising: each of the plurality of nodes generating the new block at least at a time when a random waiting time has elapsed since the vehicle stopped.

6. A vehicle data storage method according to any one of claims 1 to 5, The vehicle data storage method includes, when the node generates the new block, requesting an odd number of other nodes to verify the new block.

7. A vehicle data storage method according to any one of claims 1 to 6, comprising: A data storage method for a vehicle, comprising: any one of a plurality of nodes uploading the block linked to the blockchain to a server located outside the vehicle via a communication device (2) for performing wireless communication.

8. A vehicle data storage system including a plurality of nodes (1, 1a to 1f) having a common key that is common key information and configured to be able to communicate with each other in a vehicle, the system storing data collected by the nodes using a blockchain, A block in the blockchain includes a signature value generated using a part of the previous block and the common key, and a transaction that is data to be stored; Each of the plurality of nodes comprises: a block generating unit (F2) that generates a new block to be linked to the blockchain, the new block including a new signature value generated based on a part of a final block located at the end of the blockchain and the common key; A verification request unit (F3) that distributes the new block to a plurality of other nodes based on the generation of the new block and requests them to verify the new block; a block verification unit (F6) that, when requested by another node to verify the new block, verifies the validity of the new block by using the common key and transmits the result of the verification to at least the node corresponding to the generation source of the new block; A blockchain update unit (F7) that links the new block to the blockchain based on the majority of the plurality of nodes determining that the new block is valid; and an arbitration unit (F8) that resends the verification request for the new block randomly or after a predetermined waiting time has elapsed if the timing of the verification request overlaps with that of the other nodes.

Citation Information

Patent Citations

  • Autonomous mobile body and information collecting system

    JP2019117446A

  • Control device, program for control device, and control method

    JP2019177809A

  • History storage device and history storage program

    JP2020071594A

  • Block chain system and server

    JP2020088864A

  • Ledger management system, and ledger management node

    JP2020149320A

Cited By

  • Securely processing a contingent action token

    US20260067107A1