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 PDF

Info

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

Links

Images

Abstract

In a blockchain system, a user device obtains an address of a smart contract according to a transaction hash, and generates a private data hash according to business data. The user device then generates a transaction based on the private data hash and the address of the smart contract, and submits the transaction to the blockchain system to store the private data hash into the smart contract, such that confidential information of a business deal in the real world is secured. On the other hand, an authentication device generates a private data hash according to business data, obtains an address of a smart contract in the blockchain system according to a transaction hash, and accesses the smart contract via the address to determine whether the private data hash is stored in the smart contract. The authentication device approves the business data when the smart contract includes the private data hash.

Description

藉由區塊鏈系統保護及驗證商業資料之裝置及方法Devices and methods for protecting and verifying business data through blockchain systems

本揭露係關於一種藉由一區塊鏈系統保護及驗證商業資料之裝置及方法。更具體而言,本揭露係關於一種藉由一區塊鏈系統保護及驗證商業資料之裝置及方法,該裝置及方法確保保留商業證據並保護商業證據之機密性。 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 picture 1. A blockchain system 1 can include a plurality of nodes, and these nodes can together form a decentralized peer-to-peer (P2P) network structure. The blockchain system 1 may be a network based on, for example, but not limited to, Ethereum or other blockchain platforms that support Solidity, which is an object-oriented programming language widely used to implement smart contracts. .

舉例而言,第1圖示出該等節點中之二個節點,即電子裝置11及電子裝置12。電子裝置11及電子裝置12其中之每一者皆可為具有通用的區塊鏈功能(例如,儲存及改變一區塊鏈虛擬機之狀態、創建一交易並向區塊鏈發佈該交易、部署一智慧合約、執行包含在一智慧合約中之一特定程式或功能、啟動區塊鏈系統之一帳戶並與之進行交互作用等等)之一裝置。基於本揭露,此項技術中具有通常知識者可直接理解用於實現所述功能之基本資料、元件及/或行為,且因此在下文中對其不再予以贅述。 For example, Figure 1 shows two of the nodes, namely the electronic device 11 and the electronic device 12 . Each of the electronic device 11 and the electronic device 12 may have general blockchain functions (for example, storing and changing the state of a blockchain virtual machine, creating a transaction and publishing the transaction to the blockchain, deploying A smart contract, a device that executes a specific program or function contained in a smart contract, activates an account in the blockchain system and interacts with it, etc.). Based on the present disclosure, those with ordinary skill in the art can directly understand the basic materials, components and/or behaviors used to implement the described functions, and therefore they will not be described again below.

電子裝置11整體上可用以利用一區塊鏈10保留商業資料,且電子裝置12整體上可用以經由區塊鏈10驗證商業資料。電子裝置11可包含一處理器111、與處理器111電性連接之一儲存器112以及與處理器111及儲存器112電性連接之一收發器113。類似地,電子裝置12可包含一處理器121、與處理器121電性連接之一儲存器122以及與處理器121及儲存器122電性連接之一收發器123。應 注意,前述元件之間的電性連接可為直接的(即,在其間無任何功能性元件之情況下彼此連接)或間接的(即,經由其他功能性元件而彼此連接)。 The electronic device 11 as a whole can be used to retain business information using a blockchain 10 , and the electronic device 12 as a whole can be used to verify the business information via the blockchain 10 . The electronic device 11 may include a processor 111 , a memory 112 electrically connected to the processor 111 , and a transceiver 113 electrically connected to the processor 111 and the memory 112 . Similarly, the electronic device 12 may include a processor 121 , a memory 122 electrically connected to the processor 121 , and a transceiver 123 electrically connected to the processor 121 and the memory 122 . Should Note that the electrical connection between the aforementioned elements may be direct (ie, connected to each other without any functional elements therebetween) or indirect (ie, connected to each other via other functional elements).

處理器111及處理器121其中之每一者可為一微處理器或微控制器。一微處理器或微控制器係為具有運算、儲存、輸出/輸入等功能之一可程式化的特殊積體電路,並能夠接受及處理各種編碼指令,藉此進行各種邏輯運算及算術運算,並輸出相應的運算結果。處理器111及處理器121可被程式化以執行各種指令,從而分別處理電子裝置11及電子裝置12中之資料,並執行各種運算程序或程式。 Each of processor 111 and processor 121 may be a microprocessor or microcontroller. A microprocessor or microcontroller is a programmable special integrated circuit with functions such as computing, storage, output/input, etc., and can accept and process various coded instructions to perform various logical operations and arithmetic operations. And output the corresponding operation results. The processor 111 and the processor 121 can be programmed to execute various instructions, thereby processing data in the electronic device 11 and the electronic device 12 respectively, and executing various calculation programs or programs.

儲存器112及儲存器122可用以分別儲存由電子裝置11及電子裝置12產生之資料、自一外部裝置傳送至電子裝置之資料、或者由一使用者輸入至電子裝置中之資料。儲存器112及儲存器122其中之每一者可包含一級記憶體(亦被稱為主記憶體或內部記憶體),且相應的處理器111或121可直接讀取儲存於該一級記憶體中之指令集,並可視需要執行該等指令集。儲存器112及儲存器122其中之每一者可包含二級記憶體(亦被稱為外部記憶體或輔助記憶體),且該二級記憶體可經由資料緩衝器將所儲存的資料傳送至該一級記憶體。舉例而言,輔助記憶體可為例如一硬碟、一光碟或類似裝置,但並非僅限於此。儲存器112及儲存器122其中之每一者可包含三級記憶體(即,可直接插入一電腦或自一電腦中拔出之一儲存器裝置(例如,一行動硬碟))。 The memory 112 and the memory 122 can be used to store data generated by the electronic device 11 and the electronic device 12 respectively, data transmitted to the electronic device from an external device, or data input into the electronic device by a user. Each of the storage 112 and the storage 122 may include a primary memory (also referred to as main memory or internal memory), and the corresponding processor 111 or 121 may directly read the storage in the primary memory. instruction set and execute the instruction set as needed. Each of storage 112 and storage 122 may include secondary memory (also known as external memory or auxiliary memory), and the secondary memory may transfer stored data via a data buffer to the primary memory. For example, the auxiliary memory may be a hard disk, an optical disk or a similar device, but is not limited thereto. Storage 112 and storage 122 may each include Level 3 memory (ie, a storage device (eg, a mobile hard drive) that can be plugged directly into or removed from a computer).

如第1圖所示,儲存器112可儲存商業資料PD1,且儲存器122可儲存商業資料PD2。商業資料PD1及PD2其中之每一者可為與一使用者之一商業行為(例如,支付)相關之資料。所述商業行為可為區塊鏈系統1之二個帳戶之間的加密貨幣交易,而在某些實施例中,所述商業行為亦可為例如美元、人民幣、 歐元等真實世界貨幣之交易。更具體而言,商業資料PD1及PD2可包含與例如一商業交易活動之參與者之身份相關之資訊(例如,個人身份證字號、稅務編號或一公司之註冊號等)、發票、交貨單、裝運、原產地證書及/或一商業交易活動之不同階段中所涉及之任何其他項目。因此,商業資料PD1及PD2可包含一文本、一影像、一音訊、一視訊及/或對應於商業行為之任何其他格式。商業資料PD1及PD2可用作交易行為之證明,且因此在檢查一商業行為是否如所聲稱般實際發生時是有用的。 As shown in Figure 1, the storage 112 can store commercial data PD1, and the storage 122 can store commercial data PD2. Each of the business data PD1 and PD2 may be data related to a business behavior (eg, payment) of a user. The business activity may be a cryptocurrency transaction between two accounts in the blockchain system 1, and in some embodiments, the business activity may also be, for example, US dollars, RMB, Trading of real world currencies such as Euros. More specifically, the business data PD1 and PD2 may include, for example, information related to the identity of the participants in a business transaction (for example, a personal ID number, a tax number or a company's registration number, etc.), invoices, delivery orders, etc. , shipment, certificate of origin and/or any other items involved in different stages of a commercial transaction. Therefore, the commercial data PD1 and PD2 may include a text, an image, an audio, a video and/or any other format corresponding to commercial activities. Business data PD1 and PD2 can be used as proof of trading activities and are therefore useful in checking whether a business activity actually occurred as claimed.

收發器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 transceiver 113 and the transceiver 123 may be used for wired or wireless communication with other external devices. Taking wireless communication as an example, the transceiver 113 and the transceiver 123 may include but are not limited to an antenna, an amplifier, a modulator, a demodulator, a detector, an analog-to-digital converter, and a digital-to-analog converter. or other communication components. Taking wired communication as an example, the transceiver 113 and the transceiver 123 can be, for example but not limited to, a gigabit Ethernet transceiver, a gigabit Ethernet interface converter (GBIC), a small package A pluggable (small form-factor pluggable; SFP) transceiver, a ten-gigabit small form-factor pluggable (XFP) transceiver, or other similar transceivers.

第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 Picture 1 and Picture 2. Whenever the user wants to retain the business data PD1 as evidence on the blockchain system 1, he or she can execute a process 2 for protecting the business data. Before starting the process 2, the storage 112 may store a private key K1 corresponding to a user account representing the electronic device 11 in the blockchain system 1, and may generate a user account corresponding to the private key K1 based on the private key K1. Public key K2. In some embodiments, the public key K2 may be generated by the processor 111. Then, based on the public key K2, the corresponding The address AD1 of the user account in the blockchain system 1. In some embodiments, the address AD1 can also be generated by the processor 111.

流程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。 Process 2 can start with an action 201. In action 201, the processor 111 can generate a contract deployment transaction T0 based on the private key K1, public key K2 and address AD1 of the user account in order to deploy one corresponding to the user account. Smart contract C1. In an action 202, the processor 111 can use the private key K1 to sign the contract deployment transaction T0, and in an action 203, the transceiver 113 can deploy the smart contract C1 by submitting a transaction request R0 to the blockchain system 1 . A block B0 containing the contract deployment transaction T0 can be generated in the blockchain 10, and the transaction request R0 and the corresponding contract deployment transaction T0 have been verified and executed by one of the miners (ie, one of the nodes) After submitting it to the blockchain system 1, the transaction hash TH0 representing the contract deployment transaction T0 can be obtained. Storage 112 may store transaction hash 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 action 203, the smart contract C1 is actually stored in every valid node of the blockchain system 1.

當電子裝置11之使用者欲向區塊鏈10提交前述商業行為之證據時,在一動作204中,收發器113可存取區塊B0以到達合約部署交易T0。然後處理器111可根據合約部署交易T0而獲得智慧合約C1之一位址AD2,此即動作205。 When the user of the electronic device 11 wants to submit evidence of the aforementioned business behavior to the blockchain 10, in an action 204, the transceiver 113 can access the block B0 to reach the contract deployment transaction T0. Then the processor 111 can obtain one of the addresses AD2 of the smart contract C1 according to the contract deployment transaction T0, which is action 205.

另一方面,在一動作206中,處理器111可根據商業資料PD1而產生一專用資料雜湊DH1。商業資料PD1可代表不僅需要藉由區塊鏈10進行保留而且對於區塊鏈系統1之不相關使用者而言不可獲得之資訊,乃因其內容通常含有商業活動中所涉及之一或多方之隱私或機密資訊。在某些實施例中,處理器111可使用例如Keccak256等第三代安全雜湊演算法(secure hash algorithm-3;SHA- 3)演算法而產生專用資料雜湊DH1。在某些實施例中,動作206可在動作201至205其中之任一者之前進行。 On the other hand, in action 206, the processor 111 may generate a dedicated data hash DH1 based on the business data PD1. Commercial data PD1 may represent information that not only needs to be retained by the blockchain 10 but is also unavailable to unrelated users of the blockchain system 1 because its content usually contains the information of one or more parties involved in commercial activities. Private or confidential information. In some embodiments, the processor 111 may use a third-generation secure hash algorithm (secure hash algorithm-3; SHA-3) such as Keccak256. 3) Algorithm generates special data hash DH1. In some embodiments, act 206 may occur before any of acts 201-205.

在獲得位址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 processor 111 may generate a transaction T1 for interacting with the smart contract C1 based on the address AD2 and the private data hash DH1 in an act 207, and in an act 208 Use private key K1 to sign transaction T1. Specifically, for example, address AD2 may be included in a recipient field of transaction T1, and private data hash DH1 may be included in a data field of transaction T1.

收發器113然後可向區塊鏈系統1提交(即,藉由廣播)與所簽署的交易T1對應之一交易請求R1(即,動作209)。一旦交易請求R1被一礦工驗證、執行並提交給區塊鏈系統1,便可將專用資料雜湊DH1作為一輸入傳送至智慧合約C1,以在執行時設置其中定義之變數,乃因在交易T1中已經指定了接收者係為智慧合約C1,且所包含的資料係為專用資料雜湊DH1。可在區塊鏈10中產生包含交易T1之一區塊B1,且然後可獲得表示交易T1之一交易雜湊TH1。 Transceiver 113 may then submit (ie, by broadcasting) a transaction request R1 corresponding to signed transaction T1 to blockchain system 1 (ie, act 209). Once the transaction request R1 is verified, executed and submitted to the blockchain system 1 by a miner, the dedicated data hash DH1 can be sent as an input to the smart contract C1 to set the variables defined therein at execution time, because in the transaction T1 The recipient has been designated as smart contract C1, and the data contained is dedicated data hash DH1. A block B1 containing transaction T1 may be generated in blockchain 10, and a transaction hash TH1 representing transaction T1 may then be obtained.

更具體而言,智慧合約C1最初可經由處理器111進行程式化以包含捕捉輸入值並將其分配至一變數之函數,使得專用資料雜湊DH1可在藉由交易T1執行時被儲存於其中。 More specifically, smart contract C1 may initially be programmed by processor 111 to include a function that captures an input value and assigns it to a variable so that a dedicated data hash DH1 may be stored therein upon execution by transaction T1.

藉由用於保護商業資料之流程2,專用資料雜湊DH1可成功地儲存於智慧合約C1中,作為至商業資料PD1之一鏈接。區塊鏈系統1中之任何有效節點皆可觀察到專用資料雜湊DH1之記錄,但無法僅藉由查看專用資料雜湊DH1而獲得商業資料PD1之內容。 Through process 2 for protecting business data, the private data hash DH1 can be successfully stored in the smart contract C1 as a link to the business data PD1. Any valid node in the blockchain system 1 can observe the record of the dedicated data hash DH1, but cannot obtain the content of the business data PD1 just by viewing the dedicated data hash DH1.

在某些實施例中,作為另外一種選擇,處理器111可將智慧合約C1程式化及部署為一可升級的智慧合約(例如,藉由部署一代理智慧合約,或者直 接使用例如由「OpenZeppelin」提供之「deployProxy」等工具)。智慧合約C1因此可基於專用資料雜湊DH1經由交易T1進行升級。 In some embodiments, processor 111 may alternatively program and deploy smart contract C1 as an upgradable smart contract (e.g., by deploying a proxy smart contract, or directly Directly use tools such as "deployProxy" provided by "OpenZeppelin"). Smart contract C1 can therefore be upgraded via transaction T1 based on the dedicated data hash DH1.

第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 Picture 1, Picture 2 and Picture 3 at the same time. When any individual wants to prove that the business action corresponding to the business data PD2 is the exact business action corresponding to the business data PD1, the person can provide the transaction hash TH1 and the business data to the electronic device 12 through, for example, the transceiver 123 or other input methods. PD2. After the process 2, the electronic device 12 can execute a process 3 for verifying commercial data to verify whether the commercial data PD2 and the commercial data PD1 are consistent. It should be noted that the electronic device 12 may be different from the electronic device 11 and therefore may not know anything about the commercial data PD1 since the commercial data PD1 is kept proprietary to the electronic device 11 . However, the verification mechanism provided in process 3 of the present invention does not require the electronic device 12 to know the content of the commercial data PD1.

流程3可以一動作301開始,在動作301中,處理器121可根據交易雜湊TH1而到達/拜訪交易T1。在一動作302中,處理器121可接著自交易T1獲得智慧合約C1之位址AD2。另一方面,在一動作303中,處理器121可按照與處理器111產生專用資料雜湊DH1相同之方式,根據商業資料PD2而產生一專用資料雜湊DH2。在某些實施例中,動作303可在動作301或動作302之前執行。 Process 3 may begin with an action 301, in which the processor 121 may arrive/visit transaction T1 based on transaction hash TH1. In an action 302, the processor 121 may then obtain the address AD2 of the smart contract C1 from the transaction T1. On the other hand, in an action 303, the processor 121 may generate a dedicated data hash DH2 based on the business data PD2 in the same manner as the processor 111 generates the dedicated data hash DH1. In some embodiments, act 303 may be performed before act 301 or act 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 action 304, the processor 121 can determine whether the private data hash DH2 is included in the smart contract C1 (the presence of the private data hash DH2 indicates that the business data PD2 is used to generate The exact business information of transaction T1 and construction block B1). When it is determined that the private data hash DH2 is included in the smart contract C1, the processor 121 can approve the business data PD2, because if the two data are not the same, it is almost impossible for the business data PD1 and PD2 to be processed by the same hashing mechanism. produces the same hash value. On the other hand, when determining that the private data hash DH2 is not included in the smart contract C1, the processor 121 may not approve the business data PD2. Therefore, it can be concluded that the approval/disapproval of commercial data PD2 can indicate the fact that the two commercial data PD1 and PD2 are the same/different.

在某些實施例中,關於動作304,處理器121可首先基於位址AD2及專用資料雜湊DH2而產生用於與智慧合約C1交互之一交易T2,並且使用電子裝置12之相應使用者帳戶之私鑰而簽署交易T2。收發器123然後可向區塊鏈系統1提交與所簽署之交易T2對應之一交易請求R2。 In some embodiments, regarding action 304, the processor 121 may first generate a transaction T2 for interacting with the smart contract C1 based on the address AD2 and the private data hash DH2, and use the corresponding user account of the electronic device 12 private key to sign transaction T2. The transceiver 123 may then submit a transaction request R2 corresponding to the signed transaction T2 to the blockchain system 1 .

一旦交易請求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 blockchain system 1 by a miner, the dedicated data hash DH2 can be sent to the smart contract C1 as an input IN1. Smart contract C1 may then be executed by processor 121 and certain functions (e.g., query/search functions) in smart contract C1 may be called to check for the presence of private data hash DH2 and provide an indication of the result (i.e., private data hash DH2 Whether it is included in smart contract C1) one of the output messages OP1. Thus, a block B2 containing transaction T2 may be generated in blockchain 10, and a transaction hash representing transaction T2 may then be obtained.

為達成如上所述之操作,智慧合約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 processor 121 may determine whether the transaction hash TH1 is generated based on a private key corresponding to a user account in the blockchain system. Specifically, for example, the storage 122 also A public key (eg, public key K2) corresponding to a certain user account (eg, the user of the electronic device 11) may be stored, and the processor 121 may use the public key to authenticate the transaction hash TH1 to determine the transaction hash. Whether TH1 is generated based on the user's private key (for example, private key K1). The processor 121 may only approve the business data PD2 when it is determined that "the transaction hash TH1 is generated based on a specific private key" and "the private data hash DH2 is included in the smart contract C1".

第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 method 4 of protecting business data through a blockchain system may include the following steps performed by an electronic device in the blockchain system: Obtaining an address of a smart contract in the blockchain system based on a transaction hash (labeled as step 401); generate a private data hash based on the business data (labeled as step 402); generate a transaction based on the private data hash and the address of the smart contract (labeled as step 403); and The blockchain system submits the transaction to hash and store the private data in the smart contract, so that confidential information of a commercial transaction in the real world is protected by the blockchain system (marked as step 404).

在某些實施例中,智慧合約可對應於區塊鏈系統之一使用者帳戶,且方法4可還包含下列步驟:在向該區塊鏈系統提交該交易之前,使用該使用者帳戶之一私鑰而簽署該交易。 In some embodiments, the smart contract may correspond to a user account of the blockchain system, and method 4 may further include the following steps: using one of the user accounts before submitting the transaction to the blockchain system private key to sign the transaction.

在某些實施例中,關於方法4,智慧合約可對應於區塊鏈系統之一使用者帳戶,且方法4可還包含下列步驟:由該電子裝置基於該使用者帳戶之一私鑰而產生該使用者帳戶之一公鑰;由該電子裝置基於該公鑰產生該使用者帳戶在該區塊鏈系統中之一位址;由該電子裝置基於該私鑰、該公鑰及該使用者帳戶之該位址而產生一合約部署交易;以及由該電子裝置藉由向該區塊鏈系統提交該合約部署交易以獲得該交易雜湊而部署該智慧合約。此外,在某些實施例中,方法4可還包含下列步驟:在向該區塊鏈系統提交該合約部署交易之前,使用該私鑰而簽署該合約部署交易。 In some embodiments, regarding method 4, the smart contract may correspond to a user account in the blockchain system, and method 4 may further include the following steps: generating by the electronic device based on a private key of the user account The public key of the user account; the electronic device generates the address of the user account in the blockchain system based on the public key; the electronic device generates the address of the user account in the blockchain system based on the private key, the public key and the user The address of the account generates a contract deployment transaction; and the smart contract is deployed by the electronic device by submitting the contract deployment transaction to the blockchain system to obtain the transaction hash. In addition, in some embodiments, method 4 may further include the following steps: using the private key to sign the contract deployment transaction before submitting the contract deployment transaction to the blockchain system.

在某些實施例中,關於方法4,電子裝置可基於SHA-3演算法而產生商業資料之專用資料雜湊。同樣地,在某些實施例中,該商業資料可包含對應於商業交易活動之一文本、一影像、一音訊及一視訊至少其中之一。 In some embodiments, regarding method 4, the electronic device may generate a dedicated data hash of the business data based on the SHA-3 algorithm. Likewise, in some embodiments, the commercial information may include at least one of text, an image, an audio, and a video corresponding to the commercial transaction activity.

第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. Method 5 of verifying business data through a blockchain system may include the following steps performed by an electronic device in the blockchain system: generating a dedicated data hash based on the business data (labeled step 501); Hash to obtain the address of a smart contract in the blockchain system (marked as step 502); access the smart contract through the address of the smart contract (marked as step 503); determine whether the dedicated data hashing Stored in the smart contract (labeled step 504); and When it is determined that the special data is hashed and stored in the smart contract, the business data is approved, so that a commercial transaction activity in the real world is verified by the blockchain system (marked as step 505).

在某些實施例中,方法5可還包含下列步驟:判斷該交易雜湊是否是基於與該區塊鏈系統之一使用者帳戶對應之一私鑰產生的。當判斷出該交易雜湊是基於該私鑰產生的,且該專用資料雜湊包含在該智慧合約中時,電子裝置可批准該商業資料。此外,在某些實施例中,電子裝置可藉由使用與該使用者帳戶對應之一公鑰認證該交易雜湊,進而判斷該交易雜湊是否是基於該私鑰產生的。 In some embodiments, method 5 may further include the following step: determining whether the transaction hash is generated based on a private key corresponding to a user account of the blockchain system. When it is determined that the transaction hash is generated based on the private key and the private data hash is included in the smart contract, the electronic device can approve the business data. In addition, in some embodiments, the electronic device can authenticate the transaction hash by using a public key corresponding to the user account, and thereby determine whether the transaction hash is generated based on the private key.

在某些實施例中,關於方法5,電子裝置可基於SHA-3演算法產生該專用資料雜湊。此外,在某些實施例中,商業資料可包含對應於商業交易活動之一文本、一影像、一音訊及一視訊至少其中之一。 In some embodiments, regarding method 5, the electronic device may generate the private data hash based on the SHA-3 algorithm. In addition, in some embodiments, the commercial information may include at least one of text, an image, an audio, and a video corresponding to the commercial transaction activity.

方法4及方法5之每一實施例基本上對應於區塊鏈系統1之電子裝置11或電子裝置12之某一實施例。因此,即使以上並未詳細闡述方法4及方法5之所有實施例,但本發明所屬技術領域中具有通常知識者藉由參照以上針對區塊鏈系統1之電子裝置11或電子裝置12之說明便可完全理解及實現方法4及方法5之所有相應實施例。 Each embodiment of method 4 and method 5 basically corresponds to a certain embodiment of the electronic device 11 or the electronic device 12 of the blockchain system 1 . Therefore, even though all the embodiments of method 4 and method 5 are not described in detail above, those with ordinary knowledge in the technical field to which the present invention belongs can refer to the above description of the electronic device 11 or the electronic device 12 of the blockchain system 1 All corresponding embodiments of Method 4 and Method 5 can be fully understood and implemented.

上述揭露內容係關於其詳細技術內容及發明特徵。本發明所屬技術領域中具有通常知識者可在不背離本發明之特性之情況下基於所闡述的本發明之揭露內容及建議進行各種修改及替換。然而,儘管未在以上說明中完全揭露此類修改及替換,但該等修改及替換基本上已被如下所附的申請專利範圍所涵蓋。 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)

一種藉由一區塊鏈系統保護商業資料之裝置,包含:一儲存器,用以儲存該商業資料及一交易雜湊,該商業資料對應於真實世界中之一商業交易活動之機密資訊;一收發器,與該儲存器電性連接;以及一處理器,與該儲存器及該收發器電性連接,用以:根據該交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址;根據該商業資料而產生一專用資料雜湊;以及基於該專用資料雜湊及該智慧合約之該位址而產生一交易;其中,該收發器用以向該區塊鏈系統提交該交易,進而將該專用資料雜湊儲存於該智慧合約中,以讓一驗證裝置透過存取該智慧合約而驗證該商業交易活動是否曾以該商業資料所顯示之方式實際發生。 A device for protecting business data through a blockchain system, including: a storage device for storing the business data and a transaction hash, the business data corresponding to confidential information of a business transaction in the real world; a transceiver a processor, electrically connected to the storage; and a processor, electrically connected to the storage and the transceiver, for: obtaining 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 generate a transaction based on the dedicated data hash and the address of the smart contract; wherein the transceiver is used to submit the transaction to the blockchain system, thereby converting the transaction Special data hashes are stored in the smart contract to allow a verification device to verify whether the business transaction actually occurred in the manner indicated by the business data by accessing the smart contract. 如請求項1所述之裝置,其中,該智慧合約對應於該區塊鏈系統之一使用者帳戶,該儲存器還用以儲存該使用者帳戶之一私鑰,且該處理器還用以在向該區塊鏈系統提交該交易之前,使用該私鑰簽署該交易。 The device of claim 1, wherein the smart contract corresponds to a user account of the blockchain system, the storage is also used to store a private key of the user account, and the processor is also used to This private key is used to sign the transaction before it is submitted to the blockchain system. 如請求項1所述之裝置,其中:該智慧合約對應於該區塊鏈系統之一使用者帳戶;該儲存器還用以儲存該使用者帳戶之一私鑰;該處理器還用以: 基於該私鑰而產生該使用者帳戶之一公鑰;基於該公鑰而產生該使用者帳戶在該區塊鏈系統中之一位址;以及基於該私鑰、該公鑰及該使用者帳戶之該位址而產生一合約部署交易;且該收發器還用以藉由向該區塊鏈系統提交該合約部署交易而部署該智慧合約,進而獲得該交易雜湊。 The device as described in claim 1, wherein: the smart contract corresponds to a user account of the blockchain system; the storage is also used to store a private key of the user account; the processor is also used to: Generate the public key of the user account based on the private key; generate the address of the user account in the blockchain system based on the public key; and generate the address of the user account in the blockchain system based on the private key, the public key and the user The address of the account is used to generate a contract deployment transaction; and the transceiver is also used to deploy the smart contract by submitting the contract deployment transaction to the blockchain system, thereby obtaining the transaction hash. 如請求項3所述之裝置,其中,該處理器還用以在向該區塊鏈系統提交該合約部署交易之前,使用該私鑰簽署該合約部署交易。 The device as described in claim 3, wherein the processor is also used to use the private key to sign the contract deployment transaction before submitting the contract deployment transaction to the blockchain system. 如請求項1所述之裝置,其中,該處理器基於第三代安全雜湊演算法而產生該商業資料之該專用資料雜湊。 The device of claim 1, wherein the processor generates the specialized data hash of the business data based on a third-generation secure hash algorithm. 如請求項1所述之裝置,其中,該商業資料包含與該商業交易活動對應之一文本、一影像、一音訊及一視訊至少其中之一。 The device according to claim 1, wherein the commercial information includes at least one of text, an image, an audio and a video corresponding to the commercial transaction activity. 一種藉由一區塊鏈系統驗證商業資料之裝置,包含:一儲存器,用以儲存該商業資料及一交易雜湊;一收發器,與該儲存器電性連接;以及一處理器,與該儲存器及該收發器電性連接,用以:根據該商業資料而產生一專用資料雜湊;以及根據該交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址;其中,該收發器用以經由該智慧合約之該位址而存取該智慧合約,且該處理器還用以:判斷該專用資料雜湊是否包含在該智慧合約中;以及當判斷出該專用資料雜湊儲存於該智慧合約中時,確認 真實世界中之一商業交易活動曾以該商業資料所顯示之方式實際發生,進而批准該商業資料。 A device for verifying business data through a blockchain system, including: a storage to store the business data and a transaction hash; a transceiver, electrically connected to the storage; and a processor, to the storage The storage and the transceiver are electrically connected 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; wherein, the transceiver The processor is used to access the smart contract through the address of the smart contract, and the processor is also used to: determine whether the dedicated data hash is included in the smart contract; and when it is determined that the dedicated data hash is stored in the smart contract When in contract, confirm A business transaction in the real world has actually occurred in the manner shown in the business information, and then the business information is approved. 如請求項7所述之裝置,其中:該處理器還用以判斷該交易雜湊是否是基於與該區塊鏈系統之一使用者帳戶對應之一私鑰而產生的;當判斷出該交易雜湊是基於該私鑰而產生的,且該專用資料雜湊包含在該智慧合約中時,該處理器批准該商業資料。 The device as described in claim 7, wherein: the processor is also used to determine whether the transaction hash is generated based on a private key corresponding to a user account of the blockchain system; when determining that the transaction hash is The processor approves the business data when it is generated based on the private key and the private data hash is included in the smart contract. 如請求項8所述之裝置,其中,該儲存器還用以儲存與該使用者帳戶對應之一公鑰,且該處理器還用以使用該公鑰認證該交易雜湊,以判斷該交易雜湊是否是基於該私鑰而產生的。 The device of claim 8, wherein the storage is also used to store a public key corresponding to the user account, and the processor is also used to use the public key to authenticate the transaction hash to determine the transaction hash. Whether it is generated based on the private key. 如請求項7所述之裝置,其中,該處理器基於第三代安全雜湊演算法而產生該專用資料雜湊。 The device of claim 7, wherein the processor generates the dedicated data hash based on a third generation secure hash algorithm. 如請求項7所述之裝置,其中,該商業資料包含與該商業交易活動對應之一文本、一影像、一音訊及一視訊至少其中之一。 The device of claim 7, wherein the commercial information includes at least one of text, an image, an audio and a video corresponding to the commercial transaction activity. 一種藉由一區塊鏈系統保護商業資料之方法,該商業資料對應於真實世界中之一商業交易活動之機密資訊,且該方法包含由該區塊鏈系統中之一電子裝置執行之下列步驟:根據一交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址;根據該商業資料而產生一專用資料雜湊;基於該專用資料雜湊及該智慧合約之該位址產生一交易;以及向該區塊鏈系統提交該交易以將該專用資料雜湊儲存於該智慧合約中,以讓一驗證裝置透過存取該智慧合約而驗證該商業交 易活動是否曾以該商業資料所顯示之方式實際發生。 A method of protecting business data through a blockchain system, the business data corresponding to confidential information of a commercial transaction in the real world, and the method includes the following steps executed by an electronic device in the blockchain system : Obtain the address of a smart contract in the blockchain system based on a transaction hash; generate a dedicated data hash based on the business data; generate a transaction based on the dedicated data hash and the address of the smart contract; and submitting the transaction to the blockchain system to hash and store the dedicated data in the smart contract, so that a verification device can verify the commercial transaction by accessing the smart contract. Whether the trading activities have actually occurred in the manner shown in the business information. 如請求項12所述之方法,其中,該智慧合約對應於該區塊鏈系統之一使用者帳戶,且該方法還包含下列步驟:在向該區塊鏈系統提交該交易之前,使用該使用者帳戶之一私鑰簽署該交易。 The method of claim 12, wherein the smart contract corresponds to a user account of the blockchain system, and the method further includes the following steps: before submitting the transaction to the blockchain system, use the user account Sign the transaction with one of the account's private keys. 如請求項12所述之方法,其中,該智慧合約對應於該區塊鏈系統之一使用者帳戶,且該方法還包含下列步驟:基於該使用者帳戶之一私鑰而產生該使用者帳戶之一公鑰;基於該公鑰而產生該使用者帳戶在該區塊鏈系統中之一位址;基於該私鑰、該公鑰及該使用者帳戶之該位址而產生一合約部署交易;以及藉由向該區塊鏈系統提交該合約部署交易而部署該智慧合約,進而獲得該交易雜湊。 The method of claim 12, wherein the smart contract corresponds to a user account of the blockchain system, and the method further includes the following steps: generating the user account based on a private key of the user account a public key; generate the address of the user account in the blockchain system based on the public key; generate a contract deployment transaction based on the private key, the public key and the address of the user account ; and deploy the smart contract by submitting the contract deployment transaction to the blockchain system, thereby obtaining the transaction hash. 如請求項14所述之方法,還包含下列步驟:在向該區塊鏈系統提交該合約部署交易之前,使用該私鑰簽署該合約部署交易。 The method described in request 14 also includes the following steps: using the private key to sign the contract deployment transaction before submitting the contract deployment transaction to the blockchain system. 如請求項12所述之方法,其中,該電子裝置基於第三代安全雜湊演算法而產生該商業資料之該專用資料雜湊。 The method of claim 12, wherein the electronic device generates the dedicated data hash of the business data based on a third-generation secure hash algorithm. 如請求項12所述之方法,其中,該商業資料包含與該商業交易活動對應之一文本、一影像、一音訊及一視訊至少其中之一。 The method of claim 12, wherein the commercial information includes at least one of text, an image, an audio and a video corresponding to the commercial transaction activity. 一種藉由一區塊鏈系統驗證商業資料之方法,包含由該區塊鏈系統中之一電子裝置執行之下列步驟:根據該商業資料而產生一專用資料雜湊;根據一交易雜湊而獲得一智慧合約在該區塊鏈系統中之一位址; 經由該智慧合約之該位址而存取該智慧合約;判斷該專用資料雜湊是否儲存於該智慧合約中;以及當判斷出該專用資料雜湊儲存於該智慧合約中時,確認真實世界中之一商業交易活動曾以該商業資料所顯示之方式實際發生,進而批准該商業資料。 A method of verifying business data through a blockchain system, including the following steps performed by an electronic device in the blockchain system: generating a dedicated data hash based on the business data; obtaining an intelligence based on a transaction hash One of the addresses of the contract in the blockchain system; Access the smart contract via the address of the smart contract; determine whether the dedicated data hash is stored in the smart contract; and when it is determined that the dedicated data hash is stored in the smart contract, confirm one of the real-world Business transactions have actually occurred in the manner shown in the business information, and the business information is approved. 如請求項18所述之方法,還包含下列步驟:判斷該交易雜湊是否是基於與該區塊鏈系統之一使用者帳戶對應之一私鑰而產生的;其中,當判斷出該交易雜湊是基於該私鑰產生的,且該專用資料雜湊包含在該智慧合約中時,該電子裝置批准該商業資料。 The method described in claim 18 also includes the following steps: determining whether the transaction hash is generated based on a private key corresponding to a user account of the blockchain system; wherein, when it is determined that the transaction hash is The electronic device approves the business information generated based on the private key and the private information hash is included in the smart contract. 如請求項19所述之方法,其中,該電子裝置藉由使用與該使用者帳戶對應之一公鑰而認證該交易雜湊,進而判斷該交易雜湊是否是基於該私鑰產生的。 The method of claim 19, wherein the electronic device authenticates the transaction hash by using a public key corresponding to the user account, and then determines whether the transaction hash is generated based on the private key. 如請求項18所述之方法,其中,該電子裝置基於第三代安全雜湊演算法而產生該專用資料雜湊。 The method of claim 18, wherein the electronic device generates the dedicated data hash based on a third-generation secure hash algorithm. 如請求項18所述之方法,其中,該商業資料包含與該商業交易活動對應之一文本、一影像、一音訊及一視訊至少其中之一。 The method of claim 18, wherein the commercial information includes at least one of text, an image, an audio and a video corresponding to the commercial transaction activity.
TW111126825A 2022-07-18 2022-07-18 Device and method for securing and verifying business data via a blockchain system TWI824625B (en)

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)

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

Patent Citations (3)

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