[go: up one dir, main page]

TWI812510B - Blockchain audit system - Google Patents

Blockchain audit system Download PDF

Info

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
Application number
TW111139307A
Other languages
Chinese (zh)
Other versions
TW202418297A (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 TW111139307A priority Critical patent/TWI812510B/en
Application granted granted Critical
Publication of TWI812510B publication Critical patent/TWI812510B/en
Publication of TW202418297A publication Critical patent/TW202418297A/en

Links

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

區塊鏈稽核系統Blockchain audit system

一種用於稽核的系統,尤指一種區塊鏈稽核系統,其用於稽核區塊鏈的運作。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 blockchain 20 to explain the basic structure and operation of a general blockchain. The blockchain 20 has multiple nodes (Node) such as node A, node B and node C. Each node stores a ledger (Ledger). For example, node A stores ledger a, node B stores ledger a, and node B stores ledger a. Ledger b is saved, and node C saves ledger c; the physical device that constitutes the node can be a server, computer equipment or mobile phone that can be connected to the Internet, and the entity that constitutes the ledger can be an electronic file. Electronic files are stored in a memory device such as a semiconductor memory device such as dynamic memory (DRAM), static memory (SRAM), flash memory (Flash memory), solid state disk (SSD), or magnetic memory such as hard drive. CD player, or CD, etc.

但是區塊鏈為了保證其資料的可靠性,當一資料寫入區塊鏈區塊以及產生一新的區塊,都需要一些時間,且區塊鏈中所有節點都須同步該資料以取得共識,這需要更多的時間;以及受限於區塊鏈技術規格於交易記錄的查詢上效率不高,因此區塊鏈應用系統,通常會結合區塊鏈技術與資料庫技術共同使用。因此區塊鏈與所述資料庫連動使用之間存在著速度與寫入方式的一些差異,這些差異再加上區塊鏈與所述資料庫二者本身所可能具有的潛在問題,使得將資料寫入區塊鏈或將資料寫入所述資料庫都可能有不成功的情形發生。例如在圖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 transaction data 30 is recorded to a blockchain 31 through an application interface 34 (hereinafter referred to as "data uploading"). "Chain"), if the data uploading fails, the transaction process needs to be re-executed. If the data is successfully uploaded, the transaction data 30 is then recorded to a database 32 through another application interface 33 (hereinafter referred to as "data record") , if the data recording fails at this time, only the blockchain 31 has records, which will cause the records of the database 32 and the blockchain 31 to be inconsistent. Consider the scenario of recording data first and then uploading the data to the chain (hereinafter referred to as Scenario 2). First, the transaction data 30 is recorded to the database 32 through the application interface 33. If the database recording fails, the transaction process needs to be re-executed. If The data recording is successful, and then the transaction data 30 is recorded to the blockchain 31 through the application interface 34. At this time, if the data fails to be uploaded to the chain, only the database 32 has records, which will also cause the database 32 to be The records of the two blockchains 31 are inconsistent. Consider the scenario of simultaneous data recording and data uploading (hereinafter referred to as scenario three). The transaction data 30 is recorded to the database 32 through the application interface 33. If the database recording fails, this has nothing to do with the blockchain 31. At the same time, the transaction data 30 is recorded to the blockchain 31 through the application interface 34. If the upload fails, this has nothing to do with the database 32, which will also cause records in both the database 32 and the blockchain 31. Inconsistent.

基於前述內容,資料庫與區塊鏈連動使用,在以上三種情境,均有可能產生資料不一致。實作上,發現情境一、先上鏈再記錄,交易資料更正作業會產生三筆區塊鏈記錄,會增加稽核的負荷。情境二、先記錄再上鏈,補上鏈會影響交易時間,取消之交易,需於帳本區塊更新後,方能有一致的記錄。情境三、同時上鏈與記錄,交易確認時間拖更長、交易失敗率增加,重新交易產生多筆區塊鏈更新記錄、資料庫記錄無該交易區塊編號。基於上述三種情境分析可知:在導入區塊鏈後,仍可能有資料庫與區塊鏈分散式帳本二者之記錄不一致的問題,有鑑於此,且面對一直以來區塊鏈應用的持續蓬勃發展,如何有效避免上述資料庫與區塊鏈分散式帳本二者之記錄不一致的情境,實為目前急需解決的問題。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 scenario 1, first upload to the chain and then record, the transaction data correction operation will generate three blockchain records, which will increase the audit load. Scenario 2: Record first and then upload it to the chain. Uploading the chain will affect the transaction time. Canceled transactions must be updated in the ledger block before they can be recorded consistently. Scenario 3: Simultaneous uploading and recording, the transaction confirmation time is longer, the transaction failure rate increases, re-transactions generate multiple blockchain update records, and the database record does not contain the transaction block number. Based on the analysis of the above three scenarios, it can be seen that after the introduction of blockchain, there may still be problems with inconsistent records between the database and the blockchain distributed ledger. In view of this, and in the face of the continued development of blockchain applications, With the rapid development, how to effectively avoid the inconsistency in the records between the above-mentioned database and the blockchain distributed ledger is an urgent problem that needs to be solved.

為了解決上述問題,本發明提供一種區塊鏈稽核系統,其係用於交易資料庫與交易區塊鏈,用以該稽核並確認一交易資料庫與一交易區塊鏈之間的資料一致性,該交易資料庫,其係用於儲存多筆交易資料;該交易區塊鏈,其係用於儲存多筆交易資料,並讓交易資料具備不可修改性;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: Step 1A: Generate a transaction record based on the received transaction data and add the transaction record to a database transaction record summary table; Step 2A: If the transaction record does not exist in a database transaction record omission summary table, go to step 4A; Step 3A: Remove the transaction record from the total list of missing transaction records in the database; Step 4A: If the transaction record does not exist in a blockchain transaction record summary table, go to step 7A; Step 5A: Add the transaction record to a summary list of successfully audited transaction records; Step 6A: Upload the transaction record to the audit blockchain and go to step 1A; Step 7A: Add the transaction record to a blockchain transaction record omission list, and go to step 1A; Among them, the database transaction record summary table records all relevant transaction records of the transaction database, the blockchain transaction record summary table records all relevant transaction records of a transaction blockchain, and the database transaction record omission summary table Record transaction records that exist in the blockchain transaction record summary table but do not exist in the database transaction record summary table. The blockchain transaction record omission summary table records exist in the database transaction record summary table but do not exist in the database transaction record summary table. 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; Each transaction record in the database transaction record summary has a transaction sequence number, each transaction record in the blockchain transaction record summary has a transaction sequence number and a transaction block number, and the audited successful transaction record summary Each transaction record in the database has a transaction sequence number and a transaction block number. Each transaction record in the database's transaction record omission summary table has a transaction sequence number. Each transaction record in the blockchain transaction record omission summary table has a transaction sequence number. Each transaction record has a transaction sequence number.

在另一實施例中,其主要技術手段包含以下步驟: 一稽核控制介面,接收已被上鏈至一交易區塊鏈的一筆交易資料; 一稽核區塊鏈,與該稽核控制介面連接,該稽核區塊鏈係用於儲存多筆已稽核成功的交易記錄;其中該稽核控制介面還執行以下步驟: 步驟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: Step 1B: Generate a transaction record based on the received transaction data and add the transaction record to a blockchain transaction record summary table; Step 2B: If the transaction record does not exist in a blockchain transaction record missing list, go to step 4B; Step 3B: Remove the transaction record from the total list of missing transaction records in the blockchain; Step 4B: If the transaction record does not exist in a database transaction record summary table, go to step 7B; Step 5B: Add the transaction record to a summary list of successfully audited transaction records; Step 6B: Upload the transaction record to the audit blockchain and go to step 1B; Step 7B: Add the transaction record to the total list of missing transaction records in a database and go to step 1B;

較佳的,該區塊鏈稽核系統進一步包含以下步驟: 當該稽核控制介面由該交易區塊鏈收到一新增交易區塊的一交易區塊編號時,該稽核控制介面將該稽核成功交易記錄總表中具有與該新增交易區塊資料的該交易區塊編號相同的所有稽核成功交易記錄在該稽核區塊鏈中產生一新的稽核區塊。 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 blockchain audit system 1 of the present invention. The blockchain audit system 1 of the present invention includes a transaction database 2 that can store multiple transaction data, a transaction block chain 3 that can store multiple transaction data, an audit block chain 4, an audit control interface 5, and a transaction Input interface 11, a data uploading interface 12 and a database recording interface 14. The transaction input interface 11 may be a computer device or an application program executed on the computer device. The entity of the transaction database 2 may be a computer device with the ability to run a database software and a physical or virtual storage device with the ability to store data and information. The transaction blockchain 3 can be a plurality of physical or virtual computer devices with networking capabilities (hereinafter referred to as multiple transaction chain nodes) and multiple storage devices corresponding to the multiple transaction chain nodes, all of which have storage capabilities. A ledger file capability. The audit blockchain 4 can be a plurality of physical or virtual computer devices with networking capabilities (hereinafter referred to as multiple audit chain nodes) and multiple storage devices corresponding to the multiple audit chain nodes, all of which have the ability to store a Ledger archive capabilities. The entity of the audit control interface 5 may be an application program that is executed by a computer device with networking capabilities to obtain information on one or more transaction data from the transaction database 2 and obtain information from the transaction blockchain 3 Obtain information about one or more transaction data. The entity of the data uploading interface 12 can be an application program that is executed on an external computer device with networking capabilities to upload information of a transaction data 10 to the transaction blockchain 3, and can retrieve information from the transaction. The blockchain 3 obtains information on one or more transaction data. Similarly, the entity of the database recording interface 14 can be an application program executed on the external computer device with networking capabilities to store the transaction data 10 Information is written into the transaction database 2.

承上,一筆交易資料10係經由該資料上鏈介面12上鏈至該交易區塊鏈3,同時該筆交易資料10係另經由該資料庫記錄介面14將該筆交易資料10的資訊寫入該交易資料庫2。在該筆交易資料10成功上鏈至該交易區塊鏈3時,該交易區塊鏈3會將該筆交易資料10的一交易記錄提供給該稽核控制介面5,作為稽核之用,該交易記錄係具有獨一無二的一交易序號以及該交易記錄所屬之交易區塊的一交易區塊編號;類似的,當該筆交易資料10成功的被寫入至該交易資料庫2時,該交易資料庫2亦會將該筆交易資料10的交易記錄提供給該稽核控制介面5,作為稽核之用,此時該交易記錄係具有該交易序號。Following the above, a transaction data 10 is uploaded to the transaction blockchain 3 through the data uplink interface 12, and at the same time, the transaction data 10 is also written into the transaction data 10 through the database recording interface 14. The transaction database2. When the transaction data 10 is successfully uploaded to the transaction blockchain 3, the transaction blockchain 3 will provide a transaction record of the transaction data 10 to the audit control interface 5 for audit purposes. The record has a unique transaction sequence number and a transaction block number of the transaction block to which the transaction record belongs; similarly, when the transaction data 10 is successfully written to the transaction database 2, the transaction database 2 2 will also provide the transaction record of the transaction data 10 to the audit control interface 5 for audit purposes. At this time, the transaction record has the transaction serial number.

請參閱圖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 audit control interface 5 also has a database transaction record queue. The database transaction record queue is a first-in-first-out queue, and the following steps are performed: Receive and store a transaction data provided by the transaction database 2: Step 10A: The audit control interface 5 determines whether a transaction data 10 is successfully written into the transaction database 2. When no transaction data 10 is successfully written into the transaction database 2, return to step 10A; when a transaction data 10 is successfully written into the transaction database 2, 10. When the transaction database 2 is successfully written, go to step 11A; Step 11A: Generate a transaction record based on the transaction data 10 and add the transaction record to a database transaction record queue, and return to step 10A.

如圖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 audit control interface 5 processes and audits the transaction records provided by the database transaction record queue in the following steps: Step 0A: The audit control interface 5 determines whether the transaction record queue of the transaction database is empty. If the transaction record queue of the transaction database is empty, return to step 0A; Step 1A: The audit control interface 5 retrieves the oldest transaction record from the transaction record queue of the transaction database, and adds the transaction record to a database transaction record summary table; Step 2A: Determine whether the transaction record is found in the missing transaction record table of a database. When the transaction record is not found in the missing transaction record table of the database, go to step 4A; Step 3A: Remove the transaction record from the total list of missing transaction records in the database; Step 4A: Determine whether the transaction record is found in the blockchain transaction record summary table. When the transaction record is not found in the blockchain transaction record summary table, go to step 7A; Step 5A: Add the transaction record to a summary list of successfully audited transaction records; Step 6A: Upload the transaction record to an audit blockchain 5, and write back a transaction block number of the transaction record to the corresponding transaction record in the transaction database 2, to step 0A; Step 7A: Add the transaction record to a block chain transaction record omission list, and go to step 0A.

其中,該資料庫交易記錄總表記錄該交易資料庫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 audit control interface 5 also has a blockchain transaction record queue. The blockchain transaction record queue is a first-in-first-out queue, and is The following steps receive and store a transaction record provided by the transaction blockchain 3: Step 10B: The audit control interface 5 determines whether a transaction data 10 is successfully uploaded to the transaction blockchain 3. When no transaction data 10 is successfully uploaded to the transaction blockchain 3, return to step 10B; Step 11B: Generate a transaction record based on the transaction data 10 and add the transaction record to a blockchain transaction record queue, and return to step 10B.

如圖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 audit control interface 5 processes and audits the transaction records provided by the blockchain transaction record queue in the following steps: Step 0B: The audit control interface 5 determines whether the transaction blockchain transaction record queue is empty. If the transaction blockchain transaction record queue is empty, return to step 0B; Step 1B: The audit control interface 5 retrieves the oldest transaction record from the transaction blockchain transaction record queue, and adds the transaction record to a blockchain transaction record summary table; Step 2B: Determine whether the transaction record is found in a blockchain transaction record omission summary list. When the transaction record is not found in the blockchain transaction record omission summary table, go to step 4B; Step 3B: Remove the transaction record from the total list of missing transaction records in the blockchain; Step 4B: Determine whether the transaction record is found in the database transaction record summary table. When the transaction record is not found in the database transaction record summary table, go to step 7B; Step 5B: Add the transaction record to a summary list of successfully audited transaction records; Step 6B: Upload the transaction record to an audit blockchain 3, and write back a transaction block number of the transaction record to the corresponding transaction record in the transaction database 2, to step 0B; Step 7B: Add the transaction record to a database transaction record missing list, and go to step 0B.

請參閱圖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 audit control interface 5 receives a transaction block number of a new transaction block from the transaction block chain 3, the audit control interface 5 will record all transactions in the audited successful transaction record table that are related to the new transaction area. A new audit block is generated in the audit block chain 4 for successfully audited transaction records with the same transaction block number of the block data. See the steps below: Step 1C: The audit control interface 5 determines whether a transaction block number of a new transaction block is received from the transaction block chain 3. When the audit control interface 5 does not receive a new transaction block number from the transaction block chain 3, When adding a transaction block number of the transaction block, go to step 1C; Step 2C: Generate a new audit block in the audit block chain 4 for all audited successful transaction records in the total list of audited successful transaction records that have the same transaction block number as the new transaction block. Step 1C.

由上述內容可知,該稽核區塊鏈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)

一種區塊鏈稽核系統,包含: 一稽核控制介面,接收已被寫入至一交易資料庫的多筆交易資料,並接收已被上鏈至一交易區塊鏈的多筆交易資料; 一稽核區塊鏈,與該稽核控制介面連接,該稽核區塊鏈係用於儲存多筆已稽核成功的交易記錄; 該稽核控制介面比對所收到的已被寫入至該交易資料庫的多筆交易資料及所收到的已被上鏈至該交易區塊鏈的多筆交易資料二者,該二者中相同的交易資料被該稽核控制介面記錄為稽核成功的交易記錄,並於該稽核控制介面由該交易區塊鏈收到一新增交易區塊的一交易區塊編號時,該稽核控制介面將該些稽核成功的交易記錄在該稽核區塊鏈中產生一新的稽核區塊。 A blockchain audit system including: 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 These successfully audited transactions are recorded in the audit blockchain to generate a new audit block. 如請求項1述之區塊鏈稽核系統,進一步包含以下步驟:該二者中不相同的交易資料被該稽核控制介面所記錄,以反映該交易資料庫與該交易區塊鏈二者的交易資料的相異之處。The blockchain audit system as described in request item 1 further includes the following steps: the different transaction data between the two is recorded by the audit control interface to reflect the transactions between the transaction database and the transaction blockchain. Differences in data. 一種區塊鏈稽核系統,包含: 一稽核控制介面,接收已被寫入至一交易資料庫的一筆交易資料; 一稽核區塊鏈,與該稽核控制介面連接,該稽核區塊鏈係用於儲存多筆已稽核成功的交易記錄;其中該稽核控制介面還執行以下步驟: 步驟1A: 根據所接收到的該筆交易資料產生一筆交易記錄並新增該筆交易記錄至一資料庫交易記錄總表; 步驟2A: 若該筆交易記錄未存在於一資料庫交易記錄遺漏總表,到步驟4A; 步驟3A: 將該筆交易記錄從該資料庫交易記錄遺漏總表中移除; 步驟4A: 若該筆交易記錄未存在於一區塊鏈交易記錄總表,到步驟7A; 步驟5A: 將該筆交易記錄新增至一稽核成功交易記錄總表; 步驟6A: 將該筆交易記錄上鏈至該稽核區塊鏈,到步驟1A; 步驟7A: 將該筆交易記錄新增至一區塊鏈交易記錄遺漏總表,到步驟1A; 其中,該資料庫交易記錄總表記錄該交易資料庫的所有相關的交易記錄,該區塊鏈交易記錄總表記錄一交易區塊鏈的所有相關的交易記錄,該資料庫交易記錄遺漏總表記錄在該區塊鏈交易記錄總表中存在但是在該資料庫交易記錄總表中不存在的交易記錄,該區塊鏈交易記錄遺漏總表記錄在該資料庫交易記錄總表中存在但是在該區塊鏈交易記錄總表中不存在的交易記錄,該稽核成功交易記錄總表記錄同時存在於該資料庫交易記錄總表與該區塊鏈交易記錄總表的所有交易記錄; 其中,該資料庫交易記錄總表中的每一筆交易記錄具有一交易序號,該區塊鏈交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該稽核成功交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該資料庫交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號,該區塊鏈交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號。 A blockchain audit system including: An audit control interface receives a transaction data that has been written into 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: Step 1A: Generate a transaction record based on the received transaction data and add the transaction record to a database transaction record summary table; Step 2A: If the transaction record does not exist in a database transaction record omission summary table, go to step 4A; Step 3A: Remove the transaction record from the total list of missing transaction records in the database; Step 4A: If the transaction record does not exist in a blockchain transaction record summary table, go to step 7A; Step 5A: Add the transaction record to a summary list of successfully audited transaction records; Step 6A: Upload the transaction record to the audit blockchain and go to step 1A; Step 7A: Add the transaction record to a blockchain transaction record omission list, and go to step 1A; Among them, the database transaction record summary table records all relevant transaction records of the transaction database, the blockchain transaction record summary table records all relevant transaction records of a transaction blockchain, and the database transaction record omission summary table Record transaction records that exist in the blockchain transaction record summary table but do not exist in the database transaction record summary table. The blockchain transaction record omission summary table records exist in the database transaction record summary table but do not exist in the database transaction record summary table. 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. 一種區塊鏈稽核系統,包含: 一稽核控制介面,接收已被上鏈至一交易區塊鏈的一筆交易資料; 一稽核區塊鏈,與該稽核控制介面連接,該稽核區塊鏈係用於儲存多筆已稽核成功的交易記錄;其中該稽核控制介面還執行以下步驟: 步驟1B: 根據所接收到的該筆交易資料產生一筆交易記錄並新增該筆交易記錄至一區塊鏈交易記錄總表; 步驟2B: 若該筆交易記錄未存在於一區塊鏈交易記錄遺漏總表,到步驟4B; 步驟3B: 將該筆交易記錄從該區塊鏈交易記錄遺漏總表中移除; 步驟4B: 若該筆交易記錄未存在於一資料庫交易記錄總表,到步驟7B; 步驟5B: 將該筆交易記錄新增至一稽核成功交易記錄總表; 步驟6B: 將該筆交易記錄上鏈至該稽核區塊鏈,到步驟1B; 步驟7B: 將該筆交易記錄新增至一資料庫交易記錄遺漏總表,到步驟1B; 其中,該資料庫交易記錄總表記錄該交易資料庫的所有相關的交易記錄,該區塊鏈交易記錄總表記錄一交易區塊鏈的所有相關的交易記錄,該資料庫交易記錄遺漏總表記錄在該區塊鏈交易記錄總表中存在但是在該資料庫交易記錄總表中不存在的交易記錄,該區塊鏈交易記錄遺漏總表記錄在該資料庫交易記錄總表中存在但是在該區塊鏈交易記錄總表中不存在的交易記錄,該稽核成功交易記錄總表記錄同時存在於該資料庫交易記錄總表與該區塊鏈交易記錄總表的所有交易記錄; 其中,該資料庫交易記錄總表中的每一筆交易記錄具有一交易序號,該區塊鏈交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該稽核成功交易記錄總表中的每一筆交易記錄具有一交易序號以及一交易區塊編號,該資料庫交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號,該區塊鏈交易記錄遺漏總表中的每一筆交易記錄都具有一交易序號。 A blockchain audit system including: 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: Step 1B: Generate a transaction record based on the received transaction data and add the transaction record to a blockchain transaction record summary table; Step 2B: If the transaction record does not exist in a blockchain transaction record missing list, go to step 4B; Step 3B: Remove the transaction record from the total list of missing transaction records in the blockchain; Step 4B: If the transaction record does not exist in a database transaction record summary table, go to step 7B; Step 5B: Add the transaction record to a summary list of successfully audited transaction records; Step 6B: Upload the transaction record to the audit blockchain and go to step 1B; Step 7B: Add the transaction record to the total list of missing transaction records in a database and go to step 1B; Among them, the database transaction record summary table records all relevant transaction records of the transaction database, the blockchain transaction record summary table records all relevant transaction records of a transaction blockchain, and the database transaction record omission summary table Record transaction records that exist in the blockchain transaction record summary table but do not exist in the database transaction record summary table. The blockchain transaction record omission summary table records exist in the database transaction record summary table but do not exist in the database transaction record summary table. 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. 如請求項3或4所述之區塊鏈稽核系統,進一步包含以下步驟: 當該稽核控制介面由該交易區塊鏈收到一新增交易區塊的一交易區塊編號時,該稽核控制介面將該稽核成功交易記錄總表中具有與該新增交易區塊資料的該交易區塊編號相同的所有稽核成功交易記錄在該稽核區塊鏈中產生一新的稽核區塊。 The blockchain audit system as described in request item 3 or 4 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. 如請求項3或4所述之區塊鏈稽核系統,進一步包含以下步驟: 當將該筆交易記錄上鏈至該稽核區塊鏈時,該稽核控制介面進一步將該筆交易記錄的一交易區塊編號回寫至該交易資料庫中相對應的一筆交易資料。 The blockchain audit system as described in request item 3 or 4 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或4所述之區塊鏈稽核系統,其中該稽核控制介面為一應用程式且於具有連網能力的一電腦設備上執行。The blockchain audit system as described in claim 1 or 4, wherein the audit control interface is an application program and is executed on a computer device with networking capabilities. 如請求項1或4所述之區塊鏈稽核系統,其中該稽核區塊鏈包含至少一節點,且該至少一節點中的每一個皆具有一致的至少一個區塊鏈區塊。The blockchain audit system as claimed in claim 1 or 4, wherein the audit blockchain includes at least one node, and each of the at least one node has at least one consistent blockchain block.
TW111139307A 2022-10-17 2022-10-17 Blockchain audit system TWI812510B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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