TW202113722A - Data processing method, device and system based on block chain and electronic equipment - Google Patents

Data processing method, device and system based on block chain and electronic equipment Download PDF

Info

Publication number
TW202113722A
TW202113722A TW109116687A TW109116687A TW202113722A TW 202113722 A TW202113722 A TW 202113722A TW 109116687 A TW109116687 A TW 109116687A TW 109116687 A TW109116687 A TW 109116687A TW 202113722 A TW202113722 A TW 202113722A
Authority
TW
Taiwan
Prior art keywords
blockchain
data
internet
specified data
service
Prior art date
Application number
TW109116687A
Other languages
Chinese (zh)
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 大陸商支付寶(杭州)信息技術有限公司
Publication of TW202113722A publication Critical patent/TW202113722A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The embodiment of the invention provides a data processing method, device and system based on a block chain and electronic equipment. The data processing method comprises the steps that a block chain platform receives a block chain service which is submitted by Internet of Things equipment through a block chain interface and contains specified data; the blockchain platform triggers a specified intelligent contract pre-deployed in a blockchain based on the blockchain service, and processes specified data in the blockchain service; and the blockchain platform calls an application programming interface of a service server of the Internet of Things device so as to feed back a processing result of the specified data to the service server.

Description

基於區塊鏈的資料處理方法、裝置、系統及電子設備Data processing method, device, system and electronic equipment based on blockchain

本發明實施例涉及區塊鏈技術領域,尤其涉及一種基於區塊鏈的資料處理方法、裝置、系統及電子設備。The embodiments of the present invention relate to the field of blockchain technology, and in particular to a data processing method, device, system and electronic equipment based on the blockchain.

物聯網(IoT,Internet of Thing)是網際網路、傳統電信網等資訊承載體,讓所有能行使獨立功能的普通物體實現互聯互通的網路。在物聯網上,每個人都可以應用電子標簽將真實的物體上網聯結,在物聯網上都可以查出它們的具體位置。透過物聯網可以用雲端平臺對機器、設備、人員進行集中管理、控制,也可以對家庭設備、汽車進行遙控,以及搜索位置、防止物品被盜等,類似自動化操控系統,同時透過收集這些小事的資料,最後可以聚集成巨量資料,包含重新設計道路以減少車禍、都市更新、災害預測與犯罪防治、流行病控制等等社會的重大改變,實現物和物相聯。 目前的物聯網系統提供中心化的服務,該過程需要物聯網設備將資料上傳至雲端平臺,由雲端平臺負責處理,並提供相應的服務。這種方式顧名思義,是以雲端平臺為中心展開的,因此無法保證處理結果的客觀性。有鑒於此,如何在物聯網系統中實現去中心化的服務,是當前亟待解決的技術問題。The Internet of Things (IoT) is an information carrier such as the Internet and traditional telecommunications networks, which enables all ordinary objects that can perform independent functions to achieve interconnection and interoperability. In the Internet of Things, everyone can use electronic tags to connect real objects to the Internet, and they can find out their specific locations on the Internet of Things. Through the Internet of Things, the cloud platform can be used to centrally manage and control machines, equipment, and personnel. It can also remotely control home equipment and cars, search for locations, prevent items from being stolen, etc., similar to an automated control system. Data can finally be gathered into a huge amount of data, including major social changes such as redesigning roads to reduce car accidents, urban renewal, disaster prediction, crime prevention, epidemic control, etc., to realize the connection between objects and objects. The current Internet of Things system provides centralized services. This process requires Internet of Things devices to upload data to the cloud platform, which is responsible for processing and providing corresponding services. As the name suggests, this method is based on the cloud platform, so the objectivity of the processing results cannot be guaranteed. In view of this, how to implement decentralized services in the Internet of Things system is a technical problem that needs to be solved urgently.

本發明實施例目的是提供一種基於區塊鏈的資料處理方法、裝置、系統及電子設備,能夠在物聯網系統中實現去中心化的服務。 為了實現上述目的,本發明實施例是這樣實現的: 第一方面,提供一種基於區塊鏈的資料處理方法,包括: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 區塊鏈平臺基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理; 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至所述業務伺服器。 第二方面,提供一種基於區塊鏈的資料處理裝置,包括: 接收模組,區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 處理模組,區塊鏈平臺基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理; 反饋模組,區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至所述業務伺服器。 指定智慧合約第三方面,提供一種物聯網系統,包括:物聯網設備、業務伺服器和區塊鏈平臺; 所述物聯網設備,透過區塊鏈介面向區塊鏈平臺提交的包含指定資料的區塊鏈服務; 所述區塊鏈平臺,基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理;以及將所述指定資料的處理結果反饋至所述業務伺服器; 所述業務伺服器,基於所述指定資料的處理結果執行相關的業務邏輯。 第四方面,提供一種電子設備包括:記憶體、處理器及儲存在所述記憶體上並可在所述處理器上運行的電腦程式,所述電腦程式被所述處理器執行: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 區塊鏈平臺基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理; 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至所述業務伺服器。 第五方面,提供一種算機可讀儲存媒體,所述電腦可讀儲存媒體上儲存有電腦程式,所述電腦程式被處理器執行時實現如下步驟: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 區塊鏈平臺基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理; 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至所述業務伺服器。 本發明實施例的方案中,業務伺服器將指定資料的業務處理邏輯以智慧合約的方式部署在區塊鏈平臺中。物聯網設備將執行物聯網業務時產生的指定資料透過區塊鏈服務上傳至區塊鏈平臺,使區塊鏈平臺基於區塊鏈服務調用智慧合約,以對指定資料進行處理,並將處理結果反饋至業務處理器。由於指定資料的處理過程放在區塊鏈平臺執行,因此保證了處理結果的客觀性,從而實現了去中心化的服務。The purpose of the embodiments of the present invention is to provide a data processing method, device, system and electronic equipment based on a blockchain, which can realize decentralized services in an Internet of Things system. In order to achieve the foregoing objectives, the embodiments of the present invention are implemented as follows: In the first aspect, a data processing method based on blockchain is provided, including: The blockchain platform receives the blockchain service containing the specified data submitted by the IoT device through the blockchain interface; Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. In the second aspect, a data processing device based on blockchain is provided, including: Receiving module, the blockchain platform receives the blockchain service containing the specified data submitted by the Internet of Things device through the blockchain interface; Processing module, based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; With the feedback module, the blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. The third aspect of the designated smart contract provides an Internet of Things system, including: Internet of Things devices, business servers, and blockchain platforms; The Internet of Things device submits a blockchain service containing specified data to a blockchain platform through a blockchain interface; The blockchain platform, based on the blockchain service, triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; and process the designated data The result is fed back to the business server; The business server executes related business logic based on the processing result of the specified data. In a fourth aspect, there is provided an electronic device including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor: The blockchain platform receives the blockchain service containing the specified data submitted by the IoT device through the blockchain interface; Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. In a fifth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: The blockchain platform receives the blockchain service containing the specified data submitted by the IoT device through the blockchain interface; Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. In the solution of the embodiment of the present invention, the business server deploys the business processing logic of the specified data on the blockchain platform in the manner of a smart contract. The Internet of Things device uploads the designated data generated during the execution of the Internet of Things business to the blockchain platform through the blockchain service, so that the blockchain platform calls the smart contract based on the blockchain service to process the designated data and process the results Feedback to the business processor. Since the processing of the specified data is executed on the blockchain platform, the objectivity of the processing results is guaranteed, thereby realizing decentralized services.

為了使本技術領域的人員更好地理解本發明中的技術方案,下面將結合本發明實施例中的圖式,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬本發明保護的範圍。 如前所述,目前的物聯網系統提供的是中心化的服務。這種方式下,資料的記錄和處理均在雲端平臺完成,因此安全性和客觀性並不可靠,無法適用於需要去壟斷、防篡改、防丟失的應用場景。 有鑒於此,本發明旨在提供一種可在物聯網中實現去中心化服務的技術方案。 圖1是本發明實施例基於區塊鏈的資料處理方法的流程圖。圖1所示的方法可以由下文相對應的裝置執行,包括: 步驟S102,區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務。 其中,指定資料可以包括物聯網設備產生的資料,比如:物聯網設備執行業務所產生的業務資料、日誌資料以及所述物聯網設備執行業務時對應的環境資料等。 具體地,物聯網設備若具有接入區塊鏈介面的能力,可將指定資料直接上傳至區塊鏈平臺。或者,物聯網設備也可以將指定資料發送至物聯網系統中的業務伺服器,由業務伺服器進一步透過區塊鏈介面上傳至區塊鏈平臺。 步驟S104,區塊鏈平臺基於區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對區塊鏈服務中的指定資料進行處理。 其中,指定智慧合約可以由業務伺服器預先部署至區塊鏈中,包含有指定資料的處理邏輯。在本步驟中,區塊鏈平臺按照指定智慧合約指示的處理邏輯,對指定資料進行計算,得到對應的處理結果。 步驟S106,區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將指定資料的處理結果反饋至業務伺服器。 應理解,業務伺服器在接收到指定資料的處理結果,再進一步基於處理結果執行相關業務的邏輯。 基於圖1所示的資料處理方法可以知道:本發明實施例的方案中,業務伺服器將指定資料的業務處理邏輯以智慧合約的方式部署在區塊鏈平臺中。物聯網設備將執行物聯網業務時產生的指定資料透過區塊鏈服務上傳至區塊鏈平臺,使區塊鏈平臺基於區塊鏈服務調用智慧合約,以對指定資料進行處理,並將處理結果反饋至業務處理器。由於指定資料的處理過程放在區塊鏈平臺執行,因此保證了處理結果的客觀性,從而實現了去中心化的服務。 下面對本發明實施例的方法進行示例性介紹。 本發明實施例的方法主要利用區塊鏈去中心化、防丟失、防篡改的分布式資料儲存技術,來負責記錄物聯網設備在執行物聯網業務時的指定資料,並在區塊鏈中部署具有該指定資料處理邏輯的指定智慧合約,物聯網設備需要將指定資料透過區塊鏈服務上傳至去中心化的區塊鏈平臺,由區塊鏈平臺調用指定智慧合約進行邏輯處理。 其中,流程包括: 步驟S201,物聯網中的業務伺服器接入區塊鏈平臺,並基於區塊鏈平臺向區塊鏈部署指定智慧合約。 應理解,指定智慧合約的具體處理邏輯是由物聯網業務實際需求所決定的,由於方式並不唯一,本發明實施例對此不作具體限定。 本步驟中,業務伺服器可以向區塊鏈部署與區塊鏈服務相關的指定智慧合約,使得區塊鏈在接收到區塊鏈服務後,觸發該指定智慧合約,以對區塊鏈服務中的資料進行處理。 步驟S202,物聯網設備連接區塊鏈介面,向區塊鏈平臺提交的包含指定資料的區塊鏈服務,或者,物聯網設備向業務伺服器提交包含指定資料的區塊鏈服務,由業務伺服器連接區塊鏈介面以區塊鏈平臺提交區塊鏈服務。 其中,指定資料可以是業務伺服器執行相關業務邏輯所需要的資料,可以但不限於包括以下至少一者: 物聯網設備執行業務所產生的業務資料。 物聯網設備執行業務所產生的日誌資料。 物聯網設備執行業務時對應的環境資料。 步驟S203,區塊鏈平臺向區塊鏈中的區塊鏈節點發起針對指定資料的多方共識。 應理解,區塊鏈多方共識的方式並不唯一,本發明實施例對此不作具體限定。 作為示例性介紹:上述區塊鏈具體可以是指聯盟鏈,聯盟鏈中指定有多個記帳節點。本步驟具體可以向聯盟鏈中的至少兩個記帳節點發起針對指定資料的多方共識。 步驟S204,在多方共識成功通過後,區塊鏈平臺在區塊鏈中添加記錄有指定資料的區塊。 顯然,通過多方共識的方式,可以對指定資料和/或指定資料的來源進行可靠性驗證,保證真實客觀的資料得到上鏈。指定資料一旦上鏈後,需要破壞超過半數以上的區塊鏈節點才能對其進行篡改,且破壞全部區塊鏈節點才將其從區塊鏈中徹底删除,理論上來講這些都是無法實現的,因此透過區塊鏈記錄物聯設備的指定資料,可以有效保障指定資料的安全性和客觀性。 步驟S205,區塊鏈平臺基於物聯網設備提交的區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對指定資料進行處理。 應理解,處理流程根據實際的業務需求進行設置,由於方式並不唯一,在此不作贅述。 步驟S206,區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,將指定資料的處理結果反饋至業務伺服器。 在上述基礎之上,區塊鏈平臺同時還可以將指定資料的處理結果反饋至物聯網設備。 步驟S207,業務伺服器根據接收到的指定資料的處理結果,執行相關的業務邏輯。 下面結合實際應用場景,對本發明實施例的方法進行詳細介紹。 在本應用場景中,業務伺服器為用戶提供電影票訂購服務。對於用戶來講,可以透過自己的個人設備(即物聯網設備)來向業務伺服器購買電影票。 對於同一場次同一座位的電影票來講,任何用戶都具有購買權利。為了保證這些用戶能夠公平購買,業務伺服器將電影票的購買處理邏輯以智慧合約的方式部署至區塊鏈,利用區塊鏈去中心化、防篡改的特點,保證智慧合約的客觀性。 假設用戶A希望購買16:00場6排14座的電影票,則可以透過個人設備向業務伺服器發起針對16:00場6排14座的電影票的購買請求(即區塊鏈服務)。業務伺服器將上述購買請求透過區塊鏈介面轉發至區塊鏈平臺,由區塊鏈平臺進行記錄。 之後,區塊鏈平臺調用預先為購票服務部署的智慧合約,對用戶A發起的購買請求進行處理。 假設智慧合約指示電影票先購先得的處理邏輯,如果該16:00場6排14座的電影票已經被其他用戶買走,則區塊鏈平臺產生拒絕用戶A購買請求的處理結果;如果該16:00場6排14座的電影票未被其他用戶買走,則區塊鏈平臺產生接受用戶A購買請求的處理結果。 或者, 假設智慧合約指示電影票隨機抽籤購買的處理邏輯,則區塊鏈平臺在滿足一定的時間條件後,對區塊鏈中記錄的所有發起該16:00場6排14座的電影票的購買請求的用戶進行抽籤。若用戶A中簽,則區塊鏈平臺產生接受用戶A購買請求的處理結果;若用戶A未中簽,則區塊鏈平臺產生拒絕用戶A購買請求的處理結果。 區塊鏈平臺在產生用戶A發起的購買請求的處理結果後,調用業務伺服器的應用程式可程式化介面,以將該處理結果發送至業務伺服器,由業務伺服器按照處理結果,決定是否向用戶A發起後續的購票流程。 以上是對本發明實施例的方法的介紹。應理解,在不脫離本文上述原理基礎之上,還可以進行適當的變化,這些變化也應視為本發明實施例的保護範圍。 與上述資料處理方法相對應地,如圖3所示,本發明實施例還提供一種基於區塊鏈的資料處理裝置300,包括: 接收模組310,接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務。 其中,指定資料可以包括物聯網設備產生的資料,比如:物聯網設備執行業務所產生的業務資料、日誌資料以及所述物聯網設備執行業務時對應的環境資料等。 可選地,本步驟中,物聯網設備若具有接入區塊鏈介面的能力,可將指定資料直接上傳至區塊鏈平臺。或者,物聯網設備也可以將指定資料發送至業務伺服器,由業務伺服器接入區塊鏈介面後,將區塊鏈服務進一步上傳至區塊鏈平臺。 處理模組320,基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理指定智慧合約。 其中,指定智慧合約可以由業務伺服器預先部署至區塊鏈中,包含有指定資料的處理邏輯。在本步驟中,區塊鏈平臺按照指定智慧合約指示的處理邏輯,對指定資料進行計算,得到對應的處理結果。 反饋模組330,調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至業務伺服器。 基於圖3所示的資料處理方法裝置可以知道:本發明實施例的方案中,業務伺服器將指定資料的業務處理邏輯以智慧合約的方式部署在區塊鏈平臺中。物聯網設備將執行物聯網業務時產生的指定資料透過區塊鏈服務上傳至區塊鏈平臺,使區塊鏈平臺基於區塊鏈服務調用智慧合約,以對指定資料進行處理,並將處理結果反饋至業務處理器。由於指定資料的處理過程放在區塊鏈平臺執行,因此保證了處理結果的客觀性,從而實現了去中心化的服務。 可選地,本發明實施例的裝置還包括: 上鏈模組,在獲取物聯網設備上傳的指定資料後,將所述指定資料記錄至區塊鏈中。 可選地,上鏈模組在執行時,具體向區塊鏈中的區塊鏈節點發起針對所述指定資料的多方共識,若所述多方共識成功通過,則區塊鏈平臺在區塊鏈中添加記錄有所述指定資料的區塊。 在實際應用中,上述區塊鏈可以是聯盟鏈,聯盟鏈指定有多個記帳節點。上鏈模組在執行時,可以向所述聯盟鏈中的至少兩個記帳節點發起針對所述指定資料的多方共識。若超過半數記帳節點認可,則表示多方共識通過,上鏈模組再進一步將指定資料記錄至聯盟鏈中。 應理解,本發明實施例的裝置中的各個模組可以透過區塊鏈平臺執行對應的步驟。比如:上述獲取模組310能夠控制區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務。上述處理模組320,基於所述區塊鏈服務,控制區塊鏈平臺觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理指定智慧合約。上述反饋模組330,控制區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至業務伺服器。 顯然,本發明實施例的裝置可以作為上述圖1所示的資料處理方法的執行主體,因此能夠實現資料處理方法在圖1和圖2所實現的功能。由於原理相同,本文不再贅述。 此外,如圖4所示,本發明實施例還提供一種物聯網系統400,包括:物聯網設備410、區塊鏈平臺420和業務伺服器430。 其中: 物聯網設備410,透過區塊鏈介面向區塊鏈平臺提交的包含指定資料的區塊鏈服務。 區塊鏈平臺420,基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理;以及將所述指定資料的處理結果反饋至業務伺服器指定智慧合約。 業務伺服器430,基於所述指定資料的處理結果執行相關的業務邏輯。 基於圖4所示的物聯網系統可以知道:本發明實施例的方案中,業務伺服器將指定資料的業務處理邏輯以智慧合約的方式部署在區塊鏈平臺中。物聯網設備將執行物聯網業務時產生的指定資料透過區塊鏈服務上傳至區塊鏈平臺,使區塊鏈平臺基於區塊鏈服務調用智慧合約,以對指定資料進行處理,並將處理結果反饋至業務處理器。由於指定資料的處理過程放在區塊鏈平臺執行,因此保證了處理結果的客觀性,從而實現了去中心化的服務。 圖5是本發明實施例的物聯網系統的執行流程圖,包括: 步驟S501,業務伺服器接入區塊鏈平臺,向區塊鏈部署目標區塊鏈服務相關的指定智慧合約。 步驟S502,物聯網設備向業務伺服器發送攜帶有指定資料的目標區塊鏈服務。 步驟S503,業務伺服器透過區塊鏈介面將目標區塊鏈服務轉發至區塊鏈平臺。 步驟S504,區塊鏈平臺將目標區塊鏈服務中的指定資料記錄至區塊鏈,並基於目標區塊鏈服務觸發指定智慧合約,對指定資料進行處理。 步驟S505,區塊鏈平臺調用業務伺服器的應用程式可程式化介面,以將指定資料的處理結果反饋至業務伺服器。 步驟S506,業務伺服器根據指定資料的處理結果,執行相關的業務邏輯。 同樣地,本發明實施例的裝置可以作為上述圖1所示的資料處理方法的執行主體,因此能夠實現資料處理方法在圖1和圖2所實現的功能。由於原理相同,本文不再贅述。 圖6是本發明的一個實施例電子設備的結構示意圖。請參考圖6,在硬體層面,該電子設備包括處理器,可選地還包括內部匯流排、網路介面、記憶體。其中,記憶體可能包含內部記憶體,例如高速隨機存取記憶體(Random-Access Memory,RAM),也可能還包括非易失性記憶體(non-volatile memory),例如至少1個磁碟記憶體等。當然,該電子設備還可能包括其他業務所需要的硬體。 處理器、網路介面和記憶體可以透過內部匯流排相互連接,該內部匯流排可以是ISA(Industry Standard Architecture,工業標準體系結構)匯流排、PCI(Peripheral Component Interconnect,外設部件互連標準)匯流排或EISA(Extended Industry Standard Architecture,擴展工業標準結構)匯流排等。所述匯流排可以分為位址匯流排、資料匯流排、控制匯流排等。為便於表示,圖6中僅用一個雙向箭頭表示,但並不表示僅有一根匯流排或一種類型的匯流排。 記憶體,用於存放程式。具體地,程式可以包括程式代碼,所述程式代碼包括電腦操作指令。記憶體可以包括內部記憶體和非易失性記憶體,並向處理器提供指令和資料。 處理器從非易失性記憶體中讀取對應的電腦程式到內部記憶體中然後運行,在邏輯層面上形成資料處理裝置。處理器,執行記憶體所存放的程式,並具體用於執行以下操作: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務。 區塊鏈平臺基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理。 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至業務伺服器。 基於圖6所示的電子設備可以知道:本發明實施例的方案中,業務伺服器將指定資料的業務處理邏輯以智慧合約的方式部署在區塊鏈平臺中。物聯網設備將執行物聯網業務時產生的指定資料透過區塊鏈服務上傳至區塊鏈平臺,使區塊鏈平臺基於區塊鏈服務調用智慧合約,以對指定資料進行處理,並將處理結果反饋至業務處理器。由於指定資料的處理過程放在區塊鏈平臺執行,因此保證了處理結果的客觀性,從而實現了去中心化的服務。 上述如本發明圖1所示實施例揭示的資料處理方法可以應用於處理器中,或者由處理器實現。處理器可能是一種積體電路晶片,具有信號的處理能力。在實現過程中,上述方法的各步驟可以透過處理器中的硬體的積體邏輯電路或者軟體形式的指令完成。上述的處理器可以是通用處理器,包括中央處理器(Central Processing Unit,CPU)、網路處理器(Network Processor,NP)等;還可以是數位信號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現場可可程式化閘陣列(Field-Programmable Gate Array,FPGA)或者其他可可程式化邏輯裝置、分立閘或者電晶體邏輯裝置、分立硬體組件。可以實現或者執行本發明實施例中的公開的各方法、步驟及邏輯方塊圖。通用處理器可以是微處理器或者該處理器也可以是任何常規的處理器等。結合本發明實施例所公開的方法的步驟可以直接體現為硬體譯碼處理器執行完成,或者用譯碼處理器中的硬體及軟體模組組合執行完成。軟體模組可以位於隨機記憶體,快閃記憶體、唯讀記憶體,可可程式化唯讀記憶體或者電可擦寫可可程式化記憶體、暫存器等本領域成熟的儲存媒體中。該儲存媒體位於記憶體,處理器讀取記憶體中的資訊,結合其硬體完成上述方法的步驟。 應理解,本發明實施例的電子設備可以實現上述資料處理裝置在圖1和圖2所示的實施例的功能,本文不再贅述。 當然,除了軟體實現方式之外,本發明的電子設備並不排除其他實現方式,比如邏輯裝置抑或軟硬體結合的方式等等,也就是說以下處理流程的執行主體並不限定於各個邏輯單元,也可以是硬體或邏輯裝置。 此外,本發明實施例還提出了一種電腦可讀儲存媒體,該電腦可讀儲存媒體儲存一個或多個程式,該一個或多個程式包括指令,該指令當被包括多個應用程式的便攜式電子設備執行時,能夠使該便攜式電子設備執行圖1所示實施例的方法,並具體用於執行以下方法: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務。 區塊鏈平臺基於所述區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對所述區塊鏈服務中的指定資料進行處理。 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將所述指定資料的處理結果反饋至業務伺服器。 應理解,上述指令當被包括多個應用程式的便攜式電子設備執行時,能夠使上文所述的資料處理裝置實現圖1和圖2所示實施例的功能,本文不再贅述。 本領域技術人員應明白,本說明書的實施例可提供為方法、系統或電腦程式產品。因此,本說明書可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體方面的實施例的形式。而且,本說明書可採用在一個或多個其中包含有電腦可用程式代碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。 上述對本說明書特定實施例進行了描述。其它實施例在申請專利範圍的範圍內。在一些情况下,在申請專利範圍中記載的動作或步驟可以按照不同於實施例中的順序來執行並且仍然可以實現期望的結果。另外,在圖式中描繪的過程不一定要求示出的特定順序或者連續順序才能實現期望的結果。在某些實施方式中,多任務處理和並行處理也是可以的或者可能是有利的。 以上僅為本說明書的實施例而已,並不用於限制本說明書。對於本領域技術人員來說,本說明書可以有各種更改和變化。凡在本說明書的精神和原理之內所作的任何修改、等同替換、改進等,均應包含在本說明書的權利要求範圍之內。In order to enable those skilled in the art to better understand the technical solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention. As mentioned earlier, the current Internet of Things system provides centralized services. In this way, the recording and processing of data are completed on the cloud platform, so the security and objectivity are not reliable, and it cannot be applied to application scenarios that require de-monopoly, tamper-proof, and loss-proof. In view of this, the present invention aims to provide a technical solution that can realize decentralized services in the Internet of Things. FIG. 1 is a flowchart of a data processing method based on blockchain according to an embodiment of the present invention. The method shown in Figure 1 can be executed by the following corresponding devices, including: In step S102, the blockchain platform receives the blockchain service containing the specified data submitted by the Internet of Things device through the blockchain interface. The specified data may include data generated by the Internet of Things device, such as business data generated by the Internet of Things device performing business, log data, and environmental data corresponding to the Internet of Things device performing business. Specifically, if the IoT device has the ability to access the blockchain interface, it can directly upload the specified data to the blockchain platform. Alternatively, the IoT device can also send the specified data to the business server in the IoT system, and the business server further uploads it to the blockchain platform through the blockchain interface. In step S104, based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service. Among them, the designated smart contract can be pre-deployed into the blockchain by the business server, and contains the processing logic of the designated data. In this step, the blockchain platform calculates the specified data according to the processing logic indicated by the specified smart contract to obtain the corresponding processing result. In step S106, the blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. It should be understood that, after receiving the processing result of the specified data, the business server further executes the logic of the related business based on the processing result. Based on the data processing method shown in FIG. 1, it can be known that in the solution of the embodiment of the present invention, the business server deploys the business processing logic of the specified data on the blockchain platform in the form of a smart contract. The Internet of Things device uploads the designated data generated during the execution of the Internet of Things business to the blockchain platform through the blockchain service, so that the blockchain platform calls the smart contract based on the blockchain service to process the designated data and process the results Feedback to the business processor. Since the processing of the specified data is executed on the blockchain platform, the objectivity of the processing results is guaranteed, thereby realizing decentralized services. The method of the embodiment of the present invention will be exemplarily introduced below. The method of the embodiment of the present invention mainly uses the distributed data storage technology of blockchain decentralization, loss-proof and tamper-proof, to be responsible for recording the specified data of the Internet of Things equipment when performing the Internet of Things business, and deploy it in the blockchain With the designated smart contract with the designated data processing logic, the IoT device needs to upload the designated data to the decentralized blockchain platform through the blockchain service, and the designated smart contract is called by the blockchain platform for logical processing. Among them, the process includes: In step S201, the business server in the Internet of Things accesses the blockchain platform, and deploys a designated smart contract to the blockchain based on the blockchain platform. It should be understood that the specific processing logic of the designated smart contract is determined by the actual requirements of the Internet of Things business. Since the method is not unique, the embodiment of the present invention does not specifically limit this. In this step, the business server can deploy a designated smart contract related to the blockchain service to the blockchain, so that after the blockchain receives the blockchain service, the designated smart contract is triggered to provide services to the blockchain. Data to be processed. In step S202, the IoT device connects to the blockchain interface and submits the blockchain service containing the specified data to the blockchain platform, or the IoT device submits the blockchain service containing the specified data to the business server, and the business server The device connects to the blockchain interface to submit blockchain services on the blockchain platform. Wherein, the specified data may be data required by the business server to execute related business logic, and may but not be limited to include at least one of the following: The business data generated by the Internet of Things equipment to execute the business. The log data generated by the Internet of Things equipment to execute the business. Corresponding environmental data when the Internet of Things device performs business. In step S203, the blockchain platform initiates a multi-party consensus on the specified data to the blockchain nodes in the blockchain. It should be understood that the multi-party consensus on the blockchain is not unique, and the embodiment of the present invention does not specifically limit this. As an exemplary introduction: the above-mentioned blockchain may specifically refer to a consortium chain, and multiple accounting nodes are designated in the consortium chain. This step can specifically initiate a multi-party consensus on the specified data to at least two accounting nodes in the alliance chain. In step S204, after the multi-party consensus is successfully passed, the blockchain platform adds a block recording the specified data to the blockchain. Obviously, through multi-party consensus, the reliability of the designated data and/or the source of the designated data can be verified to ensure that the true and objective data is uploaded to the chain. Once the specified information is on the chain, more than half of the blockchain nodes need to be destroyed before it can be tampered with, and all the blockchain nodes are destroyed before they are completely deleted from the blockchain. In theory, these are impossible to achieve Therefore, recording the specified data of the IoT device through the blockchain can effectively protect the security and objectivity of the specified data. In step S205, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain based on the blockchain service submitted by the Internet of Things device to process the designated data. It should be understood that the processing flow is set according to actual business requirements, and since the method is not unique, it will not be repeated here. In step S206, the blockchain platform calls the programmable interface of the application program of the business server of the Internet of Things device, and feeds back the processing result of the specified data to the business server. On the basis of the above, the blockchain platform can also feed back the processing results of the specified data to the Internet of Things devices. In step S207, the business server executes the relevant business logic according to the processing result of the received designated data. The method of the embodiment of the present invention will be described in detail below in combination with actual application scenarios. In this application scenario, the business server provides users with movie ticket ordering services. For users, they can purchase movie tickets from the business server through their personal devices (ie, IoT devices). For movie tickets with the same seat for the same show, any user has the right to purchase. In order to ensure that these users can purchase fairly, the business server deploys the movie ticket purchase processing logic to the blockchain in the form of a smart contract, and uses the decentralized and tamper-proof features of the blockchain to ensure the objectivity of the smart contract. Assuming that user A wants to purchase 16:00 movie tickets with 6 rows and 14 seats, he can initiate a purchase request for 16:00 movie tickets with 6 rows and 14 seats to the service server through his personal device (i.e. blockchain service). The business server forwards the above-mentioned purchase request to the blockchain platform through the blockchain interface, and the blockchain platform records it. After that, the blockchain platform invokes the smart contract deployed in advance for the ticket purchase service to process the purchase request initiated by user A. Assuming that the smart contract instructs the processing logic of movie tickets first-served, if the 16:00 movie tickets with 6 rows and 14 seats have been bought by other users, the blockchain platform will generate a processing result that rejects user A's purchase request; if The 16:00 movie tickets with 6 rows and 14 seats are not bought by other users, and the blockchain platform generates a processing result of accepting user A's purchase request. or, Assuming that the smart contract instructs the processing logic for the random lottery purchase of movie tickets, the blockchain platform will, after a certain time condition is met, will initiate the purchase request of the 16:00 movie tickets with 6 rows and 14 seats recorded in the blockchain. Of users conduct a lottery. If user A wins the lottery, the blockchain platform generates a processing result of accepting user A's purchase request; if user A fails to win the lottery, the blockchain platform generates a processing result that rejects the purchase request of user A. After the blockchain platform generates the processing result of the purchase request initiated by user A, it calls the application programmable interface of the business server to send the processing result to the business server, and the business server decides whether or not according to the processing result Initiate the subsequent ticket purchase process to user A. The above is an introduction to the method of the embodiment of the present invention. It should be understood that appropriate changes can be made without departing from the foregoing principles herein, and these changes should also be regarded as the protection scope of the embodiments of the present invention. Corresponding to the foregoing data processing method, as shown in FIG. 3, an embodiment of the present invention also provides a blockchain-based data processing device 300, including: The receiving module 310 receives the blockchain service containing specified data submitted by the Internet of Things device through the blockchain interface. The specified data may include data generated by the Internet of Things device, such as business data generated by the Internet of Things device performing business, log data, and environmental data corresponding to the Internet of Things device performing business. Optionally, in this step, if the IoT device has the ability to access the blockchain interface, the designated data can be directly uploaded to the blockchain platform. Alternatively, the IoT device can also send designated data to the business server, and after the business server accesses the blockchain interface, the blockchain service is further uploaded to the blockchain platform. The processing module 320, based on the blockchain service, triggers a designated smart contract pre-deployed in the blockchain, and processes the designated smart contract on the designated data in the blockchain service. Among them, the designated smart contract can be pre-deployed into the blockchain by the business server, and contains the processing logic of the designated data. In this step, the blockchain platform calculates the specified data according to the processing logic indicated by the specified smart contract to obtain the corresponding processing result. The feedback module 330 calls the programmable interface of the application program of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. Based on the data processing method device shown in FIG. 3, it can be known that in the solution of the embodiment of the present invention, the business server deploys the business processing logic of the specified data in the blockchain platform in the form of a smart contract. The Internet of Things device uploads the designated data generated during the execution of the Internet of Things business to the blockchain platform through the blockchain service, so that the blockchain platform calls the smart contract based on the blockchain service to process the designated data and process the results Feedback to the business processor. Since the processing of the specified data is executed on the blockchain platform, the objectivity of the processing results is guaranteed, thereby realizing decentralized services. Optionally, the device in the embodiment of the present invention further includes: The on-chain module, after obtaining the specified data uploaded by the Internet of Things device, records the specified data in the blockchain. Optionally, when the upper chain module is executed, it specifically initiates a multi-party consensus for the specified data to the blockchain node in the block chain. If the multi-party consensus is successfully passed, the blockchain platform is in the block chain. Add a block in which the specified data is recorded. In practical applications, the above-mentioned blockchain may be a consortium chain, and the consortium chain specifies multiple accounting nodes. When the upper chain module is executed, it can initiate a multi-party consensus on the specified data to at least two accounting nodes in the alliance chain. If more than half of the billing nodes approve, it means that the multi-party consensus is passed, and the on-chain module will further record the specified data in the alliance chain. It should be understood that each module in the device of the embodiment of the present invention can execute corresponding steps through the blockchain platform. For example, the above-mentioned acquisition module 310 can control the blockchain platform to receive the blockchain service containing the specified data submitted by the Internet of Things device through the blockchain interface. The processing module 320, based on the blockchain service, controls the blockchain platform to trigger a designated smart contract pre-deployed in the blockchain, and process the designated smart contract on the designated data in the blockchain service. The aforementioned feedback module 330 controls the programmable interface of the application program of the business server of the IoT device to be called by the blockchain platform to feed back the processing result of the specified data to the business server. Obviously, the device of the embodiment of the present invention can be used as the execution body of the data processing method shown in FIG. 1, and therefore can realize the functions implemented by the data processing method in FIG. 1 and FIG. 2. Since the principle is the same, this article will not repeat them. In addition, as shown in FIG. 4, an embodiment of the present invention also provides an Internet of Things system 400, which includes an Internet of Things device 410, a blockchain platform 420, and a business server 430. among them: The Internet of Things device 410 submits a blockchain service containing specified data to a blockchain platform through a blockchain interface. The block chain platform 420, based on the block chain service, triggers a designated smart contract pre-deployed in the block chain to process the designated data in the block chain service; and the processing result of the designated data Feedback to the designated smart contract of the business server. The business server 430 executes related business logic based on the processing result of the specified data. Based on the Internet of Things system shown in FIG. 4, it can be known that in the solution of the embodiment of the present invention, the business server deploys the business processing logic of the specified data in the blockchain platform in the manner of smart contract. The Internet of Things device uploads the designated data generated during the execution of the Internet of Things business to the blockchain platform through the blockchain service, so that the blockchain platform calls the smart contract based on the blockchain service to process the designated data and process the results Feedback to the business processor. Since the processing of the specified data is executed on the blockchain platform, the objectivity of the processing results is guaranteed, thereby realizing decentralized services. Fig. 5 is an execution flow chart of the Internet of Things system according to an embodiment of the present invention, including: In step S501, the business server accesses the blockchain platform, and deploys the designated smart contract related to the target blockchain service to the blockchain. Step S502: The Internet of Things device sends the target blockchain service carrying designated data to the service server. In step S503, the business server forwards the target blockchain service to the blockchain platform through the blockchain interface. In step S504, the blockchain platform records the designated data in the target blockchain service to the blockchain, and triggers a designated smart contract based on the target blockchain service to process the designated data. In step S505, the blockchain platform calls the programmable interface of the application program of the business server to feed back the processing result of the specified data to the business server. In step S506, the business server executes related business logic according to the processing result of the specified data. Similarly, the device of the embodiment of the present invention can be used as the execution body of the data processing method shown in FIG. 1, and therefore can realize the functions implemented by the data processing method in FIG. 1 and FIG. 2. Since the principle is the same, this article will not repeat them. Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Please refer to FIG. 6, at the hardware level, the electronic device includes a processor, optionally an internal bus, a network interface, and a memory. Among them, the memory may include internal memory, such as high-speed random-access memory (Random-Access Memory, RAM), and may also include non-volatile memory, such as at least one disk memory. Body and so on. Of course, the electronic equipment may also include hardware required by other businesses. The processor, network interface, and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture) bus or PCI (Peripheral Component Interconnect) Bus or EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one double-headed arrow is used in FIG. 6, but it does not mean that there is only one busbar or one type of busbar. Memory, used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include internal memory and non-volatile memory, and provide instructions and data to the processor. The processor reads the corresponding computer program from the non-volatile memory to the internal memory and then runs, forming a data processing device on the logical level. The processor executes the programs stored in the memory, and is specifically used to perform the following operations: The blockchain platform receives blockchain services containing specified data submitted by IoT devices through the blockchain interface. Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service. The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. Based on the electronic device shown in FIG. 6, it can be known that in the solution of the embodiment of the present invention, the business server deploys the business processing logic of the specified data on the blockchain platform in the form of a smart contract. The Internet of Things device uploads the designated data generated during the execution of the Internet of Things business to the blockchain platform through the blockchain service, so that the blockchain platform calls the smart contract based on the blockchain service to process the designated data and process the results Feedback to the business processor. Since the processing of the specified data is executed on the blockchain platform, the objectivity of the processing results is guaranteed, thereby realizing decentralized services. The above-mentioned data processing method disclosed in the embodiment shown in FIG. 1 of the present invention may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the above method can be completed through hardware integrated logic circuits in the processor or instructions in the form of software. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (DSP), a dedicated Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random memory, flash memory, read-only memory, cocoa programmable read-only memory, or electrically erasable cocoa programmable memory, register and other mature storage media in the field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. It should be understood that the electronic device of the embodiment of the present invention can implement the functions of the embodiment of the above-mentioned data processing apparatus shown in FIG. 1 and FIG. 2, and details are not described herein again. Of course, in addition to the software implementation, the electronic device of the present invention does not exclude other implementations, such as logic devices or a combination of software and hardware, etc. That is to say, the execution body of the following processing flow is not limited to each logic unit , It can also be a hardware or logic device. In addition, an embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, the one or more programs include instructions, and the instructions should be included in a portable electronic device that includes multiple application programs. When the device is executed, the portable electronic device can be made to execute the method of the embodiment shown in FIG. 1, and is specifically used to execute the following methods: The blockchain platform receives blockchain services containing specified data submitted by IoT devices through the blockchain interface. Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service. The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. It should be understood that, when the above-mentioned instructions are executed by a portable electronic device including multiple application programs, the above-mentioned data processing apparatus can realize the functions of the embodiments shown in FIG. 1 and FIG. 2, and will not be repeated here. Those skilled in the art should understand that the embodiments of this specification can be provided as methods, systems or computer program products. Therefore, this specification may adopt the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware. Moreover, this manual can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program codes. . The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the patent application. In some cases, the actions or steps described in the scope of the patent application may be performed in a different order from the embodiment and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous. The above are only examples of this specification, and are not intended to limit this specification. For those skilled in the art, this specification can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the scope of the claims of this specification.

300:基於區塊鏈的資料處理裝置 310:接收模組 320:處理模組 330:反饋模組 400:物聯網系統 410:物聯網設備 420:區塊鏈平臺 430:業務伺服器300: Blockchain-based data processing device 310: receiving module 320: processing module 330: Feedback Module 400: Internet of Things System 410: Internet of Things Devices 420: Blockchain platform 430: Business Server

為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本發明實施例中記載的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動性的前提下,還可以根據這些圖式獲得其他的圖式。 [圖1]為本發明實施例提供的資料處理方法的第一種流程示意圖。 [圖2]為本發明實施例提供的資料處理方法的第二種流程示意圖。 [圖3]為本發明實施例提供的資料處理裝置的結構示意圖。 [圖4]為本發明實施例提供的物聯網系統的結構示意圖。 [圖5]為本發明實施例提供的物聯網系統的執行流程示意圖。 [圖6]為本發明實施例提供的電子設備的結構示意圖。In order to more clearly describe the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are merely the present For some of the embodiments recorded in the embodiments of the invention, for a person of ordinary skill in the art, without creative labor, other drawings may be obtained based on these drawings. [Fig. 1] is a schematic diagram of the first flow of a data processing method provided by an embodiment of the present invention. [Fig. 2] is a schematic diagram of the second flow of a data processing method provided by an embodiment of the present invention. [Fig. 3] is a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention. [Figure 4] is a schematic structural diagram of an Internet of Things system provided by an embodiment of the present invention. [Figure 5] is a schematic diagram of the execution flow of the Internet of Things system provided by an embodiment of the present invention. [Figure 6] is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

Claims (10)

一種基於區塊鏈的資料處理方法,包括: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 區塊鏈平臺基於該區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對該區塊鏈服務中的指定資料進行處理; 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將該指定資料的處理結果反饋至該業務伺服器。A data processing method based on blockchain, including: The blockchain platform receives the blockchain service containing the specified data submitted by the IoT device through the blockchain interface; Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. 根據請求項1所述的方法, 該指定智慧合約由該業務伺服器預先部署至該區塊鏈中。According to the method described in claim 1, The designated smart contract is pre-deployed into the blockchain by the business server. 根據請求項1所述的方法, 在區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務後,還包括: 區塊鏈平臺將該指定資料記錄至區塊鏈中。According to the method described in claim 1, After the blockchain platform receives the blockchain service containing the specified data submitted by the IoT device through the blockchain interface, it also includes: The blockchain platform records the specified data in the blockchain. 根據請求項3所述的方法, 區塊鏈平臺將該指定資料記錄至區塊鏈中,包括: 區塊鏈平臺向區塊鏈中的區塊鏈節點發起針對該指定資料的多方共識; 若該多方共識成功通過,則區塊鏈平臺在區塊鏈中添加記錄有該指定資料的區塊。According to the method described in claim 3, The blockchain platform records the specified data in the blockchain, including: The blockchain platform initiates a multi-party consensus on the specified data to the blockchain nodes in the blockchain; If the multi-party consensus is successfully passed, the blockchain platform will add a block recording the specified data to the blockchain. 根據請求項4所述的方法, 該區塊鏈為聯盟鏈,該聯盟鏈中的至少兩個區塊鏈節點被指定為記帳節點; 區塊鏈平臺向區塊鏈中的區塊鏈節點發起針對該指定資料的多方共識,包括: 區塊鏈平臺向該聯盟鏈中的至少兩個記帳節點發起針對該指定資料的多方共識。According to the method described in claim 4, The blockchain is a consortium chain, and at least two blockchain nodes in the consortium chain are designated as accounting nodes; The blockchain platform initiates a multi-party consensus on the specified data to the blockchain nodes in the blockchain, including: The blockchain platform initiates a multi-party consensus on the specified data to at least two accounting nodes in the alliance chain. 根據請求項1至5中任一項所述的方法, 該指定資料包括以下至少一者: 該物聯網設備執行業務所產生的業務資料; 該物聯網設備執行業務所產生的日誌資料; 該物聯網設備執行業務時對應的環境資料。According to the method described in any one of claims 1 to 5, The specified information includes at least one of the following: The business data generated by the Internet of Things device to execute the business; The log data generated by the business of the Internet of Things device; Corresponding environmental data when the Internet of Things device performs business. 一種基於區塊鏈的業務處理裝置,包括: 接收模組,接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 處理模組,基於該區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對該區塊鏈服務中的指定資料進行處理; 反饋模組,調用物聯網設備的業務伺服器的應用程式可程式化介面,以將該指定資料的處理結果反饋至該業務伺服器。A business processing device based on blockchain, including: The receiving module receives the blockchain service containing the specified data submitted by the Internet of Things device through the blockchain interface; The processing module, based on the blockchain service, triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; The feedback module calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. 一種物聯網系統,包括:物聯網設備、業務伺服器和區塊鏈平臺; 該物聯網設備,透過區塊鏈介面向區塊鏈平臺提交的包含指定資料的區塊鏈服務; 該區塊鏈平臺,基於該區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對該區塊鏈服務中的指定資料進行處理;以及將該指定資料的處理結果反饋至該業務伺服器; 該業務伺服器,基於該指定資料的處理結果執行相關的業務邏輯。An Internet of Things system, including: Internet of Things equipment, business server and blockchain platform; The Internet of Things device submits a blockchain service containing specified data to the blockchain platform through the blockchain interface; The blockchain platform, based on the blockchain service, triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; and feeds back the processing result of the designated data to the Business server The business server executes related business logic based on the processing result of the specified data. 一種電子設備包括:記憶體、處理器及儲存在該記憶體上並可在該處理器上運行的電腦程式,該電腦程式被該處理器執行: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 區塊鏈平臺基於該區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對該區塊鏈服務中的指定資料進行處理; 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將該指定資料的處理結果反饋至該業務伺服器。An electronic device includes: a memory, a processor, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor: The blockchain platform receives the blockchain service containing the specified data submitted by the IoT device through the blockchain interface; Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server. 一種電腦可讀儲存媒體,該電腦可讀儲存媒體上儲存有電腦程式,該電腦程式被處理器執行時實現如下步驟: 區塊鏈平臺接收物聯網設備透過區塊鏈介面提交的包含指定資料的區塊鏈服務; 區塊鏈平臺基於該區塊鏈服務,觸發預先部署在區塊鏈中的指定智慧合約,對該區塊鏈服務中的指定資料進行處理; 區塊鏈平臺調用物聯網設備的業務伺服器的應用程式可程式化介面,以將該指定資料的處理結果反饋至該業務伺服器。A computer-readable storage medium has a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: The blockchain platform receives the blockchain service containing the specified data submitted by the IoT device through the blockchain interface; Based on the blockchain service, the blockchain platform triggers a designated smart contract pre-deployed in the blockchain to process the designated data in the blockchain service; The blockchain platform calls the programmable interface of the business server of the Internet of Things device to feed back the processing result of the specified data to the business server.
TW109116687A 2019-09-27 2020-05-20 Data processing method, device and system based on block chain and electronic equipment TW202113722A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910927156.7 2019-09-27
CN201910927156.7A CN110708371A (en) 2019-09-27 2019-09-27 Data processing method, device and system based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
TW202113722A true TW202113722A (en) 2021-04-01

Family

ID=69197123

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109116687A TW202113722A (en) 2019-09-27 2020-05-20 Data processing method, device and system based on block chain and electronic equipment

Country Status (3)

Country Link
CN (1) CN110708371A (en)
TW (1) TW202113722A (en)
WO (1) WO2021057084A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708371A (en) * 2019-09-27 2020-01-17 支付宝(杭州)信息技术有限公司 Data processing method, device and system based on block chain and electronic equipment
CN111475567B (en) * 2020-03-09 2021-07-23 上海能链众合科技有限公司 Internet of things data sequential recording method
CN111930443B (en) * 2020-10-15 2020-12-18 杭州云链趣链数字科技有限公司 Operation and maintenance method, system, computer equipment and storage medium based on block chain
CN113259376A (en) * 2021-06-10 2021-08-13 永旗(北京)科技有限公司 Control method of Internet of things equipment based on block chain
CN113766346A (en) * 2021-09-10 2021-12-07 杭州链城数字科技有限公司 Block chain Internet of things equipment for unmanned aerial vehicle
CN115086394A (en) * 2022-06-15 2022-09-20 亚信科技(中国)有限公司 Service information processing method and device and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682331B (en) * 2017-09-28 2020-05-12 复旦大学 Block chain-based Internet of things identity authentication method
WO2019161555A1 (en) * 2018-02-24 2019-08-29 Telefonaktiebolaget Lm Ericsson (Publ) Methods and peer node in an emergency event broadcasting system
CN108537549A (en) * 2018-04-18 2018-09-14 四川众之金科技有限公司 A kind of purview certification method and device
CN109167822A (en) * 2018-08-14 2019-01-08 众安信息技术服务有限公司 A kind of internet of things equipment control method and system based on block chain
CN109493194B (en) * 2018-12-22 2023-09-05 复旦大学 Cinema ticketing system based on blockchain and implementation method
CN113421088A (en) * 2019-03-26 2021-09-21 创新先进技术有限公司 Data processing method and device based on block chain and electronic equipment
CN110266807A (en) * 2019-06-28 2019-09-20 中兴通讯股份有限公司 Internet of things data processing method and processing device
CN110708371A (en) * 2019-09-27 2020-01-17 支付宝(杭州)信息技术有限公司 Data processing method, device and system based on block chain and electronic equipment

Also Published As

Publication number Publication date
CN110708371A (en) 2020-01-17
WO2021057084A1 (en) 2021-04-01

Similar Documents

Publication Publication Date Title
WO2021057084A1 (en) Blockchain-based data processing method and apparatus, system, and electronic device
CN110222533B (en) Distributed data security application method and system and electronic equipment
CN108712488B (en) Data processing method and device based on block chain and block chain system
CN104426885B (en) Abnormal account providing method and device
WO2020108110A1 (en) Blockchain-based logistics information tracing method and apparatus, and electronic device
CN105447046A (en) Distributed system data consistency processing method, device and system
CN109359147B (en) Business component processing method, component server and system
TWI706663B (en) Data storage method and system based on multiple blockchain networks
CN107104923A (en) A kind of account binding and the method and device of business processing
CN104580210A (en) Hotlinking prevention method, hotlinking prevention assembly and cloud platform under cloud platform environment
CN106203179B (en) A kind of completeness check system and method for pair of file
CN113542405B (en) Block chain-based network communication system, method, equipment and storage medium
CN110536118A (en) A kind of data capture method, device and computer storage medium
CN110033188A (en) Business scheduling method, device, calculating equipment and medium based on block chain
CN111698196A (en) Authentication method and micro-service system
CN104537284A (en) Software protecting system and method based on remote service
CN109818915B (en) Information processing method and device, server and readable storage medium
CN110662210A (en) Block chain-based secondary or repeated mobile phone number identification method, system and equipment
CN105516134A (en) Authentication method and system for system integration
CN111832862B (en) Flow management method and system based on block chain
CN114978686A (en) Digital asset chaining method and device
WO2017054586A1 (en) Article inspection and examination system and method
US10742802B2 (en) Methods and devices for verifying a communication number
CN113806335A (en) Data migration method and device applied to block chain
CN114040223A (en) Image processing method and system