TW202013932A - 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
TW202013932A
TW202013932A TW107132806A TW107132806A TW202013932A TW 202013932 A TW202013932 A TW 202013932A TW 107132806 A TW107132806 A TW 107132806A TW 107132806 A TW107132806 A TW 107132806A TW 202013932 A TW202013932 A TW 202013932A
Authority
TW
Taiwan
Prior art keywords
block
blockchain
nodes
blocks
integrated
Prior art date
Application number
TW107132806A
Other languages
Chinese (zh)
Other versions
TWI698100B (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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-blockchain generation and integration method and blockchain system

本發明關於一種多區塊鏈產生及整合方法以及區塊鏈系統,並且特別地,關於一種將節點分散於多個群組中以產生多個區塊鏈,並將多個區塊鏈整合為一整合區塊鏈之方法及應用此方法的系統。 The present invention relates to a multi-blockchain generation and integration method and block chain system, and in particular, to a method of dispersing nodes in multiple groups to generate multiple block chains and integrating the multiple block chains 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 US dollars, and is constantly Growing. There are already many well-known companies and institutions that support the use of Bitcoin or other virtual currencies as trading currencies. In the future, more companies or institutions may join. Virtual currency is different from general currency, and there is no entity, but the reliability of virtual currency and its transactions can be supported by blockchain technology.

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

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

在區塊鏈的技術中,每台連接到區塊鏈網路的電腦都可以形成一個節點以從區塊鏈網路上獲取信息或資料,例如獲得交易資料等,接著節點可將這些資料進行包含雜湊(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, and then the node can include these data Hash operations such as block generation procedures 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 hashing operation of information or data itself, the blockchain system used in the aforementioned Bitcoin also uses a proof-of-work mechanism to determine whether a block can be generated, and the proof-of-work system uses nodes to solve difficult hashing. The operation is achieved. Therefore, in order to obtain the right to generate new blocks, each node will spend a lot of computing power on the hash operation of the proof of work.

區塊鏈發展至今已不僅僅是用在虛擬貨幣的用途,去中心化的技術可應用多種不同的技術領域,而工作量證明也不再是產生區塊的唯一憑藉。相反地,當區塊鏈應用於其他領域時,工作量證明反而成為阻礙區塊產生的重要因素。因此,在某些區塊鏈架構中,各節點可自行處理資料並產出區塊,在此架構下不需要工作量證明,因此節點的運算能力可由工作量證明的雜湊運算解放出來,而產生區塊的速度也將會對應地提升。為了確保這些區塊鏈架構中產生的區塊具有可信度,須解決區塊鏈中的拜占庭將軍問題(Byzantine Generals Problem),而一般採用的方式是以超過區塊鏈網路中所有節點數量的三分之二確認此新產生區塊正確來作為此區塊成為已確認區塊或有效區塊的標準。 The development of blockchain has not only been used for virtual currency, decentralized technology can be applied in many different technical fields, and proof of work is no longer the only way to generate blocks. Conversely, when blockchain is used in other fields, proof of work has become 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, no proof of workload is required, so the computing power of the node can be liberated by the hash operation of the proof of workload. The speed of the block will also 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 them confirm that the newly generated block is correct as the standard for this block to become a confirmed block or a valid block.

由於區塊鏈系統係去中心化的系統,其運算都是由各節點來進行,故新節點的加入會擴張區塊鏈架構,進而增大單位時間內的資料處理量並使資料更不易被竄改。然而,當節點的數量大幅膨脹時,表示所有節點數量也會大幅提升,導致一個節點所產生的區塊須經過大量節點確認後才能成為有效區塊,換言之,前述用來解決拜占庭將軍問題的機制以及網路傳輸速度的限制反而會拖慢產生新區塊的速度。 Since the blockchain system is a decentralized system, its operations are performed by each node, so the addition of new nodes will expand the blockchain architecture, thereby increasing the amount of data processing per unit time and making the data less susceptible Tampering. However, when the number of nodes is greatly expanded, it means that the number of all nodes will also be greatly increased, resulting in a block generated by a node must be confirmed by a large number of nodes before it becomes a valid block. In other words, the aforementioned mechanism used to solve the Byzantine general 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 category of the present invention is to provide a multi-blockchain generation and integration method that can generate blocks more efficiently.

根據本發明之一具體實施例,多區塊鏈產生及整合方法可透過區塊鏈系統來進行,其中區塊鏈系統包含區塊鏈網路及連接此區塊鏈網路的多個節點。多區塊鏈產生及整合方法包含以下步驟:將多個節點分散於多個群組中;各節點分別產生複數個區塊,每一群組中所產生的區塊互相確認而形成區塊網(Blocklattice);壓實各區塊網而形成多個區塊鏈,並計算每個區塊鏈中之每個區塊的時間標籤;根據時間標籤整合前述的多個區塊鏈以形成整合區塊鏈;以及,於每一個節點中儲存整合區塊鏈。 According to a specific embodiment of the present invention, a multi-blockchain generation and integration method 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: distributing multiple nodes in multiple groups; each node generates a plurality of 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 stamp of each block in each blockchain; integrate the aforementioned multiple blockchains according to the time stamp to form an integration area Blockchain; and, store and integrate the blockchain in each node.

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

根據本發明之另一具體實施例,區塊鏈系統可包含區塊鏈網路以及連接此區塊鏈網路的多個節點。多個節點可分散於多個群組中,並可分別產生新區塊。每一個群組中之節點產生的區塊互相確認,進而形成 一區塊網。各節點根據自身所屬之群組之區塊網產生並儲存區塊鏈,其中各區塊鏈中的區塊具有時間標籤。各節點進一步根據自身所屬之群組之區塊鏈以及自其他群組所接收到的區塊鏈產生並儲存整合區塊鏈。 According to another specific embodiment of the present invention, a blockchain system may include a blockchain network and multiple nodes connected to the blockchain network. Multiple nodes can be dispersed in multiple groups, and new blocks can be generated separately. The blocks generated by the nodes in each group confirm each other, thereby forming a block network. Each node generates and stores a block chain based on the block network of the group to which it belongs, and the blocks in each block chain have time tags. 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 applying the method can improve 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‧‧‧integrated blockchain

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

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

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

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

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

為了讓本發明的優點,精神與特徵可以更容易且明確地了解,後續將以具體實施例並參照所附圖式進行詳述與討論。值得注意的是,這些具體實施例僅為本發明代表性的具體實施例,其中所舉例的特定方法、裝置、條件、材質等並非用以限定本發明或對應的具體實施例。又,圖中各裝置僅係用於表達其相對位置且未按其實際比例繪述,合先敘明。 In order to make the advantages, spirit and features of the present invention easier and clearer to understand, detailed descriptions and discussions will follow with specific embodiments and with reference to the accompanying drawings. It is worth noting 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, the devices in the figure are only used to express their relative positions and are not drawn according to their actual proportions.

請參考圖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 of a blockchain system 1 according to an embodiment of the present invention. FIG. 1B is a multi-zone that can be achieved by the blockchain system 1 of FIG. 1A. Step flow chart of block chain generation and integration method. As shown in FIG. 1A, the block network system 1 may include a block chain network 10 and a plurality of nodes 12 connected to the block chain network 10, and each node 12 may communicate with each other through the block chain network 10. Multiple data can be stored in the blockchain network 10, and 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, education data, or labor Smart learning materials, etc. In practice, the node 12 can be a computer host or any logical computing device with network function, and can obtain the above-mentioned data from the blockchain network 10 to execute a block generation process on the obtained data to generate blocks B.

於本具體實施例中,多個節點12可被分散或被歸類至不同的群組120之中,如圖1A所示,多個節點12分別被分散到3個群組120,但本發明之群組數量並不以圖1A所繪示之數量為限,也可為2個群組或超過3個群組。於實務中,一個節點12可被隨機分配至其中一個群組120,或可依據一個既定的規則來分配。舉例來說,新節點可依照其加入此區塊網系統之順序而被分配至較新形成的群組中;或者,節點可依照所在的區域被歸類於對應的群組,例如位於東亞區域中的節點被歸類於東亞群組中,而北美區域中的節點被歸類於北美群組中。請注意,本發明並不限定一個群組中之節點的數量,然而,節點數量仍必須要足夠克服區塊鏈中的拜占庭將軍問題。 In this specific embodiment, multiple nodes 12 may be distributed or classified into different groups 120. As shown in FIG. 1A, multiple nodes 12 are distributed into three groups 120, but the present invention The number of groups is not limited to the number shown in FIG. 1A, but can also be 2 groups or more than 3 groups. In practice, a node 12 may be randomly assigned to one of the groups 120, or may be assigned according to a predetermined rule. For example, new nodes can be assigned to newer formed groups according to the order in which they join the blockchain system; or, nodes can be classified into corresponding groups according to the region where they are located, for example, located in the East Asian region The nodes in are classified in the East Asian group, while the 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 general 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, distributing multiple nodes 12 into multiple groups 120; Step S22, each node 12 generates a complex number Block B, and each block B in each group 120 confirms each other to form a block network L; step S24, compact each block network L to generate multiple block chains C, and calculate each The time stamp of each block B in the blockchain C; step S26, integrate all the blockchain C according to the time stamps of all the blocks B to generate an integrated blockchain C1; and step S28, each node 12 stores 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 by itself, without performing a hash of proof of work operation to obtain the right to generate a 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 block previously generated by itself, and issue a new block corresponding to this new area. Block B is broadcast to the blockchain network 10. The broadcast content contains information about the newly generated block B, such as the block creator code (Block Proposer ID), the block hash value (Block Hash), and the block previous block hash value ( 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 aforementioned from 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 may also write the confirmation information in the foregoing broadcast into the new block when generating other new blocks. 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, the blocks of different nodes 120 can be further Blocks B in the chain are connected to each other to form a block network L, thereby ensuring the accuracy 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 the group 120 to which it belongs to a block chain C, and simultaneously calculate the time stamp of each block B in the block chain C, where, The time tag contains the time when this block B was created or the time 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 simultaneously store the blockchain formed by the blocks generated by itself 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, each node 12 of each group 120 can receive the blockchain C stored by the nodes 12 of other groups 120 from the blockchain network 10 in addition to the blockchain C stored by itself. Then, each node 12 integrates all the blockchains C into the integration with the blockchain C stored by itself and the blockchain C of other groups 120, together 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 full nodes. In practice, the node 12 can simultaneously store the blockchain formed by the blocks generated by itself, the blockchain C belonging to the group 120, and the integrated blockchain C1.

請參照圖2,圖2係根據本發明之另一具體實施例之多區塊鏈產生及整合方法的步驟流程圖。如圖2所示,本具體實施例與前一具體實施例不同處,在於本具體實施例之步驟S26進一步包含了步驟S260以及S262。請注意,本具體實施例之方法的其他步驟,係與上一具體實施例的相對應步驟大致相同,故於此不再贅述。 Please refer to FIG. 2. FIG. 2 is a flowchart of steps of a multi-blockchain generation and integration method according to another embodiment of the present invention. As shown in FIG. 2, this specific embodiment is different from the previous specific embodiment in that step S26 of 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 particular embodiment, after performing step S24 to generate multiple blockchains C, the blockchain system 1 may further perform step S260: sort each block B according to the time stamp of each block B. The time tag of each block B carries the time when the block B was generated or confirmed, so it can be used to sort all blocks B in time. In practice, the blocks B in the blockchain C of each group 120 have been connected to each other, so the connection between the blocks B in each blockchain C can be broken up before step S260 is performed. After the aforementioned step S260, all blocks B have formed a temporal order, so all 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 distribute multiple nodes into different groups, and divide the blocks generated by the nodes in the group into groups. Connect each other to create a block network. At this stage, the blocks generated by the nodes do not need to be confirmed by all nodes in the blockchain network, and only need to be confirmed by other blocks in the group to form a confirmed block or a valid block. This saves a lot of time for other nodes to confirm, 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 aforementioned specific embodiment, the present invention integrates each blockchain according to the time stamp of each block to generate an integrated blockchain. However, since each group calculates the time stamp of the block in the group separately, it is different from other When the blockchains are integrated with each other, they may encounter a situation where the time stamps of the blocks in the two blockchains are similar or even the same, and may even cause the integration blockchain C1 to diverge.

請參照圖3,圖3係繪示根據本發明之另一具體實施例之多區塊鏈產生及整合方法的步驟流程圖。如圖3所示,本具體實施例與前述具體實施例不同處,在於本具體實施例之方法進一步包含步驟S264及S266。請注意,本具體實施例之方法的其他步驟,係與前述具體實施例的相對應步驟大致相同,故於此不再贅述。 Please refer to FIG. 3, which is a flowchart illustrating the steps of a multi-blockchain generation and integration method according to another embodiment of the present invention. As shown in FIG. 3, this specific embodiment is different from the foregoing specific embodiment in that the method of this specific embodiment further includes steps S264 and S266. Please note that the other steps of the method of this specific embodiment are substantially the same as the corresponding steps of 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 executes step S24, it may proceed to step S264 to check the time stamps of all blocks B in the blockchain C and find the first area with similar time stamps Block and 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 area with the integrated block Piece. Therefore, in the subsequent step S26, the first block and the second block in the integrated block chain C1 generated by the block chain system 1 which are originally similar in time are also integrated into the integrated block, so that the integrated block Chain C1 can have a single block connection order to avoid divergence. If there are more than two blocks B with similar time labels, all the similar blocks B can be integrated into one integrated block, and then all the 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 it can ensure the stability and credibility of the data in the blockchain.

請注意,雖然本具體實施例中步驟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 are executed between step S24 and step S26 in this specific embodiment, the invention is not limited to this. The actual effect of step S264 and step S266 is only to integrate different blocks with similar or same time labels into one, so steps S264 and S266 can be performed simultaneously when the blockchain system 1 executes step S26, that is, according to the time label Sorting each block B at the same time can integrate the blocks B with similar time labels into one; or, steps S264 and S266 can also execute the subsequent line of step S26 in the blockchain system 1, that is, when integrating all the blockchains After C forms the integrated blockchain C1, multiple blocks B with the same or similar time labels 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 block chain system applying this method can distribute all nodes in multiple groups, and each group generates a block network and a block chain separately, in other words Under the same number of nodes, the block chain system of the present invention generates blocks and the speed of the block chain will far exceed the generation rate of the prior art, that is, the data processing speed is greatly improved. 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 stamp, so that the speed of the block output can be increased while ensuring the data The effect of non-channel modification and decentralization.

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

Claims (10)

一種多區塊鏈產生及整合方法,透過一電腦及網路系統進行,該電腦及網路系統包含一區塊鏈網路以及連接該區塊鏈網路之複數個節點,該方法包含以下步驟:將該等節點分散於複數個群組中;該等節點分別產生複數個區塊,且每一該等群組內所形成的該等區塊互相確認而形成一區塊網;分別壓實該等區塊網以產生複數區塊鏈,並計算出每一該等區塊鏈中之每一該等區塊之一時間標籤;根據該等時間標籤整合該等區塊鏈,以產生一整合區塊鏈;以及於每一該等節點中儲存該整合區塊鏈。 A multi-blockchain generation and integration method is performed by 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 : Distribute the nodes in a plurality of groups; the nodes generate a plurality of blocks, and the blocks formed in each of these groups confirm each other to form a block network; compact The block networks generate a plurality of block chains, and calculate a time stamp of each of the blocks in each of the block chains; integrate the block chains according to the time tags to generate a Integrated blockchain; and storing the integrated blockchain in each of these nodes. 如申請專利範圍第1項所述之方法,進一步包含下列步驟:根據該等時間標籤分別對該等區塊鏈中之該等區塊排序;以及依據排序結果依序連接該等區塊以產生該整合區塊鏈。 The method as described in item 1 of the patent application scope further includes the following steps: sorting the blocks in the blockchain according to the time tags; and sequentially connecting the blocks according to the sorting result to generate The integrated blockchain. 如申請專利範圍第2項所述之方法,進一步包含下列步驟:檢查該等區塊鏈中之該等區塊的該等時間標籤,以找出該等時間標籤相近之一第一區塊以及一第二區塊;以及將該第一區塊及該第二區塊整合形成一整合區塊,並將該整合區塊取代該第一區塊及該第二區塊。 The method as described in item 2 of the patent application scope further includes the following steps: checking the time labels of the blocks in the blockchain to find a first block with similar time labels and A second block; and integrating the first block and the second block to form an integrated block, and replacing the first block and the second block with the integrated block. 如申請專利範圍第1項所述之方法,進一步包含以下步驟:每一該等群組中之該等節點分別整合所對應之該區塊網以產生該區塊鏈,並各自儲存該區塊鏈。 The method described in item 1 of the patent application scope further includes the following steps: the nodes in each of the groups respectively integrate the corresponding block network to generate the block chain, and store the block respectively chain. 如申請專利範圍第4項所述之方法,進一步包含以下步驟:每一該等群組中之該等節點分別自其他群組之該等節點接收其他區塊鏈;以及每一該等節點分別整合自身所儲存的該區塊鏈以及接收到的該等區塊鏈以產生該整合區塊鏈,並儲存該整合區塊鏈。 The method as described in item 4 of the patent application scope further includes the following steps: the nodes in each of these groups respectively receive other blockchains from the nodes in other groups; and each of these nodes respectively Integrate the blockchain stored by itself and the received blockchains to generate the integrated blockchain, and store the integrated blockchain. 一種區塊鏈系統,包含:一區塊鏈網路,儲存有複數筆資料;以及複數個節點,連接該區塊鏈網路,該等節點分散於複數個群組中並用來產生複數個區塊,每一該等群組中之該等節點所產生該等區塊互相確認以形成一區塊網;其中,該等節點分別根據自身所屬之該群組之該區塊網產生並儲存一區塊鏈,且分別根據自身儲存之該區塊鏈以及自其他群組之該等節點所接收之該等區塊鏈產生並儲存一整合區塊鏈。 A blockchain system includes: a blockchain network storing a plurality of data; and a plurality of nodes connected to the blockchain network, the nodes are dispersed in a plurality of groups and used to generate a plurality of regions Block, the blocks generated by the nodes in each of these groups confirm each other to form a block network; wherein, the nodes respectively generate and store a block according to the block network of the group to which they belong A blockchain, and an integrated blockchain is generated and stored based on the blockchain stored by itself and the blockchains received from the nodes of other groups, respectively. 如申請專利範圍第6項所述之系統,其中該等節點分別計算自身所儲存之該區塊鏈之每一該等區塊的一時間標籤。 The system as described in item 6 of the patent application scope, in which the nodes respectively calculate a time stamp of each of the blocks of the block chain stored by themselves. 如申請專利範圍第7項所述之系統,其中該等節點分別根據自身儲存之該區塊鏈以及自其他群組之該等節點所接收之該等區塊鏈中之該等區塊的該等時間標籤對 該等區塊排序,並依據排序結果連接該等區塊以產生該整合區塊鏈。 The system as described in item 7 of the patent application scope, in which the nodes are based on the block chain stored by themselves and the blocks in the block chains received from the nodes in other groups The time tags are used to sort the blocks, and the blocks are connected according to the sorting result to generate the integrated blockchain. 如申請專利範圍第7項所述之系統,其中該等節點分別檢查該等區塊鏈中之該等區塊的該等時間標籤,以找出該等時間標籤相近之一第一區塊以及一第二區塊,將該第一區塊及該第二區塊整合形成一整合區塊,並以該整合區塊取代該第一區塊及該第二區塊而產生該整合區塊鏈。 The system as described in item 7 of the patent application scope, in which the nodes respectively check the time labels of the blocks in the blockchain to find a first block with similar time labels and A second block, integrating the first block and the second block to form an integrated block, and replacing the first block and the second block with the integrated block to generate the integrated blockchain . 如申請專利範圍第6項所述之系統,其中該等節點分別為一電腦主機。 The system as described in item 6 of the patent application scope, in which 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 true TW202013932A (en) 2020-04-01
TWI698100B 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)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11222006B2 (en) * 2016-12-19 2022-01-11 Swirlds, Inc. Methods and apparatus for a distributed database that enables deletion of events
CN106980649B (en) * 2017-02-28 2020-07-10 创新先进技术有限公司 Method and device for writing block chain service data and service subset determining method
CN107450979B (en) * 2017-03-28 2020-06-02 创新先进技术有限公司 Block chain consensus method and device
CN107528886B (en) * 2017-07-25 2020-07-31 中国科学院计算技术研究所 Block chain full-network splitting method and system

Also Published As

Publication number Publication date
TWI698100B (en) 2020-07-01

Similar Documents

Publication Publication Date Title
CN110597925B (en) Cross-chain data processing method and device based on block chain
EP3622687B1 (en) Enclave pool management
US11182851B2 (en) Inter-ledger messaging in a blockchain
US11095451B2 (en) Optimal data storage configuration in a blockchain
JP6577680B2 (en) Method and system for modified blockchain using digital signature
US11176246B2 (en) Enclave pool shared key
JP2023113804A (en) Cryptographic method and system for secure extraction of data from block chain
JP2020519983A (en) System and method for parallel processing blockchain transactions
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
WO2023050556A1 (en) Smart contract consensus algorithm
CN110599175A (en) Block processing method and related equipment
CN110998633A (en) Method and apparatus for avoiding double-flower problem in block chain technology based on read-write set model
WO2021109718A1 (en) Verification method and apparatus based on block chain system
CN109344268A (en) Method, electronic equipment and the computer readable storage medium of graphic data base write-in
CN110598007B (en) Bill file processing method, device, medium and electronic equipment
CN114884652A (en) Method, system and consensus node for generating random number seed on block chain
TWI698100B (en) Method for generating and integrating multiple blockchains and blockchain system
WO2023221350A1 (en) Blockchain-based code copyright registration system, method and platform
CN112751667B (en) Key generation method, signature and signature verification method, device, equipment and medium
CN112737777B (en) Threshold signature and signature verification method, device, equipment and medium based on secret key
CN114024687A (en) Method for realizing NFT detachable and interchangeable through locking reissue
CN114629663A (en) Block chain-based digital commodity transaction method and device
CN113810185A (en) Anti-trapdoor leakage on-chain data restoration system and method
WO2020056570A1 (en) Sharding mechanism-based block generation method for block network, and block network system

Legal Events

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