Method and apparatus for adding additional chains to a blockchain, and shard generation method and apparatus therefor

The method allows dynamic addition of new chains in blockchain systems by using major and minor shareholder nodes based on equity values, enhancing processing performance and reducing transaction duplication.

JP7554871B2Active Publication Date: 2024-09-20ELECTRONICS & TELECOMM RES INST
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023071534
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2023-02-10
Filing Date
2023-04-25
Publication Date
2024-09-20
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

Existing blockchain systems face limitations in adding new chains beyond a predetermined maximum number and require node reconfiguration during epoch boundaries, leading to transaction delays and increased Byzantine fault probability.

Method used

A method allowing dynamic addition of chains at any time during operation by utilizing major and minor shareholder nodes, where major nodes process transactions and minor nodes do not, with consensus determined by equity values, enabling parallel processing without epoch-based reconfiguration.

Benefits of technology

Enables real-time addition of new chains with improved processing performance by reducing transaction duplication and maintaining decentralization, allowing nodes to participate in multiple chains simultaneously.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007554871000007
    Figure 0007554871000007
  • Figure 0007554871000013
    Figure 0007554871000013
  • Figure 0007554871000011
    Figure 0007554871000011
Patent Text Reader

Abstract

To provide a method for adding an additional chain to a blockchain.SOLUTION: A method for adding an additional chain to a blockchain includes the steps of: depositing, by a node of the blockchain, an asset corresponding to the additional chain; selecting the node as one of consensus nodes for connecting an additional block to the additional chain based on a share value corresponding to the asset; and performing, by the node, distributed consensus for connecting the additional block. Here, nodes constituting the blockchain include major shareholder nodes for processing transactions.SELECTED DRAWING: Figure 13
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to techniques for adding additional chains to a blockchain, and in particular to techniques for generating shards in an operational blockchain. [Background technology]

[0002] Blockchain is a technology that allows transactions to be processed between mutually untrusted parties without the intervention of a trusted third party, and the results to be recorded in a ledger. In a decentralized blockchain, any participating node can generate a new block, so transaction details must be transmitted to all nodes for processing. However, multiple nodes process transaction details in duplicate, and the on-chain processing performance of a blockchain with many participating nodes is generally lower than the transaction processing performance of a single node.

[0003] In addition to methods to improve the consensus performance of blockchain, methods have been proposed to record only the transaction results processed off-chain on-chain, and to improve the processing performance of blockchain by applying multiple chains. In particular, when multiple chains are used, the transactions processed on each chain can be distributed and processed in parallel, resulting in improved performance.

[0004] In existing multiple chains proposed by Ethereum and others, nodes are assigned to each chain on an epoch basis. In other words, the nodes assigned to each chain are reconfigured on an epoch basis, and the maximum number of multiple chains that one blockchain system can accommodate is determined. In this case, new chains can only be added at epoch boundaries. Also, it is impossible to add new chains to a blockchain system beyond the predetermined maximum number.

[0005] The reason for reconfiguring nodes on an epoch basis is to ensure that only transactions that can be processed by each chain are transmitted, since nodes in a particular chain cannot process transactions other than those they process. In other words, by transmitting transactions that can only be processed by nodes in that chain, parallel processing can be performed for each chain, improving processing performance. Therefore, it is difficult for one node to participate in the agreement of two or more chains at the same time in a particular epoch.

[0006] With these existing technologies, transaction processing is delayed or impossible at epoch boundaries, which means that nodes must be reconfigured during non-trading times such as overnight.In addition, since one node is assigned to only one of multiple chains, there is a problem that the probability of a Byzantine fault increases when there are not many nodes participating in the blockchain.

[0007] A nonce chain-based consensus selection method and a blockchain generation method using the same are disclosed in detail in the paper "Algorithm based on Byzantine agreement among decentralized agents (BADA)" published on October 20, 2020, US Patent Application Publication No. 2019 / 0327084, US Patent Application Publication No. 2019 / 0379538, and US Patent Application Publication No. 2020 / 0403776. However, the technology disclosed in the paper and specification can configure any consensus by a method in which one node tosses a coin once with a success probability p and a failure probability 1-p, and selects an agreement node according to the result, but since transactions must be transmitted to all nodes, the transaction transmission cost inevitably reduces the performance of the entire blockchain.

[0008] Therefore, there is a pressing need for new technology that allows any participating node to be selected as a consensus body for each block, generate new blocks and connect them to the blockchain, even though only a portion of the nodes receive the transactions to be processed, and allows additional chains to be added at any time during the operation of the blockchain. Summary of the Invention [Problem to be solved by the invention]

[0009] The purpose of the present invention is to allow chains (shards) to be added at any time during the operation of the blockchain, and to allow nodes to participate as consensus parties in two or more chains simultaneously.

[0010] It is also an object of the present invention to allow some nodes to dynamically join new chains without having to reassign nodes to multiple chains every epoch.

[0011] Another object of the present invention is to grant nodes participating in a blockchain consensus voting authority for a specific chain, enabling them to participate in the consensus body for that chain and operate that chain.

[0012] Furthermore, an object of the present invention is to enable a new chain to be added in real time without reconfiguring nodes in an operational blockchain by reassigning nodes to each chain, and to enable the added chain to improve the processing performance of the entire blockchain through parallel processing. [Means for solving the problem]

[0013] To achieve the above object, the method for adding an additional chain to a blockchain according to the present invention includes the steps of: a node of the blockchain depositing an asset corresponding to the additional chain; selecting the node as one of the consensus nodes for linking an additional block to the additional chain based on a share value corresponding to the asset; and the node conducting distributed consensus for linking the additional block.

[0014] Here, the nodes participating in the additional chain may include a major shareholder node for transaction processing.

[0015] Here, the nodes participating in the additional chain include minor shareholder nodes that are not the major shareholder nodes, and transactions are not transmitted to the minor shareholder nodes.

[0016] Here, the consensus node may include at least one major shareholder node and at least one minor shareholder node.

[0017] Here, the consensus nodes may initially include only the major shareholder nodes.

[0018] Here, the additional chain can determine whether or not a new node can participate based on a first total share value corresponding to the major shareholder node and a second total share value corresponding to the minor shareholder node.

[0019] Here, whether the new node can participate is determined based on a result of comparing the first total share value, the second total share value, and the sum of the share value of the new node.

[0020] Here, the first total stake value can be increased by an expansion process to allow the new nodes to join the additional chain.

[0021] Here, the expansion process may be any one of a first process of increasing a share value corresponding to one or more of the major shareholder nodes, a second process of adding a new major shareholder node, and a third process of changing at least one of the minor shareholder nodes to a major shareholder node.

[0022] Now, data about the additional chain can be recorded in one block of the blockchain.

[0023] Here, the data regarding the additional chain may include participating node information of nodes participating in the additional chain and share values ​​of nodes participating in the additional chain.

[0024] Here, the data regarding the additional chain includes start information of the additional chain, and the start block of the additional chain may record information regarding at least one block of the blockchain that recorded the data regarding the additional chain.

[0025] Here, at least one of the minor shareholder nodes can participate as a minor shareholder node in a chain other than the additional chain.

[0026] Here, the major shareholder node cannot participate as a major shareholder node in any chain other than the additional chain.

[0027] Additionally, an apparatus for adding an additional chain to a blockchain according to one embodiment of the present invention includes one or more processors and an execution memory for storing at least one program executed by the one or more processors.

[0028] Here, the at least one program deposits assets corresponding to an additional chain to be added to the blockchain, is selected as one of consensus nodes for linking an additional block to the additional chain based on a share value corresponding to the assets, and performs distributed consensus for linking the additional block. Here, the nodes participating in the additional chain may include a major shareholder node for transaction processing.

[0029] Here, the nodes participating in the additional chain include minor shareholder nodes that are not the major shareholder nodes, and transactions are not transmitted to the minor shareholder nodes.

[0030] Here, the additional chain can determine whether or not a new node can participate based on a first total share value corresponding to the major shareholder node and a second total share value corresponding to the minor shareholder node.

[0031] Here, at least one of the minor shareholder nodes can participate as a minor shareholder node in a chain other than the additional chain.

[0032] Here, the major shareholder node cannot participate as a major shareholder node in any chain other than the additional chain.

[0033] In addition, a method for generating a shard of a blockchain according to one embodiment of the present invention includes the steps of participating in an additional chain as a major shareholder node, participating in the additional chain as a minor shareholder node, and forming a consensus body including one or more of the major shareholder nodes and the minor shareholder nodes.

[0034] Here, the major shareholder node is for transaction processing, and transactions are not transmitted to the minor shareholder nodes. Effect of the Invention

[0035] According to the present invention, new chains can be added at any time during the operation of the blockchain.

[0036] In addition, the present invention can control the number of participating nodes according to the equity value corresponding to the major shareholder node, which can be a useful means for starting a new business in a new chain by initially testing the business with a small number of participating nodes and gradually increasing the number of participating nodes.

[0037] In addition, by controlling so that one node does not become a major shareholder node for two or more chains, the present invention makes it possible to separate nodes that receive and process transactions for each chain, thereby reducing overlapping traffic generation even when dynamically adding chains.

[0038] Furthermore, in the present invention, major shareholder nodes for each of the multiple chains are separated for each chain (shard), but the remaining minor shareholder nodes can participate in two or more chains simultaneously, enabling efficient operation of multiple chains. [Brief description of the drawings]

[0039] [Figure 1] 1 is a table illustrating the ownership status and transaction processing of nodes including major shareholder nodes according to one embodiment of the present invention. [Diagram 2] 1 is an operational flowchart illustrating a distributed consensus method according to an embodiment of the present invention. [Diagram 3] FIG. 11 is a block diagram showing an example in which a new block is agreed upon and added to a blockchain by a blockchain generation method according to one embodiment of the present invention. [Figure 4] 1 is a table illustrating a method for generating a blockchain according to one embodiment of the present invention. [Diagram 5] 1 is an operational flowchart showing a block chain generation method according to an embodiment of the present invention. [Figure 6] 1 is an operational flowchart illustrating a process in which nodes constituting a blockchain perform a calculation corresponding to a success probability a number of times corresponding to a stake value according to an embodiment of the present invention. [Figure 7] 1 is a table illustrating an example in which nodes constituting a blockchain have different types of share values ​​according to an embodiment of the present invention. [Figure 8] 1 is a block diagram showing a configuration of a computer system according to an embodiment of the present invention; [Figure 9] 1 is a table showing an example of asset holdings of blockchain participating nodes. [Figure 10] 10 is a table showing an example of participating node information of a node that has participated in the 10th chain in the example shown in FIG. 9. [Figure 11] 10 is a table showing an example of participating node information of a node that has participated in the 15th chain in the example shown in FIG. 9. [Figure 12] FIG. 1 is a block diagram showing an example in which an additional chain is applied to a blockchain. [Figure 13] This figure shows an example where the 10th chain and the 15th chain share minor shareholder nodes. [Figure 14]1 is an operational flowchart illustrating a method for adding a new chain to a blockchain according to one embodiment of the present invention. [Figure 15] 1 is an operational flowchart showing a blockchain shard generation method according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0040] The advantages and features of the present invention, as well as the methods for achieving them, will become clear from the following detailed description of the embodiments in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, and may be realized in various different forms. The embodiments are provided solely to complete the disclosure of the present invention and to fully inform those skilled in the art of the present invention of the scope of the invention, and the present invention is defined solely by the scope of the claims. The same reference numerals refer to the same elements throughout the specification.

[0041] Although "first" or "second" is used to describe various components, such components are not limited by such terms. Such terms are used merely to distinguish one component from another. Therefore, the first component referred to below may be the second component within the technical concept of the present invention.

[0042] The terms used in the present specification are for describing the embodiments and are not intended to limit the present invention. In the present specification, the singular form includes the plural form unless otherwise specified in the text. The term "comprises" or "comprising" used in the specification includes the meaning that the mentioned component or step does not exclude the presence or addition of one or more other components or steps.

[0043] Unless otherwise defined, all terms used in this specification are to be interpreted in a manner commonly understood by those having ordinary skill in the art to which the present invention pertains. Furthermore, terms defined in commonly used dictionaries are not to be interpreted ideally or excessively unless they are clearly and specifically defined.

[0044] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. When describing with reference to the drawings, the same or corresponding components are designated by the same reference numerals, and duplicate descriptions thereof will be omitted.

[0045] Generally, when the number of participating nodes increases in a blockchain that uses non-competitive consensus, the complexity of the consensus message increases and performance decreases. In this case, performance can be increased by selecting a portion of the nodes as the consensus and reducing the number of nodes that directly participate in the consensus. However, if only a fixed portion of nodes are used as the consensus, the problem of centralization will arise again, so a technology is needed to arbitrarily reconstruct the consensus for each block.

[0046] In addition, randomly selected consensus nodes can increase performance by using a consensus algorithm with message complexity O(N). Here, since all nodes can be selected as consensus nodes, the traffic cost for transmitting transactions to be processed to all participating nodes increases in proportion to the number of nodes, which can cause performance degradation. Therefore, a method to reduce the amount of data in the entire network is required. For example, there has been research on reducing the amount of data by optimization using the Gossip protocol, but when arbitrarily selecting consensus nodes, it is not possible to predict which node will be selected as the consensus node, so it is not possible to reduce the number of transactions transmitted to each node.

[0047] The aforementioned paper “Algorithm based on Byzantine agreement among decentralized agents (BADA)” and U.S. Patent Application Publication No. 2019 / 0379538 introduced a method for performing Byzantine fault-tolerant agreement using an arbitrarily selected consensus body.

[0048] According to this consensus algorithm, it is possible to find p (p is the success probability) and f (f is the Byzantine size, a constant greater than or equal to 1) that simultaneously satisfy the following formulas 1 and 2, and to determine the size of the consensus body as 3f+1. Here, n is the number of all participating nodes, b is the number of Byzantine nodes, and the ratio of Byzantine nodes included in all nodes is b p If b is n×b p become.

[0049] The following formula 1 expresses the probability that the number of successful Byzantine nodes exceeds f when b Byzantine nodes play a coin toss with success probability p and failure probability 1-p. max_bzt In addition, the following formula 2 means that when all n nodes play a coin toss with a success probability of p and a failure probability of 1-p, the probability that the number of successful nodes is 3f or less is P min_node This means that the following will happen:

[0050]

number

[0051]

number

[0052] In the consensus algorithms introduced in the aforementioned papers, when the total number of nodes is n and the number of successful nodes is 3f+1 or more as a result of a coin toss with a success probability p that satisfies the conditions of the above two equations, 3f+1 nodes are randomly selected to form a consensus body. In this case, the node that succeeded in the coin toss cannot be known in advance, and therefore, since all nodes may be selected as the consensus body, the transaction to be processed must be transmitted to all nodes. This is a problem that occurs not only in the consensus algorithms introduced in the aforementioned papers, but also in all consensus algorithms that randomly select nodes to form a consensus body and only nodes corresponding to the configured consensus body participate in the agreement.

[0053] According to one embodiment of the present invention, a Byzantine fault tolerant distributed consensus is performed based on the shareholding ratio of nodes in the blockchain distributed consensus. In particular, according to one embodiment of the present invention, only a selected portion of nodes processes transactions, and a randomly selected consensus entity among all nodes can generate a new block for each block and connect it to the blockchain.

[0054] According to one embodiment of the present invention, in the above two equations, n can be used as the sum of shares issued to all nodes rather than the total number of nodes, and b can be used as the shares held by a Byzantine node (the maximum Byzantine share included in the total shares) rather than the number of Byzantine nodes (the maximum Byzantine node number).

[0055] By applying non-node shares to the above formula, all nodes can participate in the consensus even though only some nodes (major shareholder nodes, described below) process transactions. This allows a random consensus body to be formed, a distributed consensus to proceed, and the agreed block to be added to the blockchain.

[0056] If a consensus is formed using Equations 1 and 2 based on the number of nodes, all nodes that may form the consensus must receive transactions, which may result in a decrease in performance due to the load of transaction processing.

[0057] According to one embodiment of the present invention, a node to process a transaction is selected, a consensus node is selected using this node, and a distributed consensus is performed using the consensus node to link a new block to the blockchain.

[0058] First, nodes for transaction processing can be selected as follows:

[0059] The share values ​​(share sizes) owned by each node constituting the blockchain are sorted in descending order, and nodes having larger share values ​​are selected as major shareholder nodes. Here, major shareholder nodes may be nodes whose total shareholdings are equal to or greater than a preset value. Here, major shareholder nodes may be selected until the cumulative shareholdings of the selected major shareholder nodes are equal to or greater than a specific shareholding ratio of the total shareholdings, or may be selected from nodes whose shareholding values ​​are larger by a predefined number.

[0060] In this manner, only the selected major shareholder node can selectively process transactions and therefore receive the transactions to be processed, while the remaining nodes other than the major shareholder node can only act as transaction intermediaries.

[0061] In this way, if a major shareholder node for transaction processing is separately selected from among all nodes, only the major shareholder node among all consensus nodes participating in the distributed consensus receives the transaction to be processed. Therefore, the traffic cost of the entire network can be reduced. Here, when the consensus body is formed, the major shareholder node can use its own transaction in the distributed consensus.

[0062] FIG. 1 is a table illustrating the ownership status and transaction processing of nodes, including major shareholder nodes, according to one embodiment of the present invention.

[0063] Referring to FIG. 1, the total number of nodes is 100, the total number of issued shares is 180, and the cumulative number of shares held by the top 10 nodes is 90, which is 50% of the total number of shares.

[0064] Here, node 1, node 2, node 3, node 4, node 5, node 6, node 7, node 8, node 9, and node 10, which own 50% of the total shares, are selected as major shareholder nodes. Here, only the selected major shareholder nodes, node 1, node 2, node 3, node 4, node 5, node 6, node 7, node 8, node 9, and node 10, can receive transactions to be processed, and the remaining nodes, node 11, node 12, ..., node 99, and node 100, can only act as transaction intermediaries.

[0065] Hereinafter, a method for selecting an agreement node for distributed agreement according to an embodiment of the present invention will be described.

[0066] Essentially, the selection of consensus nodes according to one embodiment of the present invention is performed using Equations 1 and 2 on an equity basis.

[0067] The total number of shares held by all participating nodes is n, and the Byzantine ratio is b. p In this case, the maximum Byzantine stake is b(=n×b p) and then it is possible to find p and f that simultaneously satisfy the above formulas 1 and 2.

[0068] That is, the nodes that make up the blockchain repeatedly toss coins with a success probability of p according to their own stake value, and after collecting the results of all nodes, if the total of successful stakes is 3f+1 or more, any node that has 3f+1 stakes is selected as the consensus node (consensus body). Here, in order to prevent a specific node from holding an excessively large consensus stake (stakes that succeeded in coin tosses), a method may be applied in which only the upper limit of the participation stakes is recognized as valid stakes.

[0069] Acceptable Byzantine ratio b p 20%, P min_node =1.0e -6 , P max_bzt =2.0e -16 Assuming that, in the example of FIG. 1, the total shareholding n held by the 100 nodes is 180, so f, which simultaneously satisfies equations 1 and 2, is 36 and p is 0.7666666666666667.

[0070] Table 1 below shows the Byzantine ratio b p 20%, P min_node =1.0e -6 , P max_bzt =2.0e -16 2. Assuming that f and p are found based on nodes using the distributed agreement algorithm disclosed in the aforementioned paper “Algorithm based on Byzantine agreement among decentralized agents (BADA)”, US Patent Application Publication No. 2019 / 0327084, US Patent Application Publication No. 2019 / 0379538, and US Patent Application Publication No. 2020 / 0403776, the table compares the results of finding f and p that satisfy Equation 1 and Equation 2 based on shares according to one embodiment of the present invention.

[0071] [Table 1]

[0072] In Table 1, in the case of the NODE BASED method, n is the number of all nodes, 3f+1 is the number of consensus nodes corresponding to the consensus congress, 2f+1 is the number of quorum nodes corresponding to the consensus quorum, and f is the probability P max_bzt is the number of Byzantine nodes corresponding to

[0073] In Table 1, in the case of the share-based method, n is the total number of shares held by all nodes, 3f+1 is the number of consensus shares corresponding to a consensus congress, 2f+1 is the number of quorum shares corresponding to a consensus quorum, and f is the probability P max_bzt is the number of Byzantine shares corresponding to

[0074] In other words, when a participant node repeatedly flips a coin with a success probability p for each share value it owns, the total number of successful shares follows a binomial distribution, and all nodes that have succeeded at least once become consensus candidate nodes. In other words, all nodes that have successful shares become consensus candidate nodes.

[0075] In the example in Table 1, considering the total number of shares that satisfy the conditions, n, and the success probability, p, on average, about 138 (=n×p=180×0.767) shares will be successful in the coin toss. Therefore, from the approximately 138 successful shares, nodes that own 109 (3f+1) successful shares (consensus shares) can be selected as consensus nodes, which are equivalent to a consensus congress.

[0076] When forming 109 consensus shares, if successful shares are selected preferentially from major shareholder nodes, on average, 69 (=90 x 0.767) successful shares from major shareholder nodes should be selected as consensus shares. In this case, the remaining 40 consensus shares are randomly selected from the successful shares of nodes between node 11 and node 100. The shares that are actually selected are determined by probability distribution, but here, we have taken the average value as a simple example to explain the concept.

[0077] If the 69 successful shares of the selected major shareholder nodes are distributed to the 10 major shareholder nodes in Figure 1, the number of consensus nodes holding consensus shares will be 50 in total, consisting of the 10 major shareholder nodes and the remaining 40 nodes (since the remaining nodes have a share of 1). This means that distributed consensus is possible with fewer consensus nodes than would be required if 100 nodes participated, as can be seen from Table 1 above, as 61 consensus nodes would be required if the consensus was selected based on nodes.

[0078] In addition, in existing delegation-based distributed consensus algorithms such as DPoS, only nodes to which the authority to agree is delegated (bp node in the case of EOS) can participate in the agreement, and the remaining nodes cannot. In contrast, in the consensus algorithm according to one embodiment of the present invention, only 10 out of 50 total consensus nodes are selected as major shareholder nodes, so other nodes with shares of 1 or more can still participate in the agreement. Therefore, the consensus algorithm according to one embodiment of the present invention can maintain decentralization by allowing all nodes to participate in the agreement, even while having a separate node for transaction processing.

[0079] FIG. 2 is an operational flowchart illustrating a distributed consensus method according to one embodiment of the present invention.

[0080] Referring to FIG. 2, according to a distributed consensus method according to an embodiment of the present invention, each node constituting a blockchain performs an operation corresponding to a success probability p a number of times corresponding to its share value (S210).

[0081] Here, the nodes constituting the blockchain may include a major shareholder node for transaction processing.

[0082] Here, the calculation may use a random value generated using a nonce chain of the node performing the calculation, and compare it with a threshold corresponding to the success probability.

[0083] In addition, according to a distributed consensus method according to one embodiment of the present invention, nodes that hold at least one share corresponding to the operation which is successful send messages to be selected as consensus nodes (S220).

[0084] Furthermore, according to a distributed consensus method according to one embodiment of the present invention, a node that holds consensus shares selected from the shares corresponding to the operation which is successful performs distributed consensus as the consensus node (S230).

[0085] Here, the shares held by the major shareholder node that correspond to the successful operation may have priority to be selected as the consensus shares.

[0086] Here, the major shareholder node may have an upper limit for the consensus stake.

[0087] Here, the major shareholder node is selected from the nodes in descending order of shareholding, based on the shareholding order.

[0088] Here, major shareholder nodes are selected until the cumulative shares of the selected major shareholder nodes reach a preset ratio of the total shares or until the number of selected major shareholder nodes reaches a preset number.

[0089] Here, if a major shareholder node is selected as a consensus node, it sends a delegate request message including transactions, and other consensus nodes that are not major shareholder nodes can send delegate request messages that do not include transactions.

[0090] Here, the nodes constituting the blockchain have at least one other share value in addition to the share value, and can process other types of services in parallel based on the share value and the other share value.

[0091] Here, the nonce value corresponding to the nonce chain can be shared with the stake value and the other stake value. When sharing a nonce value in this way, coin tossing for two or more stake values ​​is possible by using the stake-related hash of the previous block.

[0092] FIG. 3 is a block diagram showing an example in which a new block is agreed upon and added to a blockchain by a blockchain generation method according to one embodiment of the present invention.

[0093] Referring to FIG. 3, it can be seen that currently, consensus has been completed up to block 100 and it has been linked to the blockchain. If distributed consensus is performed for block 101 and the consensus is successful, block 101 will be linked to the blockchain.

[0094] Here, in the consensus process of block 100, the coin toss results of the nodes (only the stake value for each node) to determine the consensus body of block 101 are collected, and as in the example above, 50 nodes that possess 109 successful stakes are selected as the consensus body (agreement node).

[0095] FIG. 4 is a table illustrating a method for generating a blockchain according to one embodiment of the present invention.

[0096] Referring to FIG. 4, in the method for generating a blockchain according to one embodiment of the present invention, it can be seen that node 5 among the consensus nodes is the chair node of block 101.

[0097] The example of Figure 4 corresponds to one embodiment of the present invention described with reference to Figures 1 to 3, and the agreement node is 50 nodes holding 109 successful shares, including major shareholder nodes Node 1 to Node 10. Although not explicitly shown in Figure 4, the agreement node includes 40 nodes selected from Node 11 to Node 100 excluding the 10 major shareholder nodes.

[0098] In the example of Figure 4, we assume that when the consensus is formed, the success share of each node is also published.

[0099] After block 100 is agreed upon, transactions t1, t2, t3, and t4 that have not yet been processed are transmitted to the respective major shareholder nodes, and nodes 1 to 10 now have transactions t1, t2, t3, and t4.

[0100] In the delegate request step of block 101, each consensus node transmits a message containing a transaction that it has received to the chair node. Here, the message format may be Dr(node, {txs}), and additional information such as a digital signature may be included in the message for message integrity. For the sake of convenience, only the required data excluding the additional information will be briefly described below.

[0101] Among the consensus nodes, nodes 1 to 10, which are major shareholder nodes, transmit a message Dr(node, {t1, t2, t3, t4}) including transaction {t1, t2, t3, t4} to the chair node, as shown in Figure 3. Here, the 40 consensus nodes selected from nodes 11 to 100 do not have any transactions, so they send a message like Dr(node, {}) to the chair node, node 5.

[0102] In the delegate request step, if the total number of successful shares of nodes that have sent Dr() messages is greater than the size of the quorum, which is 73 (2f+1), and the total number of successful shares of Dr() messages received simultaneously from nodes 1 to 10 is 37 (f+1) or more, the chair node node 5 generates a prepare message and transmits it to the quorum nodes, changing the state of the chair node to Prepare. In the example of FIG. 4, there are a total of 14 quorum nodes including the chair node (node ​​1, node 2, node 3, node 4, node 5, node 6, node 7, node 8, node 9, node 10, node 12, node 35, node 76, and node 100).

[0103] The prepare message generated by the chair node includes transactions requested by nodes that have successful stakes in 37(f+1) or more of the transactions {t1, t2, t3, t4} included in each of the received delegate request messages, and additional information. Here, the additional information may be evidence corresponding to the included transactions, data for multi-signature, etc. The consensus technique using multi-signature is described in detail in the aforementioned paper and specification.

[0104] As mentioned above, when the major shareholder nodes among the consensus nodes repeatedly toss coins for their respective shares, the average total number of successful attempts is 69. As mentioned above, since f is 36, a prepare message including transactions that have obtained consent for 37 (53.62%) of the successful shares should be generated by the chair node. In the example described in FIG. 4, the number of successful shares owned by the 10 nodes, node 1 to node 10, that requested the processing of transaction {t1, t2, t3, t4} is 69, which is more than 37(f+1), so a prepare message including transactions t1, t2, t3, t4 and the successful share proof of the node requesting the processing of each transaction is generated and sent to the quorum node.

[0105] The load of transaction data required per node for 10,000 TPS (Transactions Per Second) performance is 20 Mbits / s, and nodes 1 to 10 must receive 10,000 transactions per second to check for anomalies, and generate a Dr(node, {10,000txs}) message containing 10,000 transactions and send it to the chair node. In this case, the traffic for raw transaction transmission from the nine nodes excluding the chair node to the chair node requires 180 Mbits / s. Of course, network costs can be reduced by using transaction hashing.

[0106] Since the 40 consensus nodes selected from node 11 to node 100 have not received and stored any transactions, they transmit a Dr(node,{}) message containing an empty transaction to the chair node, so the network cost for transmitting the transaction is 0.

[0107] Furthermore, from the perspective of the chair node, the computing load for transaction processing is reduced because the Dr(node,{}) messages received from the 40 nodes do not contain transactions.

[0108] In the case of the consensus algorithm introduced in the above-mentioned paper and specification, as shown in Table 1, 60 nodes excluding the chair node among the 61 consensus nodes must send Dr(node, {10,000txs}) messages containing 10,000 transactions to the chair node, in which case the traffic that the chair node must receive is 60 x 20Mbits / s = 1,200Mbps / s, which is impossible to process even with a network bandwidth of 1Gbits. Even if there is no limit to the network bandwidth, the chair node will have to consume computing resources to process all 60 messages, which contain transactions.

[0109] In the example of FIG. 4, the quorum nodes are 14 nodes (node ​​1, node 2, node 3, node 4, node 5, node 6, node 7, node 8, node 9, node 10, node 12, node 35, node 76, node 100) that possess 73(2f+1) successful shares. As shown in Table 1, in the case of the node-based method, 41 nodes must be quorum nodes. According to the present invention, the quorum nodes are reduced from 41 to 14, which has the effect of reducing computing resources and network resources in the consensus process. Table 2 below shows the difference in the number of nodes between the node-based consensus algorithm and the share-based consensus algorithm.

[0110] [Table 2]

[0111] Referring back to Figure 4, among the consensus nodes, quorum nodes that receive a prepare message change their node state to the prepare step. Only quorum nodes whose node state is in the prepare step can generate a commit message. Quorum nodes whose node state is in the prepare step check whether there are any errors in the prepare message they receive, and if there are no errors, they generate a commit message including the signature of that node, transmit it to the chair, and change their node state to commit.

[0112] When the chair node in the prepare state receives commit messages from all quorum nodes other than itself, it creates a committed block containing a multiple signature that combines the final agreed-upon transactions t1, t2, t3, and t4 with the node signatures, and adds it to its own blockchain as block 101 after block 100. At the same time, the chair node propagates the agreed-upon block 101 to all nodes and changes the node state to the committed state.

[0113] In addition, all nodes that are not in the committed state for block 101 receive the committed block and check whether there are any anomalies in the multisignature of the block, and only if there are no anomalies, add block 101 next to block 100 in their own blockchain and change their state to the committed state. All nodes that are in the committed state for block 101 become ready to agree on block 102.

[0114] FIG. 5 is an operational flowchart showing a block chain generation method according to one embodiment of the present invention.

[0115] Referring to FIG. 5, according to a method for generating a blockchain according to one embodiment of the present invention, a chair node, which is one of the consensus nodes determined to add an additional block to the blockchain, receives a delegate request message including a transaction that must be processed after the previous block added to the blockchain is agreed upon from a major shareholder node among the consensus nodes (S510).

[0116] Here, the consensus node is selected based on an operation corresponding to a success probability p, which is performed a number of times corresponding to the share value of each node constituting the blockchain.

[0117] Here, the consensus node may be a node that holds consensus shares selected from the shares corresponding to the operation which is successful.

[0118] Here, the major shareholder node is selected from the nodes in descending order of shareholding, based on the shareholding order.

[0119] Here, the major shareholder node may have an upper limit for the consensus stake.

[0120] In addition, according to a method for generating a blockchain according to an embodiment of the present invention, the chair node receives a delegate request message not including the transaction from the remaining nodes of the consensus nodes, excluding the major shareholder node (S520).

[0121] Here, steps S510 and S520 are not performed sequentially in the order shown in Fig. 1, but are performed in the order in which the agreement nodes that transmit the delegation request messages transmit the delegation request messages. That is, steps S510 and S520 are performed in the order shown in Fig. 5, in the reverse order, or simultaneously.

[0122] In addition, according to a blockchain generation method according to an embodiment of the present invention, the chair node performs stake-based verification using a delegate request message including the transaction and a delegate request message not including the transaction (S530).

[0123] Here, stake-based validation may include whether the sum of successful stakes corresponding to the delegate request message including the transaction and the delegate request message not including the transaction is greater than the size of a quorum (2f+1), and the prepare message may include transactions validated using a reference natural number whose sum of successful stakes is equal to half the size of the quorum plus 1 (f+1).

[0124] If the equity-based verification is successful, the chair node sends a prepare message to the quorum nodes (S540).

[0125] Furthermore, according to a blockchain generation method according to an embodiment of the present invention, the chair node receives a commit message from the quorum node (S550).

[0126] Furthermore, according to the blockchain generation method according to one embodiment of the present invention, the chair node links the additional block to the blockchain based on the commit message (S560).

[0127] FIG. 6 is an operational flowchart illustrating a process in which nodes constituting a blockchain perform a calculation corresponding to a success probability a number of times corresponding to each stake value according to an embodiment of the present invention.

[0128] FIG. 6 explains a technique in which each node repeats coin tosses for the share value held by the node, based on a technique in which each node tosses a coin once using a Verifiable Random Function (VRF) or a nonce chain described in the aforementioned paper and specification.

[0129] Referring to FIG. 6, first, a random value Rn is generated, and variables pass and loop are initialized (S610).

[0130] In the example shown in FIG. 6, Rn=Hash(Nonce(k), HASH VALUE OF PREVIOUS BLOCK) is a process of generating an arbitrary random value using a nonce chain, as described in detail in the aforementioned paper and specification. Here, "HASH VALUE OF PREVIOUS BLOCK" may correspond to the head hash of the previous block. "loop=SHARE VALUE" means to initialize the variable loop with the share value of each node. The variable pass is initialized to 0.

[0131] It is determined whether the variable loop is greater than 0 (S620).

[0132] If it is determined in step S620 that loop is greater than 0, this means that there is a share to toss a coin, so the process proceeds to step S630, where an operation equivalent to a coin toss is performed (S630).

[0133] Here, step S630 may determine whether the random value Rn is smaller than a threshold. The threshold is a value corresponding to the p value determined by Equations 1 and 2, and may be determined from the p value. For example, when the calculation is performed in units of 32 bits, a value obtained by multiplying 32 bits, all of which are 1, by p may be used as the threshold.

[0134] If it is determined in step S630 that Rn is smaller than the reference value (threshold), the coin toss is deemed successful, and the process proceeds to step S640, where the variable pass is incremented by one.

[0135] After that, the variable loop is decremented by 1 (S650).

[0136] If it is not determined in step S630 that Rn is smaller than the reference value (threshold), it is assumed that the coin toss has failed, and the variable pass is not incremented, and the process proceeds to step S650.

[0137] Then, the current Rn is hashed to update the random value Rn (S660).

[0138] After the random value is updated, step S620 is performed again.

[0139] If it is determined in step S620 that loop is not greater than 0, step S670 is performed to check whether the variable pass is greater than 0.

[0140] If it is determined in step S670 that the variable pass is greater than 0, the next Congressman message is output to notify that the next Congressman can be a candidate for the consensus body of the next block (S680).

[0141] Here, since the Next Congressman message includes the calculated pass value, the node receiving the Next Congressman message knows the number of times the node that sent the Next Congressman message succeeded in the coin toss.

[0142] If it is determined in step S670 that the variable pass is not greater than 0, the operation ends.

[0143] Other nodes that receive the Next Congressman message can again perform the steps shown in FIG. 6 to check for any abnormalities.

[0144] FIG. 7 is a table illustrating an example in which nodes constituting a blockchain according to an embodiment of the present invention have different types of share values.

[0145] Referring to FIG. 7, each node has a plurality of different share values ​​(SHARE VALUE1, SHARE VALUE2).

[0146] In this way, when a participating node contains multiple stake values ​​that are different from each other, the participating node can process two or more other agreements in parallel.

[0147] For the share value (SHARE VALUE1), nodes 1 to 10 become major shareholder nodes and reach an agreement, and for the share value (SHARE VALUE2), nodes 11 to 20 become major shareholder nodes and reach an agreement. Therefore, the share values ​​(SHARE VALUE1, SHARE VALUE2) are used to link new blocks to different blockchains.

[0148] By using multiple stake values ​​in this way, different types of services can be processed without shard separation even when there are too many nodes.

[0149] When multiple stake values ​​are used, generating a provable random value for each stake value separately can be difficult to manage and operate. In this case, when generating Rn in Figure 6 for each stake value, each node generates only one nonce(k) and uses a different "stake-related hash value of the previous block" for each stake value owned by the node, so coin tosses for two or more stake values ​​can be performed with only one nonce(k).

[0150] FIG. 8 is a block diagram showing the configuration of a computer system according to an embodiment of the present invention.

[0151] The distributed consensus device, the blockchain generation device, and the nodes that constitute the blockchain according to the embodiment are realized in a computer system 700 such as a computer-readable recording medium.

[0152] The computer system 700 may include one or more processors 710, memory 730, a user interface input device 740, a user interface output device 750, and storage 760, which communicate with each other via a bus 720. The computer system 700 may further include a network interface 770 connected to a network 780. The processor 710 may be a central processing unit or a semiconductor device that executes programs or processing instructions stored in the memory 730 or the storage 760. The memory 730 and the storage 760 may be storage media including at least one of a volatile medium, a non-volatile medium, a separate medium, a non-separate medium, a communication medium, or an information transmission medium. For example, the memory 730 may include a ROM 731 and a RAM 732.

[0153] Here, the memory 730 stores at least one program.

[0154] Here, the processor 710 can execute the program. Here, the program performs an operation corresponding to a success probability p a number of times corresponding to the share value of each node constituting the blockchain, sends a message for nodes having at least one share corresponding to the operation which is successful to be selected as consensus nodes, and performs distributed consensus using nodes having consensus shares selected from the shares corresponding to the operation which is successful as the consensus nodes.

[0155] Here, the nodes constituting the blockchain may include a major shareholder node for transaction processing.

[0156] Here, if the major shareholder node is selected as the consensus node, it sends a delegate request message including transactions, and other nodes among the consensus nodes that are not major shareholder nodes can send delegate request messages that do not include transactions.

[0157] Here, the shares held by the major shareholder node that correspond to the successful operation may have priority to be selected as the consensus shares.

[0158] Here, the major shareholder node may have an upper limit for the consensus stake.

[0159] Here, the major shareholder node is selected from the nodes in descending order of shareholding, based on the shareholding order.

[0160] The share-based distributed agreement method according to an embodiment of the present invention has an effect of reducing the number of nodes to which a transaction is transmitted by a factor of 10, as can be seen from the example of Fig. 1. Also, as can be seen from Table 2, the size of the consensus body is 61 when the number of nodes is n, but is reduced to 50 when the number of shares is n. Furthermore, the size of the quorum is 41 when the number of nodes is n, but is reduced to 14 when the number of shares is n, so the message complexity and traffic volume for agreement are significantly reduced.

[0161] In addition, when each node has two or more different stake values, as in the example of Figure 7, different services can be processed in parallel on one blockchain. Previously, such parallel effects required physical shard division, but the present invention makes it possible to perform parallel processing without dividing the group.

[0162] Below, we will provide a more detailed explanation of the technology that adds additional chains to the blockchain and performs parallel processing for each chain, without dividing shards on an epoch-by-epoch basis.

[0163] In a typical blockchain system, all nodes can generate new blocks, so transactions to be processed must be transmitted to all nodes. In this case, all nodes in the blockchain must repeat the same process to process a transaction, so it is difficult to expect an increase in processing performance as the number of nodes increases. To solve this, sharding is applied, which allows each shard to process a different transaction, and transactions processed by each shard are divided and processed in parallel, improving the performance of the entire blockchain.

[0164] To operate shards, nodes are appropriately assigned to each shard in epoch units to prevent centralization. Here, a shard may correspond to a set of one or more nodes participating in the blockchain. However, when reassigning nodes in epoch units, it is not acceptable to add a shard in the middle of the epoch or for one node to participate in two or more shards at the same time. In general, an increase in the number of nodes participating in a consensus has a positive effect on the characteristics of the blockchain, such as security, but distributing nodes by shard reduces the number of nodes participating in a consensus.

[0165] In Ethereum, to accommodate PoS (Proof of Stake), accounts that deposit 32 Ether become validators, and consensus is reached through their votes. If there are two or more shards, these validators are assigned arbitrarily.

[0166] According to the distributed consensus method, distributed consensus device, and blockchain generation method described with reference to Figures 1 to 7, a node participating in a blockchain can obtain voting rights (share value) by using assets owned by the node. Here, the exchange ratio between assets and share value may be 1:1 or 1:K (K is a positive real number).

[0167] For example, a particular node participating in a blockchain can deposit 100 assets from the balance held for a share of a particular chain, and if the exchange ratio between the assets and the share value is 1:1, the node can obtain a share value of 100. Here, as mentioned above, the share value is considered to be equivalent to voting rights.

[0168] Figure 9 is a table showing an example of the asset holdings of blockchain participating nodes.

[0169] Referring to Figure 9, users A, B, C, D, E, F, G, H, I, J, and K each hold assets in their own account, and some of the users deposit assets for additional blockchains (10th and 15th blockchains). For ease of explanation, the following description will be given with an example in which the exchange ratio between assets and equity value is 1:1.

[0170] According to one embodiment of the present invention, a new additional chain can be started by a consensus initially consisting of only major shareholder nodes. Also, to control the maximum number of nodes that can participate in one newly created additional chain, a new node is added to the chain only if the sum of all stake values ​​owned by minor shareholder nodes is less than or equal to the sum of stake values ​​owned by major shareholder nodes.

[0171] Here, the minor shareholder nodes may correspond to all other nodes for a particular chain, except for the major shareholder nodes described in the examples of FIGS.

[0172] In the example shown in Figure 9, to add an additional chain (the 10th chain), nodes C, F, and G each deposit 10 assets to become major shareholder nodes in the 10th chain, allowing consensus to begin in the 10th chain. Here, since the total share values ​​owned by the major shareholder nodes in the 10th chain is 30, nodes can only be added if the total share values ​​of the remaining nodes that can be added to the 10th chain are 30 or less.

[0173] Thus, when the maximum number of nodes allowed in a chain have joined the chain, in order for more nodes to be added to the chain, the sum of the major shareholder node's share values ​​(first total share value) must be increased, and the sum of the major shareholder node's share values ​​can be increased by an extension process, which may be any one of a first process, a second process, and a third process, which will be described in more detail below.

[0174] In the example shown in Figure 9, if there are fewer than 30 minor shareholder nodes participating in the 10th chain, the actual number of votes applied by the major shareholder nodes may be limited since the voting results can always be determined by the major shareholder nodes. For example, if six minor shareholder nodes participate in the 10th chain, the maximum share values ​​of each of the major shareholder nodes C, F, and G are limited to 2, not 10, so that the total share value of the major shareholder nodes maintains a certain ratio to the total share value of the minor shareholder nodes. In this case, the votes of the major shareholder nodes do not have an undue influence on the consensus result.

[0175] In the technology described with the example of Figure 9, when a new chain is generated to provide a new service, only a small number of nodes participate in the new chain on a trial basis to operate the service, and when the service is activated, the number of nodes participating in the chain is increased. Here, the method and conditions for configuring the initial major shareholder nodes for the new chain are determined by a smart contract, etc.

[0176] Here, not only major shareholder nodes but also minor shareholder nodes can deposit a minimum of 1 asset to participate in the formation of the consensus body, preventing indiscreet participation or attacks. Here, the exchange rate between assets and equity value for major shareholder nodes and the exchange rate between assets and equity value for minor shareholder nodes may be different from each other.

[0177] Here, when the consensus algorithm described in FIG. 4 and FIG. 5 is used, consensus is possible even if a transaction processed only by a major shareholder node is received. Here, as in the example of FIG. 9, if a node is restricted from becoming a major shareholder node in two chains at the same time, the major shareholder nodes are divided for each chain and the transactions to be processed can be processed separately. For example, in the example of FIG. 9, the major shareholder nodes C, F, and G of the 10th chain are separated from the major shareholder nodes A, B, D, and E of the 15th chain, and the transactions processed by the major shareholder nodes C, F, and G of the 10th chain can be processed separately from the transactions processed by the major shareholder nodes A, B, D, and E of the 15th chain. Here, the minor shareholder nodes can participate in both the 10th chain and the 15th chain, but do not receive transactions.

[0178] In the example of Figure 9, after the 10th chain is started, the 15th chain is newly generated. Here, four nodes A, B, D, and E each deposit assets for the 15th chain in proportion to the exchange ratio and become major shareholder nodes. In the example of Figure 9, four nodes A, B, D, and E each deposit assets of 300 and secure a share value of 300 (exchange ratio 1:1) to become major shareholder nodes. In this case, a maximum of 1200 nodes can participate in the 15th chain as minor shareholder nodes.

[0179] FIG. 10 is a table showing an example of participating node information of a node that has participated in the 10th chain in the example shown in FIG.

[0180] Referring to FIG. 10, the participating node information of the node that joined the 10th chain includes the identifier of the participating node that joined the 10th chain, the stake value held by each participating node, and whether the node is major / minor.

[0181] The participating node information illustrated in FIG. 10 is considered to be a data structure indicating the characteristics of the nodes that have joined the 10th chain, and is made public to all nodes.

[0182] In the example shown in Figure 10, if a new node wants to join the 10th chain, it can be added only if the following conditions are met: <Conditions for adding nodes> Sum of the equity value of major shareholder nodes * Applied ratio >= Sum of the equity value of minor shareholder nodes + Equity value of new node

[0183] Here, the application ratio may be a real value greater than 0 and less than or equal to 1, for example 1.

[0184] If the number of nodes participating in a particular chain reaches a maximum allowed value, an expansion process is performed to increase the size of participating nodes, which may be any one of a first process of increasing the stake value corresponding to one or more of the major shareholder nodes, a second process of adding a new major shareholder node, and a third process of changing at least one of the minor shareholder nodes to a major shareholder node.

[0185] First, the first process is to increase the number of participating nodes by increasing at least one share value of the existing major shareholder nodes without increasing the number of major shareholder nodes. For example, if the total share value (second total share value) of the minor shareholder nodes participating in the 10th chain is 31, nodes C, F, and G each increase their share value by one or more to allow more nodes to participate in the chain.

[0186] Next, the second process is to add other nodes with similar stake values ​​to the existing major shareholder nodes as new major shareholder nodes to the chain, thereby increasing the number of nodes that the chain can accommodate. For example, if the sum of the stake values ​​of the minor shareholder nodes participating in the 10th chain (the second total stake value) is 31, any new node X will become the new major shareholder node of the 10th chain with a stake value of 10.

[0187] Finally, the third process is that when the number of participating nodes reaches the maximum value, the node with the largest share value among the minor shareholder nodes is promoted to the major shareholder node to increase the number of nodes that can participate in the chain. For example, when the total share value (second total share value) of the minor shareholder nodes participating in the 10th chain in block 202 shown in FIG. 12 is 31, USER I is promoted to the major shareholder node because he has the maximum share value (2) among the minor shareholder nodes. Here, the promotion result may be recorded in block 103 shown in FIG. 12 (the block of the main branch corresponding to the generation timing of block 202).

[0188] FIG. 11 is a table showing an example of participating node information of a node that has participated in the 15th chain in the example shown in FIG.

[0189] Referring to FIG. 11, the participating node information of the node that joined the 15th chain includes the identifier of the participating node that joined the 15th chain, the stake value held by each participating node, and whether the node is major / minor.

[0190] The participating node information illustrated in FIG. 11 is considered to be a data structure that indicates the characteristics of the nodes that have joined the 15th chain and is made public to all nodes in the blockchain.

[0191] Although not explicitly shown in Figures 10 and 11, the participant node information may include information regarding assets deposited by each participant node.

[0192] As in the examples illustrated in Figures 9 to 11, it is not possible for one node to be a major shareholder node in both the 10th chain and the 15th chain at the same time, but it is possible for one node to participate in more than one chain as a minor shareholder node.

[0193] FIG. 12 is a block diagram showing an example in which an additional chain is applied to a blockchain (an existing chain).

[0194] Referring to FIG. 12, first, blocks 100 to 103 correspond to a blockchain (existing chain) that records information regarding the generation of a new chain, and the existing chain corresponding to blocks 100 to 103 is assumed to be in a state in which blocks are normally linked by agreement of participating nodes.

[0195] Here, to newly generate the 10th chain (additional chain), nodes C, F, and G can participate in the 10th chain with a share value of 10 each. Here, the participating node information in FIG. 10 is recorded in the 101st block in FIG. 12, and the 10th chain starts from block number 200. Here, the header hash value of the previous block recorded in the block header of block 200 can be set to the header hash value of block 101.

[0196] Thereafter, to newly generate the 15th chain (additional chain), participating node information (FIG. 11) regarding nodes A, B, D, and E, which are major shareholder nodes starting the additional chain, is recorded in block 102. As mentioned above, participating node information may include the identifiers, stake values, and major / minor status of each node participating in the 15th chain. Here, the 15th chain starts from block 300 shown in FIG. 12. Here, the header hash value of block 102 is recorded in the header of block 300, as if a new branch was generated in the existing chain. This structure becomes tree-like as the number of additional chains increases.

[0197] Here, blocks 100, 101, ..., 103 corresponding to the existing chain, blocks 200, 201, ..., 202 corresponding to the additional chain (10th chain), and blocks 300, 101 corresponding to the additional chain (15th chain) can perform distributed consensus using the consensus algorithm described with reference to Figures 1 to 8. Here, the consensus congress of the existing chain, the consensus congress of the additional chain (10th chain), and the consensus congress of the additional chain (15th chain) are different from each other, and the consensus of each consensus congress may be independent from each other.

[0198] That is, in the example shown in FIG. 12, the 10th chain and the 15th chain are added and blocks are generated using a chain (including blocks 100 to 103) that records the generation information of a new chain.

[0199] The addition of the additional chains described with reference to FIGS. 9-12 may be performed based on consensus using an algorithm other than the consensus algorithm described with reference to FIGS. 1-8.

[0200] For example, an additional chain may be added using a PBFT (Practical Byzantine Fault Tolerance) consensus algorithm. Here, if the chair node of the consensus has a transaction to be processed, it may propose a block containing all of its transactions as a candidate block to perform consensus, and if the chair node of the consensus has no transaction to be processed, it may propose a candidate block without transactions to proceed with consensus. Consensus based on a candidate block without transactions has a very small consensus message size, making it possible to perform consensus very quickly.

[0201] Furthermore, if the chair node of the consensus does not have any transactions to be processed, it may receive transactions from other nodes before proposing a candidate block, where the chair node of the consensus can perform distributed consensus using the candidate block that contains the reserved transactions.

[0202] FIG. 13 shows an example where the 10th chain and the 15th chain share a minor shareholder node.

[0203] Referring to Figure 13, it can be seen that major shareholder nodes cannot participate in more than one chain (shard) at the same time because they must receive and process transactions for each chain (shard), but the remaining minor shareholder nodes can participate in more than one chain at the same time.

[0204] FIG. 14 is an operational flowchart illustrating a method for adding a new chain to a blockchain according to one embodiment of the present invention.

[0205] Referring to FIG. 14, in a method for adding a new chain to a blockchain according to one embodiment of the present invention, a node of the blockchain deposits an asset corresponding to the additional chain (S1410).

[0206] In addition, in a method of adding a new chain to a blockchain according to one embodiment of the present invention, the node is selected as one of the consensus nodes for connecting an additional block to the additional chain based on a share value corresponding to the asset (S1420).

[0207] Here, the consensus node may include at least one major shareholder node and may also include at least one minor shareholder node.

[0208] Here, the consensus nodes may initially include only major shareholder nodes.

[0209] Here, for step S1420, the node may perform steps S210, S220 shown in FIG.

[0210] In addition, in the method for adding a new chain to a blockchain according to an embodiment of the present invention, the nodes perform a distributed consensus for linking the additional block (S1430).

[0211] Here, the nodes participating in the additional chain may include a major shareholder node for transaction processing.

[0212] Here, the nodes participating in the additional chain include minor shareholder nodes that are not the major shareholder nodes, and transactions are not transmitted to the minor shareholder nodes.

[0213] Here, the additional chain can determine whether or not a new node can participate based on a first total share value corresponding to the major shareholder node and a second total share value corresponding to the minor shareholder node.

[0214] Here, whether or not the new node can participate is determined based on a result of comparing the first total share value, the second total share value, and the sum of the share value of the new node.

[0215] Here, the first total stake value can be increased by an expansion process to allow the new nodes to join the additional chain.

[0216] Here, the expansion process may be any one of a first process of increasing a share value corresponding to one or more of the major shareholder nodes, a second process of adding a new major shareholder node, and a third process of changing at least one of the minor shareholder nodes to a major shareholder node.

[0217] Now, data about the additional chain can be recorded in one block of the blockchain.

[0218] Here, the data regarding the additional chain may include participating node information of nodes participating in the additional chain and equity values ​​of nodes participating in the additional chain.

[0219] Here, the data on the additional chain includes start information of the additional chain, and the start block of the additional chain may record information on at least one block of the blockchain that records the data on the additional chain. Here, the start information of the additional chain may correspond to participating node information at the time when the additional chain starts.

[0220] Here, at least one of the minor shareholder nodes can participate as a minor shareholder node in a chain other than the additional chain.

[0221] Here, the major shareholder node cannot participate as a major shareholder node in any chain other than the additional chain.

[0222] FIG. 15 is an operational flowchart showing a method for generating shards of a blockchain according to one embodiment of the present invention.

[0223] Referring to FIG. 15, in a method for generating shards for a blockchain according to one embodiment of the present invention, a node participates in an additional chain as a major shareholder node (S1510).

[0224] Here, step S1510 may be performed by one node of the blockchain.

[0225] Here, the major shareholder node may be for transaction processing.

[0226] In addition, the method for generating a shard of a blockchain according to one embodiment of the present invention includes participating in the additional chain as a minor shareholder node (S1520).

[0227] Here, step S1520 may be performed by one node of the blockchain, and the node that performs step S1520 may be a different node from the node that performs step S1510.

[0228] Here, the transaction is not transmitted to minor shareholder nodes.

[0229] In addition, the method for generating shards of a blockchain according to one embodiment of the present invention forms a consensus congress including at least one of the major shareholder nodes and the minor shareholder nodes (S1530).

[0230] The method for constructing the consensus body in step S1530 may follow the consensus algorithm described with reference to Figures 1 to 8, or may follow another consensus algorithm such as PBFT that is different from the consensus algorithm described with reference to Figures 1 to 8.

[0231] The shards described above may correspond to a set of nodes that make up a blockchain, and each shard may correspond to a respective chain.

[0232] In addition, the device for adding an additional chain to a blockchain and the device for generating shards of a blockchain according to one embodiment of the present invention are realized using the hardware shown in FIG. 8.

[0233] That is, the program recorded in memory 730 and executed by processor 710 can deposit assets corresponding to an additional chain to be added to the blockchain, be selected as one of the consensus nodes for linking an additional block to the additional chain based on a share value corresponding to the assets, and perform distributed consensus for linking the additional block.

[0234] Here, the nodes participating in the additional chain may include a major shareholder node for transaction processing.

[0235] Here, the nodes participating in the additional chain include minor shareholder nodes that are not the major shareholder nodes, and transactions are not transmitted to the minor shareholder nodes.

[0236] Here, the additional chain can determine whether or not a new node can participate based on a first total share value corresponding to the major shareholder node and a second total share value corresponding to the minor shareholder node.

[0237] Here, at least one of the minor shareholder nodes can participate as a minor shareholder node in a chain other than the additional chain.

[0238] Here, the major shareholder node cannot participate as a major shareholder node in any chain other than the additional chain.

[0239] In addition, the program stored in memory 730 and executed by processor 710 may participate in an additional chain as a major shareholder node, and participate in the additional chain as a minor shareholder node, and form a consensus including one or more of the major shareholder nodes and the minor shareholder nodes.

[0240] According to one embodiment of the present invention, in an operational blockchain, a node can become a major shareholder node of an additional chain by using an asset-linked equity value, allowing the additional chain to be added immediately.

[0241] Here, additional chains can only be initiated as major shareholder nodes.

[0242] Hereafter, when a new node joins an additional chain, the new node may join the additional chain only if the sum of the share value held by the new node and the sum of the share values ​​held by the minor shareholder nodes of the additional chain (second total share value) is less than or equal to a certain ratio of the sum of the share values ​​held by the major shareholder nodes of the additional chain (first total share value).

[0243] Here, to allow more nodes to participate in additional chains, the first total shareholder value may be increased by an expansion process, which may be one of a first process of increasing the shareholder value corresponding to one or more of the major shareholder nodes, a second process of adding a new major shareholder node, and a third process of changing at least one of the minor shareholder nodes to a major shareholder node.

[0244] Here, in order to add a new additional chain to an operating blockchain, data on the major shareholder nodes of the new additional chain (share value, major / minor status, etc.) can be recorded in a specific block of the existing chain.

[0245] Thereafter, changes to the additional chain during operation (major shareholder nodes, minor shareholder nodes, node share values, etc.) can be updated to the existing chain. Here, the block of the existing chain in which the changes to the additional chain are recorded may be a block corresponding to the time of the change to the additional chain.

[0246] As mentioned above, if one node does not become a major shareholder node of different chains, the transaction processing nodes of each chain are isolated from each other, improving overall processing performance. However, one node can simultaneously become a minor shareholder node of different chains, so it can participate in agreements made in multiple chains.

[0247] Here, the starting block of the new chain records information about the block of the existing chain that records the starting information of the new chain. This allows a new chain to be created like a new branch in an existing chain, and additional chains can be created in a tree structure.

[0248] According to an embodiment of the present invention, a method and device for adding an additional chain to a blockchain, and a method and device for generating shards for the same, it is possible to add an additional chain in real time while the blockchain is in operation. In the existing blockchain sharding technology, a separate node must be designated for each shard, and these nodes cannot simultaneously participate in the consensus body of other chains, making it impossible to add a chain in real time.

[0249] In addition, according to one embodiment of the present invention, the number of participating nodes can be adjusted according to the total share value (first total share value) held by major shareholder nodes. This allows a new business to be started on a new chain by initially testing the business with a small number of participating nodes, and then adjusting the maximum number of participating nodes as needed.

[0250] Furthermore, according to one embodiment of the present invention, by preventing one node from participating as a major shareholder node in two or more chains at the same time, it is possible to separate nodes that receive and process transactions for each chain, thereby minimizing the occurrence of duplicate traffic even when dynamically adding additional chains to the blockchain.

[0251] As described above, the method and device for adding an additional chain to a blockchain according to the present invention, and the blockchain shard generation method and device therefor are not limited to the configurations and methods of the embodiments described above, but the above embodiments may be configured by selectively combining all or part of each embodiment so that various modifications can be made. [Explanation of symbols]

[0252] 700: Computer Systems 710: Processor 720: Bus 730:Memory 731:ROM 732:RAM 740: User interface input device 750: User interface output device 760:Storage 770: Network interface 780: Network

Claims

1. A method for adding additional chains to a blockchain, The node of the blockchain deposits a corresponding asset to the additional chain; Selecting the node as one of the consensus nodes for linking an additional block to the additional chain based on a share value corresponding to the asset; the nodes performing a distributed consensus for concatenating the additional block; Including, The nodes participating in the additional chain include a major shareholder node for transaction processing and a minor shareholder node that is not the major shareholder node, and transactions are not transmitted to the minor shareholder node, The additional chain determines whether new nodes can join based on a first total share value corresponding to the major shareholder node and a second total share value corresponding to the minor shareholder node.

2. 2. The method of adding an additional chain to a blockchain as recited in claim 1, wherein the consensus nodes include at least one major shareholder node and at least one minor shareholder node.

3. 2. The method of adding an additional chain to a blockchain as described in claim 1, wherein the consensus nodes initially include only the major shareholder nodes.

4. 2. The method of adding an additional chain to a blockchain as described in claim 1, wherein the ability of the new node to participate is determined based on a comparison of the first total stake value, the second total stake value, and a sum of the stake value of the new node.

5. 5. The method of adding additional chains to a blockchain of claim 4, wherein the first total stake value is increased by an extension process to allow the new nodes to participate in the additional chain.

6. The expansion process comprises: a first process for increasing an equity value corresponding to any one or more of the major shareholder nodes; A second process for adding a new major shareholder node; and a third process for changing at least one of the minor shareholder nodes to a major shareholder node; 6. A method for adding an additional chain to a blockchain according to claim 5,

7. 2. The method of adding an additional chain to a blockchain as described in claim 1, comprising recording data about the additional chain in one block of the blockchain.

8. 8. The method of adding an additional chain to a blockchain as described in claim 7, wherein the data regarding the additional chain includes participant node information of nodes participating in the additional chain and equity values ​​of nodes participating in the additional chain.

9. 9. The method of adding an additional chain to a blockchain as described in claim 8, wherein the data regarding the additional chain includes start information of the additional chain, and a start block of the additional chain records information about at least one block of the blockchain that recorded data regarding the additional chain.

10. 2. The method of adding an additional chain to a blockchain as described in claim 1, wherein at least one of the minor shareholder nodes participates as a minor shareholder node in a chain other than the additional chain.

11. 2. The method of adding an additional chain to a blockchain as described in claim 1, wherein the major shareholder node cannot participate as a major shareholder node in any chain other than the additional chain.

12. one or more processors; an execution memory for storing at least one program to be executed by said one or more processors; Including, The at least one program comprises: Deposit assets corresponding to the additional chains to be added to the blockchain; Selecting one of the consensus nodes for connecting an additional block to the additional chain based on a share value corresponding to the asset; Conducting distributed consensus to concatenate the additional blocks; The nodes participating in the additional chain include a major shareholder node for transaction processing and a minor shareholder node that is not the major shareholder node, and transactions are not transmitted to the minor shareholder node, The additional chain determines whether a new node can join based on a first total share value corresponding to the major shareholder node and a second total share value corresponding to the minor shareholder node.

13. 13. The apparatus for adding an additional chain to a blockchain as described in claim 12, wherein at least one of the minor shareholder nodes participates as a minor shareholder node in a chain other than the additional chain.

14. 13. The apparatus for adding an additional chain to a blockchain as described in claim 12, wherein the major shareholder node cannot participate as a major shareholder node in any chain other than the additional chain.

15. In the blockchain shard generation method, Participating in the additional chain as a major shareholder node; Participating in the additional chain as a minor shareholder node; forming a consensus including at least one of the major shareholder nodes and the minor shareholder nodes; Including, The major shareholder node is for transaction processing, and transactions are not transmitted to the minor shareholder node; The additional chain determines whether a new node can join based on a first total share value corresponding to the major shareholder node and a second total share value corresponding to the minor shareholder node.

Citation Information

Patent Citations

  • Consensus node selection method and device, and server

    JP2020522150A

  • Blockchain consensus methods and systems

    US20190260574A1

  • Systems and methods for selecting and utilizing a committee of validator nodes in a distributed system

    US20210097537A1