TWI698100B - Method for generating and integrating multiple blockchains and blockchain system - Google Patents

Method for generating and integrating multiple blockchains and blockchain system Download PDF

Info

Publication number
TWI698100B
TWI698100B TW107132806A TW107132806A TWI698100B TW I698100 B TWI698100 B TW I698100B TW 107132806 A TW107132806 A TW 107132806A TW 107132806 A TW107132806 A TW 107132806A TW I698100 B TWI698100 B TW I698100B
Authority
TW
Taiwan
Prior art keywords
block
nodes
blocks
blockchain
integrated
Prior art date
Application number
TW107132806A
Other languages
Chinese (zh)
Other versions
TW202013932A (en
Inventor
陳泰元
黃偉寧
歐曜瑋
郭博鈞
趙子為
Original Assignee
柯賓漢數位金融科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 柯賓漢數位金融科技有限公司 filed Critical 柯賓漢數位金融科技有限公司
Priority to TW107132806A priority Critical patent/TWI698100B/en
Publication of TW202013932A publication Critical patent/TW202013932A/en
Application granted granted Critical
Publication of TWI698100B publication Critical patent/TWI698100B/en

Links

Images

Abstract

A method for generating and compacting multiple blockchains includes the following steps: separating a plurality of nodes into a plurality of groups; the nodes respectively generating a plurality of blocks, and the blocks in each of the groups making acknowledgements with each other to generate a plurality of blocklattices; compacting each of the blocklattices to generate a plurality of blockchains and computing for the timestamps for each of the blocks in the blockchains; integrating the blockchains to generate an integrated blockchain; and, each of the nodes storing the integrated blockchain. The method is capable of separating the nodes into different groups to execute multiple computations of blockchains to improve the block generating efficiency, and integrating the blockchains in different groups to generate a single blockchain.

Description

多區塊鏈產生及整合方法暨區塊鏈系統 Multi-block chain generation and integration method and block chain system

本發明關於一種多區塊鏈產生及整合方法以及區塊鏈系統,並且特別地,關於一種將節點分散於多個群組中以產生多個區塊鏈,並將多個區塊鏈整合為一整合區塊鏈之方法及應用此方法的系統。 The present invention relates to a method for generating and integrating multiple blockchains and a blockchain system, and in particular, to a method of dispersing nodes in multiple groups to generate multiple blockchains, and integrating the multiple blockchains into A method of integrating blockchain and a system applying this method.

近年來,各種虛擬貨幣(Crypto Currency)開始在網際網路上大量使用和流行,如比特幣、以太幣、萊特幣、瑞波幣等,且這些虛擬貨幣的日交易額超過千萬美元,並且在不斷增長中。目前已有多間著名公司和機構支持使用比特幣或其他虛擬貨幣作為交易貨幣,未來可能會有更多公司或機構加入。虛擬貨幣與一般貨幣不同,並沒有實體,但虛擬貨幣及其交易的可信賴度可依靠區塊鏈技術來支持。 In recent years, various virtual currencies (Crypto Currency) have begun to be widely used and popular on the Internet, such as Bitcoin, Ethereum, Litecoin, Ripple, etc., and the daily transaction volume of these virtual currencies exceeds 10 million U.S. dollars, and they continue to Growing. At present, many well-known companies and institutions support the use of Bitcoin or other virtual currencies as transaction currencies, and more companies or institutions may join in the future. Virtual currency is different from general currency and has no entity, but the trustworthiness of virtual currency and its transactions can be supported by blockchain technology.

區塊鏈技術是一種不依賴第三方、通過自身分散式節點進行網路數據的存儲、驗證、傳遞和交流的一種技術方案。因此,有人從金融會計的角度,把區塊鏈技術看成是一種分散式開放性去中心化的大型網路記賬薄(公開帳本),任何人任何時間都可以採用相同的技術標準加入自己的信息,延伸區塊鏈,持續滿足各種需求帶來的數據錄入需要。 Blockchain technology is a technical solution that does not rely on a third party, but uses its own distributed nodes to store, verify, transmit and communicate network data. Therefore, from the perspective of financial accounting, some people regard blockchain technology as a decentralized, open and decentralized large-scale network account book (public account book). Anyone can use the same technical standards to join at any time. Own information, extend the blockchain, and continue to meet the data entry needs brought by various needs.

例如,比特幣使用的公開帳本是一套基於工作量證明 (Proof-of-Work)機制的分散式存儲方案,通常具有極高的安全性和抗攻擊特性。要對比特幣區塊鏈的安全性形成有效攻擊,需要高達數千TH/s以上的計算能力,這已經超過了當前全球前500強超級電腦的計算能力總和的百倍。 For example, the public ledger used by Bitcoin is a set of distributed storage solutions based on the Proof-of-Work mechanism, which usually has extremely high security and anti-attack features. In order to form an effective attack on the security of the Bitcoin blockchain, computing power of thousands of TH/s or more is required, which has exceeded the total computing power of the top 500 supercomputers in the world.

在區塊鏈的技術中,每台連接到區塊鏈網路的電腦都可以形成一個節點以從區塊鏈網路上獲取信息或資料,例如獲得交易資料等,接著節點可將這些資料進行包含雜湊(Hash)運算等出塊程序或區塊產生程序以產生新區塊,並將新產生的區塊連接於該節點所儲存之區塊鏈的最後端。除了信息或資料本身的雜湊運算之外,在前述比特幣所採用的區塊鏈系統中還採用了工作量證明機制來決定區塊是否能產生,而工作量證明係以節點解開難解的雜湊運算來達成,因此,為了能獲得新區塊的產生權利,每個節點將會耗費大量的運算能力在工作量證明的雜湊運算上。 In the blockchain technology, each computer connected to the blockchain network can form a node to obtain information or data from the blockchain network, such as obtaining transaction data, etc., and then the node can include these data Block generation procedures such as hash operations or block generation procedures to generate new blocks, and connect the newly generated blocks to the last end of the blockchain stored by the node. In addition to the hash calculation of the information or data itself, the blockchain system adopted by the aforementioned Bitcoin also uses a proof-of-work mechanism to determine whether the block can be generated, and the proof-of-work is based on the node to solve the inexplicable hash Therefore, in order to obtain the right to generate new blocks, each node will spend a lot of computing power on the hash calculation of the workload proof.

區塊鏈發展至今已不僅僅是用在虛擬貨幣的用途,去中心化的技術可應用多種不同的技術領域,而工作量證明也不再是產生區塊的唯一憑藉。相反地,當區塊鏈應用於其他領域時,工作量證明反而成為阻礙區塊產生的重要因素。因此,在某些區塊鏈架構中,各節點可自行處理資料並產出區塊,在此架構下不需要工作量證明,因此節點的運算能力可由工作量證明的雜湊運算解放出來,而產生區塊的速度也將會對應地提升。為了確保這些區塊鏈架構中產生的區塊具有可信度,須解決區塊鏈中的拜占庭將軍問題(Byzantine Generals Problem),而一般採用的方式是以超過區塊鏈網路中所有節點數量的三分之二確認此新產生區塊正確來作為此區塊成為已確認區塊或有效區塊的標準。 So far, the development of blockchain has not only been used for virtual currency purposes, decentralized technology can be applied to many different technical fields, and proof of work is no longer the only way to generate blocks. On the contrary, when blockchain is used in other fields, proof of work becomes an important factor hindering the generation of blocks. Therefore, in some blockchain architectures, each node can process data and generate blocks on its own. Under this architecture, proof of work is not required. Therefore, the computing power of the node can be freed by the hash calculation of the proof of work. The speed of the block will increase accordingly. In order to ensure the credibility of the blocks generated in these blockchain architectures, the Byzantine Generals Problem in the blockchain must be solved, and the general method is to exceed the number of all nodes in the blockchain network Two-thirds of the confirmed that the newly generated block is correct as a criterion for the block to become a confirmed block or valid block.

由於區塊鏈系統係去中心化的系統,其運算都是由各節點來進行,故新節點的加入會擴張區塊鏈架構,進而增大單位時間內的資料處理量並使資料更不易被竄改。然而,當節點的數量大幅膨脹時,表示所有節點數量也會大幅提升,導致一個節點所產生的區塊須經過大量節點確認後才能成為有效區塊,換言之,前述用來解決拜占庭將軍問題的機制以及網路傳輸速度的限制反而會拖慢產生新區塊的速度。 Since the blockchain system is a decentralized system, and its operations are performed by each node, the addition of new nodes will expand the blockchain architecture, thereby increasing the amount of data processing per unit time and making the data more difficult to be processed. Tampering. However, when the number of nodes greatly expands, it means that the number of all nodes will also increase significantly. As a result, a block generated by a node must be confirmed by a large number of nodes before it can become a valid block. In other words, the aforementioned mechanism for solving the Byzantine Generals problem And the limitation of network transmission speed will slow down the speed of generating new blocks.

因此,有必要研發一種新式的區塊鏈架構,以解決上述問題。 Therefore, it is necessary to develop a new type of blockchain architecture to solve the above problems.

有鑑於此,本發明之一範疇在於提供一種多區塊鏈產生及整合方法,可更有效地產生區塊。 In view of this, one scope of the present invention is to provide a method for generating and integrating multiple blockchains, which can generate blocks more effectively.

根據本發明之一具體實施例,多區塊鏈產生及整合方法可透過區塊鏈系統來進行,其中區塊鏈系統包含區塊鏈網路及連接此區塊鏈網路的多個節點。多區塊鏈產生及整合方法包含以下步驟:將多個節點分散於多個群組中;各節點分別產生複數個區塊,每一群組中所產生的區塊互相確認而形成區塊網(Blocklattice);壓實各區塊網而形成多個區塊鏈,並計算每個區塊鏈中之每個區塊的時間標籤;根據時間標籤整合前述的多個區塊鏈以形成整合區塊鏈;以及,於每一個節點中儲存整合區塊鏈。 According to a specific embodiment of the present invention, the method for generating and integrating multiple blockchains can be performed through a blockchain system, where the blockchain system includes a blockchain network and multiple nodes connected to the blockchain network. The multi-blockchain generation and integration method includes the following steps: disperse multiple nodes in multiple groups; each node generates multiple blocks, and the blocks generated in each group confirm each other to form a block network (Blocklattice); compact each block network to form multiple blockchains, and calculate the time label of each block in each blockchain; integrate the aforementioned multiple blockchains according to the time label to form an integration zone Blockchain; and, storing and integrating the blockchain in each node.

本發明之另一範疇在於提供一種區塊鏈系統,可更有效地產生區塊。 Another category of the present invention is to provide a blockchain system that can generate blocks more efficiently.

根據本發明之另一具體實施例,區塊鏈系統可包含區塊鏈網路以及連接此區塊鏈網路的多個節點。多個節點可分散於多個群組中,並可分別產生新區塊。每一個群組中之節點產生的區塊互相確認,進而形成 一區塊網。各節點根據自身所屬之群組之區塊網產生並儲存區塊鏈,其中各區塊鏈中的區塊具有時間標籤。各節點進一步根據自身所屬之群組之區塊鏈以及自其他群組所接收到的區塊鏈產生並儲存整合區塊鏈。 According to another embodiment of the present invention, the blockchain system may include a blockchain network and multiple nodes connected to the blockchain network. Multiple nodes can be scattered in multiple groups, and new blocks can be generated respectively. The blocks generated by the nodes in each group are mutually confirmed to form a block network. Each node generates and stores a block chain according to the block network of the group to which it belongs, and the block in each block chain has a time stamp. Each node further generates and stores an integrated blockchain based on the blockchain of the group to which it belongs and the blockchain received from other groups.

綜上述,本發明之多區塊鏈產生及整合方法與應用此方法的區塊鏈系統,可提高產生區塊的速度以及處理資料的效能。 In summary, the multi-blockchain generation and integration method of the present invention and the blockchain system using this method can increase the speed of generating blocks and the efficiency of processing data.

1‧‧‧區塊鏈系統 1‧‧‧Blockchain system

10‧‧‧區塊鏈網路 10‧‧‧Blockchain network

12‧‧‧節點 12‧‧‧node

120‧‧‧群組 120‧‧‧Group

B‧‧‧區塊 Block B‧‧‧

L‧‧‧區塊網 L‧‧‧Block Network

C‧‧‧區塊鏈 C‧‧‧Blockchain

C1‧‧‧整合區塊鏈 C1‧‧‧Integrate blockchain

S20~S28、S260~S262、S264~S266‧‧‧流程步驟 S20~S28, S260~S262, S264~S266‧‧‧Process steps

圖1A係繪示根據本發明之一具體實施例之區塊鏈系統的架構示意圖 FIG. 1A is a schematic diagram showing the architecture of a blockchain system according to a specific embodiment of the present invention

圖1B係繪示可透過圖1A之區塊鏈系統達成的多區塊鏈產生及整合方法的步驟流程圖。 FIG. 1B is a flowchart showing the steps of a method for generating and integrating multiple blockchains that can be achieved through the blockchain system of FIG. 1A.

圖2係繪示根據本發明之另一具體實施例之多區塊鏈產生及整合方法的步驟流程圖。 FIG. 2 is a flowchart of steps of a method for generating and integrating multiple blockchains according to another embodiment of the present invention.

圖3係繪示根據本發明之另一具體實施例之多區塊鏈產生及整合方法的步驟流程圖。 FIG. 3 is a flowchart showing the steps of a method for generating and integrating multiple blockchains according to another embodiment of the present invention.

為了讓本發明的優點,精神與特徵可以更容易且明確地了解,後續將以具體實施例並參照所附圖式進行詳述與討論。值得注意的是,這些具體實施例僅為本發明代表性的具體實施例,其中所舉例的特定方法、裝置、條件、材質等並非用以限定本發明或對應的具體實施例。又,圖中各裝置僅係用於表達其相對位置且未按其實際比例繪述,合先敘明。 In order to make the advantages, spirit and features of the present invention easier and clearer to understand, the following will be detailed and discussed with specific embodiments and with reference to the accompanying drawings. It should be noted that these specific embodiments are only representative specific embodiments of the present invention, and the specific methods, devices, conditions, materials, etc. exemplified therein are not intended to limit the present invention or the corresponding specific embodiments. In addition, each device in the figure is only used to express its relative position and is not drawn according to its actual scale, which is described first.

請參考圖1A及圖1B,圖1A係繪示根據本發明之一具體實施例之區塊鏈系統1的架構示意圖,圖1B係繪示可透過圖1A之區塊鏈系統1達 成的多區塊鏈產生及整合方法的步驟流程圖。如圖1A所示,區塊網系統1可包含區塊鏈網路10以及多個連接於區塊鏈網路10的節點12,各節點12可透過區塊鏈網路10互相聯繫。區塊鏈網路10中可儲存多筆資料,這些資料可根據不同的應用領域而包含不同的形式或內容,例如,這些資料可包含金融交易資料、醫療病歷、身分驗證資料、學歷資料或人工智慧學習資料等。節點12於實務中可為電腦主機或是任何具有網路功能的邏輯運算裝置,並可自區塊鏈網路10中獲取上述資料,以對所獲取的資料執行區塊產生程序而生成區塊B。 Please refer to FIGS. 1A and 1B. FIG. 1A is a schematic diagram illustrating the architecture of a blockchain system 1 according to a specific embodiment of the present invention. FIG. 1B is a diagram showing a multi-zone that can be achieved through the blockchain system 1 of FIG. 1A. Step flow chart of the block chain generation and integration method. As shown in FIG. 1A, the blockchain system 1 may include a blockchain network 10 and a plurality of nodes 12 connected to the blockchain network 10, and each node 12 can be connected to each other through the blockchain network 10. The blockchain network 10 can store multiple pieces of data. These data can contain different forms or contents according to different application fields. For example, these data can include financial transaction data, medical records, identity verification data, academic data or manual labor. Wisdom learning materials, etc. In practice, the node 12 can be a computer host or any logical computing device with network functions, and can obtain the above-mentioned data from the blockchain network 10 to execute the block generation process on the obtained data to generate a block B.

於本具體實施例中,多個節點12可被分散或被歸類至不同的群組120之中,如圖1A所示,多個節點12分別被分散到3個群組120,但本發明之群組數量並不以圖1A所繪示之數量為限,也可為2個群組或超過3個群組。於實務中,一個節點12可被隨機分配至其中一個群組120,或可依據一個既定的規則來分配。舉例來說,新節點可依照其加入此區塊網系統之順序而被分配至較新形成的群組中;或者,節點可依照所在的區域被歸類於對應的群組,例如位於東亞區域中的節點被歸類於東亞群組中,而北美區域中的節點被歸類於北美群組中。請注意,本發明並不限定一個群組中之節點的數量,然而,節點數量仍必須要足夠克服區塊鏈中的拜占庭將軍問題。 In this specific embodiment, multiple nodes 12 can be dispersed or classified into different groups 120. As shown in FIG. 1A, multiple nodes 12 are respectively dispersed into three groups 120, but the present invention The number of groups is not limited to the number shown in FIG. 1A, and can also be 2 groups or more than 3 groups. In practice, a node 12 can be randomly assigned to one of the groups 120, or can be assigned according to a predetermined rule. For example, new nodes can be assigned to newly formed groups according to the order in which they joined the blockchain system; or, nodes can be classified into corresponding groups according to their region, for example, located in East Asia Nodes in are classified in the East Asian group, while nodes in the North American region are classified in the North American group. Please note that the present invention does not limit the number of nodes in a group. However, the number of nodes must still be sufficient to overcome the Byzantine Generals problem in the blockchain.

如圖1B所示,本具體實施例之多區塊鏈產生及整合方法包含以下步驟:步驟S20,將多個節點12分散於多個群組120之中;步驟S22,各節點12分別產生複數個區塊B,並且每一個群組120中的各區塊B互相確認形成區塊網L;步驟S24,分別壓實各區塊網L以產生多個區塊鏈C,同時計 算出每個區塊鏈C中之每一個區塊B的時間標籤;步驟S26,根據所有區塊B的時間標籤整合所有區塊鏈C,以產生整合區塊鏈C1;以及步驟S28,各節點12分別儲存整合區塊鏈C1。 As shown in FIG. 1B, the multi-blockchain generation and integration method of this embodiment includes the following steps: step S20, disperse multiple nodes 12 in multiple groups 120; step S22, each node 12 generates a complex number Block B, and each block B in each group 120 mutually confirms to form a block network L; step S24, each block network L is compacted to generate multiple block chains C, and each The time label of each block B in the blockchain C; step S26, integrate all the blockchains C according to the time labels of all the blocks B to generate an integrated blockchain C1; and step S28, each node 12 stores separately Integrate blockchain C1.

於步驟S22中,各節點12可自行產生新的區塊B,而不需要進行為了獲得新區塊產生權利之工作量證明雜湊運算。於實務中,當一個群組120中之一個節點12產生新區塊B時,可將此新區塊B接於自身先前產生之區塊所形成之區塊鏈的最後端,並發出對應於此新區塊B的廣播至區塊鏈網路10。廣播的內容包含了此新產生區塊B的相關資訊,例如區塊的創建者代碼(Block Proposer ID)、該區塊之雜湊值(Block Hash)、該區塊之前一區塊之雜湊值(Previous Block Hash)、創建者簽名(Signature)、區塊高度(Block Height)、以及確認資料(Acks)等;接著,於同一群組120中之其他節點12可由區塊鏈網路10接收前述的廣播,並利用廣播內的確認資料確認此新產生區塊B。當此群組120內超過三分之二的節點12確認此新產生區塊B時,此新產生區塊B即成為已確認區塊或有效區塊。此外,當確認無誤後,其他節點12也可於產生其他新區塊時將前述廣播中的確認資訊寫入新區塊中。因此,群組120中的各節點120除了可分別產生自身的區塊鏈,並且透過群組120中之不同節點120產生的區塊B間的互相確認,還可進一步將不同節點120的區塊鏈中之區塊B互相連接形成區塊網L,進而保證區塊B之資料的正確性。 In step S22, each node 12 can generate a new block B on its own, without the need to perform a workload proof hash operation to obtain the right to generate the new block. In practice, when a node 12 in a group 120 generates a new block B, it can connect this new block B to the last end of the blockchain formed by the previously generated block, and send out corresponding to this new block Broadcast of block B to the blockchain network 10. The broadcast content contains the relevant information of this newly generated block B, such as the creator code of the block (Block Proposer ID), the hash value of the block (Block Hash), the hash value of the previous block ( Previous Block Hash), creator signature (Signature), block height (Block Height), and confirmation data (Acks), etc.; then, other nodes 12 in the same group 120 can receive the foregoing by the blockchain network 10 Broadcast, and use the confirmation data in the broadcast to confirm this newly generated block B. When more than two-thirds of the nodes 12 in the group 120 confirm the newly generated block B, the newly generated block B becomes a confirmed block or a valid block. In addition, after the confirmation is correct, other nodes 12 can also write the confirmation information in the broadcast into the new block when other new blocks are generated. Therefore, each node 120 in the group 120 can generate its own blockchain separately, and through mutual confirmation between the blocks B generated by different nodes 120 in the group 120, it can also further combine the blocks of different nodes 120 Blocks B in the chain are connected to each other to form a block network L, thereby ensuring the correctness of the data of block B.

於步驟S24中,各節點12可將自身所屬群組120之區塊網L壓實成為一區塊鏈C,並同時計算出區塊鏈C中的每一區塊B的時間標籤,其中,時間標籤中包含此區塊B的產生時間或成為已確認區塊的時間。請注 意,在同一群組120中的所有節點12會計算得到同樣的區塊鏈C,並且將此區塊鏈C儲存起來。於步驟S24後,各群組120即獲得各自的區塊鏈C。實務中,節點12中可同時儲存自身所產生區塊所形成的區塊鏈以及所屬群組120的區塊鏈C。 In step S24, each node 12 can compact the block network L of its own group 120 into a block chain C, and calculate the time label of each block B in the block chain C at the same time, where, The time label includes the generation time of this block B or the time when it became a confirmed block. Please note that all nodes 12 in the same group 120 will calculate the same blockchain C, and store this blockchain C. After step S24, each group 120 obtains its own blockchain C. In practice, the node 12 can store both the blockchain formed by the blocks it generates and the blockchain C of the group 120 to which it belongs.

於步驟S26中,各群組120之各節點12除了自身儲存的區塊鏈C之外,還可自區塊鏈網路10接收其他群組120之節點12所儲存的區塊鏈C。接著,各節點12以自身儲存的區塊鏈C以及其他群組120的區塊鏈C,配合所有區塊鏈C中的所有區塊B的時間標籤而將所有的區塊鏈C整合為整合區塊鏈C1,並且於步驟S28中將此整合區塊鏈C1儲存。因此,區塊鏈系統1最終可得到一個整合全節點之區塊的區塊鏈。實務中,節點12中可同時儲存自身所產生區塊所形成的區塊鏈、所屬群組120的區塊鏈C以及整合區塊鏈C1。 In step S26, in addition to the blockchain C stored in itself, each node 12 of each group 120 can also receive from the blockchain network 10 the blockchain C stored by the nodes 12 of other groups 120. Then, each node 12 integrates all the blockchains C into an integration based on the blockchain C stored in itself and the blockchain C of other groups 120 in conjunction with the time stamps of all the blocks B in all the blockchains C Block chain C1, and store this integrated block chain C1 in step S28. Therefore, the blockchain system 1 can finally obtain a blockchain that integrates blocks of all nodes. In practice, the node 12 can simultaneously store the blockchain formed by the blocks it generates, the blockchain C of the group 120 to which it belongs, and the integrated blockchain C1.

請參照圖2,圖2係根據本發明之另一具體實施例之多區塊鏈產生及整合方法的步驟流程圖。如圖2所示,本具體實施例與前一具體實施例不同處,在於本具體實施例之步驟S26進一步包含了步驟S260以及S262。請注意,本具體實施例之方法的其他步驟,係與上一具體實施例的相對應步驟大致相同,故於此不再贅述。 Please refer to FIG. 2. FIG. 2 is a flow chart of a method for generating and integrating multiple blockchains according to another embodiment of the present invention. As shown in FIG. 2, the difference between this specific embodiment and the previous specific embodiment is that step S26 in this specific embodiment further includes steps S260 and S262. Please note that the other steps of the method of this specific embodiment are substantially the same as the corresponding steps of the previous specific embodiment, so they will not be repeated here.

於本具體實施例中,當執行步驟S24而產生多個區塊鏈C之後,區塊鏈系統1可進一步執行步驟S260:根據各區塊B的時間標籤分別對各區塊B排序。各區塊B的時間標籤中帶有該區塊B的產生時間或被確認時間,故可用來對所有的區塊B進行時間上的排序。於實務中,各群組120之區塊鏈C中的區塊B已互相連接,因此於執行步驟S260之前可先將各區塊鏈 C之區塊B間的連接打散。於前述步驟S260後,所有的區塊B之間已形成了時間上的排序,因此可根據此時間上的排序將所有的區塊B連接而形成整合區塊鏈C1,如步驟S262所示。 In this embodiment, after performing step S24 to generate a plurality of blockchains C, the blockchain system 1 may further perform step S260: each block B is sorted according to the time label of each block B. The time label of each block B contains the generation time or the confirmed time of the block B, so it can be used to sort all the blocks B in time. In practice, the blocks B in the block chains C of the groups 120 are already connected to each other, so the connection between the blocks B of the block chains C can be broken up before step S260 is executed. After the aforementioned step S260, all the blocks B have formed a temporal order, so all the blocks B can be connected according to this temporal order to form an integrated blockchain C1, as shown in step S262.

綜上述,本發明之區塊鏈系統與多區塊鏈產生及整合方法可先將多個節點分散到不同群組之中,並以群組為單位將群組內的節點所產生的區塊互相連接產生區塊網。於此階段中,節點所產生的區塊並不需要經過區塊鏈網路中的所有節點確認,僅須由所屬群組中的其他區塊確認即可形成已確認區塊或有效區塊,進而節省了大量的其他節點進行確認所耗費的時間,換言之,提高了區塊產出效率。接著,區塊鏈系統中所有群組的區塊鏈整合成一個整合區塊鏈,使在區塊鏈網路上的所有節點都能獲得相同的整合區塊鏈,從而確保了資料的可信度以及去中心化的效果。 In summary, the blockchain system and multi-blockchain generation and integration method of the present invention can first disperse multiple nodes into different groups, and use the group as a unit to divide the blocks generated by the nodes in the group Connect to each other to create a block network. In this stage, the block generated by the node does not need to be confirmed by all nodes in the blockchain network. It only needs to be confirmed by other blocks in the group to form a confirmed block or a valid block. This saves a lot of time consumed by other nodes for confirmation, in other words, improves the efficiency of block output. Then, the blockchains of all groups in the blockchain system are integrated into an integrated blockchain, so that all nodes on the blockchain network can obtain the same integrated blockchain, thereby ensuring the credibility of the data And the effect of decentralization.

如前述的具體實施例,本發明係根據各區塊的時間標籤將各區塊鏈整合產生整合區塊鏈,然而,由於各群組分別計算群組內的區塊的時間標籤,因此與其他區塊鏈互相整合時可能會遇到兩個區塊鏈中之區塊的時間標籤之時間相近甚至相同的狀況,甚至可能導致整合區塊鏈C1分歧。 As in the foregoing specific embodiment, the present invention integrates each block chain according to the time label of each block to generate an integrated block chain. However, since each group calculates the time label of the block in the group separately, it is compared with other When the blockchains are integrated with each other, the time tags of the blocks in the two blockchains may be similar or even the same in time, which may even lead to divergence of the integrated blockchain C1.

請參照圖3,圖3係繪示根據本發明之另一具體實施例之多區塊鏈產生及整合方法的步驟流程圖。如圖3所示,本具體實施例與前述具體實施例不同處,在於本具體實施例之方法進一步包含步驟S264及S266。請注意,本具體實施例之方法的其他步驟,係與前述具體實施例的相對應步驟大致相同,故於此不再贅述。 Please refer to FIG. 3. FIG. 3 is a flowchart of steps of a method for generating and integrating multiple blockchains according to another embodiment of the present invention. As shown in FIG. 3, this specific embodiment is different from the foregoing specific embodiments in that the method of this specific embodiment further includes steps S264 and S266. Please note that the other steps of the method in this specific embodiment are substantially the same as the corresponding steps in the foregoing specific embodiment, so they will not be repeated here.

於本具體實施例中,當區塊鏈系統1執行完步驟S24後,可接續執行步驟S264,檢查所有區塊鏈C中之區塊B的時間標籤,並找出時間 標籤相近的第一區塊及第二區塊;接著,區塊鏈系統1可執行步驟S266,將第一區塊與第二區塊整合為一整合區塊,並以整合區塊取代第一區塊及第二區塊。因此,在後續的步驟S26之中,區塊鏈系統1所產生的整合區塊鏈C1中原本時間相近的第一區塊及第二區塊也會被整合為整合區塊,使得整合區塊鏈C1可具有單一的區塊連接順序而避免分歧。若時間標籤相近的區塊B超過兩個,也可一併將所有相近的區塊B整合為一個整合區塊,再以此整合區塊取代所有相近的區塊B。於實務中,整合區塊可包含了所有被整合區塊B中的資料,故可確保區塊鏈中的資料穩定度及可信度。 In this specific embodiment, after the blockchain system 1 has performed step S24, it can continue to perform step S264 to check the time tags of block B in all blockchains C, and find the first area with similar time tags Block and the second block; then, the blockchain system 1 may perform step S266 to integrate the first block and the second block into an integrated block, and replace the first block and the second block with the integrated block Piece. Therefore, in the subsequent step S26, the first block and the second block in the integrated blockchain C1 generated by the blockchain system 1 that are similar in time will also be integrated into an integrated block, so that the integrated block The chain C1 can have a single block connection sequence to avoid divergence. If there are more than two blocks B with similar time stamps, all similar blocks B can be integrated into one integrated block, and then all similar blocks B can be replaced by this integrated block. In practice, the integrated block can contain all the data in the integrated block B, so the stability and credibility of the data in the blockchain can be ensured.

請注意,雖然本具體實施例中步驟S264及步驟S266係於步驟S24與步驟S26之間執行,但本發明並不以此為限。步驟S264及步驟S266之實際功效僅在於將具有相近或相同時間標籤的不同區塊整合為一,因此可於區塊鏈系統1執行步驟S26時同時進行步驟S264及S266,亦即,根據時間標籤對各區塊B排序同時可將時間標籤相近的區塊B整合為一;或者,步驟S264及步驟S266也可於區塊鏈系統1執行步驟S26後續行,亦即,當整合所有區塊鏈C而形成整合區塊鏈C1之後,再對整合區塊鏈C1中具有相同或相近時間標籤的多個區塊B進行整合而形成整合區塊。 Please note that although step S264 and step S266 in this specific embodiment are executed between step S24 and step S26, the present invention is not limited to this. The actual effect of step S264 and step S266 is only to integrate different blocks with similar or the same time stamp into one. Therefore, steps S264 and S266 can be performed simultaneously when the blockchain system 1 executes step S26, that is, according to the time stamp Sorting each block B can integrate block B with similar time tags into one; alternatively, step S264 and step S266 can also be executed in the blockchain system 1 after step S26, that is, when all the blockchains are integrated After C forms the integrated blockchain C1, multiple blocks B with the same or similar time tags in the integrated blockchain C1 are integrated to form an integrated block.

綜上述,本發明之多區塊鏈產生及整合方法與應用此方法的區塊鏈系統可將所有節點分散於多個群組,且每個群組各自產生區塊網及區塊鏈,換言之,在同樣的節點數量之下,本發明的區塊鏈系統產生區塊及區塊鏈的速度將遠超過先前技術的產生速度,亦即大幅提升了資料處理速度。此外,本發明之方法及系統中各群組所產生的區塊鏈可根據時間標籤進一步整合為整合區塊鏈而儲存於各節點中,故於提升產出區塊速度同 時也能確保資料的不可竄改性以及去中心化的效果。 In summary, the multi-blockchain generation and integration method of the present invention and the blockchain system using this method can disperse all nodes in multiple groups, and each group generates a block network and a block chain. In other words Under the same number of nodes, the speed of generating blocks and blockchains by the blockchain system of the present invention will far exceed the generation speed of the prior art, that is, greatly increasing the data processing speed. In addition, the block chain generated by each group in the method and system of the present invention can be further integrated into an integrated block chain and stored in each node according to the time label, so the block output speed can be increased while ensuring the data Non-modifiable and decentralized effects.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。因此,本發明所申請之專利範圍的範疇應根據上述的說明作最寬廣的解釋,以致使其涵蓋所有可能的改變以及具相等性的安排。 Based on the above detailed description of the preferred embodiments, it is hoped that the characteristics and spirit of the present invention can be described more clearly, rather than limiting the scope of the present invention by the preferred embodiments disclosed above. On the contrary, its purpose is to cover various changes and equivalent arrangements within the scope of the patent application for the present invention. Therefore, the scope of the patent application for the present invention should be interpreted in the broadest sense based on the above description, so that it covers all possible changes and equivalent arrangements.

1‧‧‧區塊鏈系統 1‧‧‧Blockchain system

10‧‧‧區塊鏈網路 10‧‧‧Blockchain network

12‧‧‧節點 12‧‧‧node

120‧‧‧群組 120‧‧‧Group

B‧‧‧區塊 Block B‧‧‧

L‧‧‧區塊網 L‧‧‧Block Network

C‧‧‧區塊鏈 C‧‧‧Blockchain

C1‧‧‧整合區塊鏈 C1‧‧‧Integrate blockchain

Claims (5)

一種多區塊鏈產生及整合方法,透過一電腦及網路系統進行,該電腦及網路系統包含一區塊鏈網路以及連接該區塊鏈網路之複數個節點,該方法包含以下步驟:將該等節點分散於複數個群組中;該等節點分別自行產生複數個區塊,且每一該等群組內所形成的該等區塊互相確認而形成一區塊網,其中該等區塊分別被所屬之群組中超過三分之二的該等節點確認時即成為一已確認區塊;計算出每一該等區塊之一時間標籤,該時間標籤為每一該等區塊之產生時間或成為該已確認區塊之時間;各該等節點分別接收各該等節點所屬群組以及其他群組所產生的該等區塊;各該等節點根據該等時間標籤分別對自身所產生的以及所接收到的該等區塊排序,並依據排序結果依序連接該等區塊以產生一整合區塊鏈;以及於每一該等節點中儲存該整合區塊鏈。 A method for generating and integrating multiple blockchains is carried out through a computer and network system. The computer and network system includes a blockchain network and a plurality of nodes connected to the blockchain network. The method includes the following steps : These nodes are dispersed in a plurality of groups; the nodes respectively generate a plurality of blocks by themselves, and the blocks formed in each of these groups confirm each other to form a block network, where the When a block is confirmed by more than two-thirds of the nodes in the group to which it belongs, it becomes a confirmed block; a time label for each block is calculated, and the time label is each The generation time of the block or the time when it becomes the confirmed block; each of the nodes receives the group of each node and the blocks generated by other groups; each of the nodes is based on the time label Sort the blocks generated and received by itself, and sequentially connect the blocks according to the sorting results to generate an integrated blockchain; and store the integrated blockchain in each of the nodes. 如申請專利範圍第1項所述之方法,進一步包含下列步驟:檢查該等區塊的該等時間標籤,以找出該等時間標籤相近之一第一區塊以及一第二區塊;以及將該第一區塊及該第二區塊整合形成一整合區塊,並將該整合區塊取代該第一區塊及該第二區塊,其中該整合區塊包含該第一區塊及該第二區塊中之所有資料。 For example, the method described in claim 1 further includes the following steps: checking the time tags of the blocks to find a first block and a second block with similar time tags; and The first block and the second block are integrated to form an integrated block, and the integrated block replaces the first block and the second block, wherein the integrated block includes the first block and All the data in the second block. 一種區塊鏈系統,包含:一區塊鏈網路,儲存有複數筆資料;以及 複數個節點,連接該區塊鏈網路,該等節點分散於複數個群組中並用來分別自行產生複數個區塊,每一該等群組中之該等節點所產生該等區塊互相確認以形成一區塊網,其中該等區塊分別被所屬之群組中超過三分之二的該等節點確認時即成為一已確認區塊;其中,該等節點分別計算自身所屬之該群組之每一該等區塊之一時間標籤,並分別接收各該等節點所屬群組以及其他群組所產生的該等區塊,該時間標籤為每一該等區塊之產生時間或成為該已確認區塊之時間,且該等節點分別根據自身所屬群組所產生之該等區塊以及自其他群組之該等節點所接收之該等區塊的該等時間標籤對所有該等區塊排序,以產生並儲存一整合區塊鏈。 A block chain system, including: a block chain network, storing plural pieces of data; and A plurality of nodes are connected to the blockchain network. The nodes are scattered in a plurality of groups and used to generate a plurality of blocks by themselves. The blocks generated by the nodes in each of these groups are mutually Confirm to form a block network, in which the blocks are confirmed by more than two-thirds of the nodes in the group to which they belong, and become a confirmed block; wherein, the nodes respectively calculate their own A time label for each of the blocks in the group, and receive the blocks generated by the group to which each node belongs and other groups, and the time label is the generation time of each block or Becomes the time of the confirmed block, and the nodes respectively compare all the blocks according to the time labels of the blocks generated by the group to which they belong and the blocks received from the nodes of other groups Wait for block sorting to generate and store an integrated blockchain. 如申請專利範圍第3項所述之系統,其中該等節點分別檢查該等區塊的該等時間標籤,以找出該等時間標籤相近之一第一區塊以及一第二區塊,將該第一區塊及該第二區塊整合形成一整合區塊,並以該整合區塊取代該第一區塊及該第二區塊而產生該整合區塊鏈,其中該整合區塊包含該第一區塊及該第二區塊中之所有資料。 For example, in the system described in item 3 of the scope of patent application, the nodes respectively check the time tags of the blocks to find a first block and a second block that are similar to the time tags. The first block and the second block are integrated to form an integrated block, and the first block and the second block are replaced with the integrated block to generate the integrated blockchain, wherein the integrated block includes All data in the first block and the second block. 如申請專利範圍第3項所述之系統,其中該等節點分別為一電腦主機。 For example, in the system described in item 3 of the scope of patent application, the nodes are respectively a computer host.
TW107132806A 2018-09-18 2018-09-18 Method for generating and integrating multiple blockchains and blockchain system TWI698100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107132806A TWI698100B (en) 2018-09-18 2018-09-18 Method for generating and integrating multiple blockchains and blockchain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107132806A TWI698100B (en) 2018-09-18 2018-09-18 Method for generating and integrating multiple blockchains and blockchain system

Publications (2)

Publication Number Publication Date
TW202013932A TW202013932A (en) 2020-04-01
TWI698100B true TWI698100B (en) 2020-07-01

Family

ID=71130415

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107132806A TWI698100B (en) 2018-09-18 2018-09-18 Method for generating and integrating multiple blockchains and blockchain system

Country Status (1)

Country Link
TW (1) TWI698100B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450979A (en) * 2017-03-28 2017-12-08 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device
CN107528886A (en) * 2017-07-25 2017-12-29 中国科学院计算技术研究所 Block chain the whole network method for splitting and system
US20180173747A1 (en) * 2016-12-19 2018-06-21 Swirlds, Inc. Methods and apparatus for a distributed database that enables deletion of events
TW201833796A (en) * 2017-02-28 2018-09-16 香港商阿里巴巴集團服務有限公司 Method and apparatus for writing business data of block chain, and business subset determination method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180173747A1 (en) * 2016-12-19 2018-06-21 Swirlds, Inc. Methods and apparatus for a distributed database that enables deletion of events
TW201833796A (en) * 2017-02-28 2018-09-16 香港商阿里巴巴集團服務有限公司 Method and apparatus for writing business data of block chain, and business subset determination method
CN107450979A (en) * 2017-03-28 2017-12-08 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device
CN107528886A (en) * 2017-07-25 2017-12-29 中国科学院计算技术研究所 Block chain the whole network method for splitting and system

Also Published As

Publication number Publication date
TW202013932A (en) 2020-04-01

Similar Documents

Publication Publication Date Title
Chen et al. Design of personnel big data management system based on blockchain
TWI721699B (en) System and method for parallel-processing blockchain transactions
CN111445334B (en) Aggregation signature method, device and storage medium of blockchain system
CN110400221B (en) Data processing method, system, storage medium and computer equipment
JP2023113804A (en) Cryptographic method and system for secure extraction of data from block chain
CN111316595A (en) System for protecting a verification key from alteration and verifying the validity of a proof of correctness
JP2021522710A (en) Maintenance of blockchain blocks in a divided blockchain network
CN110597925A (en) Cross-chain data processing method and device based on block chain
CN106991165A (en) Method, device and the electronic equipment of processing financial data based on block chain
CN109347651B (en) MSVL (modeling, simulation and verification language) -based block chain system modeling and security verification method and system
JP2019505150A (en) Method and system for modified blockchain using digital signature
CN109447602B (en) Multi-center collaborative distributed digital currency mixing method for protecting privacy
CN112506747B (en) Business process monitoring method and device, electronic equipment and storage medium
Edwards et al. A review of quantum and hybrid quantum/classical blockchain protocols
CN110599175A (en) Block processing method and related equipment
CN109447636A (en) A kind of assets transfer method and device
CN112070608B (en) Information processing method, device, medium and electronic equipment
CN111475692A (en) Processing method and device of block chain data and storage medium
CN114626102A (en) Block chain-based electronic certificate transfer method, device, equipment and storage medium
CN111949735A (en) System and method for realizing data query by applying account book of block chain
CN111292190A (en) Transaction generation method, block creation method, related device and equipment
Liu et al. Pianist: Scalable zkrollups via fully distributed zero-knowledge proofs
TWI698100B (en) Method for generating and integrating multiple blockchains and blockchain system
CN114629663B (en) Block chain-based digital commodity transaction method and device
Junis et al. A revisit on blockchain-based smart contract technology

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees