TWI670671B - Blockchain-based environment detection method and system thereof - Google Patents

Blockchain-based environment detection method and system thereof Download PDF

Info

Publication number
TWI670671B
TWI670671B TW108100220A TW108100220A TWI670671B TW I670671 B TWI670671 B TW I670671B TW 108100220 A TW108100220 A TW 108100220A TW 108100220 A TW108100220 A TW 108100220A TW I670671 B TWI670671 B TW I670671B
Authority
TW
Taiwan
Prior art keywords
blockchain
environmental
data
server
environment
Prior art date
Application number
TW108100220A
Other languages
Chinese (zh)
Other versions
TW202027009A (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 TW108100220A priority Critical patent/TWI670671B/en
Application granted granted Critical
Publication of TWI670671B publication Critical patent/TWI670671B/en
Publication of TW202027009A publication Critical patent/TW202027009A/en

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

提供一種基於區塊鏈的環境偵測方法,包括:產生對應於環境區塊鏈的感測資料,其中環境區塊鏈儲存對應於感測資料的歷史資料;對感測資料進行加密以產生加密資料;對加密資料進行解密以產生解密資料;以及基於解密資料與歷史資料之間的梯度變化量超過第一閾值而調整環境區塊鏈的窮舉猜測值。A method for detecting an environment based on a blockchain includes: generating sensing data corresponding to an environmental blockchain, wherein the environmental blockchain stores historical data corresponding to the sensing data; and encrypting the sensing data to generate encryption Data; decrypting the encrypted data to generate decrypted data; and adjusting an exhaustive guess of the environmental blockchain based on the amount of gradient change between the decrypted data and the historical data exceeding a first threshold.

Description

基於區塊鏈的環境偵測方法及其系統Block chain based environment detection method and system thereof

本發明是有關於一種測量值之記錄的技術,且特別是有關於一種基於區塊鏈的環境偵測方法及其系統。The present invention relates to a technique for recording a measured value, and more particularly to a blockchain based environment detecting method and system therefor.

隨著環保意識提升,人們對環境影響評估的監督越趨於重視。為了對環境進行監視,與環保相關的機構可使用物聯網(Internet of Things,IoT)技術來大量地取得與環境變化相關的參數,並據以分析環境是否產生變化。舉例來說,環保機構可將與水質相關的感測器安裝於工廠的出水口,並且基於該感測器所感測到的資料判斷該工廠是否違反環保法規。建構完善的物聯網需要使用到為數眾多的感測器。在人們無法完整地檢視每一個感測器及其相關閘道器的情況下,可能會有不肖業者為了符合法規而逕自竄改感測資料。因此,如何有效地保護物聯網內的資料不被竄改,是本領域人員致力的目標之一。As environmental awareness increases, people's supervision of environmental impact assessment becomes more and more important. In order to monitor the environment, environmentally-related organizations can use the Internet of Things (IoT) technology to obtain a large number of parameters related to environmental changes, and to analyze whether the environment changes. For example, an environmental protection agency can install a sensor related to water quality at a water outlet of a factory, and based on the data sensed by the sensor, determine whether the factory violates environmental regulations. Building a well-established Internet of Things requires the use of a large number of sensors. In the event that one cannot fully view each sensor and its associated gateway, there may be unscrupulous tampering with the sensory data in order to comply with regulations. Therefore, how to effectively protect the information in the Internet of Things from being tampered with is one of the goals that people in the field are committed to.

本發明提供一種基於區塊鏈的環境偵測系統,包括感測器、閘道器、管理伺服器以及環境偵測區塊鏈伺服器。感測器產生對應於環境區塊鏈的感測資料,其中環境區塊鏈儲存對應於感測資料的歷史資料。閘道器通訊連接至感測器。閘道器接收感測資料,並且對感測資料進行加密以產生加密資料。管理伺服器通訊連接至閘道器。管理伺服器接收加密資料,並且對加密資料進行解密以產生解密資料。環境偵測區塊鏈伺服器通訊連接至管理伺服器以及環境區塊鏈。環境偵測區塊鏈伺服器接收解密資料和歷史資料,並且基於解密資料與歷史資料之間的梯度變化量超過第一閾值而調整環境區塊鏈的窮舉猜測值。The invention provides a blockchain-based environment detection system, which comprises a sensor, a gateway, a management server and an environment detection blockchain server. The sensor generates sensing data corresponding to the environmental blockchain, wherein the environmental blockchain stores historical data corresponding to the sensed data. The gateway communication is connected to the sensor. The gateway receives the sensing data and encrypts the sensing data to generate encrypted data. The management server communication is connected to the gateway. The management server receives the encrypted material and decrypts the encrypted data to generate decrypted data. The environment detection blockchain server communication is connected to the management server and the environmental blockchain. The environment detection blockchain server receives the decrypted data and the historical data, and adjusts the exhaustive guess value of the environmental blockchain based on the gradient change between the decrypted data and the historical data exceeding the first threshold.

本發明提供一種基於區塊鏈的環境偵測方法,包括:產生對應於環境區塊鏈的感測資料,其中環境區塊鏈儲存對應於感測資料的歷史資料;對感測資料進行加密以產生加密資料;對加密資料進行解密以產生解密資料;以及基於解密資料與歷史資料之間的梯度變化量超過第一閾值而調整環境區塊鏈的窮舉猜測值。The present invention provides a blockchain-based environment detection method, including: generating sensing data corresponding to an environmental blockchain, wherein the environmental blockchain stores historical data corresponding to the sensing data; and encrypting the sensing data to Generating encrypted data; decrypting the encrypted data to generate decrypted data; and adjusting an exhaustive guess of the environmental blockchain based on the amount of gradient change between the decrypted data and the historical data exceeding a first threshold.

基於上述,本發明利用區塊鏈的技術儲存與環境相關的感測資料,使感測資料不易受到竄改。Based on the above, the present invention utilizes the technology of the blockchain to store the sensing data related to the environment, so that the sensing data is not easily falsified.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

圖1根據本發明的實施例繪示一種基於區塊鏈的環境偵測系統10的示意圖。環境偵測系統10可包括感測器101、閘道器200、管理伺服器300、環境偵測區塊鏈伺服器400、查詢介面500以及反應伺服器600。在環境偵測系統10中,感測器的類型和數量可由使用者依其需求而配置,本發明不限於此。舉例來說,在一實施例中,除了感測器101之外,環境偵測系統10還可包括感測器102、感測器103以及感測器104等感測器。FIG. 1 is a schematic diagram of a blockchain based environment detection system 10 according to an embodiment of the invention. The environment detection system 10 can include a sensor 101, a gateway 200, a management server 300, an environment detection blockchain server 400, a query interface 500, and a response server 600. In the environment detecting system 10, the type and number of sensors can be configured by the user according to their needs, and the present invention is not limited thereto. For example, in an embodiment, in addition to the sensor 101, the environment detecting system 10 may further include a sensor such as the sensor 102, the sensor 103, and the sensor 104.

不同類型的感測器分別對應於不同的環境區塊鏈。在本實施例中,感測器101係用以偵測環境之溫濕度的溫濕度計,並且對應於與溫濕度的感測資料相關聯的環境區塊鏈A,其中環境區塊鏈A儲存了對應於與溫濕度相關的感測資料的歷史資料。感測器102係用以進行水位監測的水位計,並且對應於與水位的感測資料相關聯的環境區塊鏈B,其中環境區塊鏈B儲存了對應於與水位相關的感測資料的歷史資料。感測器103係用以偵測空氣汙染的空氣偵測器,並且對應於與空氣汙染的感測資料相關聯的環境區塊鏈C,其中環境區塊鏈C儲存了對應於與空氣汙染相關的感測資料的歷史資料。感測器104係用以進行交通管理的無線電射頻辨識(radio frequency identifier,RFID)感測器,並且對應於與交通管理的感測資料相關聯的環境區塊鏈D,其中環境區塊鏈D儲存了對應於與交通管理相關的感測資料的歷史資料。為便於說明,以下實施例中將聚焦於感測器101及其相關的元件,然所屬技術領域中具有通常知識者應知曉,與感測器101相關的敘述亦可適用於其他類型的感測器(例如:感測器102、感測器103以及感測器104)。Different types of sensors correspond to different environmental blockchains, respectively. In this embodiment, the sensor 101 is used to detect the temperature and humidity of the environment, and corresponds to the environmental blockchain A associated with the temperature and humidity sensing data, wherein the environmental block chain A is stored. Historical data corresponding to the sensing data related to temperature and humidity. The sensor 102 is a water level gauge for performing water level monitoring, and corresponds to an environmental blockchain B associated with the sensing data of the water level, wherein the environmental blockchain B stores sensing data corresponding to the water level. Historical data. The sensor 103 is an air detector for detecting air pollution, and corresponds to an environmental block chain C associated with the air pollution sensing data, wherein the environmental block chain C is stored corresponding to air pollution. Historical data of the sensory data. The sensor 104 is a radio frequency identifier (RFID) sensor for performing traffic management, and corresponds to an environmental blockchain D associated with the traffic management sensed data, wherein the environmental blockchain D Historical data corresponding to the sensing data related to traffic management is stored. For ease of explanation, the sensor 101 and its associated components will be focused on in the following embodiments, but those of ordinary skill in the art will appreciate that the description associated with the sensor 101 can also be applied to other types of sensing. (eg, sensor 102, sensor 103, and sensor 104).

閘道器200具有處理單元(如:處理器但不限於此)、通訊單元(如:各類通訊晶片、藍芽晶片、WiFi晶片等但不限於此)及儲存單元(如:可移動隨機存取記憶體、快閃記憶體、硬碟等但不限於此)等運行閘道器200的必要構件。The gateway 200 has a processing unit (such as a processor but is not limited thereto), a communication unit (such as various types of communication chips, a Bluetooth chip, a WiFi chip, etc. but not limited thereto) and a storage unit (eg, removable random storage) The necessary components for operating the gateway 200, such as a memory, a flash memory, a hard disk, and the like, are not limited thereto.

閘道器200通訊連接至感測器101。閘道器200可自感測器101接收感測資料,並且對感測資料進行加密以產生加密資料。具體來說,當感測器101欲加入環境偵測系統10時,感測器101可對閘道器200提出註冊請求。感測器101可將出廠時即內建的身分識別碼傳送給閘道器200。閘道器200可根據所接收到的身分識別碼產生對應於感測器101的公鑰以及私鑰。閘道器200可透過網路NW而將產生的公鑰傳送給管理伺服器300,以使管理伺服器300得以對私鑰加密過的資料進行解密,其中網路NW可例如是物聯網,本發明不限於此。在對應感測器101的公鑰以及私鑰產生後,感測器101的註冊程序即已完成。The gateway 200 is communicatively coupled to the sensor 101. The gateway 200 can receive the sensing data from the sensor 101 and encrypt the sensing data to generate encrypted data. Specifically, when the sensor 101 is to join the environment detecting system 10, the sensor 101 can make a registration request to the gateway 200. The sensor 101 can transmit the identity identifier built in at the factory to the gateway 200. The gateway 200 can generate a public key corresponding to the sensor 101 and a private key based on the received identity identification code. The gateway 200 can transmit the generated public key to the management server 300 through the network NW, so that the management server 300 can decrypt the data encrypted by the private key, wherein the network NW can be, for example, the Internet of Things. The invention is not limited to this. After the public key of the corresponding sensor 101 and the private key are generated, the registration procedure of the sensor 101 is completed.

在完成感測器101的註冊程序後,閘道器200可開始接收來自感測器101的感測資料。閘道器200可使用對應於感測器101的私鑰對感測資料進行加密,以產生對應的加密資料。接著,閘道器200可透過網路NW將加密資料傳送至管理伺服器300。在一實施例中,閘道器200可針對不同類型以及來源的感測資料進行分類以及私鑰加密。Upon completion of the registration procedure of the sensor 101, the gateway 200 can begin receiving sensed data from the sensor 101. The gateway 200 can encrypt the sensing data using a private key corresponding to the sensor 101 to generate corresponding encrypted material. Next, the gateway 200 can transmit the encrypted data to the management server 300 via the network NW. In an embodiment, the gateway 200 can classify and encrypt private keys for different types and sources of sensing data.

管理伺服器300具有處理單元(如:處理器但不限於此)、通訊單元(如:各類通訊晶片、藍芽晶片、WiFi晶片等但不限於此)及儲存單元(如:可移動隨機存取記憶體、快閃記憶體、硬碟等但不限於此)等運行管理伺服器300的必要構件。The management server 300 has a processing unit (such as a processor but is not limited thereto), a communication unit (such as various types of communication chips, a Bluetooth chip, a WiFi chip, etc. but not limited thereto) and a storage unit (eg, removable random storage) It is necessary to run the management server 300, such as a memory, a flash memory, a hard disk, etc., but is not limited thereto.

管理伺服器300通過網路NW而與閘道器200通訊連接。管理伺服器300可接收來自閘道器200的加密資料,並且使用對應於感測器101的公鑰以對加密資料進行解密以產生解密資料。若解密成功,則代表管理伺服器300所接收到的加密資料確實是由閘道器200所傳送。換言之,閘道器200所使用的私鑰相當於閘道器200的電子簽章。在產生解密資料後,管理伺服器300可對解密資料進行分類以及暫存。待環境偵測區塊鏈伺服器400在區塊鏈上建立了對應於解密資料的區塊後,解密資料方可儲存於對應的區塊之中。The management server 300 is communicatively coupled to the gateway 200 via the network NW. The management server 300 can receive the encrypted material from the gateway 200 and use the public key corresponding to the sensor 101 to decrypt the encrypted material to generate decrypted material. If the decryption is successful, the encrypted data received on behalf of the management server 300 is indeed transmitted by the gateway 200. In other words, the private key used by the gateway 200 corresponds to the electronic signature of the gateway 200. After the decrypted data is generated, the management server 300 can classify and temporarily store the decrypted data. After the environment detecting blockchain server 400 establishes a block corresponding to the decrypted data on the blockchain, the decrypted data can be stored in the corresponding block.

環境偵測區塊鏈伺服器400具有處理單元(如:處理器但不限於此)、通訊單元(如:各類通訊晶片、藍芽晶片、WiFi晶片等但不限於此)及儲存單元(如:可移動隨機存取記憶體、快閃記憶體、硬碟等但不限於此)等運行環境偵測區塊鏈伺服器400的必要構件。The environment detection blockchain server 400 has a processing unit (such as a processor but is not limited thereto), a communication unit (such as various types of communication chips, a Bluetooth chip, a WiFi chip, etc., but is not limited thereto) and a storage unit (such as : Removable random access memory, flash memory, hard disk, etc., but not limited to this, etc. The operating environment detects the necessary components of the blockchain server 400.

環境偵測區塊鏈伺服器400通訊連接至管理伺服器300、環境區塊鏈A、環境區塊鏈B、環境區塊鏈C以及環境區塊鏈D。環境偵測區塊鏈伺服器400可自管理伺服器300接收解密資料並且自環境區塊鏈A接收對應的歷史資料。環境偵測區塊鏈伺服器400可暫存解密資料,並且計算解密資料與歷史資料之間的梯度變化量。若梯度變化量超過一閾值,代表感測器101所感測的環境發生顯著地改變,環境偵測區塊鏈伺服器400可基於梯度變化量超過該閾值而調整環境區塊鏈A的窮舉猜測值(Nonce)。The environment detection blockchain server 400 is communicatively coupled to the management server 300, the environmental blockchain A, the environmental blockchain B, the environmental blockchain C, and the environmental blockchain D. The environment detection blockchain server 400 can receive decrypted data from the management server 300 and receive corresponding historical data from the environmental blockchain A. The environment detection blockchain server 400 can temporarily store the decrypted data and calculate the amount of gradient change between the decrypted data and the historical data. If the gradient change exceeds a threshold, the environment sensed by the sensor 101 changes significantly, and the environment detection blockchain server 400 can adjust the exhaustive guess of the environmental blockchain A based on the gradient variation exceeding the threshold. Value (Nonce).

具體來說,環境偵測區塊鏈伺服器400可基於梯度變化量超過該閾值而調整環境區塊鏈A的窮舉猜測值的位數調低。亦即,網路NW中各個與環境區塊鏈A相關的運算節點(可包括閘道器200)猜中環境區塊鏈A的窮舉猜測值的難度將降低,換言之,建立環境區塊鏈A上的區塊的時間將被縮短。響應於建立環境區塊鏈A上的區塊的時間被縮短,環境偵測區塊鏈伺服器400可更頻繁地將所暫存的解密資料儲存至環境區塊鏈A之中。Specifically, the environment detection blockchain server 400 may adjust the number of bits of the exhaustive guess value of the environmental blockchain A based on the gradient variation exceeding the threshold. That is, each computing node associated with the environmental blockchain A in the network NW (which may include the gateway 200) guesses that the difficulty of guessing the exhaustive guess of the environmental blockchain A will be reduced, in other words, establishing an environmental blockchain. The time of the block on A will be shortened. In response to the time to establish a block on the environmental blockchain A is shortened, the environment detecting blockchain server 400 can store the temporarily stored decrypted material into the environmental blockchain A more frequently.

環境偵測區塊鏈伺服器400可基於環境區塊鏈A的窮舉猜測值被關聯於環境區塊鏈A的運算節點(可包括閘道器200)猜中而建立用以儲存解密資料的區塊,並將解密資料儲存至環境區塊鏈A的區塊之中。對應於環境區塊鏈A的工作量證明(Proof-of-Work,PoW)將基於環境區塊鏈A的窮舉猜測值被猜中而增加。舉例來說,若關聯於環境區塊鏈A的一運算節點猜中了窮舉猜測值並且獲得了工作量證明,則該運算節點可將與其工作量證明相關的資訊傳送至環境偵測區塊鏈伺服器400。環境偵測區塊鏈伺服器400可接收關聯於環境區塊鏈A的工作量證明並對工作量證明進行累加計算。The environment detection blockchain server 400 can be established to store the decrypted data based on the exhaustive guess value of the environmental blockchain A being associated with the computing node of the environmental blockchain A (which can include the gateway 200). Block and store the decrypted data in the block of the environmental blockchain A. The Proof-of-Work (PoW) corresponding to the environmental blockchain A is increased based on the guess of the environmental blockchain A. For example, if an operation node associated with the environmental blockchain A guesses the exhaustive guess value and obtains the proof of the workload, the operation node can transmit the information related to the proof of the workload to the environment detection block. Chain server 400. The environment detection blockchain server 400 can receive the workload proof associated with the environmental blockchain A and perform an accumulated calculation on the workload proof.

在一實施例中,環境區塊鏈A可儲存對應於工作量證明的智慧合約,且智慧合約可基於工作量證明超過一閾值而被觸發。舉例來說,假設感測器101為溫濕度計。當感測器101所感測到的溫濕度發生顯著地變化時,環境偵測區塊鏈伺服器400將調低環境區塊鏈A的窮舉猜測值的位數,使感測器101所感測的感測資料可被更頻繁地記錄至環境區塊鏈A的新建立的區塊之中,而環境區塊鏈A的工作量證明也會隨著每一筆感測資料之區塊的產生而增加。若對應於環境區塊鏈A的工作量證明持續地增加,將觸發環境偵測區塊鏈伺服器400執行智慧合約所記載的內容。In an embodiment, the environmental blockchain A may store a smart contract corresponding to the proof of workload, and the smart contract may be triggered based on the proof of the workload exceeding a threshold. For example, assume that the sensor 101 is a thermometer and hygrometer. When the temperature and humidity sensed by the sensor 101 change significantly, the environment detection blockchain server 400 will lower the number of bits of the exhaustive guess value of the environmental blockchain A, so that the sensor 101 senses The sensing data can be recorded to the newly created block of the environmental blockchain A more frequently, and the workload proof of the environmental blockchain A will also be generated along with the block of each sensing data. increase. If the workload corresponding to the environmental blockchain A proves to continue to increase, the environment detection blockchain server 400 is triggered to execute the content described in the smart contract.

查詢介面500通訊連接至管理伺服器300。查詢介面500可響應於智慧合約被觸發而發送預警訊息。具體來說,使用者可透過查詢介面500查詢關聯於環境區塊鏈A的資料,諸如感測資料、歷史資料等等。查詢介面500可例如是一種人機介面(Human-Machine Interface,HMI),或是由軟體模組所控制的使用者介面(User Interface,UI),本發明不限於此。當環境區塊鏈A中的智慧合約被觸發後,管理伺服器300可自環境偵測區塊鏈伺服器400接收與該智慧合約相關的示警訊息。查詢介面500可由管理伺服器300接收該示警訊息並且發送出對應的預警訊息。The query interface 500 is communicatively coupled to the management server 300. The query interface 500 can send an alert message in response to the smart contract being triggered. Specifically, the user can query the information associated with the environmental blockchain A through the query interface 500, such as sensing data, historical data, and the like. The query interface 500 can be, for example, a Human-Machine Interface (HMI) or a User Interface (UI) controlled by a software module, and the present invention is not limited thereto. When the smart contract in the environmental blockchain A is triggered, the management server 300 can receive the alert message related to the smart contract from the environment detecting blockchain server 400. The query interface 500 can receive the alert message from the management server 300 and send a corresponding alert message.

反應伺服器600具有處理單元(如:處理器但不限於此)、通訊單元(如:各類通訊晶片、藍芽晶片、WiFi晶片等但不限於此)及儲存單元(如:可移動隨機存取記憶體、快閃記憶體、硬碟等但不限於此)等運行反應伺服器600的必要構件。The reaction server 600 has a processing unit (such as a processor but is not limited thereto), a communication unit (such as various types of communication chips, a Bluetooth chip, a WiFi chip, etc. but not limited thereto) and a storage unit (eg, removable random storage) It is necessary to operate the response server 600, such as a memory, a flash memory, a hard disk, etc., but is not limited thereto.

反應伺服器600通訊連接至環境偵測區塊鏈伺服器400。反應伺服器600可響應於環境區塊鏈A中的智慧合約被觸發而控制關聯於環境區塊鏈A的終端裝置。具體來說,當環境區塊鏈A中的智慧合約被觸發後,環境偵測區塊鏈伺服器400可發送對應的訊息至反應伺服器600。反應伺服器可響應於接收到該訊息而控制關聯於環境區塊鏈A的終端裝置。舉例來說,若環境區塊鏈A關聯於溫濕度,則終端裝置可例如是暖器機、冷氣機、除濕機或加濕器等關聯於溫濕度的終端裝置。當感測器101感測到濕度急遽下降而導致環境區塊鏈A中的智慧合約被觸發後,反應伺服器600可響應於智慧合約被觸發而根據智慧合約所記載的內容來控制暖器機釋放暖器,藉以提高溫度。The response server 600 is communicatively coupled to the environmental detection blockchain server 400. The response server 600 can control the terminal devices associated with the environmental blockchain A in response to the smart contract in the environmental blockchain A being triggered. Specifically, when the smart contract in the environmental blockchain A is triggered, the environment detecting blockchain server 400 can send a corresponding message to the response server 600. The response server can control the terminal device associated with the environmental blockchain A in response to receiving the message. For example, if the environmental blockchain A is associated with temperature and humidity, the terminal device may be, for example, a terminal device associated with temperature and humidity, such as a warmer, an air conditioner, a dehumidifier, or a humidifier. When the sensor 101 senses that the humidity is drastically lowered and the smart contract in the environmental blockchain A is triggered, the response server 600 can trigger the heater release according to the content recorded in the smart contract in response to the smart contract being triggered. Warmer to increase the temperature.

圖2根據本發明的實施例繪示一種基於區塊鏈的環境偵測方法的流程圖,其中環境偵測方法可由環境偵測系統10實施。在步驟S21,產生對應於環境區塊鏈的感測資料,其中環境區塊鏈儲存對應於感測資料的歷史資料。在步驟S22,對感測資料進行加密以產生加密資料。在步驟S23,對加密資料進行解密以產生解密資料。在步驟S24,基於解密資料與歷史資料之間的梯度變化量超過第一閾值而調整環境區塊鏈的窮舉猜測值。FIG. 2 is a flowchart of a method for detecting an environment based on a blockchain according to an embodiment of the present invention. The environment detection method may be implemented by the environment detection system 10. In step S21, sensing data corresponding to the environmental blockchain is generated, wherein the environmental blockchain stores historical data corresponding to the sensing data. In step S22, the sensing data is encrypted to generate encrypted data. At step S23, the encrypted material is decrypted to generate decrypted material. In step S24, the exhaustive guess value of the environmental blockchain is adjusted based on the amount of gradient change between the decrypted data and the historical data exceeding the first threshold.

綜上所述,本發明利用區塊鏈的技術儲存與環境相關的感測資料,使感測資料不易受到竄改,從而確保感測資料得到安全可靠的儲存。此外,本發明可基於環境的梯度變化量調整建立區塊的難易度。當環境出現顯著的變化時,本發明可加快區塊的生成速度,以更詳細地記錄當前環境的相關感測資料。另一方面,本發明可利用區塊鏈的工作量證明機制觸發智慧合約,並藉由觸發智慧合約來對管理者提出預警或對用以改變環境的終端裝置進行控制。In summary, the present invention utilizes the technology of the blockchain to store sensing data related to the environment, so that the sensing data is not easily falsified, thereby ensuring safe and reliable storage of the sensing data. Furthermore, the present invention can adjust the difficulty of establishing a block based on the amount of gradient variation of the environment. When there is a significant change in the environment, the present invention can speed up the generation of blocks to record the relevant sensing data of the current environment in more detail. On the other hand, the present invention can utilize the blockchain workload proof mechanism to trigger the smart contract, and trigger the smart contract to alert the manager or control the terminal device used to change the environment.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

10‧‧‧環境偵測系統10‧‧‧Environmental Detection System

101、102、103、104‧‧‧感測器 101, 102, 103, 104‧‧‧ sensors

200‧‧‧閘道器 200‧‧‧ gateway

300‧‧‧管理伺服器 300‧‧‧Management Server

400‧‧‧環境偵測區塊鏈伺服器 400‧‧‧Environmental Detection Blockchain Server

500‧‧‧查詢介面 500‧‧‧Query interface

600‧‧‧反應伺服器 600‧‧‧Response server

A、B、C、D‧‧‧環境區塊鏈 A, B, C, D‧‧‧ environmental blockchain

NW‧‧‧網路 NW‧‧‧Network

S21、S22、S23、S24‧‧‧步驟 S21, S22, S23, S24‧‧ steps

圖1根據本發明的實施例繪示一種基於區塊鏈的環境偵測系統的示意圖。 圖2根據本發明的實施例繪示一種基於區塊鏈的環境偵測方法的流程圖。FIG. 1 is a schematic diagram of a blockchain based environment detection system according to an embodiment of the invention. FIG. 2 is a flowchart of a method for detecting an environment based on a blockchain according to an embodiment of the invention.

Claims (9)

一種基於區塊鏈的環境偵測系統,包括:感測器,產生對應於環境區塊鏈的感測資料,其中該環境區塊鏈儲存對應於該感測資料的歷史資料;閘道器,通訊連接至該感測器,該閘道器接收該感測資料,並且對該感測資料進行加密以產生加密資料;管理伺服器,通訊連接至該閘道器,該管理伺服器接收該加密資料,並且對該加密資料進行解密以產生解密資料,其中該閘道器儲存對應於該感測器的私鑰,並且該管理伺服器儲存對應於該感測器的公鑰,其中該閘道器使用該私鑰對該感測資料進行加密以產生該加密資料,並且該管理伺服器使用該公鑰對該加密資料進行解密以產生該解密資料;以及環境偵測區塊鏈伺服器,通訊連接至該管理伺服器以及該環境區塊鏈,該環境偵測區塊鏈伺服器接收該解密資料和該歷史資料,並且基於該解密資料與該歷史資料之間的梯度變化量超過第一閾值而調整該環境區塊鏈的窮舉猜測值。 A blockchain-based environment detection system includes: a sensor that generates sensing data corresponding to an environmental blockchain, wherein the environmental blockchain stores historical data corresponding to the sensing data; a gateway device, Communicating to the sensor, the gateway receiving the sensing data, and encrypting the sensing data to generate encrypted data; managing a server, the communication is connected to the gateway, and the management server receives the encryption Data, and decrypting the encrypted data to generate decrypted data, wherein the gateway stores a private key corresponding to the sensor, and the management server stores a public key corresponding to the sensor, wherein the gateway Using the private key to encrypt the sensing data to generate the encrypted data, and the management server uses the public key to decrypt the encrypted data to generate the decrypted data; and the environment detecting blockchain server, communication Connecting to the management server and the environment blockchain, the environment detection blockchain server receives the decrypted data and the historical data, and based on the decrypted data and the historical data Gradient change amount between the value exceeds a first threshold value is adjusted to be exhaustive guessing the environment block chain. 如申請專利範圍第1項所述的環境偵測系統,其中該環境偵測區塊鏈伺服器基於該梯度變化量大於該第一閾值而將該環境區塊鏈的該窮舉猜測值的位數調低。 The environmental detection system of claim 1, wherein the environment detection blockchain server is based on the gradient change amount greater than the first threshold value and the bit of the exhaustive guess value of the environmental blockchain The number is lowered. 如申請專利範圍第1項所述的環境偵測系統,其中該環境偵測區塊鏈伺服器基於該窮舉猜測值被猜中而將該解密資料儲存於該環境區塊鏈中。 The environmental detection system of claim 1, wherein the environment detection blockchain server stores the decrypted data in the environmental blockchain based on the exhaustive guess value being guessed. 如申請專利範圍第3項所述的環境偵測系統,其中對應於該環境區塊鏈的工作量證明基於該窮舉猜測值被猜中而增加。 The environmental detection system of claim 3, wherein the workload proof corresponding to the environmental blockchain is increased based on the guess of the exhaustive guess. 如申請專利範圍第4項所述的環境偵測系統,其中該環境區塊鏈儲存智慧合約,且該智慧合約基於該工作量證明超過第二閾值而被觸發。 The environmental detection system of claim 4, wherein the environmental blockchain stores a smart contract, and the smart contract is triggered based on the workload proof exceeding a second threshold. 如申請專利範圍第5項所述的環境偵測系統,更包括:查詢介面,通訊連接至該管理伺服器,該查詢介面響應於該智慧合約被觸發而發送預警訊息。 The environmental detection system of claim 5, further comprising: a query interface, the communication is connected to the management server, and the query interface sends an alert message in response to the smart contract being triggered. 如申請專利範圍第5項所述的環境偵測系統,更包括:反應伺服器,通訊連接至該環境偵測區塊鏈伺服器,該反應伺服器響應於該智慧合約被觸發而控制關聯於該環境區塊鏈的終端裝置。 The environmental detection system of claim 5, further comprising: a response server connected to the environment detection blockchain server, wherein the response server is triggered in response to the smart contract being triggered The terminal device of the environmental blockchain. 如申請專利範圍第1項所述的環境偵測系統,其中該環境區塊鏈對應於溫濕度、水位監測、空氣汙染以及交通管理中的其中之一。 The environmental detection system of claim 1, wherein the environmental blockchain corresponds to one of temperature and humidity, water level monitoring, air pollution, and traffic management. 一種基於區塊鏈的環境偵測方法,包括:產生對應於環境區塊鏈的感測資料,其中該環境區塊鏈儲存對應於該感測資料的歷史資料;產生公鑰以及私鑰;使用該私鑰對該感測資料進行加密以產生加密資料;使用該公鑰對該加密資料進行解密以產生解密資料;以及基於該解密資料與該歷史資料之間的梯度變化量超過第一閾 值而調整該環境區塊鏈的窮舉猜測值。 A method for detecting an environment based on a blockchain, comprising: generating sensing data corresponding to an environmental blockchain, wherein the environmental blockchain stores historical data corresponding to the sensing data; generating a public key and a private key; The private key encrypts the sensing data to generate encrypted data; decrypting the encrypted data using the public key to generate decrypted data; and based on the gradient change between the decrypted data and the historical data exceeding a first threshold The value is adjusted to the exhaustive guess of the environmental blockchain.
TW108100220A 2019-01-03 2019-01-03 Blockchain-based environment detection method and system thereof TWI670671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108100220A TWI670671B (en) 2019-01-03 2019-01-03 Blockchain-based environment detection method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108100220A TWI670671B (en) 2019-01-03 2019-01-03 Blockchain-based environment detection method and system thereof

Publications (2)

Publication Number Publication Date
TWI670671B true TWI670671B (en) 2019-09-01
TW202027009A TW202027009A (en) 2020-07-16

Family

ID=68618849

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108100220A TWI670671B (en) 2019-01-03 2019-01-03 Blockchain-based environment detection method and system thereof

Country Status (1)

Country Link
TW (1) TWI670671B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201810143A (en) * 2016-07-29 2018-03-16 安地卡及巴布達商區塊鏈控股有限公司 Blockchain-implemented method and system
CN108073829A (en) * 2017-12-29 2018-05-25 上海唯链信息科技有限公司 For recording the method for the transportation data of object, medium, internet of things equipment, block platform chain and Internet of things system
TW201835784A (en) * 2016-12-30 2018-10-01 美商英特爾公司 The internet of things
US10153908B2 (en) * 2010-04-30 2018-12-11 T-Central, Inc. Secure communication of IOT devices for vehicles

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10153908B2 (en) * 2010-04-30 2018-12-11 T-Central, Inc. Secure communication of IOT devices for vehicles
TW201810143A (en) * 2016-07-29 2018-03-16 安地卡及巴布達商區塊鏈控股有限公司 Blockchain-implemented method and system
TW201835784A (en) * 2016-12-30 2018-10-01 美商英特爾公司 The internet of things
CN108073829A (en) * 2017-12-29 2018-05-25 上海唯链信息科技有限公司 For recording the method for the transportation data of object, medium, internet of things equipment, block platform chain and Internet of things system

Also Published As

Publication number Publication date
TW202027009A (en) 2020-07-16

Similar Documents

Publication Publication Date Title
US11240222B2 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
US10951630B2 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
US10015148B2 (en) Physics-based key generation
US20170099146A1 (en) Increased communication security
JP5225412B2 (en) Communication apparatus and communication method
CN112788042A (en) Method for determining equipment identifier of Internet of things and Internet of things equipment
CN103973447A (en) Authentication of a chemical sensor in a portable electronic device
WO2014030186A1 (en) Relay device, relay method, relay program and relay system
WO2017202137A1 (en) Nfc dynamic token and working method thereof
TWI670671B (en) Blockchain-based environment detection method and system thereof
US10979987B2 (en) Sensor system for collecting data using an encryption key
US11784809B2 (en) Constrained key derivation in temporal space
JP2015225385A (en) Information processing system, information processing method and program
JP2017098794A (en) Communication device, communication method, and computer program
US11387997B2 (en) Constrained key derivation in geographical space
US11336461B2 (en) Method for controlling by a server the use of at least one data element of a data owner
KR102499530B1 (en) Quantum security communication device integrated supervisory control and data acquisition system and method
TWI649997B (en) Internet of things system and information security communication method thereof
CN116471081B (en) Indoor security anonymous authentication method based on Internet of things technology
KR102404156B1 (en) Quantum security communication device integrated plc/hmi control system and method
TWI730355B (en) Dynamic key generating method for wireless communication
GB2628570A (en) Method of operating a telecommunications system and a telecommunications system
US20210091931A1 (en) Data transfer control device, data transfer control system, and data transfer control method
KR20190099711A (en) Image providing apparatus and operating method thereof
EP2991308B1 (en) Increased communication security