TWI824625B - Device and method for securing and verifying business data via a blockchain system - Google Patents
Device and method for securing and verifying business data via a blockchain system Download PDFInfo
- Publication number
- TWI824625B TWI824625B TW111126825A TW111126825A TWI824625B TW I824625 B TWI824625 B TW I824625B TW 111126825 A TW111126825 A TW 111126825A TW 111126825 A TW111126825 A TW 111126825A TW I824625 B TWI824625 B TW I824625B
- Authority
- TW
- Taiwan
- Prior art keywords
- transaction
- hash
- blockchain system
- smart contract
- business
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 65
- 230000000694 effects Effects 0.000 claims description 17
- 238000012795 verification Methods 0.000 claims description 3
- 230000009471 action Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000006399 behavior Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 230000000717 retained effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Abstract
Description
本揭露係關於一種藉由一區塊鏈系統保護及驗證商業資料之裝置及方法。更具體而言,本揭露係關於一種藉由一區塊鏈系統保護及驗證商業資料之裝置及方法,該裝置及方法確保保留商業證據並保護商業證據之機密性。 The present disclosure relates to a device and method for protecting and verifying business information through a blockchain system. More specifically, the present disclosure relates to a device and method for protecting and verifying business information through a blockchain system, which device and method ensures that business evidence is preserved and the confidentiality of business evidence is protected.
區塊鏈因其分散且不可變之結構通常用於保持雙方之間的商業記錄,此使得幾乎不可能篡改其中保持之記錄。為了利用一區塊鏈保留商業證據,需要向區塊鏈系統之所有節點提供相關資訊(例如,支付金額、目的地位址及/或要保留之其他資訊)從而將其作為一記錄(即,一區塊)保存在區塊鏈上,亦即,所述資訊必須對所有節點而言皆為公開的。 Blockchain is commonly used to maintain business records between two parties due to its decentralized and immutable structure, which makes it almost impossible to tamper with the records held within it. In order to utilize a blockchain to retain business evidence, relevant information (e.g., payment amount, destination address, and/or other information to be retained) needs to be provided to all nodes of the blockchain system so as to treat it as a record (i.e., a blocks) are stored on the blockchain, that is, the information must be public to all nodes.
然而,在某些情況下,提供給節點之商業相關資訊會被認為是機密的,亦即,其內容理應僅能由某些特定節點所取用,而非對區塊鏈上之所有節點而言皆為可取用的。因此,本發明所屬技術領域中亟需一種能夠在區塊鏈上保留商業證據,同時仍確保其機密性之解決方案。 However, in some cases, business-related information provided to nodes will be considered confidential, that is, its content should only be accessible to certain nodes, rather than to all nodes on the blockchain. All words are available. Therefore, there is an urgent need in the technical field to which the present invention belongs, for a solution that can retain business evidence on the blockchain while still ensuring its confidentiality.
為了至少解決上述問題,本揭露提供一種藉由一區塊鏈系統保護商業資料之裝置。該裝置可包含一儲存器、與該儲存器電性連接之一收發器、以及與該儲存器及該收發器電性連接之一處理器。該儲存器可用以儲存該商業資料及交易雜湊。該處理器可用以根據該交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址;根據該商業資料而產生一專用資料雜湊;以及基於該專用資料雜湊及該智慧合約之該位址而產生一交易。該收發器可用以向該區塊鏈系統提交該交易,以將該專用資料雜湊儲存至該智慧合約中,使得真實世界中之一商業交易活動之機密資訊受到該區塊鏈系統之保護。 In order to at least solve the above problems, the present disclosure provides a device for protecting business data through a blockchain system. The device may include a storage, a transceiver electrically connected to the storage, and a processor electrically connected to the storage and the transceiver. The storage can be used to store the business data and transaction hashes. The processor can be used to obtain an address of a smart contract in the blockchain system based on the transaction hash; generate a dedicated data hash based on the business data; and based on the dedicated data hash and the bit of the smart contract address to generate a transaction. The transceiver can be used to submit the transaction to the blockchain system to hash and store the dedicated data in the smart contract, so that confidential information of a commercial transaction in the real world is protected by the blockchain system.
為了至少解決上述問題,本揭露還提供一種藉由一區塊鏈系統驗證商業資料之裝置。該裝置可包含一儲存器、與該儲存器電性連接之一收發器、以及與該儲存器及該收發器電性連接之一處理器。該儲存器可用以儲存該商業資料及交易雜湊。該處理器可用以根據該商業資料而產生一專用資料雜湊,並根據該交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址。該收發器可用以經由該智慧合約之該位址而存取該智慧合約。此外,該處理器可還用以判斷該專用資料雜湊是否被包含在該智慧合約中,且當判斷出該專用資料雜湊被儲存於該智慧合約中時批准該商業資料,使得真實世界中之一商業交易活動得到該區塊鏈系統之驗證。 In order to at least solve the above problems, the present disclosure also provides a device for verifying business data through a blockchain system. The device may include a storage, a transceiver electrically connected to the storage, and a processor electrically connected to the storage and the transceiver. The storage can be used to store the business data and transaction hashes. The processor can be used to generate a dedicated data hash based on the business data, and obtain an address of a smart contract in the blockchain system based on the transaction hash. The transceiver can be used to access the smart contract via the address of the smart contract. In addition, the processor may also be used to determine whether the dedicated data hash is included in the smart contract, and approve the business data when it is determined that the dedicated data hash is stored in the smart contract, so that one of the real-world Business transaction activities are verified by the blockchain system.
為了至少解決上述問題,本揭露還提供一種藉由一區塊鏈系統保護商業資料之方法。該方法可包含由該區塊鏈系統中之一電子裝置執行之下列步驟:根據一交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址;根據該商業資料而產生一專用資料雜湊; 基於該專用資料雜湊及該智慧合約之該位址而產生一交易;以及向該區塊鏈系統提交該交易以將該專用資料雜湊儲存至該智慧合約中,使得真實世界中之一商業交易活動之機密資訊受到該區塊鏈系統之保護。 In order to at least solve the above problems, the present disclosure also provides a method of protecting business data through a blockchain system. The method may include the following steps executed by an electronic device in the blockchain system: obtaining an address of a smart contract in the blockchain system based on a transaction hash; generating a dedicated data based on the business information Hash; Generate a transaction based on the dedicated data hash and the address of the smart contract; and submit the transaction to the blockchain system to store the dedicated data hash in the smart contract, enabling a commercial transaction in the real world Confidential information is protected by the blockchain system.
為至少解決上述問題,本揭露還提供一種藉由一區塊鏈系統驗證商業資料之方法。該方法可包含由該區塊鏈系統中之一電子裝置執行之下列步驟:根據該商業資料而產生一專用資料雜湊;根據一交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址;經由該智慧合約之該位址存取該智慧合約;判斷該專用資料雜湊是否儲存於該智慧合約中;以及當判斷出該專用資料雜湊儲存於該智慧合約中時,批准該商業資料,使得真實世界中之一商業交易活動得到該區塊鏈系統之驗證。 In order to at least solve the above problems, the present disclosure also provides a method of verifying business information through a blockchain system. The method may include the following steps performed by an electronic device in the blockchain system: generating a dedicated data hash based on the business data; obtaining a smart contract in the blockchain system based on a transaction hash. address; access the smart contract via the address of the smart contract; determine whether the private data hash is stored in the smart contract; and when it is determined that the private data hash is stored in the smart contract, approve the business data, So that a commercial transaction activity in the real world can be verified by the blockchain system.
本揭露提供之藉由一區塊鏈系統保護及驗證商業資料之裝置及方法藉由產生機密商業資料之一雜湊並將其部署至智慧合約,來確保商業證據之保留以及商業證據之機密性之保護。智慧合約及區塊鏈上之相應區塊不顯示商業資料,而是顯示一條根據其內容無法解讀之資訊,且區塊鏈之不可竄改機制保留了索引以驗證商業資料。因此,某一個人或組織只要被提供以商業資料,便仍然能夠在需要的時候對該商業資料進行驗證(即,判斷一商業行為/一交易活動是否以該商業資料所顯示之方式實際發生)。鑒於此,本揭露所提供之藉由一區塊鏈系統保護及驗證商業資料之裝置及方法確實解決了本發明所屬技術領域中之上述技術問題。 The present disclosure provides devices and methods for protecting and verifying business information through a blockchain system to ensure the retention of business evidence and the confidentiality of business evidence by generating a hash of confidential business information and deploying it to a smart contract. protect. The smart contract and the corresponding block on the blockchain do not display business information, but display a piece of information that cannot be interpreted based on its content, and the immutable mechanism of the blockchain retains an index to verify the business information. Therefore, as long as a person or organization is provided with business information, it can still verify the business information when necessary (that is, determine whether a business behavior/a transaction actually occurred in the manner shown in the business information). In view of this, the device and method provided by the present disclosure for protecting and verifying business data through a blockchain system have indeed solved the above technical problems in the technical field to which the present invention belongs.
本發明內容總體上闡述了本發明之核心概念,並且覆蓋了要解決的問題、解決問題之手段及本發明之效果,以使此項技術中具有通常知識者對本發明具有一基本理解。然而,應理解,本發明內容並不旨在涵蓋本發明之所有實施例,而僅被提供用來以一簡單形式呈現本發明之核心概念,並且作為對以下詳細說明之介紹。為使此項技術中具有通常知識者更好地理解所請求保護的本發明之特徵,在以下段落中結合圖式描述了針對本發明的詳細技術及較佳實施例。 The summary of the present invention generally explains the core concepts of the present invention, and covers the problems to be solved, the means to solve the problems and the effects of the present invention, so that those with ordinary knowledge in the art can have a basic understanding of the present invention. It should be understood, however, that this summary is not intended to cover all embodiments of the invention, but is merely provided to present core concepts of the invention in a simplified form and as an introduction to the detailed description that follows. In order to enable those skilled in the art to better understand the features of the claimed invention, detailed techniques and preferred embodiments of the invention are described in the following paragraphs in conjunction with the drawings.
1:區塊鏈系統 1: Blockchain system
2:保護商業資料之流程 2: Process for protecting business information
3:驗證商業資料之流程 3: Process of verifying business information
4:藉由一區塊鏈系統保護商業資料之方法 4: Methods to protect business data through a blockchain system
5:藉由一區塊鏈系統驗證商業資料之方法 5: Method of verifying business information through a blockchain system
10:區塊鏈 10:Blockchain
11、12:電子裝置 11, 12: Electronic devices
111、121:處理器 111, 121: Processor
112、122:儲存器 112, 122: Storage
113、123:收發器 113, 123: transceiver
201、202、203、204、205、206、207、208、209、301、302、303、304:動作 201, 202, 203, 204, 205, 206, 207, 208, 209, 301, 302, 303, 304: Action
401、402、403、404、501、502、503、504、505:步驟 401, 402, 403, 404, 501, 502, 503, 504, 505: steps
AD1、AD2:位址 AD1, AD2: address
B0、B1、B2:區塊 B0, B1, B2: block
C1:智慧合約 C1: Smart Contract
DH1、DH2:專用資料雜湊 DH1, DH2: Special data hashing
IN1:輸入 IN1: input
K1:私鑰 K1: private key
K2:公鑰 K2: public key
OP1:輸出訊息 OP1: Output message
PD1、PD2:商業資料 PD1, PD2: business information
R0、R1、R2:交易請求 R0, R1, R2: transaction request
T0:合約部署交易 T0: Contract deployment transaction
T1、T2:交易 T1, T2: Transaction
TH0、TH1:交易雜湊 TH0, TH1: transaction hash
圖式可輔助描述本揭露,其中:第1圖繪示根據本揭露之一或多個實施例之一區塊鏈系統之示意圖。 Drawings can assist in describing the present disclosure, wherein: Figure 1 illustrates a schematic diagram of a blockchain system according to one or more embodiments of the present disclosure.
第2圖繪示根據本揭露之一或多個實施例之保護商業資料之流程之示意圖。 Figure 2 is a schematic diagram of a process for protecting business data according to one or more embodiments of the present disclosure.
第3圖繪示根據本揭露之一或多個實施例之驗證商業資料之流程之示意圖。 Figure 3 is a schematic diagram of a process for verifying business information according to one or more embodiments of the present disclosure.
第4圖繪示根據本揭露之一或多個實施例之一種藉由一區塊鏈系統保護商業資料之方法。 Figure 4 illustrates a method of protecting business data through a blockchain system according to one or more embodiments of the present disclosure.
第5圖繪示根據本揭露之一或多個實施例之一種藉由一區塊鏈系統驗證商業資料之方法。 Figure 5 illustrates a method of verifying business information through a blockchain system according to one or more embodiments of the present disclosure.
在以下說明中,將參考本揭露之實施例來闡釋本揭露提供之用於保護商業資料之裝置及方法以及藉由一區塊鏈系統驗證商業資料之裝置及方法。然而,該等實施例並不旨在將本發明限制於在該等實施例中闡述之任何環境、應用或實施方式。因此,對該等實施例之描述僅用於例示目的,而非限制本 發明。應理解,在以下實施例及圖式中,對與本發明無關之元件未予以繪示。此外,圖式中各個元件之尺寸及尺寸比例僅被提供用於例示,而非限制本發明之範圍。 In the following description, reference will be made to the embodiments of the present disclosure to explain the devices and methods provided by the present disclosure for protecting business data and the devices and methods for verifying business data through a blockchain system. However, these examples are not intended to limit the invention to any environment, application or implementation set forth in these examples. Therefore, the description of these embodiments is for illustrative purposes only and does not limit the present invention. invention. It should be understood that in the following embodiments and drawings, elements irrelevant to the present invention are not shown. In addition, the sizes and dimensional proportions of various elements in the drawings are provided for illustration only and do not limit the scope of the present invention.
第1圖繪示根據本揭露之一或多個實施例之一區塊鏈系統之示意圖。第1圖中所示之內容僅用於例示實施例,而非限制本揭露之範圍。 Figure 1 illustrates a schematic diagram of a blockchain system according to one or more embodiments of the present disclosure. The content shown in Figure 1 is only for illustrative embodiments and does not limit the scope of the present disclosure.
請參照第1圖。一區塊鏈系統1可包含複數個節點,該等節點可一起形成一去中心化的點對點(peer-to-peer;P2P)網路結構。區塊鏈系統1可為基於例如但不限於乙太坊(Ethereum)或支持Solidity之其他區塊鏈平台之一網路,其中,Solidity係為一種廣泛用於實現智慧合約之物件導向之程式語言。
Please refer to
舉例而言,第1圖示出該等節點中之二個節點,即電子裝置11及電子裝置12。電子裝置11及電子裝置12其中之每一者皆可為具有通用的區塊鏈功能(例如,儲存及改變一區塊鏈虛擬機之狀態、創建一交易並向區塊鏈發佈該交易、部署一智慧合約、執行包含在一智慧合約中之一特定程式或功能、啟動區塊鏈系統之一帳戶並與之進行交互作用等等)之一裝置。基於本揭露,此項技術中具有通常知識者可直接理解用於實現所述功能之基本資料、元件及/或行為,且因此在下文中對其不再予以贅述。
For example, Figure 1 shows two of the nodes, namely the
電子裝置11整體上可用以利用一區塊鏈10保留商業資料,且電子裝置12整體上可用以經由區塊鏈10驗證商業資料。電子裝置11可包含一處理器111、與處理器111電性連接之一儲存器112以及與處理器111及儲存器112電性連接之一收發器113。類似地,電子裝置12可包含一處理器121、與處理器121電性連接之一儲存器122以及與處理器121及儲存器122電性連接之一收發器123。應
注意,前述元件之間的電性連接可為直接的(即,在其間無任何功能性元件之情況下彼此連接)或間接的(即,經由其他功能性元件而彼此連接)。
The
處理器111及處理器121其中之每一者可為一微處理器或微控制器。一微處理器或微控制器係為具有運算、儲存、輸出/輸入等功能之一可程式化的特殊積體電路,並能夠接受及處理各種編碼指令,藉此進行各種邏輯運算及算術運算,並輸出相應的運算結果。處理器111及處理器121可被程式化以執行各種指令,從而分別處理電子裝置11及電子裝置12中之資料,並執行各種運算程序或程式。
Each of
儲存器112及儲存器122可用以分別儲存由電子裝置11及電子裝置12產生之資料、自一外部裝置傳送至電子裝置之資料、或者由一使用者輸入至電子裝置中之資料。儲存器112及儲存器122其中之每一者可包含一級記憶體(亦被稱為主記憶體或內部記憶體),且相應的處理器111或121可直接讀取儲存於該一級記憶體中之指令集,並可視需要執行該等指令集。儲存器112及儲存器122其中之每一者可包含二級記憶體(亦被稱為外部記憶體或輔助記憶體),且該二級記憶體可經由資料緩衝器將所儲存的資料傳送至該一級記憶體。舉例而言,輔助記憶體可為例如一硬碟、一光碟或類似裝置,但並非僅限於此。儲存器112及儲存器122其中之每一者可包含三級記憶體(即,可直接插入一電腦或自一電腦中拔出之一儲存器裝置(例如,一行動硬碟))。
The
如第1圖所示,儲存器112可儲存商業資料PD1,且儲存器122可儲存商業資料PD2。商業資料PD1及PD2其中之每一者可為與一使用者之一商業行為(例如,支付)相關之資料。所述商業行為可為區塊鏈系統1之二個帳戶之間的加密貨幣交易,而在某些實施例中,所述商業行為亦可為例如美元、人民幣、
歐元等真實世界貨幣之交易。更具體而言,商業資料PD1及PD2可包含與例如一商業交易活動之參與者之身份相關之資訊(例如,個人身份證字號、稅務編號或一公司之註冊號等)、發票、交貨單、裝運、原產地證書及/或一商業交易活動之不同階段中所涉及之任何其他項目。因此,商業資料PD1及PD2可包含一文本、一影像、一音訊、一視訊及/或對應於商業行為之任何其他格式。商業資料PD1及PD2可用作交易行為之證明,且因此在檢查一商業行為是否如所聲稱般實際發生時是有用的。
As shown in Figure 1, the
收發器113及收發器123其中之每一者可用以與外部的其他裝置進行有線或無線通訊。以無線通訊為例,收發器113及收發器123可包含但不限於一天線、一放大器、一調變器、一解調器、一偵測器、一類比數位轉換器、一數位類比轉換器或其他通訊元件。以有線通訊為例,收發器113及收發器123可為例如但不限於十億位元乙太網收發器、十億位元乙太網介面轉換器(gigabit Ethernet interface converter;GBIC)、小封裝可插拔(small form-factor pluggable;SFP)收發器、百億位元小封裝可插拔(ten-gigabit small form-factor pluggable;XFP)收發器或類似的其他收發器。
Each of the
第2圖繪示根據本揭露之一或多個實施例之保護商業資料之流程之示意圖。第2圖中所示之內容僅用於例示實施例,而非限制本揭露之範圍。 Figure 2 is a schematic diagram of a process for protecting business data according to one or more embodiments of the present disclosure. The content shown in Figure 2 is only used to illustrate the embodiment and does not limit the scope of the present disclosure.
請參照第1圖及第2圖兩者。每當使用者欲在區塊鏈系統1上保留商業資料PD1作為證據時,便可執行用於保護商業資料之一流程2。在流程2開始之前,儲存器112可儲存與代表區塊鏈系統1中之電子裝置11之一使用者帳戶對應之一私鑰K1,且可基於私鑰K1而產生對應於使用者帳戶之一公鑰K2。在某些實施例中,所述公鑰K2可由處理器111產生。然後,可基於公鑰K2而產生對應於
區塊鏈系統1中之使用者帳戶之一位址AD1,在某些實施例中,該位址AD1亦可由處理器111產生。
Please refer to both
流程2可以一動作201開始,在動作201中,處理器111可基於使用者帳戶之私鑰K1、公鑰K2及位址AD1而產生一合約部署交易T0,以便部署對應於使用者帳戶之一智慧合約C1。在一動作202中,處理器111可使用私鑰K1而簽署合約部署交易T0,且在一動作203中,收發器113可藉由向區塊鏈系統1提交一交易請求R0而部署智慧合約C1。可在區塊鏈10中產生包含合約部署交易T0之一區塊B0,並且在交易請求R0及相應的合約部署交易T0已經被其中之一礦工(即,所述節點其中之一)驗證、執行並提交給區塊鏈系統1之後,可獲得代表合約部署交易T0之交易雜湊TH0。儲存器112可儲存交易雜湊TH0。
應注意,第1圖中所示之智慧合約C1僅為一示意圖,並非對其數量或位置之限制。此項技術中具有通常知識者應認識到,在動作203之後,智慧合約C1實際上儲存於區塊鏈系統1之每一有效節點中。
It should be noted that the smart contract C1 shown in Figure 1 is only a schematic diagram, and there is no limit on its number or location. Those with ordinary knowledge in this technology should realize that after
當電子裝置11之使用者欲向區塊鏈10提交前述商業行為之證據時,在一動作204中,收發器113可存取區塊B0以到達合約部署交易T0。然後處理器111可根據合約部署交易T0而獲得智慧合約C1之一位址AD2,此即動作205。
When the user of the
另一方面,在一動作206中,處理器111可根據商業資料PD1而產生一專用資料雜湊DH1。商業資料PD1可代表不僅需要藉由區塊鏈10進行保留而且對於區塊鏈系統1之不相關使用者而言不可獲得之資訊,乃因其內容通常含有商業活動中所涉及之一或多方之隱私或機密資訊。在某些實施例中,處理器111可使用例如Keccak256等第三代安全雜湊演算法(secure hash algorithm-3;SHA-
3)演算法而產生專用資料雜湊DH1。在某些實施例中,動作206可在動作201至205其中之任一者之前進行。
On the other hand, in
在獲得位址AD2及專用資料雜湊DH1之後,處理器111可在一動作207中基於位址AD2及專用資料雜湊DH1而產生用於與智慧合約C1交互作用之一交易T1,並且在一動作208中使用私鑰K1而簽署交易T1。具體而言,例如,位址AD2可包含在交易T1之一接收者欄位中,且專用資料雜湊DH1可包含在交易T1之一資料欄位中。
After obtaining the address AD2 and the private data hash DH1, the
收發器113然後可向區塊鏈系統1提交(即,藉由廣播)與所簽署的交易T1對應之一交易請求R1(即,動作209)。一旦交易請求R1被一礦工驗證、執行並提交給區塊鏈系統1,便可將專用資料雜湊DH1作為一輸入傳送至智慧合約C1,以在執行時設置其中定義之變數,乃因在交易T1中已經指定了接收者係為智慧合約C1,且所包含的資料係為專用資料雜湊DH1。可在區塊鏈10中產生包含交易T1之一區塊B1,且然後可獲得表示交易T1之一交易雜湊TH1。
更具體而言,智慧合約C1最初可經由處理器111進行程式化以包含捕捉輸入值並將其分配至一變數之函數,使得專用資料雜湊DH1可在藉由交易T1執行時被儲存於其中。
More specifically, smart contract C1 may initially be programmed by
藉由用於保護商業資料之流程2,專用資料雜湊DH1可成功地儲存於智慧合約C1中,作為至商業資料PD1之一鏈接。區塊鏈系統1中之任何有效節點皆可觀察到專用資料雜湊DH1之記錄,但無法僅藉由查看專用資料雜湊DH1而獲得商業資料PD1之內容。
Through
在某些實施例中,作為另外一種選擇,處理器111可將智慧合約C1程式化及部署為一可升級的智慧合約(例如,藉由部署一代理智慧合約,或者直
接使用例如由「OpenZeppelin」提供之「deployProxy」等工具)。智慧合約C1因此可基於專用資料雜湊DH1經由交易T1進行升級。
In some embodiments,
第3圖繪示根據本揭露之一或多個實施例之驗證商業資料之流程之示意圖。第3圖中所示之內容僅用於例示實施例,而非限制本揭露之範圍。 Figure 3 is a schematic diagram of a process for verifying business information according to one or more embodiments of the present disclosure. The content shown in Figure 3 is only used to illustrate the embodiment and does not limit the scope of the present disclosure.
請同時參照第1圖、第2圖及第3圖。當任何個人欲證明對應於商業資料PD2之商業動作係為對應於商業資料PD1之確切商業動作時,該個人可藉由例如收發器123或其他輸入方式向電子裝置12提供交易雜湊TH1及商業資料PD2。在流程2之後,電子裝置12可執行用於驗證商業資料之一流程3而驗證商業資料PD2與商業資料PD1是否一致。應注意,電子裝置12可與電子裝置11不同,且因此可能對商業資料PD1一無所知,此乃因商業資料PD1被保持為電子裝置11專有。然而,本發明在流程3中所提供之驗證機制並不需要電子裝置12知曉商業資料PD1之內容。
Please refer to
流程3可以一動作301開始,在動作301中,處理器121可根據交易雜湊TH1而到達/拜訪交易T1。在一動作302中,處理器121可接著自交易T1獲得智慧合約C1之位址AD2。另一方面,在一動作303中,處理器121可按照與處理器111產生專用資料雜湊DH1相同之方式,根據商業資料PD2而產生一專用資料雜湊DH2。在某些實施例中,動作303可在動作301或動作302之前執行。
在獲得位址AD2及專用資料雜湊DH2之後,在一動作304中,處理器121可判斷專用資料雜湊DH2是否包含在智慧合約C1中(專用資料雜湊DH2之存在指示商業資料PD2係為用於產生交易T1及構造區塊B1之確切商業資料)。當確定專用資料雜湊DH2包含在智慧合約C1中時,處理器121可批准商業資料PD2,乃因若二個資料不相同,則商業資料PD1及PD2幾乎不可能藉由相同的雜湊機制
產生相同的雜湊值。另一方面,在確定專用資料雜湊DH2不包含在智慧合約C1中時,處理器121可不批准商業資料PD2。因此可得出結論,商業資料PD2之批准/不批准可表示兩條商業資料PD1及PD2相同/不同之事實。
After obtaining the address AD2 and the private data hash DH2, in an
在某些實施例中,關於動作304,處理器121可首先基於位址AD2及專用資料雜湊DH2而產生用於與智慧合約C1交互之一交易T2,並且使用電子裝置12之相應使用者帳戶之私鑰而簽署交易T2。收發器123然後可向區塊鏈系統1提交與所簽署之交易T2對應之一交易請求R2。
In some embodiments, regarding
一旦交易請求R2已被一礦工驗證、執行並提交給區塊鏈系統1,便可將專用資料雜湊DH2作為一輸入IN1傳送至智慧合約C1。智慧合約C1然後可由處理器121執行,且智慧合約C1中之某些功能(例如,查詢/搜索功能)可被呼叫以檢查專用資料雜湊DH2之存在,並提供指示結果(即,專用資料雜湊DH2是否包含在智慧合約C1中)之一輸出訊息OP1。因此,可在區塊鏈10中產生包含交易T2之一區塊B2,且然後可獲得表示交易T2之一交易雜湊。
Once the transaction request R2 has been verified, executed and submitted to the
為達成如上所述之操作,智慧合約C1可例如包含捕捉輸入值(例如,專用資料雜湊DH2)並將其與在相同或不同函數中定義之一變數(其如先前所闡釋被設計用於儲存專用資料雜湊DH1)進行比較之一函數。然而,智慧合約C1檢查其中專用資料雜湊DH2之存在之方式並非僅限於此種實施方式。 To achieve the operations described above, smart contract C1 may, for example, include capturing an input value (e.g., a dedicated data hash DH2) and matching it with a variable defined in the same or a different function (which as explained previously is designed to store Special data hash DH1) is a function that performs comparisons. However, the way in which smart contract C1 checks the existence of the private data hash DH2 is not limited to this implementation.
在某些實施例中,商業資料PD1及PD2其中之每一者可在被進一步處理成專用資料雜湊DH1或DH2之前被處理成一JSON(JavaScript Object Notation)檔案。 In some embodiments, each of the business data PD1 and PD2 may be processed into a JSON (JavaScript Object Notation) file before being further processed into a dedicated data hash DH1 or DH2.
在某些實施例中,處理器121可判斷交易雜湊TH1是否係基於與區塊鏈系統之一使用者帳戶對應之一私鑰產生的。具體而言,例如,儲存器122還
可儲存對應於某一使用者帳戶(例如,電子裝置11之使用者)之一公鑰(例如,公鑰K2),並且處理器121可使用該公鑰而認證交易雜湊TH1,以判斷交易雜湊TH1是否係基於該使用者之私鑰(例如,私鑰K1)產生的。處理器121可僅在判斷出「交易雜湊TH1係基於特定私鑰產生的」且「專用資料雜湊DH2包含在智慧合約C1中」時才批准商業資料PD2。
In some embodiments, the
第4圖繪示根據本揭露之一或多個實施例之藉由一區塊鏈系統保護商業資料之方法。第4圖所示之內容僅用於例示本揭露之實施例,而非限制本揭露之範圍。 Figure 4 illustrates a method of protecting business data through a blockchain system according to one or more embodiments of the present disclosure. The content shown in Figure 4 is only used to illustrate the embodiments of the present disclosure, but does not limit the scope of the present disclosure.
請參照第4圖。一種藉由一區塊鏈系統保護商業資料之方法4可包含由區塊鏈系統中之一電子裝置執行之下列步驟:根據一交易雜湊獲得一智慧合約在該區塊鏈系統中之一位址(標記為步驟401);根據該商業資料產生一專用資料雜湊(標記為步驟402);基於該專用資料雜湊及該智慧合約之該位址產生一交易(標記為步驟403);以及向該區塊鏈系統提交該交易以將該專用資料雜湊儲存於該智慧合約中,使得真實世界中之一商業交易活動之機密資訊受到該區塊鏈系統之保護(標記為步驟404)。
Please refer to Figure 4. A
在某些實施例中,智慧合約可對應於區塊鏈系統之一使用者帳戶,且方法4可還包含下列步驟:在向該區塊鏈系統提交該交易之前,使用該使用者帳戶之一私鑰而簽署該交易。
In some embodiments, the smart contract may correspond to a user account of the blockchain system, and
在某些實施例中,關於方法4,智慧合約可對應於區塊鏈系統之一使用者帳戶,且方法4可還包含下列步驟:由該電子裝置基於該使用者帳戶之一私鑰而產生該使用者帳戶之一公鑰;由該電子裝置基於該公鑰產生該使用者帳戶在該區塊鏈系統中之一位址;由該電子裝置基於該私鑰、該公鑰及該使用者帳戶之該位址而產生一合約部署交易;以及由該電子裝置藉由向該區塊鏈系統提交該合約部署交易以獲得該交易雜湊而部署該智慧合約。此外,在某些實施例中,方法4可還包含下列步驟:在向該區塊鏈系統提交該合約部署交易之前,使用該私鑰而簽署該合約部署交易。
In some embodiments, regarding
在某些實施例中,關於方法4,電子裝置可基於SHA-3演算法而產生商業資料之專用資料雜湊。同樣地,在某些實施例中,該商業資料可包含對應於商業交易活動之一文本、一影像、一音訊及一視訊至少其中之一。
In some embodiments, regarding
第5圖繪示根據本揭露之一或多個實施例之藉由一區塊鏈系統驗證商業資料之方法。第5圖所示之內容僅用於例示本揭露之實施例,而非限制本揭露之範圍。 Figure 5 illustrates a method of verifying business information through a blockchain system according to one or more embodiments of the present disclosure. The content shown in Figure 5 is only used to illustrate the embodiments of the present disclosure, but does not limit the scope of the present disclosure.
請參照第5圖。藉由一區塊鏈系統驗證商業資料之方法5可包含由區塊鏈系統中之一電子裝置執行之下列步驟:根據該商業資料而產生一專用資料雜湊(標記為步驟501);根據一交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址(標記為步驟502);經由該智慧合約之該位址存取該智慧合約(標記為步驟503);判斷該專用資料雜湊是否儲存於該智慧合約中(標記為步驟504);以及
當判斷出該專用資料雜湊儲存於該智慧合約中時,批准該商業資料,使得真實世界中之一商業交易活動得到該區塊鏈系統之驗證(標記為步驟505)。
Please refer to Figure 5.
在某些實施例中,方法5可還包含下列步驟:判斷該交易雜湊是否是基於與該區塊鏈系統之一使用者帳戶對應之一私鑰產生的。當判斷出該交易雜湊是基於該私鑰產生的,且該專用資料雜湊包含在該智慧合約中時,電子裝置可批准該商業資料。此外,在某些實施例中,電子裝置可藉由使用與該使用者帳戶對應之一公鑰認證該交易雜湊,進而判斷該交易雜湊是否是基於該私鑰產生的。
In some embodiments,
在某些實施例中,關於方法5,電子裝置可基於SHA-3演算法產生該專用資料雜湊。此外,在某些實施例中,商業資料可包含對應於商業交易活動之一文本、一影像、一音訊及一視訊至少其中之一。
In some embodiments, regarding
方法4及方法5之每一實施例基本上對應於區塊鏈系統1之電子裝置11或電子裝置12之某一實施例。因此,即使以上並未詳細闡述方法4及方法5之所有實施例,但本發明所屬技術領域中具有通常知識者藉由參照以上針對區塊鏈系統1之電子裝置11或電子裝置12之說明便可完全理解及實現方法4及方法5之所有相應實施例。
Each embodiment of
上述揭露內容係關於其詳細技術內容及發明特徵。本發明所屬技術領域中具有通常知識者可在不背離本發明之特性之情況下基於所闡述的本發明之揭露內容及建議進行各種修改及替換。然而,儘管未在以上說明中完全揭露此類修改及替換,但該等修改及替換基本上已被如下所附的申請專利範圍所涵蓋。 The above disclosure relates to its detailed technical content and inventive features. Those with ordinary skill in the technical field to which the present invention belongs may make various modifications and substitutions based on the disclosure and suggestions of the present invention without departing from the characteristics of the present invention. However, although such modifications and substitutions are not fully disclosed in the above description, such modifications and substitutions are basically covered by the appended patent scope below.
4:藉由一區塊鏈系統保護商業資料之方法 4: Methods to protect business data through a blockchain system
401、402、403、404:步驟 401, 402, 403, 404: steps
Claims (22)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111126825A TWI824625B (en) | 2022-07-18 | 2022-07-18 | Device and method for securing and verifying business data via a blockchain system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111126825A TWI824625B (en) | 2022-07-18 | 2022-07-18 | Device and method for securing and verifying business data via a blockchain system |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI824625B true TWI824625B (en) | 2023-12-01 |
TW202406314A TW202406314A (en) | 2024-02-01 |
Family
ID=90052933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111126825A TWI824625B (en) | 2022-07-18 | 2022-07-18 | Device and method for securing and verifying business data via a blockchain system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI824625B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106022741A (en) * | 2016-05-19 | 2016-10-12 | 北京太云科技有限公司 | Indivisible digital asset transfer method based on block chain |
CN106779704A (en) * | 2016-12-06 | 2017-05-31 | 杭州趣链科技有限公司 | A kind of block chain anonymous deal method based on ring signatures |
TWM607492U (en) * | 2019-10-04 | 2021-02-11 | 思偉達創新科技股份有限公司 | System and server for cryptographic currency conversion on blockchain |
-
2022
- 2022-07-18 TW TW111126825A patent/TWI824625B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106022741A (en) * | 2016-05-19 | 2016-10-12 | 北京太云科技有限公司 | Indivisible digital asset transfer method based on block chain |
CN106779704A (en) * | 2016-12-06 | 2017-05-31 | 杭州趣链科技有限公司 | A kind of block chain anonymous deal method based on ring signatures |
TWM607492U (en) * | 2019-10-04 | 2021-02-11 | 思偉達創新科技股份有限公司 | System and server for cryptographic currency conversion on blockchain |
Also Published As
Publication number | Publication date |
---|---|
TW202406314A (en) | 2024-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11048825B2 (en) | Managing a smart contract on a blockchain | |
WO2020238255A1 (en) | Smart contract management method and apparatus based on blockchain, and electronic device | |
JP7111814B2 (en) | ASSET MANAGEMENT METHOD AND APPARATUS AND ELECTRONIC DEVICE | |
WO2021042818A1 (en) | Blockchain-based asset query method and apparatus, and electronic device | |
CN110992027B (en) | Efficient transaction method and device for realizing privacy protection in block chain | |
TWI759563B (en) | Asset management method and device, electronic equipment | |
CN110263544B (en) | Receipt storage method and node combining transaction type and judgment condition | |
JP2021512380A (en) | Asset management methods and equipment, as well as electronic devices | |
CN110060054B (en) | Method, node, system and storage medium for implementing privacy protection in block chain | |
CN110245947B (en) | Receipt storage method and node combining conditional restrictions of transaction and user types | |
CN110264192B (en) | Receipt storage method and node based on transaction type | |
US11276060B2 (en) | Transferring operations based on blockchain smart contract | |
CN110245504B (en) | Receipt storage method and node combined with condition limitation of multi-type dimensionality | |
CN110245942B (en) | Receipt storage method and node combining user type and judgment condition | |
CN110264193B (en) | Receipt storage method and node combining user type and transaction type | |
CN113285802B (en) | Key agreement method and device based on FPGA | |
CN110750488B (en) | Method and device for realizing external calling in FPGA | |
CN112491887B (en) | Method and device for realizing virtual machine operation based on FPGA | |
CN110263089B (en) | Receipt storage method and node combining conditional restrictions of transaction and event types | |
CN110738567B (en) | Transaction processing method and device of safe intelligent contract processor based on FPGA | |
CN112927077B (en) | Method and device for realizing contract calling based on FPGA | |
TWI824625B (en) | Device and method for securing and verifying business data via a blockchain system | |
WO2022205959A1 (en) | Method and apparatus for sending transaction in blockchain, and method and apparatus for executing transaction in blockchain | |
EP4311156A1 (en) | Device and method for securing and verifying business data via a blockchain system | |
WO2020233423A1 (en) | Receipt storage method and node based on transaction type |