Verification system and verification method for byzantine failure detection

The Validator system addresses the latency issues in Byzantine fault detection by using asynchronous detection methods, enhancing transaction throughput and maintaining system integrity through post-execution verification and serializability checks, thus improving the operational efficiency of distributed database systems.

WO2024177014A1PCT designated stage expired Publication Date: 2024-08-29SCALAR INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/005805
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-20
Filing Date
2024-02-19
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Current Byzantine fault detection techniques require synchronous consensus processing between Ledger and Auditor systems, leading to high latency and reduced transaction throughput in database systems, especially when dealing with malicious attacks that necessitate operation across multiple management domains.

Method used

The Validator system employs asynchronous Byzantine fault detection through a Logging phase and Validation phase, where the Validator client records transaction requests and results, and later verifies the execution by re-executing transactions, using Multi-Version Serialization Graph (MVSG) to ensure serializability without requiring synchronous consensus processing.

Benefits of technology

This approach improves transaction throughput and reduces latency by allowing post-mortem verification of Byzantine failures, ensuring strict serializability and liveness while maintaining scalability and fault tolerance in distributed database systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024005805_29082024_PF_FP_ABST
    Figure JP2024005805_29082024_PF_FP_ABST
Patent Text Reader

Abstract

After a transaction is executed by a first computer system, this validation system performs validation relating to the transaction. More specifically, the validation system stores, in a second computer system, transaction management data for each transaction executed by the first computer system. When a transaction has been executed in response to a transaction request, the first computer system returns a result that includes proof relating to the execution of the transaction. For each transaction, the transaction management data includes data in the transaction request and also includes data that is obtained from the result of the transaction and that has proof of the transaction. The validation system identifies the transaction management data of a transaction to be validated from the second computer system and performs validation on the basis of the identified transaction management data.
Need to check novelty before this filing date? Find Prior Art

Description

Verification system and method for Byzantine fault detection

[0001] The present invention generally relates to verification for Byzantine fault detection.

[0002] In recent years, inspection fraud and falsification of inspection data have become widespread, particularly in the manufacturing industry both domestically and internationally, and have become a social problem. Cyberattacks against companies and government agencies have also been increasing. To combat these malicious attacks, Byzantine Fault Tolerance (BFT) and Byzantine Fault Detection (BFD) technologies have been widely researched.

[0003] Byzantine fault shielding techniques are also applied to database systems, enabling transaction processing while maintaining atomicity, consistency, and independence. To shield Byzantine faults using these techniques, multiple database replicas are required. If the number of allowable faulty replicas is f, then at least 3f + 1 replicas are required. Because malicious attacks can generally spread to replicas within the same administrative domain, these multiple replicas must each be operated in a separate administrative domain. Therefore, to shield Byzantine faults, a database system that is often operated by a single organization must be operated by at least four organizations with different administrative authorities, imposing a significant administrative burden. Here, "administrative domain" refers to a collection of nodes or networks operated under a single organization or administrative authority.

[0004] Byzantine fault detection technology is one approach to responding to malicious attacks while reducing this burden. Because these detection technologies only detect Byzantine faults, they cannot continue operations like shielding technologies, but they can be used as long as there are f+1 replicas, where f is the number of fault replicas. In other words, Byzantine faults can be detected in at least two management domains. For example, a known Byzantine fault detection technology is disclosed in Patent Literature 1, which synchronously detects Byzantine faults using two database replicas in two components called Ledger and Auditor.

[0005] Patent No. 7152828

[0006] However, if a transaction execution requires synchronous consensus processing (agreement formation) between a first computer system (e.g., Ledger) and a verification system (e.g., Auditor), latency increases and transaction throughput decreases.

[0007] After a transaction is executed on the first computer system, a verification system performs verification on the transaction.

[0008] Specifically, the verification system stores transaction management data for each transaction executed on the first computer system in the second computer system. The first computer system is configured to return a transaction result when executing a transaction in response to a transaction request, the transaction result including a proof of execution of the transaction. For each transaction, the transaction management data includes data contained in the transaction request for that transaction and data obtained from the transaction result for that transaction, the data including the proof of the transaction. In response to the verification request, the verification system identifies transaction management data for the transaction to be verified from the second computer system and performs verification based on the identified transaction management data.

[0009] Improved latency and increased transaction throughput.

[0010] 1 shows an example of the configuration of the entire system including a validator system according to a second embodiment. FIG. 1 shows an example of the configuration of a validator database. FIG. 2 shows an example of the configuration of a ledger database. FIG. 3 shows an example of the configuration of a transaction log table of a validator database. FIG. 4 shows an example of the configuration of a record table of a validator database. FIG. 5 shows an example of the configuration of a time management table of a validator database. FIG. 6 shows an example of the configuration of a transaction log table of a ledger database. FIG. 7 shows an example of the configuration of a record table of a ledger database. FIG. 8 shows an example of the processing flow relating to a validator program among the processing flows relating to transaction execution. FIG. 9 shows an example of the processing flow relating to a ledger server among the processing flows relating to transaction execution. FIG. 10 shows an example of the processing flow of a verification processing. FIG. 11 shows an example of the processing flow of a state derivation processing. FIG. 12 shows an example of the processing flow of a graph creation processing. FIG. 13 shows an example of the processing flow of a conflict confirmation processing. FIG. 14 shows an example of the processing flow of a visibility confirmation processing. FIG. 15 shows an example of the processing flow of a visibility time update processing. FIG. 16 shows an example of the visibility end time of version "0" and the visibility start time of version "1". FIG. 17 shows an example of updating the visibility end time of version "0". 1 shows an example of updating the visibility start time of version "1". 2 shows an example of the configuration of a computer system. 3 shows an example of the configuration of an entire system including a validator system according to a third embodiment. 4 shows an example of the configuration of an entire system including a validator system according to a first embodiment. 5 shows Algorithm 1 (processing flow of the logging phase). 6 shows Algorithm 2 (processing flow of the validation phase).

[0011] In the following description, an "interface device" includes one or more interfaces, which may be one or more homogeneous communication interface devices (e.g., one or more NICs (Network Interface Cards)) or two or more heterogeneous communication interface devices (e.g., a NIC and an HBA (Host Bus Adapter)).

[0012] In the following description, a "storage device" includes one or more memories. At least one memory in the storage device may be a volatile memory. The storage device is mainly used during processing by the processor. In addition to the memory, the storage device may also include one or more non-volatile storage devices (for example, a hard disk drive (HDD) or a solid state drive (SSD)).

[0013] In the following description, the term "processor" includes one or more processors. At least one processor is typically a microprocessor such as a CPU (Central Processing Unit). Each of the one or more processors may be a single-core or multi-core processor. The processor may include a hardware circuit that performs part or all of the processing.

[0014] In the following description, a process may be described using a "program" as the subject. However, because a program is executed by a processor to perform a predetermined process using a storage device (e.g., a memory) and / or an interface device (e.g., a communication port), the subject of the process may also be the processor. A process described using a program as the subject may also be a process performed by a processor or a device having the processor. The processor may also include a hardware circuit (e.g., an FPGA (Field-Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit)) that performs part or all of the process. A program may be installed in a device such as a computer from a program source. The program source may be, for example, a program distribution server or a computer-readable recording medium (e.g., a non-transitory recording medium). In the following description, two or more programs may be realized as a single program, or one program may be realized as two or more programs.

[0015] In the following description, processing may be described using a "program" as the subject; however, since a program is executed by a processor to perform a predetermined process using a storage device and / or an interface device, etc., as appropriate, the subject of the process may also be the processor (or a device such as a controller having the processor). A program may be installed into a device such as a computer from a program source. The program source may be, for example, a program distribution server or a computer-readable (e.g., non-transitory) recording medium. In the following description, two or more programs may be realized as one program, or one program may be realized as two or more programs. A function realized by executing an "xxx program" may also be referred to as an "xxx unit."

[0016] In the following description, when elements of the same type are described without distinction, common reference symbols are used, and when elements of the same type are described with distinction, reference symbols are used.

[0017] In the following description, a "record" or an "entry" is a logical block of electronic data (for example, an object) as seen from a program such as an application program.

[0018] In the following embodiments, a "Byzantine fault" may be any fault, including a malicious internal attack such as tampering.

[0019] First, the Byzantine fault concealment technology and the Byzantine fault detection technology will be described.

[0020] Byzantine fault concealment techniques have been widely studied in the context of State Machine Replication (SMR) to conceal any faults, such as malicious attacks like data tampering. In this specification, SMR-based Byzantine fault concealment techniques are classified as BFT SMR. BFT SMR replicates requests from clients among multiple replicas to tolerate faulty replicas. If the number of faulty replicas to be tolerated is f, then at least 3f+1 replicas are required. In BFT SMR, requests from clients are typically executed sequentially to obtain the same state across replicas.

[0021] Research is also being conducted to extend BFT SMR for database systems. In this specification, these are classified as BFT DBs. Byzantium is one of the BFT DBs that applies Byzantine fault concealment technology to the database, enabling multiple transactions to be executed in ACID and parallel. Byzantium uses PBFT for replication, so it requires 3f+1 replicas. Basil broadcasts each transaction to multiple replicas, allowing them to independently decide and vote on whether to commit or abort. The client then collects the votes and makes the final decision based on a quorum. Basil requires 5f+1 replicas to limit interactions with replicas to a single round-trip communication consisting of sending the transaction, executing it, and receiving the result.

[0022] Byzantine fault detection technology is a technology for dealing with Byzantine faults that takes a different approach from BFT SMR and BFT DB. Byzantine fault detection (BFD) requires only f+1 replicas to detect f faulty replicas, but it cannot continue operation like shielding technology. PeerReview, a pioneer in BFD research, creates a totally ordered execution log linked by a hash chain on the primary node and verifies that the state between replicas is the same by sequentially re-executing it on a secondary node called a witness. Due to its similar characteristics to SMR, PeerReview is classified as BFD SMR. PeerReview can also be applied to database systems, but it has the issue that sequential re-execution of logs on secondary nodes hinders parallel execution of transactions.

[0023] A technology disclosed in Patent Literature 1 is known that synchronously detects Byzantine failures using two database replicas owned by two components called Ledger and Auditor. Here, "synchronously" means that any inconsistencies between the two replicas are detected immediately during transaction execution. In contrast, the Validator according to this embodiment (hereinafter simply referred to as "Validator" in the description of this embodiment) performs asynchronous Byzantine failure detection as a trade-off for abandoning synchronous Byzantine failure detection through interaction between the Ledger and Auditor, thereby improving transaction throughput and latency.

[0024] The flow of synchronous Byzantine failure detection is as follows: 1) The Auditor orders transaction requests from clients based on whether or not there are conflicts (Ordering phase). 2) The Ledger executes and commits transactions in the determined order (Commit phase). 3) The Auditor verifies the transaction execution results and execution order of the Ledger (Validation phase).

[0025] This three-phase protocol can immediately detect if any replica executes a transaction that violates strict serializability or causes a Byzantine failure such as data tampering. However, when executing a transaction, the Ledger and Auditor must synchronously reach consensus in the Ordering phase and the Validation phase, which poses a problem of high latency.

[0026] The Validator assumes that a node that has experienced a Byzantine failure can behave arbitrarily, and that Byzantine failures can propagate between nodes in the same management domain (if the management domains are different, Byzantine failures do not propagate and there is no collusion). The required number of replicas (number of management domains) is two, but it can be more than two.

[0027] The criteria for safety and liveness guaranteed by the Validator may be as follows. Safety may mean that the database system guarantees strict serializability, and the following system properties may be provided depending on the number of faulty replicas. 1) When there are no faulty replicas: When both replicas are not faulty, the Validator guarantees safety and liveness. 2) When there is one faulty replica: When one of the replicas is faulty, the Validator guarantees safety. That is, a normal client asynchronously detects a Byzantine failure that occurs in the database system. For example, if the database system executes a transaction according to a schedule that violates strict serializability, a normal client can detect it retroactively. 3) When there are two faulty replicas: When both replicas are faulty, the Validator does not guarantee safety or liveness. However, unless administrative domains collude, the likelihood of two replicas becoming identical is extremely low, so in many cases a malfunction (e.g., a state mismatch such as tampering) can be detected by a healthy client.

[0028] FIG. 22 shows an example of the overall configuration of a system including the validator system according to the first embodiment.

[0029] The Validator system consists of two components: a Validator and a Ledger. The former, the Validator, consists of a Validator client and a Validator database. In addition to acting as a client to access the Ledger server, the Validator client provides functionality for asynchronous Byzantine failure detection, such as storing the contents of transaction requests and execution results in the Validator database. The latter, the Ledger, executes and commits transactions in response to requests from clients.

[0030] The Validator and Ledger each manage database replicas in separate management domains. Each replica holds the data read and written by a transaction, as well as a deterministic program that defines the logic behind that read and write. A client requests the Ledger to execute a transaction by specifying the program's identifier and necessary parameters. Each replica can be configured as a single node, or multiple nodes to improve performance and crash tolerance.

[0031] The basic idea behind the Validator's asynchronous Byzantine failure detection protocol is that, instead of determining in advance the order of transactions with guaranteed strict serializability as in conventional synchronous protocols, the Validator verifies the correctness of transactions committed by the Ledger afterward. To achieve this post-mortem verification, the proposed protocol consists of a Logging phase and a Validation phase. In the Logging phase, the Validator client records the request details (such as program identifiers and arguments) and the time before sending a transaction request to the Ledger. Furthermore, upon receiving the transaction execution results from the Ledger, the Validator client records the details and time. In the Validation phase, the Validator client re-executes the transaction based on the transaction request details recorded in the Logging phase and verifies whether the execution results are identical to those when the Ledger committed them. Furthermore, based on the execution time and read / write targets, concurrent and conflicting transactions are identified, and MVSG (Multi-Version Serialization Graph) is used to verify whether the execution was Strict Serializable. MVSG is a directed graph that includes edges related to version order in addition to the Reads-From relationships between transactions, and determines whether a given schedule is serializable by confirming that the graph does not contain cycles. Unlike serializability verification in a black-box environment, serializability verification is possible in polynomial time because it is assumed that version order can be obtained. Specifically, if V is the number of nodes (here, the number of transactions) and E is the number of edges established based on conflict relationships, serializability verification is possible in O(V + E). Each phase is described in detail below.

[0032] FIG. 23 shows Algorithm 1 (processing flow of the logging phase).

[0033] In the Logging phase, first, the client records the transaction request received from the application program in the Validator database along with the time of acquisition (start time) (Line 1-2). A transaction request consists of <n, f, a, s>, where n is a unique transaction ID (e.g., UUID) for identifying the request, f is an identifier of the program (transaction execution logic), a is an argument of the program, and s is a key shared between the Validator client and the Ledger and a message authentication code generated from n, f, and a.

[0034] Next, the client sends a request to Ledger to execute the transaction (Line 4). Transaction processing in Ledger is similar to the Commit phase of conventional protocols, so details will be omitted. However, Ledger atomically reads and writes database records according to the contents described in the program and records the state (commit or abort) for each transaction ID. Ledger also creates and responds to the client with the results of program execution, as well as input and output information for each record read or written during transaction execution, called a proof. The proof consists of <k, v, n, d, s>, where k is the primary key of the record, v is the version number of the record, n is the transaction ID, d is the set of the primary key and version number of the record input to the transaction, and s is a message authentication code generated from k, v, n, and d.

[0035] After receiving the execution results and proof from the Ledger, the client records them along with the time of acquisition (end time) (Line 5-6). More specifically, a read-write set for the transaction is created from the proof, and then saved in association with the transaction request recorded at the start. Here, the read-write set is a collection of primary keys and version numbers of records read and written by the transaction, and does not include the record values ​​themselves. The read-write set can be created from k, v, and d of the proof.

[0036] FIG. 24 shows Algorithm 2 (processing flow of the validation phase).

[0037] Validation is performed on a record version basis or a transaction basis. When performing validation on a record version basis, a proof is obtained by specifying the primary key and version number, and validation is performed after identifying the transaction that wrote that version (Line 2-3). When performing validation on a transaction basis, the transaction ID is known in advance, so Line 3 and subsequent lines are executed as is.

[0038] The validation process in the validation phase performs two checks: an input / output check (line 3-6) to verify whether the input / output of the transaction in question was correct, and a serializability check (line 7-9) to verify whether a set of transactions that are concurrent with the transaction in question and that have conflicts were executed on the correct schedule.

[0039] In the input / output check, the proof for each record stored in the validator database is obtained for all versions of the records written by the transaction, and the input / output is verified (lines 5-6). The main process of verification is performed by the deriveStates() function. First, the set of input records used to output the record is obtained (lines 11-14). The primary key and version number of the input record are obtained from each proof. The transaction ID also obtained from the proof is used to obtain the program executed in response to the transaction request and its arguments, and the program is then re-executed (lines 15-17). If the state obtained as a result of the re-execution, i.e., the output record, does not match the Ledger side, a verification error is sent; if they match, they are written to the validator database (lines 18-21).

[0040] The main processes in the serializability check are the MVSG creation process (lines 22-36) performed by the createMVSG() function and the process of checking whether the created MVSG contains any cycles (lines 8-9). The MVSG is created by searching for candidate transactions that are concurrent with the target transaction (line 31). If these candidate transactions are in a conflicting relationship, an edge is added from the target transaction to the candidate transaction (lines 32-35). Concurrent candidate transactions are searched for based on the start and end times associated with each transaction request and recorded in the logging phase. Whether or not a transaction is in a conflicting relationship is also determined based on the records read and written by the transaction and their versions using the similarly recorded read-write set (line 34). Even if a transaction is not directly concurrent and conflicting with the original transaction being verified, a transitively related transaction may violate serializability. Therefore, concurrent and conflicting transactions are recursively checked and added to the graph (Line 36).

[0041] Creating an MVSG as described above and checking for cycles makes it possible to verify that transaction execution on the Ledger side is serializable, but it cannot detect linearizability violations such as time travel anomalies. Therefore, as exemplified in the literature, it is possible to commit a transaction on a schedule that does not violate serializability while referencing an unreasonably old version. Strict serializability can be guaranteed by determining the time during which each version can be read (called the visibility time) based on the transaction start and end times recorded on the client side, and then checking whether a transaction that reads a certain version is consistent with the visibility time of that version.

[0042] Due to various reasons such as client or Ledger failures or network failures, even if a transaction request is sent, a response may not be received and the logging phase may not end normally. This section briefly describes the failure recovery process for such transactions.

[0043] The failure recovery process first identifies undetermined transactions whose end times have not been stamped. For each undetermined transaction, the Ledger is queried for its status. If the query results in a confirmed commit or abort, the end time is stamped with the current time. If the transaction has been committed, the read-write set is also obtained and saved, linked to the record of the transaction request. If the query results in an unknown status, the transaction may still be in progress, so the determination is postponed. If the status remains unknown even after a retry after a certain period of time, only the end time is stamped, as in the case of an aborted transaction. If retries are performed taking into account the timeout of transaction processing in the Ledger (until either commit or abort), the validator will not make an incorrect decision. Even if the Ledger improperly postpones the commit beyond the timeout, inconsistencies can be detected from the records left on the validator side.

[0044] Ledger transaction processing in the asynchronous Byzantine failure detection protocol is similar to the Commit phase of conventional protocols, and conventional Ledger implementations can be used as is. Therefore, transactions in the Validator system are executed in a one-shot model using deterministic programs called contracts. The Ledger database is abstracted in the key-value format of a multidimensional map, and can be read and written in ACID via contracts.

[0045] Ledger abstracts the data access layer to enable each function to be implemented independently of the underlying database system. A highly scalable distributed transaction manager may be used as the transaction manager that implements the abstracted data access layer. ACID transactions can be implemented on a variety of databases, including NoSQL databases that do not have ACID transaction functionality. By using such a transaction manager, Ledger databases can be used with not only ACID databases but also non-ACID databases depending on performance, cost, and scalability requirements.

[0046] The Validator implements the Logging phase and Validation phase described above. The Validator may be implemented as a library that accesses the Ledger. Applications may use a client SDK for the Validator to register authentication keys, register contracts, and execute them. Access to the Validator database may be abstracted in the same way as the Ledger, so that various databases can be selected as subordinate databases by using the transaction manager described above.

[0047] One of the important pieces of information for the proposed protocol to asynchronously verify serializability is the start and end times of transactions acquired in the logging phase. The validator uses the Lamport logical clock (an example of a logical clock) as the start and end times.

[0048] In this embodiment, TrueTime or Timestamp Oracle is not used as the start and end times for the following reasons. First, physical time such as TrueTime is not used because such accurate time management services are not necessarily available in all systems. While it is possible to provide TrueTime using a general-purpose NTP server, its operation is not necessarily easy. Furthermore, a centralized Timestamp Oracle server has the problem of being prone to becoming a single point of failure. Even if multiple servers are used, it is not easy to guarantee monotonically increasing time while maintaining performance scalability. Therefore, a Lamport logical clock is used so that clients can stamp time in a distributed and scalable manner.

[0049] In a validator, multiple clients (e.g., multiple threads) issue transaction requests. The number of clients may increase or decrease depending on requirements such as the required performance. For this reason, it is not realistic to take an approach in which clients send and receive clocks, as in Lamprot's logical clock algorithm. Therefore, in a validator, this sending and receiving process is substituted by read and write operations on a clock table in a validator database shared among clients.

[0050] Specifically, multiple counter records corresponding to the local counters used by each client are prepared in the clock table. The number of counters to be prepared will be described later. The client scans the clock table at the start and end of a transaction, and uses the value obtained by adding 1 to the maximum value of the counter as the logical clock at that time. The clock table record is also updated to the new logical clock value.

[0051] Note that, for the purpose of identifying all concurrent transactions, the scan and update of the clock table by each client does not need to be executed as a transaction; scanning an old clock does not pose any problems. This is because if two transactions are actually concurrent, the clock update accompanying the start (or end) of one will always be observed by the scan accompanying the end (or start) of the other, resulting in overlapping start and end times. The actual start time of a transaction T_i is after the clock update of T_i, and the scan accompanying the end of another transaction T_j occurs after the commit of T_j. Therefore, if T_i and T_j are concurrent, the scan of T_j will always observe the clock update of T_i. Obtaining an old clock may cause transactions that are not actually concurrent to be timestamped as if they were concurrent, but this does not affect the results of the serializability check.

[0052] Since scanning and updating the logical clock is a relatively heavy process that involves accessing the database, the number of counter records in the clock table and the update frequency thereof are important tuning parameters.

[0053] The number of counter records in the clock table can be reduced by sharing them among several client threads. While this reduces the number of records to be scanned, it can also reduce performance due to contention for updating the logical clock.

[0054] Additionally, when obtaining the time, it is possible to simply scan the counter record value and omit periodic updates. In this case, the number of transactions that appear to be concurrent will increase. This has two drawbacks. First, the number of candidate transactions will increase when extracting concurrent transactions through serializability checks. However, if there are no conflicts, the graph itself will not become larger. Second, the visibility time of versions that can be checked later by the validator will increase, increasing the likelihood that an older version will be read illegally on the Ledger side without being discovered. However, time management by the validator and transaction management by the Ledger are independent, i.e., they are processes performed in different management domains, and it is believed that it would be difficult for the Ledger to exploit the progress of the logical clock and commit fraud at a convenient opportunity.

[0055] In the first embodiment, an overview of a validator system capable of asynchronous Byzantine fault detection was described. The validator system does not detect faults by synchronously performing consensus processing during transaction execution, but rather asynchronously detects Byzantine faults by performing verification processing after transaction execution. The validator system improves transaction throughput and latency compared to conventional systems.

[0056] According to the description of the first embodiment, for example, the following can be derived: The following description may include supplementary explanations and explanations of modifications to the description of the first embodiment.

[0057] A client program that relays transaction requests from an application program to a database server program includes a recording module, an input / output verification module, and a serializability verification module. The recording module records transaction information. The transaction information consists of a transaction request identifier, processing details, arguments, the result of processing the transaction request by the database server program, output records, identifiers and version numbers of input / output records, and the start and end times of the transaction request. The input / output verification module receives a verification request including the transaction request identifier, re-executes the transaction based on the processing details, arguments, and input records of the transaction request recorded by the recording module, and verifies whether the result of the transaction when executed in the database server program is the same as the output records. The serializability verification module enumerates transactions that were executed in parallel with the transaction based on the start and end times of the transaction request, creates a serialization graph representing the conflicts between transactions based on the identifiers and version numbers of the input / output records of the listed transactions, and verifies that the listed transactions are serializable based on the serialization graph.

[0058] The serializability verification module may further calculate the time at which the record can be read based on the version number of the input / output record of the transaction and the start and end times, and may verify whether the transactions being executed in parallel are consistent with the real-time order based on the readable time.

[0059] Furthermore, if the entity of the input record does not exist, the input / output verification module may identify the transaction that output the record and recursively re-execute the transaction.

[0060] The start and end times may be a logical clock shared by multiple client programs.

[0061] The recording module may increase or decrease the frequency of obtaining and updating the logical clock based on transaction request load.

[0062] The client program may include a failure recovery module that searches for and acquires transactions whose end times are not recorded, queries the database server program about the status of those transactions, and acquires and / or records the missing information. [Second Embodiment]

[0063] A second embodiment will be described. The description of the second embodiment includes both commonalities and differences with the first embodiment. In the description of the first embodiment, a solution to the problems of the three-phase protocol was explained, but the validator system according to the first embodiment as well as the validator systems according to the second and third embodiments can also be applied to systems to which a protocol other than the three-phase protocol is applied.

[0064] FIG. 1 shows an example of the overall configuration of a system including a validator system according to the second embodiment.

[0065] There are one or more clients 100, a validator database system 170, and a ledger system 180. A portion of each client 100 and the validator database system 170 constitutes the validator system 150.

[0066] Each client 100 communicates with a validator database system 170 and a ledger system 180. This communication is typically performed via a communication network (not shown). The communication network through which each client 100 communicates with the validator database system 170 and the communication network through which each client 100 communicates with the ledger system 180 may be physically or logically separate.

[0067] The client 100 executes a plurality of programs, including an application 101 and a validator program 160.

[0068] The application 101 is a computer program for an application such as account management or online shopping. A transaction request is issued from the application 101 to the Ledger system 180 via the client function 161, and the Ledger server 181 of the Ledger system 180 executes the transaction in response to the transaction request.

[0069] The validator program 160 is part of the validator system 150. The validator program 160 has a client function 161, a transaction log function 162, and a transaction verification function 163. The client function 161 is a function for communicating with the Ledger system 180. The transaction log function 162 and the transaction verification function 163 are functions for communicating with the validator database system 170. The transaction log function 162 records a transaction log and a proof in the validator database 172. The transaction verification function 163 verifies whether a transaction has been correctly executed in the Ledger system 180.

[0070] The validator database system 170 includes a validator server 171 and a validator database 172. The validator server 171 inputs and outputs transaction logs and proofs to the validator database 172. The validator server 171 may exist for each client 100, or may be common to multiple clients 100. The validator database 172 includes data such as transaction logs and proofs. Specifically, for example, as shown in FIG. 2 , the validator database 172 includes a transaction log table 201V, a record table 202V, and a time management table 203.

[0071] Ledger system 180 includes Ledger server 181 and Ledger database 182. Ledger server 181 inputs and outputs data to Ledger database 182 in response to a transaction request from client 100. Ledger database 182 includes data that is input and output in response to a transaction request from client 100. Specifically, for example, as shown in FIG. 3 , Ledger database 182 includes a transaction log table 201L and a record table 202L.

[0072] The management domains 50 include, for example, a management domain 50A having clients 100, a management domain 50B having a validator database system 170, and a management domain 50C having a ledger system 180. It is desirable that the management domain 50C having the ledger system 180 does not include elements of the validator system 150. Elements of the clients 100 in the validator system 150 may be included in the management domain 50B having the validator database system 170 instead of in the management domain 50A. One management domain 50A may include all clients 100, or multiple management domains 50A may be prepared, with each management domain 50A including one or more clients 100. The management domain 50B corresponds to the validator management domain illustrated in FIG. 22 , and the management domain 50C corresponds to the ledger management domain illustrated in FIG. 22 .

[0073] Each of the client 100, the validator database system 170, and the ledger system 180 may be a physical computer system (one or more physical computers) or a logical computer system based on a physical computer system (e.g., a virtual machine or a cloud computing service). Each of the validator server 171 and the ledger server 181 may be a function realized by executing a program, or may be a physical or logical computer system. An example of a computer system is as shown in FIG. 20. That is, the computer system 2000 has an interface device 2001, a persistent storage device 2002, a memory 2003, and a processor 2004 connected thereto.

[0074] The Ledger server 181 manages one or more contracts (e.g., one or more contracts in the management domain 50C) and executes the designated contract. A "contract" is processing logic (e.g., a computer program) that can be executed in the processing flow of transaction execution. The Ledger server 181 may have a contract management table that contains information about each of the one or more contracts. The Ledger server 181 may also have an authentication management table required for authenticating the client 100 or others.

[0075] The validator server 171 also manages one or more contracts (e.g., one or more contracts in management domain 50B) that are the same as one or more contracts that can be executed by the Ledger server 181. The validator server 171 can execute the same contracts as those executed by the Ledger server 181, and therefore can verify them. The validator server 171 may have a contract management table that has information about each of the one or more contracts. The validator server 171 may also have an authentication management table necessary for authenticating the client 100 or others.

[0076] The following describes the validator database 172 and the Ledger database 182. In the following description, an "entry" refers to a row in a table, and a "record" refers to data that contains data input to or output from the Ledger database 182 during transaction execution. Specifically, a record is data that represents the state of an object (e.g., an element specified by a request from the application 101, such as an account), and is, for example, a key-value pair.

[0077] FIG. 4 shows an example of the configuration of the transaction log table 201V of the validator database 172.

[0078] The transaction log table 201V records transaction logs in order to re-execute transactions during verification. That is, verification is performed using the recorded transaction logs.

[0079] The transaction log table 201V has an entry for each transaction. The entry includes data such as a TxID 401V, a PID 402V, an argument group 403V, ​​a signature 404V, a start time 405V, an end time 406V, an RW set 407V, an execution result 408V, and a status 409V.

[0080] The TxID 401V represents a transaction ID (e.g., a UUID). The CID 402V represents a contract ID. The argument set 403V represents one or more arguments of the contract. The signature 404V represents a signature (e.g., a signature generated using the TxID, CID, and argument set) for verifying that the transaction request has not been tampered with.

[0081] The start time 405V indicates the start time of the transaction. The end time 406V indicates the end time of the transaction. The "time" may be expressed in units of year, month, day, hour, minute, and second, but as in the first embodiment, it is the time obtained from the time management table 203 as a logical clock.

[0082] The RW set 407V is a set of records read and written during the execution of a transaction, and specifically includes a pair of the record ID and version of the read record, and a pair of the record ID and version of the written record during the execution of the transaction. For example, in the entry for TxID 401V "1," "read:x0" means that a record with record ID "x" and version "0" was read, and "write:x1" means that a record with record ID "x" and version "1" was written. Note that the record ID corresponds to the target ID. Multiple records with the same record ID may exist in the Ledger database 182. A pair of record ID and version uniquely represents a record in the record table 202L of the Ledger database 182.

[0083] Execution result 408V represents a predetermined type of value included in the transaction result received by client 100 (client function 161) from Ledger system 180 during transaction execution. The "predetermined type of value" may include, for example, the state (e.g., latest balance) of the target (e.g., account) after transaction execution as shown in the figure, and may also include a pair of a record ID and a version.

[0084] The status 409V indicates the status of a transaction. The "transaction status" may be, for example, a transaction start or end status for transaction execution, or a transaction verification start or end status for transaction verification. For example, the transaction verification function 163 can identify from the status 409V column which transactions have been verified and which transaction verification should start from, and perform verification using the RW set 407V and execution result 408V of the identified transaction.

[0085] When the client function 161 receives a request from the application 101 and transaction execution is started, data 401V to 405V are recorded by the transaction log function 162. When the client function 161 receives the transaction result in the transaction execution, data 406V to 407V are recorded by the transaction log function 162.

[0086] FIG. 5 shows an example of the structure of a record table 202V in the validator database 172.

[0087] Record table 202V is a table equivalent to a replica of record table 202L in Ledger database 182. Record table 202V has an entry for each pair of record ID and version. The entry includes data such as record ID 501V, version 502V, input 503V, output 504V, TxID 505V, hash value 506V, signature 507V, visible start time 508V, and visible end time 509V. Focus is placed on one record (referred to as the "record of interest" in the description of FIG. 5).

[0088] The record ID 501V indicates the record ID (an example of a key) of the target record. The version 502V of the target record indicates the version.

[0089] The input 503V indicates the record ID and version of the record read for writing the target record in the transaction execution.

[0090] The output 504V is output data (an example of a value) related to the record of interest that was written during transaction execution, and includes, for example, a pair of the record ID and version of the record of interest, and the state of the target corresponding to the record ID (for example, the account balance). The output 504V is blank before verification, and is written during verification.

[0091] The TxID 505V indicates the ID of the transaction that wrote the record of interest. The record that was read to write the record of interest and the transaction that wrote the record of interest can be identified from the pair of the TxID 505V and the input 503V. The TxID 505V and the input 503V are referenced during verification.

[0092] The hash value 506V is a hash value of the output (specifically, data 501V to 505V) included in the transaction result of the transaction that wrote the record of interest. The signature 507V represents a signature for verifying that the hash value 506V has not been tampered with. The signature 507V does not need to be stored if the response from the Ledger system 180 has been authenticated. Furthermore, if the proof from the Ledger system 180 includes the output 504L instead of a hash value, the hash value 506V may be omitted.

[0093] Visible start time 508V indicates the start time of the visible time of the target record. Visible end time 509V indicates the end time of the visible time of the target record. Here, the "visible time" of a record is the time period (the continuous time period from the visible start time to the visible end time) during which it is logically possible to read the record in Ledger database 182 in Ledger system 180. Details including the technical meanings of the "visible start time" and "visible end time" will be described later.

[0094] FIG. 6 shows an example of the configuration of the time management table 203 in the validator database 172.

[0095] The time management table 203 corresponds to the clock table in the first embodiment. The time management table 203 has an entry for each of a plurality of (or one) counter IDs. The entry has data such as an ID 601 and a counter 602.

[0096] ID 601 represents a counter ID. Counter 602 represents a counter value as a time (for example, an integer).

[0097] Each of the multiple (or one) counter IDs is statically or dynamically assigned to one of the clients 100. For example, a counter ID may be prepared for each client 100, or a counter ID may be assigned to a client 100 based on rules regarding assignment of counter IDs to clients 100. A counter ID is assigned to each client 100.

[0098] For example, the transaction log function 162 scans the time management table 203 to identify the maximum counter value, and records the counter value (maximum value + 1) in the counter 602 corresponding to the counter ID assigned to the client 10 having the function 162. This updates the time as a counter value.

[0099] The time (counter value) identified from the time management table 203 is used not only for the visible start time and visible end time, but also for the start time and end time of the transaction. A continuous period of time from the start time to the end time of a transaction can be called "transaction time." Multiple transactions whose transaction times at least partially overlap are considered concurrent transactions. Verification verifies whether concurrent and conflicting transactions operate serially.

[0100] FIG. 7 shows an example of the configuration of a transaction log table 201L in the Ledger database 182.

[0101] The transaction log table 201L records transaction logs as logs of received transaction requests and statuses. The transaction log table 201L may have a different configuration from the transaction log table 201V of the validator database 172.

[0102] The transaction log table 201L has an entry for each transaction, which includes data such as a TxID 401L, a status 409L, an RW set 407L, and an execution result 408L.

[0103] TxID 401L indicates the ID of the transaction. Status 409L indicates the status of the transaction, for example, whether it is committed or aborted.

[0104] The RW set 407L and the execution result 408L correspond to the transaction log recorded in the transaction log table 201L. For example, if the transaction log function 162 is unable to record the transaction log in the validator database system 170 due to a power outage or the like, the client function 161 obtains the transaction log from the Ledger system 180. The RW set 407L is a set of records read and written during transaction execution, and specifically includes a pair of the record ID and version of the read record, and a pair of the record ID and version of the record written during transaction execution. The execution result 408L represents a predetermined type of value included in the transaction result received by the client 100 from the Ledger system 180 during transaction execution. The "predetermined type of value" may include, for example, the state (e.g., latest balance) of the target (e.g., account) after transaction execution, as shown in the figure, and may also include a pair of the record ID and version.

[0105] FIG. 8 shows an example of the structure of a record table 202L in the Ledger database 182.

[0106] The record table 202L is a table into which data (e.g., so-called user data) is input and output in response to a request sent from the application 101 via the client function 161. The record table 202L has a record for each pair of a record ID and a version. The record has data such as a record ID 501L, a version 502L, an input 503L, and an output 504L. One record will be focused on (referred to as the "record of interest" in the description of FIG. 8).

[0107] The record ID 501L indicates the record ID (an example of a key) of the record of interest. The version 502L of the record of interest indicates the version.

[0108] Input 503L represents the record ID and version of the record read for writing a record of interest during transaction execution. Output 504L is output data (an example of value) related to the record of interest written during transaction execution, and includes, for example, a pair of the record ID and version of the record of interest, and the status of the target corresponding to the record ID (for example, the account balance).

[0109] An example of processing performed in the second embodiment will be described below with reference to Fig. 9 to Fig. 16. Fig. 9 and Fig. 10 correspond to the Logging phase, and Fig. 11 to Fig. 16 correspond to the Validation phase. The Validation phase is asynchronous with the Logging phase.

[0110] 9 and 10 show examples of processing flows related to transaction execution. Specifically, Fig. 9 shows an example of a processing flow related to the validator program 160 among the processing flows related to transaction execution. Fig. 10 shows an example of a processing flow related to the ledger server 181 among the processing flows related to transaction execution.

[0111] This processing flow is started when the client function 161 of the validator program 160 receives a request from the application 101. The request from the application 101 is associated with the ID of the contract to be executed and one or more arguments to be used in executing the contract.

[0112] 9, the client function 161 creates a transaction request that is associated with the contract ID and one or more arguments from the application 101 and that can be interpreted by the Ledger system 180 (S901). The created transaction request is associated with a CID (contract ID) and a set of arguments (one or more arguments), as well as a TxID (transaction ID) and a signature (e.g., a signature created using the TxID, CID, and set of arguments).

[0113] The transaction log function 162 obtains the current time (for example, the value obtained by adding 1 to the maximum counter 602 in the time management table 203) from the time management table 203 as the start time, and writes the current time as the counter 602 corresponding to the clock ID 601 assigned to the client 100 that includes the function 162 (S902).

[0114] The transaction log function 162 writes the transaction log to the transaction log table 201V of the validator database 172 (S903). The transaction log written in S903 is data 401V to 405V, that is, data representing the TxID, CID, argument group, and signature associated with the transaction request created in S901, and data representing the start time obtained in S902.

[0115] The client function 161 sends the transaction request created in S901 to the Ledger system 180 (S904).

[0116] As shown in FIG. 10, the Ledger server 181 of the Ledger system 180 receives the transaction request sent in S904 from the client function 161 (S1001).

[0117] In response to the transaction request, the Ledger server 181 identifies a contract corresponding to the CID specified in the transaction request from one or more contracts held by the Ledger system 180 (one or more contracts in the management domain 50C) and executes the identified contract (S1002). In S1002, records are read from and written to the record table 202L of the Ledger database 182. For example, in S1002, if a record {x0} (a record with a record ID of "x" and a version of "0") having a status of "4" is read and a record {x1} having a status of "5" is written, the record written to the record table 202L is the second record in FIG. 8.

[0118] The Ledger server 181 executes a commit or abort as a result of the transaction including S1002 (S1003).

[0119] The Ledger server 181 creates a proof of the transaction execution (S1004). The proof includes the record ID and version of the written record, the input (the record ID and version of the record read to write the record), the TxID of the transaction, the hash value of the written record, and a signature of the hash value. In other words, the proof includes the data written as data 501V to 503V and 505V to 507V in the record table 202V of the validator database 172. The TxID may be omitted. The hash value in the proof is an example of a summary of the output 504L, and the hash value and its signature in the proof correspond to a digest of the output 504L. Instead of the hash value and its signature, the proof may include the output 504L.

[0120] The Ledger server 181 creates a transaction result and sends the transaction result to the validator program 160 as a response to the transaction request received in S904 (S1005). The transaction result includes the proof created in S1004 and the execution result 408L, which is the result of executing the contract in S1002. The proof includes data indicating what kind of transaction was executed in the Ledger system 180 (e.g., hash values ​​of the input 503L and output 504L and their signatures (or output 504L)).

[0121] As shown in FIG. 9, the client function 161 of the validator program 160 receives the transaction result sent in S1005 (S905).

[0122] The transaction log function 162 obtains the current time from the time management table 203 as the end time, and writes the current time as the counter 602 corresponding to the clock ID 601 assigned to the client 100 that includes the function 162 (S906).

[0123] The transaction log function 162 writes the transaction log to the transaction log table 201V of the validator database 172, and writes the proof of the transaction result received in S905 to the record table 202V of the validator database 172 (S907). The transaction log written in S907 is data 406V to 408V, that is, data indicating the end time acquired in S906, and data indicating the RW set and execution result (values ​​as the state of the written record) identified from the transaction result. The proofs written in S907 are data 501V to 503V and 505V to 507V.

[0124] FIG. 11 shows an example of the processing flow of the verification processing.

[0125] This processing flow is initiated when the transaction verification function 163 receives a verification request associated with a record ID and a version (a request to verify whether the record identified from the record ID and version is truly correct). The verification request may be issued from the application 101, from a physical or virtual management computer (not shown) (e.g., a computer in the management domain 50A), or from another verification request source. This processing flow may be initiated by inputting an unverified target transaction ID identified by the transaction verification function 163 based on the transaction status 409V. In this case, processing may begin from S1102.

[0126] The transaction verification function 163 identifies an entry from the record table 202V of the validator database 172 that has a record ID 501V and version 502V that match the record ID and version associated with the verification request, and obtains a proof from the identified entry (i.e., data 501V to 503V and 505V to 507V in the entry) (S1101).

[0127] The transaction validation function 163 obtains the transaction log as an entry having a TxID 401V that matches the TxID of the proof obtained in S1101 from the transaction log table 201V of the validator database 172 (S1102).

[0128] The transaction verification function 163 determines whether there is an unprocessed write record among the write records represented by the RW set 407V of the transaction log acquired in S1102 (S1103). An "unprocessed write record" is a write record that has not been processed in S1104 and S1105.

[0129] If the determination result in S1103 is true (S1103: Yes), the transaction verification function 163 selects an unprocessed write record and obtains a proof of the write record from the record table 202V (S1104). Specifically, the proof (data 501V to 503V and 505V to 507V) is obtained from an entry having a record ID 501V and version 502V that match the record ID and version of the write record. The transaction verification function 163 performs a state derivation process (S1105). In S1105, the transaction verification function 163 re-executes the transaction using the proof obtained in S1104 and determines whether the re-execution results in a record identical to the unprocessed write record. The state derivation process corresponds to the process using the deriveStates() function in the first embodiment. Details of the state derivation process will be described later with reference to FIG. 12.

[0130] If the determination result in S1103 is false (S1103: No), the transaction verification function 163 performs graph creation processing (S1106). In the graph creation processing, a graph is created. The created graph is a directed graph, with nodes representing transactions and edges and their directions corresponding to the reading and writing of records between transactions. Details of the graph creation processing will be described later with reference to FIG. 13.

[0131] The transaction verification function 163 determines whether or not there is a cycle in the graph (S1107). If the determination result in S1107 is true (S1107: Yes), the transaction verification function 163 sends an error to the verification request source (the sender of the verification request) (S1108). This is because the existence of a cycle in the graph means that the transaction is not being executed serially.

[0132] FIG. 12 shows an example of the processing flow of the state derivation processing.

[0133] The transaction verification function 163 determines whether there is an unprocessed read record among the read records represented by the proof input 503V acquired in S1104 (S1201). An "unprocessed read record" is a read record that has not been processed in S1202.

[0134] If the determination result in S1201 is true (S1201: Yes), the transaction verification function 163 selects an unprocessed read record, obtains an entry corresponding to the unprocessed read record from the record table 202V (S1201), and adds the contents of the entry (for example, at least data 501V to 507V) to the input list (S1203). Note that the data added to the input list may be only data 501V, 502V, and 504V, or may include data other than these. If the record obtained in S1202 is an unprocessed write record (S1103: Yes), the state derivation process (S1105) is executed recursively.

[0135] If the judgment result of S1201 is false (S1201: Yes), the transaction verification function 163 re-executes the transaction using the input list (S1204) and determines whether the hash value of the write record obtained as a result of the re-execution matches the hash value 506V in the proof obtained in S1104 (S1205).

[0136] If the determination result in S1205 is true (S1205: Yes), the transaction verification function 163 writes data including the state obtained as a result of the re-execution as the proof output 504V acquired in S1104 (S1206).

[0137] If the determination result in S1205 is false (S1205: No), the transaction verification function 163 sends an error to the verification request source (the sender of the verification request) (S1207). This is because some kind of tampering (e.g., tampering with the contract or record table 202L of the Ledger system 180) may have occurred. Note that when S1207 is performed, the verification process itself may be terminated in addition to the state derivation process.

[0138] FIG. 13 shows an example of the processing flow of the graph creation process.

[0139] The transaction verification function 163 initializes the graph and to-do list (S1301). The "graph" created in this graph creation process is a graph with the TxID of the transaction log acquired in S1102 as its base point. By initializing the graph, a blank graph with no nodes or edges is prepared. The "to-do list" is a list of the TxIDs of the transactions to be checked. The to-do list is used to check whether there are any concurrent transactions. By initializing the to-do list, only the base TxID is listed.

[0140] The transaction verification function 163 determines whether the to-do list is empty (S1302). Immediately after S1301, the base TxID is present, so the determination result of S1302 is false.

[0141] If the determination result in S1302 is false (S1302: No), the transaction verification function 163 acquires a TxID (for example, the first TxID) from the ToDo list (S1303). The acquired TxID is deleted from the ToDo list.

[0142] The transaction verification function 163 determines whether the TxID acquired in S1303 is in the ToDo list (S1304). The TxID acquired in S1303 immediately after S1301 is the base TxID, and the graph is blank, so the determination result in S1304 is false.

[0143] If the determination result in S1304 is false (S1304: No), the transaction verification function 163 performs visibility check processing. The visibility check processing corresponds to checking whether strict serializability is present. The visibility check processing may be performed as processing other than the graph creation processing, but it is efficient to perform it during the graph creation processing. This is because the read record group required for visibility check has already been acquired during transaction log acquisition (S1102 or S1401). In other words, the transaction log acquired in S1102 or S1401 may be cached so that it can be referenced efficiently later. Details of the visibility check processing will be described later with reference to FIG. 15.

[0144] The transaction verification function 163 adds a node corresponding to the TxID acquired in S1303 to the graph (S1306).

[0145] The transaction verification function 163 performs a conflict confirmation process (S1307). The TxIDs identified as targets for checking in the conflict confirmation process are added to the ToDo list. For example, assume that Tx2 is identified as a transaction that is running concurrently with Tx1 and has a conflict. Since Tx1 conflicts with Tx2, a node corresponding to TxID2 is included in the graph. On the other hand, for Tx2, Tx1 may not be the only transaction that has a conflict and is concurrent. Therefore, TxID2 is added to the To list to later check for concurrent transactions that conflict with Tx2. Later, S1304: No is obtained for TxID2, and conflict confirmation process is performed. Details of the conflict confirmation process will be described later with reference to FIG. 14. Note that although the TxIDs identified in the conflict confirmation process are added to the ToDo list, the node for the TxID is not immediately added to the graph. Therefore, there may be TxIDs that are in the ToDo list but not in the graph. This is because concurrent transactions may occur transitively, and it is necessary to be able to find such transactions. As will be described later, an edge is added in S1307, and the added edge is an edge added for the node added in S1306.

[0146] In S1303, the TxID is acquired from the ToDo list, and when the series of processes is completed, the process returns to S1302. If the determination result in S1302 is true (S1302: Yes), the graph is complete, and the graph creation process ends.

[0147] FIG. 14 shows an example of the processing flow of the conflict confirmation processing.

[0148] The transaction verification function 163 obtains the transaction log (entry) having the TxID obtained in S1303 from the transaction log table 201V of the validator database 172 (S1401).

[0149] The transaction verification function 163 identifies a group of concurrent transactions, which is one or more concurrent transactions (S1402). A "concurrent transaction" here refers to a transaction whose start time or end time overlaps with the transaction time (the time period from start time to end time) indicated by the transaction log acquired in S1401. Concurrent transaction groups can be identified from the transaction log table 201V.

[0150] The transaction verification function 163 determines whether there are any unprocessed concurrent transactions (S1403). An "unprocessed concurrent transaction" is a concurrent transaction among the group of concurrent transactions identified in S1402 for which processing from S1404 onwards has not been carried out. If there are no unprocessed concurrent transactions, or if no concurrent transactions are identified in S1402, the determination result in S1403 is false.

[0151] If the determination result in S1403 is true (S1403: Yes), the transaction verification function 163 selects an unprocessed concurrent transaction and obtains a concurrent transaction log, which is a transaction log having a TxID that matches the TxID of the concurrent transaction, from the transaction log table 201V (S1404). Note that the transaction logs of all concurrent transactions may be obtained in S1402, in which case S1404 may be omitted.

[0152] The transaction verification function 163 determines whether the concurrent transaction conflicts with the transaction with the TxID acquired in S1303 (hereinafter referred to as the acquired transaction) (S1405). Specifically, the RW set 407V of the acquired transaction is compared with the RW set 407V of the concurrent transaction. If the record ID of the write record of one of the acquired transaction and the concurrent transaction is the record ID of the read record of the other transaction, or if the record IDs of the write records of the acquired transaction and the concurrent transaction are the same, a determination result that there is a conflict is obtained. Note that if the record IDs of the write records of the acquired transaction and the concurrent transaction are the same and the versions are also the same, an error may be sent, and the conflict confirmation process or verification process may be terminated.

[0153] If the determination result in S1405 is false (S1405: No), S1406 and S1407 are skipped and the process returns to S1403. This is because it is obvious that if there is no conflict, the acquisition transaction and the concurrent transaction were executed serially.

[0154] If the determination result in S1405 is true (S1405: Yes), the transaction verification function 163 adds an edge whose start or end point is the TxID of the acquisition transaction to the graph (S1406). For example, if the acquisition transaction reads a record written by a concurrent transaction, an edge whose end point is the node of the acquisition transaction is added. If the concurrent transaction reads a record written by the acquisition transaction, an edge whose start point is the node of the acquisition transaction is added. If both the acquisition transaction and the concurrent transaction write a record with the same record ID, an edge whose direction depends on which version is earlier is added.

[0155] The transaction verification function 163 adds the TxID of the concurrent transaction to the ToDo list (S1407). This is because, as described above, concurrent transactions occur transitively. At this stage, the node of the concurrent transaction is not added to the graph.

[0156] FIG. 15 shows an example of a processing flow of the visibility confirmation processing.

[0157] The transaction verification function 163 identifies a read record group (S1501). A "read record group" is one or more read records, and each read record is identified from an RW set 407V in a transaction log having a TxID 401V that matches the TxID obtained in S1303. In the descriptions of Figures 15 to 19, the TxID obtained in S1303 is referred to as a "target TxID," and the transaction corresponding to the target TxID is referred to as a "target transaction."

[0158] The transaction verification function 163 determines whether there is an unprocessed read record in the read record group identified in S1501 (S1502). An "unprocessed read record" is a read record that has not been processed in S1503.

[0159] If the determination result in S1502 is true (S1502: Yes), the transaction verification function 163 selects an unprocessed read record and obtains the entry corresponding to the read record from the record table 202V of the validator database 172 (S1503). The visible start time 508V and the visible end time 509V of this entry are initialized. Note that initialization is performed only if the visible start time 508V and the visible end time 509V of the entry are empty (e.g., NULL). The initialized visible start time 508V is the same as the start time 405V of the transaction that wrote the record corresponding to the entry. If there is a next version of the record corresponding to the entry, the initialized visible end time 509V is the same as the end time 406V of the transaction that wrote the record. If there is no next version, the initialized visible end time 509V is the same as the end time 406V of the transaction that wrote the record. If there is no next version, the initialized visible end time 509V is the maximum integer value as a time in the processing system. The purpose of the initialization is to set the most conservative visibility time at which the record can be read. The presence or absence of strict serializability can be checked while gradually narrowing the visibility time appropriately depending on the time of the transaction involving the record.

[0160] The transaction verification function 163 determines whether the start time 405V of the target TxID is less than or equal to the visible end time 509V of the selected read record (i.e., whether the start time 405V is the same as or earlier than the visible end time 509V) (S1504). The transaction verification function 163 also determines whether the end time 406V of the target TxID is greater than or equal to the visible start time 508V of the selected read record (i.e., whether the end time 406V is the same as or later than the visible start time 508V) (S1505). Either S1504 or S1505 can be performed first.

[0161] Steps S1504 and S1505 determine whether the version of the read record is correct, i.e., whether the version of the record is one that may be read during the execution of the transaction of interest. If there is no overlap between the transaction time of the transaction of interest and the visibility time of the read record, i.e., if the determination result of S1504 is false (S1504: No), or if the determination result of S1505 is false (S1505: No), this means that a record of a version that should not be read during the transaction of interest has been read. Therefore, the transaction verification function 163 sends an error to the verification request source (S1507). Note that when S1507 is performed, the verification process itself may be terminated in addition to the visibility confirmation process.

[0162] If the judgment result of S1504 is true (S1504: Yes), and if the judgment result of S1505 is true (S1505: Yes), if the judgment result of S1504 is true (S1504: Yes), the transaction verification function 163 performs a visibility time update process to make the visibility time more appropriate (S1506).

[0163] FIG. 16 shows an example of a process flow for updating the visible time.

[0164] 16, the version of the read record corresponding to the entry acquired in S1503 can be referred to as the “target version,” the version immediately before the target version can be referred to as the “previous version,” and the version immediately after the target version can be referred to as the “next version.” The target version, previous version, and next version records have the same record ID.

[0165] The transaction verification function 163 references the record table 202V and determines whether there is a previous version of the target version (S1601). If the determination result in S1601 is true (S1601: Yes), the transaction verification function 163 determines whether the visible end time 509V of the previous version is greater (future) than the end time 406V of the target transaction (S1602). If the determination result in S1602 is true (S1602: Yes), the transaction verification function 163 updates the visible end time 509V of the previous version to the end time 406V of the target transaction (S1603). In other words, the visible end time 509V of the previous version becomes a time in the past, and the visibility time of the previous version becomes shorter.

[0166] After S1603, if the determination result of S1601 is false (S1601: No), or if the determination result of S1602 is false (S1602: No), the transaction verification function 163 references the record table 202V and determines whether there is a next version of the target version (S1604). If the determination result of S1604 is true (S1604: Yes), the transaction verification function 163 determines whether the visible start time 508V of the next version is less than (earlier than) the start time 405V of the target transaction (S1605). If the determination result of S1605 is true (S1605: Yes), the transaction verification function 163 updates the visible start time 508V of the next version to the start time 405V of the target transaction (S1606). In other words, the visible start time 508V of the next version becomes a future time, and the visibility time of the next version becomes shorter.

[0167] An example of the visible time update process will be described with reference to FIGS.

[0168] As shown in Figure 17, assume there are transactions Tx1 to Tx3 (transactions 1 to 3). The actual order of transactions is Tx1 → Tx2 → Tx3. Therefore, if record {x1} (a record with record ID "x" and version "1") has already been written and committed during the execution of Tx1, it is correct that record {x1} was read during the execution of Tx2, but it is incorrect that record {x0} was read during the execution of Tx3. In this case, possible causes include tampering with the contract in the Ledger system 180.

[0169] However, the serializability check (graph creation process excluding visibility confirmation process) results in the result that serializability is satisfied in the order Tx3 → Tx1 → Tx2. In other words, strict serializability is not guaranteed.

[0170] Therefore, in this embodiment, a visibility confirmation process is introduced as a check for strict serializability. Specifically, since the actual behavior within Ledger system 180 cannot be accurately known from outside Ledger system 180, Validator program 160 determines the visibility time of each version of a record based on the time observed from Validator system 150, and updates the visibility time as appropriate to improve the accuracy of the visibility time.

[0171] Take the record with record ID "x" as an example. According to the actual behavior within the Ledger system 180, the latest time at which record {x0} can be read is before the commit time of Tx1, and the earliest time at which record {x1} can be read is the commit time of Tx1. However, as mentioned above, the actual behavior within the Ledger system 180 cannot be known from outside the Ledger system 180. Therefore, the following times are adopted for version "0" and version "1". The visible end time 509V of version "0" is the time when the validator program 160 receives the transaction result of Tx1, that is, the end time 406V of Tx1. This end time 406V is the latest possible time at which version "0" can exist among times known from outside the Ledger system 180. The visible start time 508V of version "1" is the start time 405V of Tx1, assuming that version "1" was written and committed immediately after the start of Tx1.

[0172] The visibility end time 509V thus determined is updated, for example, as follows.

[0173] For example, the visible end time 509V of version "0" is updated as shown in FIG. 18. That is, assume that the target TxID is "2." The end time 406V of Tx2 is earlier than the visible end time 509V of version "0," which is the previous version of record {x1} that was read during the execution of Tx2 (S1602: Yes). Therefore, the visible end time 509V of version "0" is updated to the end time 406V of Tx2.

[0174] Also, for example, the visible start time 508V of version "1" is updated as shown in FIG. 19 . That is, assume that the target TxID is "3." The start time 405V of Tx3 is later than the visible start time 508V of version "1," which is the next version of record {x0} read during the execution of Tx3 (S1605: Yes). Therefore, the visible start time 508V of version "1" is updated to the start time 405V of Tx3. Note that when the visible start time 508V of version "1" is updated in this way, an error is sent as the result of the serializability check (S1504 and S1505) when the target TxID is "2" (S1507). This is because the visible start time 508V for version "1" is later than the start time 405V of Tx2, and the visible time of version "1" does not overlap with the transaction time of Tx2, and therefore the determination result of S1504 is false. In other words, an order that is contrary to the actual execution order (Tx3 → Tx1 → Tx2) is detected as an inconsistency, and therefore strict serializability is guaranteed.

[0175] The third embodiment will be described below, focusing mainly on the differences from the second embodiment, and explanations of the commonalities with the second embodiment will be omitted or simplified.

[0176] FIG. 21 shows an example of the configuration of the entire system including the validator system according to the third embodiment.

[0177] According to the third embodiment, the transaction log function 162 and the transaction verification function 163 exist in a validator server 171 of a validator database system 170 instead of the validator program 160 of the client 100. One of the transaction log function 162 and the transaction verification function 163 may exist in the validator program 160 as in the second embodiment. Note that a validator server 171 may exist for each client 100. Multiple validator servers 171 may share the validator database 172. Therefore, multiple validator servers 171 may share the time management table 203.

[0178] Although several embodiments have been described above, these are merely examples for explaining the present invention, and the scope of the present invention is not intended to be limited to these embodiments. The present invention can also be implemented in various other forms. For example, at least a part of the first embodiment may be applied to the second or third embodiment, or at least a part of the second or third embodiment may be applied to the first embodiment. Furthermore, the transaction verification function 163 may receive a user (e.g., a user belonging to the management domain 50A or 50B)'s request for or against strict serializability assurance, and may determine whether or not to execute a visibility confirmation process based on the user's selection.

[0179] The above description can be summarized as follows: The following summary may include supplementary explanations and explanations of modified examples.

[0180] A validation system (e.g., Validator system 150) is constructed. The validation system has a storage unit (e.g., a recording module or transaction log function 162) and a validation unit (e.g., an input / output validation module, a serializability validation module, or a transaction validation function 163). The functions of the storage unit and the validation unit are realized by a computer executing a computer program. Furthermore, this "computer" is a computer outside the first computer system (e.g., Ledger system 180). When such a computer executes the computer program, the computer is constructed outside the first computer system as a validation system. The management domain of the first computer system and the management domain of the validation system are different. The first computer system may be a first database system.

[0181] After a transaction is executed in a first computer system (e.g., Ledger system 180), a validation system verifies the transaction. Specifically, a storage unit of the validation system stores transaction management data for each transaction executed in the first computer system in a second computer system (e.g., Validator database system 170). The second computer system may be a second database system. The first computer system is configured to return a transaction result when executing a transaction in response to a transaction request, and the transaction result includes a proof of the execution of the transaction. For each transaction, the transaction management data includes data contained in the transaction request for the transaction and data obtained from the transaction result for the transaction, the data including a proof of the transaction. In response to the verification request, the validation system identifies transaction management data for the transaction to be verified from the second computer system and performs verification based on the identified transaction management data. This improves latency and transaction throughput. Also, a verification system external to the first computer system can verify transaction execution in the first computer system.

[0182] A storage unit stores transaction management data for each transaction executed on the first computer system in the second computer system. The first computer system manages an object set (e.g., record table 202L). The object set is an object set (e.g., record set) for each target (e.g., bank account). The object set is one or more objects (e.g., one or more records), and an object is data (e.g., record) representing the state of the target. When the first computer system executes a transaction in response to a transaction request that reads and / or writes an object representing the state of the target, the first computer system returns a transaction result that is data regarding the result of the transaction. For each transaction, the proof includes the primary key (e.g., record ID) and version of a read object read in the execution of the transaction, the primary key and version of a write object written in the execution of the transaction, and the state represented by the write object or a summary thereof. The proof may include arguments (one or more arguments) provided to a deterministic function and the ID of the executed deterministic function. For each transaction, the transaction management data includes data contained in the transaction request for that transaction and data derived from the transaction result for that transaction, comprising a proof of that transaction. The transaction management data for each transaction may be, for example, all or a portion of the entries in Transaction Log Table 201V corresponding to that transaction, and may also include, for each record read and / or written in the execution of that transaction, all or a portion of the entries in Record Table 202V corresponding to that record.

[0183] Transaction requests to the first computer system may be sent from one or more clients, respectively, and at least one of the storage unit and the verification unit may be provided in at least one of the one or more clients.

[0184] The storage unit and the verification unit may be provided in the second computer system. A set of the storage unit and the verification unit may be provided in the second computer system for each client.

[0185] An example of a verification that can be performed by the verification unit is input / output verification (e.g., state derivation process (S1105)). The verification unit performs input / output verification, for example, in response to a verification request. In input / output verification, the verification unit identifies transaction management data of a transaction to be verified from the second computer system. The "transaction to be verified" may be a transaction specified in the verification request, or a transaction that wrote an object specified in the verification request. For each write object identified from the transaction management data, the verification unit may re-execute the transaction, specifically, perform the following steps (1) and (2): (1) Identify from the transaction management data all read objects that were read to write the write object. (2) Determine whether the state or its summary (e.g., hash value) output by executing the same deterministic function (e.g., contract) as the deterministic function used to execute the transaction in the first computer system using the identified read object matches the state or its summary identified from the transaction management data.

[0186] Verification that can be performed by the verification unit includes serializability verification (for example, graph creation processing (S1106) and judgment (S1107)). Multiple transaction requests issued from one or multiple clients are sent to a first computer system without ordering (for example, without the ordering phase of the above-mentioned three-phase protocol), and multiple transactions are executed concurrently by the first computer system. Input / output verification is possible using proofs from the first computer system, but serializability cannot be guaranteed.

[0187] Therefore, the storage unit obtains the start time and end time of the transaction for each transaction. Because the verification system is external to the first computer system, the time when the transaction request is sent from the client to the first computer system is obtained as the start time of the transaction, and the time when the transaction result is received by the client is obtained as the end time of the transaction. For each transaction, the transaction management data may include data indicating the start time and end time of the transaction. For each transaction, the transaction time may be the time from the start time to the end time of the transaction.

[0188] Serializability verification may be performed, for example, when input / output verification finds a match for each write object of the transaction to be verified. In serializability verification, the verification unit may perform the following steps (1) and (2) for each of one or more target transactions including the transaction to be verified. A first target transaction among the one or more target transactions may be a transaction that is concurrent and conflicts with a second target transaction among the one or more target transactions. For example, each target transaction may be a transaction corresponding to the TxID acquired in S1303. (1) Identify all concurrent transactions whose transaction time at least partially overlaps with the transaction time of the target transaction. (2) Identify, from the identified concurrent transactions, transactions that are concurrent and conflict with the target transaction based on the primary keys of the read records and write records identified from the transaction management data of the identified concurrent transaction and the primary keys of the read records and write records identified from the transaction management data of the target transaction.

[0189] The verification unit may verify whether multiple transactions that constitute a conflict relationship identified for each of the one or more target transactions are serializable.

[0190] Specifically, for example, the verification unit may construct a directed graph representing multiple transactions that form a conflicting relationship. In the directed graph, each node corresponds to a transaction, and each directed edge may be an edge with a direction based on the read record and write record between the transactions. The verification unit may send an error if the directed graph contains a cycle. If there is no cycle, serializability is guaranteed.

[0191] Furthermore, verification that may be performed by the verification unit includes strict serializability verification (for example, visibility confirmation processing (S1305)). Strict serializability verification may be performed, for example, when a user specifies that strict serializability be guaranteed (that is, when strict serializability verification is selected as an option). The storage unit may store, in the second computer system, data indicating the visibility start time and visibility end time of the visibility time, which is the time during which the object can be read, for each object written to the first computer system. The verification unit may perform strict serializability verification for one or more objects including the transaction to be verified. For example, in serializability verification, strict serializability verification may be performed for each of one or more target transactions. Furthermore, for example, when a match is obtained for each write object of the transaction to be verified in input / output verification, strict serializability verification may be performed for each of the one or more target transactions. For each of one or more target transactions, in the strict serializability verification, the verification unit may send an error if either of the following (a) and (b) is not satisfied for at least one of one or more read objects in the execution of the target transaction: (a) the start time of the target transaction is the same as or earlier than the visible end time of the read object, (b) the end time of the target transaction is the same as or later than the visible start time of the read object.

[0192] For each object, the latest visible end time of the object may be the maximum value of the visible end time if there is no next version object that is the object one version after the version of the object, or may be the end time of the transaction that wrote the object if there is a next version object.For each object, the earliest visible start time of the object may be the start time of the transaction that wrote the object.

[0193] For each of one or more target transactions, for each of one or more read objects in the execution of the target transaction, if both (a) and (b) are satisfied with respect to the read object, the verification unit may perform the following (1) and (2). That is, the verification unit may update the visibility time of the read object to a more accurate time. (1) If there is a previous version object that is an object of the version immediately preceding the version of the read object, and the visibility end time of the previous version object is later than the end time of the target transaction, the verification unit may update the visibility end time of the previous version object to the end time of the target transaction. (2) If there is a next version object that is an object of the version immediately following the version of the read object, and the visibility start time of the next version object is earlier than the start time of the target transaction, the verification unit may update the visibility start time of the next version object to the start time of the target transaction.

[0194] For each transaction, the repository may determine the start and end times of that transaction from a logical clock shared by multiple repository locations, including the repository itself.

[0195] The storage unit may identify transactions for which data containing transaction results is not included in the transaction management data. In addition to the object group set, the first computer system may manage, for each executed transaction, a log, which is data including the primary key and version of a read object read in the execution of the transaction, the primary key and version of a write object written in the execution of the transaction, and the state represented by the write object. An interface unit (e.g., client function 161) to the first computer system may send a query about the identified transaction to the first computer system, receive the log as a response to the query, and the storage unit may include the data contained in the log in the transaction management data for the transaction. For example, if the storage unit is unable to record part of the transaction management data in the second computer system due to a power outage or the like, the interface unit may obtain the log from the second computer system, and the storage unit may store the part of the transaction management data that could not be recorded in the second computer system based on the log.

[0196] 160: Validator program, 161: Client function, 162: Transaction log function, 163: Transaction verification function, 150: Validator system, 180: Ledger system

Claims

1. storing in a second computer system transaction management data for each transaction executed in a first computer system, the first computer system managing an object group set, the object group set being an object group for each target, the object group being one or more objects, and the object being data representing a state of the target, the first computer system being configured to return a transaction result, which is data relating to a result of the transaction, when executing a transaction in response to a transaction request which is a request for a transaction to read and / or write an object representing a state of the target, the transaction result including a proof relating to the execution of the transaction, for each transaction, the proof including a primary key and version of a read object read in the execution of the transaction, a primary key and version of a write object written in the execution of the transaction, and a state or a summary thereof represented by the write object, for each transaction, the transaction management data including data included in the transaction request of the transaction, and data obtained from the transaction result of the transaction, the proof of the transaction, performing an input / output verification in response to a verification request, in the input / output verification A computer program that causes a computer outside the first computer system to execute the following steps: identify from the second computer system transaction management data of a transaction to be verified; for each write object identified from the transaction management data, identify from the transaction management data all read objects that were read for writing to the write object; and determine whether a state or a summary thereof output by executing, using the identified read objects, a deterministic function that is the same as a deterministic function used to execute the transaction in the first computer system, matches a state or a summary thereof identified from the transaction management data.

2. For each transaction, obtain the time when a transaction request for that transaction was sent to the first computer system as the start time of that transaction, and obtain the time when the transaction result for that transaction was received as the end time of that transaction; for each transaction, the transaction management data includes data indicating the start time and end time of that transaction; for each transaction, the transaction time is the time from the start time to the end time of that transaction; and if a match is obtained for each write object of the transaction to be verified in the input / output verification, perform a serializability verification; and in the serializability verification, for each of one or more target transactions including the transaction to be verified, identify all concurrent transactions whose transaction time at least partially overlaps with the transaction time of the target transaction; and based on the primary keys of the read record and write record identified from the transaction management data of the identified concurrent transaction and the primary keys of the read record and write record identified from the transaction management data of the target transaction, identify a transaction that is concurrent and conflicting with the target transaction among the identified concurrent transactions; The computer program product according to claim 1 , which causes the computer to execute the following: verifying whether a plurality of transactions constituting a conflict relationship identified for each of the one or more target transactions are serializable.

3. The computer program product of claim 2, wherein a first subject transaction of the one or more subject transactions is a transaction that is concurrent and conflicting with a second subject transaction of the one or more subject transactions.

4. The computer program of claim 2, further comprising: constructing a directed graph representing the plurality of transactions that form a conflicting relationship; in the directed graph, each node corresponds to a transaction, and each directed edge is an edge with a direction based on the read records and write records between the transactions; and signaling an error if the directed graph contains a cycle.

5. The computer program of claim 2, which causes the computer to execute the following: storing in the second computer system, for each object written to the first computer system, data representing the visible start time and visible end time of the visibility time during which the object can be read; performing a strict serializability verification for each of the one or more target transactions in the serializability verification; and sending an error for each of the one or more target transactions if, in the strict serializability verification, the following (a) or (b) is not satisfied for at least one of the one or more read objects in the execution of the target transaction: (a) the start time of the target transaction is the same as or earlier than the visible end time of the read object; (b) the end time of the target transaction is the same as or later than the visible start time of the read object.

6. A computer program as described in claim 5, wherein for each object, the latest visible end time of the object is the maximum value of the visible end time if there is no next version object which is the version one version after the object, and is the end time of the transaction which wrote the object if there is a next version object, and the earliest visible start time of the object is the start time of the transaction which wrote the object.

7. The computer program of claim 5, which causes the computer to execute the following: for each of the one or more target transactions: for each of one or more read objects in the execution of the target transaction, if both (a) and (b) are satisfied with respect to the read object, if there is a previous version object which is an object of the version previous to the version of the read object and the visible end time of the previous version object is in the future than the end time of the target transaction, update the visible end time of the previous version object to the end time of the target transaction; and if there is a next version object which is an object of the version one version after the read object and the visible start time of the next version object is earlier than the start time of the target transaction, update the visible start time of the next version object to the start time of the target transaction.

8. The computer program of claim 1, which causes the computer to execute the following: storing in the second computer system, for each object written to the first computer system, data representing the visible start time and visible end time of the visibility time during which the object can be read; performing strict serializability verification for each of one or more objects including the transaction to be verified; and sending an error in the strict serializability verification for each of the one or more target transactions if either of the following (a) and (b) is not satisfied for at least one of one or more read objects in the execution of the target transaction: (a) the start time of the target transaction is the same as or earlier than the visible end time of the read object; (b) the end time of the target transaction is the same as or later than the visible start time of the read object.

9. The computer program of claim 1, which causes the computer to execute the steps of: determining, for each transaction, a start time and an end time of the transaction from a logical clock shared by the plurality of computer programs including this computer program.

10. The computer program of claim 1, which causes the computer to execute the following: identify a transaction for which data having the transaction result is not included in the transaction management data; the first computer system manages a log, which is data containing, for each executed transaction, in addition to the object group set, the primary key and version of a read object read in the execution of the transaction, the primary key and version of a write object written in the execution of the transaction, and the state represented by the write object; send a query about the identified transaction to the first computer system; receive the log in response to the query; and include the data contained in the log in the transaction management data for the transaction.

11. A method for storing transaction management data for each transaction executed in a first computer system in a second computer system, the first computer system managing an object group set, the object group set being an object group for each target, the object group being one or more objects, and the object being data representing a state of the target, the first computer system being configured to return a transaction result, which is data regarding a result of the transaction, when executing a transaction in response to a transaction request that is a request for a transaction to read and / or write an object representing the state of the target, the transaction result including a proof regarding the execution of the transaction, the proof including, for each transaction, a primary key and version of a read object read in the execution of the transaction, a primary key and version of a write object written in the execution of the transaction, and a state represented by the write object or a summary thereof, For each transaction, the transaction management data includes data contained in a transaction request for that transaction, and also includes data obtained from the transaction result for that transaction, the data including a primary key and version of a read object read in the execution of that transaction, a primary key and version of a write object written in the execution of that transaction, and a state represented by the write object or a summary thereof; and performing an input / output verification in response to a verification request, in which the input / output verification identifies transaction management data for a transaction to be verified from the second computer system, and for each write object identified from the transaction management data, identifies from the transaction management data all read objects that were read for writing of the write object,A verification method executed by a computer outside the first computer system, determining whether a state or a summary thereof output by executing, using the identified read object, a deterministic function that is the same as the deterministic function used to execute the transaction in the first computer system, matches a state or a summary thereof identified from the transaction management data.

12. A system comprising: a storage unit; and a verification unit, wherein the storage unit stores in a second computer system transaction management data for each transaction executed in a first computer system; the first computer system manages an object group set, the object group set being an object group for each target, the object group being one or more objects, and the object being data representing a state of the target; when the first computer system executes a transaction in response to a transaction request which is a request for a transaction to read and / or write an object representing the state of the target, the system returns a transaction result which is data relating to a result of the transaction, the transaction result including a proof relating to the execution of the transaction; and for each transaction, the proof includes a primary key and version of a read object read in the execution of the transaction, a primary key and version of a write object written in the execution of the transaction, and a state represented by the write object or a summary thereof; For each transaction, the transaction management data includes data contained in a transaction request for that transaction, and also includes data obtained from the transaction result for that transaction, the data including a primary key and version of a read object read in the execution of that transaction, a primary key and version of a write object written in the execution of that transaction, and a state represented by the write object or a summary thereof; and the verification unit performs input / output verification in response to a verification request, in which the verification unit: identifies transaction management data of a transaction to be verified from the second computer system; and for each write object identified from the transaction management data, identifies from the transaction management data all read objects that were read for writing of the write object;a verification system that determines whether a state or a summary thereof output by executing, using the identified read object, a deterministic function that is the same as the deterministic function used to execute the transaction in the first computer system, matches a state or a summary thereof identified from the transaction management data.

13. The verification system of claim 12, wherein transaction requests to the first computer system are sent from one or more clients, respectively, and at least one of the storage unit and the verification unit is provided in at least one of the one or more clients.

14. The verification system according to claim 12, wherein transaction requests to said first computer system are sent from one or more clients, respectively, and said storage unit and said verification unit are provided in said second computer system.

Citation Information

Patent Citations

  • Data management system and method for detecting Byzantine failures

    JP7152828B1

  • System having falsification detectivity

    WO2020153454A1

  • Transaction processing method and apparatus, computer device, and storage medium

    WO2022161308A1