TWI698108B - Blockchain-based data processing method and device - Google Patents

Blockchain-based data processing method and device Download PDF

Info

Publication number
TWI698108B
TWI698108B TW108101449A TW108101449A TWI698108B TW I698108 B TWI698108 B TW I698108B TW 108101449 A TW108101449 A TW 108101449A TW 108101449 A TW108101449 A TW 108101449A TW I698108 B TWI698108 B TW I698108B
Authority
TW
Taiwan
Prior art keywords
data
block
blockchain
local database
patent application
Prior art date
Application number
TW108101449A
Other languages
Chinese (zh)
Other versions
TW202002587A (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 香港商阿里巴巴集團服務有限公司
Publication of TW202002587A publication Critical patent/TW202002587A/en
Application granted granted Critical
Publication of TWI698108B publication Critical patent/TWI698108B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • 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
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • 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/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • 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

本說明書的一個或多個實施例提供了一種基於區塊鏈的資料處理方法和裝置,應用於與所述區塊鏈對接的資料中心,包括:將所述區塊鏈上的區塊資料同步至本地資料庫;接收目標應用程式發送的資料使用請求;回應於所述資料使用請求,在所述本地資料庫中查詢與所述資料使用請求對應的被請求資料,並將所述被請求資料返回所述目標應用程式。One or more embodiments of this specification provide a blockchain-based data processing method and device, which are applied to a data center connected to the blockchain, including: synchronizing block data on the blockchain To the local database; receive the data use request sent by the target application; respond to the data use request, query the local database for the requested data corresponding to the data use request, and send the requested data Return the target application.

Description

基於區塊鏈的資料處理方法和裝置Blockchain-based data processing method and device

本說明書涉及網路通信技術領域,尤其涉及一種基於區塊鏈的資料處理方法和裝置。This specification relates to the field of network communication technology, and in particular to a data processing method and device based on blockchain.

區塊鏈技術,也被稱之為分散式帳本技術,是一種由若干台計算設備共同參與“記帳”,共同維護一份完整的分散式資料庫的新興技術。在當前區塊鏈環境下,鏈上資料存在嚴重的難以識別,統計,分析的問題。造成這一問題的主要原因是區塊鏈以分散式形式儲存資料的過程中,通常以全域唯一的Hash編碼做為區塊之間的父子血緣連接。區塊中包含的資料資訊無法與Hash編碼建立連接,區塊資料內部的資料也無法建立聯繫,因此區塊鏈是一種低效且昂貴的儲存資料的方式。區塊鏈資料儲存結構導致鏈上儲存的資料很難被上層應用程式使用,給區塊鏈技術推廣發展造成很大的瓶頸。Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices participate in "bookkeeping" and jointly maintain a complete distributed database. In the current blockchain environment, there are serious problems in identifying, counting, and analyzing data on the chain. The main reason for this problem is that in the process of storing data in a distributed form in the blockchain, the global unique Hash code is usually used as the father-son blood connection between the blocks. The data information contained in the block cannot be connected with the Hash code, and the data inside the block data cannot be connected. Therefore, the blockchain is an inefficient and expensive way to store data. The blockchain data storage structure makes it difficult for the data stored on the chain to be used by upper-level applications, which creates a big bottleneck for the promotion and development of blockchain technology.

針對以上提出的問題,本說明書提供了一種基於區塊鏈的資料處理方法,應用於與所述區塊鏈對接的資料中心,包括: 將所述區塊鏈上的區塊資料同步至本地資料庫; 接收目標應用程式發送的資料使用請求; 回應於所述資料使用請求,在所述本地資料庫中查詢與所述資料使用請求對應的被請求資料,並將所述被請求資料返回所述目標應用程式。 更優的,所述將所述區塊鏈上的區塊資料同步至本地資料庫,包括: 即時監控所述區塊鏈上的區塊高度; 當監控到所述區塊鏈上的區塊高度發生變化時,基於啟用的定時任務將最新區塊的區塊資料同步至本地資料庫。 更優的,所述將所述區塊鏈上的區塊資料同步至本地資料庫,包括: 根據預設的解析規則解析所述區塊資料; 將解析得到的區塊資料按照預設的儲存格式儲存於所述本地資料庫。 更優的,所述解析規則為外掛程式化的解析規則。 更優的,所述解析規則包括業務場景解析規則、資料過濾規則、預設索引欄位解析規則中的一種或多種。 更優的,所述預設的儲存格式包括JSON格式。 更優的,所述將所述區塊鏈上的區塊資料同步至本地資料庫,還包括: 為解析得到的區塊資料產生查詢索引,基於產生的查詢索引與對應的區塊資料之間的映射關係創建索引表,並在本地保存。 相應地,本說明書還提供一種基於區塊鏈的資料處理裝置,應用於與所述區塊鏈對接的資料中心,包括: 同步單元,將所述區塊鏈上的區塊資料同步至本地資料庫; 接收單元,接收目標應用程式發送的資料使用請求; 處理單元,回應於所述資料使用請求,在所述本地資料庫中查詢與所述資料使用請求對應的被請求資料,並將所述被請求資料返回所述目標應用程式。 更優的,所述同步單元進一步用於: 即時監控所述區塊鏈上的區塊高度; 當監控到所述區塊鏈上的區塊高度發生變化時,基於啟用的定時任務將最新區塊的區塊資料同步至本地資料庫。 更優的,所述同步單元進一步用於: 根據預設的解析規則解析所述區塊資料; 將解析得到的區塊資料按照預設的儲存格式儲存於所述本地資料庫。 更優的,所述解析規則為外掛程式化的解析規則。 更優的,所述解析規則包括業務場景解析規則、資料過濾規則、預設索引欄位解析規則中的一種或多種。 更優的,所述預設的儲存格式包括JSON格式。 更優的,所述同步單元進一步用於: 為解析得到的區塊資料產生查詢索引,基於產生的查詢索引與對應的區塊資料之間的映射關係創建索引表,並在本地保存。 相應地,本說明書還提供了一種電腦設備,包括:記憶體和處理器;所述記憶體上儲存有可由處理器運行的電腦程式;所述處理器運行所述電腦程式時,執行如上述基於區塊鏈的資料處理方法所述的步驟。 相應地,本說明書還提供了一種電腦可讀儲存媒體,其上儲存有電腦程式,所述電腦程式被處理器運行時,執行如上述基於區塊鏈的資料處理方法所述的步驟。 應用本說明書所提供的基於區塊鏈的資料處理方法、裝置、電腦設備和電腦可讀儲存媒體,在區塊鏈與其上層應用程式(即目標應用程式)之間構建一資料中心,該資料中心同步區塊鏈的區塊資料至本地資料庫,資料中心可基於本地資料庫的資料儲存方式和資料檢索方式,為目標應用程式提供更加便捷的資料處理方法,克服了區塊鏈中的資料使用不便的缺陷。In response to the above-mentioned problems, this manual provides a blockchain-based data processing method, which is applied to the data center docked with the blockchain, including: Synchronizing the block data on the blockchain to the local database; Receive data usage requests sent by the target application; In response to the data use request, query the requested data corresponding to the data use request in the local database, and return the requested data to the target application. More preferably, the synchronization of block data on the blockchain to a local database includes: Real-time monitoring of the block height on the blockchain; When the height of the block on the blockchain is monitored, the block data of the latest block is synchronized to the local database based on the activated timing task. More preferably, the synchronization of block data on the blockchain to a local database includes: Parsing the block data according to preset parsing rules; The block data obtained by analysis is stored in the local database according to a preset storage format. More preferably, the parsing rule is a plug-in programmed parsing rule. More preferably, the analysis rules include one or more of business scenario analysis rules, data filtering rules, and preset index field analysis rules. More preferably, the preset storage format includes a JSON format. More preferably, said synchronizing the block data on the blockchain to a local database further includes: A query index is generated for the parsed block data, and an index table is created based on the mapping relationship between the generated query index and the corresponding block data, and stored locally. Correspondingly, this specification also provides a block chain-based data processing device, which is applied to a data center docked with the block chain, including: The synchronization unit synchronizes the block data on the blockchain to the local database; The receiving unit receives the data usage request sent by the target application; The processing unit responds to the data use request, queries the local database for the requested data corresponding to the data use request, and returns the requested data to the target application. More preferably, the synchronization unit is further used for: Real-time monitoring of the block height on the blockchain; When the height of the block on the blockchain is monitored, the block data of the latest block is synchronized to the local database based on the activated timing task. More preferably, the synchronization unit is further used for: Parsing the block data according to preset parsing rules; The block data obtained by analysis is stored in the local database according to a preset storage format. More preferably, the parsing rule is a plug-in programmed parsing rule. More preferably, the analysis rules include one or more of business scenario analysis rules, data filtering rules, and preset index field analysis rules. More preferably, the preset storage format includes a JSON format. More preferably, the synchronization unit is further used for: A query index is generated for the parsed block data, and an index table is created based on the mapping relationship between the generated query index and the corresponding block data, and stored locally. Correspondingly, this specification also provides a computer device, including: a memory and a processor; the memory stores a computer program that can be run by the processor; when the processor runs the computer program, it executes The steps described in the blockchain data processing method. Correspondingly, this specification also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is run by a processor, it executes the steps described in the above-mentioned blockchain-based data processing method. Apply the blockchain-based data processing methods, devices, computer equipment, and computer-readable storage media provided in this manual to build a data center between the blockchain and its upper application (ie, target application). Synchronize the block data of the blockchain to the local database. The data center can provide a more convenient data processing method for the target application based on the data storage method and data retrieval method of the local database, which overcomes the use of data in the blockchain Inconvenient defects.

“區塊鏈”,具體可指一個各節點透過共識機制達成的、具有分散式資料儲存結構的P2P網路系統,該區塊鏈內的資料分佈在時間上相連的一個個“區塊(block)”之內,後一區塊包含前一區塊的資料摘要,且根據具體的共識機制(如POW、POS、DPOS或PBFT等)的不同,達成全部或部分節點的資料全備份。本領域的技術人員熟知,由於區塊鏈系統在相應共識機制下運行,已收錄至區塊鏈資料庫內的資料很難再被更改,例如採用Pow共識的區塊鏈,至少需要全網51%算力的攻擊才有可能篡改已有資料,因此區塊鏈系統有著其他中心化資料庫系統所無法比擬的保證資料安全、防更改的特性。區塊內的資料通常以交易(transaction)的形式被收錄,各個交易之間並無建立聯繫,且各交易無法從內容上與區塊的資料摘要建立聯繫(而僅僅從數學上如默克爾樹法建立聯繫),由於缺乏對區塊內資料或交易內資料統一的分析統計及索引機制,區塊鏈內的資料很難被區塊鏈的上層應用程式使用。 為解決如上所述的問題,圖1示意了本說明書一示意性實施例提供的基於區塊鏈的資料處理方法的流程圖,該方法應用於與所述區塊鏈對接的資料中心,包括: 步驟102,將所述區塊鏈上的區塊資料同步至本地資料庫; 步驟104,接收目標應用程式發送的資料使用請求; 步驟106,回應於所述資料使用請求,在所述本地資料庫中查詢與所述資料使用請求對應的被請求資料,並將所述被請求資料返回所述目標應用程式。 本說明書實施例所述的“上層應用程式”或“目標應用程式”是指構建於所述區塊鏈的分散式資料儲存架構上的應用程式,可利用區塊鏈的共識機制、分散式資料庫、或可自動執行的智慧合約等機制特性為該應用程式具體的業務實現(比如,租房業務、車輛調度業務、保險理賠業務、信用服務、醫療服務等)提供資料服務。本說明書實施例所述的資料中心是指既與所述區塊鏈通信連接(可作為上述區塊鏈的一個節點設備),又與區塊鏈的目標應用程式(又可稱為上層應用程式)通信連接的資料處理設備。 圖2示意了本說明書一實施例提供的區塊鏈系統、上層應用程式及資料中心的連接架構圖,所述資料中心既與所述區塊鏈系統連接,又與所述區塊鏈的上層應用程式DAPP(Decentralized Application)連接,且該上層應用程式也與所述區塊鏈系統通信聯繫以便上層應用程式將其產生的業務資料直接寫入區塊鏈的分散式資料庫。透過在區塊鏈系統與其上層應用程式DAPP之間設置一資料中心,將區塊鏈的區塊資料同步至資料中心的本地資料庫,利用資料中心為上層應用程式的資料使用請求提供被請求資料。由於資料中心可以對其本地資料庫內所儲存的資料進行解析、格式更改、移動位置等操作,不再受限於區塊鏈的區塊資料不能被更改(如儲存格式或儲存位置)且資料之間關聯性差造成的資料使用不便的特性,該資料中心的構建可更加便捷地為區塊鏈的上層應用程式提供資料服務。上述區塊資料可包括區塊內全部交易資料、區塊內的交易摘要資料、區塊的摘要資料等資料內容的一種或多種,可根據資料中心或其上層應用程式的具體的業務需求而設定。而且,本領域的技術人員應知,上述實施例所述的資料中心可為多個上層應用程式提供資料服務,在本發明中不作限定。 在本說明書中所描述的交易(transfer),是指用戶透過區塊鏈的用戶端創建,並需要最終發佈至區塊鏈的分散式資料庫中的一筆資料。其中,區塊鏈中的交易,存在狹義的交易以及廣義的交易之分。狹義的交易是指使用者向區塊鏈發佈的一筆價值轉移;例如,在傳統的比特幣區塊鏈網路中,交易可以是使用者在區塊鏈中發起的一筆轉帳。而廣義的交易是指使用者向區塊鏈發佈的一筆具有業務意圖的業務資料;例如,運營方可以基於實際的業務需求搭建一個聯盟鏈,依託於聯盟鏈部署一些與價值轉移無關的其它類型的線上業務(比如,貸款申請、租房業務、車輛調度業務、保險理賠業務、信用服務、醫療服務等),而在這類聯盟鏈中,交易可以是使用者在聯盟鏈中發佈的一筆具有業務意圖的業務消息或者業務請求。本說明書不限定該“交易”的表現形式,可根據本說明書所述的區塊鏈的業務性質具體而定。 另外,在本說明書所提供的實施例中,關於區塊鏈與其目標應用程式(或上層應用程式)的通信方式可以有多種,例如,區塊鏈可以與其上層應用程式直接連接,圖2中所示的區塊鏈的上層應用程式DAPP將其產生的業務資料直接寫入區塊鏈中;本說明書不限於此,例如,該上層應用程式DAPP還可將其產生的業務資料先發送至資料中心進行預處理,或過濾處理等操作,再將應上鏈的資料發送至區塊鏈中,從而進一步節約區塊鏈的資料佔用空間。 在圖1所提供的基於區塊鏈的資料處理方法的實施例中,步驟102——將所述區塊鏈上的區塊資料同步至本地資料庫與步驟104——接收目標應用程式發送的資料使用請求的先後順序並不是唯一限定的。該資料中心可根據預設的同步規則先行將區塊鏈的最新區塊資料同步至本地資料庫,再接收目標應用程式發送的資料使用請求以在本地資料庫中處理該資料使用請求;也可以先接收目標應用程式發送的資料使用請求,再進行區塊資料的同步,而且如果先行接收到的資料使用請求中包含與該資料使用請求相關或應獲取的區塊高度列表,該資料中心可選擇性同步該區塊高度列表中包含的區塊高度的區塊資料,而省去獲取所述區塊鏈的全部區塊的區塊資料,從而進一步節約資料中心的儲存空間,提高資料中心電腦資源的使用效率。 上述的資料中心將區塊鏈的最新資料同步至本地資料庫的具體實現方式也可以有多種。在一示出的實施例中,資料中心與區塊鏈保持即時獲取模式,即資料中心即時向區塊鏈系統獲取最新區塊,每當區塊鏈系統內有新的區塊被廣播收錄,資料中心可立刻將該新的區塊同步至本地資料庫。上述資料中心即時將區塊鏈上的區塊資料同步至本地資料庫的方式,不易出現資料延遲,但由於資料中心需即時保持下載區塊資料的狀態,而區塊鏈上的區塊並非即時增加高度,因此對資料中心計算資源存在浪費。 在另一示出的實施例中,資料中心可選擇離線定時獲取的模式同步區塊鏈上的區塊資料,即資料中心啟用定時獲取任務,每隔一段預設的時間段從區塊鏈上獲取新增的區塊資料,並將獲取到的新增的區塊資料同步至本地資料庫。相比於上述資料中心對區塊鏈的區塊資料的即時獲取模式,離線定時獲取的模式增加了資料中心的電腦資源的有效利用率,但資料中心由於並不能準確獲知區塊高度增加的時間而存在所獲資料延遲的缺點,甚至由於資料中心並不知曉所同步區塊的詳情,其定時獲取的區塊資料也許並不是資料中心為其目標應用程式提供資料服務所需的資料,而增加了對電腦資源的浪費。 基於以上所述的資料中心將區塊鏈上的區塊資料同步至本地資料庫的方式,本說明書還提供了一種實施方式以結合上述兩種資料同步方式的優勢,即資料中心可即時監聽所述區塊鏈上的區塊高度;當監控到所述區塊鏈上的區塊高度發生變化時,再基於啟用的定時任務將最新區塊的區塊資料同步至本地資料庫。 由於即時監聽所需的電腦資源遠小於即時獲取區塊鏈上新增區塊的區塊資料所需的電腦資源,資料中心採用該種實施方式同步區塊鏈上的區塊資料,明顯增加了電腦資源的有效利用率。 基於監聽到的區塊鏈上的區塊高度增加情況,資料中心可配置具體的定時任務將最新區塊的區塊資料同步至本地資料庫;透過配置該定時任務,資料中心可控制其獲取到的區塊資料的延遲時間,對於資料時效性要求較高的區塊給予獲取頻率較高的定時任務,對於資料時效性要求不高的區塊給予獲取頻率較低的定時任務,從而更加合理的利用資料中心的電腦資源;而且,由於資料中心應為其上層應用程式提供資料服務,該服務所需的資料可能存在某些特定的區塊中,資料中心可在監聽到這些特定的區塊後,再透過啟用的定時任務來獲取特定區塊,從而進一步控制所需資料的延遲時間,並增加電腦資源的利用率。 在本說明書提供了又一實施例中,為了更加方便地為目標應用程式提供資料使用服務,資料中心將區塊鏈上的區塊資料同步至本地資料庫的過程,還包括:根據預設的解析規則解析所述區塊資料,將解析得到的區塊資料按照預設的儲存格式儲存於本地資料庫,本地資料庫可為標準關係型資料庫(例如: Rds)或非關聯式儲存(例如: HBase),在本說明書中不作限定。 具體說來,上述解析規則可根據區塊鏈系統所收錄的資料內容類別型或目標應用程式的具體業務進行設置,包括業務場景解析規則、資料過濾規則、或預設索引欄位解析規則等規則中的一種或多種。以房屋租賃場景為例,上述區塊鏈收錄了不同節點或節點用戶端發來的房屋租賃合同交易、房租押金繳納交易、房租繳納交易等多種內容或類型的交易,用於為房屋租賃的全過程進行區塊鏈存證,當然,本領域技術人員應知,上述區塊鏈還可用於收錄其他業務場景的存證資訊交易,各種業務場景下產生的交易都被混合收錄在該區塊鏈的區塊內,區塊鏈並未按照交易的業務類型對所有的交易進行相應的歸類及儲存。該區塊鏈上構建有一用於房屋租賃管理的上層應用程式,需要從該區塊鏈內獲取與房屋租賃業務相關的各類資料資訊,為方便上述的資料資訊獲取,本實施例所提供的資料中心可對從區塊鏈上獲取的區塊資訊進行解析,將解析所得的房屋租賃管理相關的資訊儲存於本地資料庫,以供上述用於房租租賃管理的上層應用程式隨時調用。 具體地,資料中心可設置一房屋租賃業務資料模型(例如Schema範本),使用該資料模型解析區塊資料,並將相應的資料填寫入資料模型中。例如,該房屋租賃業務資料模型可包括房屋租賃合同號、房屋租賃人ID、房屋承租人ID、房屋位址、租金押金、租金、租賃期限等內容,透過逐個解析區塊內的交易內容資料,即可將相應的資料資訊填入該模型之中,並按照本地資料庫的資料文本保存類型,如JSON格式,儲存於本地資料庫。上述資料解析過程還可使用一些過濾規則,如特定公開金鑰規則、或濾掉黑名單公開金鑰規則,選擇特定公開金鑰發佈的交易進行資料解析、或不對隸屬於黑名單的公開金鑰發佈的交易進行資料解析,從而過濾掉髒資料以節約電腦資源;也可使用分類規則,對區塊內的交易進行分類,過濾掉不屬房屋租賃業務的交易,從而只針對目標業務進行資料解析。具體的解析過程中還可使用預設索引欄位解析規則,在本例中,設置“租賃合同編號”、“房屋面積”、“承租人身份證號”等上層應用程式所需的業務索引欄位,對同步的區塊資料逐個解析。 值得注意的是,上述按各種解析規則進行解析的過程可以被設置為外掛程式化的可執行程式,從而針對不同的業務場景,靈活運用各種解析規則,或靈活運用各種解析規則的組合,提高資料解析處理的效率。另外,上述解析過程中還可包括對資料的驗簽、加密或解密、脫敏等操作,在此不做贅述。 根據上述各種解析規則產生的資料通常為Key-Value格式,如租賃合同編號-1234567,承租人身份證號 -1XXXXXX XXXXX等,為方便資料中心對上述儲存資料的檢索查詢,在本說明書提供的又一實施例中,資料中心可以為上述解析所得的資料產生查詢索引,基於產生的查詢索引與對應的區塊資料之間的映射關係創建索引表,並在上述本地資料庫保存。以下本說明書對在房屋租賃業務中資料中心可實現的各種功能做出說明。 圖3示意了可為房屋租賃管理的上層應用程式提供資料處理服務的資料中心30的架構,該資料中心30可劃分為對外介面層302、資訊解析層304、業務索引層306、資料同步層308、底層資料來源層310等多層架構,對上層應用程式提供交易資訊資料檢索、統計、分析等多種資料處理操作。值得注意的是,上述多層架構僅僅是基於資料中心可執行的資料處理功能而概括性地人為劃分,上述各層之間並無特定的分界,且本說明書所提供的資料中心所能實現的功能也可不限於此。 區塊鏈上收錄的區塊資料可包括以下交易資訊: 交易00:{txhash:tx00, contract No.:12345678, housecode:0001, land lord: A, tenant name: B and C } 交易01:{txhash:tx01, contract No.:12345678, deposit:500,month rent for B:999, month rent for C:888 } 交易11:{txhash:tx11,contract No.:12345678 housecode:0001 pay_channel: 10001 pay_amount: 999} 交易21:{txhash:tx21,contract No.:12345678 housecode:0001 pay_channel: 10002 pay_amount: 888} …… 該資料中心的資料同步層308可基於預設的同步策略(如上述的即時模式或離線模式或即時與離線結合模式)將區塊鏈的區塊資料同步至本地資料庫,資訊解析層304用於對上述已同步的區塊資料進行解析,例如使用房屋租賃合同解析模型,另外,資訊解析層304還可對解析後的資料進行一些預處理,如資料的排序或合併,資料脫敏或加解密等;在本例中,經過資訊解析層的處理,資料中心可得到如下資料: {contract No.:12345678, housecode:0001, land lord: A, tenant name: B and C } deposit:500, month rent for B:999, month rent for C:888} 上述解析所得的房屋租賃合同資料可以JSON格式被保存在底層資料來源層310中,底層資料來源層可使用標準的關係型資料庫形式,也可為非關係型資料庫形式。 類似地,資料中心的資訊解析層304還可利用索引欄位解析規則,對承租人提交的房租支付交易進行解析,例如使用索引資料欄位“txhash”“pay_channel”(注:不同的pay_channel說明本資料中心可同步獲取不同的區塊鏈或同一區塊鏈的不同子鏈中的區塊資料)“pay_amount”解析上述交易,以獲得如表1所示的如下資料:

Figure 108101449-A0305-02-0017-1
"Blockchain" can specifically refer to a P2P network system with a distributed data storage structure that is reached by each node through a consensus mechanism. The data in the blockchain is distributed in time-connected blocks. )", the next block contains the data summary of the previous block, and according to the specific consensus mechanism (such as POW, POS, DPOS or PBFT, etc.), a full backup of all or part of the node data is achieved. Those skilled in the art are well aware that because the blockchain system operates under the corresponding consensus mechanism, the data that has been included in the blockchain database is difficult to be changed. For example, the blockchain using Pow consensus requires at least 51 The attack of% computing power can tamper with existing data. Therefore, the blockchain system has the characteristics of ensuring data security and anti-change that cannot be matched by other centralized database systems. The data in the block is usually included in the form of transactions. There is no connection between each transaction, and each transaction cannot establish a connection with the data summary of the block in terms of content (but only mathematically like Merkel tree Because of the lack of a unified analysis, statistics and indexing mechanism for the data in the block or transaction, the data in the blockchain is difficult to be used by the upper-level applications of the blockchain. In order to solve the above-mentioned problems, FIG. 1 illustrates a flowchart of a blockchain-based data processing method provided by an exemplary embodiment of this specification. The method is applied to a data center connected to the blockchain, and includes: Step 102, synchronize the block data on the blockchain to the local database; Step 104, receive the data use request sent by the target application; Step 106, respond to the data use request, in the local database Query the requested data corresponding to the data usage request in the data usage request, and return the requested data to the target application. The "upper application" or "target application" mentioned in the embodiment of this specification refers to the application built on the distributed data storage architecture of the blockchain, which can use the consensus mechanism and distributed data of the blockchain Mechanism features such as libraries, or smart contracts that can be automatically executed provide data services for the specific business realization of the application (for example, rental business, vehicle dispatching business, insurance claims business, credit services, medical services, etc.). The data center described in the embodiment of this specification refers to both the communication connection with the blockchain (which can be used as a node device of the above-mentioned blockchain), and the target application of the blockchain (also known as the upper-level application) ) Data processing equipment connected by communication. Figure 2 illustrates the connection architecture diagram of the blockchain system, upper-level applications, and data center provided by an embodiment of this specification. The data center is connected to the blockchain system and the upper layer of the blockchain The application DAPP (Decentralized Application) is connected, and the upper-level application also communicates with the blockchain system so that the upper-level application directly writes the business data generated by it into the distributed database of the blockchain. By setting up a data center between the blockchain system and the upper-level application DAPP, the block data of the blockchain is synchronized to the local database of the data center, and the data center is used to provide the requested data for the data use request of the upper-level application . Since the data center can perform operations such as parsing, formatting, and moving the data stored in its local database, it is no longer limited to the block data of the blockchain that cannot be changed (such as storage format or storage location) and the data Due to the inconvenience of data usage caused by the poor correlation, the construction of the data center can more conveniently provide data services for upper-level applications of the blockchain. The above block data can include one or more of all transaction data in the block, transaction summary data in the block, summary data of the block, etc., which can be set according to the specific business requirements of the data center or its upper-level application . Moreover, those skilled in the art should know that the data center described in the foregoing embodiment can provide data services for multiple upper-level applications, which is not limited in the present invention. The transfer described in this manual refers to a piece of data created by the user through the client terminal of the blockchain and needs to be finally released to the distributed database of the blockchain. Among them, transactions in the blockchain are divided into narrow transactions and broad transactions. A narrowly defined transaction refers to a transfer of value issued by a user to the blockchain; for example, in a traditional Bitcoin blockchain network, a transaction can be a transfer initiated by the user in the blockchain. In a broad sense, a transaction refers to a piece of business data with business intentions released by the user to the blockchain; for example, the operator can build a consortium chain based on actual business needs, and rely on the consortium chain to deploy some other types that are not related to value transfer Online business (for example, loan application, rental business, vehicle dispatch business, insurance claims business, credit service, medical service, etc.), and in this kind of alliance chain, a transaction can be a transaction issued by the user in the alliance chain. Intent business message or business request. This manual does not limit the form of expression of the "transaction", and can be specifically determined according to the business nature of the blockchain described in this manual. In addition, in the embodiments provided in this specification, there can be multiple ways of communicating between the blockchain and its target application (or upper-layer application). For example, the blockchain can be directly connected to its upper-layer application, as shown in Figure 2. The upper-level application DAPP of the blockchain shown directly writes the business data it generates into the blockchain; this manual is not limited to this, for example, the upper-level application DAPP can also send the business data it generates to the data center first Perform preprocessing, or filtering, and then send the data that should be chained to the blockchain, thereby further saving the space occupied by the data of the blockchain. In the embodiment of the blockchain-based data processing method provided in Figure 1, step 102—synchronize the block data on the blockchain to the local database and step 104—receive the data sent by the target application The order of data use requests is not uniquely limited. The data center can first synchronize the latest block data of the blockchain to the local database according to the preset synchronization rules, and then receive the data use request sent by the target application to process the data use request in the local database; or First receive the data usage request sent by the target application, and then synchronize the block data, and if the data usage request received first contains a list of block heights related to the data usage request or should be obtained, the data center can choose Synchronize the block data of the block height included in the block height list without obtaining the block data of all the blocks of the block chain, thereby further saving the storage space of the data center and increasing the computer resources of the data center The efficiency of use. There can also be many specific implementation methods for the aforementioned data center to synchronize the latest data of the blockchain to the local database. In an illustrated embodiment, the data center and the blockchain maintain a real-time acquisition mode, that is, the data center acquires the latest block from the blockchain system in real time, and whenever a new block in the blockchain system is broadcasted, The data center can immediately synchronize the new block to the local database. The above-mentioned data center synchronizes the block data on the blockchain to the local database in real time, and data delay is not easy to occur, but because the data center needs to keep the state of downloading block data in real time, the blocks on the blockchain are not real-time Increase the height, so there is a waste of data center computing resources. In another illustrated embodiment, the data center can choose the mode of offline timing acquisition to synchronize the block data on the blockchain, that is, the data center activates the timing acquisition task, and the data center starts from the blockchain every preset time period. Obtain the newly added block data, and synchronize the obtained newly added block data to the local database. Compared with the above-mentioned data center's real-time acquisition mode of block data of the blockchain, the offline timing acquisition mode increases the effective utilization of the data center's computer resources, but the data center cannot accurately know the time when the block height increases. And there is the disadvantage of delay in the data obtained. Even because the data center does not know the details of the synchronized block, the block data it obtains regularly may not be the data required by the data center to provide data services for its target applications. This is a waste of computer resources. Based on the above-mentioned method for the data center to synchronize the block data on the blockchain to the local database, this manual also provides an implementation method that combines the advantages of the above two data synchronization methods, that is, the data center can monitor the data in real time. When the height of the block on the blockchain is monitored, the block data of the latest block is synchronized to the local database based on the activated timing task. Since the computer resources required for real-time monitoring are much less than the computer resources required to obtain block data of newly added blocks on the blockchain in real time, the data center adopts this implementation method to synchronize block data on the blockchain, which significantly increases Effective utilization of computer resources. Based on the monitored block height increase on the blockchain, the data center can configure a specific timing task to synchronize the block data of the latest block to the local database; by configuring the timing task, the data center can control its acquisition The delay time of the block data is more reasonable. For blocks with high data timeliness requirements, timed tasks with higher acquisition frequency are given, and blocks with low data timeliness requirements are given timed tasks with lower acquisition frequency, which is more reasonable Use the computer resources of the data center; moreover, because the data center should provide data services for its upper-level applications, the data required by the service may be stored in certain specific blocks, and the data center can monitor these specific blocks , And then obtain specific blocks through the activated timing tasks, thereby further controlling the delay time of required data and increasing the utilization of computer resources. In this specification, another embodiment is provided. In order to provide data usage services for the target application more conveniently, the process of synchronizing the block data on the blockchain to the local database by the data center also includes: The parsing rules parse the block data, and store the parsed block data in a local database according to a preset storage format. The local database can be a standard relational database (such as Rds) or non-relational storage (such as : HBase), which is not limited in this manual. Specifically, the above analysis rules can be set according to the type of data content included in the blockchain system or the specific business of the target application, including business scenario analysis rules, data filtering rules, or default index field analysis rules and other rules One or more of. Taking the house leasing scenario as an example, the above-mentioned blockchain contains various content or types of transactions such as house leasing contract transactions, rent deposit payment transactions, and rent payment transactions sent by different nodes or node users, which are used for the full rental of houses. The process is carried out for blockchain deposit. Of course, those skilled in the art should know that the above-mentioned blockchain can also be used to record deposit information transactions in other business scenarios, and transactions generated in various business scenarios are mixed and included in the blockchain Within the block of, the blockchain does not classify and store all transactions according to the business type of the transaction. An upper-level application for house leasing management is built on the block chain. Various data and information related to house leasing business need to be obtained from the block chain. In order to facilitate the acquisition of the above-mentioned data and information, this embodiment provides The data center can analyze the block information obtained from the blockchain, and store the information related to the house rental management obtained by the analysis in the local database for the above-mentioned upper-level application for rent management to call at any time. Specifically, the data center may set up a data model for the house leasing business (such as a Schema template), use the data model to analyze block data, and fill in the corresponding data into the data model. For example, the house leasing business data model can include house leasing contract number, house renter ID, house tenant ID, house address, rent deposit, rent, lease term, etc., by analyzing the transaction content data in the block one by one, You can fill in the corresponding data information into the model, and store it in the local database according to the data text storage type of the local database, such as JSON format. The above-mentioned data analysis process can also use some filtering rules, such as specific public key rules, or filter blacklist public key rules, select transactions issued by specific public keys for data analysis, or exclude public keys that belong to the blacklist Data analysis is performed on published transactions to filter out dirty data to save computer resources; classification rules can also be used to classify transactions in the block, and to filter out transactions that are not part of the house leasing business, so as to analyze data only for the target business . In the specific analysis process, you can also use the default index field analysis rules. In this example, set the business index columns required by upper-level applications such as "lease contract number", "house area", and "tenant ID number" Bit, analyze the synchronized block data one by one. It is worth noting that the above-mentioned analysis process according to various analysis rules can be set as a plug-in programmed executable program, so that various analysis rules can be flexibly used for different business scenarios, or a combination of various analysis rules can be used to improve data The efficiency of analytical processing. In addition, the above analysis process may also include operations such as signature verification, encryption or decryption, and desensitization of the data, which are not repeated here. The data generated according to the above analysis rules are usually in Key-Value format, such as the lease contract number -1234567, the tenant ID number -1XXXXXX XXXXX, etc. In order to facilitate the retrieval and query of the above stored data by the data center, the information provided in this manual In one embodiment, the data center may generate a query index for the data obtained by the above analysis, create an index table based on the mapping relationship between the generated query index and the corresponding block data, and save it in the above-mentioned local database. The following manual explains the various functions that can be realized by the data center in the house leasing business. Figure 3 illustrates the structure of a data center 30 that can provide data processing services for upper-level applications for housing rental management. The data center 30 can be divided into an external interface layer 302, an information analysis layer 304, a business index layer 306, and a data synchronization layer 308 , The bottom layer data source layer 310 and other multi-layer structure, provide transaction information data retrieval, statistics, analysis and other data processing operations for the upper application program. It is worth noting that the above-mentioned multi-layer architecture is only a general artificial division based on the data processing functions that can be performed by the data center. There is no specific boundary between the above-mentioned layers, and the functions that can be realized by the data center provided in this manual are also It is not limited to this. The block data included on the blockchain can include the following transaction information: Transaction 00: {txhash:tx00, contract No.:12345678, housecode:0001, land lord: A, tenant name: B and C} Transaction 01: {txhash :tx01, contract No.:12345678, deposit: 500, month rent for B:999, month rent for C:888} Transaction 11: {txhash:tx11, contract No.:12345678 housecode:0001 pay_channel: 10001 pay_amount: 999} Transaction 21: {txhash:tx21, contract No.:12345678 housecode:0001 pay_channel: 10002 pay_amount: 888} …… The data synchronization layer 308 of the data center can be based on a preset synchronization strategy (such as the above-mentioned real-time mode or offline mode or Real-time and offline combination mode) synchronize the block data of the blockchain to the local database. The information analysis layer 304 is used to analyze the synchronized block data, such as the use of house lease contract analysis model. In addition, the information analysis layer 304 can also perform some preprocessing on the parsed data, such as data sorting or merging, data desensitization or encryption and decryption, etc.; in this example, after processing the information analysis layer, the data center can obtain the following data: {contract No .:12345678, housecode:0001, land lord: A, tenant name: B and C} deposit: 500, month rent for B:999, month rent for C:888} The housing lease contract data obtained from the above analysis can be JSON formatted Stored in the bottom data source layer 310, the bottom data source layer may use a standard relational database format or a non-relational database format. Similarly, the information analysis layer 304 of the data center can also use index field analysis rules to analyze rent payment transactions submitted by tenants, such as using index data fields "txhash""pay_channel" (Note: different pay_channel descriptions The data center can synchronously obtain block data in different blockchains or different sub-chains of the same blockchain) "pay_amount" analyzes the above transaction to obtain the following data as shown in Table 1:
Figure 108101449-A0305-02-0017-1

上述解析所得的資料可被保存至底層資料來源層310內,而且為進一步方便資料中心對上述房租支付交易的檢索及管理,資料中心還可為上述資料產生查詢索引,並基於產生的查詢索引與對應的區塊資料之間的映射關係創建索引表(如下表2所示),並將其保存在資料中心的業務索引層306。類似的,該業務索引層306也可存有與上述房屋租賃合同資訊相關的各資料索引與上述各資料在底層資料來源層310的儲存位置的映射關係表。 The data obtained by the above analysis can be stored in the underlying data source layer 310. In order to further facilitate the retrieval and management of the above rent payment transactions by the data center, the data center can also generate a query index for the above data, and based on the generated query index and The mapping relationship between the corresponding block data creates an index table (shown in Table 2 below), and saves it in the business index layer 306 of the data center. Similarly, the business index layer 306 may also store a mapping relationship table between each data index related to the above-mentioned house lease contract information and the storage location of the above-mentioned data in the underlying data source layer 310.

Figure 108101449-A0305-02-0017-2
Figure 108101449-A0305-02-0017-2

資料中心30的對外介面層302可採用RESTFUL API的形式與上層資料進行交互,從而以url方式提供資料服務,並相容多語言平臺(C#,Python,C++,JAVA...)。在本例中,上層應用程式可以URL的格式向該資料中心30發送查詢0001號房屋的租賃合同詳情的資料查 詢請求,資料中心30在解析上述請求指令後,從其業務索引層306中獲知該合同詳情所涉及的資料在底層資料來源層310的儲存位置,並從底層資料來源層310中獲取上述合同詳情資料請求指令所涉及的資料,以JSON格式組織上述資料,並將上述資料返回至所述目標應用程式:例如,以按照JSON格式組織資料為例,返回的資料內容可包括: The external interface layer 302 of the data center 30 can interact with upper-layer data in the form of RESTFUL API, so as to provide data services in url mode and be compatible with multi-language platforms (C#, Python, C++, JAVA...). In this example, the upper-level application can send the data center 30 to query the details of the lease contract of house 0001 in the format of URL. For the inquiry request, the data center 30 obtains the storage location of the data involved in the contract details in the bottom data source layer 310 from its business index layer 306 after analyzing the above request instruction, and obtains the above contract details from the bottom data source layer 310 The data involved in the data request command organizes the above data in JSON format and returns the above data to the target application: For example, taking the data organized in JSON format as an example, the returned data content can include:

{“content”: { {"Content": {

contract No.:12345678, contract No.: 12345678,

housecode:0001, housecode: 0001,

land lord: A, land lord: A,

tenant name: B and C } tenant name: B and C}

deposit : 500 , deposit: 500,

month rent for B:999, month rent for B: 999,

month rent for C:888 , month rent for C: 888,

url : http://asassa.com}} url: http://asassa.com}}

上述應用於與區塊鏈對接的資料中心30的資料處理方法,透過在資料中心30的本地資料庫建立更適宜上層應用程式使用的資料儲存結構,方便地為各種業務場景下的上層應用程式提供資料服務,解決了區塊鏈技術推廣發展所遇到的瓶頸問題。 The above-mentioned data processing method applied to the data center 30 connected to the blockchain, through the establishment of a data storage structure more suitable for upper-level applications in the local database of the data center 30, it is convenient to provide the upper-level applications in various business scenarios The data service solves the bottleneck problem encountered in the promotion and development of blockchain technology.

與上述流程實現對應,本說明書的實施例還提供了一種基於區塊鏈的資料處理裝置。該裝置可以透過軟體實現,也可以透過硬體或者軟硬體結合的方式實現。以軟體實現為例,作為邏輯意義上的裝置,是透過所在設備的CPU(Central Process Unit,中央處理器)將對應的電腦程式指令讀取到記憶體中運行形成的。從硬體層面而言,除了圖5所示的CPU、記憶體以及記憶體之外,該資料處理裝置所在的設備通常還包括用於進行無線信號收發的晶片等其他硬體,和/或用於實現網路通信功能的板卡等其他硬體。 圖4所示為本說明書所提供的一種基於區塊鏈的資料處理裝置40;應用於與所述區塊鏈對接的資料中心,包括: 同步單元402,將所述區塊鏈上的區塊資料同步至本地資料庫; 接收單元404,接收目標應用程式發送的資料使用請求; 處理單元406,回應於所述資料使用請求,在所述本地資料庫中查詢與所述資料使用請求對應的被請求資料,並將所述被請求資料返回所述目標應用程式。 更優地,所述同步單元402進一步用於: 即時監控所述區塊鏈上的區塊高度; 當監控到所述區塊鏈上的區塊高度發生變化時,基於啟用的定時任務將最新區塊的區塊資料同步至本地資料庫。 更優地,所述同步單元402進一步用於: 根據預設的解析規則解析所述區塊資料; 將解析得到的區塊資料按照預設的儲存格式儲存於所述本地資料庫。 更優地,所述解析規則為外掛程式化的解析規則。 更優地,所述解析規則包括業務場景解析規則、資料過濾規則、預設索引欄位解析規則中的一種或多種。 更優地,所述預設的儲存格式包括JSON格式。 更優地,所述同步單元402進一步用於: 為解析得到的區塊資料產生查詢索引,基於產生的查詢索引與對應的區塊資料之間的映射關係創建索引表,並在本地保存。 上述裝置中各個單元的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,相關之處參見方法實施例的部分說明即可,在此不再贅述。 以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是實體上分開的,作為單元顯示的部件可以是或者也可以不是實體模組,即可以位於一個地方,或者也可以分佈到多個網路模組上。可以根據實際的需要選擇其中的部分或者全部單元或模組來實現本說明書方案的目的。本領域普通技術人員在不付出創造性勞動的情況下,即可以理解並實施。 上述實施例闡明的裝置、單元、模組,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、膝上型電腦、蜂窩電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。 與上述方法實施例相對應,本說明書的實施例還提供了一種電腦設備,該電腦設備包括記憶體和處理器。其中,記憶體上儲存有能夠由處理器運行的電腦程式;處理器在運行儲存的電腦程式時,執行本說明書實施例中資料中心基於區塊鏈的資料處理方法的各個步驟。對資料中心基於區塊鏈的資料處理方法的各個步驟的詳細描述請參見之前的內容,不再重複。 與上述方法實施例相對應,本說明書的實施例還提供了一種電腦可讀儲存媒體,該儲存媒體上儲存有電腦程式,這些電腦程式在被處理器運行時,執行本說明書實施例中資料中心基於區塊鏈的資料處理方法的各個步驟。對基於資料中心基於區塊鏈的資料處理方法的各個步驟的詳細描述請參見之前的內容,不再重複。 以上所述僅為本說明書的較佳實施例而已,並不用以限制本說明書,凡在本說明書的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本說明書保護的範圍之內。 在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。 記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非揮發性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。 電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。 電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 本領域技術人員應明白,本說明書的實施例可提供為方法、系統或電腦程式產品。因此,本說明書的實施例可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體方面的實施例的形式。而且,本說明書的實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。Corresponding to the implementation of the above process, the embodiment of this specification also provides a data processing device based on the blockchain. The device can be realized through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions into the memory through the CPU (Central Process Unit) of the device where it is located. From the perspective of hardware, in addition to the CPU, memory, and memory shown in Figure 5, the equipment where the data processing device is located usually also includes other hardware such as chips for wireless signal transmission and reception, and/or use Other hardware such as boards to realize network communication functions. Figure 4 shows a block chain-based data processing device 40 provided in this specification; it is applied to a data center docked with the block chain, including: The synchronization unit 402 synchronizes the block data on the blockchain to the local database; The receiving unit 404 receives the data use request sent by the target application; The processing unit 406, in response to the data use request, queries the local database for the requested data corresponding to the data use request, and returns the requested data to the target application. More preferably, the synchronization unit 402 is further configured to: Real-time monitoring of the block height on the blockchain; When the height of the block on the blockchain is monitored, the block data of the latest block is synchronized to the local database based on the activated timing task. More preferably, the synchronization unit 402 is further configured to: Parsing the block data according to preset parsing rules; The block data obtained by analysis is stored in the local database according to a preset storage format. More preferably, the parsing rule is a plug-in programmed parsing rule. More preferably, the analysis rules include one or more of business scenario analysis rules, data filtering rules, and preset index field analysis rules. More preferably, the preset storage format includes a JSON format. More preferably, the synchronization unit 402 is further configured to: A query index is generated for the parsed block data, and an index table is created based on the mapping relationship between the generated query index and the corresponding block data, and stored locally. For the implementation process of the functions and roles of each unit in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method. For related parts, please refer to the part of the description of the method embodiment, and will not be repeated here. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical modules, that is, Located in one place, or it can be distributed to multiple network modules. Some or all of the units or modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement it without creative work. The devices, units, and modules described in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. The specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game control Desktop, tablet, wearable device, or any combination of these devices. Corresponding to the foregoing method embodiments, the embodiments of this specification also provide a computer device, which includes a memory and a processor. Wherein, a computer program that can be run by the processor is stored in the memory; when the processor runs the stored computer program, each step of the data processing method based on the blockchain in the data center in the embodiment of this specification is executed. For a detailed description of each step of the data center's blockchain-based data processing method, please refer to the previous content and will not be repeated. Corresponding to the above method embodiments, the embodiments of this specification also provide a computer-readable storage medium on which computer programs are stored. These computer programs execute the data center in the embodiments of this specification when they are executed by the processor. The various steps of a blockchain-based data processing method. For a detailed description of each step of the data processing method based on the data center based on the blockchain, please refer to the previous content and will not be repeated. The above descriptions are only the preferred embodiments of this specification, and are not intended to limit this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in this specification Within the scope of protection. In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media. Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only CD-ROM (CD-ROM), digital multi-function Optical discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves. It should also be noted that the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element. Those skilled in the art should understand that the embodiments of this specification can be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may adopt the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present specification may adopt computer programs 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 form of the product.

30‧‧‧資料中心 40‧‧‧裝置 302‧‧‧對外介面層 304‧‧‧資訊解析層 306‧‧‧業務索引層 308‧‧‧資料同步層 310‧‧‧底層資料來源層 402‧‧‧同步單元 404‧‧‧接收單元 406‧‧‧處理單元30‧‧‧Data Center 40‧‧‧device 302‧‧‧External interface layer 304‧‧‧Information Analysis Layer 306‧‧‧Business index layer 308‧‧‧Data synchronization layer 310‧‧‧Underlying data source layer 402‧‧‧Sync Unit 404‧‧‧Receiving unit 406‧‧‧Processing unit

圖1為本說明書一示例性實施例提供的區塊鏈系統、上層應用程式及資料中心的連接架構圖; 圖2為本說明書一示例性實施例提供的一種基於區塊鏈的資料處理方法的流程圖; 圖3為本說明書一示例性實施例提供的資料中心的架構示意圖; 圖4為本說明書一示例性實施例提供的一種基於區塊鏈的資料處理裝置的示意圖; 圖5為運行本說明書所提供的基於區塊鏈的資料處理方法或裝置實施例的一種硬體結構圖。FIG. 1 is a diagram of the connection architecture of the blockchain system, upper-level application and data center provided by an exemplary embodiment of this specification; FIG. 2 is a flowchart of a data processing method based on blockchain according to an exemplary embodiment of this specification; 3 is a schematic diagram of the structure of a data center provided by an exemplary embodiment of this specification; FIG. 4 is a schematic diagram of a data processing device based on blockchain according to an exemplary embodiment of this specification; Fig. 5 is a hardware structure diagram of an embodiment of the data processing method or device based on blockchain provided in this specification.

Claims (14)

一種基於區塊鏈的資料處理方法,應用於與該區塊鏈對接的資料中心,包括:將該區塊鏈上的區塊資料同步至本地資料庫;接收目標應用程式發送的資料使用請求;回應於該資料使用請求,在該本地資料庫中查詢與該資料使用請求對應的被請求資料,並將該被請求資料返回該目標應用程式,其中,該將該區塊鏈上的區塊資料同步至本地資料庫,包括:即時監聽該區塊鏈上的區塊高度;當監聽到的該區塊鏈上的區塊高度增加,該資料中心可配置具體的定時任務將最新區塊的區塊資料同步至本地資料庫;透過配置該定時任務,該資料中心可控制獲取到的區塊資料的延遲時間,對於資料時效性要求較高的區塊給予獲取頻率較高的定時任務,對於資料時效性要求不高的區塊給予獲取頻率較低的定時任務。 A block chain-based data processing method applied to a data center connected to the block chain includes: synchronizing block data on the block chain to a local database; receiving a data use request sent by a target application; In response to the data use request, query the requested data corresponding to the data use request in the local database, and return the requested data to the target application, where the block data on the blockchain Synchronize to the local database, including: real-time monitoring of the block height on the blockchain; when the block height on the monitored blockchain increases, the data center can configure specific timing tasks to change the area of the latest block The block data is synchronized to the local database; by configuring the timing task, the data center can control the delay time of the block data obtained, and for the blocks with high data timeliness requirements, the timing task with higher acquisition frequency is given. For data Blocks with low timeliness requirements are given timed tasks with lower acquisition frequency. 根據申請專利範圍第1項所述的方法,該將該區塊鏈上的區塊資料同步至本地資料庫,包括:根據預設的解析規則解析該區塊資料;將解析得到的區塊資料按照預設的儲存格式儲存於該本地資料庫。 According to the method described in item 1 of the scope of patent application, synchronizing the block data on the blockchain to the local database includes: parsing the block data according to preset parsing rules; and parsing the obtained block data Store in the local database according to the default storage format. 根據申請專利範圍第2項所述的方法,該解析規則為外掛程式化的解析規則。 According to the method described in item 2 of the scope of patent application, the parsing rule is a plug-in programmed parsing rule. 根據申請專利範圍第2項所述的方法,該解析規則包括業務場景解析規則、資料過濾規則、預設索引欄位解析規則中的一種或多種。 According to the method described in item 2 of the scope of patent application, the analysis rules include one or more of business scenario analysis rules, data filtering rules, and preset index field analysis rules. 根據申請專利範圍第2項所述的方法,該預設的儲存格式包括JSON格式。 According to the method described in item 2 of the scope of patent application, the preset storage format includes JSON format. 根據申請專利範圍第2項所述的方法,該將該區塊鏈上的區塊資料同步至本地資料庫,還包括:為解析得到的區塊資料產生查詢索引,基於產生的查詢索引與對應的區塊資料之間的映射關係創建索引表,並在上述本地資料庫保存。 According to the method described in item 2 of the scope of patent application, synchronizing the block data on the blockchain to the local database also includes: generating a query index for the block data obtained by parsing, based on the generated query index and the corresponding Create an index table for the mapping relationship between the block data and save it in the above-mentioned local database. 一種基於區塊鏈的資料處理裝置,應用於與該區塊鏈對接的資料中心,包括:同步單元,將該區塊鏈上的區塊資料同步至本地資料庫;接收單元,接收目標應用程式發送的資料使用請求;處理單元,回應於該資料使用請求,在該本地資料庫中查詢與該資料使用請求對應的被請求資料,並將該被請 求資料返回該目標應用程式;其中,該同步單元進一步:即時監聽該區塊鏈上的區塊高度;當監聽到的該區塊鏈上的區塊高度增加,該資料中心可配置具體的定時任務將最新區塊的區塊資料同步至本地資料庫;透過配置該定時任務,該資料中心可控制獲取到的區塊資料的延遲時間,對於資料時效性要求較高的區塊給予獲取頻率較高的定時任務,對於資料時效性要求不高的區塊給予獲取頻率較低的定時任務。 A block chain-based data processing device, applied to a data center docked with the block chain, includes: a synchronization unit, which synchronizes block data on the block chain to a local database; a receiving unit, which receives a target application The data use request sent; the processing unit, in response to the data use request, inquires the requested data corresponding to the data use request in the local database, and sends the requested data Request data to be returned to the target application; wherein, the synchronization unit further: monitors the block height on the blockchain in real time; when the monitored block height on the blockchain increases, the data center can configure specific timing The task synchronizes the block data of the latest block to the local database; by configuring the timing task, the data center can control the delay time of the block data obtained, and the block with higher data timeliness requirements will be obtained more frequently. High timing tasks, for blocks that do not require high data timeliness, timed tasks with lower acquisition frequency are given. 根據申請專利範圍第7項所述的裝置,該同步單元進一步:根據預設的解析規則解析該區塊資料;將解析得到的區塊資料按照預設的儲存格式儲存於該本地資料庫。 According to the device described in item 7 of the scope of patent application, the synchronization unit further: parses the block data according to a preset analysis rule; and stores the block data obtained by the analysis in the local database according to a preset storage format. 根據申請專利範圍第8項所述的裝置,該解析規則為外掛程式化的解析規則。 According to the device described in item 8 of the scope of patent application, the parsing rule is a plug-in programmed parsing rule. 根據申請專利範圍第8項所述的裝置,該解析規則包括業務場景解析規則、資料過濾規則、預設索引欄位解析規則中的一種或多種。 According to the device described in item 8 of the scope of patent application, the analysis rules include one or more of business scenario analysis rules, data filtering rules, and preset index field analysis rules. 根據申請專利範圍第8項所述的裝置,該預設的儲存 格式包括JSON格式。 According to the device described in item 8 of the scope of patent application, the preset storage The format includes JSON format. 根據申請專利範圍第8項所述的裝置,該同步單元進一步:為解析得到的區塊資料產生查詢索引,基於產生的查詢索引與對應的區塊資料之間的映射關係創建索引表,並在本地保存。 According to the device described in item 8 of the scope of patent application, the synchronization unit further: generates a query index for the analyzed block data, creates an index table based on the mapping relationship between the generated query index and the corresponding block data, and Save locally. 一種電腦設備,包括:記憶體和處理器;該記憶體上儲存有可由處理器運行的電腦程式;該處理器運行該電腦程式時,執行如申請專利範圍第1到6項中任意一項所述的步驟。 A computer device comprising: a memory and a processor; the memory is stored with a computer program that can be run by the processor; when the processor runs the computer program, it executes any one of items 1 to 6 in the scope of the patent application The steps described. 一種電腦可讀儲存媒體,其上儲存有電腦程式,該電腦程式被處理器運行時,執行如申請專利範圍第1到6項中任意一項所述的步驟。 A computer-readable storage medium has a computer program stored thereon, and when the computer program is run by a processor, it executes the steps described in any one of items 1 to 6 of the scope of patent application.
TW108101449A 2018-06-29 2019-01-15 Blockchain-based data processing method and device TWI698108B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810713472.XA CN109086325A (en) 2018-06-29 2018-06-29 Data processing method and device based on block chain
CN201810713472.X 2018-06-29

Publications (2)

Publication Number Publication Date
TW202002587A TW202002587A (en) 2020-01-01
TWI698108B true TWI698108B (en) 2020-07-01

Family

ID=64837074

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108101449A TWI698108B (en) 2018-06-29 2019-01-15 Blockchain-based data processing method and device

Country Status (8)

Country Link
US (1) US10949447B2 (en)
EP (1) EP3719668A4 (en)
CN (1) CN109086325A (en)
AU (1) AU2019295818B2 (en)
CA (1) CA3087309C (en)
SG (1) SG11202006179QA (en)
TW (1) TWI698108B (en)
WO (1) WO2020001108A1 (en)

Families Citing this family (51)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086325A (en) * 2018-06-29 2018-12-25 阿里巴巴集团控股有限公司 Data processing method and device based on block chain
CN109684414B (en) * 2018-12-26 2022-04-08 百度在线网络技术(北京)有限公司 Method, device and equipment for synchronizing block data and storage medium
CN111382458A (en) * 2018-12-28 2020-07-07 富泰华工业(深圳)有限公司 Data batch sealing method and device and computer storage medium
CN111401889B (en) * 2019-01-03 2023-08-18 百度在线网络技术(北京)有限公司 Credit data processing method, device, equipment and medium based on block chain
CN109819025B (en) * 2019-01-14 2020-11-06 深圳市网心科技有限公司 Block chain extension method and system, electronic equipment and storage medium
CN110009510A (en) 2019-01-22 2019-07-12 阿里巴巴集团控股有限公司 Transaction processing system, method, calculating equipment and storage medium based on block chain
CN110061843B (en) * 2019-01-31 2022-02-18 创新先进技术有限公司 Block height creating method, device and equipment in chain type account book
CN109919691B (en) * 2019-02-27 2021-06-08 腾讯科技(深圳)有限公司 Data processing system, method and device
CN109857727B (en) * 2019-03-02 2021-05-11 杭州复杂美科技有限公司 Local database reconstruction method, device and storage medium
CN111666582B (en) * 2019-03-08 2024-05-03 深圳市网安计算机安全检测技术有限公司 Data cleaning method, device, equipment and storage medium based on block chain
CN110119428B (en) * 2019-04-19 2023-05-12 腾讯科技(深圳)有限公司 Block chain information management method, device, equipment and storage medium
CN110598463B (en) * 2019-04-19 2021-05-14 腾讯科技(深圳)有限公司 Block chain-based information processing method and device and computer-readable storage medium
CN110096522B (en) * 2019-05-15 2023-07-28 西安电子科技大学 Block chain data processing method, device and equipment supporting relational retrieval
CN110209671A (en) * 2019-05-17 2019-09-06 无锡朝阳供应链科技股份有限公司 A kind of the access system and its application of distribution account book data
CN110263025A (en) * 2019-05-21 2019-09-20 平安普惠企业管理有限公司 Data liquidation method, electronic equipment and computer storage medium based on alliance's chain
CN110309163A (en) * 2019-06-28 2019-10-08 杭州复杂美科技有限公司 Block chain relation type database maintenance method and data query method
CN110727655B (en) * 2019-09-10 2022-03-15 连连银通电子支付有限公司 Method, device, equipment and medium for building shadow database of block chain
CN110609839B (en) 2019-09-17 2021-05-25 北京海益同展信息科技有限公司 Method, device and equipment for processing block chain data and readable storage medium
CN110599321B (en) * 2019-09-20 2023-09-29 腾讯科技(深圳)有限公司 Tax data processing method and device, server and storage medium
CN110765205A (en) * 2019-10-12 2020-02-07 中思博安科技(北京)有限公司 Block chain based metadata management method, system and computer storage medium
CN110737664B (en) * 2019-10-21 2022-11-25 深圳前海微众银行股份有限公司 Method and device for synchronizing block chain link points
CN110874365B (en) * 2019-11-20 2023-11-17 深圳市迅雷网络技术有限公司 Information query method and related equipment thereof
CN110888883A (en) * 2019-11-26 2020-03-17 北京海益同展信息科技有限公司 Data storage method, device, system and storage medium
CN111291034A (en) * 2020-03-11 2020-06-16 北京价值互联科技有限公司 Block chain plug-in data cleaning method, system, terminal and medium
CN111475575B (en) * 2020-04-09 2021-08-10 腾讯科技(深圳)有限公司 Data synchronization method and device based on block chain and computer readable storage medium
CN111241205B (en) * 2020-04-26 2021-03-09 北京启迪区块链科技发展有限公司 Federation block chain bottom layer based trusted data synchronization method, network structure and server
CN111683121B (en) * 2020-05-22 2022-12-13 哈尔滨工程大学 Cloud data tracing source block chain consensus mechanism improvement method based on DPoS
CN111831744B (en) * 2020-06-05 2023-06-06 广东科学技术职业学院 System, method and medium for searching data on DAPP chain
CN111831750A (en) * 2020-07-09 2020-10-27 恒安嘉新(北京)科技股份公司 Block chain data analysis method and device, computer equipment and storage medium
CN112035466B (en) * 2020-07-29 2024-04-19 北京智融云河科技有限公司 External index development framework for block chain query
CN111931237A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Service management method and device based on block chain
CN112968967B (en) * 2020-09-25 2023-05-19 支付宝(杭州)信息技术有限公司 Block synchronization method and device
CN114372051A (en) * 2020-10-16 2022-04-19 华为技术有限公司 Data processing system, and data processing method and device based on block chain
CN112350889A (en) * 2020-10-26 2021-02-09 成都商通时代数字科技有限公司 System and method for monitoring running state of block link point
CN112100279B (en) * 2020-10-30 2021-06-29 中航信移动科技有限公司 Data sharing system based on block chain
CN112328690A (en) * 2020-11-12 2021-02-05 星矿科技(北京)有限公司 Efficient block chain access method
CN112328693A (en) * 2020-11-16 2021-02-05 杭州复杂美科技有限公司 Block synchronization method, device and storage medium
CN112445854B (en) * 2020-11-25 2024-05-03 北京品域互联科技有限公司 Multi-source service data real-time processing method, device, terminal and storage medium
CN112463886A (en) * 2020-11-30 2021-03-09 浙江大华技术股份有限公司 Data processing method and device, electronic equipment and storage medium
CN113064949A (en) * 2020-12-29 2021-07-02 上海能链众合科技有限公司 Data synchronous browsing method of block chain
CN112699172A (en) * 2021-01-06 2021-04-23 中车青岛四方机车车辆股份有限公司 Data processing method and device for railway vehicle
CN113190407A (en) * 2021-05-07 2021-07-30 北京金融资产交易所有限公司 Data operation and maintenance system
CN114244853A (en) * 2021-11-29 2022-03-25 国网北京市电力公司 Big data sharing method and device and big data sharing system
CN113886502B (en) * 2021-12-03 2022-04-22 支付宝(杭州)信息技术有限公司 Data processing method and system for synchronizing database and block chain
CN114338714B (en) * 2021-12-31 2024-04-02 支付宝(杭州)信息技术有限公司 Block synchronization method and device, electronic equipment and storage medium
CN114629927A (en) * 2022-02-28 2022-06-14 重庆市先进区块链研究院 Method for improving block chain traceability platform data uplink
CN115334172B (en) * 2022-07-20 2024-04-19 新疆丝路智汇信息科技有限公司 Block chain protocol processing system and processing method thereof
CN115225258B (en) * 2022-09-19 2023-01-06 中电科新型智慧城市研究院有限公司 Block chain-based cross-domain trusted data security management method and system
CN115952240B (en) * 2023-03-15 2023-06-02 深圳市迪博企业风险管理技术有限公司 Financial data compliance examination method and device based on blockchain
CN115987696B (en) * 2023-03-21 2023-08-08 深圳市永达电子信息股份有限公司 Zero trust security gateway implementation method and device based on block chain structure
CN116703243B (en) * 2023-07-31 2023-10-10 北京国瑞智信节水科技有限公司 Block chain-based water balance test system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528746A (en) * 2016-10-26 2017-03-22 江苏通付盾科技有限公司 Trade information inquiring method, device and system
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6973640B2 (en) * 2000-10-04 2005-12-06 Bea Systems, Inc. System and method for computer code generation
WO2008131009A2 (en) * 2007-04-16 2008-10-30 Memeo, Inc. Keyword-based content management
US8577914B2 (en) * 2011-05-18 2013-11-05 Google Inc. APIS discovery service
US10515151B2 (en) * 2014-08-18 2019-12-24 Nuance Communications, Inc. Concept identification and capture
US20160342977A1 (en) * 2015-05-20 2016-11-24 Vennd.io Pty Ltd Device, method and system for virtual asset transactions
US20190005469A1 (en) * 2015-07-14 2019-01-03 Fmr Llc Collateral Management With Blockchain and Smart Contracts Apparatuses, Methods and Systems
US10225078B2 (en) * 2017-02-09 2019-03-05 International Business Machines Corporation Managing a database management system using a blockchain database
US10621150B2 (en) * 2017-03-05 2020-04-14 Jonathan Sean Callan System and method for enforcing the structure and content of databases synchronized over a distributed ledger
CN107239954B (en) * 2017-06-07 2021-01-22 北京汇通金财信息科技有限公司 Method and device for increasing block generation speed
CN107657059A (en) * 2017-10-20 2018-02-02 中国银行股份有限公司 Method of data synchronization, middleware and system based on block chain application system
CN107943951B (en) * 2017-11-24 2020-08-11 中钞***产业发展有限公司杭州区块链技术研究院 Method and system for retrieving block chain service information
CN107918666B (en) * 2017-11-24 2020-05-12 中钞***产业发展有限公司杭州区块链技术研究院 Data synchronization method and system on block chain
US10699340B2 (en) * 2018-02-14 2020-06-30 Equity Shift, Inc. Blockchain instrument for transferable equity
US10754989B2 (en) * 2018-03-27 2020-08-25 International Business Machines Corporation Runtime self-correction for blockchain ledgers
CN109086325A (en) * 2018-06-29 2018-12-25 阿里巴巴集团控股有限公司 Data processing method and device based on block chain
CN111131345B (en) * 2018-10-30 2022-04-15 伊姆西Ip控股有限责任公司 Distributed node finder in multi-cloud computing environment
US11240027B2 (en) * 2019-02-04 2022-02-01 Hewlett Packard Enterprise Development Lp Synchronizing radius server databases using distributed ledger network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528746A (en) * 2016-10-26 2017-03-22 江苏通付盾科技有限公司 Trade information inquiring method, device and system
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain

Also Published As

Publication number Publication date
TW202002587A (en) 2020-01-01
US20200293549A1 (en) 2020-09-17
CA3087309A1 (en) 2020-01-02
US10949447B2 (en) 2021-03-16
WO2020001108A1 (en) 2020-01-02
AU2019295818B2 (en) 2021-10-07
SG11202006179QA (en) 2020-07-29
CA3087309C (en) 2021-03-09
EP3719668A4 (en) 2020-12-02
CN109086325A (en) 2018-12-25
AU2019295818A1 (en) 2020-07-09
EP3719668A1 (en) 2020-10-07

Similar Documents

Publication Publication Date Title
TWI698108B (en) Blockchain-based data processing method and device
US11941017B2 (en) Event driven extract, transform, load (ETL) processing
JP7316341B2 (en) Spatial change detector in stream data
JP7009456B2 (en) Graph generation for distributed event processing systems
US11412343B2 (en) Geo-hashing for proximity computation in a stream of a distributed system
CN106980669B (en) A kind of storage of data, acquisition methods and device
US20170364697A1 (en) Data interworking method and data interworking device
US11625381B2 (en) Recreating an OLTP table and reapplying database transactions for real-time analytics
TWI706259B (en) Data query method and query device
Cui et al. Big data: the driver for innovation in databases
US11394794B2 (en) Fast ingestion of records in a database using data locality and queuing
Abourezq et al. Database-as-a-service for big data: An overview
US9201700B2 (en) Provisioning computer resources on a network
JP2016539427A (en) Pattern matching across multiple input data streams
US10394805B2 (en) Database management for mobile devices
US20060271384A1 (en) Reference data aggregate service population
CN111723161A (en) Data processing method, device and equipment
CN112416991A (en) Data processing method and device and storage medium
US20170177687A1 (en) Synchronization of offline instances
Brunette et al. ODK tables: building easily customizable information applications on Android devices
Chardonnens Big data analytics on high velocity streams
CN114003614A (en) Data synchronization device, method, online transaction system, computer equipment and storage medium
Singh NoSQL: A new horizon in big data
Abourezq et al. Database-as-a-Service for Big Data: A Review
Krstić et al. Testiranje performansi NoSQL baza podataka pomoću Database Benchmark alata