Communication system, node, and program
By dividing a group into subgroups with shared chain IDs, the communication system addresses storage capacity issues and transaction complexities, ensuring efficient processing and reduced ledger expansion.
Patent Information
- Application Number
- PCT/JP2024/015839
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-04-23
- Publication Date
- 2024-10-31
AI Technical Summary
As the number of nodes participating in a group and the frequency of transactions increase, the capacity of the ledger managed by the group expands, leading to storage capacity issues for each node, and dividing the group into subgroups can alleviate this but requires managing subledgers with different chain IDs, which complicates transaction processing.
A communication system that divides a group into subgroups, with each subgroup managing a subledger having the same chain ID as the original ledger, allowing nodes to continue using the old chain ID for transactions, thereby minimizing processing disruptions and storage demands.
This approach reduces the load on each node's storage capacity and maintains transaction efficiency by ensuring that transactions are processed correctly without requiring extensive updates to the ledger, while also reducing the frequency of block additions to the common ledger.
Smart Images

Figure JP2024015839_31102024_PF_FP_ABST
Abstract
Description
Communication system, node, and program
[0001] The present disclosure relates to a communication system, a node, and a program that use distributed ledger technology.
[0002] In recent years, blockchain, a type of distributed ledger technology, has been utilized in various fields. Blockchain generates units of data called blocks, and each node stores and manages a ledger in which the blocks are linked together like a chain. The data contained in a block includes the hash value of the previous block, a timestamp, and transaction data between participants (nodes).
[0003] In order to tamper with the data of a specific block, all subsequent blocks must be tampered with to ensure the consistency of the hash value, making it tamper-resistant. In addition, consensus among nodes is required when generating a block, which also contributes to its tamper-resistance in the sense that it prevents the recording of fraudulent transaction data.
[0004] In addition, blockchain uses a peer-to-peer (P2P) network in which data is exchanged directly between nodes, making it fault-tolerant, meaning that even if a failure occurs in one node, the entire system will not go down.
[0005] In a blockchain, multiple nodes that share the same ledger are called a "group." Each ledger is assigned an identifier (also called a "chain ID"). When issuing a transaction in a blockchain with a certain node as the counterparty, it is necessary to specify the chain ID assigned to the ledger held by that node.
[0006] As the number of nodes participating in a group and / or the frequency of transactions increase, the size of the ledger managed by the group increases (i.e., becomes bloated), and the storage capacity of each node becomes constrained. In this case, by dividing the group and managing a ledger (also called a "sub-ledger") for each divided group (also called a "sub-group"), it is possible to reduce the number of nodes and transactions in each group and alleviate or eliminate this problem.
[0007] Patent No. 6274680
[0008] A communication system according to a first aspect is a system that uses distributed ledger technology. The communication system includes a plurality of nodes that form a group that manages a ledger. When the group is divided into a plurality of subgroups, the plurality of nodes manage new sub-ledgers that are individually established for each subgroup. The chain ID of the sub-ledger of each subgroup is the same as the chain ID of the ledger.
[0009] A node according to a second aspect is a node that constitutes a group that manages a ledger in a communication system using distributed ledger technology. When the group is divided into multiple subgroups, the node includes a control unit that manages new sub-ledgers individually provided for each subgroup. The chain ID of the sub-ledger of each subgroup is the same as the chain ID of the ledger.
[0010] A program according to a third aspect causes a node constituting a group that manages a ledger in a communication system using distributed ledger technology to execute a process of managing a new sub-ledger provided individually for each sub-group when the group is divided into multiple sub-groups, wherein the chain ID of the sub-ledger for each sub-group is the same as the chain ID of the ledger.
[0011] 1. A diagram showing an example of a network configuration in a communication system using general blockchain technology.
[0033] FIG. 1 is a diagram showing an example of a configuration of a ledger managed by each node according to an embodiment.
[0034] FIG. 2 is a diagram showing an example of an operation when a new block is added to a ledger.
[0035] FIG. 3 is a diagram showing an example of an operation when a new block is added to a ledger.
[0036] FIG. 4 is a diagram showing an example of a configuration of each node according to an embodiment.
[0037] FIG. 5 is a diagram for explaining group division according to the first embodiment.
[0038] FIG. 6 is a diagram for explaining group division according to the first embodiment.
[0039] FIG. 7 is a diagram for explaining the operation of generating blocks when a transaction in Table 2 is issued according to the first embodiment.
[0039] FIG. 8 is a diagram for explaining the operation of generating blocks when a transaction in Table 2 is issued according to the first embodiment.
[0039] FIG. 9 is a diagram for explaining an example of an operation of assigning height to each block according to the first embodiment.
[0039] FIG. 10 is a diagram for explaining the role of each node before and after generating a sub-ledger according to the first embodiment.
[0039] FIG. 11 is a diagram showing an example of an operation when a sub-ledger is generated according to the first embodiment.
[0039] FIG. 12 is a diagram for explaining the operation when a transaction occurs between nodes in the same sub-group according to the first embodiment.
[0039] FIG. 13 is a diagram showing an example of an operation from when a transaction such as that in FIG. 13 is issued until a block is added.
[0039] FIG. 14 is a diagram for explaining the operation when a transaction occurs between nodes in different sub-groups according to the first embodiment.
[0039] FIG. 15 is a diagram showing an example of an operation from when a transaction such as that in FIG. 15 is issued until a block is FIG. 1 is a diagram for explaining the effect of reducing the amount of calculation when a hierarchical structure network according to a second embodiment is compared with a general network configuration (see FIG. 1). FIG. 2 is a diagram for explaining a link between an upper hierarchy ledger and a lower hierarchy ledger according to the second embodiment. FIG. 3 is a diagram for explaining an example of operation when a group is formed below a group according to the second embodiment. FIG. 4 is a diagram for explaining an example of operation when a group is formed below a group according to the second embodiment. FIG. 5 is a diagram for explaining grouping of lower hierarchy groups according to the second embodiment. FIG. 6 is a diagram for explaining grouping of lower hierarchy groups according to the second embodiment.FIG. 10 is a diagram for explaining priority within a group according to the second embodiment. FIG. 11 is a diagram for explaining priority within a group according to the second embodiment. FIG. 12 is a diagram for explaining an example of node parameters to be stored in a ledger according to the second embodiment. FIG. 13 is a diagram for explaining operations relating to group division in a hierarchical structure network according to the second embodiment. FIG. 14 is a diagram for explaining a block addition operation when a transaction of Table 2 is issued in a hierarchical structure network according to the second embodiment. FIG. 15 is a diagram for explaining an example of operations when a transaction occurs between nodes of different subgroups according to the second embodiment.
[0012] When managing ledgers for each subgroup, if a chain ID (also referred to as a "new chain ID") different from the chain ID (also referred to as the "old chain ID") of the original ledger (also referred to as the "old ledger") managed in the group before the split is assigned to the sub-ledger, the following situation may occur when a transaction is issued in which the node holding that sub-ledger is the counterparty. That is, the node that is the source of a transaction with that node (issuing the transaction) may not be aware that the ledger held by that node has switched from the old ledger to the sub-ledger. Therefore, the source node may issue a transaction specifying the old chain ID as the ID of the ledger held by the counterparty node. In this case, the chain ID (new chain ID) of the ledger currently held by the counterparty node differs from the specified chain ID, and the transaction will not be processed normally. Therefore, it may be necessary to notify each node (each user) of the change in chain ID, which may have adverse effects, such as requiring users to reconsider their transaction issuance processes.
[0013] Therefore, the present disclosure aims to suppress the growth of the ledger while suppressing the adverse effects on transaction issuance processing.
[0014] A communication system according to an embodiment will be described with reference to the drawings. In the description of the drawings, the same or similar parts are denoted by the same or similar reference numerals.
[0015] (1) First Embodiment The first embodiment will be described with reference to FIGS. 1 to 16. FIG.
[0016] (1.1) Overview of Blockchain Technology and Communication System First, general blockchain technology will be described with reference to Figs. 1 to 5. Fig. 1 is a diagram showing an example of a network configuration in a communication system using general blockchain technology. In Fig. 1, lines connecting nodes 100 represent communication connections (also referred to as "P2P links") between the nodes 100.
[0017] Each node 100 is a device, such as a personal computer (PC), that has at least a communication function and a calculation function. In general blockchain technology, it is assumed that each node 100 has sufficient performance (specifications).
[0018] In blockchain technology, an autonomous distributed network, specifically a P2P network, is formed by a plurality of nodes 100. The nodes 100 are connected to each other so that they can communicate with each other. Communication between the nodes 100 may be performed via a public communication network and / or a local communication network. A P2P network in which data is exchanged directly between the nodes 100 provides fault tolerance in that the entire system will not go down even if a failure occurs in one of the nodes 100.
[0019] Each node 100 manages the history of transactions within the network as a ledger. When a transaction occurs at one node 100 (for example, node 100a), all participating nodes (nodes 100a to 100e) perform calculation (verification) processing. This provides a mechanism for leaving a correct transaction history that is extremely difficult to tamper with, even if a participating node 100 is found to be fraudulent and / or does not operate normally. Note that the node that performs the calculation processing when a transaction occurs may be only a portion of the nodes participating in the network.
[0020] A transaction may be, for example, a remittance or settlement of money or points, or the occurrence of communication. In this case, the transaction data stored in a block of the ledger may be data of a remittance or settlement. The transaction data may be data of communication. A transaction may be, for example, the joining or deletion of a node in a network. In this case, the transaction data stored in a block of the ledger may be data (parameters) of the node 100. A transaction may be an update of the ledger. The transaction data stored in a block of the ledger may be data (parameters) of the node 100.
[0021] A plurality of nodes 100 that share the same ledger constitute a group 200. Note that, although Fig. 1 illustrates a total of five nodes, 100a to 100e, as the nodes that constitute the group 200, the number of nodes 100 is not limited to five.
[0022] FIG. 2 is a diagram showing an example of the configuration of a ledger managed by each node 100 according to the first embodiment.
[0023] Each node 100 stores records of transactions that occur within the group 200 in blocks. Specifically, each node 100 stores and manages a ledger in which units of data called blocks are linked together in chronological order like a chain. Data contained in a block includes the hash value (also called "hash information") of the previous block, a timestamp, and transaction data between participants (nodes).
[0024] Each block has a block header, which is a header portion, and a transaction data portion that stores data of at least one transaction (also simply referred to as "data"). The block header stores a hash value calculated from the block generated immediately before. For example, the block header of block n+1 stores a hash value calculated from block n. The block header may further include a chain ID, which is an identifier for identifying the ledger, a height (also referred to as "height information") representing the block number (block order identifier), and a nonce, which is a value used to calculate the hash value.
[0025] In order to tamper with the data of a specific block, all subsequent blocks must also be tampered with to ensure the consistency of the hash value. If the chain is longer than a certain length, the amount of calculation required to tamper with all blocks subsequent to the specific block whose data is to be tampered with becomes enormous, making it difficult to carry out the tampering secretly. These characteristics make blockchain tamper-resistant. In addition, consensus among the nodes 100 is required when generating a block, which also contributes to its tamper-resistance in the sense that it prevents fraudulent transaction data from being recorded.
[0026] 3 and 4 are diagrams showing an example of the operation when a new block is added to the ledger (i.e., when the ledger is updated).
[0027] As shown in FIG. 3, after a transaction occurs within a group 200 constituting a P2P network, a node 100 called a "proposer" generates a new block corresponding to the transaction and proposes it by notifying other nodes 100 called "validators" of the new block. When a new block is proposed, a block ID may be assigned to the proposed block. The block ID is a value referenced by the node 100 to identify the block. By referencing the block ID, the node 100 can identify the block. Three or more of the nodes 100 in the group 200 act as validators.
[0028] For example, multiple nodes 100 calculate hash values by changing the nonce value and combining it with transaction data, etc., and a node 100 (proposer) that finds a hash value that meets certain conditions notifies other nodes 100 (validators) of the generated block. The other nodes 100 that receive the proposed new block verify the hash value of the new block. Here, we will proceed with the explanation assuming that the verification is successful.
[0029] Next, as shown in FIG. 4, other nodes 100 (validators) that receive the proposed new block vote to the node 100 (proposer) to accept the verified block as the new block. At this time, other nodes 100 (validators) that receive the proposed new block and vote for the node 100 (proposer) may specify a block ID along with the voting result to indicate that they are voting for the block. When the node 100 (proposer) receives a certain number of votes from other nodes 100 (voters), it confirms the proposed new block and updates the ledger by adding the new block to the ledger. The block header of the confirmed new block may include a height as information to identify the block, and may also include the block ID assigned to the block.
[0030] The group 200 may include a seed node that manages node information and / or connection information within the group 200. One node 100 may have two or more roles among the validator, proposer, and seed node.
[0031] Each node 100 may be a full node that holds and manages the entire ledger. Alternatively, some of the multiple nodes 100 may be light clients. A light client may be a node 100 that holds only a portion of the ledger and uses blockchain technology (e.g., a node 100 that holds assets and / or stores data in the ledger).
[0032] FIG. 5 is a diagram illustrating an example of the configuration of each node 100 according to the first embodiment.
[0033] 5, the node 100 includes a communication unit 110, a control unit 120, and a storage unit 130. The node 100 may also include a battery 140 and a user interface 150.
[0034] The communication unit 110 includes a communication interface for communicating with other nodes. The communication interface may be a wireless communication interface. The communication interface may also be a wired communication interface.
[0035] The control unit 120 performs various types of control and processing in the node 100. The operations of the node 100 described above and below may be operations under the control of the control unit 120. The control unit 120 includes at least one processor 121. The processor 121 executes programs stored in the storage unit 130 to perform various types of processing.
[0036] The storage unit 130 stores programs executed by the processor 121 and information used in processing by the processor 121. The storage unit 130 includes a non-volatile memory and a volatile memory. The storage unit 130 also stores a ledger.
[0037] The battery 140 stores power to be supplied to each part of the node 100 (device).
[0038] The user interface 150 functions as an interface with the user and includes a display unit that displays various information and an operation unit that accepts operations from the user.
[0039] (1.2) Division of Groups Next, division of the groups 200 according to the first embodiment will be described with reference to FIGS.
[0040] As the number of nodes 100 participating in group 200 and / or the frequency of transactions increase, the size of the ledger managed by group 200 increases (i.e., becomes bloated), resulting in a situation where the storage capacity of each node 100 becomes tight. In this case, as shown in Fig. 6, by dividing group 200 (group A) and managing a ledger for each divided group (subgroup B, subgroup C), the number of nodes and the number of transactions in the divided groups can be reduced, thereby alleviating or eliminating this problem.
[0041] In the example of Fig. 6(1), group A is made up of nodes 100a to 100h, and each of nodes 100a to 100h manages a ledger with chain ID: 0. Here, because the number of nodes in group A has increased, a new ledger with chain ID: 1 is generated, and some of the nodes 100 are made to participate in the ledger with chain ID: 1, as shown in Fig. 6(2).
[0042] In the example of Figure 6 (2), subgroup B is made up of nodes 100a to 100d, and subgroup C is made up of nodes 100e to 100h. Each node 100 in subgroup B continues to manage the ledger with chain ID: 0, and each node 100 in subgroup C newly manages the ledger with chain ID: 1.
[0043] In Figure 6 (2), if a transaction is issued specifying old chain ID: 0 with one of the nodes 100 in subgroup C as the transaction source, there is an issue that the transaction will not be processed normally because the transaction source is not participating in chain ID: 0. Also, if a transaction is issued from one of the nodes 100 in subgroup B to one of the nodes 100 in subgroup C by specifying old chain ID: 0, there is an issue that this transaction will not be processed normally either because the transaction destination is not chain ID: 0. Note that transactions between different chain IDs can be made possible by introducing a bridge, for example, but this does not solve the issue because it is assumed that the chain ID of the destination node is known.
[0044] 7 is a diagram illustrating division of the group 200 according to the first embodiment. In the following, an example in which group A is divided into two subgroups will be mainly described, but group A may also be divided into three or more subgroups.
[0045] In the first embodiment, when group A is divided into multiple subgroups (subgroup B and subgroup C in the illustrated example), the multiple nodes 100 that make up group A that manages ledgers manage new sub-ledgers that are individually provided for each subgroup. The chain ID of the sub-ledger of each subgroup is the same as the chain ID (old chain ID) of the original ledger.
[0046] As described above, the chain ID of the ledger held by the nodes belonging to the subgroup remains unchanged before and after the group split. As a result, even if group A is split to prevent the ledger from expanding, the correct chain ID can be specified when a transaction is issued with a node belonging to the subgroup as the counterparty, thereby preventing any adverse effects on the transaction issuance process. The ledger managed by subgroup B is also referred to as sub-ledger B, and the ledger managed by subgroup C is also referred to as sub-ledger C.
[0047] In the first embodiment, when a transaction occurs between nodes 100 belonging to the same subgroup, each node 100 belonging to the same subgroup updates the subledger managed by the same subgroup. In other words, for a transaction that is completed within a subgroup, only the corresponding subledger is updated.
[0048] For example, when a transaction occurs between nodes 100 belonging to subgroup B, each node 100 belonging to subgroup B (nodes 100a to 100d) updates sub-ledger B managed by subgroup B. In this case, each node 100 belonging to subgroup C (nodes 100e to 100h) does not need to update sub-ledger C managed by subgroup C, thereby reducing the update processing load on sub-ledger C and the expansion of sub-ledger C.
[0049] Furthermore, when a transaction occurs between nodes 100 belonging to subgroup C, each node 100 belonging to subgroup C (nodes 100e to 100h) updates sub-ledger C managed by subgroup C. In this case, each node 100 belonging to subgroup B (nodes 100a to 100d) does not need to update sub-ledger B managed by subgroup B, thereby reducing the update processing load on sub-ledger B and the expansion of sub-ledger B.
[0050] In the first embodiment, the multiple nodes 100a to 100h continue to manage the ledger that existed before group A was divided into multiple subgroups. The ledger that continues to be managed is referred to as common ledger A. When a transaction occurs between nodes 100 that belong to different subgroups, a block related to the transaction is added to the common ledger.
[0051] This makes it possible to manage transactions between nodes 100 belonging to different subgroups. Furthermore, for transactions that are completed within a subgroup, it is not necessary to update the common ledger A, which reduces the update processing load on the common ledger A and the expansion of the common ledger A.
[0052] Each node 100 (nodes 100a to 100d) belonging to subgroup B manages two ledgers: common ledger A and subledger B. Similarly, each node 100 (nodes 100e to 100h) belonging to subgroup C manages two ledgers: common ledger A and subledger C.
[0053] However, if transactions between different subgroups occur frequently, the frequency of adding blocks to the common ledger A increases. Because such updates to the common ledger A are performed by all nodes (nodes 100a to 100h), it is desirable that transactions between different subgroups occur as little as possible.
[0054] Therefore, in the first embodiment, the nodes 100 (e.g., seed nodes) belonging to group A determine the nodes 100 to which each subgroup belongs so as to suppress the occurrence of transactions between the nodes 100 belonging to different subgroups, based on the transaction occurrence status before group A was divided into multiple subgroups. In the illustrated example, the placement of the nodes 100 when dividing into subgroup B (sub-ledger B) and sub-ledger C (ledger C) is determined so as to minimize the transaction frequency between different subgroups.
[0055] Table 1 shows an example of the number of transactions of nodes 100a to 100h in a certain period of time in the past before group division. In the case of Table 1, in order to minimize transactions between different subgroups, it is optimal to divide the nodes into a subgroup consisting of nodes 100a to 100d and a subgroup consisting of nodes 100e to 100h.
[0056]
[0057] As described above, according to the first embodiment, the multiple nodes 100 participating in group A, which manages the original ledger, are divided into multiple subgroups. Each node 100 participating in the same subgroup will have a new subledger and will continue to hold the common ledger A. Furthermore, both the common ledger A and each subledger (subledger B, subledger C) will have a common chain ID.
[0058] In the operation example of Figure 7, the state initially is as shown in Figure 7(1), where all nodes 100 participate in group A and hold ledger A (common ledger). After that, the state changes to Figure 7(2), where all nodes 100 continue to participate in group A, but also participate in subgroup B or subgroup C. Nodes 100 participating in subgroup B hold ledger A and ledger B (sub-ledgers), and nodes 100 belonging to subgroup C hold ledger A and ledger C (sub-ledgers).
[0059] By generating sub-ledgers with a common chain ID and arranging the nodes 100 so that the transaction frequency between nodes 100 in different subgroups is minimized, the frequency of adding blocks to the common ledger can be reduced. By basically managing transactions in the sub-ledgers and linking the common ledger as needed, issues such as the expansion of the capacity of each ledger and / or the tightness of the capacity of each node 100 can be reduced or eliminated, while the chain IDs of the common ledger and multiple sub-ledgers can be made the same, which has the added benefit of not affecting the issuance of transactions.
[0060] In the first embodiment, when group A is divided into multiple subgroups, the nodes 100 belonging to each subgroup include hash information of the latest block in group A's ledger (i.e., the original ledger) in the first block of their sub-ledger. This allows the sub-ledgers to be linked to the original ledger, maintaining the continuity of blocks.
[0061] 8 and 9 are diagrams for explaining the block generation operation according to the first embodiment. Here, it is assumed that after group division, transactions occur in the time series shown in Table 2.
[0062]
[0063] In the operation example of Figure 8, when each node 100 belonging to subgroup B generates subledger B, it adds a linked block including the hash value of the latest block in the common ledger A as the first block of subledger B. Similarly, when each node 100 belonging to subgroup C generates subledger C, it adds a linked block including the hash value of the latest block in the common ledger A as the first block of subledger C.
[0064] After adding the linked block, blocks are added as follows: - For transactions between nodes 100 in the same subgroup, the block is added only to that subledger; - For transactions between nodes 100 in different subgroups, the block is added to common ledger A. Also, a block with height information of the block added to common ledger A is added to each subledger. In other words, when a transaction occurs between nodes 100 belonging to different subgroups, each node 100 adds the hash information of the block to be added to common ledger A to the subledger of the subgroup to which the node 100 belongs.
[0065] In this way, by adding a block to the common ledger A for transactions between nodes 100 in different subgroups, the transaction history can be traced back to confirm even transactions between nodes 100 in different subgroups. Furthermore, by adding a block containing height information for the block added to the common ledger A to each sub-ledger, the common ledger A can be linked to each sub-ledger. Note that the information added to each sub-ledger does not have to be the height information of the block added to the common ledger A; any information that can identify the block added to the common ledger A, such as the block ID and / or hash value of the block in the common ledger A, will suffice.
[0066] Furthermore, by adding blocks to the sub-ledger for transactions between nodes 100 in the same subgroup and adding blocks to the common ledger A for transactions between nodes 100 in different subgroups, it is possible to trace back the transaction history even if transactions between nodes 100 in the same subgroup and transactions between nodes 100 in different subgroups are mixed.
[0067] In the operational example of FIG. 8 , for a transaction between nodes 100 in subgroup B that occurred at 12:00, transaction data is stored in a block of subledger B. For a transaction between nodes 100 in subgroup B that occurred at 12:01, transaction data is stored in a block of subledger B. For a transaction between nodes 100 in subgroup C that occurred at 12:02, transaction data is stored in a block of subledger C. For a transaction between nodes 100 in subgroup B that occurred at 12:03, transaction data is stored in a block of subledger B. For a transaction between nodes 100 in subgroup B and nodes 100 in subgroup C that occurred at 12:04, transaction data is stored in a block of common ledger A, and height information for that block is stored in each block of subledger B and subledger C. At this time, the information stored in each block of sub-ledger B and sub-ledger C does not have to be height information of the block of common ledger A, but can be information associated with the block added to common ledger A, such as the block ID and / or hash value of the block of common ledger A. For a transaction between nodes 100 in subgroup B that occurred at 12:05, transaction data is stored in a block of sub-ledger B. For a transaction between nodes 100 in subgroup C that occurred at 12:06, transaction data is stored in a block of sub-ledger C.
[0068] In the operational example of Figure 8, a linked block is added, but as shown in Figure 9, adding a linked block is not necessarily required. In the operational example of Figure 9, when the first block of each sub-ledger is added, the hash value of the latest block of the common ledger A is included in that block. This eliminates the need to generate a linked block.
[0069] 9 , instead of adding such a linked block, the hash value of the latest block of Ledger A is included in the first block added to each of Sub-ledger B and Sub-ledger C. That is, each node 100 belonging to subgroup B includes the hash value of the latest block of Ledger A in the block in Sub-ledger B that stores transaction data for a transaction that occurred at 12:00. Each node 100 belonging to subgroup C includes the hash value of the latest block of Ledger A in the block in Sub-ledger C that stores transaction data for a transaction that occurred at 12:02.
[0070] For the height after the sub-ledger is generated, the value following the height of the latest block in the common ledger A is used. However, if multiple blocks with the same chain ID and height exist, data cannot be accessed correctly. Therefore, rules are established for assigning heights to each ledger to prevent overlapping of heights between blocks. In other words, when a node 100 generates a block that includes a height, the node 100 assigns the height to the block based on predetermined rules so that the heights do not overlap between different sub-ledgers and so that the heights do not overlap between the sub-ledgers and the common ledger. This allows blocks to be uniquely identified by the combination of chain ID and height, enabling correct data access.
[0071] 10 is a diagram for explaining an example of an operation for assigning height to each block. Here, an example of an operation when using linked blocks will be explained.
[0072] Each node 100 assigns heights so that height values do not overlap between different ledgers in the common ledger A, sub-ledger B, and sub-ledger C. In the example of Fig. 10, if the height of the latest block in the common ledger A is n (an integer), heights are assigned according to the following rules: Common ledger A: n+3, n+6, ...; Sub-ledger B: n+1, n+4, ...; Sub-ledger C: n+2, n+5, ...
[0073] That is, the heights of common ledger A, sub-ledger B, and sub-ledger C are assigned according to the following rules, where k is a natural number (0, 1, 2, ...): Common ledger A: n+3k+3; Sub-ledger B: n+3k+1; Sub-ledger C: n+3k+2.
[0074] Due to this rule, height values do not overlap between different ledgers. Also, looking at the time series alone, height n+5 in subledger C is added after height n+7 in subledger B, but this is not a problem as long as it increases monotonically within the same ledger. Note that in this example, heights are written as integers, but they do not have to be integers as long as there is a regularity in the arrangement of block heights in each ledger and the number of blocks can be compared by height.
[0075] (1.3) Operations when generating a sub-ledger Next, operations when generating a sub-ledger according to the first embodiment will be described with reference to Figures 11 and 12. In the descriptions of the drawings referred to below, subgroup B and subgroup C will be abbreviated as group B and group C, respectively. Figure 11 is a diagram for explaining the role of each node 100 before and after the generation of the sub-ledgers (ledger B, ledger C).
[0076] As shown in FIG. 11 , each node 100 in group A also joins subgroups, group B or group C, due to group division. Here, one node 100 in each subgroup becomes a new seed node. A seed node is a node 100 that holds connection information such as IP addresses of all nodes 100 in a group, and one of the nodes 100 in a group plays the role of a seed node. Different subgroups are only allowed to access each other's seed nodes 100.
[0077] The seed node of group A may subsequently become the seed node 100 of group B or group C. Alternatively, a node 100 other than the seed node of group A may become the seed node 100 of group B and group C. Methods for selecting seed nodes include selecting the node 100 with the best specifications (e.g., CPU performance, memory capacity, and / or battery capacity).
[0078] In the example of Fig. 11(1), node 100a is the seed node of group A, and the other nodes 100b to 100h are validators of group A. A validator is a node 100 that performs consensus building activities such as adding blocks, and three or more of the nodes 100 in a group play this role.
[0079] In the example of FIG. 11(2), when subgroups B and C are formed, node 100a becomes the seed node of subgroup B, and node 100e becomes the seed node of subgroup C.
[0080] 12 is a diagram showing an example of the operation when generating sub-ledgers (ledger B, ledger C). In this example, an example is described in which the seed node of group A is set as the seed node of subgroup B, but a node 100 different from the seed node of group A may also be set as the seed node of subgroup B.
[0081] In step S101, node 100a, which is the seed node of group A, decides to split group A (i.e., to create sub-ledgers). For example, node 100a decides to create sub-ledgers when the number of nodes in group A exceeds a threshold. Node 100a may also decide to create sub-ledgers when the number of transactions (occurrence frequency) in group A over a certain period of time exceeds a threshold.
[0082] In step S102, node 100a sends a proposal to create a sub-ledger to a validator in group A (e.g., node 100b).
[0083] In step S103, the validators of group A (e.g., nodes 100b, 100e, and 100g) reach a consensus on the allocation of nodes to each subgroup. As described above, the nodes 100 are allocated to the subgroups so that the frequency of transactions between different subgroups is minimized.
[0084] In step S104, the validator of group A (for example, node 100b) sends a notification of completion of consensus building (return) to node 100a, which is the seed node of group A.
[0085] In steps S105 to S107, the node 100a, which is a seed node of group A, transmits a node placement notification to the validators of group A (for example, the nodes 100b, 100e, and 100g).
[0086] In step S108, the node 100a, which is the seed node of group A, also serves as the seed node of subgroup B.
[0087] In step S109, the node 100b, which is the validator of group A, also serves as the validator of subgroup B.
[0088] In step S110, node 100e, which is a validator of group A, also serves as a seed node of subgroup C.
[0089] In step S111, the node 100g, which is the validator of group A, also serves as the validator of subgroup C.
[0090] (1.4) Operation when a transaction occurs between nodes in the same subgroup Next, an operation when a transaction occurs between nodes 100 in the same subgroup according to the first embodiment will be described with reference to Fig. 13 and Fig. 14. Fig. 13 is a diagram for explaining an operation when a transaction occurs between nodes 100 in the same subgroup according to the first embodiment.
[0091] 13, it is assumed that a transaction occurs from node 100b belonging to subgroup B to node 100c also belonging to subgroup B. That is, node 100b is the source of the transaction, and node 100c is the destination of the transaction.
[0092] FIG. 14 is a diagram showing an example of an operation from when a transaction such as that shown in FIG. 13 is issued until a block is added.
[0093] In step S201, node 100b, which is the transaction source in subgroup B, receives a request from a user to issue a transaction to node 100c.
[0094] In step S202, node 100b, which is the transaction source in subgroup B, sends a location confirmation to node 100a, which is the seed node of subgroup B, to confirm whether node 100c, which is the transaction destination, is participating in subgroup B.
[0095] In step S203, node 100a, which is the seed node of subgroup B, transmits a location notification to node 100b, which is the transaction source node of subgroup B, as a response indicating that the trading partner is also participating in subgroup B.
[0096] In step S204, the transaction source node 100b executes a transaction with the transaction destination node 100c.
[0097] In step S205, the node 100b, which is the transaction source, sends a block addition request to the node 100a, which is the validator of subgroup B.
[0098] In step S206, each node 100 in subgroup B adds a block containing the transaction data of the transaction to subledger B. Adding a block to subledger B is performed in the same manner as consensus building in a normal blockchain.
[0099] (1.5) Operation when a transaction occurs between nodes in different subgroups Next, an operation when a transaction occurs between nodes in different subgroups according to the first embodiment will be described with reference to Fig. 15 and Fig. 16. Fig. 15 is a diagram for explaining an operation when a transaction occurs between nodes in different subgroups according to the first embodiment.
[0100] 15, it is assumed that a transaction occurs from node 100b belonging to subgroup B to node 100h belonging to subgroup C. That is, node 100b is the source of the transaction, and node 100h is the destination of the transaction.
[0101] FIG. 16 is a diagram showing an example of an operation from when a transaction such as that shown in FIG. 15 is issued until a block is added.
[0102] In step S301, node 100b, which is a transaction source node in subgroup B, receives a transaction issuance request from a user to node 100h.
[0103] In step S302, node 100b, which is the transaction source node of subgroup B, sends a location confirmation to node 100a, which is the seed node of subgroup B, to confirm whether node 100h, the transaction destination, is participating in subgroup B.
[0104] In step S303, node 100a, which is the seed node of subgroup B, determines that the trading partner node 100h is not participating in subgroup B, and sends a location confirmation to node 100e, which is the seed node of subgroup C, to confirm whether the trading partner node 100h is participating in subgroup C.
[0105] In step S304, node 100e, which is the seed node of subgroup C, determines that the business partner node 100h is participating in subgroup C, and sends a location notification to node 100a, which is the seed node of subgroup B, in response to the effect that the business partner node 100h is participating in subgroup C.
[0106] In step S305, node 100a, which is the seed node of subgroup B, transmits a location notification to node 100b, the source of the transaction in subgroup B, which is a response indicating that the trading partner is participating in subgroup C.
[0107] In step S306, the transaction source node 100b executes a transaction with the transaction destination node 100h.
[0108] In step S307, the transaction source node 100b makes a block addition request to the node 100a, which is the seed node of group A, since the transaction spans subgroups B and C.
[0109] In step S308, node 100a, which is the seed node of group A, requests the validator of group A to add a block, and each node 100 in group A adds a block containing the transaction data of the transaction to common ledger A.
[0110] In step S309, node 100b, the source of the transaction, sends a block addition request to node 100a, the seed node of subgroup B, based on the block addition to common ledger A in group A, including height information of the block added to common ledger A.
[0111] In step S310, node 100a, which is the seed node of subgroup B, sends a block addition request to node 100e, which is the seed node of subgroup C, including height information of the block added to common ledger A.
[0112] In step S311, node 100a, which is the seed node of subgroup B, requests the validator of subgroup B to add a block, and each node 100 in subgroup B adds a block including the height information to subledger B.
[0113] In step S312, node 100e, which is the seed node of subgroup C, requests the validator of subgroup C to add a block, and each node 100 in subgroup C adds a block including the height information to subledger C.
[0114] In steps S309 and S310, an example has been described in which a block addition request is sent that includes height information of the block added to the common ledger A, but this is not necessarily limited to this. For example, a block addition request may be sent that includes the block ID of the block added to the common ledger A. In this case, in step S311, a block including the block ID of the block added to the common ledger A may be added to the sub-ledger B instead of the height information of the block added to the common ledger A. Similarly, in step S312, a block including the block ID of the block added to the common ledger A may be added to the sub-ledger C.
[0115] In this operation example, adding blocks to common ledger A, sub-ledger B, and sub-ledger C is performed in the same way as consensus building in a normal blockchain.
[0116] (2) Second Embodiment The second embodiment will be described mainly with reference to Figures 17 to 31, focusing on the differences from the first embodiment. The second embodiment differs from the first embodiment in that, when a hierarchical network is adopted, a parent ledger is used instead of the common ledger A of the first embodiment. Other points are the same as those of the first embodiment.
[0117] (2.1) Hierarchical Structure Network First, a communication system according to the second embodiment will be described. The communication system according to the second embodiment includes a network 10 having a hierarchical structure (also referred to as a "hierarchical structure network"). As described above, blockchain technology assumes that each node 100 has sufficient performance, and when a transaction occurs at any one node 100, calculations (checks) are performed at all nodes 100. For this reason, it is difficult to apply blockchain technology to devices with poor performance, such as those with small battery capacity, low computing power, or small storage capacity, such as IoT devices such as sensor devices.
[0118] In the second embodiment, a hierarchical network 10 is formed, and each node 100 is arranged at a hierarchical level according to the performance of the node 100. By forming a hierarchical network and, as described below, making the upper hierarchical levels high in calculation frequency (i.e., ledger update frequency) while making the lower hierarchical levels low in calculation frequency, it is possible to suppress the calculation frequency for the lower hierarchical levels. By placing high-performance devices at higher hierarchical levels and low-performance devices at lower hierarchical levels, it becomes possible to participate in the blockchain hierarchical network 10 regardless of performance.
[0119] 17 is a diagram showing an example of a network configuration according to the second embodiment. In the illustrated example, the hierarchical-structure network 10 has a hierarchical structure consisting of three hierarchies, hierarchies 1 to 3. While an example using three hierarchies will be mainly described below, the number of hierarchies may be two, or four or more. In the illustrated example, hierarchical level 1 is the highest hierarchical level, and hierarchical level 3 is the lowest hierarchical level.
[0120] In such a hierarchical network 10, each node 100 manages a ledger. Each node 100 is placed in one of three hierarchical levels based on its performance. Here, the performance of the node 100 refers to at least one of computational power (e.g., processor power), storage capacity (e.g., memory size), and battery capacity. The performance of the node 100 may also include a sleep time, as described below. For example, when a new node is added, the new node or another node determines the hierarchical level in which the new node will be placed based on the performance of the new node. The new node may also be a node already placed in one of the three hierarchical levels in the hierarchical network 10. Depending on changes in the performance of the node, the node may be relocated to a level different from the hierarchical level in which it is currently placed. For example, if a limit is placed on the processor usage rate of the node, the performance of the node will decrease, and the node may be relocated to a level lower than the hierarchical level in which it is currently placed.
[0121] Each node 100 arranged in Layer 1 and each node 100 arranged in Layer 2 form an upper layer group. Although an example is shown in which the only node 100 belonging to Layer 1 is node 100A, multiple nodes 100 may be arranged in Layer 1.
[0122] The three nodes 100 arranged on hierarchical level 2 are node 100B1, node 100C1, and node 100D1. Each node 100 belonging to group 200A, which is an upper hierarchical group, manages ledger (A), which is an upper hierarchical ledger.
[0123] Each node 100 placed on tier 2 and each node 100 placed on tier 3 form a lower tier group that manages a lower tier ledger. For example, high-performance equipment is placed on tier 1 (or tier 2), and equipment with lower performance than the high-performance equipment is placed on tier 3. In other words, the nodes 100 belonging to the lower tier group have lower performance than the nodes 100 belonging to the higher tier group.
[0124] 17 shows an example in which a total of three lower hierarchical groups are formed, group 200B to group 200D. However, the number of lower hierarchical groups is not limited to three, and the number of lower hierarchical groups may be one or two, or may be four or more.
[0125] Group 200B includes one node 100B1 located on hierarchical level 2 and multiple nodes 100B2 located on hierarchical level 3. Each node 100B belonging to group 200B manages ledger (B), which is a lower-level ledger. Node 100B1 belongs to both group 200A and group 200B, and manages both ledger (A) and ledger (B). In the following description of the embodiment, node 100B1 is also referred to as the leader node of group 200B. The leader node may be a seed node. Node 100B2 belongs only to group 200B, and therefore manages only ledger (B).
[0126] Similarly, group 200C includes one node 100C1 located on hierarchical level 2 and multiple nodes 100C2 located on hierarchical level 3. Each node 100C belonging to group 200C manages ledger (C), which is a lower-level ledger. Node 100C1 belongs to both group 200A and group 200C, and manages both ledger (A) and ledger (C). In the following description of the embodiment, node 100C1 is also referred to as the leader node of group 200C. The leader node may be a seed node. Node 100C2 belongs only to group 200C, and therefore manages only ledger (C).
[0127] Similarly, group 200D includes one node 100D1 located on hierarchical level 2 and multiple nodes 100D2 located on hierarchical level 3. Each node 100D belonging to group 200D manages ledger (D), which is a lower-level ledger. Node 100D1 belongs to both group 200A and group 200D, and manages both ledger (A) and ledger (D). In the following description of the embodiment, node 100D1 is also referred to as the leader node of group 200D. The leader node may be a seed node. Node 100D2 belongs only to group 200D, and therefore manages only ledger (D).
[0128] In each of the groups 200A to 200D, the nodes 100 belonging to the same group are connected to each other so that they can communicate with each other, and a common ledger is maintained and managed within the group, allowing operations within the group to be performed in the same manner as in the first embodiment. By grouping in this way, the number of nodes in each group can be reduced, thereby preventing the ledger from becoming too large.
[0129] Generally, a low-performance node 100 (e.g., an IoT device such as a sensor device) generates transactions less frequently than a high-performance node 100. For example, a low-performance node 100 performs communication intermittently to reduce power consumption, enters a sleep state when not communicating, and does not generate transactions during the sleep period.
[0130] As will be described later, in group 200A, which is an upper hierarchical group formed by high-performance nodes 100, ledger (A) may be updated more frequently and the amount of data (size) of ledger (A) is likely to become larger than in lower hierarchical groups. On the other hand, in group 200B formed by low-performance nodes 100, the update frequency of ledger (B) can be reduced and the increase in the amount of data of ledger (B) can be suppressed. Similarly, in group 200C formed by low-performance nodes 100, the update frequency of ledger (C) can be reduced and the increase in the amount of data of ledger (C) can be suppressed. Similarly, in group 200D formed by low-performance nodes 100, the update frequency of ledger (D) can be reduced and the increase in the amount of data of ledger (D) can be suppressed.
[0131] As described above, while managing a ledger individually for each group can reduce the frequency of ledger updates and the size of the ledger, if the contents of each group's ledger are not linked to the ledgers of other groups, the reliability of blockchain technology may decrease. Therefore, in the second embodiment, by linking the contents of ledgers between groups, it is possible to reduce the frequency of ledger updates and the size of the ledger while also suppressing a decrease in reliability.
[0132] Specifically, in a hierarchical network 10 configured with multiple groups including a first group formed by one or more nodes 100 managing a first ledger and a second group formed by one or more nodes 100 managing a second ledger different from the first ledger, a node 100 belonging to the second group notifies the first group of ledger information related to the second ledger. Each node 100 belonging to the first group manages the notified ledger information as part of the first ledger. This allows the contents of ledgers to be linked between groups.
[0133] Here, the first group is one of the upper hierarchical group and the lower hierarchical group, and the second group is the other of the upper hierarchical group and the lower hierarchical group. In other words, ledgers are linked between groups that have a direct communication connection. On the other hand, ledgers are not linked between lower hierarchical groups, i.e., between groups that do not have a direct communication connection. This makes it possible to manage ledgers independently between lower hierarchical groups, without updates to the ledger in one lower hierarchical group affecting the ledgers in other lower hierarchical groups.
[0134] Next, a ledger management method according to the second embodiment will be described. As shown in Fig. 18, a node 100 belonging to an upper hierarchical group that manages an upper hierarchical ledger updates the upper hierarchical ledger in accordance with transactions within the upper hierarchical group and transactions within a lower hierarchical group.
[0135] For example, the nodes 100 (nodes 100A, 100B1, 100C1, and 100D1) belonging to group 200A, which is an upper hierarchical group, not only update ledger (A), which is an upper hierarchical ledger, in accordance with transactions within group 200A, but also update ledger (A) in accordance with transactions within any of the lower hierarchical groups (groups 200B, 200C, and 200D). An example is shown in which the nodes 100 (nodes 100A, 100B1, 100C1, and 100D1) belonging to group 200A update ledger (A) in response to an update to ledger (B) in group 200B.
[0136] The update frequency of the upper hierarchical ledger in the upper hierarchical group is the same as the update frequency of the ledger in a general P2P network (group) that does not have a hierarchical structure. By reflecting transactions within the lower hierarchical groups (groups 200B, 200C, and 200D) in ledger (A), which is the upper hierarchical ledger, reliability in blockchain technology can be maintained.
[0137] On the other hand, nodes 100 belonging to a lower hierarchical group that manages a lower hierarchical ledger do not update the lower hierarchical ledger in response to transactions within the upper hierarchical group, but instead update the lower hierarchical ledger in response to transactions within the lower hierarchical group. In other words, even if the upper hierarchical ledger is updated, the lower hierarchical ledger is not updated. This reduces the frequency with which the lower hierarchical ledger is updated in the lower hierarchical group.
[0138] For example, nodes 100B (nodes 100B1 and 100B2) belonging to group 200B, a lower hierarchical group, update ledger (B), a lower hierarchical ledger, in response to transactions within group 200B, but do not update ledger (B) in response to transactions within group 200A. Similarly, nodes 100C (nodes 100C1 and 100C2) belonging to group 200C, a lower hierarchical group, update ledger (C), a lower hierarchical ledger, in response to transactions within group 200C, but do not update ledger (C) in response to transactions within group 200A. Similarly, nodes 100D (nodes 100D1 and 100D2) belonging to group 200D, a lower hierarchical group, update ledger (D), a lower hierarchical ledger, in response to transactions within group 200D, but do not update ledger (D) in response to transactions within group 200A.
[0139] Furthermore, nodes 100 belonging to a lower hierarchical group that manages a lower hierarchical ledger do not update that lower hierarchical ledger in response to transactions within other lower hierarchical groups. For example, even if ledger (B) is updated in group 200B, which is a lower hierarchical group, other lower hierarchical groups, groups 200C and 200D, do not update ledgers (C) and (D). This reduces the frequency with which lower hierarchical ledgers are updated in lower hierarchical groups.
[0140] In this way, when a transaction occurs in a lower hierarchical group, the upper hierarchical ledger in the upper hierarchical group is updated, but no ledger update is required in other lower hierarchical groups. Also, even if a transaction occurs in a higher hierarchical group, no lower hierarchical ledger update is required in lower hierarchical groups. This reduces the overall amount of calculation. Therefore, blockchain technology can be applied to devices with low computing power and / or memory capacity.
[0141] 19 is a diagram illustrating the effect of reducing the amount of calculation when the hierarchical structure network 10 according to the second embodiment is compared with a general network configuration (see FIG. 1). Here, an example is shown in which a hierarchical structure based on a binary tree is adopted. It is also assumed that there are n (n≧4) nodes 100, and that the transaction occurrence frequency in each node 100 is the same.
[0142] The nodes 100 in the top layer (Layer 1) need to calculate transactions for all nodes, so the calculation frequency is the same as that of general blockchain technology. On the other hand, the nodes 100 in the bottom layer only need to calculate transactions for the group in which they participate. In the case of a binary tree, since the number of nodes in each group is three, the calculation frequency can be reduced to 3 / n.
[0143] For example, if layers other than the top layer have a two-layer structure (n = 7), the total calculations can be reduced by approximately 38%. If layers other than the top layer have a three-layer structure (n = 15), the total calculations can be reduced by approximately 61%. If n is sufficiently large (limit → ∞), the total calculations can be reduced by approximately 67%. In other words, the lower the layer, the more the calculation frequency can be reduced. Therefore, compared to general blockchain technology, the amount of communication and the number of calculations can be reduced. As a result, blockchain technology can be used even on devices with performance that cannot participate in general blockchain technology.
[0144] In the network configuration shown in Fig. 19, an upper hierarchical group and a lower hierarchical group are formed between two groups having a direct communication connection. For example, when group 200B is used as a reference, group 200A is the upper hierarchical group, and groups 200D and 200E are each lower hierarchical groups. When groups 200D and 200E are used as references, group 200B is the upper hierarchical group. Similarly, when group 200C is used as a reference, group 200A is the upper hierarchical group, and groups 200F and 200G are each lower hierarchical groups. When groups 200F and 200G are used as references, group 200C is the upper hierarchical group.
[0145] Next, a description will be given of the link between the upper-level ledger and the lower-level ledger according to the second embodiment. As shown in Fig. 20, a hierarchical network 10 is configured by a group 200A formed by nodes 100 (nodes 100A and 100B1) that manage ledger (A) and a group 200B formed by nodes 100 (nodes 100B1 and 100B2) that manage ledger (B).
[0146] A node 100 belonging to group 200A notifies group 200B of ledger information related to ledger (A). For example, node 100B1 belonging to group 200A notifies another node 100B2 in group 200B of ledger information related to ledger (A). Then, each node 100 (nodes 100B1, 100B2) belonging to group 200B manages the ledger information as part of ledger (B). In this way, each node 100 belonging to a lower hierarchical group that manages a lower hierarchical ledger manages ledger information related to a higher hierarchical ledger as part of the lower hierarchical ledger. This makes it possible to link a lower hierarchical ledger with a higher hierarchical ledger.
[0147] For example, ledger information managed as part of ledger (B), which is a lower-level ledger, may include a chain ID indicating ledger (A), which is a higher-level ledger. Ledger information managed as part of ledger (B) may include a hash value calculated from a block of ledger (A). Ledger information managed as part of ledger (B) may include a block height indicating a block number of ledger (A). Here, each node 100 (nodes 100B1 and 100B2) belonging to group 200B may store the ledger information in the header portion (block header) of a block of ledger (B). This makes it easy to identify ledger (A) and search for which block in ledger (A) it is linked to when verifying accounts in group 200B, and also makes it easy to transmit information such as verification results from group 200B to group 200A.
[0148] On the other hand, the node 100 belonging to group 200B notifies group 200A of ledger information related to ledger (B). For example, node 100B1 belonging to group 200B notifies other node 100A in group 200A of ledger information related to ledger (B). Then, each node 100 (nodes 100B1, 100A) belonging to group 200A manages the ledger information as part of ledger (A). In this way, each node 100 belonging to the upper hierarchical group that manages the upper hierarchical ledger manages ledger information related to the lower hierarchical ledger as part of the upper hierarchical ledger. This makes it possible to link the upper hierarchical ledger with the lower hierarchical ledger.
[0149] For example, ledger information managed as part of ledger (A), which is a higher-level ledger, may include a chain ID indicating ledger (B), which is a lower-level ledger. Ledger information managed as part of ledger (A) may include a hash value calculated from a block of ledger (B). Ledger information managed as part of ledger (A) may include a block height indicating a block number of ledger (B). Here, each node 100 (nodes 100B1 and 100A) belonging to group 200A may store the ledger information in the transaction data portion of a block of ledger (A). This allows for ledger (B) to be updated infrequently and not long enough, but by merging with a sufficiently long ledger (A), a reduction in security strength can be suppressed. For example, this makes it easier to verify the fork protection of ledger (B) during verification in group 200A. In other words, incorrect (fake) blockchains do not branch, making it easier to verify the correct ledger (B). Furthermore, if ledger (B) is updated infrequently and is not long enough, and all blocks contained in ledger (B) are tampered with before a new block is added to ledger (B), the node managing ledger (B) will not be able to recognize that ledger (B) has been tampered with. Even in such a case, by linking ledger (A) and ledger (B), the node managing ledger (A) can recognize that ledger (B) has been tampered with, thereby preventing a decrease in security strength.
[0150] 21 is a diagram showing an example of operation when a group 200B is newly formed below group 200A after group 200A is formed. Here, a node belonging to group 200A is referred to as node (A), and a node belonging to group 200B is referred to as node (B). However, since the leader node belongs to both group 200A and group 200B, the operation of FIG. 21 may be executed within the same node (leader node).
[0151] First, node (A) managing ledger (A) updates ledger (A) by adding the (m-1)th block to ledger (A). The (m-1)th block has a block header including a hash value calculated from the previous block of ledger (A) and transaction data for at least one transaction in group 200A. The block header may further include at least one of a chain ID (parent chain ID) indicating ledger (A) and a block height indicating the block number (m-1) of the block.
[0152] Second, group 200B is formed. Node (B) managing ledger (B) updates (generates) ledger (B) by adding the first block in ledger (B), i.e., the 0th block, to ledger (B). The 0th block includes, in its block header portion, the block in ledger (A) that is the most recent at the time the 0th block is added, i.e., the block header of the (m-1)th block in ledger (A), as ledger information related to ledger (A). Furthermore, the 0th block includes, in its transaction data portion, transaction data related to at least one transaction in group 200B. Here, the transaction may be, for example, the addition of a node (node join) in group 200B. The transaction data may include the node parameters of the added node.
[0153] Third, node (A) managing ledger (A) updates ledger (A) by adding the mth block to ledger (A). The mth block includes, in its block header portion, a hash value calculated from the (m-1)th block, which is the previous block of ledger (A). The mth block also includes, in its transaction data portion, transaction data related to at least one transaction in group 200A and ledger information related to ledger (B). The ledger information includes a hash value calculated from the most recent block of ledger (B) at the time the mth block is added, i.e., the 0th block of ledger (B), and a chain ID indicating ledger (B). The ledger information may further include a block height indicating 0, which is the block number of the 0th block.
[0154] Fourth, node (B) managing ledger (B) updates ledger (B) by adding the first block in ledger (B) to ledger (B). The first block includes, in its block header portion, the block header of the latest block in ledger (A) at the time the first block is added, as ledger information related to ledger (A). The first block also includes, in its block header portion, a hash value calculated from the 0th block of ledger (B). The first block also includes, in its transaction data portion, transaction data related to at least one transaction in group 200B. Here, the transaction may be, for example, the addition of a node (node join) in group 200B. The transaction data may include node parameters of the added node.
[0155] Fifth, node (A) managing ledger (A) updates ledger (A) by adding the nth block to ledger (A). The nth block includes, in its block header portion, a hash value calculated from the (n-1)th block, which is the previous block of ledger (A). The nth block also includes, in its transaction data portion, transaction data related to at least one transaction in group 200A and ledger information related to ledger (B). The ledger information includes a hash value calculated from the latest block of ledger (B) at the time the nth block is added, i.e., the first block of ledger (B), and a chain ID indicating ledger (B). The ledger information may further include a block height indicating 1, which is the block number of the first block.
[0156] 22 and 23 are diagrams showing an example of operation in a case where, after group 200A is formed, a new group 200B is formed below group 200A, and then a new group 200C is formed below group 200A. Here, a node belonging to group 200A is referred to as node (A), a node belonging to group 200B is referred to as node (B), and a node belonging to group 200C is referred to as node (C). Here, differences from the above-mentioned operation will be mainly explained.
[0157] As shown in Figure 23, first, node (A) managing ledger (A) updates ledger (A) by adding the (m-1)th block to ledger (A). Second, group 200B is formed. Node (B) managing ledger (B) updates (generates) ledger (B) by adding the first block in ledger (B), i.e., the 0th block, to ledger (B). Third, node (A) managing ledger (A) updates ledger (A) by adding the mth block to ledger (A).
[0158] Fourth, node (A) managing ledger (A) updates ledger (A) by adding the (n-1)th block to ledger (A). The (n-1)th block has a block header including a hash value calculated from the previous block of ledger (A) and transaction data for at least one transaction in group 200A. The block header may further include at least one of a chain ID (parent chain ID) indicating ledger (A) and a block height indicating the block number (n-1) of the block.
[0159] Fifth, group 200C is formed. Node (C) managing ledger (C) updates (generates) ledger (C) by adding the first block in ledger (C), i.e., the 0th block, to ledger (C). The 0th block includes, in its block header portion, the block in ledger (A) that is the most recent at the time the 0th block is added, i.e., the block header of the n-1th block in ledger (A), as ledger information related to ledger (A). Furthermore, the 0th block includes, in its transaction data portion, transaction data related to at least one transaction in group 200C. Here, the transaction may be, for example, the addition of a node (node join) in group 200C. The transaction data may include the node parameters of the added node.
[0160] Sixth, node (A) managing ledger (A) updates ledger (A) by adding the nth block to ledger (A). The nth block includes, in its block header portion, a hash value calculated from the (n-1)th block, which is the previous block of ledger (A). The nth block also includes, in its transaction data portion, transaction data related to at least one transaction in group 200A and ledger information related to ledger (C). The ledger information includes a hash value calculated from the most recent block of ledger (C) at the time the nth block is added, i.e., the 0th block of ledger (C), and a chain ID indicating ledger (C). The ledger information may further include a block height indicating 0, which is the block number of the 0th block.
[0161] Seventh, node (C) managing ledger (C) updates ledger (C) by adding the first block in ledger (C) to ledger (C). The first block includes, in its block header portion, the block header of the latest block in ledger (A) at the time the first block is added, i.e., the nth block in ledger (A), as ledger information related to ledger (A). The first block also includes, in its transaction data portion, transaction data related to at least one transaction in group 200C. Here, the transaction may be, for example, the addition of a node (node join) in group 200C. The transaction data may include node parameters of the added node.
[0162] Eighth, node (B) managing ledger (B) updates ledger (B) by adding the first block in ledger (B) to ledger (B). The first block includes, in its block header portion, the block header of the latest block in ledger (A) at the time the first block is added, i.e., the nth block in ledger (A), as ledger information related to ledger (A). The first block also includes, in its transaction data portion, transaction data related to at least one transaction in group 200B. Here, the transaction may be, for example, the addition of a node (node join) in group 200B. The transaction data may include node parameters of the added node.
[0163] Ninth, node (A) managing ledger (A) updates ledger (A) by adding the n+1th block to ledger (A). The n+1th block includes, in its block header portion, a hash value calculated from the nth block, which is the previous block of ledger (A). The n+1th block also includes, in its transaction data portion, transaction data related to at least one transaction in group 200A, ledger information related to ledger (B), and ledger information related to ledger (C). The ledger information related to ledger (B) includes a hash value calculated from the most recent block of ledger (B) at the time the n+1th block is added, i.e., the first block of ledger (B), and a chain ID indicating ledger (B). The ledger information may further include a block height indicating 1, which is the block number of the first block of ledger (B). The ledger information for the ledger (C) includes a hash value calculated from the latest block of the ledger (C) at the time of adding the (n+1)th block, i.e., the first block of the ledger (C), and a chain ID indicating the ledger (C). The ledger information may further include a block height indicating 1, which is the block number of the first block of the ledger (C).
[0164] Next, with reference to FIGS. 24 and 25 , the grouping of lower hierarchical groups according to the second embodiment will be described. As shown in FIG. 24 , the hierarchical network 10 has a plurality of lower hierarchical groups, namely, groups 200B to 200D. Nodes 100 belonging to the plurality of lower hierarchical groups are placed in one of the plurality of lower hierarchical groups according to the length of the sleep time of the node 100. As described above, low-performance nodes such as IoT devices communicate intermittently to reduce power consumption, enter a sleep state (standby state) when not communicating, and no transactions occur during the sleep time (standby time). By grouping nodes according to the range of sleep time at the second hierarchical level and below, they can be grouped into groups with long and short sleep times.
[0165] Specifically, devices are divided into groups based on similar sleep times. Devices with long sleep times have a low transaction frequency and therefore a low calculation frequency, which makes it possible to reduce the calculation frequency. Here, devices with long sleep times tend to have low performance, so this grouping is effective. In this way, by grouping nodes based on the frequency of transaction occurrence, it is possible to reduce the amount of calculation and prevent the ledger from becoming too large.
[0166] The sleep time of each node 100 belonging to one of the multiple lower hierarchical groups may be within a first predetermined time range. The sleep time of each node 100 belonging to another lower hierarchical group different from the one lower hierarchical group may be within a second predetermined time range different from the first predetermined time. In the example of FIG. 24 , the sleep time of each node 100 belonging to group 200B is longer than one day. The sleep time of each node 100 belonging to group 200C is one day or less and one hour or more. The sleep time of each node 100 belonging to group 200D is less than one hour. Note that this type of grouping is merely an example and is not limited to the example of FIG. 24 .
[0167] The maximum number of nodes 100 belonging to each group may be determined according to the performance of the nodes 100 belonging to that group. For example, the limit on the number of nodes in one group may be determined depending on the node with the lowest performance among the nodes participating in that group. The greater the number of nodes in one group, the greater the update frequency and size of the ledger are likely to be. Therefore, the maximum number of groups to which the node with the lowest performance belongs is determined according to the performance of the node with the lowest performance.
[0168] 25, if the number of nodes 100 belonging to a lower hierarchical group exceeds the maximum number of nodes 100 belonging to that lower hierarchical group, a new lower hierarchical group may be formed. In the example shown, the number of nodes 100 with sleep times longer than one day exceeds the maximum number (limit number) of group 200B, so a new group 200E is formed, consisting of nodes 100 with sleep times longer than one day. In this way, if there are more nodes than the limit number, a new group with the same sleep time range is added. Alternatively, if the number of nodes 100 belonging to a lower hierarchical group exceeds the maximum number of nodes 100 belonging to that lower hierarchical group, a layer may be added below, and an even lower group may be formed.
[0169] Next, the priority order within a group according to the second embodiment will be described with reference to Fig. 26 and Fig. 27. As shown in Fig. 26, the nodes in each group are prioritized using performance parameters. The priority order is calculated based on at least one of the performance parameters: battery capacity, computing power, storage capacity, and sleep time.
[0170] Within one group, the node with the highest priority is set as the leader node, the node with the second highest priority as the sub-leader node, and the rest as child nodes. In Figure 26, the priority of each node 100 in group 200B, which is a lower hierarchical group, is indicated by a number. For example, when a new node 100 is added to a lower hierarchical group, the new node 100 or another node 100 determines whether to set the new node 100 as a leader node, sub-leader node, or child node based on the performance of the new node 100.
[0171] The multiple nodes 100 that form one group include a leader node that belongs to both the upper hierarchy group and the lower hierarchy group and manages the lower hierarchy ledger and the upper hierarchy ledger, a sub-leader node that belongs to the lower hierarchy group and is changed to a new leader node when the leader node ceases to function as the leader node, and a child node 100 that belongs to the lower hierarchy group and does not correspond to either the leader node 100 or the sub-leader node 100.
[0172] Here, the sub-leader node 100 has higher performance than the child node 100, and the leader node 100 has higher performance than the sub-leader node 100. Also, the sub-leader node 100 plays more roles than the child node 100, and the leader node 100 plays more roles than the sub-leader node 100. For this reason, the roles played by the nodes 100 are matched with their performance.
[0173] For example, when a transaction occurs in a lower hierarchical group and the lower hierarchical ledger is updated, the leader node notifies the upper hierarchical group of the update. As a result, a transaction occurs in the upper hierarchical group (the upper hierarchical ledger is updated). Specifically, the leader node notifies the nodes 100 belonging to the upper hierarchical group of the update to the lower hierarchical ledger in accordance with the transaction within the lower hierarchical group, and the nodes 100 belonging to the upper hierarchical group update their upper hierarchical ledger in accordance with the notification from the leader node.
[0174] Furthermore, when the upper hierarchy ledger of the upper hierarchy group is updated, the leader node passes the upper hierarchy ledger to the sub-leader node. In other words, when the upper hierarchy ledger is updated, the leader node shares the updated upper hierarchy ledger with the sub-leader node.
[0175] In the example of Fig. 26, when a transaction occurs in group 200B and ledger (B) is updated, the leader node of group 200B notifies group 200A that ledger (B) has been updated. As a result, a transaction occurs in group 200A (ledger (A) is updated). Furthermore, when ledger (A) of group 200A is updated, the leader node of group 200B passes ledger (A) to the sub-leader node of group 200B.
[0176] As shown in Figure 27, if a leader node is deleted from a group for some reason (for example, by leaving the group on its own or by being forcibly deleted due to fraudulent activity), the sub-leader node with second priority automatically becomes the first priority, i.e., the new leader node. The priorities of all other nodes are also raised by one. Furthermore, if a sub-leader node is changed to a new leader node, or if a sub-leader node ceases to function as such, the child node with the highest priority among multiple child nodes is changed to the new sub-leader node. Note that, because priority must be linked to each group, each node 100 has a priority parameter value linked to its chain ID.
[0177] The node 100 initially set as the leader node is selected based on performance parameters, so there is no problem. However, the new leader node set when a leader node is deleted may have insufficient performance parameters. Therefore, a threshold may be set for the performance parameters of each hierarchical level, and for leader nodes whose performance is below the threshold, the leader node may be changed (rotated) every certain number of transactions. In other words, if a sub-leader node is set as the new leader node following the deletion of a leader node, and the performance of the new leader node does not meet a predetermined standard, the node 100 set as the leader node may be changed every certain number of transactions. By lowering its own priority during the change, the sub-leader node becomes the next leader node. The number of transactions required to rotate the leader node is stored as a node parameter and is changeable.
[0178] Next, an example of node parameters stored in the ledger according to the second embodiment will be described with reference to FIG.
[0179] As described above, in the second embodiment, node parameters may be stored in a ledger. For example, when a new node 100 is added to the upper hierarchical group, each node 100 belonging to an upper hierarchical group may update the upper hierarchical ledger so as to add the parameters of the new node 100 added to the upper hierarchical group to the upper hierarchical ledger. When a new node 100 is added to the lower hierarchical group, each node 100 belonging to a lower hierarchical group may update the lower hierarchical ledger so as to add the parameters of the new node 100 added to the lower hierarchical group to the lower hierarchical ledger.
[0180] As shown in FIG. 28, nodes 100 other than node 100B2 in the lowest hierarchy, i.e., node 100B1, belong to two groups. Therefore, node 100B1 needs to maintain a common ledger for each group, and has two ledgers (ledger (A) and ledger (B)). Here, the two groups (group 200A and group 200B) each have parameters that allow them to be distinguished in a manner linked to a chain ID. As described above, ledger (A), which is the higher hierarchy ledger, contains the hash value, etc., of ledger (B), which is the lower hierarchy ledger, and therefore when ledger (B) is updated, ledger (A) also needs to be updated.
[0181] The node parameters stored in the ledger are, for example, at least one of the following parameters:
[0182] Chain ID: A maximum of two are required. The chain ID makes it possible to determine which of two groups is the higher-level group.
[0183] - Ledger hash value: A value linked to the chain ID, and up to two are required.
[0184] ・Node priority: A value linked to the chain ID, and a maximum of two is required.
[0185] Parent chain ID: The ID of the higher-level chain in which the group's leader node participates. By clarifying the parent-child relationship of groups, the automation of the hierarchical structure can be carried out smoothly.
[0186] ・Validator node ID: The ID of the node that certified the ledger as correct.
[0187] Leader node rotation value: The number of transactions that triggers leader node rotation. When the number of leader node transactions reaches this value, the leader node will be rotated.
[0188] Number of leader node transactions: The number of transactions that have occurred since the node became the leader node.
[0189] Performance parameters of the node, such as at least one of battery capacity, computing power, storage capacity (memory margin information), and sleep time.
[0190] (2.2) Operations Related to Group Division in a Hierarchical Structure Network Next, operations related to group division in a hierarchical structure network according to the second embodiment will be described. The operations of the first embodiment described above can be applied to a hierarchical structure network as similar operations. An example of such application will be described below.
[0191] 29 is a diagram for explaining the operation related to group division in a hierarchical network according to the second embodiment. Hereinafter, a ledger at a higher level in the hierarchical structure (higher level ledger) may be referred to as a parent ledger, and a ledger at a lower level (lower level ledger) may be referred to as a child ledger.
[0192] As shown in Figure 29, there are subgroups B and C obtained by dividing group A, and a parent group exists in a higher hierarchy than group A. Before the group division, the chain ID of ledger A managed by group A is assumed to be "1."
[0193] The chain ID of the parent ledger managed by the parent group is "0", the chain ID of sub-ledger B managed by sub-group B is "1", and the chain ID of sub-ledger C managed by sub-group C is "1". Note that in the first embodiment, group A (ledger A) was maintained, but in the hierarchical structure network according to the second embodiment, the parent ledger can play the role of ledger A (common ledger A). When the parent ledger plays the role of ledger A (common ledger A), no blocks are added to ledger A thereafter, so group A is no longer necessary, and a configuration such as that shown in FIG. 29 can be used. However, as in the first embodiment, group A (ledger A) may be maintained. In the following second embodiment, the operation when the parent ledger plays the role of ledger A (common ledger A) will be described.
[0194] In order to mediate transactions between parent and child ledgers, there is a leader node that participates in both the parent ledger (parent group) and the child ledger (subgroup that is a child group). In the example of Fig. 29, node 100a is the leader node of subgroup B, and node 100a manages both the parent ledger and sub-ledger B. Furthermore, node 100e is the leader node of subgroup C, and node 100e manages both the parent ledger and sub-ledger C. In the following second embodiment, an example in which the leader node is a seed node will be described.
[0195] As described above, the second embodiment includes a plurality of groups that form a hierarchical network. The plurality of groups includes group A and a parent group, which is a higher-level group positioned at a higher level than group A. Each node 100 (nodes 100i to 100k in the illustrated example) that belongs to the parent group manages the parent ledger, which is a higher-level ledger.
[0196] In the second embodiment, when a node 100 generates a block to be added to a sub-ledger, the node 100 assigns a height to the block based on predetermined rules so that the heights do not overlap between different sub-ledgers. Note that in the second embodiment, the parent ledger and the sub-ledger have different chain IDs, so the parent ledger and the sub-ledger may have overlapping heights.
[0197] 30 is a diagram for explaining a block addition operation when a transaction of Table 2 is issued in a hierarchical structure network. Here, an example of operation that does not use a linked block is shown, but an operation that uses a linked block may also be used.
[0198] As shown in FIG. 30 , when a transaction occurs between nodes 100 belonging to different subgroups (subgroup B, subgroup C), each node 100 belonging to the parent group adds a block related to the transaction to the parent ledger. Furthermore, when a transaction occurs between nodes 100 belonging to different subgroups, a node 100 belonging to a subgroup adds height information of the block to be added to the parent ledger to the subledger of the subgroup to which the node belongs. That is, for a transaction between nodes 100 in different subgroups, a block is added to the parent ledger, and a block with the height information of the block added to the parent ledger is added to each subledger (subledger B, subledger C). Note that the information stored in each block of subledger B and subledger C does not have to be the height information of the block to be added to the parent ledger; it can be any information associated with the block to be added to the parent ledger, such as the block ID and / or hash value of the block to be added to the parent ledger.
[0199] 31 is a diagram showing an example of operation when a transaction occurs between nodes 100 in different subgroups according to the second embodiment. Here, the transaction source is node 100b in subgroup B, and the transaction destination is node 100h in subgroup C (see FIG. 29).
[0200] In step S401, node 100b, which is the transaction source node of subgroup B, receives a transaction issuance request specifying chain ID: 1 from a user.
[0201] In step S402, node 100b, which is the transaction source node of subgroup B, sends a location confirmation to node 100a, which is the seed node of subgroup B, to confirm whether node 100h, the transaction destination, is participating in subgroup B.
[0202] In step S403, node 100a, which is the seed node of subgroup B, determines that the destination node 100h is not participating in subgroup B, and sends a location confirmation to node 100e, which is the seed node of subgroup C, to confirm whether the destination node 100h is participating in subgroup C.
[0203] In step S404, node 100e, which is the seed node of subgroup C, determines that the business partner node 100h is participating in subgroup C, and sends a location notification to node 100a, which is the seed node of subgroup B, in response to the effect that the business partner node 100h is participating in subgroup C.
[0204] In step S405, node 100a, which is the seed node of subgroup B, transmits a location notification to node 100b, the source of the transaction in subgroup B, which is a response indicating that the trading partner is participating in subgroup C.
[0205] In step S406, the transaction source node 100b executes a transaction with the transaction destination node 100h.
[0206] In step S407, the transaction source node 100b makes a block addition request to the node 100a, which is the seed node of group A, since the transaction spans subgroups B and C.
[0207] In step S408, node 100a, which is a seed node of group A, requests a validator of the parent group (for example, node 100i) to add a block.
[0208] In steps S409 and S410, each node 100 in the parent group adds a block including the transaction data of the transaction to the parent ledger.
[0209] In step S411, node 100a, which is a seed node of group A, sends a notification (return) including height information of the block added to the parent ledger to node 100b, which is the source of the transaction.
[0210] In step S412, node 100b, the source of the transaction, sends a block addition request to node 100a, the seed node of subgroup B, based on the block addition to the parent ledger, including height information of the block added to the parent ledger.
[0211] In step S413, node 100a, which is the seed node of subgroup B, sends a block addition request to node 100e, which is the seed node of subgroup C, including height information of the block added to the parent ledger.
[0212] In step S414, node 100a, which is the seed node of subgroup B, requests the validator of subgroup B to add a block, and each node 100 in subgroup B adds a block including the height information to subledger B.
[0213] In step S415, node 100e, which is the seed node of subgroup C, requests the validator of subgroup C to add a block, and each node 100 in subgroup C adds a block including the height information to subledger C.
[0214] In steps S412 and S413, an example of transmitting a block addition request that includes height information of the block added to the parent ledger has been described, but this is not necessarily limited to this. For example, a block addition request that includes the block ID of the block added to the parent ledger may be transmitted. In this case, in step S414, a block including the block ID of the block added to the parent ledger may be added to sub-ledger B instead of the height information of the block added to the parent ledger. Similarly, in step S415, a block including the block ID of the block added to the parent ledger may be added to sub-ledger C.
[0215] In this operation example, adding blocks to the parent ledger, sub-ledger B, and sub-ledger C is performed in the same way as consensus building in a normal blockchain.
[0216] (3) Other Embodiments In the above-described second embodiment, a case where a new node 100 is added to the hierarchical network 10 and a case where a node 100 is removed from the hierarchical network 10 are described. However, the embodiments are not limited to this. For example, in response to a change in the performance of a node 100 already placed in a group in the hierarchical network 10, the node 100 may be relocated to a group different from the group in which the node 100 is currently placed. Furthermore, in response to a change in the performance of a node 100 already placed in a layer in the hierarchical network 10, the node 100 may be relocated to a layer different from the layer in which the node 100 is currently placed. In response to the formation of a new layer and / or group in the hierarchical network 10, the node 100 may be relocated to a layer and / or group different from the layer and / or group in which the node 100 is currently placed. If the hierarchy and / or group in which the node 100 is placed changes, a process may be performed to remove the node 100 from the hierarchy and / or group in which the node 100 was originally placed, and then a process may be performed to add the node 100 to the hierarchy and / or group in which the node 100 is to be relocated.
[0217] The above-described operational flows are not limited to being implemented independently, but can also be implemented by combining two or more operational flows. For example, some steps of one operational flow may be added to another operational flow, or some steps of one operational flow may be replaced with some steps of another operational flow. Furthermore, the order of the steps in each of the above-described operational flows is merely an example, and the order of the steps may be changed as appropriate.
[0218] A program may be provided that causes a computer to execute each process performed by the node 100. The program may be recorded on a computer-readable medium. Using the computer-readable medium, the program can be installed on a computer. Here, the computer-readable medium on which the program is recorded may be a non-transitory recording medium. The non-transitory recording medium is not particularly limited, and may be, for example, a recording medium such as a CD-ROM or a DVD-ROM. Furthermore, circuits that execute each process performed by the node 100 may be integrated, and at least a part of the node 100 may be configured as a semiconductor integrated circuit (chip set, SoC: System on a chip).
[0219] As used in this disclosure, the terms "based on" and "depending on" do not mean "based only on" or "depending only on," unless otherwise specified. The term "based on" means both "based only on" and "based at least in part on." Similarly, the term "depending on" means both "depending only on" and "depending at least in part on." Furthermore, the terms "include," "comprise," and variations thereof do not mean including only the listed items, but may mean including only the listed items or including additional items in addition to the listed items. Furthermore, the term "or" as used in this disclosure is not intended to mean an exclusive or. Furthermore, any reference to elements using designations such as "first," "second," etc., as used in this disclosure does not generally limit the quantity or order of those elements. These designations may be used herein as a convenient method of distinguishing between two or more elements. Thus, a reference to a first and a second element does not imply that only two elements may be employed therein or that the first element must precede the second element in some way. In this disclosure, where articles are added by translation, such as a, an, and the in English, these articles shall include the plural unless the context clearly indicates otherwise.
[0220] The above describes the embodiments in detail with reference to the drawings, but the specific configuration is not limited to that described above, and various design changes can be made within the scope that does not deviate from the gist of the invention.
[0221] This application claims priority from Japanese Patent Application No. 2023-073666 (filed April 27, 2023), the entire contents of which are incorporated herein by reference.
[0222] (4) Supplementary Notes The following are additional notes regarding the features of the above-described embodiment.
[0223] (Supplementary Note 1) A communication system using distributed ledger technology, comprising a plurality of nodes constituting a group that manages a ledger, wherein when the group is divided into a plurality of subgroups, the plurality of nodes manage a new sub-ledger that is individually established for each subgroup, and the chain ID of the sub-ledger of each subgroup is the same as the chain ID of the ledger.
[0224] (Supplementary Note 2) When a node generates a block including a height, the node assigns the height to the block based on a predetermined rule so that the height does not overlap between different sub-ledgers. The communication system described in Supplementary Note 1.
[0225] (Supplementary Note 3) The communication system according to Supplementary Note 1 or 2, wherein when a transaction occurs between nodes belonging to the same subgroup, each node belonging to the same subgroup updates the subledger managed by the same subgroup.
[0226] (Supplementary Note 4) The communication system according to Supplementary Note 3, wherein the nodes belonging to the group determine the nodes to belong to each subgroup based on the transaction occurrence situation before the group was divided into the plurality of subgroups so as to suppress the occurrence of transactions between nodes belonging to different subgroups.
[0227] (Supplementary Note 5) The communication system described in any one of Supplementary Notes 1 to 4, wherein the plurality of nodes continue to manage the ledger before the group was divided into the plurality of subgroups as a common ledger, and when a transaction occurs between nodes belonging to different subgroups, add a block related to the transaction to the common ledger.
[0228] (Supplementary Note 6) When a node generates a block including a height, the node assigns the height to the block based on a predetermined rule so that the height does not overlap between different sub-ledgers and so that the height does not overlap between the sub-ledger and the common ledger. The communication system described in Supplementary Note 5.
[0229] (Supplementary Note 7) The communication system according to Supplementary Note 5 or 6, wherein when a transaction occurs between nodes belonging to different subgroups, each of the plurality of nodes adds information associated with the block to be added to the common ledger to a subledger of the subgroup to which the node belongs.
[0230] (Supplementary Note 8) A communication system according to any one of Supplements 1 to 4, comprising a plurality of groups constituting a hierarchical network, the plurality of groups including the group and an upper-hierarchy group positioned at a higher level than the group, each node belonging to the upper-hierarchy group managing an upper-hierarchy ledger, and when a transaction occurs between nodes belonging to different subgroups, each node belonging to the upper-hierarchy group adding a block related to the transaction to the upper-hierarchy ledger.
[0231] (Supplementary Note 9) The communication system described in Supplementary Note 8, wherein when a transaction occurs between nodes belonging to different subgroups, each of the plurality of nodes adds hash information of the block to be added to the upper hierarchical ledger to the sub-ledger of the subgroup to which the node belongs.
[0232] (Supplementary Note 10) When the group is divided into the plurality of subgroups, a node belonging to each subgroup includes hash information of a latest block of the ledger of the group in the first block of the sub-ledger of the subgroup. The communication system according to any one of Supplementary Notes 1 to 9.
[0233] (Supplementary Note 11) A node constituting a group that manages a ledger in a communication system using distributed ledger technology, comprising: when the group is divided into multiple subgroups, a control unit that manages new sub-ledgers individually provided for each subgroup; and the chain ID of the sub-ledger of each subgroup is the same as the chain ID of the ledger.
[0234] (Supplementary Note 12) A program that causes a node constituting a group that manages a ledger in a communication system using distributed ledger technology to execute a process to manage a new sub-ledger that is individually set up for each sub-group when the group is divided into multiple sub-groups, and the chain ID of the sub-ledger of each sub-group is the same as the chain ID of the ledger.
[0235] 10: Hierarchical network structure 100: Node 110: Communication unit 120: Control unit 121: Processor 130: Storage unit 140: Battery 200: Group
Claims
1. A communication system using distributed ledger technology, comprising a plurality of nodes constituting a group that manages a ledger, wherein when the group is divided into a plurality of subgroups, the plurality of nodes manage a new sub-ledger that is individually set up for each subgroup, and the chain ID of the sub-ledger of each subgroup is the same as the chain ID of the ledger.
2. The communication system of claim 1, wherein when a node generates a block including a height, the node assigns the height to the block based on a predetermined rule so that the height does not overlap between different sub-ledgers.
3. The communication system according to claim 1, wherein when a transaction occurs between nodes belonging to the same subgroup, each node belonging to the same subgroup updates the subledger managed by the same subgroup.
4. The communication system according to claim 3, wherein the nodes belonging to the group determine which nodes belong to each subgroup based on the transaction occurrence situation before the group was divided into the plurality of subgroups so as to suppress the occurrence of transactions between nodes belonging to different subgroups.
5. The communication system according to claim 1, wherein the plurality of nodes continue to manage the ledger before the group was divided into the plurality of subgroups as a common ledger, and when a transaction occurs between nodes belonging to different subgroups, a block related to the transaction is added to the common ledger.
6. The communication system of claim 5, wherein when a node generates a block including a height, the node assigns the height to the block based on a predetermined rule such that the height does not overlap between different sub-ledgers and such that the height does not overlap between the sub-ledger and the common ledger.
7. The communication system of claim 5, wherein, when a transaction occurs between nodes belonging to different subgroups, each of the plurality of nodes adds information associated with the block to be added to the common ledger to a subledger of the subgroup to which the node belongs.
8. The communication system according to claim 1, comprising a plurality of groups constituting a hierarchical network, the plurality of groups including the group and a higher hierarchical group positioned at a higher hierarchy than the group, each node belonging to the higher hierarchical group managing a higher hierarchical ledger, and each node belonging to the higher hierarchical group adding a block related to a transaction to the higher hierarchical ledger when a transaction occurs between nodes belonging to different subgroups.
9. The communication system described in claim 8, wherein, when a transaction occurs between nodes belonging to different subgroups, each of the plurality of nodes adds hash information of the block to be added to the higher-level ledger to the sub-ledger of the subgroup to which the node belongs.
10. A communication system according to any one of claims 1 to 9, wherein when the group is divided into the plurality of subgroups, a node belonging to each subgroup includes hash information of the latest block of the ledger of the group in the first block of the subledger of its own subgroup.
11. A node constituting a group that manages a ledger in a communication system using distributed ledger technology, comprising: when the group is divided into a plurality of subgroups, a control unit that newly manages a sub-ledger that is individually provided for each subgroup; and the chain ID of the sub-ledger of each subgroup is the same as the chain ID of the ledger.
12. A program that causes a node constituting a group that manages a ledger in a communication system using distributed ledger technology to execute a process to newly manage a sub-ledger that is individually set up for each sub-group when the group is divided into multiple sub-groups, wherein the chain ID of the sub-ledger of each sub-group is the same as the chain ID of the ledger.
Citation Information
Patent Citations
Splitting the Blockchain Network
JP2021522702A
Method and system for scaling blockchains via secure chain division
WO2022161646A1
