Control method, device, and program

The control method and device address the issue of duplicate smart contract execution in distributed ledger management systems by selecting and associating child smart contracts with parent smart contracts, ensuring consistent operation.

JP7576566B2Active Publication Date: 2024-10-31PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021565562
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-12-19
Filing Date
2020-12-11
Publication Date
2024-10-31
Estimated Expiration
2040-12-11

AI Technical Summary

Technical Problem

Existing smart contract technologies face inconsistencies in the operation of management systems that manage distributed ledgers due to the simultaneous generation and execution of duplicate smart contracts, leading to system malfunctions.

Method used

A control method and device that select and manage one child smart contract from multiple generated contracts, associating it with a parent smart contract to prevent redundant execution and maintain system consistency.

Benefits of technology

Prevents redundant execution of identical smart contracts, ensuring the management system operates correctly by managing child smart contracts in association with parent smart contracts, thereby avoiding inconsistencies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007576566000001
    Figure 0007576566000001
  • Figure 0007576566000002
    Figure 0007576566000002
  • Figure 0007576566000003
    Figure 0007576566000003
Patent Text Reader

Abstract

In a control method executed by one of a plurality of devices that hold a distributed ledger, in a management system provided with said plurality of devices, the distributed ledger, which stores a parent smart contract including an automatic generating function for automatically generating a new smart contract, and a management function for selecting and managing one of a plurality of child smart contracts generated by the plurality of devices: generates a first child smart contract (S106); transmits first transaction data including the generated first child smart contract to another device (S112) and stores the same in the distributed ledger of said one device (115); receives second transaction data including a second child smart contract generated by the other device (S113, S114) and stores the same in the distributed ledger of said one device (S115); and manages said selected one child smart contract in association with the parent smart contract by executing the management function.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a control method, an apparatus, and a program. [Background technology]

[0002] Conventionally, there exists smart contract technology that automatically executes the process from checking the conditions of a contract to fulfilling the contract on a blockchain. For example, Patent Literature 1 discloses a method for automatically executing trade transaction procedures using smart contract technology. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] International Publication No. 2019 / 003414 Summary of the Invention [Problem to be solved by the invention]

[0004] However, the method disclosed in Patent Document 1 may cause inconsistencies in the operation of the management system that manages the distributed ledger, which may cause the management system to not operate correctly.

[0005] The present disclosure has been made in consideration of the above-mentioned circumstances, and aims to provide a control method, device, and program that can correctly operate a management system that manages a distributed ledger. [Means for solving the problem]

[0006] A control method according to one embodiment of the present disclosure is a control method executed by one of a plurality of devices in a management system including a plurality of devices each holding a distributed ledger, the distributed ledger storing a parent smart contract including an auto-generation function for automatically generating a new smart contract, and a management function for selecting and managing one of a plurality of child smart contracts generated by execution of the auto-generation function in the plurality of devices, the control method generating a first child smart contract by executing the auto-generation function, transmitting first transaction data including the generated first child smart contract to another device among the plurality of devices, and storing the first transaction data in the distributed ledger of the one device, receiving second transaction data including a second child smart contract generated by execution of the auto-generation function in the other device, and storing the second transaction data in the distributed ledger of the one device, and managing one of the first child smart contract and the second child smart contract in association with the parent smart contract by executing the management function stored in the distributed ledger.

[0007] These comprehensive or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized by any combination of the system, the method, the integrated circuit, the computer program, and the recording medium. Effect of the Invention

[0008] According to the control method and the like disclosed herein, it is possible to operate a management system that manages a distributed ledger correctly. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a management system according to an embodiment. [Diagram 2]FIG. 2 is a diagram illustrating an example of a configuration of a server according to the embodiment. [Diagram 3] FIG. 3 is an explanatory diagram illustrating a schematic diagram of the first transaction data according to the embodiment. [Figure 4] FIG. 4 is a sequence diagram illustrating an example of a management process of the management system according to the embodiment. [Diagram 5] FIG. 5 is a sequence diagram illustrating an example of a management process of the management system according to the embodiment. [Figure 6] FIG. 6 is a diagram illustrating a first example of a setting process executed by the management function according to the embodiment. [Figure 7] FIG. 7 is a diagram illustrating a first example of a management function according to the embodiment. [Figure 8] FIG. 8 is a diagram illustrating a second example of the setting process executed by the management function according to the embodiment. [Figure 9] FIG. 9 is a diagram illustrating a second example of the management function according to the embodiment. [Figure 10] FIG. 10 is a diagram illustrating a third example of the setting process executed by the management function according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating a third example of the management function according to the embodiment. [Figure 12] FIG. 12 is a diagram illustrating a fourth example of the setting process executed by the management function according to the embodiment. [Figure 13] FIG. 13 is a diagram illustrating a fourth example of the management function according to the embodiment. [Figure 14] FIG. 14 is a diagram illustrating a fifth example of the setting process executed by the management function according to the embodiment. [Figure 15] FIG. 15 is a diagram illustrating a fifth example of the management function according to the embodiment. [Figure 16] FIG. 16 is a diagram illustrating a sixth example of the setting process executed by the management function according to the embodiment. [Figure 17] FIG. 17 is a diagram illustrating a sixth example of the management function according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] (Findings on which this disclosure is based) Using the smart contract technology disclosed in Patent Document 1, for example, there may be a demand for automatically generating a smart contract that executes a new contract related to a certain transaction in a smart contract that executes the transaction.

[0011] However, when automatically generating a new smart contract using a smart contract in the conventional technology, the following issues are anticipated.

[0012] A smart contract (program) is stored in a distributed ledger held by each of the multiple devices constituting the management system. When the management system automatically generates a new smart contract using a smart contract stored in the distributed ledger of each of the multiple devices, the new smart contract is automatically generated in each of the multiple devices. Therefore, smart contracts with the same content are automatically generated as many times as the number of devices constituting the management system. Furthermore, when all the automatically generated smart contracts are shared in the distributed ledger held by each of the multiple devices, each device will end up holding duplicate valid smart contracts with the same content. Therefore, multiple smart contracts with the same content may be executed simultaneously in each device, which may cause inconsistencies in the operation of the management system and may cause the management system to not operate correctly.

[0013] In order to solve the above problems, the present inventors have discovered the following control method, device, and program.

[0014] A control method according to one embodiment of the present disclosure is a control method executed by one of a plurality of devices in a management system including a plurality of devices each holding a distributed ledger, the distributed ledger storing a parent smart contract including an auto-generation function for automatically generating a new smart contract, and a management function for selecting and managing one of a plurality of child smart contracts generated by execution of the auto-generation function in the plurality of devices, the control method generating a first child smart contract by executing the auto-generation function, transmitting first transaction data including the generated first child smart contract to another device among the plurality of devices, and storing the first transaction data in the distributed ledger of the one device, receiving second transaction data including a second child smart contract generated by execution of the auto-generation function in the other device, and storing the second transaction data in the distributed ledger of the one device, and managing one of the first child smart contract and the second child smart contract in association with the parent smart contract by executing the management function stored in the distributed ledger.

[0015] According to this, one child smart contract is selected from among multiple child smart contracts generated by executing an automatic generation function included in the parent smart contract in each of multiple devices, and the selected child smart contract is managed in association with the parent smart contract. This makes it possible to prevent multiple child smart contracts that are identical to each other and automatically generated from the same parent smart contract from being held in duplicate. This makes it possible to prevent multiple child smart contracts with the same content from being executed in each device, and to prevent inconsistencies from occurring in the operation of the management system. This makes it possible to operate the management system that manages the distributed ledger correctly.

[0016] In addition, the management function may be included in the parent smart contract or a management smart contract different from the parent smart contract, the management smart contract may be stored in the distributed ledger, the first transaction data may include execution information for executing the management function for the first child smart contract, and the second transaction data may include execution information for executing the management function for the second child smart contract.

[0017] Thus, the parent smart contract or the custodian smart contract can be executed each time the first transaction data and the second transaction data are respectively stored in the distributed ledger, thereby automatically executing the custodian function each time the first transaction data and the second transaction data are respectively stored in the distributed ledger.

[0018] In addition, in the management, an n-th child smart contract included in the n-th transaction data stored n-th (n is a natural number) in the distributed ledger of the one device among the first transaction data and the second transaction data may be managed as the one child smart contract in association with the parent smart contract.

[0019] Therefore, the nth child smart contract included in the nth transaction data can be managed as a child smart contract in association with the parent smart contract.

[0020] Moreover, the n may be 1.

[0021] Therefore, the first child smart contract included in the transaction data initially stored in the distributed ledger can be managed as a child smart contract in association with the parent smart contract.

[0022] Moreover, the value n may be determined randomly.

[0023] Therefore, child smart contracts included in the transaction data stored in the distributed ledger in a randomly determined order can be managed as one child smart contract in association with a parent smart contract. In this way, since the order of the selected child smart contracts is random and can be changed, it is possible to prevent a child smart contract associated with a parent smart contract from being replaced with a modified child smart contract.

[0024] In addition, the management may involve managing an identifier that identifies the nth child smart contract as an identifier of the one child smart contract, thereby managing the nth child smart contract in association with the parent smart contract as the one smart contract.

[0025] This makes it easy to associate a parent smart contract with one child smart contract.

[0026] In addition, in the management, a child smart contract included in transaction data stored in the distributed ledger of the one device in an order other than the nth order does not have to be managed as a child smart contract of the one device.

[0027] For this reason, only the nth child smart contract can be associated with a parent smart contract.

[0028] In addition, the management may invalidate child smart contracts included in transaction data stored in the distributed ledger of one of the devices in an order other than the nth order.

[0029] This allows only the n-th child smart contract to be associated with the parent smart contract, and also prevents the occurrence of a process that attempts to execute an invalid child smart contract, thereby reducing the processing load.

[0030] In addition, the management may execute a discard function to discard a child smart contract included in transaction data stored in the distributed ledger of the one device in an order other than the nth order.

[0031] For this reason, only the n-th child smart contract can be associated with the parent smart contract. Also, it is possible to prevent the occurrence of a process that attempts to execute a discarded child smart contract, thereby reducing the processing load.

[0032] In addition, an apparatus according to an embodiment of the present disclosure is a management system including a plurality of devices each holding a distributed ledger, the apparatus being one of the plurality of devices and including a processor and a memory, the distributed ledger storing a parent smart contract including an auto-generation function for automatically generating a new smart contract, and a management function for selecting and managing one of a plurality of child smart contracts generated by execution of the auto-generation function in the plurality of devices, the processor using the memory to execute the auto-generation function to generate a first child smart contract, and a first transaction data including the second child smart contract generated by executing the automatic generation function in the other device, storing the first transaction data in the distributed ledger of the first device, receiving second transaction data including the second child smart contract generated by executing the automatic generation function in the other device, storing the second transaction data in the distributed ledger of the first device, and executing the management function stored in the distributed ledger to manage one of the first child smart contract and the second child smart contract in association with the parent smart contract.

[0033] According to this, one child smart contract is selected from among multiple child smart contracts generated by executing an automatic generation function included in the parent smart contract in each of multiple devices, and the selected child smart contract is managed in association with the parent smart contract. This makes it possible to prevent multiple child smart contracts that are identical to each other and automatically generated from the same parent smart contract from being held in duplicate. This makes it possible to prevent multiple child smart contracts with the same content from being executed in each device, and to prevent inconsistencies from occurring in the operation of the management system. This makes it possible to operate the management system that manages the distributed ledger correctly.

[0034] A program according to an embodiment of the present disclosure is a program for causing a computer to execute a control method executed by one of a plurality of devices in a management system having a plurality of devices each holding a distributed ledger, the program comprising: a distributed ledger storing a parent smart contract including an auto-generation function for automatically generating a new smart contract; and a management function for selecting and managing one of a plurality of child smart contracts generated by execution of the auto-generation function in the plurality of devices; the program generating a first child smart contract by executing the auto-generation function; and a first transaction including the generated first child smart contract. a program for causing a computer to execute the following steps: transmit the first transaction data to another device among the plurality of devices, store the first transaction data in a distributed ledger of the one device, receive second transaction data including a second child smart contract generated by executing the automatic generation function in the other device, store the second transaction data in the distributed ledger of the one device, and execute the management function stored in the distributed ledger, thereby managing one of the first child smart contract and the second child smart contract in association with the parent smart contract.

[0035] According to this, one child smart contract is selected from among multiple child smart contracts generated by executing an automatic generation function included in the parent smart contract in each of multiple devices, and the selected child smart contract is managed in association with the parent smart contract. This makes it possible to prevent multiple child smart contracts that are identical to each other and automatically generated from the same parent smart contract from being held in duplicate. This makes it possible to prevent multiple child smart contracts with the same content from being executed in each device, and to prevent inconsistencies from occurring in the operation of the management system. This makes it possible to operate the management system that manages the distributed ledger correctly.

[0036] Hereinafter, the embodiments will be described with reference to the drawings. Note that each of the embodiments described below shows a specific example of the present disclosure. In other words, the numerical values, shapes, materials, components, arrangement and connection of the components, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present disclosure. In addition, among the components in the following embodiments, components that are not described in the independent claims showing the highest concept are not necessarily required to achieve the object of the present disclosure, but are described as components constituting a more preferred embodiment.

[0037] (Embodiment) First, the system configuration according to the present disclosure will be described.

[0038] The management system according to the present disclosure includes a plurality of servers, and stores a plurality of child smart contracts that are automatically generated by executing a parent smart contract in each server in a distributed ledger, and manages the plurality of child smart contracts. The configuration of the management system according to the present embodiment will be described below with reference to the drawings.

[0039] [Management system] FIG. 1 is a diagram illustrating an example of a configuration of a management system according to an embodiment.

[0040] The management system according to the present embodiment includes, for example, servers 10a to 10c, as shown in FIG. 1. The servers 10a to 10c may all be connected to each other via a network, may all be directly connected to be able to communicate, or may be partly connected to the network and partly connected directly to be able to communicate. The network may be, for example, the Internet or a mobile phone carrier network, but may be composed of any communication line or network. The servers 10a to 10c are an example of a plurality of devices constituting the management system. The plurality of devices constituting the management system may include one or more terminals, or may include only a plurality of terminals, without being limited to the servers 10a to 10c. The management system for managing a distributed ledger that stores a blockchain may be any of a public type, a private type, and a consortium type.

[0041] In the following description, each of the servers 10a to 10c will also be referred to as server 10, but the servers 10a to 10c may also be referred to as servers A to C.

[0042] The server 10 will now be described.

[0043] [Server 10] The server 10 is an example of one of a plurality of devices that hold a distributed ledger. The server 10 is a server managed by a business operator. The business operator may be, for example, a business operator that concludes a contract with a user. The contract may be a contract for a business that provides goods or services to a user in exchange for a predetermined value, or a contract that pays a predetermined value to a user in exchange for the user's labor. The contract may also be a contract stipulated by gift, purchase, exchange, loan for consumption, loan for use, lease, employment, contract, deposit, partnership, life annuity, settlement, etc.

[0044] The server 10 described here is one of the servers 10a to 10c. Among the servers 10a to 10c, servers other than this one server 10 will be referred to as other servers 10. In this embodiment, the other servers 10 will be described as being multiple. Therefore, hereinafter, when simply referring to the other server 10, the other server 10 indicates multiple other servers 10. Note that the other server 10 is not limited to this, and may be one.

[0045] FIG. 2 is a diagram illustrating an example of a configuration of a server according to the embodiment.

[0046] 2, the server 10 includes a communication unit 101, a transaction data generation unit 102, a transaction data verification unit 103, a state storage unit 104, a smart contract execution unit 105, a recording unit 106, and a distributed ledger 107. The server 10 can be realized by a processor executing a predetermined program using a memory. Each component will be described below.

[0047] <Communication Department 101> The communication unit 101 transmits execution transaction data to other servers 10. The execution transaction data is stored in the distributed ledger by the consensus algorithm of the servers 10a to 10c, and is transaction data for causing each of the servers 10a to 10c to execute the parent smart contract stored in the distributed ledger of each of the servers 10a to 10c. In each of the servers 10a to 10c, a child smart contract is generated as a new smart contract by executing the parent smart contract. Note that a parent smart contract is a smart contract that generates a new smart contract by being executed. A child smart contract is a new smart contract that is generated by executing a parent smart contract.

[0048] The communication unit 101 transmits first transaction data to the other server 10. The first transaction data includes a first child smart contract. The first child smart contract is generated by executing an auto-generation function in the server 10. In addition, the communication unit 101 receives second transaction data from the other server 10. The second transaction data includes a second child smart contract. The second child smart contract is generated by executing an auto-generation function in the other server 10.

[0049] The communication unit 101 may exchange data other than the above transactions with other servers 10. The communication unit 101 may also exchange data with devices (terminals) other than other servers 10.

[0050] In this manner, the communication unit 101 communicates with other servers 10. This communication may be performed using TLS (Transport Layer Security), and the communication unit 101 may hold an encryption key for the TLS communication.

[0051] <Transaction Data Generator 102> The transaction data generation unit 102 generates execution transaction data. In this embodiment, the execution transaction data includes execution information for causing the smart contract execution unit 105 to execute a parent smart contract stored in the distributed ledger 107. This execution information includes an identifier for identifying the parent smart contract and a value (argument) to be input to the parent smart contract. Note that the identifier for identifying the parent smart contract may be a storage location (address) in the distributed ledger 107 where the parent smart contract is stored, an identification number, or the name of the parent smart contract.

[0052] The transaction data generating unit 102 may temporarily store the generated execution transaction data in the state storage unit 104. The transaction data generating unit 102 may be provided in only one of the servers 10a to 10c. The transaction data generating unit 102 transmits the generated execution transaction data to the other servers 10 via the communication unit 101.

[0053] Furthermore, the transaction data generation unit 102 may generate first transaction data including a child smart contract generated by the smart contract execution unit 105 described later. The transaction data generation unit 102 may temporarily store the generated first transaction data in the state storage unit 104. The transaction data generation unit 102 transmits the generated first transaction data to another server 10 via the communication unit 101.

[0054] Here, the first transaction data will be explained.

[0055] FIG. 3 is an explanatory diagram showing a schematic diagram of the first transaction data. The first transaction data includes the first child smart contract, the identifier of the parent smart contract as an argument, the signature of the server 10 that generated the first transaction data, and the transmission date and time of the first transaction data. In FIG. 3, the first transaction data generated by the server A is exemplified, and the "initialization function" indicates the function that is executed first when the smart contract A is executed. The initialization function includes a function of calling and executing the management function included in the management smart contract. The initialization function includes an identifier of the management smart contract. The identifier of the management smart contract may be the storage location (address) of the management smart contract in the distributed ledger 107, may be an identification number, or may be the name of the management smart contract. "Parent ID" indicates the identifier of the parent smart contract. "Smart contract A" indicates the child smart contract generated by the server A executing the parent smart contract. “My identifier” indicates the identifier of the child smart contract generated by Server A executing the parent smart contract, and specifically, it may be the storage location (address) in the distributed ledger 107 where the child smart contract is stored, an identification number, or the name of the child smart contract.

[0056] The first transaction data includes execution information for causing the smart contract execution unit 105 to execute the managed smart contract. This execution information includes an identifier for identifying the managed smart contract and a value (argument) to be input to the managed smart contract. Note that the identifier for identifying the managed smart contract may be a storage location (address) in the distributed ledger 107 where the managed smart contract is stored, an identification number, or the name of the managed smart contract.

[0057] The second transaction data generated by the other servers 10 is similar to the first transaction data, and therefore a description thereof will be omitted.

[0058] <Transaction Data Verification Unit 103> When the communication unit 101 receives transaction data, the transaction data verification unit 103 verifies the validity of the transaction data. For example, the transaction data verification unit 103 verifies whether a digital signature generated by a correct method is attached to the transaction data received by the communication unit 101. Note that this verification may be skipped. Here, the transaction data received by the communication unit 101 is the second transaction data.

[0059] Furthermore, when the transaction data generation unit 102 generates transaction data, the transaction data verification unit 103 verifies the validity of the transaction data. For example, the transaction data verification unit 103 verifies whether a digital signature generated by a correct method is attached to the transaction data generated by the transaction data generation unit 102. Note that this verification may be skipped. Here, the transaction data generated by the transaction data generation unit 102 is execution transaction data or first transaction data.

[0060] Furthermore, the transaction data verification unit 103 executes a consensus algorithm together with other servers 10 to reach a consensus on the validity of the transaction data.

[0061] Here, the consensus algorithm may be PBFT (Practical Byzantine Fault Tolerance) or other known consensus algorithms. Examples of known consensus algorithms include PoW (Proof of Work) and PoS (Proof of Stake). When PBFT is used as the consensus algorithm, the transaction data verification unit 103 receives reports from each of the other servers 10 indicating whether or not the verification of the transaction data has been successful, and determines whether or not the number of such reports exceeds a predetermined number. Then, when the number of such reports exceeds the predetermined number, the transaction data verification unit 103 may determine that the validity of the transaction data has been verified by the consensus algorithm.

[0062] When the transaction data verification unit 103 confirms the validity of the transaction data, it causes the recording unit 106 to record the transaction data.

[0063] In this embodiment, the transaction data verification unit 103 verifies the validity of the executed transaction data, the first transaction data, and the second transaction data.

[0064] <Status Storage Unit 104> The state storage unit 104 is a storage unit that stores the latest version of the data of the distributed ledger 107. The data stored in the state storage unit 104 is data that can be changed or deleted by a computer. The state storage unit 104 may store transaction data before being stored in the distributed ledger 107. The state storage unit 104 may store a smart contract called by the executed transaction data. The state storage unit 104 may also store variables of the smart contract stored in the distributed ledger 107. The state storage unit 104 may store transaction data generated by the transaction data generation unit 102. That is, the state storage unit 104 may store the executed transaction data and the first transaction data. The state storage unit 104 may store transaction data received by the communication unit 101. That is, the state storage unit 104 may store the second transaction data.

[0065] The state storage unit 104 may temporarily store each of the above-mentioned data.

[0066] <Smart Contract Execution Unit 105> The smart contract execution unit 105 executes the parent smart contract stored in the distributed ledger 107 based on the first execution information included in the execution transaction data. The smart contract execution unit 105 calls the parent smart contract stored in the distributed ledger 107 based on the identifier of the parent smart contract included in the first execution information, and stores the called parent smart contract in the state storage unit 104. The parent smart contract stored in the distributed ledger 107 includes an automatic generation function that automatically generates a new smart contract (child smart contract). The smart contract execution unit 105 executes the automatic generation function by executing the parent smart contract stored in the state storage unit 104. As a result, the smart contract execution unit 105 generates a new child smart contract. The smart contract execution unit 105 may temporarily store the generated child smart contract in the state storage unit 104.

[0067] Furthermore, the smart contract execution unit 105 executes the managed smart contract stored in the distributed ledger 107 based on the second execution information included in the first transaction data or the second transaction data. The smart contract execution unit 105 calls the managed smart contract stored in the distributed ledger 107 based on the identifier of the managed smart contract included in the second execution information, and stores the called managed smart contract in the state storage unit 104. The managed smart contract stored in the distributed ledger 107 includes a management function for managing one of the multiple child smart contracts generated by executing the automatic generation function in the multiple servers 10 as a valid child smart contract. The smart contract execution unit 105 executes the management function by executing the managed smart contract stored in the state storage unit 104. As a result, the smart contract execution unit 105 selects one of the multiple child smart contracts, and manages the selected one child smart contract in association with the parent smart contract. Specifically, the smart contract execution unit 105 stores the identifier of the parent smart contract and the identifier of the selected child smart contract in the state storage unit 104 in association with each other.

[0068] The multiple child smart contracts include a first child smart contract automatically generated on the server 10 based on the parent smart contract, and a second child smart contract automatically generated on the other server 10 based on the parent smart contract. As described above, the second child smart contract is included in the second transaction data received by the communication unit 101 from the other server 10.

[0069] <Recording Section 106> The recorder 106 records the transaction data by including the transaction data whose validity has been verified by the transaction data verifier 103 in a block and storing it in the distributed ledger 107.

[0070] In addition, the recording unit 106 may have a distributed ledger 107 configured therein.

[0071] <Distributed Ledger 107> The distributed ledger 107 stores transaction data including parent smart contracts. The distributed ledger 107 stores transaction data including administrative smart contracts that include administrative functions. The administrative smart contracts are smart contracts that are different from the parent smart contracts.

[0072] In addition, the parent smart contract may include a management function in addition to the automatic generation function. In this case, the distributed ledger 107 does not need to store transaction data including the management smart contract separately from the parent smart contract.

[0073] [Operation of the management system, etc.] Next, the operation of the management system configured as above will be described.

[0074] 4 and 5 are sequence diagrams showing an example of management processing of the management system according to the embodiment. FIG. 5 shows processing continued from FIG.

[0075] First, Server A generates execution transaction data, and transmits the generated execution transaction data to Server B and Server C (S101).

[0076] Next, Server A, Server B, and Server C execute a consensus algorithm to generate a block including the executed transaction data and store it in each distributed ledger 107 (S102).

[0077] When the consensus algorithm is executed on the executed transaction data, Server A, Server B, and Server C each execute an auto-generation function according to the parent smart contract (S103 to S105).

[0078] Next, Server A, Server B, and Server C generate new smart contracts. Specifically, Server A generates new smart contract A as a child smart contract using an automatic generation function (S106). Server B generates new smart contract B as a child smart contract using an automatic generation function (S107). Server C generates new smart contract C as a child smart contract using an automatic generation function (S108). Note that in FIG. 4, new smart contract A is represented as new SC_A, new smart contract B is represented as new SC_B, and new smart contract C is represented as new SC_C.

[0079] Next, Server A, Server B, and Server C each generate transaction data including the generated new smart contract. Specifically, Server A generates transaction data A including new smart contract A (S109). Server B generates transaction data B including new smart contract B (S110). Server C generates transaction data C including new smart contract C (S111). Note that in FIG. 4, transaction data A is represented as Tx_A, transaction data B is represented as Tx_B, and transaction data C is represented as Tx_C.

[0080] Next, Server A transmits the generated transaction data A to Server B and Server C (S112). Server B transmits the generated transaction data B to Server A and Server C (S113). Server C transmits the generated transaction data C to Server A and Server B (S114).

[0081] Next, Server A, Server B, and Server C execute a consensus algorithm to generate a block including transaction data A, transaction data B, and transaction data C, and store the block in each distributed ledger 107 (S115). Note that Server A, Server B, and Server C may execute a consensus algorithm for each transaction, generate a block including each transaction data, and store the block in each distributed ledger 107.

[0082] When the consensus algorithm is executed for the transaction data A, each of Server A, Server B, and Server C executes an initialization function by a management smart contract (S116 to S118). Specifically, in executing the initialization function, each of Server A, Server B, and Server C executes a management smart contract identified by an identifier included in the second execution information included in the transaction data A. As a result, Server A, Server B, and Server C execute a management function for the new smart contract A included in the transaction data A.

[0083] Next, each of Server A, Server B, and Server C sets a child smart contract to be associated with the parent smart contract by using the management function (S119 to S121). The details of this setting will be described later.

[0084] Similarly, when the consensus algorithm is executed for the transaction data B, each of Server A, Server B, and Server C executes the initialization function by the management smart contract (S122 to S124). Specifically, in executing the initialization function, each of Server A, Server B, and Server C executes the management smart contract identified by the identifier included in the second execution information included in the transaction data B. As a result, Server A, Server B, and Server C execute the management function for the new smart contract A included in the transaction data A.

[0085] Next, each of Server A, Server B, and Server C sets a child smart contract to be associated with the parent smart contract by using the management function (S125 to S127). The details of this setting will be described later.

[0086] Similarly, when the consensus algorithm is executed for the transaction data C, Server A, Server B, and Server C each execute an initialization function by a management smart contract (S128 to S130). Specifically, in executing the initialization function, Server A, Server B, and Server C each execute a management smart contract identified by an identifier included in the second execution information included in the transaction data C. As a result, Server A, Server B, and Server C execute a management function for the new smart contract A included in the transaction data A.

[0087] Next, each of Server A, Server B, and Server C sets a child smart contract to be associated with the parent smart contract by using the management function (S131 to S133). The details of this setting will be described later.

[0088] Next, the settings in steps S119 to S121, S125 to S127, and S131 to S133 will be described in detail.

[0089] First, a first example of the setting process will be described.

[0090] Fig. 6 is a diagram showing a first example of a setting process executed by a management function according to an embodiment. Fig. 7 is a diagram showing a first example of a management function according to an embodiment. Here, the process is described as being performed by server A, but similar processes are also performed by server B and server C. The setting process executed by the management function may also be referred to as a management process.

[0091] As shown in FIG. 6, the server A determines whether or not a smart contract included in transaction data that is first stored in the distributed ledger 107 among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed (S141). Specifically, the server A calls a management function stored in the distributed ledger 107 based on the second execution information included in the transaction data to be processed, and executes the called management function with the parent ID included in the transaction data to be processed as an argument. Then, as shown in FIG. 7, the server A determines whether or not a child ID associated with the parent ID (indicated as "child ID [parent ID]" in FIG. 7) is an indefinite value. Note that information indicating the correspondence between the parent ID and the child ID is stored in the state storage unit 104. In the information indicating this correspondence, an indefinite value is associated with the parent ID in the initial state. The indefinite value may be 0, may be null, or may be a predetermined fixed value. The indefinite value may be information indicating that the child ID is not associated with the parent ID. If the child ID associated with the parent ID is an undefined value, server A determines that the smart contract included in the transaction data initially stored in the distributed ledger 107 is the new smart contract included in the transaction data to be processed.

[0092] Next, when Server A determines that the smart contract included in the transaction data to be processed that is first stored in the distributed ledger 107 among multiple child smart contracts generated from the same parent smart contract (Yes in S141), Server A stores the identifier of this new smart contract in association with the identifier of the parent smart contract (S142). As a result, Server A manages this new smart contract in association with the parent smart contract. For example, Server A updates (replaces) an indefinite value associated with the parent ID in the information indicating the correspondence stored in the state storage unit 104 to the identifier of the new smart contract.

[0093] On the other hand, when Server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 first among multiple child smart contracts generated from the same parent smart contract is not the new smart contract included in the transaction data to be processed (No in S141), it terminates the setting process. In other words, Server A terminates the setting process without updating the information indicating the correspondence stored in the state storage unit 104. Therefore, Server A does not manage the smart contracts included in the transaction data stored in the distributed ledger 107 second or later in association with the parent smart contract.

[0094] For example, as shown in Fig. 5, among new smart contract A, new smart contract B, and new smart contract C, server A first executes the initialization function for new smart contract A, and therefore in the setting process of step S119, server A associates new smart contract A with the parent smart contract. Then, for new smart contract B and new smart contract C, in the information indicating the correspondence, server A maintains the information indicating the correspondence because the parent smart contract has already been associated with new smart contract A.

[0095] In the setting process in the first example, of the first transaction data and the second transaction data, the first child smart contract included in the first transaction data that is first stored in the distributed ledger 107 of the server A is managed as one child smart contract in association with the parent smart contract. Therefore, the first child smart contract included in the first transaction data can be managed as one child smart contract in association with the parent smart contract.

[0096] Next, a second example of the setting process will be described.

[0097] Fig. 8 is a diagram showing a second example of the setting process executed by the management function according to the embodiment. Fig. 9 is a diagram showing a second example of the management function according to the embodiment. Here, the process is explained as the process of server A, but the same process is also performed in server B and server C.

[0098] As shown in Fig. 8, Server A determines whether a smart contract included in transaction data stored in the distributed ledger 107 as the nth among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed (S151). n is a natural number and may be a predetermined fixed value. Specifically, Server A calls a management function stored in the distributed ledger 107 based on the second execution information included in the transaction data to be processed, and executes the called management function with the parent ID included in the transaction data to be processed as an argument.

[0099] Note that n may be set to a different value if the parent ID is different. n may be a value randomly determined for each parent ID. Therefore, child smart contracts included in the transaction data stored in the distributed ledger in a randomly determined order can be associated with a parent smart contract as one child smart contract and managed. In this way, since the order of the selected child smart contracts is random and can be changed, it is possible to prevent a child smart contract associated with a parent smart contract from being replaced with a modified child smart contract.

[0100] Then, as shown in FIG. 9, Server A determines whether the value obtained by adding 1 to the counter associated with the parent ID (in FIG. 9, indicated as "Counter [Parent ID]") is n. The counter associated with the parent ID is stored in state storage unit 104. In the initial state, the value of this counter is set to 0. Each time Server A executes step S151, it updates the value indicated by the counter associated with the parent ID to a value obtained by adding 1 to the value indicated by the counter.

[0101] Next, when Server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 as the nth among multiple child smart contracts generated from the same parent smart contract is the new smart contract included in the transaction data to be processed (Yes in S151), Server A stores the identifier of this new smart contract in association with the identifier of the parent smart contract (S152). As a result, Server A manages this new smart contract in association with the parent smart contract. Server A stores, for example, the parent ID and the identifier of this new smart contract in association with each other.

[0102] On the other hand, when Server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 in the nth order among multiple child smart contracts generated from the same parent smart contract is not the new smart contract included in the transaction data to be processed (No in S151), it terminates the setting process. In other words, Server A terminates the setting process without updating the information indicating the correspondence stored in the state storage unit 104. Therefore, Server A does not manage the smart contract included in the transaction data stored in the distributed ledger 107 in an order other than the nth order in association with the parent smart contract.

[0103] For example, when n is set to 2, as shown in FIG. 5, server A executes the initialization function secondly on new smart contract B, which is stored second in the distributed ledger 107 among new smart contract A, new smart contract B, and new smart contract C. In the setting process of step S119, new smart contract A is not associated with the parent smart contract. In the setting process of step S125, new smart contract B is associated with the parent smart contract. And in the setting process of step S131, new smart contract C is not associated with the parent smart contract.

[0104] In the setting process in the second example, the nth child smart contract included in the nth transaction data (n is a natural number) stored in the distributed ledger 107 of server A among the first transaction data and the second transaction data is managed as one child smart contract in association with the parent smart contract. Therefore, the nth child smart contract included in the nth transaction data can be managed as one child smart contract in association with the parent smart contract.

[0105] In addition, in the setting process in the first and second examples, the child smart contracts included in the transaction data stored in the distributed ledger of server A from the second onwards are not managed as one child smart contract. Therefore, only the nth child smart contract can be associated with the parent smart contract.

[0106] Next, a third example of the setting process will be described.

[0107] Fig. 10 is a diagram showing a third example of the setting process executed by the management function. Fig. 11 is a diagram showing a third example of the management function. Here, the process is explained as the process of server A, but the same process is also performed in server B and server C.

[0108] 10, Server A determines whether or not a smart contract included in transaction data to be processed that is first stored in the distributed ledger 107 among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed (S161). Step S161 is similar to step S141, and therefore a detailed description thereof will be omitted.

[0109] Next, when Server A determines that the smart contract included in the transaction data to be processed that is first stored in the distributed ledger 107 among multiple child smart contracts generated from the same parent smart contract is the new smart contract included in the transaction data to be processed (Yes in S161), Server A stores the identifier of this new smart contract in association with the identifier of the parent smart contract (S162). Step S162 is similar to step S142, and therefore a detailed description thereof will be omitted.

[0110] On the other hand, when server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 first among multiple child smart contracts generated from the same parent smart contract is not the new smart contract included in the transaction data to be processed (No in S161), server A invalidates the smart contract included in the transaction data stored in the distributed ledger 107 second or later (S163). Server A may invalidate the smart contract included in the transaction data stored in the distributed ledger 107 second or later by adding invalidation information indicating that the smart contract is invalid to the smart contract included in the transaction data stored in the distributed ledger 107 second or later. The invalidation information may be indicated by, for example, a flag indicating whether the smart contract is valid or invalid. In other words, the invalidation information may be a flag set to a value indicating invalidity.

[0111] Note that server A may validate a smart contract included in the transaction data initially stored in the distributed ledger 107 by adding validity information indicating that the smart contract is valid. The validity information may be indicated by, for example, a flag indicating whether the smart contract is valid or invalid. In other words, the validity information may be a flag set to a value indicating validity.

[0112] For example, as shown in Fig. 5, among new smart contract A, new smart contract B, and new smart contract C, server A first executes the initialization function for new smart contract A, and therefore in the setting process of step S119, server A associates new smart contract A with the parent smart contract. Then, server A disables new smart contract B and new smart contract C.

[0113] In the setting process in the third example, the first child smart contract included in the first transaction data that is first stored in the distributed ledger 107 of server A, out of the first transaction data and the second transaction data, is managed as one child smart contract in association with the parent smart contract. Therefore, the first child smart contract included in the first transaction data can be managed as one child smart contract in association with the parent smart contract.

[0114] In addition, in the setting process in the third example, the second and subsequent child smart contracts included in the transaction data stored in the distributed ledger 107 of server A are invalidated. This makes it possible to associate only the first child smart contract with the parent smart contract. It is also possible to prevent the occurrence of a process that attempts to execute an invalid child smart contract, thereby reducing the processing load.

[0115] Next, a fourth example of the setting process will be described.

[0116] Fig. 12 is a diagram showing a fourth example of the setting process executed by the management function. Fig. 13 is a diagram showing a fourth example of the management function. Here, the process will be described as that of server A, but similar processes are also performed in servers B and C.

[0117] 12, Server A determines whether or not a smart contract included in transaction data stored in the distributed ledger 107 as the nth among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed (S171). Step S171 is similar to step S151, and therefore a detailed description thereof will be omitted.

[0118] Next, when Server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 as the nth among multiple child smart contracts generated from the same parent smart contract is the new smart contract included in the transaction data to be processed (Yes in S171), Server A stores the identifier of this new smart contract in association with the identifier of the parent smart contract (S172). Step S172 is similar to step S152, and therefore a detailed description will be omitted.

[0119] On the other hand, if Server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 in the nth order among multiple child smart contracts generated from the same parent smart contract is not the new smart contract included in the transaction data to be processed (No in S171), it invalidates the smart contract included in the transaction data stored in the distributed ledger 107 in an order other than the nth order (S173). Step S173 is similar to step S163, and therefore a detailed description will be omitted.

[0120] For example, when n is set to 2, as shown in FIG. 5, server A executes the initialization function secondly on new smart contract B, which is stored second in the distributed ledger 107 among new smart contract A, new smart contract B, and new smart contract C. In the setting process of step S119, new smart contract A is disabled. In the setting process of step S125, new smart contract B is associated with the parent smart contract. Then, in the setting process of step S131, new smart contract C is disabled.

[0121] In the setting process in the fourth example, of the first transaction data and the second transaction data, the nth child smart contract included in the nth transaction data stored nth (n is a natural number) in the distributed ledger 107 of server A is managed as one child smart contract in association with the parent smart contract. Therefore, the nth child smart contract included in the nth transaction data can be managed as one child smart contract in association with the parent smart contract.

[0122] In addition, in the setting process in the fourth example, child smart contracts included in the transaction data stored in the distributed ledger 107 of server A in an order other than the nth order are invalidated. This makes it possible to associate only the nth child smart contract with the parent smart contract. In addition, it is possible to prevent the occurrence of a process that attempts to execute an invalid child smart contract, thereby reducing the processing load.

[0123] Next, a fifth example of the setting process will be described.

[0124] Fig. 14 is a diagram showing a fifth example of the setting process executed by the management function. Fig. 15 is a diagram showing a fifth example of the management function. Here, the process is explained as the process of server A, but similar processes are also performed in server B and server C.

[0125] 14, Server A determines whether or not a smart contract included in transaction data to be processed that is first stored in the distributed ledger 107 among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed (S181). Step S181 is similar to step S141, and therefore a detailed description thereof will be omitted.

[0126] Next, when Server A determines that the smart contract included in the transaction data to be processed that is first stored in the distributed ledger 107 among multiple child smart contracts generated from the same parent smart contract is the new smart contract included in the transaction data to be processed (Yes in S181), Server A stores the identifier of this new smart contract in association with the identifier of the parent smart contract (S182). Step S182 is similar to step S142, and therefore a detailed description thereof will be omitted.

[0127] On the other hand, when Server A determines that the smart contract included in the transaction data stored first in the distributed ledger 107 among multiple child smart contracts generated from the same parent smart contract is not the new smart contract included in the transaction data to be processed (No in S181), it executes a destroy function on the smart contract included in the transaction data stored second or later in the distributed ledger 107 (S183). The destroy function is, for example, selfdestruct, which indicates a destroy function of a smart contract in Ethereum, and is a function that sets the smart contract to be processed by this function to an invalid state on the distributed ledger 107. For example, Server A can invalidate the block of the blockchain in which the smart contract is stored by executing the destroy function on the smart contract.

[0128] For example, as shown in Fig. 5, among new smart contract A, new smart contract B, and new smart contract C, server A first executes the initialization function for new smart contract A, and therefore associates new smart contract A with the parent smart contract in the setting process of step S119. Then, server A executes the destroy function for new smart contract B and new smart contract C.

[0129] In the setting process in the fifth example, the first child smart contract included in the first transaction data that is first stored in the distributed ledger 107 of server A, out of the first transaction data and the second transaction data, is managed as one child smart contract in association with the parent smart contract. Therefore, the first child smart contract included in the first transaction data can be managed as one child smart contract in association with the parent smart contract.

[0130] Furthermore, in the setting process in the fifth example, a discard function for discarding a smart contract is executed for child smart contracts included in the transaction data stored in the distributed ledger 107 of server A from the second onwards. This makes it possible to associate only the second and subsequent child smart contracts with the parent smart contract. It is also possible to prevent the occurrence of a process that attempts to execute a discarded child smart contract, thereby reducing the processing load.

[0131] Next, a sixth example of the setting process will be described.

[0132] Fig. 16 is a diagram showing a sixth example of the setting process executed by the management function. Fig. 17 is a diagram showing a sixth example of the management function. Here, the process is explained as the process of server A, but similar processes are also performed in server B and server C.

[0133] 16, Server A determines whether or not a smart contract included in transaction data stored in the distributed ledger 107 as the nth among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed (S191). Step S191 is similar to step S151, and therefore a detailed description thereof will be omitted.

[0134] Next, when Server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 as the nth among multiple child smart contracts generated from the same parent smart contract is the new smart contract included in the transaction data to be processed (Yes in S191), Server A stores the identifier of this new smart contract in association with the identifier of the parent smart contract (S192). Step S192 is similar to step S152, and therefore a detailed description will be omitted.

[0135] On the other hand, if Server A determines that the smart contract included in the transaction data stored in the distributed ledger 107 in the nth order among multiple child smart contracts generated from the same parent smart contract is not the new smart contract included in the transaction data to be processed (No in S191), it executes the discard function for the smart contract included in the transaction data stored in the distributed ledger 107 in an order other than the nth order (S193). Step S193 is similar to step S183, and therefore a detailed description will be omitted.

[0136] For example, when n is set to 2, as shown in FIG. 5, server A executes the initialization function second on new smart contract B, which is stored second in the distributed ledger 107 among new smart contract A, new smart contract B, and new smart contract C. In the setting process of step S119, the discard function is executed on new smart contract A. In the setting process of step S125, the new smart contract B is associated with the parent smart contract. Then, in the setting process of step S131, the discard function is executed on new smart contract C.

[0137] In the setting process in the sixth example, of the first transaction data and the second transaction data, the nth child smart contract included in the nth transaction data stored nth (n is a natural number) in the distributed ledger 107 of server A is managed as one child smart contract in association with the parent smart contract. For this reason, the nth child smart contract included in the nth transaction data can be managed as one child smart contract in association with the parent smart contract.

[0138] Furthermore, in the setting process in the sixth example, a discard function is executed to discard a child smart contract included in transaction data stored in the distributed ledger 107 of server A in an order other than the nth. This makes it possible to associate only the nth child smart contract with the parent smart contract. It is also possible to prevent the occurrence of a process that attempts to execute a discarded child smart contract, thereby reducing the processing load.

[0139] In addition, in step S141, S161, or S181, Server A may determine whether or not the smart contract in which the management function has been executed first among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed. In other words, Server A may manage the smart contract in which the management function has been executed first among multiple child smart contracts generated from the same parent smart contract in association with the parent smart contract.

[0140] In addition, in step S151, S171, or S191, Server A may determine whether or not the smart contract for which the management function has been executed n-th among multiple child smart contracts generated from the same parent smart contract is a new smart contract included in the transaction data to be processed. In other words, Server A may manage the smart contract for which the management function has been executed n-th among multiple child smart contracts generated from the same parent smart contract in association with the parent smart contract.

[0141] In addition, in server A, transaction data A is an example of first transaction data, and transaction data B and transaction data C are examples of second transaction data.

[0142] [Effects, etc.] As described above, according to the management system etc. according to the embodiment, one child smart contract is selected from among multiple child smart contracts generated by executing the automatic generation function included in the parent smart contract on each of the multiple servers 10, and the selected child smart contract is managed in association with the parent smart contract. This makes it possible to prevent multiple child smart contracts that are identical to each other and automatically generated from the same parent smart contract from being held in duplicate. This makes it possible to prevent multiple child smart contracts with the same content from being executed on each device, and to prevent inconsistencies from occurring in the operation of the management system. Therefore, the management system that manages the distributed ledger 107 can be operated correctly.

[0143] Moreover, according to the management system etc. according to the embodiment, the management function is included in a parent smart contract or a management smart contract different from the parent smart contract. The management smart contract is stored in the distributed ledger 107. The first transaction data includes execution information for executing the management function for the first child smart contract. The second transaction data includes execution information for executing the management function for the second child smart contract. Therefore, the parent smart contract or the management smart contract can be executed every time the first transaction data and the second transaction data are stored in the distributed ledger 107. This makes it possible to automatically execute the management function every time the first transaction data and the second transaction data are stored in the distributed ledger 107.

[0144] Furthermore, in the management system etc. according to the embodiment, in the management, the nth child smart contract included in the nth transaction data (n is a natural number) stored in the distributed ledger 107 of the server A among the first transaction data and the second transaction data is managed as one child smart contract in association with the parent smart contract. Therefore, the nth child smart contract included in the nth transaction data can be managed as one child smart contract in association with the parent smart contract.

[0145] [Other embodiments] As described above, the present disclosure has been described based on the above-mentioned embodiment, but the present disclosure is not limited to the above-mentioned embodiment. The following cases are also included in the present disclosure.

[0146] (1) Each device in the above embodiments is specifically a computer system composed of a microprocessor, ROM, RAM, a hard disk unit, a display unit, a keyboard, a mouse, etc. A computer program is recorded in the RAM or hard disk unit. Each device achieves its function by the microprocessor operating in accordance with the computer program. Here, the computer program is composed of a combination of multiple instruction codes that indicate commands for a computer to achieve a specified function.

[0147] (2) In each of the above embodiments, some or all of the constituent elements may be configured from a single system LSI (Large Scale Integration). The system LSI is a super multi-function LSI manufactured by integrating multiple components on a single chip, and specifically, is a computer system including a microprocessor, ROM, RAM, etc. A computer program is recorded in the RAM. The system LSI achieves its functions by the microprocessor operating in accordance with the computer program.

[0148] Furthermore, each of the components constituting each of the above devices may be implemented as a single chip, or some or all of the components may be included in a single chip.

[0149] In addition, although we have referred to it as a system LSI here, it may also be called an IC, LSI, super LSI, or ultra LSI depending on the degree of integration. Also, the method of integration is not limited to LSI, but may be realized by a dedicated circuit or a general-purpose processor. It is also possible to use an FPGA (Field Programmable Gate Array) that can be programmed after the LSI is manufactured, or a reconfigurable processor that can reconfigure the connections and settings of the circuit cells inside the LSI.

[0150] Furthermore, if a new integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derivative technology, it is possible to integrate the functional blocks using that technology. The application of biotechnology is also a possibility.

[0151] (3) Some or all of the components constituting each of the above devices may be composed of an IC card or a standalone module that is detachable from each device. The IC card or the module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or the module may include the above-mentioned ultra-multifunction LSI. The microprocessor operates according to a computer program, causing the IC card or the module to achieve its functions. The IC card or the module may be tamper-resistant.

[0152] (4) The present disclosure may be embodied as any of the methods described above. It may also be embodied as a computer program for implementing these methods by a computer, or as a digital signal comprising the computer program.

[0153] Furthermore, the present disclosure may be a computer program or a digital signal recorded on a computer-readable recording medium, such as a flexible disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray (registered trademark) Disc), a semiconductor memory, etc. Also, the present disclosure may be a digital signal recorded on such a recording medium.

[0154] Furthermore, the present disclosure may involve transmitting the computer program or the digital signal via a telecommunications line, a wireless or wired communication line, a network such as the Internet, data broadcasting, or the like.

[0155] The present disclosure may also provide a computer system having a microprocessor and a memory, the memory storing the computer program, and the microprocessor operating in accordance with the computer program.

[0156] In addition, the program or the digital signal may be implemented by another independent computer system by recording it on the recording medium and transferring it, or by transferring the program or the digital signal via the network, etc.

[0157] (5) The above-described embodiments and modifications may be combined with each other. [Industrial Applicability]

[0158] The present disclosure can be used in a control method, a server, and a program, and can be used in, for example, a control method, a server, and a program that can appropriately detect fraudulent transactions in transactions. [Explanation of symbols]

[0159] 10, 10a~10c servers 101 Communications Department 102 Transaction Data Generation Unit 103 Transaction Data Verification Department 104 Status memory unit 105 Smart Contract Execution Department 106 Recording Section 107 Distributed Ledgers

Claims

1. A control method executed by one of a plurality of devices in a management system having a distributed ledger, the method comprising: The distributed ledger stores a parent smart contract including an auto-generation function for automatically generating a new smart contract, and a management function for selecting and managing one of a plurality of child smart contracts generated by executing the auto-generation function in the plurality of devices; Executing the automatic generation function to generate a first child smart contract; Sending first transaction data including the generated first child smart contract to another device among the plurality of devices, and storing the first transaction data in a distributed ledger of the one device; Receive second transaction data including a second child smart contract generated by executing the automatic generation function on the other device, and store the second transaction data in a distributed ledger of the one device; By executing the management function stored in the distributed ledger, one of the first child smart contract and the second child smart contract is managed in association with the parent smart contract. Control methods.

2. The management functionality is included in the parent smart contract or in a management smart contract that is distinct from the parent smart contract; The management smart contract is stored on the distributed ledger; The first transaction data includes execution information for executing the management function for the first child smart contract; The second transaction data includes execution information for executing the management function on the second child smart contract. The control method according to claim 1 .

3. In the management, an n-th child smart contract included in an n-th transaction data stored in the distributed ledger of the one device in the n-th position (n is a natural number) among the first transaction data and the second transaction data is managed as the one child smart contract in association with the parent smart contract. The control method according to claim 1 or 2.

4. The n is 1. The control method according to claim 3.

5. The n is a randomly determined value. The control method according to claim 3.

6. In the management, an identifier for identifying the n-th child smart contract is managed as an identifier of the one child smart contract, thereby managing the n-th child smart contract as the one smart contract in association with the parent smart contract. A control method according to any one of claims 3 to 5.

7. In the management, a child smart contract included in transaction data stored in the distributed ledger of the one device in an order other than the n-th order is not managed as a child smart contract of the one device. A control method according to any one of claims 3 to 6.

8. In the management, a child smart contract included in transaction data stored in the distributed ledger of the one device is invalidated in an order other than the n-th order. A control method according to any one of claims 3 to 6.

9. In the management, a discard function is executed to discard a child smart contract included in the transaction data stored in the distributed ledger of the one device in an order other than the n-th order. A control method according to any one of claims 3 to 6.

10. In a management system having a plurality of devices each holding a distributed ledger, one of the plurality of devices comprises: A processor; A memory, The distributed ledger stores a parent smart contract including an auto-generation function for automatically generating a new smart contract, and a management function for selecting and managing one of a plurality of child smart contracts generated by executing the auto-generation function in the plurality of devices; The processor uses the memory to: Executing the automatic generation function to generate a first child smart contract; Sending first transaction data including the generated first child smart contract to another device among the plurality of devices, and storing the first transaction data in a distributed ledger of the one device; Receive second transaction data including a second child smart contract generated by executing the automatic generation function on the other device, and store the second transaction data in a distributed ledger of the one device; By executing the management function stored in the distributed ledger, one of the first child smart contract and the second child smart contract is managed in association with the parent smart contract. Device.

11. A program for causing a computer to execute a control method executed by one of a plurality of devices in a management system having a distributed ledger, the program comprising: The distributed ledger stores a parent smart contract including an auto-generation function for automatically generating a new smart contract, and a management function for selecting and managing one of a plurality of child smart contracts generated by executing the auto-generation function in the plurality of devices; Executing the automatic generation function to generate a first child smart contract; Sending first transaction data including the generated first child smart contract to another device among the plurality of devices, and storing the first transaction data in a distributed ledger of the one device; Receive second transaction data including a second child smart contract generated by executing the automatic generation function on the other device, and store the second transaction data in a distributed ledger of the one device; By executing the management function stored in the distributed ledger, one of the first child smart contract and the second child smart contract is managed in association with the parent smart contract. A program for a computer to execute.

Citation Information

Patent Citations

  • Method and apparatus to enforce smart contract execution hierarchy on blockchain

    US20180096360A1

  • Smart contract upgrade method and system based on alliance chain

    US20190278767A1

  • Trust management system and trust management method

    WO2018142948A1

  • System, method, and program for international trade

    WO2019003414A1