Data management device and data management method
The data management system efficiently verifies data order and integrity in distributed ledgers by periodically updating evidence chains and selectively acquiring timestamp tokens, addressing verification cost and tampering risks in distributed ledger systems.
Patent Information
- Application Number
- JP2023060208
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
AI Technical Summary
Existing data management systems using distributed ledger technology face challenges in efficiently proving the order and integrity of data across multiple ledgers, leading to increased verification costs and potential tampering risks.
A data management device and method that utilizes a distributed ledger with evidence chains storing hash values and timestamp tokens, periodically updating these chains to efficiently verify the order and integrity of data by selectively targeting changed evidence chains for timestamp token acquisition, reducing unnecessary verification processes.
This approach allows for efficient proof of data order and integrity, minimizing verification costs and ensuring steady verification over time, while enabling user-selective verification operations to optimize resource usage.
Smart Images

Figure 2024147286000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a data management device and a data management method, and more particularly to a data management device and a data management method that use Distributed Ledger Technology (DLT). [Background technology]
[0002] Japanese Patent No. 6694204 (Patent Document 1) discloses a data management system to which distributed ledger technology is applied. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 6694204 Summary of the Invention [Problem to be solved by the invention]
[0004] A data management device or method for managing data (files and confirmation times) using distributed ledger technology has been proposed. When a distributed ledger including multiple ledgers (chains, which will be described later) is used, there is a demand for efficient proof of data order.
[0005] The present disclosure has been made to solve the above problems, and one of the objectives of the present disclosure is to efficiently prove the ordering of data when a distributed ledger containing multiple ledgers is used. [Means for solving the problem]
[0006] (1) A data management device according to a first aspect of the present disclosure includes a storage device in which a distributed ledger is stored. The distributed ledger includes a plurality of evidence chains in which at least one hash value generated from a file is stored in chronological order, and a timestamp chain in which at least one timestamp token for proving a confirmation time is stored in chronological order. The data management device further includes a processor that repeatedly executes an update process to update the timestamp chains. The update process includes a process of identifying, from among the plurality of evidence chains, at least one evidence chain whose hash value has changed due to a change in the file since the previous execution of the update process, and acquiring a timestamp token for an end value generated based on each end hash value of the at least one evidence chain.
[0007] (2) When generating a terminal value, the processor does not use a terminal hash value that has not been changed since the previous execution of the update process.
[0008] In the above configurations (1) and (2), a timestamp token is obtained for evidence chains in which files have been changed since the last time the update process was executed, and a timestamp token is not obtained for evidence chains in which files have not been changed. This reduces the cost of obtaining a timestamp token for evidence chains in which files have not been changed. Therefore, with the above configurations (1) and (2), the order of files and confirmation times can be efficiently proven.
[0009] (3) The processor executes the update process every time a predetermined period elapses.
[0010] In the above configuration (3), the update process is performed periodically. This reduces the cost of proof compared to when the update process is performed every time any file is changed. Also, compared to when the update process is performed irregularly, it enables stable verification over the long term.
[0011] (4) The processor is configured to execute a first verification process to a third verification process. The first verification process is a process for verifying whether at least one file generated from at least one hash value has been tampered with. The second verification process is a process for verifying whether at least one confirmed time certified by at least one time stamp token has been tampered with. The third verification process is a process for verifying the order of the at least one file and the at least one confirmed time.
[0012] In the above configuration (4), the first verification process makes it possible to verify the integrity of the file (whether the file has been tampered with). The second verification process makes it possible to verify the integrity of the confirmation time (whether the confirmation time has been tampered with). The third verification process makes it possible to verify the order of the files and confirmation times in the distributed ledger. Thus, with the above configuration (4), it can be verified whether the files and confirmation times are properly managed.
[0013] (5) The processor executes at least one of the first to third verification processes in accordance with a user's operation on the input device.
[0014] In the above configuration (5), at least one of the first to third verification processes is executed in accordance with a user's operation. Therefore, according to the above configuration (5), the verification requested by the user can be performed at a timing desired by the user.
[0015] (6) When a first user operation is performed on the input device, the processor executes first to third verification processes on a part selected by the user out of the at least one file and the at least one confirmed time.
[0016] In the above configuration (6), when the first user operation is performed, the verification target is limited to some files and / or some fixed times selected by the user. This reduces the verification cost (man-hours, time, system load, etc.) compared to the case where all files and all fixed times are the verification targets. Therefore, according to the above configuration (6), it is possible to efficiently verify whether files and fixed times are appropriately managed.
[0017] (7) When two or more files are selected by the user, the processor verifies at least the oldest file, the confirmation time immediately preceding the oldest file, the newest file, and the confirmation time immediately following the newest file.
[0018] In the above configuration (7), the confirmation time immediately preceding the oldest file and the confirmation time immediately following the newest file are subject to verification. This makes it possible to prove which files, among the two or more files selected by the user, existed and which files did not exist at the immediately preceding confirmation time and the immediately following confirmation time. In other words, it can be proven that the two or more files selected by the user were stored in the distributed ledger between the immediately preceding confirmation time and the immediately following confirmation time. Therefore, according to the above configuration (7), the order of the files and confirmation times can be effectively verified with a simple user operation.
[0019] (8) If there are other confirmation times between two or more files, the processor further subjects the other confirmation times to verification.
[0020] In the above configuration (8), other confirmation times existing between two or more files are also verified. This makes it possible to prove which files existed and which files did not exist at the other confirmation times. Therefore, with the above configuration (8), the order of files and confirmation times can be verified in more detail.
[0021] (9) When a second user operation is performed on the input device, the processor executes the first to third verification processes for all of the at least one file and the at least one confirmed time.
[0022] In the above configuration (9), when the second user operation is performed, the integrity of all files and the integrity of all confirmation times are verified. Therefore, according to the above configuration (9), the integrity of files and confirmation times can be thoroughly verified.
[0023] (10) When a third user operation is performed on the input device, the processor executes a third verification process while not executing the first verification process and the second verification process.
[0024] In the above configuration (10), when a third user operation is performed, the order of the files and the confirmation times is selectively verified. Therefore, according to the above configuration (10), when the verification of the integrity of the files and the confirmation times is not required, the order of the files and the confirmation times can be efficiently verified.
[0025] (11) A data management method according to a second aspect of the present disclosure uses a distributed ledger. The distributed ledger includes a plurality of evidence chains in which at least one hash value generated from a file is stored in chronological order, and a timestamp chain in which at least one timestamp token for proving a confirmation time is stored in chronological order. The data management method includes a step of identifying, from among the plurality of evidence chains, at least one evidence chain whose hash value has changed due to a change in the file since the previous execution of an update process, and a step of acquiring a timestamp token for an end value generated based on each end hash value of the at least one evidence chain.
[0026] According to the method of (11) above, similar to the configuration of (1) above, the ordering of data can be efficiently proven when a distributed ledger including multiple ledgers is used. Effect of the Invention
[0027] According to the present disclosure, it is possible to efficiently prove the ordering of data when a distributed ledger containing multiple ledgers is used. [Brief description of the drawings]
[0028] [Figure 1] 1 is a diagram illustrating an example of an overall configuration of a data management system according to a first embodiment of the present disclosure. [Diagram 2] FIG. 2 illustrates an example of a configuration of a client server. [Diagram 3] FIG. 1 illustrates an example of a data structure of a distributed ledger. [Figure 4] A conceptual diagram to explain the relationship between records in the evidence chain and the timestamp chain. [Diagram 5] FIG. 2 is a functional block diagram showing main functions of a processor of a client server. [Figure 6] FIG. 4 is a functional block diagram of a file registration unit. [Figure 7] FIG. 4 is a functional block diagram of a confirmed time assignment unit. [Figure 8] FIG. 4 is a functional block diagram of a chain update unit. [Figure 9] FIG. 4 is a functional block diagram of a file verification unit. [Figure 10] FIG. 2 is a functional block diagram of a fixed time verification unit. [Figure 11] FIG. 2 is a functional block diagram of an order verification unit. [Figure 12] 1 is a flowchart showing the overall processing procedure of a verification process according to the first embodiment. [Figure 13] FIG. 13 is a diagram showing an example of a user interface for a user to select a verification function. [Figure 14] FIG. 13 is a diagram showing an example of a user interface on which a verification result is displayed when "Verify all files" is selected. [Figure 15] FIG. 13 is a diagram showing an example of the display of the verification result in the third box when "Verify all files" is selected. [Figure 16]FIG. 13 is a diagram showing an example of a UI that is displayed before the start of verification processing when "Verify selected file" is selected. [Figure 17] FIG. 13 is a diagram showing an example of a display in a file selection box. [Figure 18] FIG. 13 is a diagram showing an example of a UI in which a verification result is displayed when "Verify selected file" is selected. [Figure 19] FIG. 13 is a diagram showing an example of detailed display of the verification result in the third box when "Verify selected file" is selected. [Figure 20] FIG. 13 is a diagram showing another example of a display in a file selection box. [Figure 21] FIG. 13 is a diagram showing another example of the display of details of the verification result in the third box when "Verify selected file" is selected. [Figure 22] FIG. 13 is a diagram showing an example of a user interface that is displayed before the start of the verification process when "Verify only order" is selected. [Diagram 23] FIG. 13 is a diagram showing an example of a user interface on which a verification result is displayed when "Verify only order" is selected. [Figure 24] FIG. 13 is a diagram showing an example of displaying details of the verification result in the third box when "Verify only order" is selected. [Diagram 25] FIG. 11 is a diagram showing an example of the data structure of a distributed ledger in embodiment 2. [Figure 26] FIG. 11 is a conceptual diagram for explaining the relationship between records stored in the evidence chain and the timestamp chain in the second embodiment. [Figure 27] FIG. 11 is a functional block diagram of a record creation unit in the second embodiment. [Figure 28] 13 is a flowchart showing an example of a processing procedure for updating a timestamp chain in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are designated by the same reference characters and their description will not be repeated.
[0030] [Embodiment 1] <System configuration> FIG. 1 is a diagram showing an example of the overall configuration of a data management system according to a first embodiment of the present disclosure. The data management system 1 is a system that manages data using a distributed ledger technology. Data managed by the data management system 1 are files and a confirmed time. The type of file and the data format are not particularly limited. The file may be design data for a vehicle (or a component part of the vehicle), a control program for the vehicle, or a document file in which vehicle specifications or development know-how are described. The confirmed time is a time (typically including year, month, day, hour, minute, and second) certified by a time stamp token obtained from a Time Stamp Authority (TSA). The confirmed time may be called a confirmed date.
[0031] The data management system 1 includes, for example, a platform server 2 and a plurality of client servers 3A to 3D. In this example, an example will be described in which four client servers are included in the data management system 1. However, the number of client servers may be two or more.
[0032] The platform server 2 manages the network NW. The network NW is, for example, a consortium network formed among multiple companies. The platform server 2 accepts an application for participation in the network NW from a client server. The platform server 2 permits the client server to participate in the network NW based on an operation by an administrator of the platform server 2 or based on the result of judging a predetermined condition.
[0033] The four client servers 3A to 3D are servers belonging to companies A to D, respectively. Distributed ledger infrastructure software is installed in the client servers 3A to 3D. The distributed ledger infrastructure software functions so that each of the client servers 3A to 3D functions as a node. In the following, the client server 3A belonging to company A will be described as a representative, but the client servers 3B to 3D belonging to the other companies B to D also have the same configuration and function. Each of the client servers 3A to 3D corresponds to a "data management device" according to the present disclosure.
[0034] The client server 3A is communicatively connected to a time stamping authority 41A, a user terminal 42A, and a database 43A.
[0035] The time stamp authority 41A issues a time stamp token in response to a time stamp issuance request from the applicant, the client server 3A. A time stamp token is a file received from the applicant (a record hash value, described later in the first embodiment) combined with time information based on a time source that is traceable to international standard time. The time stamp authority 41A is preferably a public certification authority that can issue official certificates. A time stamp authority may be common to some or all of the client servers 3A to 3D.
[0036] The user terminal 42A is an information processing terminal loaned to a user (for example, an employee of company A), and is a PC (Personal Computer), a smartphone, a tablet, etc. The user terminal 42A functions as the input device 34 and / or the output device 35 (see FIG. 2) of the client server 3A.
[0037] The database 43A is a rewritable storage device, such as a hard disk drive (HDD), a solid state drive (SSD), or a flash memory. When a user performs an operation on the input device 34 (see FIG. 2) or the user terminal 42A of the client server 3A to request registration and / or update of a file or a confirmed time, the client server 3A outputs a control signal to the database 43A in response to the operation. The database 43A stores (registers and / or updates) the file or the confirmed time in accordance with the control signal from the client server 3A. The database may be shared among some or all of the client servers 3A to 3D.
[0038] Fig. 2 is a diagram showing an example of the configuration of the client server 3A. With reference to Fig. 1 and Fig. 2, the client server 3A includes a processor 31, a memory 32, a communication device 33, an input device 34, an output device 35, and a storage 36. The components of the client server 3A are connected to each other via a bus 37 so as to be able to communicate with each other.
[0039] The processor 31 is an arithmetic processing device such as a central processing unit (CPU) or a micro-processing unit (MPU). The memory 32 includes a read only memory (ROM) and a random access memory (RAM). The memory 32 stores a system program including an operating system (OS) and a control program including computer-readable code required for control calculations. The processor 31 realizes various processes by reading the system program and the control program, expanding them in the memory 32, and executing them. As will be described in detail later, the processor 31 stores a file or a fixed time in the database 43, obtains a time stamp token from the time stamp authority 41A, and generates transaction data for updating the distributed ledger.
[0040] Although FIG. 2 shows an example in which the client server 3A includes only one processor, the client server 3A may include multiple processors. That is, the client server 3A includes one or more processors. The same applies to the memory 32 and the storage 36. In this specification, the term "processor" is not limited to a processor in the narrow sense that executes processing using a stored program method, but may include hardwired circuits such as an ASIC (Application Specific Integrated Circuit) and an FPGA (Field-Programmable Gate Array). Therefore, the term "processor" may also be interpreted as a processing circuitry in which processing is defined in advance by computer-readable code and / or hardwired circuits.
[0041] The communication device 33 communicates with devices external to the client server 3A. The external devices include the platform server 2, the other client servers 3B to 3D, the time stamping authority 41A, the user terminal 42A, the database 43A, and the like.
[0042] The input device 34 is a device capable of accepting operations by a user, and is a mouse, a keyboard, a touch panel, etc. The output device 35 is a device capable of providing information to the user, and is typically a display.
[0043] The storage 36 is a rewritable storage device, such as a HDD, an SSD, a flash memory, etc. The storage 36 stores a private key 51, a plurality of public keys 52, and a distributed ledger 6.
[0044] The private key 51 is a private key managed by the company A. The multiple public keys 52 include public keys of the companies B to D. The multiple public keys 52 may include the public key of the company A itself. For example, when the client server 3A first joins the network NW, the processor 31 generates a private key and a public key. Then, the processor 31 transmits the generated public key to a certification authority (not shown) for authentication. The certification authority issues a digital certificate including information on the public key. The processor 31 stores the private key 51 corresponding to the authenticated public key in the storage 36. The processor 31 also transmits the authenticated public key (digital certificate) 62 to the client servers 3B to 3D of the other companies B to D. Similarly, each of the client servers 3B to 3D transmits its own public key to the client servers other than itself.
[0045] The distributed ledger 6 includes multiple ledgers. Each ledger has a chain structure (more specifically, a directed acyclic graph (DAG) structure), and therefore, hereinafter, the ledger is also referred to as a "chain." In the first embodiment, two types of chains, which will be described later, are prepared for each predetermined object (for example, for each vehicle, each component, each control program, each specification). When the client server 3 stores a file and / or a confirmation time in the database 43, the client server 3 stores information about the file and / or the confirmation time in the two types of chains.
[0046] Hereinafter, when there is no need to distinguish between the client servers 3A to 3D, they will be referred to as "client server 3" without adding the reference numerals A to D. The same applies to the time stamping authority, the user terminal, and the database.
[0047] <Distributed Ledger> 3 is a diagram showing an example of the data structure of the distributed ledger 6. The distributed ledger 6 includes, for example, multiple evidence chains 61 and multiple timestamp chains 62. Due to space limitations, FIG. 3 shows two types of chains, one each. In the first embodiment, one evidence chain 61 and one timestamp chain 62 are associated with each other. However, as will be described later in the second embodiment, multiple evidence chains 61 may be associated with one timestamp chain 62.
[0048] The evidence chain 61 is a ledger in which records related to files are stored in chronological order. In the example shown in Fig. 3, the evidence chain 61 includes five records R11 to R15. Each record includes a key (Key), an age (Age), data (Data), a nonce value (Nonce), a digital signature (Sig), a previous record hash value (Prev-RH), and a record hash value (RH).
[0049] The key is identification information (ID) for identifying the evidence chain 61. Identification information of an object (such as a vehicle, a component, a control program, or a specification) may be used as a key. In this example, Key=k1 is assigned to the evidence chain 61. As a result, a record with Key=k1 is stored in the evidence chain 61.
[0050] Generation is information that indicates the order of records. The first record's generation is 1. The generation is incremented each time the file and / or the commitment time is updated and a record is added. Below, the first (oldest) record is also referred to as the "start record." The last (latest) record is also referred to as the "end record."
[0051] The data in the evidence chain 61 is a hash value generated from a file (hereinafter also referred to as a "file hash value"). When a file is updated, a hash value is generated by hashing the updated file using a hash function. The generated hash value is then stored as the file hash value. In this example, file hash values FH1 to FH5 are stored in five records R11 to R15, respectively. Note that the file hash value corresponds to the "hash value" according to the present disclosure.
[0052] The nonce value is a value indicating the number of transaction data. The nonce value is used, for example, as a process number for storing a file hash value in the evidence chain 61 when a file is updated.
[0053] The digital signature is information for verifying the identity of the client server 3 that issued the transaction data. The digital signature is created, for example, by encrypting a file hash value with the private key 51 of the client server 3 that issued the transaction data.
[0054] The previous record hash value is the record hash value of the record in the generation immediately before the target record (in other words, the parent record).
[0055] The record hash value is a hash value of the record. The record hash value is generated by hashing the information of the record other than the record hash value (such as Key, Age, Data, Nonce, Sig, and Prev-RH) using a hash function.
[0056] The record hash value of the terminal record R15 (record with Age=6) of the evidence chain 61 is "h5". The previous record hash value of the terminal record R15 is "h4", which is the record hash value of the parent record (record with Age=5) R14. The previous record hash value of record R14 is "h3", which is the record hash value of the parent record (record with Age=3) R13. In this way, in the evidence chain 61, multiple records are chained together by each of the multiple records including the record hash value (previous record hash value) of its parent record.
[0057] The timestamp chain 62 is a ledger in which records related to fixed times are stored in chronological order. In the example shown in Fig. 3, the timestamp chain 62 includes four records R21 to R24. Each record includes a key, a generation, data, a nonce value, a digital signature, a previous record hash value, and a record hash value, similar to the records in the evidence chain.
[0058] While the data in the evidence chain 61 is a file hash value, the data in the timestamp chain 62 is a timestamp token or a terminal hash value (End-RH). As will be described in detail later, in response to a user operation requesting acquisition of a timestamp token, a timestamp token for the terminal hash value of the evidence chain 61 is acquired from the timestamp authority 41. In this example, timestamp tokens TS1 and TS2 are stored in two records R22 and R24, respectively.
[0059] The terminal hash value is the record hash value of the terminal record of the evidence chain 61 at the time when a user operation requesting acquisition of a timestamp token is performed. In this example, record R21 stores "h3", which is the record hash value of record R13 in the evidence chain 61, as the terminal hash value. Record R23 stores "h5", which is the record hash value of record R15 in the evidence chain 61, as the terminal hash value.
[0060] The other information contained in the timestamp chain 62 is similar to the corresponding information in the evidence chain 61, and therefore a detailed description will not be repeated.
[0061] 4 is a conceptual diagram for explaining the relationship between the records stored in the evidence chain 61 and the timestamp chain 62. Below, a chronological explanation will be given with reference to both FIG. 3 and FIG.
[0062] <Evidence Chain Age=1> First, a file P is registered in the database 43 according to a user operation. The client server 3A generates transaction data for adding a first generation (Age=1) record R11 to the evidence chain 61. The record R11 includes a file hash value FH1 generated by hashing the file P and a record hash value h1.
[0063] The client server 3A transmits the generated transaction data to the network NW. A process (transaction process) for executing the transaction data is executed in the client servers 3A to 3D, whereby a record R11 is added to the evidence chain 61 of each of the client servers 3A to 3D. These processes are similar in subsequent generations, and therefore will not be described repeatedly.
[0064] <Evidence Chain Age=2> When file Q is registered in database 43 according to a user operation, client server 3A generates transaction data for adding second generation (Age=2) record R12 to evidence chain 61. Record R12 includes file hash value FH2, previous record hash value h1, and record hash value h2 for file Q.
[0065] <Evidence Chain Age=3> When file R is registered in database 43 according to a user operation, client server 3A generates transaction data for adding record R13 of the third generation (Age=3) to the evidence chain 61. Record R13 includes a file hash value FH3 for file R, a previous record hash value h2, and a record hash value h3.
[0066] <Timestamp chain Age=1> It is assumed that, at the point in time when record R13 is the terminal record of the evidence chain 61, the user performs an operation on the input device 34 (which may be the user terminal 42A) to assign a fixed time to record R13. In response to the user operation, the client server 3A generates transaction data for adding the first generation (Age=1) record R21 to the timestamp chain 62. Record R21 includes a terminal hash value h3 (the record hash value of record R13, which is the terminal record of the evidence chain 61) and a record hash value H1.
[0067] <Timestamp chain Age=2> The client server 3A obtains a time stamp token TS1 for the record hash value (previous record hash value) H1 of the parent record R21 from the time stamp authority 41A. The client server 3A generates transaction data for adding the second generation (Age=2) record R22 to the time stamp chain 62. The record R22 includes the time stamp token TS1, the previous record hash value H1, and the record hash value H2.
[0068] <Evidence Chain Age=4> When the file P is updated to a file P' in accordance with a user operation, the client server 3A generates transaction data for adding a fourth generation (Age=4) record R14 to the evidence chain 61. The record R14 includes a file hash value FH4 related to the updated file P', a previous record hash value h3, and a record hash value h4.
[0069] <Evidence Chain Age=5> When a file S is registered in the database 43 according to a user operation, the client server 3A generates transaction data for adding a fifth generation (Age=5) record R15 to the evidence chain 61. Record R15 includes a file hash value FH5 for the file S, a previous record hash value h4, and a record hash value h5.
[0070] <Timestamp chain Age=3> It is assumed that, at the point in time when record R15 is the terminal record of the evidence chain 61, the user performs an operation on the input device 34 to assign a fixed time to record R15. In response to the user operation, the client server 3A generates transaction data for adding record R23 of the third generation (Age=3) to the timestamp chain 62. Record R23 includes a terminal hash value h5 (the record hash value of record R15, which is the terminal record of the evidence chain 61), a previous record hash value H2, and a record hash value H3.
[0071] <Timestamp chain Age=4> The client server 3A obtains a time stamp token TS2 for the previous record hash value H2 from the time stamp authority 41A. The client server 3A generates transaction data for adding a fourth generation (Age=4) record R24 to the time stamp chain 62. The record R24 includes the time stamp token TS2, the previous record hash value H3, and the record hash value H4.
[0072] In this embodiment, in both the evidence chain 61 and the timestamp chain 62, each of the multiple records (except the starting record) contains the previous record hash value, so that all records are chained together. Therefore, to tamper with any record (particularly the file hash value or timestamp token in that record), all records added after that record must be tampered with. However, such tampering is difficult in practice. Therefore, according to this embodiment, it is possible to prove that a file has not been tampered with (file integrity) and also to prove that the fixed time has not been tampered with (fixed time integrity). Note that the term "tampering" in this specification includes "damage" or "deletion" of a file and fixed time (timestamp token).
[0073] Furthermore, all records are chained in the evidence chain 61, so that the order of all records stored in the evidence chain 61 is uniquely identified. Therefore, according to this embodiment, the chronological sequence of a plurality of files (file order) can be proven.
[0074] In addition, in this embodiment, a time stamp token is obtained for the record hash value of the record of the time stamp chain 62 including the terminal hash value of the evidence chain 61. This makes it possible to prove which files existed and which files did not exist at the fixed time proven by the time stamp token. In the example shown in FIG. 3 and FIG. 4, by obtaining a time stamp token TS1 for the record hash value H1 of the record R21 including the terminal hash value h3 of the record R13, it is possible to prove that the file R (and the preceding files P, Q) existed at the fixed time proven by the time stamp token TS1, and it is possible to prove that the subsequent file P'S did not exist at the fixed time proven by the time stamp token TS1 (in other words, the file P'S was registered or updated after the time proven by the time stamp token TS1). Also, by obtaining a time stamp token TS2 for the record hash value H3 of the record R23 including the terminal hash value h5 of the record R15, it is possible to prove that the file S (and the preceding files P, Q, R, P') existed at the fixed time proven by the time stamp token TS2.
[0075] <Function block> 5 is a functional block diagram of the main functions of the processor 31 of the client server 3. The processor 31 includes a file registration unit 71, a fixed time assignment unit 72, a chain update unit 73, a file verification unit 74, a fixed time verification unit 75, and an order verification unit 76. Each functional block is realized by the processor 31 executing a program stored in the memory 32. Each functional block may be realized by dedicated hardware (electronic circuitry). Below, these functional blocks will be explained in order.
[0076] <File registration> 6 is a functional block diagram of the file registration unit 71. The file registration unit 71 generates transaction data for adding a record including a file hash value to the evidence chain 61 in accordance with a user operation for registering (or updating) a file in the database 43. The file registration unit 71 includes a file hash generation unit 711, a nonce generation unit 712, a digital signature unit 713, a transaction data generation unit 714, and a transaction data transmission unit 715.
[0077] A request occurs when a user operates the input device 34 or the user terminal 42. This request includes a key, which is an ID for identifying the evidence chain 61 to which the record is to be added. Although not shown, each functional block receives the key from the preceding block and outputs the key to the succeeding block. As a result, processing is executed on the evidence chain 61 identified by the key.
[0078] Upon receiving the request, the file hash generation unit 711 reads the file from the database 43. The file hash generation unit 711 generates a file hash value (FH) by hashing the file using a hash function. The file hash generation unit 711 outputs the file hash value to the digital signature unit 713 and the transaction data generation unit 714.
[0079] Upon receiving a request, the nonce generation unit 712 generates a nonce value. The nonce generation unit 712 outputs the nonce value to the transaction data generation unit 714. Although not shown, when a nonce value is used to create a digital signature, the nonce generation unit 712 may output the nonce value to the digital signature unit 713.
[0080] The electronic signature unit 713 reads out the private key 51 from the storage 36. The electronic signature unit 713 creates an electronic signature (Sig) by encrypting the file hash value from the file hash generation unit 711 with the private key 51. The electronic signature unit 713 may create an electronic signature by encrypting the nonce value from the nonce generation unit 712 with the private key 51. The electronic signature unit 713 may create an electronic signature by encrypting the file hash value and the nonce value with the private key 51. The electronic signature unit 713 outputs the electronic signature to the transaction data generation unit 714.
[0081] The transaction data generation unit 714 calculates the generation of a record to be newly added to the evidence chain 61. In this example, the transaction data generation unit 714 obtains the generation of the terminal record (i.e., the parent record) of the evidence chain 61 by querying the evidence chain 61 for a key. Alternatively, the transaction data generation unit 714 obtains the generation of the terminal record of the timestamp chain 62 associated with the evidence chain 61. Then, the transaction data generation unit 714 calculates the generation of the newly added record by incrementing the generation of the obtained terminal record by 1.
[0082] The transaction data generation unit 714 obtains the record hash value of the parent record of the evidence chain 61 as a previous record hash value (Prev-RH) (not shown). The transaction data generation unit 714 calculates the record hash value (RH) by hashing the key, generation, file hash value, nonce value, electronic signature, and previous record hash value. Then, the transaction data generation unit 714 generates transaction data (tx) including the key, generation, file hash value, nonce value, electronic signature, previous record hash value, and record hash value. It is preferable that the transaction data further includes sender information for identifying the client server 3 that is the sender of the transaction data. The transaction data generation unit 714 may include, in the transaction data, time information for broadcasting the transaction data to the network NW. The transaction data generation unit 714 outputs the transaction data to the transaction data transmission unit 715.
[0083] The transaction data transmission unit 715 outputs a control signal for transmitting the transaction data to the communication device 33. As a result, the transaction data is broadcast to the network NW via the communication device 33.
[0084] <Getting the confirmed time> 7 is a functional block diagram of the fixed time assigning unit 72. The fixed time assigning unit 72 stores the fixed time in the database 43 in accordance with a user operation. In addition, the fixed time assigning unit 72 generates transaction data for adding a record including a time stamp token to the time stamp chain 62 in accordance with the user operation. The fixed time assigning unit 72 includes a terminal hash acquiring unit 721, a nonce generating unit 722, a time stamp token acquiring unit 723, a digital signature unit 724, a transaction data generating unit 725, and a transaction data transmitting unit 726.
[0085] A request occurs in response to a user operation on the input device 34 or the user terminal 42. This request includes a first key, which is an ID for identifying the evidence chain 61 to which a fixed time is to be assigned, and a second key, which is an ID for identifying the timestamp chain 62 to which a record is to be added. Each functional block executes processing on the evidence chain 61 identified by the first key and the timestamp chain 62 identified by the second key.
[0086] Upon receiving the request, the terminal hash acquisition unit 721 extracts the transaction data corresponding to the terminal record of the evidence chain 61. The terminal hash acquisition unit 721 acquires the terminal hash value (record hash value of the terminal record) (End-RH) of the evidence chain 61 from the extracted transaction data. The terminal hash acquisition unit 721 outputs the terminal hash value to the timestamp token acquisition unit 723 and the transaction data generation unit 725.
[0087] Upon receiving a request, the nonce generation unit 722 generates a nonce value. The nonce generation unit 722 outputs the nonce value to the transaction data generation unit 725. Although not shown, in the case where a nonce value is used to create a digital signature, the nonce generation unit 722 may output the nonce value to the digital signature unit 724.
[0088] The timestamp token acquisition unit 723 acquires a timestamp token (TS) for the termination hash value from the termination hash acquisition unit 721. More specifically, the timestamp token acquisition unit 723 transmits the termination hash value to the TSTA 41 via the communication device 33. The TSTA 41 returns the timestamp token to the client server 3 that transmitted the termination hash value. In this way, the timestamp token is acquired. The timestamp token acquisition unit 723 stores the timestamp token in the database 43 (which may be the storage 36) as the confirmed time. In addition, the timestamp token acquisition unit 723 outputs the timestamp token to the digital signature unit 724 and the transaction data generation unit 725.
[0089] The electronic signature unit 724 reads out the private key 51 from the storage 36. The electronic signature unit 724 creates an electronic signature (Sig) by encrypting the time stamp token from the time stamp token acquisition unit 723 with the private key 51. The electronic signature unit 724 may create an electronic signature by encrypting the nonce value from the nonce generation unit 722 with the private key 51. The electronic signature unit 724 may create an electronic signature by encrypting the time stamp token and the nonce value with the private key 51. The electronic signature unit 724 outputs the electronic signature to the transaction data generation unit 725.
[0090] The transaction data generation unit 725 calculates the generation of a record to be newly added to the timestamp chain 62. This calculation method is similar to the calculation method by the transaction data generation unit 714 (see FIG. 6), and therefore description thereof will not be repeated.
[0091] The transaction data generation unit 725 obtains the record hash value of the parent record of the timestamp chain 62 as a previous record hash value (Prev-RH) (not shown). The transaction data generation unit 725 calculates the record hash value (RH) by hashing the key, generation, data (terminal hash value or timestamp token), nonce value, electronic signature, and previous record hash value. Then, the transaction data generation unit 725 generates transaction data (TX) including the key, generation, timestamp token, nonce value, electronic signature, terminal hash value, previous record hash value, and record hash value. It is preferable that the transaction data further includes sender information. The transaction data generation unit 725 outputs the transaction data to the transaction data transmission unit 726.
[0092] The transaction data transmission unit 726 outputs a control signal for transmitting the transaction data to the communication device 33. As a result, the transaction data is broadcast to the network NW via the communication device 33.
[0093] Tune Updates 8 is a functional block diagram of the chain updating unit 73. The chain updating unit 73 updates the evidence chain 61 or the timestamp chain 62 by adding a new record to the evidence chain 61 or the timestamp chain 62 through transaction processing. Here, the evidence chain 61 will be described as an example, but the same applies to the timestamp chain 62 in the first embodiment. The chain updating unit 73 includes a transaction data acquisition unit 731, a signature verification unit 732, a record creation unit 733, an update unit 734, and a notification unit 735.
[0094] The transaction data acquisition unit 731 acquires transaction data (tx) from the network NW. The transaction data acquisition unit 731 outputs the transaction data to the signature verification unit 732.
[0095] The signature verification unit 732 verifies the validity of the electronic signature included in the transaction data. As described above, the electronic signature is a file hash value encrypted using the private key 51 of the client server 3 that is the sender. First, the signature verification unit 732 identifies the client server 3 that is the sender of the transaction data based on the sender information included in the transaction data. Then, the signature verification unit 732 reads out the public key of the identified client server 3 from the storage 36 out of the multiple public keys 52. The signature verification unit 732 decrypts the electronic signature included in the transaction data using the public key. The signature verification unit 732 compares the decrypted value with the file hash value included in the transaction data. If the two match, the signature verification unit 732 recognizes the validity of the electronic signature and outputs the result to the record creation unit 733.
[0096] If the validity of the digital signature is recognized, the record creation unit 733 creates a record to be added to the evidence chain 61 based on the transaction data. More specifically, the record creation unit 733 obtains the key, generation, file hash value, nonce value, digital signature, previous record hash value, and record hash value from the transaction data, and creates a record including this information. The record creation unit 733 outputs the record to the update unit 734.
[0097] The updating unit 734 updates the evidence chain 61. More specifically, the updating unit 734 references the key of the record from the record creating unit 733, and identifies the evidence chain 61 to which the record should be added. Then, the updating unit 734 adds the record to the identified evidence chain 61. When the updating of the evidence chain 61 is completed, the updating unit 734 outputs a notification to that effect to the notification unit 735.
[0098] The notification unit 735 outputs a control signal for notifying the completion of the transaction processing to the communication device 33. In this way, the completion of the transaction processing is notified to the client server 3 that is the transmission source of the transaction data.
[0099] <Verifying file integrity> 9 is a functional block diagram of the file verification unit 74. The file verification unit 74 verifies the integrity of a file whose record is stored in the evidence chain 61 (that the file has not been tampered with). The verification target may be all files in the evidence chain 61, or a portion of files selected by the user. The file verification unit 74 includes a file acquisition unit 741, a file hash acquisition unit 742, a verification processing unit 743, and an output unit 744.
[0100] The file acquisition unit 741 receives a user operation to select a file to be verified from the input device 34 (which may be the user terminal 42). For example, the user first identifies the evidence chain 61. Then, the user may identify all of the multiple files whose records are stored in the evidence chain as the files to be verified. Alternatively, the user may identify some of the multiple files as the files to be verified. In this way, the file to be verified is selected. The file acquisition unit 741 acquires the selected file from the database 43, and outputs the acquired file to the verification processing unit 743.
[0101] The file hash acquisition unit 742 acquires, for a file selected by the user, a corresponding file hash value (FH) stored in the evidence chain 61 in the storage 36. The file hash acquisition unit 742 outputs the file hash value to the verification processing unit 743.
[0102] The verification processing unit 743 judges whether the file from the file acquisition unit 741 is tampered with based on whether the file from the file acquisition unit 741 and the file hash value from the file hash acquisition unit 742 are consistent. More specifically, the verification processing unit 743 hashes the file from the file acquisition unit 741 using a hash function. Then, for each file, the verification processing unit 743 compares the file hash value obtained by hashing with the file hash value from the file hash acquisition unit 742. When the two file hash values for a certain file match each other, the verification processing unit 743 judges that the file has not been tampered with (tampering not detected). On the other hand, when the two file hash values for another file do not match, the verification processing unit 743 judges that the file may have been tampered with (tampering detected). The verification processing unit 743 outputs the verification result (tampering detected / not detected for each file, which file has been tampered, etc.) to the output unit 744.
[0103] The output unit 744 outputs the verification result by the verification processing unit 743 to the output device 35 (which may be the user terminal 42). This allows the user to check the verification result for one or more files selected by the user.
[0104] <Verifying the completeness of the confirmed time> 10 is a functional block diagram of the confirmed time verification unit 75. The confirmed time verification unit 75 verifies the integrity of the confirmed time certified by the time stamp token (that the confirmed time has not been tampered with). The subject of verification may be all confirmed times in the time stamp chain 62, or a portion of confirmed times selected by the user. The confirmed time verification unit 75 includes a confirmed time acquisition unit 751, a time stamp token acquisition unit 752, a verification processing unit 753, and an output unit 754.
[0105] The confirmed time acquisition unit 751 receives a user operation to select a confirmed time to be verified from the input device 34 (which may be the user terminal 42). For example, the user first identifies the timestamp chain 62. The user may then identify all of the multiple confirmed times included in the timestamp chain as the confirmation time to be verified. Alternatively, the user may identify a portion of the multiple confirmed times as the confirmation time to be verified. This selects the confirmed time to be verified. As will be described later, the confirmed time to be verified may be automatically selected in accordance with a user operation to select a file. The confirmed time acquisition unit 751 acquires the selected confirmed time from the database 43, and outputs the acquired confirmed time to the verification processing unit 753.
[0106] The time stamp token acquisition unit 752 acquires a corresponding time stamp token (TS) stored in the time stamp chain 62 in the storage 36 for the confirmed time selected by the user. The time stamp token acquisition unit 752 outputs the time stamp token to the verification processing unit 753.
[0107] The verification processing unit 753 judges whether the confirmed time has been tampered with based on whether the confirmed time from the confirmed time acquisition unit 751 (database 43) and the time stamp token from the time stamp token acquisition unit 752 (time stamp chain 62) match. More specifically, the verification processing unit 753 compares the confirmed time from the confirmed time acquisition unit 751 with the time stamp token from the time stamp token acquisition unit 752. If a confirmed time and a time stamp token corresponding to the confirmed time match each other, the verification processing unit 753 judges that the confirmed time has not been tampered with (tampering not detected). On the other hand, if another confirmed time and a time stamp token corresponding to the confirmed time do not match, the verification processing unit 753 judges that the confirmed time may have been tampered with (tampering detected). The verification processing unit 753 outputs the verification result (tampering detected / not detected for each confirmed time, which confirmed time has been tampered with, etc.) to the output unit 754.
[0108] The output unit 754 outputs the verification result by the verification processing unit 753 to the output device 35 (which may be the user terminal 42). This allows the user to check the verification result for one or more confirmed times selected by the user.
[0109] <Verification of order> 11 is a functional block diagram of the order verification unit 76. The order verification unit 76 verifies the order of the files whose records are stored in the evidence chain 61 and / or the confirmation times proven by the timestamp chain 62 (the temporal order of the files and / or the confirmation times). The order verification unit 76 includes a termination hash acquisition unit 761, a previous record hash acquisition unit 762, a record hash acquisition unit 763, a verification processing unit 764, and an output unit 765.
[0110] First, the user operates the input device 34 (which may be the user terminal 42) to select the file and / or confirmation time to be verified. The method of selection is the same as that described in Fig. 9 and Fig. 10. The following describes an example in which multiple files and multiple confirmation times have been selected. Each of the end hash acquisition unit 761, previous record hash acquisition unit 762, and record hash acquisition unit 763 receives which file and which confirmation time have been selected by the user.
[0111] The end hash acquisition unit 761 acquires the end hash value (End-RH) of the record corresponding to each of the selected multiple confirmed times from the timestamp chain 62. The confirmed time acquisition unit 751 outputs the end hash value to the verification processing unit 764.
[0112] The previous record hash acquisition unit 762 acquires the previous record hash value (Prev-RH) of the record corresponding to each of the selected files from the evidence chain 61, and acquires the previous record hash value of the record corresponding to each of the selected confirmed times from the timestamp chain 62. The previous record hash acquisition unit 762 outputs the previous record hash value to the verification processing unit 764.
[0113] The record hash acquisition unit 763 acquires a record hash value (RH) of a record corresponding to each of the selected files from the evidence chain 61, and acquires a record hash value of a record corresponding to each of the selected confirmed times from the timestamp chain 62. The record hash acquisition unit 763 outputs the record hash value to the verification processing unit 764.
[0114] The verification processing unit 764 verifies the chronological order (precedence / contrast) of the selected files and the multiple confirmed times based on the termination hash value from the termination hash acquisition unit 761, the previous record hash value from the previous record hash acquisition unit 762, and the record hash value from the record hash acquisition unit 763. As described in FIG. 3 and FIG. 4, the order (parent-child relationship) of the records in the same chain can be specified based on the previous record hash value and the record hash value. Also, the order of the records between different chains can be specified based on the termination hash value and the record hash value. Therefore, the verification processing unit 764 can specify the order of the multiple files and the multiple confirmed times. The verification processing unit 764 outputs the verification result (the chronological order of the multiple files and the multiple confirmed times) to the output unit 765.
[0115] The output unit 765 outputs the verification result by the verification processing unit 764 to the output device 35 (which may be the user terminal 42). This allows the user to check the verification result for one or more files and / or one or more confirmed times selected by the user.
[0116] Note that the above description is given taking as an example a situation in which multiple files and multiple confirmed times are selected. However, only multiple files may be selected, and no confirmed times may be selected. Alternatively, only multiple confirmed times may be selected, and no files may be selected. Those skilled in the art will easily understand from the above description that the order of all records can be specified in these cases as well.
[0117] <Processing flow> 12 is a flowchart showing an example of the overall processing procedure of the verification process in the first embodiment. The processing shown in this flowchart is called from the main routine and executed when a predetermined condition is met (for example, at every predetermined period). Each step is realized by software processing by the client server 3 (processor 31), but may also be realized by hardware (electrical circuitry) arranged in the client server 3. Hereinafter, steps are abbreviated as S. The same applies to the flowchart in the second embodiment described later.
[0118] In S11, the client server 3 determines whether or not the input device 34 or the user terminal 42 has accepted a user operation to select a verification function.
[0119] 13 is a diagram showing an example of a user interface (UI) for the user to select a verification function. This UI is displayed on the output device 35 or the user terminal 42.
[0120] The UI has, for example, a navigation list 81 showing selectable evidence chains, and a field 82 showing the evidence chain selected by the user. In this example, "Evidence Chain X" is selected. The UI further has, for example, three tabs 831 to 833. Tab 831 is a tab for displaying a file list. Tab 832 is a tab for displaying history. Tab 833 is a tab for sharing files.
[0121] When tab 832 for displaying history is selected, three buttons 841 to 843 for selecting one of three types of verification functions are displayed. Button 841 is a "Verify all files" button. Button 842 is a "Verify selected files" button. Button 843 is a "Verify ordering only" button. In FIG. 13, "Verify all files" is selected by operating button 841.
[0122] 12 and 13, if the input device 34 or the user terminal 42 does not accept a user operation (more specifically, an operation on any of the buttons 841 to 843) (NO in S11), the client server 3 returns the process to the main routine without executing any subsequent processes.
[0123] When the input device 34 or the user terminal 42 accepts the above user operation (YES in S11), the client server 3 advances the process to S12 and determines which of the buttons 841 to 843 has been operated by the user.
[0124] When the button 841 for instructing verification of all files is operated ("Verify all files" in S12), the client server 3 executes a file verification process for all files (S131), a fixed time verification for all fixed times (S132), and an order verification process (S133). The order in which these processes are executed is arbitrary. The file verification process, the fixed time verification, and the order verification process are respectively realized by the file verification unit 74 (see FIG. 9), the fixed time verification unit 75 (see FIG. 10), and the order verification unit 76 (see FIG. 11).
[0125] After the execution of the three verification processes, the client server 3 notifies the user that the verification processes are completed (S16). The client server 3 may display a message indicating that the verification processes are completed on the output device 35 (which may be the user terminal 42), or may send an email indicating that the verification processes are completed to the user terminal 42. The client server 3 then displays the verification results on the output device 35 (which may be the user terminal 42) (S17).
[0126] Returning to S12, when the button 842 for instructing verification of the selected file is operated ("Verify selected file" in S12), the client server 3 executes a file verification process for the selected file (S141) and a confirmation time verification for the selected confirmation time (S142). After that, the client server 3 notifies the user of the completion of the verification (S16), and displays the verification result on the output device 35 (which may be the user terminal 42) (S17).
[0127] When the button 843 for instructing verification of only the order is operated ("Verify only the order" in S12), the client server 3 executes the order verification process (S151). After that, the client server 3 notifies the user of the completion of the verification (S16), and displays the verification result on the output device 35 or the user terminal 42 (S17).
[0128] The file verification process, confirmation time verification, and order verification process correspond to the "first verification process" to the "third verification process" according to the present disclosure, respectively. The operation of button 842 to instruct verification of a selected file corresponds to the "first user operation" according to the present disclosure. The operation of button 841 to instruct verification of all files corresponds to the "second user operation" according to the present disclosure. The operation of button 843 to instruct verification of only order corresponds to the "third user operation" according to the present disclosure.
[0129] <Displaying verification results> Below, we will explain how the UI that displays the verification results differs depending on which of "Verify all files," "Verify selected files," and "Verify order only" is selected.
[0130] <Verify all files> 14 is a diagram showing an example of a UI in which the verification results are displayed when "Verify all files" is selected. When the verification process is completed, a first box 861, a second box 862, and a third box 863 are displayed together with a notification 85 saying "Verification completed."
[0131] The first box 861 shows a summary (conclusion) of the verification results. For example, if tampering is found in any record (file or confirmation time), a message saying "Tampering Found" is displayed in the first box 861. On the other hand, if tampering is not found in any record, a message saying "No tampering found" is displayed in the first box 861, as shown in FIG.
[0132] 14, “Evidence Chain X” is displayed in the second box 862.
[0133] The third box 863 illustrates the details of the verification result. As explained in Figures 3 and 4, the file generation and the confirmation time generation are managed independently of each other in separate chains. In the following explanation of the verification result, the file generation is given the letter A and the confirmation time generation is given the letter B to distinguish between the two. However, this distinction is made to avoid confusion and make it easier to understand, and is not essential.
[0134] Fig. 15 is a diagram showing an example of the display of the verification results in the third box 863 when "Verify all files" is selected. Here, it is assumed that three or more files are selected. In this case, for example, a section 911 showing the verification results of the start record and a section 913 showing the verification results of the end record are displayed. In the example shown in Fig. 15, section 911 shows the verification results of whether or not the fixed time of Age=1B has been tampered with by the fixed time verification process. Section 913 shows the verification results of whether or not the file of Age=8A has been tampered with by the file verification process.
[0135] On the other hand, for the records between the start record and the end record, a blank section 912 that does not include the verification result (whether or not the files with Age=1A to 2B or the confirmation time have been tampered with) is displayed. That is, the display of the records between the start record and the end record is omitted. When the user selects the detail display button 914 in the section 912, sections 912A to 912H that show the verification results of the intermediate records are displayed. The arrangement of the files and the confirmation times in the sections 911, 912A to 912H, and 913 is a chronological order based on the result of the order verification process. In this way, the display of the records between the start record and the end record is omitted and the overall display is simplified, making it easier for the user to grasp the overview of the verification results. Note that if only one or two files are selected, the intermediate section 912 is not displayed.
[0136] "Verify all files" displays the verification results for all files and all confirmation times. Therefore, "Verify all files" is particularly effective when a problem (suspected tampering) occurs between users. This is because a user can convince another user by showing all the verification results to that other user.
[0137] 15, the sizes of the sections 911 and 913 at both ends are larger than the sizes of the sections 912A to 912H in the middle. In this way, it is desirable to display the section showing the verification result of the start record and the section showing the verification result of the end record larger than the section showing the verification result of the records between the start record and the end record. This allows the user to easily check the verification results for the start record and the end record.
[0138] It is also desirable to display the section showing the verification result of whether or not the file has been tampered with differently from the section showing the verification result of whether or not the confirmation time has been tampered with. In Fig. 15, the difference in the display method is expressed by the presence or absence of hatching. This allows the user to easily distinguish between the verification result of whether or not the file has been tampered with and the verification result of whether or not the confirmation time has been tampered with.
[0139] In particular, it is desirable to display the section showing the verification result of whether the confirmation time has been tampered with more strongly than the section showing the verification result of whether the file has been tampered with. This allows the user to easily distinguish and confirm the verification result related to the confirmation time from the verification result related to the file. This is because, although the number of confirmation times given is generally smaller than the number of registered files, the confirmation time is often useful in solving problems.
[0140] Various known methods may be adopted as a method of highlighting. For example, different colors may be used for both sections. The verification result of whether or not the confirmation time has been tampered with may be highlighted by utilizing characteristics based on color combinations (warm / cold colors, advancing / retreating colors, expanding / contracting colors, etc.). Also, the section showing the verification result of whether or not the confirmation time has been tampered with may be displayed in a dark color, while the section showing the verification result of whether or not the file has been tampered with may be displayed in a light color. Even if the colors are the same, a dark color indicates a high degree of emphasis, and a light color indicates a low degree of emphasis. Alternatively, the section showing the verification result of whether or not the confirmation time has been tampered with may be displayed larger than the section showing the verification result of whether or not the file has been tampered with. A frame may be added only to the section showing the verification result of whether or not the confirmation time has been tampered with. Only the section showing the verification result of whether or not the confirmation time has been tampered with may be made to blink.
[0141] Furthermore, in the example shown in Fig. 15, the year, month, day, hour, minute, and second are displayed as the confirmed time. However, the user may be able to select to display only a portion of this. For example, only the year, only the year and month, or only the year, month, and day may be displayed depending on the user's operation. By allowing the user to select the time granularity as appropriate, the user can easily check the confirmed time with the required granularity.
[0142] <Verify selected file> 16 is a diagram showing an example of a UI that is displayed before the start of the verification process when "Verify selected file" is selected. When a button 842 for instructing "Verify selected file" is operated, a file selection box 844 is displayed to allow the user to select a file to be verified.
[0143] Fig. 17 is a diagram showing an example (first example) of the display in the file selection box 844. In the file selection box 844, the names of files whose file hash values are stored in the selected evidence chain 61 and the associated confirmed times are displayed, for example, in ascending or descending order (descending order in Fig. 17). A file is selected when the user checks the check box next to the name of the file. In this embodiment, the confirmed time is automatically selected according to the selected file.
[0144] In the example shown in FIG. 17, a file with Age=17A and a file with Age=16A are selected by the user. In this case, of the multiple files selected by the user, the confirmation time of Age=4B immediately after the newest file with Age=17A and the confirmation time of Age=3B immediately before the oldest file with Age=16A are automatically selected. Note that the confirmation time "immediately after" the newest file is the confirmation time that is later than the newest file in the chronological order of files and confirmation times and is closest to the newest file. The confirmation time "immediately before" the oldest file is the confirmation time that is earlier than the oldest file in the chronological order of files and confirmation times and is closest to the newest file.
[0145] 18 is a diagram showing an example of a UI in which the verification result is displayed when "Verify selected file" is selected. As in the case when "Verify all files" is selected (see FIG. 14), details of the verification result are displayed in a third box 863 in a graphical format.
[0146] Fig. 19 is a diagram showing an example of detailed display of the verification result in the third box 863 when "Verify selected file" is selected. When a file is selected as described in Fig. 17, at least four sections 921 to 924 are displayed as shown in Fig. 19.
[0147] Section 921 shows the verification results of the confirmation time verification process for the automatically selected confirmation time of Age=4B. Section 922 shows the verification results of the file verification process for the file of Age=17A selected by the user. Section 923 shows the verification results of the file verification process for the file of Age=16A selected by the user. Section 924 shows the verification results of the confirmation time verification process for the automatically selected confirmation time of Age=3B.
[0148] In this way, in the example shown in FIG. 17, the file with Age=16A selected by the user, the file with Age=17A selected by the user, the confirmation time of Age=3B immediately before the oldest file, and the confirmation time of Age=4B immediately after the newest file are subject to verification (see FIG. 19). This makes it possible to prove that the file with Age=16A and the file with Age=17A were stored in the distributed ledger 6 (evidence chain 61) between the confirmation time of Age=3B and the confirmation time of Age=4B. Therefore, according to this embodiment, the order of the files and the confirmation times can be effectively verified by a simple user operation. Note that, although an example in which two files are selected has been described in FIG. 17, three or more files may be selected.
[0149] Fig. 20 is a diagram showing another example (second example) of the display in the file selection box 844. In the example shown in Fig. 20, a file with Age=16A and a file with Age=15A are selected by the user. In this case, the confirmed time of Age=2B immediately before the oldest file and the confirmed time of Age=4B immediately after the newest file are automatically selected. In addition, the confirmed time of Age=3B between the newest and oldest files is also automatically selected.
[0150] Fig. 21 is a diagram showing another example of the display of details of the verification result in the third box 863 when "Verify selected file" is selected. When a file is selected as described in Fig. 20, at least five sections 931 to 935 are displayed as shown in Fig. 21.
[0151] Section 931 shows the verification results of the fixed time verification process for the automatically selected fixed time of Age=4B. Section 932 shows the verification results of the file verification process for the file of Age=16A selected by the user. Section 933 shows the verification results of the fixed time verification process for the automatically selected fixed time of Age=3B. Section 934 shows the verification results of the file verification process for the file of Age=15A selected by the user. Section 935 shows the verification results of the fixed time verification process for the automatically selected fixed time of Age=2B.
[0152] "Verify selected files" displays the verification results for the files selected by the user (and the confirmation time automatically selected based on them). In other words, "Verify selected files" does not perform verification for files that were not selected (and the confirmation time automatically selected based on them). Therefore, the time required for "Verify selected files" is shorter than the time required for "Verify all files". Therefore, "Verify selected files" is particularly effective in cases where the range of files or confirmation times that may be the subject of trouble (suspected tampering) has been narrowed down in advance.
[0153] In the example shown in Fig. 20, a fixed time of Age=3B exists between a file of Age=15A and a file of Age=16A. In this case, as shown in Fig. 21, the chronological order of the file of Age=15A and the fixed time of Age=3B is proven, and the chronological order of the file of Age=16A and the fixed time of Age=3B is also proven. Thus, according to this embodiment, the order of the files and the fixed times can be verified in more detail.
[0154] <Verify order only> 22 is a diagram showing an example of a UI that is displayed before the start of the verification process when "Verify only the order" is selected. When the button 843 instructing "Verify only the order" is operated, the order of all files (and all the associated confirmation times) whose records are stored in the corresponding evidence chain is verified. On the other hand, the integrity of the files and confirmation times is not verified.
[0155] 23 is a diagram showing an example of a UI in which the verification result is displayed when "Verify sequence only" is selected. As in the case when "Verify all files" or "Verify selected files" is selected (see FIGS. 14 and 18), details of the verification result are displayed in a third box 863 in a graphical format.
[0156] Fig. 24 is a diagram showing an example of the display of details of the verification result in the third box 863 when "Verify sequence only" is selected. Using the same example as Fig. 15, section 941 showing the verification result of the start record, sections 942A-942H showing the verification results of the intermediate records, and section 943 showing the verification result of the end record are displayed in chronological order based on the result of the sequence verification process. However, each section does not display a message such as "Tampering was found" or "No tampering was found."
[0157] As described above, in the first embodiment, the client server 3 is configured to execute a file verification process, a confirmation time verification process, and an order verification process. The file verification process makes it possible to verify the integrity of the file (whether the file has been tampered with). The confirmation time verification process makes it possible to verify the integrity of the confirmation time (whether the confirmation time has been tampered with). The order verification process makes it possible to verify the order of the files and confirmation times in the distributed ledger 6. Thus, according to the first embodiment, it is possible to verify whether the files and confirmation times are appropriately managed.
[0158] The client server 3 is configured so that the user can select one of "verify all files", "verify selected files", and "verify sequence only". This allows the verification requested by the user to be performed at the user's desired timing.
[0159] When "Verify all files" is selected, the integrity of all files and the integrity of all confirmation times are verified. This allows the integrity of files and confirmation times to be thoroughly verified. When "Verify selected files" is selected, the verification targets are limited to some files and / or some confirmation times selected by the user. This allows the verification costs (labor, time, system load, etc.) to be appropriately reduced. When "Verify only order" is selected, the order of files and confirmation times is selectively verified. This allows the order to be efficiently verified when integrity verification is not required.
[0160] [Embodiment 2] In the first embodiment, an example in which one timestamp chain 62 is associated with one evidence chain 61 is described (see FIG. 4). In the second embodiment, an example in which one timestamp chain is associated with multiple evidence chains is described. The configurations of the data management system and client server in the second embodiment are equivalent to the configurations of the data management system 1 and client server 3 in the first embodiment (see FIG. 1 and FIG. 2).
[0161] <Distributed Ledger> 25 is a diagram showing an example of the data structure of the distributed ledger 6 in the second embodiment. In this example, three evidence chains 63X, 63Y, and 63Z and one timestamp chain 64 are associated with each other. Each of the evidence chains 63X, 63Y, and 63Z is similar to the evidence chain 61 (see FIG. 3) described in the first embodiment. Hereinafter, for simplicity, the evidence chains 63X, 63Y, and 63Z will also be referred to as evidence chains X, Y, and Z, respectively.
[0162] In this example, the timestamp chain 64 includes eight records R41 to R48. Each record includes a key (Key), an age (Age), data (Data), a nonce value (Nonce), a digital signature (Sig), a previous record hash value (Prev-RH), and a record hash value (RH) like the records stored in the timestamp chain 62 (see FIG. 3) in the first embodiment. The timestamp chain 64 differs from the timestamp chain 62 in that the terminal hash values of one, two, or three of the three evidence chains X, Y, and Z are stored as terminal hash values (records R41, R43, R45, and R47). The information included in the timestamp chain 64 other than the above is the same as the corresponding information in the timestamp chain 62.
[0163] 26 is a conceptual diagram for explaining the relationship between the records stored in the evidence chains X, Y, and Z and the timestamp chain 64 in the second embodiment. In the second embodiment, an update process for updating the timestamp chain 64 is repeatedly executed. The update process may be executed every time a predetermined period has elapsed. In this example, the update process is executed once a day.
[0164] On the other hand, the evidence chains X, Y, and Z are not necessarily updated every day. Therefore, in the second embodiment, only information regarding the evidence chains X, Y, and Z that have been updated since the last time the update process was executed (i.e., the previous day) is stored in the timestamp chain 64. Below, how the timestamp chain 64 is updated each day will be described with reference to Figures 25 and 26. Note that while Figure 26 illustrates the file hash value (FH), the termination hash value (h), and the timestamp token (TS) stored as data in the record, the previous record hash value and the record hash value are omitted to avoid cluttering the page.
[0165] ≪Day N≫ Assume that only evidence chains X and Z are updated on the Nth day. Evidence chain X stores a new file hash value FHx(N) and a terminal hash value hx(N) of evidence chain X generated based on the file hash value FHx(N). Similarly, evidence chain Z stores a new file hash value FHz(N) and a terminal hash value hz(N) of evidence chain Z generated based on the file hash value FHz(N).
[0166] The client server 3 stores the terminal hash value hx(N) of the evidence chain X on the Nth day and the terminal hash value hz(N) of the evidence chain Z on the Nth day in the terminal record R41 of the timestamp chain 64 at that time. Furthermore, the client server 3 generates a terminal hash value H(N) based on the terminal hash value hx(N) and the terminal hash value hz(N) (as well as other information stored in the terminal record R41 (generation, nonce value, electronic signature, etc.)), and stores the generated terminal hash value H(N) in the record R41 as a record hash value. Note that the terminal hash value H(N) is an example of a "terminal value" according to the present disclosure.
[0167] In addition, the client server 3 obtains a time stamp token TS(N) for the termination hash value H(N) from the time stamp authority 41. The client server 3 stores the time stamp token TS(N), the previous record hash value H(N), and the record hash value H(N+1) in the record R42.
[0168] ≪(N+1)th day≫ Assume that only evidence chains Y and Z are updated on the (N+1)th day. Evidence chain Y stores a new file hash value FHy(N+1) and the terminal hash value hy(N+1) of evidence chain Y generated based on the file hash value FHy(N+1). Evidence chain Z stores a new file hash value FHz(N+1) and the terminal hash value hz(N+1) of evidence chain Z generated based on the file hash value FHz(N+1).
[0169] The client server 3 stores the terminal hash value hy(N+1) of the evidence chain Y on the (N+1)th day and the terminal hash value hz(N+1) of the evidence chain Z on the (N+1)th day in the terminal record R43 of the timestamp chain 64 at that time. Furthermore, the client server 3 generates the terminal hash value H(N+2) of the timestamp chain 64 based on the terminal hash value hy(N+1) and the terminal hash value hz(N+1) (as well as other information stored in the terminal record R43), and stores the generated terminal hash value H(N+2) in the record R43 as a record hash value.
[0170] In addition, the client server 3 obtains a time stamp token TS(N+1) for the termination hash value H(N+2) from the time stamp authority 41. The client server 3 stores the time stamp token TS(N+1), the previous record hash value H(N+2), and the record hash value H(N+3) in the record R44.
[0171] <Day (N+2) and Day (N+3)> Days (N+2) and (N+3) are similar to day (N+1), so detailed description will not be repeated.
[0172] <Function block> The client server 3 (processor 31) in the second embodiment, like the first embodiment, has a chain update unit that updates the timestamp chain 64 by adding a new record to the timestamp chain 64 through transaction processing. The chain update unit in the second embodiment includes a record creation unit that is different from the chain update unit 73 in the first embodiment (see FIG. 8).
[0173] 27 is a functional block diagram of a record creation unit 733A in embodiment 2. The record creation unit 733A creates a record to be added to the timestamp chain 64, for example, every predetermined period (every day in this example). The record creation unit 733A includes a list management unit 771, an end hash acquisition unit 772, an end hash generation unit 773, a timestamp token acquisition unit 774, and an integration unit 775.
[0174] The list management unit 771 manages a list that records which evidence chains have been updated between the previous execution of the update process and the current execution of the update process. Every time any evidence chain is updated, the list management unit 771 adds the updated evidence chain to the list. The list management unit 771 outputs list-based management information to the termination hash acquisition unit 772.
[0175] The terminal hash acquisition unit 772 acquires, as End-RH, the terminal hash value (at least one of hx, hy, and hz) of the evidence chain updated between the previous execution of the update process and the current execution of the update process according to the management information by the list. The terminal hash acquisition unit 772 outputs the terminal hash value of the evidence chain to the terminal hash generation unit 773.
[0176] The end hash generation unit 773 generates the end hash value (RH) of the timestamp chain 64 based on the end hash value (End-RH) of the evidence chain. The end hash generation unit 773 may generate the end hash value of the timestamp chain 64 by hashing the end hash value from the end hash acquisition unit 772. The end hash generation unit 773 outputs the end hash value of the timestamp chain 64 to the timestamp token acquisition unit 774 and the integration unit 775.
[0177] The timestamp token acquisition unit 774 acquires, from the timestamp authority 41, a timestamp token (TS) for the record hash value of the record of the timestamp chain 64 that includes the termination hash value from the termination hash generation unit 773. The timestamp token acquisition unit 723 stores the timestamp token in the database 43 (which may be the storage 36) as the confirmed time (not shown). In addition, the timestamp token acquisition unit 723 outputs the timestamp token to the integration unit 775.
[0178] The integrating unit 775 creates a record by integrating various pieces of information. Specifically, the integrating unit 775 creates a record by integrating the terminal hash value or timestamp token of the timestamp chain 64 with other information (generation (Age), nonce value (Nonce), digital signature (Sig), previous record hash value (Prev-RH)). The integrating unit 775 outputs the record to the updating unit 734 (see FIG. 8).
[0179] <Processing flow> 28 is a flowchart showing an example of a processing procedure for updating the timestamp chain 64 in the second embodiment. In S21, the client server 3 determines whether a predetermined period has passed since the last time the update processing was executed. If the predetermined period has not passed (NO in S21), the client server 3 returns the processing to the main routine. If the predetermined period has passed (YES in S22), the client server 3 advances the processing to S22.
[0180] In S22, the client server 3 determines whether or not there is an updated evidence chain between the last execution of the update process and the current execution of the update process, for example by referring to the above-mentioned list. If there is no updated evidence chain (NO in S22), the client server 3 returns the process to the main routine. If there is an updated evidence chain (YES in S22), the client server 3 advances the process to S23.
[0181] In S23, the client server 3 acquires the terminal hash value of the evidence chain that has been updated between the previous execution of the update process and the current execution of the update process.
[0182] In S24, the client server 3 generates a record hash value (the end hash value at that time) of the timestamp chain 64 based on the end hash value of the evidence chain. Then, the client server 3 creates a first record (R41, R43, R45, and R47 in the examples of FIGS. 25 and 26) including the end hash value of the evidence chain and the end hash value of the timestamp chain 64.
[0183] In S25, the client server 3 obtains from the time stamp authority 41 a time stamp token for the terminal hash value of the time stamp chain 64 (the record hash value of the first record).
[0184] In S26, the client server 3 generates a record hash value based on the time stamp token and other information. Then, the client server 3 creates a second record (R42, R44, R46, and R48 in the examples of FIGS. 25 and 26) including the time stamp token, the previous record hash value (the record hash value of the first record), and the generated record hash value.
[0185] In S27, the client server 3 updates the timestamp chain 64 by adding the two newly created records.
[0186] In the second embodiment, as in the first embodiment, the client server 3 is configured to execute a file verification process, a fixed time verification process, and an order verification process. These verification processes are the same as those in the first embodiment, and therefore detailed descriptions will not be repeated. According to the second embodiment, it is also possible to verify whether the files and fixed times are appropriately managed.
[0187] Furthermore, in the second embodiment, a timestamp token is acquired for evidence chains in which a file (file hash value) has been changed since the last time the update process was executed, while a timestamp token is not acquired for evidence chains in which a file has not been changed. This makes it possible to reduce the cost of acquiring a timestamp token (man-hours, time, system load, etc.) compared to acquiring a timestamp token for all evidence chains, or compared to acquiring a timestamp token every time a file is changed. Therefore, according to the second embodiment, it is possible to efficiently verify whether files and confirmation times are being properly managed.
[0188] In addition, in the second embodiment, the update process is executed periodically (once a day in the example shown in FIG. 26). This reduces the verification cost compared to when the update process is executed every time a file is changed. Also, compared to when the update process is executed irregularly, it allows for stable verification over the long term.
[0189] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present disclosure is defined by the claims, not by the description of the embodiments described above, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]
[0190] 1 data management system, 2 platform server, 3, 3A to 3D client server, 31 processor, 32 memory, 33 communication device, 34 input device, 35 output device, 36 storage, 37 bus, 41, 41A to 41D time stamp authority, 42, 42A to 42D user terminal, 43, 43A to 43D database, 51 private key, 52 public key, 6 distributed ledger, 61 evidence chain, 62 time stamp chain, 71 file registration unit, 711 file hash generation unit, 712 nonce generation unit, 713 electronic signature unit, 714 transaction data generation unit, 715 transaction data transmission unit, 72 confirmation time assignment unit, 721 terminal hash acquisition unit, 722 nonce generation unit, 723 time stamp token acquisition unit, 724 electronic signature unit, 725 transaction data generation unit, 726 transaction data transmission unit, 73 Chain update unit, 731 transaction data acquisition unit, 732 signature verification unit, 733, 733A record creation unit, 734 update unit, 735 notification unit, 74 file verification unit, 741 file acquisition unit, 742 file hash acquisition unit, 743 verification processing unit, 744 output unit, 75 confirmation time verification unit, 751 confirmation time acquisition unit, 752 time stamp token acquisition unit, 753 verification processing unit, 754 output unit, 76 order verification unit, 761 terminal hash acquisition unit, 762 previous record hash acquisition unit, 763 record hash acquisition unit, 764 verification processing unit, 765 output unit, 771 list management unit, 772 terminal hash acquisition unit, 773 terminal hash generation unit, 774 time stamp token acquisition unit, 775 integration unit.
Claims
1. A storage device having a distributed ledger stored therein; The distributed ledger comprises: a plurality of evidence chains, each of which is stored in chronological order, the chains including at least one hash value generated from a file; a timestamp chain in which at least one timestamp token for each attesting to a fixed time is stored in chronological order; and a processor that repeatedly executes an update process to update the timestamp chain; The update process includes: identifying at least one evidence chain whose hash value has changed since the last execution of the update process due to a change in the file from among the plurality of evidence chains; The data management apparatus includes a process for obtaining a timestamp token for a terminal value generated based on a terminal hash value of each of the at least one evidence chains.
2. The data management apparatus according to claim 1 , wherein the processor, when generating the terminal value, does not use the terminal hash value that has not been changed since the update process was last executed.
3. The data management device according to claim 1 , wherein the processor executes the update process every time a predetermined period elapses.
4. the processor is configured to execute first to third verification processes; the first verification process is a process of verifying whether or not at least one file generated from the at least one hash value has been tampered with; the second verification process is a process of verifying whether or not at least one confirmed time certified by the at least one time stamp token has been tampered with; 4. The data management apparatus according to claim 1, wherein the third verification process is a process for verifying an order of the at least one file and the at least one fixed time.
5. 5. The data management device according to claim 4, wherein the processor executes at least one of the first verification process to the third verification process in accordance with a user's operation on an input device.
6. The data management device of claim 5, wherein when a first user operation is performed on the input device, the processor executes the first verification process to the third verification process on a portion of the at least one file and the at least one confirmed time selected by the user.
7. The data management device of claim 6, wherein when two or more files are selected by the user, the processor verifies at least the oldest file, the confirmation time immediately before the oldest file, the newest file, and the confirmation time immediately after the newest file.
8. 8. The data management apparatus according to claim 7, wherein, when another fixed time exists between the two or more files, the processor further subjects the other fixed time to verification.
9. The data management device of claim 5, wherein the processor executes the first verification process to the third verification process for all of the at least one file and the at least one confirmed time when a second user operation is performed on the input device.
10. The data management device according to claim 5 , wherein, when a third user operation is performed on the input device, the processor executes the third verification process while not executing the first verification process and the second verification process.
11. A data management method using a distributed ledger, comprising: The distributed ledger comprises: a plurality of evidence chains, each of which is stored in chronological order, the chains including at least one hash value generated from a file; a timestamp chain in which at least one timestamp token for each attesting to a fixed time is stored in chronological order; The data management method includes: identifying at least one evidence chain whose hash value has been changed due to a change in the file since a previous execution of an update process that updates the timestamp chain from among the plurality of evidence chains; and obtaining a timestamp token for a terminal value generated based on a terminal hash value of each of the at least one evidence chains.
Citation Information
Patent Citations
Time stamp system, time stamp requesting device, time stamp verifying device, and computer program
JP2005210479A
Time certification apparatus, and program
JP2007274571A
Electronic evidence trust system
JP2022020595A
Method and timer for providing security-protected time information
US20200021443A1
Tamper-detectable system
JP6694204B1
