TWI812510B - Blockchain audit system - Google Patents
Blockchain audit system Download PDFInfo
- Publication number
- TWI812510B TWI812510B TW111139307A TW111139307A TWI812510B TW I812510 B TWI812510 B TW I812510B TW 111139307 A TW111139307 A TW 111139307A TW 111139307 A TW111139307 A TW 111139307A TW I812510 B TWI812510 B TW I812510B
- Authority
- TW
- Taiwan
- Prior art keywords
- transaction
- blockchain
- transaction record
- audit
- database
- Prior art date
Links
- 238000012550 audit Methods 0.000 title claims abstract description 134
- 230000006855 networking Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 7
- 238000000034 method Methods 0.000 description 6
- 238000012790 confirmation Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Distillation Of Fermentation Liquor, Processing Of Alcohols, Vinegar And Beer (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
一區塊鏈稽核系統包含:一稽核控制介面接收被寫入至一交易資料庫的一筆交易資料;一稽核區塊鏈用於儲存多筆已稽核成功的交易記錄且與該稽核控制介面連接;該稽核控制介面根據所接收到的該筆交易資料產生一筆交易記錄並新增該筆交易記錄至一資料庫交易記錄總表;若該筆交易記錄存在於一資料庫交易記錄遺漏總表,則將該筆交易記錄從該資料庫交易記錄遺漏總表中移除,否則,若該筆交易記錄存在於一區塊鏈交易記錄總表,則將該筆交易記錄新增至一稽核成功交易記錄總表,並將該筆交易記錄的一交易區塊編號回寫至該交易資料庫中對應的交易資料。A blockchain audit system includes: an audit control interface that receives a transaction data written to a transaction database; an audit blockchain that is used to store multiple successfully audited transaction records and is connected to the audit control interface; The audit control interface generates a transaction record based on the received transaction data and adds the transaction record to a database transaction record summary table; if the transaction record exists in a database transaction record omission summary table, then Remove the transaction record from the database's missing transaction record list. Otherwise, if the transaction record exists in a blockchain transaction record list, add the transaction record to an audited successful transaction record. summary table, and write back a transaction block number of the transaction record to the corresponding transaction data in the transaction database.
Description
一種用於稽核的系統,尤指一種區塊鏈稽核系統,其用於稽核區塊鏈的運作。A system for auditing, especially a blockchain auditing system, which is used to audit the operation of the blockchain.
區塊鏈(Blockchain)分散式帳本(Distributed ledger)技術自2009年開始至今已成功的使用了多年,這證明區塊鏈技術是可行的。在一般區塊鏈技術的應用中,由於分散式帳本技術的限制,無法進行有效率的查詢,故實務上會以傳統使用的特定資料庫如關聯式資料庫來輔助分散式帳本技術,讓其能有效運作。且所述資料庫與區塊鏈的分散式帳本是同時存在的,如此該應用的原本的流程可以不受區塊鏈的限制,且區塊鏈的分散式帳本可用以確認所述資料庫的內容未被竄改。Blockchain distributed ledger technology has been successfully used for many years since its inception in 2009, which proves that blockchain technology is feasible. In the application of general blockchain technology, due to the limitations of distributed ledger technology, efficient queries cannot be carried out. Therefore, in practice, traditionally used specific databases such as relational databases are used to assist distributed ledger technology. so that it can operate effectively. And the database and the distributed ledger of the blockchain exist at the same time, so that the original process of the application can not be restricted by the blockchain, and the distributed ledger of the blockchain can be used to confirm the data. The contents of the library have not been tampered with.
請參閱圖5所示,圖5是一區塊鏈20的示意圖,用以解說一般區塊鏈的基本架構與運作。其中該區塊鏈20係具有多個節點(Node)如節點A、節點B及節點C等,其中每一個節點都保存有一分類帳本(Ledger)如節點A保存有分類帳本a,節點B保存有分類帳本b,且節點C保存有分類帳本c;構成所述節點的實體裝置可為能夠聯網的服務器、電腦設備或手機,構成所述分類帳本的實體可為電子檔案,該電子檔案係儲存於一記憶裝置如半導體記憶體裝置如動態記憶體(DRAM)、靜態記憶體(SRAM)、快閃記憶體(Flash memory)、固態磁碟(SSD)、或磁性記憶體如硬碟機、或光碟等。Please refer to Figure 5. Figure 5 is a schematic diagram of a
但是區塊鏈為了保證其資料的可靠性,當一資料寫入區塊鏈區塊以及產生一新的區塊,都需要一些時間,且區塊鏈中所有節點都須同步該資料以取得共識,這需要更多的時間;以及受限於區塊鏈技術規格於交易記錄的查詢上效率不高,因此區塊鏈應用系統,通常會結合區塊鏈技術與資料庫技術共同使用。因此區塊鏈與所述資料庫連動使用之間存在著速度與寫入方式的一些差異,這些差異再加上區塊鏈與所述資料庫二者本身所可能具有的潛在問題,使得將資料寫入區塊鏈或將資料寫入所述資料庫都可能有不成功的情形發生。例如在圖6所示的應用架構下,考慮先上鏈再記錄之情境(下稱情境一),首先經由一應用介面34將一筆交易資料30記錄至一區塊鏈31(以下簡稱「資料上鏈」)時,若資料上鏈失敗,需可重新進行交易程序,若資料上鏈成功,接著經由另一應用介面33記錄該筆交易資料30至一資料庫32(以下簡稱「資料記錄」),此時若資料記錄失敗,則僅有該區塊鏈31有記錄,這會造成該資料庫32與該區塊鏈31二者的記錄不一致。次考慮先資料記錄再資料上鏈之情境(下稱情境二),首先經由該應用介面33記錄該筆交易資料30至該資料庫32,若資料庫記錄失敗,需可重新進行交易程序,若資料記錄成功,接著經由該應用介面34記錄該筆交易資料30至該區塊鏈31,此時若資料上鏈失敗,則僅有該資料庫32有記錄,這也會造成該資料庫32與該區塊鏈31二者的記錄不一致。再考慮同時資料記錄與資料上鏈之情境(下稱情境三),經由該應用介面33記錄該筆交易資料30至該資料庫32,若資料庫記錄失敗,此與該區塊鏈31無關,同時經由該應用介面34記錄該筆交易資料30至該區塊鏈31,若上鏈失敗,此與該資料庫32無關,這也會造成該資料庫32與該區塊鏈31二者的記錄不一致。However, in order for the blockchain to ensure the reliability of its data, it takes some time when a data is written into a blockchain block and a new block is generated, and all nodes in the blockchain must synchronize the data to achieve consensus. , which takes more time; and is limited by blockchain technical specifications and is not efficient in querying transaction records. Therefore, blockchain application systems are usually used in conjunction with blockchain technology and database technology. Therefore, there are some differences in speed and writing methods between the linked use of the blockchain and the database. These differences, coupled with the potential problems that the blockchain and the database themselves may have, make the data Writing to the blockchain or writing data to the database may not be successful. For example, in the application architecture shown in Figure 6, consider the scenario of first uploading to the chain and then recording (hereinafter referred to as scenario 1). First, a
基於前述內容,資料庫與區塊鏈連動使用,在以上三種情境,均有可能產生資料不一致。實作上,發現情境一、先上鏈再記錄,交易資料更正作業會產生三筆區塊鏈記錄,會增加稽核的負荷。情境二、先記錄再上鏈,補上鏈會影響交易時間,取消之交易,需於帳本區塊更新後,方能有一致的記錄。情境三、同時上鏈與記錄,交易確認時間拖更長、交易失敗率增加,重新交易產生多筆區塊鏈更新記錄、資料庫記錄無該交易區塊編號。基於上述三種情境分析可知:在導入區塊鏈後,仍可能有資料庫與區塊鏈分散式帳本二者之記錄不一致的問題,有鑑於此,且面對一直以來區塊鏈應用的持續蓬勃發展,如何有效避免上述資料庫與區塊鏈分散式帳本二者之記錄不一致的情境,實為目前急需解決的問題。Based on the above content, if the database and blockchain are used in conjunction, data inconsistency may occur in the above three scenarios. In practice, it was found that in
為了解決上述問題,本發明提供一種區塊鏈稽核系統,其係用於交易資料庫與交易區塊鏈,用以該稽核並確認一交易資料庫與一交易區塊鏈之間的資料一致性,該交易資料庫,其係用於儲存多筆交易資料;該交易區塊鏈,其係用於儲存多筆交易資料,並讓交易資料具備不可修改性;In order to solve the above problems, the present invention provides a blockchain audit system, which is used in a transaction database and a transaction blockchain to audit and confirm the data consistency between a transaction database and a transaction blockchain. , the transaction database is used to store multiple transaction data; the transaction blockchain is used to store multiple transaction data and make the transaction data unmodifiable;
在一實施例中,其主要技術手段包含: 一稽核控制介面,接收已被寫入至一交易資料庫的多筆交易資料,並接收已被上鏈至一交易區塊鏈的多筆交易資料; 一稽核區塊鏈,與該稽核控制介面連接,該稽核區塊鏈係用於儲存多筆已稽核成功的交易記錄; 該稽核控制介面比對所收到的已被寫入至該交易資料庫的多筆交易資料及所收到的已被上鏈至該交易區塊鏈的多筆交易資料二者,該二者中相同的交易資料被該稽核控制介面記錄為稽核成功的交易記錄,並於該稽核控制介面由該交易區塊鏈收到一新增交易區塊的一交易區塊編號時,該稽核控制介面將該些稽核成功的交易記錄在該稽核區塊鏈中產生一新的稽核區塊; 且該二者中不相同的交易資料被該稽核控制介面所記錄,以反映該交易資料庫與該交易區塊鏈二者的交易資料的相異之處。 In one embodiment, the main technical means include: An audit control interface receives multiple transaction data that have been written to a transaction database, and receives multiple transaction data that has been uploaded to a transaction blockchain; An audit blockchain is connected to the audit control interface. The audit blockchain is used to store multiple successfully audited transaction records; The audit control interface compares the received multiple transaction data that has been written to the transaction database and the received multiple transaction data that has been uploaded to the transaction blockchain. The same transaction data in the audit control interface is recorded as a successful transaction record, and when the audit control interface receives a transaction block number of a new transaction block from the transaction block chain, the audit control interface Record these successfully audited transactions to generate a new audit block in the audit blockchain; And the different transaction data in the two are recorded by the audit control interface to reflect the differences in the transaction data in the transaction database and the transaction blockchain.
在一實施例中,其主要技術手段包含:
一稽核控制介面,接收已被寫入至一交易資料庫的一筆交易資料;
一稽核區塊鏈,與該稽核控制介面連接,該稽核區塊鏈係用於儲存多筆已稽核成功的交易記錄;其中該稽核控制介面還執行以下步驟:
步驟1A: 根據所接收到的該筆交易資料產生一筆交易記錄並新增該筆交易記錄至一資料庫交易記錄總表;
步驟2A: 若該筆交易記錄未存在於一資料庫交易記錄遺漏總表,到步驟4A;
步驟3A: 將該筆交易記錄從該資料庫交易記錄遺漏總表中移除;
步驟4A: 若該筆交易記錄未存在於一區塊鏈交易記錄總表,到步驟7A;
步驟5A: 將該筆交易記錄新增至一稽核成功交易記錄總表;
步驟6A: 將該筆交易記錄上鏈至該稽核區塊鏈,到步驟1A;
步驟7A: 將該筆交易記錄新增至一區塊鏈交易記錄遺漏總表,到步驟1A;
其中,該資料庫交易記錄總表記錄該交易資料庫的所有相關的交易記錄,該區塊鏈交易記錄總表記錄一交易區塊鏈的所有相關的交易記錄,該資料庫交易記錄遺漏總表記錄在該區塊鏈交易記錄總表中存在但是在該資料庫交易記錄總表中不存在的交易記錄,該區塊鏈交易記錄遺漏總表記錄在該資料庫交易記錄總表中存在但是在該區塊鏈交易記錄總表中不存在的交易記錄,該稽核成功交易記錄總表記錄同時存在於該資料庫交易記錄總表與該區塊鏈交易記錄總表的所有交易記錄;
該資料庫交易記錄總表中的每一筆交易記錄具有一交易序號,該區塊鏈交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該稽核成功交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該資料庫交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號,該區塊鏈交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號。
In one embodiment, the main technical means include:
An audit control interface receives a transaction data that has been written to a transaction database;
An audit blockchain is connected to the audit control interface. The audit blockchain is used to store multiple successfully audited transaction records; the audit control interface also performs the following steps:
在另一實施例中,其主要技術手段包含以下步驟:
一稽核控制介面,接收已被上鏈至一交易區塊鏈的一筆交易資料;
一稽核區塊鏈,與該稽核控制介面連接,該稽核區塊鏈係用於儲存多筆已稽核成功的交易記錄;其中該稽核控制介面還執行以下步驟:
步驟1B: 根據所接收到的該筆交易資料產生一筆交易記錄並新增該筆交易記錄至一區塊鏈交易記錄總表;
步驟2B: 若該筆交易記錄未存在於一區塊鏈交易記錄遺漏總表,到步驟4B;
步驟3B: 將該筆交易記錄從該區塊鏈交易記錄遺漏總表中移除;
步驟4B: 若該筆交易記錄未存在於一資料庫交易記錄總表,到步驟7B;
步驟5B: 將該筆交易記錄新增至一稽核成功交易記錄總表;
步驟6B: 將該筆交易記錄上鏈至該稽核區塊鏈,到步驟1B;
步驟7B: 將該筆交易記錄新增至一資料庫交易記錄遺漏總表,到步驟1B;
In another embodiment, the main technical means include the following steps:
An audit control interface receives a transaction data that has been uploaded to a transaction blockchain;
An audit blockchain is connected to the audit control interface. The audit blockchain is used to store multiple successfully audited transaction records; the audit control interface also performs the following steps:
較佳的,該區塊鏈稽核系統進一步包含以下步驟: 當該稽核控制介面由該交易區塊鏈收到一新增交易區塊的一交易區塊編號時,該稽核控制介面將該稽核成功交易記錄總表中具有與該新增交易區塊資料的該交易區塊編號相同的所有稽核成功交易記錄在該稽核區塊鏈中產生一新的稽核區塊。 Preferably, the blockchain audit system further includes the following steps: When the audit control interface receives a transaction block number of a new transaction block from the transaction block chain, the audit control interface will add the transaction block number with the data of the new transaction block in the audit successful transaction record summary table. All successfully audited transaction records with the same transaction block number generate a new audit block in the audit blockchain.
較佳的,該區塊鏈稽核系統進一步包含以下步驟: 當將該筆交易記錄上鏈至該稽核區塊鏈時,該稽核控制介面進一步將該筆交易記錄的一交易區塊編號回寫至該交易資料庫中相對應的一筆交易資料。 Preferably, the blockchain audit system further includes the following steps: When the transaction record is uploaded to the audit blockchain, the audit control interface further writes back a transaction block number of the transaction record to the corresponding transaction data in the transaction database.
請參閱圖1所示,圖1是本發明區塊鏈稽核系統1之架構示意圖。其中本發明區塊鏈稽核系統1包含一交易資料庫2可儲存多筆交易資料、一交易區塊鏈3可儲存多筆交易資料、一稽核區塊鏈4、一稽核控制介面5、一交易輸入介面11、一資料上鏈介面12及一資料庫記錄介面14。該交易輸入介面11可為一電腦裝置或在電腦裝置上執行的一應用程式。該交易資料庫2的實體可為一電腦設備其具有運行一資料庫軟體的能力以及具有一實體或虛擬之儲存設備其具有儲存資料及資訊的能力。該交易區塊鏈3可為實體或虛擬的多個具有連網能力的電腦設備(下稱多個交易鏈節點)以及與所述多個交易鏈節點所對應的多個儲存設備其皆具有儲存一分類帳本檔案的能力。該稽核區塊鏈4可為實體或虛擬的多個具有連網能力的電腦設備(下稱多個稽核鏈節點)以及與所述多個稽核鏈節點對應的多個儲存設備其皆具有儲存一分類帳本檔案的能力。該稽核控制介面5的實體可為一應用程式其由具有連網能力的一電腦設備來執行,以從該交易資料庫2取得一筆或多筆交易資料的資訊,並從該交易區塊鏈3取得一筆或多筆交易資料的資訊。該資料上鏈介面12的實體可為一應用程式其在具有連網能力的一外部電腦設備上執行,以將一筆交易資料10的資訊上鏈至該交易區塊鏈3,並可從該交易區塊鏈3取得一筆或多筆交易資料的資訊,類似的,資料庫記錄介面14的實體可為一應用程式在具有連網能力的該外部電腦設備上執行,以將該筆交易資料10的資訊寫入該交易資料庫2。Please refer to Figure 1, which is a schematic diagram of the architecture of the
承上,一筆交易資料10係經由該資料上鏈介面12上鏈至該交易區塊鏈3,同時該筆交易資料10係另經由該資料庫記錄介面14將該筆交易資料10的資訊寫入該交易資料庫2。在該筆交易資料10成功上鏈至該交易區塊鏈3時,該交易區塊鏈3會將該筆交易資料10的一交易記錄提供給該稽核控制介面5,作為稽核之用,該交易記錄係具有獨一無二的一交易序號以及該交易記錄所屬之交易區塊的一交易區塊編號;類似的,當該筆交易資料10成功的被寫入至該交易資料庫2時,該交易資料庫2亦會將該筆交易資料10的交易記錄提供給該稽核控制介面5,作為稽核之用,此時該交易記錄係具有該交易序號。Following the above, a
請參閱圖2A、2B,圖2A、2B係本發明區塊鏈稽核系統之第一實施例。如圖2A所示,該稽核控制介面5還具有一資料庫交易記錄佇列,該資料庫交易記錄佇列為一先進先出佇列(first-in-first-out queue),並以如下步驟接收並儲存由該交易資料庫2所提供的一交易資料:
步驟10A:該稽核控制介面5判斷是否有一筆交易資料10成功寫入該交易資料庫2,當沒有一筆交易資料10成功寫入該交易資料庫2時,回到步驟10A;當有一筆交易資料10成功寫入該交易資料庫2時,到步驟11A;
步驟11A:根據該筆交易資料10產生一筆交易記錄並新增該筆交易記錄至一資料庫交易記錄佇列,回到步驟10A。
Please refer to Figures 2A and 2B. Figures 2A and 2B illustrate the first embodiment of the blockchain audit system of the present invention. As shown in Figure 2A, the
如圖2B所示,該稽核控制介面5以如下步驟處理並稽核由該資料庫交易記錄佇列所提供的交易記錄:
步驟0A:該稽核控制介面5判斷該交易資料庫交易記錄佇列是否為空,若該交易資料庫交易記錄佇列為空,回步驟0A;
步驟1A:該稽核控制介面5由該交易資料庫交易記錄佇列取出其中最舊的一筆交易記錄,並將該筆交易記錄新增至一資料庫交易記錄總表;
步驟2A:判斷該筆交易記錄是否見於一資料庫交易記錄遺漏總表,當該筆交易記錄係未見於該資料庫交易記錄遺漏總表時,到步驟4A;
步驟3A:將該筆交易記錄從該資料庫交易記錄遺漏總表中移除;
步驟4A:判斷該筆交易記錄是否見於該區塊鏈交易記錄總表,當該筆交易記錄未見於該區塊鏈交易記錄總表時,到步驟7A;
步驟5A:將該筆交易記錄新增至一稽核成功交易記錄總表;
步驟6A:將該筆交易記錄上鏈至一稽核區塊鏈5,並將該筆交易記錄的一交易區塊編號回寫至該交易資料庫2中相對應的交易記錄,到步驟0A;
步驟7A:將該筆交易記錄新增至一區塊鏈交易記錄遺漏總表,到步驟0A。
As shown in Figure 2B, the
其中,該資料庫交易記錄總表記錄該交易資料庫2的所有相關的交易記錄,該區塊鏈交易記錄總表記錄該交易區塊鏈3的所有相關的交易記錄,該資料庫交易記錄遺漏總表記錄在該區塊鏈交易記錄總表中存在但是在該資料庫交易記錄總表中不存在的交易記錄,該區塊鏈交易記錄遺漏總表記錄在該資料庫交易記錄總表中存在但是在該區塊鏈交易記錄總表中不存在的交易記錄,該稽核成功交易記錄總表記錄同時存在於該資料庫交易記錄總表與該區塊鏈交易記錄總表的所有交易記錄。Among them, the database transaction record summary table records all relevant transaction records of the transaction database 2, the blockchain transaction record summary table records all relevant transaction records of the transaction block chain 3, and the database transaction record is missing The master table records transaction records that exist in the blockchain transaction record master table but do not exist in the database transaction record master table. The blockchain transaction record omission master table records exist in the database transaction record master table. However, for transaction records that do not exist in the blockchain transaction record summary table, the successfully audited transaction record summary table records all transaction records that exist in both the database transaction record summary table and the blockchain transaction record summary table.
其中,該資料庫交易記錄總表中的每一筆交易記錄具有一交易序號,該區塊鏈交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該稽核成功交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該資料庫交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號,該區塊鏈交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號。Among them, each transaction record in the database transaction record summary table has a transaction sequence number, and each transaction record in the blockchain transaction record summary table has a transaction sequence number and a transaction block number. The audited successful transaction record Each transaction record in the master list has a transaction sequence number and a transaction block number. Each transaction record in the database transaction record omission master table has a transaction sequence number. The block chain transaction record omission master table has a transaction sequence number. Each transaction record has a transaction sequence number.
請參閱圖3A、3B,圖3A、3B係本發明區塊鏈稽核系統之第二實施例。如圖3A所示,該稽核控制介面5還具有一區塊鏈交易記錄佇列,該區塊鏈交易記錄佇列為一先進先出佇列(first-in-first-out queue),並以如下步驟接收儲存由該交易區塊鏈3所提供的一交易記錄:
步驟10B:該稽核控制介面5判斷是否有一筆交易資料10成功上鏈至該交易區塊鏈3,當沒有一筆交易資料10成功上鏈至該交易區塊鏈3時,回到步驟10B;
步驟11B:根據該筆交易資料10產生一筆交易記錄並新增該筆交易記錄至一區塊鏈交易記錄佇列,回到步驟10B。
Please refer to Figures 3A and 3B. Figures 3A and 3B show the second embodiment of the blockchain audit system of the present invention. As shown in Figure 3A, the
如圖3B所示,該稽核控制介面5以如下步驟處理並稽核由該區塊鏈交易記錄佇列所提供的交易記錄:
步驟0B:該稽核控制介面5判斷該交易區塊鏈交易記錄佇列是否為空,若該交易區塊鏈交易記錄佇列為空,回步驟0B;
步驟1B:該稽核控制介面5由該交易區塊鏈交易記錄佇列取出其中最舊的一筆交易記錄,並將該筆交易記錄新增至一區塊鏈交易記錄總表;
步驟2B:判斷該筆交易記錄是否見於一區塊鏈交易記錄遺漏總表,當該筆交易記錄係未見於該區塊鏈交易記錄遺漏總表時,到步驟4B;
步驟3B:將該筆交易記錄從該區塊鏈交易記錄遺漏總表中移除;
步驟4B:判斷該筆交易記錄是否見於該資料庫交易記錄總表,當該筆交易記錄未見於該資料庫交易記錄總表時,到步驟7B;
步驟5B:將該筆交易記錄新增至一稽核成功交易記錄總表;
步驟6B:將該筆交易記錄上鏈至一稽核區塊鏈3,並將該筆交易記錄的一交易區塊編號回寫至該交易資料庫2中相對應的交易記錄,到步驟0B;
步驟7B:將該筆交易記錄新增至一資料庫交易記錄遺漏總表,到步驟0B。
As shown in Figure 3B, the
請參閱圖4所示,圖4係本發明區塊鏈稽核系統之第三實施例。當該稽核控制介面5由該交易區塊鏈3收到一新增交易區塊的一交易區塊編號時,該稽核控制介面5將該稽核成功交易記錄總表中所有與該新增交易區塊資料的該交易區塊編號相同的稽核成功交易記錄在該稽核區塊鏈4中產生一新的稽核區塊。參見以下步驟:
步驟1C:該稽核控制介面5判斷是否由該交易區塊鏈3收到一新增交易區塊的一交易區塊編號,當該稽核控制介面5沒有由該交易區塊鏈3收到一新增交易區塊的一交易區塊編號時,到步驟1C;
步驟2C:將該稽核成功交易記錄總表中具有與該新增交易區塊的該交易區塊編號相同的所有稽核成功交易記錄在該稽核區塊鏈4中產生一新的稽核區塊,到步驟1C。
Please refer to Figure 4, which shows the third embodiment of the blockchain audit system of the present invention. When the
由上述內容可知,該稽核區塊鏈4係用以稽核登錄「同時記錄與上鏈」之已成功者,並於該交易區塊鏈3產生新的交易區塊時亦隨之產生相對應的稽核區塊,同時以一資料庫交易記錄遺漏總表及一區塊鏈交易記錄遺漏總表來記錄尚未稽核成功的交易記錄,如此可達成本發明以稽核區塊鏈來稽核一筆交易資料是否「已成功地記錄於一資料庫2並且成功地上鏈於一交易鏈3」的目的。It can be seen from the above that the audit blockchain 4 is used to audit the successful login of "simultaneous recording and uploading", and when the transaction blockchain 3 generates a new transaction block, the corresponding transaction block will also be generated. The audit block simultaneously uses a database transaction record omission summary table and a blockchain transaction record omission summary table to record transaction records that have not yet been successfully audited. In this way, the invention can use the audit blockchain to audit whether a transaction data is " has been successfully recorded in a database 2 and successfully uploaded to a transaction chain 3".
1:區塊鏈稽核系統 2:交易資料庫 3:交易區塊鏈 4:稽核區塊鏈 5:稽核控制介面 10:一筆交易資料 11:交易輸入介面 12:資料上鏈介面 14:資料庫記錄介面 20:區塊鏈 30:一筆交易資料 31:區塊鏈 32:資料庫 33:應用介面 34:應用介面1: Blockchain audit system 2: Transaction database 3: Transaction Blockchain 4: Audit Blockchain 5: Audit control interface 10:A transaction information 11: Transaction input interface 12:Data uploading interface 14: Database recording interface 20:Blockchain 30:A transaction information 31:Blockchain 32:Database 33: Application interface 34: Application interface
圖1係本發明區塊鏈稽核系統之示意圖。 圖2A、2B係本發明區塊鏈稽核系統之第一實施例流程示意圖。 圖3A、2B係本發明區塊鏈稽核系統之第二實施例流程示意圖。 圖4係本發明區塊鏈稽核系統之第三實施例流程示意圖。 圖5係為習知區塊鏈之架構示意圖。 圖6係為習知區塊鏈之應用架構示意圖。 Figure 1 is a schematic diagram of the blockchain audit system of the present invention. Figures 2A and 2B are flow diagrams of the first embodiment of the blockchain audit system of the present invention. Figures 3A and 2B are flow diagrams of the second embodiment of the blockchain audit system of the present invention. Figure 4 is a schematic flow chart of the third embodiment of the blockchain audit system of the present invention. Figure 5 is a schematic diagram of the architecture of Xizhi Blockchain. Figure 6 is a schematic diagram of the application architecture of Xizhi Blockchain.
1:區塊鏈稽核系統 1: Blockchain audit system
2:交易資料庫 2: Transaction database
3:交易區塊鏈 3: Transaction Blockchain
4:稽核區塊鏈 4: Audit Blockchain
5:稽核控制介面 5: Audit control interface
10:一筆交易資料 10:A transaction information
11:交易輸入介面 11: Transaction input interface
12:資料上鏈介面 12:Data uploading interface
14:資料庫記錄介面 14: Database recording interface
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111139307A TWI812510B (en) | 2022-10-17 | 2022-10-17 | Blockchain audit system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111139307A TWI812510B (en) | 2022-10-17 | 2022-10-17 | Blockchain audit system |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI812510B true TWI812510B (en) | 2023-08-11 |
TW202418297A TW202418297A (en) | 2024-05-01 |
Family
ID=88586012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111139307A TWI812510B (en) | 2022-10-17 | 2022-10-17 | Blockchain audit system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI812510B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114491662A (en) * | 2021-12-28 | 2022-05-13 | 浪潮卓数大数据产业发展有限公司 | Block chain-based data asset auditing method, system and equipment |
CN114564757A (en) * | 2022-03-04 | 2022-05-31 | 中信银行股份有限公司 | Data auditing method, device and equipment of block chain and readable storage medium |
CN114579581A (en) * | 2022-05-05 | 2022-06-03 | 武汉北大高科软件股份有限公司 | Data supervision method and device based on block chain |
CN115048672A (en) * | 2022-06-16 | 2022-09-13 | 中国工商银行股份有限公司 | Data auditing method and device based on block chain, processor and electronic equipment |
CN115114303A (en) * | 2021-03-22 | 2022-09-27 | 中国移动通信集团江苏有限公司 | Service data auditing method, platform and system |
-
2022
- 2022-10-17 TW TW111139307A patent/TWI812510B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115114303A (en) * | 2021-03-22 | 2022-09-27 | 中国移动通信集团江苏有限公司 | Service data auditing method, platform and system |
CN114491662A (en) * | 2021-12-28 | 2022-05-13 | 浪潮卓数大数据产业发展有限公司 | Block chain-based data asset auditing method, system and equipment |
CN114564757A (en) * | 2022-03-04 | 2022-05-31 | 中信银行股份有限公司 | Data auditing method, device and equipment of block chain and readable storage medium |
CN114579581A (en) * | 2022-05-05 | 2022-06-03 | 武汉北大高科软件股份有限公司 | Data supervision method and device based on block chain |
CN115048672A (en) * | 2022-06-16 | 2022-09-13 | 中国工商银行股份有限公司 | Data auditing method and device based on block chain, processor and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
TW202418297A (en) | 2024-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8151139B1 (en) | Preventing data loss from restore overwrites | |
US8060720B2 (en) | System and method for removing a storage server in a distributed column chunk data store | |
CN101460930B (en) | Maintain link-level consistency between the database and the file system | |
CN109086388B (en) | Block chain data storage method, device, equipment and medium | |
US8001091B2 (en) | Apparatus, system, and method for hierarchical rollback of business operations | |
US8214377B2 (en) | Method, system, and program for managing groups of objects when there are different group types | |
US9760453B2 (en) | Two-tier failover service for data disaster recovery | |
JPH1097451A (en) | Method and device for optimizing log file of client/server computer system | |
US11494271B2 (en) | Dynamically updating database archive log dependency and backup copy recoverability | |
CN110727406A (en) | Data storage scheduling method and device | |
US20070061543A1 (en) | Method for a distributed column chunk data store | |
CN118860751A (en) | Data backup and recovery method and device based on anomaly detection | |
CN115454717B (en) | Database real-time backup method and device, computer equipment and storage medium | |
TWI812510B (en) | Blockchain audit system | |
US11436193B2 (en) | System and method for managing data using an enumerator | |
US7949632B2 (en) | Database-rearranging program, database-rearranging method, and database-rearranging apparatus | |
CN116541137A (en) | Transaction processing method, apparatus, computer device, storage medium, and program product | |
CN115543919A (en) | Archive processing method and device, computer equipment and storage medium | |
CN116186033A (en) | Data archiving method, system, equipment and storage medium | |
US20250005006A1 (en) | Blockchain audit system | |
CN119474107B (en) | Data system, data management method and device, electronic equipment and storage medium | |
CN112052290A (en) | Method and computer readable medium for distributed object warehousing, synchronous data warehousing | |
CN113721863B (en) | Method and device for managing data | |
CN116257531B (en) | Database space recovery method | |
HK40059272A (en) | Data management method and device |