TW202027457A - Block chain-based data processing method and apparatus - Google Patents

Block chain-based data processing method and apparatus Download PDF

Info

Publication number
TW202027457A
TW202027457A TW108137831A TW108137831A TW202027457A TW 202027457 A TW202027457 A TW 202027457A TW 108137831 A TW108137831 A TW 108137831A TW 108137831 A TW108137831 A TW 108137831A TW 202027457 A TW202027457 A TW 202027457A
Authority
TW
Taiwan
Prior art keywords
service
service provider
terminal
information
blockchain
Prior art date
Application number
TW108137831A
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 TW202027457A publication Critical patent/TW202027457A/en

Links

Images

Classifications

    • 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
    • G06F16/275Synchronous replication
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A block chain-based data processing method and apparatus. The block chain comprises a service platform node device. The method comprises: the service platform node device obtains order information sent by a service demander terminal, the order information comprising a demanded service content; on the basis of the order information, send order distribution information to a service provider terminal to distribute a service provider to the service demander terminal, wherein a distributed database of a block chain comprises identity identification information of the service provider so as to implement identity verification and comparison when the service provider provides a service; receive a service content actually provided by the service provider and sent by the service demander terminal or the service provider terminal; and send a service storage transaction to the block chain, so that the service storage transaction is recorded in the distributed database of the block chain after being consented and verified by the block chain, wherein the service storage transaction is used for storing the service content actually provided by the service provider.

Description

基於區塊鏈的資料處理方法和裝置Data processing method and device based on blockchain

本說明書有關資料處理技術領域,尤其有關一種基於區塊鏈的資料處理方法和裝置。This manual relates to the technical field of data processing, and particularly to a data processing method and device based on blockchain.

區塊鏈技術,也被稱之為分散式帳本技術,是一種由若干台計算設備共同參與“記帳”,共同維護一份完整的分散式資料庫的新興技術。由於區塊鏈技術具有去中心化、公開透明、每台計算設備可以參與資料庫記錄、並且各計算設備之間可以快速的進行資料同步的特性,使得區塊鏈技術已在眾多的領域中廣泛的進行應用。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. Because the blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database recording, and the rapid data synchronization between computing devices, the blockchain technology has been widely used in many fields Application.

有鑑於此,本說明書一個或多個實施例提供了一種基於區塊鏈的資料處理方法,所述區塊鏈包括服務平台節點設備;所述方法包括: 所述服務平台節點設備獲取服務需求方終端發送的訂單資訊,其中,所述訂單資訊包括需求的服務內容; 基於所述訂單資訊,向服務提供方終端發送訂單分配資訊,以為所述服務需求方終端分配服務提供方,其中,所述區塊鏈的分散式資料庫中存證有上述服務提供方的身分識別資訊,用以供所述服務提供方在提供服務時作身分校驗對比; 接收所述服務需求方終端或所述服務提供方終端發送的服務提供方實際提供的服務內容; 向所述區塊鏈發送服務存證交易,以使所述服務存證交易被所述區塊鏈共識驗證後收錄於所述區塊鏈的分散式資料庫;所述服務存證交易用於為服務提供方實際提供的服務內容進行存證。 在又一示出的實施方式中,所述身分識別資訊為所述服務提供方的生物學身分識別資訊。 在又一示出的實施方式中,所述的方法,還包括: 接收所述服務提供方終端或所述服務需求方終端發送的身分校驗資訊,所述身分校驗資訊包括所述服務提供方的現有身分資訊; 對比所述身分識別資訊與所述現有身分資訊; 將對比的結果發送至所述服務提供方終端或所述服務需求方終端。 在又一示出的實施方式中,所述的方法,還包括: 獲取所述服務提供方在所述區塊鏈的分散式資料庫中存證的身分識別資訊; 向所述服務提供方終端或所述服務需求方終端發送所述身分識別資訊,以使所述服務提供方終端或所述服務需求方終端基於所述身分識別資訊,對所述服務提供方作身分校驗對比; 接收所述服務提供方終端或所述服務需求方終端發送的身分校驗對比結果。 在又一示出的實施方式中,所述服務提供方實際提供的服務內容包括所述服務提供方節點設備的定位資訊、所述服務提供方的身分校驗對比結果、服務提供方開始服務時間、服務提供方結束服務時間、服務過程備忘資訊內容或內容的數學摘要中的一種或多種。 在又一示出的實施方式中,所述區塊鏈的為聯盟鏈,所述服務平台節點設備為聯盟成員節點設備。 對應地,本說明書還提供了一種基於區塊鏈的資料處理裝置,所述區塊鏈包括服務平台節點設備;所述裝置包括: 獲取單元,用於獲取服務需求方終端發送的訂單資訊,其中,所述訂單資訊包括需求的服務內容; 發送單元,用於基於所述訂單資訊,向服務提供方終端發送訂單分配資訊,以為所述服務需求方終端分配服務提供方,其中,所述區塊鏈的分散式資料庫中存證有上述服務提供方的身分識別資訊,用以供所述服務提供方在提供服務時作身分校驗對比; 接收單元,接收所述服務需求方終端或所述服務提供方終端發送的服務提供方實際提供的服務內容; 交易發送單元,用於向所述區塊鏈發送服務存證交易,以使所述服務存證交易被所述區塊鏈共識驗證後收錄於所述區塊鏈的分散式資料庫;所述服務存證交易用於為服務提供方實際提供的服務內容進行存證。 在又一示出的實施方式中,所述身分識別資訊為所述服務提供方的生物學身分識別資訊。 在又一示出的實施方式中,所述接收單元,進一步用於接收所述服務提供方終端或所述服務需求方終端發送的身分校驗資訊,所述身分校驗資訊包括所述服務提供方的現有身分資訊; 所述裝置還包括對比單元,用於對比所述身分識別資訊與所述現有身分資訊; 所述發送單元,進一步用於將對比的結果發送至所述服務提供方終端或所述服務需求方終端。 在又一示出的實施方式中,所述獲取單元,進一步用於獲取所述服務提供方在所述區塊鏈的分散式資料庫中存證的身分識別資訊; 所述發送單元,進一步用於向所述服務提供方終端或所述服務需求方終端發送所述身分識別資訊,以使所述服務提供方終端或所述服務需求方終端基於所述身分識別資訊,對所述服務提供方作身分校驗對比; 所述接收單元,進一步用於接收所述服務提供方終端或所述服務需求方終端發送的身分校驗對比結果。 在又一示出的實施方式中,所述服務提供方實際提供的服務內容包括所述服務提供方節點設備的定位資訊、所述服務提供方的身分校驗對比結果、服務提供方開始服務時間、服務提供方結束服務時間、服務過程備忘資訊內容或內容的數學摘要中的一種或多種。 在又一示出的實施方式中,所述區塊鏈的為聯盟鏈,所述服務平台節點設備為聯盟成員節點設備。 對應地,本說明書還提出了一種電腦設備,包括:記憶體和處理器;所述記憶體上儲存有可由處理器運行的電腦程式;所述處理器運行所述電腦程式時,執行上述服務平台節點設備所執行的基於區塊鏈的資料處理方法。 本說明書還提供了一種電腦可讀儲存媒體,其上儲存有電腦程式,所述電腦程式被處理器運行時,執行上述服務平台節點設備所執行的基於區塊鏈的資料處理方法。 由以上技術方案可見,本說明書提供的基於區塊鏈的資料處理方法及裝置,將服務平台終端設置為區塊鏈的節點設備,基於區塊鏈技術的分散式資料庫儲存機制,實際完成的服務內容被去中心化地記錄在多個區塊鏈節點中,由區塊鏈節點共同維護,即時進行同步,所有記錄可回溯;而且,基於區塊鏈的共識機制,服務平台節點設備提供的已完成的服務內容資訊不會在提供後被篡改,從而保證了已完成的服務內容的真實性和安全性,為基於該已完成的服務內容進行的取證或其他應用提供了有效的資料基礎。In view of this, one or more embodiments of this specification provide a data processing method based on a blockchain, the blockchain including a service platform node device; the method includes: The service platform node device obtains the order information sent by the service demander terminal, where the order information includes the required service content; Based on the order information, send order distribution information to the service provider terminal to distribute the service provider to the service demander terminal, where the identity of the service provider is certified in the distributed database of the blockchain Identification information for the service provider to perform identity verification and comparison when providing services; Receiving the service content actually provided by the service provider sent by the service demander terminal or the service provider terminal; Send a service certificate transaction to the blockchain so that the service certificate transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus; the service certificate transaction is used for To record the content of the service actually provided by the service provider. In another embodiment shown, the identity information is the biological identity information of the service provider. In another illustrated embodiment, the method further includes: Receiving identity verification information sent by the service provider terminal or the service demander terminal, where the identity verification information includes the existing identity information of the service provider; Compare the identity information with the existing identity information; The comparison result is sent to the service provider terminal or the service demander terminal. In another illustrated embodiment, the method further includes: Acquiring the identification information of the service provider deposited in the distributed database of the blockchain; Send the identity information to the service provider terminal or the service demander terminal, so that the service provider terminal or the service demander terminal can perform actions on the service provider based on the identity information. Identity verification comparison; Receiving the identity verification comparison result sent by the service provider terminal or the service demander terminal. In another embodiment shown, the service content actually provided by the service provider includes the location information of the service provider's node device, the identity verification and comparison result of the service provider, and the service provider's service start time. One or more of the time when the service provider ends the service, the content of the memo in the service process, or the mathematical summary of the content. In another illustrated embodiment, the blockchain is an alliance chain, and the service platform node device is an alliance member node device. Correspondingly, this specification also provides a block chain-based data processing device, the block chain includes a service platform node device; the device includes: The obtaining unit is used to obtain order information sent by the terminal of the service demander, where the order information includes the required service content; The sending unit is configured to send order distribution information to the service provider terminal based on the order information, so as to distribute the service provider to the service demander terminal, wherein the distributed database of the blockchain has the above The identity information of the service provider is used for the identity verification and comparison of the service provider when providing services; The receiving unit receives the service content actually provided by the service provider sent by the service demander terminal or the service provider terminal; The transaction sending unit is configured to send a service certificate transaction to the blockchain, so that the service certificate transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus; The service deposit transaction is used to deposit the service content actually provided by the service provider. In another embodiment shown, the identity information is the biological identity information of the service provider. In another embodiment shown, the receiving unit is further configured to receive identity verification information sent by the service provider terminal or the service demander terminal, where the identity verification information includes the service provider Party’s current identity information; The device also includes a comparison unit for comparing the identity information with the existing identity information; The sending unit is further configured to send the comparison result to the service provider terminal or the service demander terminal. In another embodiment shown, the obtaining unit is further configured to obtain the identification information of the service provider stored in the distributed database of the blockchain; The sending unit is further configured to send the identity identification information to the service provider terminal or the service demander terminal, so that the service provider terminal or the service demander terminal is based on the identity identification information , Perform identity verification and comparison of the service providers; The receiving unit is further configured to receive the identity verification comparison result sent by the service provider terminal or the service demander terminal. In another embodiment shown, the service content actually provided by the service provider includes the location information of the service provider's node device, the identity verification and comparison result of the service provider, and the service provider's service start time. One or more of the time when the service provider ends the service, the content of the memo in the service process, or the mathematical summary of the content. In another illustrated embodiment, the blockchain is an alliance chain, and the service platform node device is an alliance member node device. Correspondingly, this specification also proposes 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, the above service platform is executed The blockchain-based data processing method executed by the node device. This specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is run by a processor, it executes the blockchain-based data processing method executed by the above-mentioned service platform node device. It can be seen from the above technical solutions that the blockchain-based data processing method and device provided in this manual set the service platform terminal as the node device of the blockchain, and the distributed database storage mechanism based on blockchain technology is actually completed The service content is recorded in multiple blockchain nodes in a decentralized manner, maintained by the blockchain nodes, and synchronized in real time, all records can be traced back; moreover, based on the consensus mechanism of the blockchain, the service platform node equipment provides The completed service content information will not be tampered with after being provided, thereby ensuring the authenticity and security of the completed service content, and providing an effective data basis for forensics or other applications based on the completed service content.

這裡將詳細地對示例性實施例進行說明,其示例表示在圖式中。下面的描述涉及圖式時,除非另有表示,不同圖式中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本說明書一個或多個實施例相一致的所有實施方式。相反地,它們僅是與如所附申請專利範圍中所詳述的、本說明書一個或多個實施例的一些態樣相一致的裝置和方法的例子。 需要說明的是:在其他實施例中並不一定按照本說明書示出和描述的順序來執行對應方法的步驟。在一些其他實施例中,其方法所包括的步驟可以比本說明書所描述的更多或更少。此外,本說明書中所描述的單個步驟,在其他實施例中可能被分解為多個步驟進行描述;而本說明書中所描述的多個步驟,在其他實施例中也可能被合併為單個步驟進行描述。 隨著網際網路科技的發展,基於網路的服務模式不斷地推陳出新。對於彼此不熟識的服務者和被服務者,由於彼此間的陌生可能帶來很多安全隱患,這種安全隱患尤其是在遠端服務或上門服務等服務模式中尤為凸顯。 基於以上提出的技術現狀和問題,圖1是本說明書所提供的一實施例所示的基於區塊鏈的資料處理方法,所述區塊鏈包括服務平台節點設備。 本實施例所述的服務平台可包括受理使用者某類型的服務需求或服務提供,而進行服務撮合或服務分配等業務的平台性質服務機構,例如上門服務(如家政類服務、維修類服務、家教類服務)業務撮合平台、遠端服務(如遠端教學)業務撮合平台等等,在本說明書中不作限定。 本實施例所述的區塊鏈,具體可指一個各節點透過共識機制達成的、具有分散式資料儲存結構的P2P網路系統,該區塊鏈內的資料分佈在時間上相連的一個個“區塊(block)”之內,後一區塊包含前一區塊的資料摘要,且根據具體的共識機制(如POW、POS、DPOS或PBFT等)的不同,達成全部或部分節點的資料全備份。本領域的技術人員熟知,由於區塊鏈系統在對應共識機制下運行,已收錄至區塊鏈資料庫內的資料很難被任意的節點篡改,例如採用Pow共識的區塊鏈,至少需要全網51%算力的攻擊才有可能篡改已有資料,因此區塊鏈系統有著其他中心化資料庫系統所無法比擬的保證資料安全、防攻擊篡改的特性。由此可知,在本說明書所提供的實施例中,被收錄至區塊鏈的分散式資料庫中的資料不會被攻擊或篡改,從而保證了上述服務平台節點設備向上述區塊鏈存證的資料資訊的真實可靠性。 本實施例所述的服務平台節點設備,可透過遵循對應節點協定、運行節點協定程式的安裝來加入該區塊鏈,作為該區塊鏈的節點。本領域的技術人員通常將具有區塊鏈分散式資料庫的資料全備份的節點設備稱為全節點,將具有區塊鏈分散式資料庫的部分備份資料(如僅有區塊頭的資料)的節點設備稱為輕節點或用戶端等;在本實施例中所述的服務平台節點設備可包括上述的全節點、輕節點或用戶端,只要直接或間接連入上述區塊鏈、且可發送或獲取區塊鏈的分散式資料庫的資料的任何設備均可稱為本實施例所述的節點設備。 如圖1所示,上述基於區塊鏈的資料處理方法包括: 步驟102,所述服務平台節點設備獲取服務需求方終端發送的訂單資訊,其中,所述訂單資訊包括需求的服務內容。 本實施例所述的服務需求方終端,在與上述服務平台節點設備通訊的過程中,向上述服務平台節點設備發送訂單資訊。上述訂單資訊可包括服務需求方所需求的服務內容,所述需求的服務內容包括:服務類型內容,或服務提供方所應滿足的條件等內容,以方便服務平台可基於上述訂單資訊進行服務雙方的匹配、撮合或分配。 步驟104,基於所述訂單資訊,向服務提供方終端發送訂單分配資訊,用以為所述服務需求方終端分配服務提供方,其中,所述區塊鏈的分散式資料庫中存證有上述服務提供方的身分識別資訊,用以供所述服務提供方在提供服務時作身分校驗對比。 區塊鏈的分散式資料庫中存證有服務提供方的身分識別資訊,用以為實際提供服務的服務提供方做身分校驗對比,防止在上述服務平台登記入冊的服務提供方、與接單後實際提供服務的服務提供方不屬於同一用戶,帶來可能發生的安全隱患。 上述身分識別資訊可包括身分證件資訊(如身分證圖片、身分證號碼等)、生物學身分識別資訊(如指紋、面貌、聲紋、虹膜等識別資訊),以確定服務提供方的身分。 服務提供方可在註冊成為上述服務平台的服務提供人員時,將上述身分識別資訊錄入到服務平台節點設備中,並由上述服務平台節點設備將上述身分識別資訊存證到區塊鏈的分散式資料庫中。值得注意的是,將上述身分識別資訊存證於區塊鏈的分散式資料庫中的具體方式可以有多種,除了將上述身分識別資訊的原文備份到區塊鏈的分散式資料庫中,由各節點設備共同備份維護;由於上述服務提供方的身分識別資訊通常為使用者非常敏感的個人隱私資訊,還可將上述身分識別資訊加密後發布於區塊鏈的分散式資料庫中,以防止區塊鏈中的其他節點設備在獲取上述身分識別資訊後進行非法應用。 在又一示出的實施方式中,上述將身分識別資訊存證於區塊鏈的分散式資料庫中的具體方式還可以表現為,服務平台節點設備收集服務提供方的身分識別資訊,並將服務提供方的身分識別資訊的摘要(如雜湊摘要值)發送到區塊鏈的分散式資料庫中,以為上述服務提供方的身分識別資訊進行存證。 在本實施例中,區塊鏈的分散式資料庫中存證的服務提供方的身分識別資訊,用以供該服務提供方在提供服務時作身分校驗對比。關於上述身分校驗對比可以包括多種具體實現流程。 在一示出的實施方式中,上述身分校驗對比由上述服務平台節點設備執行,具體過程可包括: 當服務提供方接收到服務平台發送的訂單分配資訊後,會依據服務需求方的需求提供服務;在提供對應服務時,為了確保實際的服務提供方確實為上述訂單分配資訊指定的服務提供者,服務提供方或服務需求方終端會採集實際的服務提供方的現有身分識別資訊,如對實際的服務提供方進行人臉識別或查驗採集其身分證件等,並將上述採集到的現有身分識別資訊發送到服務平台節點設備,以供服務平台節點設備進行身分校驗對比; 上述服務平台節點設備接收上述服務提供方終端或上述服務需求方終端發送的身分校驗資訊後,基於區塊鏈中存證的、訂單分配資訊中對應的服務提供方的身分識別資訊,對上述存證的身分識別資訊與上述現有身分資訊進行對比;並將對比的結果發送至所述服務需求方終端或所述服務提供方終端,以使上述服務需求方確認此時實際的服務提供方和訂單分配資訊中指定的服務提供方是否為同一人。 在又一示出的實施方式中,上述身分校驗對比可由服務提供方終端或服務需求方終端執行。具體流程可包括:上述服務平台節點設備獲取所述服務提供方在所述區塊鏈的分散式資料庫中存證的身分識別資訊;向所述服務提供方終端或所述服務需求方終端發送所述身分識別資訊,以使所述服務提供方終端或所述服務需求方終端基於所述身分識別資訊,對所述服務提供方作身分校驗對比;接收所述服務提供方終端或所述服務需求方終端發送的身分校驗對比結果。 以上兩實施例僅是對服務提供方的身分資訊進行校驗對比的兩種具體實現方式,本說明書中並不限定基於區塊鏈的分散式資料庫中存證的服務提供方的身分識別資訊對實際的服務提供方進行身分校驗對比的實現過程及執行主體,凡是基於區塊鏈的分散式資料庫中存證的服務提供方的身分識別資訊對實際的服務提供方進行身分校驗對比以獲得身分校驗對比結果,均屬於本說明書保護的範圍。 步驟106,接收所述服務需求方終端或所述服務提供方終端發送的服務提供方實際提供的服務內容。 具體來說,上述服務提供方實際提供的服務內容可包括:服務提供方節點設備的定位資訊(用以表明服務提供方已達到服務位置)、所述服務提供方的身分校驗對比結果(用以表明服務提供方為訂單分配資訊中指定的服務提供方)、服務提供方開始服務時間、服務提供方結束服務時間、服務過程備忘資訊等內容中的一種或多種。 關於上述服務提供方實際提供的服務內容可以由所述服務需求方終端發送,也可由所述服務提供方終端發送,視實際業務需求或流程而定,在本說明書中不作限定。 步驟108,向所述區塊鏈發送服務存證交易,以使所述服務存證交易被所述區塊鏈共識驗證後收錄於所述區塊鏈的分散式資料庫;所述服務存證交易用於為服務提供方實際提供的服務內容進行存證。 在本說明書中所描述的交易(transfer),是指透過區塊鏈的節點設備創建,並需要最終發布至區塊鏈的分散式資料庫中的一筆資料。其中,區塊鏈中的交易,存在狹義的交易以及廣義的交易之分。狹義的交易是指使用者向區塊鏈發布的一筆價值轉移;例如,在傳統的比特幣區塊鏈網路中,交易可以是使用者在區塊鏈中發起的一筆轉帳。而廣義的交易是指使用者向區塊鏈發布的一筆具有業務意圖的業務資料;例如,本說明書的上述實施例所述的發布至上述區塊鏈中的、用於為服務提供方實際提供的服務內容進行存證的資料即可以為一筆交易;或者將上述已完成的服務內容按照預設的交易資料格式整理,從而轉化為一筆交易。 本實施例所述的服務存證交易,用於為服務提供方實際提供的、或已完成的服務內容進行存證。例如,服務提供方終端或服務需求方終端可以從服務提供方達到服務位置開始,將服務提供方提供的一系列相關服務內容、或執行的一系列相關服務動作上傳到上述服務平台節點設備,既可使上述服務平台節點設備監管服務提供方提供的服務內容,又可使上述服務平台節點設備將上述提供方實際提供的服務內容在區塊鏈的分散式資料庫中進行存證。 具體來說,上述服務提供方實際提供的服務內容可包括:服務提供方節點設備的定位資訊(用以表明服務提供方已達到服務位置)、所述服務提供方的身分校驗對比結果(用以表明服務提供方為訂單分配資訊中指定的服務提供方)、服務提供方開始服務時間、服務提供方結束服務時間、服務過程備忘資訊等內容中的一種或多種。對應地,上述服務存證交易可包括上述服務提供方實際提供的服務內容的原文或加密密文,或上述服務提供方實際提供的服務內容的數學摘要(如雜湊摘要),以為上述服務提供方實際提供的服務內容進行存證。 上述實施例所述的將所述服務存證交易上傳到所述區塊鏈的分散式資料庫中的詳細過程,可依據所述區塊鏈的共識機制及交易規則而具體設定。在一示出的實施例中,將所述服務存證交易上傳到所述區塊鏈的分散式資料庫中,包括: 所述區塊鏈中具有記帳權限的節點設備將所述服務存證交易加入到候選區塊; 從所述具有記帳權限的節點設備中確定滿足所述區塊鏈共識機制的共識記帳節點設備; 所述共識記帳節點向所述區塊鏈的節點設備廣播所述候選區塊; 在所述候選區塊透過所述區塊鏈符合預設數量的節點設備的驗證認可後,所述候選區塊被視為最新區塊,加入到所述區塊鏈的分散式資料庫中。 在上述的實施例中,具有記帳權限的節點設備是指具有產生候選區塊權限的節點設備。根據所述區塊鏈的共識機制,可從所述候選區塊具有記帳權限的節點設備中確定共識記帳節點設備,上述共識機制可以包括工作量證明機制(PoW)、或權利證明機制(PoS)、或股份授權證明機制(DPoS)等。 PoS或DPoS共識機制與PoW類似,均屬於公有區塊鏈中確認共識記帳節點設備所常選用的共識演算法。在又一示出的實施例中,為降低交易或資料的確認時間、提高交易輸送量、滿足對安全和性能的需求,本說明書所提供的實施例還可選用聯盟鏈架構來構建該區塊鏈。上述服務平台節點設備、或對相關服務業務實行監管的機構可作為該聯盟鏈的預選的節點設備,參與區塊的記帳。聯盟鏈的共識過程也由該預選的節點設備控制,當網路上有超過設定比例(如2/3)的節點設備確認一個區塊,該區塊記錄的交易或資料將得到全網確認。 聯盟鏈通常多採用權益證明或PBFT、RAFT等共識演算法。在實現時,在區塊鏈的每一輪共識開始之前,可以在區塊鏈中的各節點設備中選舉出一台主節點設備,即上述實施例所述的共識記帳節點(比如,每一輪共識都重新選舉出一主節點設備,其它節點設備作為從節點設備),由主節點設備進一步向發起交易的驗證和共識,並負責基於共識通過的交易資料(或目標資料)為區塊鏈創建最新的區塊。 PBFT演算法作為本說明書所提供的聯盟鏈的共識演算法的一種優選的實施方式,是由於採用該種演算法共識的效率高,可滿足高頻交易量的需求,例如在本實施例中服務平台基於頻繁發生的訂單資訊而產生服務存證交易;且共識的時延很低,基本達到即時處理的要求,能快速即時地在區塊鏈的新生區塊中收錄上述服務存證交易;而且,將聯盟鏈網路中可信節點作為預選的記帳節點,兼顧了安全性與穩定性;另外,採用PBFT演算法不會消耗過多的電腦算力資源,也不一定需要代幣流通,因此具有良好的可使用性。 基於本實施例提供的服務方法,基於區塊鏈技術的分散式資料庫儲存機制,實際完成的服務內容被去中心化地記錄在多個區塊鏈節點中,由區塊鏈節點共同維護,即時進行同步,所有記錄可回溯;而且,基於區塊鏈的共識機制,服務平台節點設備提供的已完成的服務內容資訊不會在提供後被篡改,從而保證了已完成的服務內容的真實性和安全性,為基於該已完成的服務內容進行的取證或其他應用提供了有效的資料基礎。 與上述流程實現對應,本說明書的實施例還提供了基於區塊鏈的資料處理裝置20。該裝置20可以透過軟體實現,也可以透過硬體或者軟硬體結合的方式實現。以軟體實現為例,作為邏輯意義上的裝置,是透過所在設備的CPU(Central Process Unit,中央處理器)將對應的電腦程式指令讀取到記憶體中運行形成的。從硬體層面而言,除了圖3所示的CPU、記憶體以及記憶體之外,網路風險業務的實現裝置所在的設備通常還包括用於進行無線信號收發的晶片等其他硬體,和/或用於實現網路通訊功能的板卡等其他硬體。 圖2所示為本說明書還提供了一種基於區塊鏈的資料處理裝置20,所述區塊鏈包括服務平台節點設備;所述裝置20包括: 獲取單元202,用於獲取服務需求方終端發送的訂單資訊,其中,所述訂單資訊包括需求的服務內容; 發送單元204,用於基於所述訂單資訊,向服務提供方終端發送訂單分配資訊,以為所述服務需求方終端分配服務提供方,其中,所述區塊鏈的分散式資料庫中存證有上述服務提供方的身分識別資訊,用以供所述服務提供方在提供服務時作身分校驗對比; 接收單元206,用於接收所述服務需求方終端或所述服務提供方終端發送的服務提供方實際提供的服務內容; 交易發送單元208,用於向所述區塊鏈發送服務存證交易,以使所述服務存證交易被所述區塊鏈共識驗證後收錄於所述區塊鏈的分散式資料庫;所述服務存證交易用於為服務提供方實際提供的服務內容進行存證。 在又一示出的實施方式中,所述身分識別資訊為所述服務提供方的生物學身分識別資訊。 在又一示出的實施方式中,所述接收單元206,進一步用於接收所述服務提供方終端或所述服務需求方終端發送的身分校驗資訊,所述身分校驗資訊包括所述服務提供方的現有身分資訊; 所述裝置20還包括對比單元210,用於對比所述身分識別資訊與所述現有身分資訊; 所述發送單元204,進一步用於將對比的結果發送至所述服務提供方終端或所述服務需求方終端。 在又一示出的實施方式中,所述獲取單元202,進一步用於獲取所述服務提供方在所述區塊鏈的分散式資料庫中存證的身分識別資訊; 所述發送單元204,進一步用於向所述服務提供方終端或所述服務需求方終端發送所述身分識別資訊,以使所述服務提供方終端或所述服務需求方終端基於所述身分識別資訊,對所述服務提供方作身分校驗對比; 所述接收單元206,進一步用於接收所述服務提供方終端或所述服務需求方終端發送的身分校驗對比結果。 在又一示出的實施方式中,所述服務提供方實際提供的服務內容包括所述服務提供方節點設備的定位資訊、所述服務提供方的身分校驗對比結果、服務提供方開始服務時間、服務提供方結束服務時間、服務過程備忘資訊內容或內容的數學摘要中的一種或多種。 在又一示出的實施方式中,所述區塊鏈的為聯盟鏈,所述服務平台節點設備為聯盟成員節點設備。 上述裝置20中各個單元的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,相關之處參見方法實施例的部分說明即可,在此不再贅述。 以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理模組,即可以位於一個地方,或者也可以分佈到多個網路模組上。可以根據實際的需要選擇其中的部分或者全部單元或模組來實現本說明書方案的目的。本領域普通技術人員在不付出創造性勞動的情況下,即可以理解並實施。 上述實施例闡明的裝置、單元、模組,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、膝上型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、穿戴式設備或者這些設備中的任意幾種設備的組合。 與上述方法實施例相對應,本說明書的實施例還提供了一種電腦設備,如圖3所示,該電腦設備包括記憶體和處理器。其中,記憶體上儲存有能夠由處理器運行的電腦程式;處理器在運行儲存的電腦程式時,執行本說明書實施例中服務平台節點設備執行的基於區塊鏈的資料處理方法的各個步驟。對服務平台節點設備執行的基於區塊鏈的資料處理方法的各個步驟的詳細描述請參見之前的內容,不再重複。 與上述方法實施例相對應,本說明書的實施例還提供了一種電腦可讀儲存媒體,該儲存媒體上儲存有電腦程式,這些電腦程式在被處理器運行時,執行本說明書實施例中服務平台節點設備執行的基於區塊鏈的資料處理方法的各個步驟。對服務平台節點設備執行的基於區塊鏈的資料處理方法的各個步驟的詳細描述請參見之前的內容,不再重複。 以上所述僅為本說明書的較佳實施例而已,並不用以限制本說明書,凡在本說明書的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本說明書保護的範圍之內。 在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和內部記憶體。 記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。 電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。 電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可抹除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫態式電腦可讀媒體(transitory media),如調變的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 本領域技術人員應明白,本說明書的實施例可提供為方法、系統或電腦程式產品。因此,本說明書的實施例可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體態樣的實施例的形式。而且,本說明書的實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。The exemplary embodiments will be described in detail here, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with one or more embodiments of this specification. On the contrary, they are only examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the scope of the appended application. It should be noted that in other embodiments, the steps of the corresponding method may not be executed in the order shown and described in this specification. In some other embodiments, the method includes more or fewer steps than described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. description. With the development of Internet technology, network-based service models are constantly being introduced. For the server and the served person who are not acquainted with each other, the unfamiliarity between each other may bring a lot of security risks. This security risk is especially prominent in service modes such as remote service or on-site service. Based on the technical status and problems raised above, FIG. 1 is a data processing method based on a blockchain shown in an embodiment provided in this specification, and the blockchain includes a service platform node device. The service platform described in this embodiment may include a platform service organization that accepts a certain type of service demand or service provision of users, and performs services such as service matching or service distribution, such as on-site services (such as housekeeping services, maintenance services, Family education service) business matching platform, remote service (such as remote teaching) business matching platform, etc., are not limited in this manual. The blockchain described in this embodiment 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 and connected one by one. Within "block", 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.), all or part of the node data is complete Backup. Those skilled in the art are well aware that since the blockchain system operates under the corresponding consensus mechanism, the data that has been included in the blockchain database is difficult to be tampered with by any node. For example, a blockchain using Pow consensus requires at least full Only 51% of the network's computing power can tamper with existing data. Therefore, the blockchain system has the characteristics of ensuring data security and preventing attack and tampering that other centralized database systems cannot match. It can be seen from this that in the embodiments provided in this specification, the data included in the distributed database of the blockchain will not be attacked or tampered with, thereby ensuring that the above-mentioned service platform node device can deposit the certificate on the above-mentioned blockchain The true reliability of the information. The service platform node device described in this embodiment can join the blockchain as a node of the blockchain by following the installation of the corresponding node agreement and running the node agreement program. Those skilled in the art usually refer to a node device with full backup of the data of the blockchain distributed database as a full node, and will have partial backup data of the blockchain distributed database (such as data with only the block header) The node device is called a light node or a user terminal; the service platform node device described in this embodiment may include the above-mentioned full node, light node or user terminal, as long as it is directly or indirectly connected to the above-mentioned blockchain and can send Or any device that obtains data from the distributed database of the blockchain can be referred to as the node device described in this embodiment. As shown in Figure 1, the above-mentioned blockchain-based data processing method includes: Step 102: The service platform node device obtains order information sent by a service demander terminal, where the order information includes the required service content. The service demander terminal described in this embodiment sends order information to the service platform node device in the process of communicating with the service platform node device. The above-mentioned order information may include the service content required by the service demander, and the required service content includes: service type content, or conditions that the service provider should meet, etc., so that the service platform can perform services for both parties based on the above-mentioned order information Matching, matching, or distribution. Step 104: Based on the order information, send order distribution information to the service provider terminal to distribute the service provider to the service demander terminal, wherein the distributed database of the blockchain stores the above-mentioned service The identity information of the provider is used for the identity verification and comparison of the service provider when providing services. The identity information of the service provider is stored in the distributed database of the blockchain, which is used to verify the identity of the service provider who actually provides the service, and prevent the service provider registered in the above-mentioned service platform and the service provider. The service providers who actually provide services after the order do not belong to the same user, which may bring potential safety hazards. The above-mentioned identity identification information may include identity document information (such as identity card picture, identity card number, etc.), biological identity identification information (such as fingerprints, facial features, voiceprints, iris, etc. identification information) to determine the identity of the service provider. The service provider can enter the above-mentioned identity information into the service platform node device when registering as a service provider of the above-mentioned service platform, and the above-mentioned service platform node device can deposit the above-mentioned identity information on the distributed blockchain of the blockchain In the database. It is worth noting that there can be many specific ways to store the above-mentioned identity information in the distributed database of the blockchain. In addition to backing up the original text of the above-mentioned identity information to the distributed database of the blockchain, Each node equipment is backed up and maintained together; because the identity information of the above-mentioned service provider is usually very sensitive personal privacy information of the user, the above-mentioned identity information can also be encrypted and published in the distributed database of the blockchain to prevent Other node devices in the blockchain perform illegal applications after obtaining the above-mentioned identification information. In another illustrated embodiment, the above-mentioned specific method of depositing the identity information in the distributed database of the blockchain can also be expressed as that the service platform node device collects the identity information of the service provider and combines The summary of the service provider's identity information (such as hash summary value) is sent to the distributed database of the blockchain to store the above-mentioned service provider's identity information. In this embodiment, the identity information of the service provider stored in the distributed database of the blockchain is used for the service provider to perform identity verification and comparison when providing services. Regarding the above identity verification comparison, a variety of specific implementation procedures may be included. In an illustrated embodiment, the aforementioned identity verification and comparison is performed by the aforementioned service platform node device, and the specific process may include: When the service provider receives the order distribution information sent by the service platform, it will provide services according to the needs of the service demander; when providing corresponding services, in order to ensure that the actual service provider is indeed the service provider specified by the above order distribution information, The service provider or service demander’s terminal will collect the actual service provider’s current identity information, such as face recognition of the actual service provider or check and collect their identity documents, etc., and use the above-collected existing identity information Send to the service platform node device for identity verification and comparison of the service platform node device; After the above-mentioned service platform node device receives the identity verification information sent by the above-mentioned service provider terminal or the above-mentioned service demander terminal, based on the identity information of the corresponding service provider in the order distribution information stored in the blockchain, The identity information of the deposit certificate is compared with the above-mentioned existing identity information; and the result of the comparison is sent to the terminal of the service demander or the terminal of the service provider, so that the above-mentioned service demander can confirm the actual service provider and Whether the service provider specified in the order distribution information is the same person. In another embodiment shown, the aforementioned identity verification and comparison may be performed by the service provider terminal or the service demander terminal. The specific process may include: the above-mentioned service platform node device obtains the identification information of the service provider stored in the distributed database of the blockchain; sending to the service provider terminal or the service demander terminal The identity identification information, so that the service provider terminal or the service demander terminal can perform identity verification and comparison of the service provider based on the identity identification information; receive the service provider terminal or the service provider terminal The identity verification comparison result sent by the service demanding terminal. The above two embodiments are only two specific implementation methods for verifying and comparing the identity information of the service provider. This specification does not limit the identity information of the service provider certified in the blockchain-based distributed database The implementation process and execution body of the actual service provider identity verification comparison, which is the identity information of the service provider certified in the blockchain-based distributed database, and the actual service provider identity verification comparison Obtaining the comparison result of identity verification is within the protection scope of this manual. Step 106: Receive the service content actually provided by the service provider sent by the service demander terminal or the service provider terminal. Specifically, the service content actually provided by the above-mentioned service provider may include: the location information of the service provider’s node equipment (used to indicate that the service provider has reached the service location), and the identity verification and comparison result of the service provider (used by To indicate that the service provider is the service provider specified in the order distribution information), the service provider’s starting time, the service provider’s ending service time, and service process memo information. The service content actually provided by the above-mentioned service provider may be sent by the service demander terminal or the service provider terminal, depending on actual business requirements or processes, and is not limited in this specification. Step 108: Send a service certificate transaction to the blockchain so that the service certificate transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus; the service certificate The transaction is used to deposit evidence for the service content actually provided by the service provider. The transfer described in this manual refers to a piece of data that is created through the node device 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 intent released by a user to the blockchain; for example, the above-mentioned embodiment of this specification released to the above-mentioned blockchain is used to actually provide service providers with The data for depositing the service content can be regarded as a transaction; or the completed service content can be sorted according to the preset transaction data format to convert it into a transaction. The service deposit transaction described in this embodiment is used to deposit the service content actually provided or completed by the service provider. For example, a service provider terminal or a service demander terminal can upload a series of related service content provided by the service provider or a series of related service actions performed by the service provider to the above-mentioned service platform node device starting from the service provider reaching the service location. The service platform node device can supervise the service content provided by the service provider, and the service platform node device can also enable the service platform node device to store the service content actually provided by the provider in the distributed database of the blockchain. Specifically, the service content actually provided by the above-mentioned service provider may include: the location information of the service provider’s node equipment (used to indicate that the service provider has reached the service location), and the identity verification and comparison result of the service provider (used by To indicate that the service provider is the service provider specified in the order distribution information), the service provider’s starting time, the service provider’s ending service time, and service process memo information. Correspondingly, the above-mentioned service deposit transaction may include the original text or encrypted ciphertext of the service content actually provided by the above-mentioned service provider, or the mathematical abstract (such as a hash abstract) of the service content actually provided by the above-mentioned service provider, so that the above-mentioned service provider The actual service content provided is recorded. The detailed process of uploading the service certificate transaction to the distributed database of the blockchain described in the above embodiment can be specifically set according to the consensus mechanism and transaction rules of the blockchain. In an illustrated embodiment, uploading the service deposit transaction to the distributed database of the blockchain includes: The node device with accounting authority in the blockchain adds the service deposit transaction to the candidate block; Determine a consensus accounting node device that satisfies the blockchain consensus mechanism from the node devices with accounting authority; The consensus accounting node broadcasts the candidate block to the node device of the blockchain; After the candidate block meets the verification and approval of the preset number of node devices through the blockchain, the candidate block is regarded as the latest block and added to the distributed database of the blockchain. In the foregoing embodiment, the node device with the accounting authority refers to the node device with the authority to generate candidate blocks. According to the consensus mechanism of the blockchain, the consensus accounting node device can be determined from the node devices with accounting authority in the candidate block. The above-mentioned consensus mechanism may include a proof of work mechanism (PoW) or a proof of right mechanism (PoS) , Or Share Authorization Proof Mechanism (DPoS), etc. The PoS or DPoS consensus mechanism is similar to PoW, and both belong to the consensus algorithm commonly used by the public blockchain to confirm the consensus accounting node equipment. In another illustrated embodiment, in order to reduce the confirmation time of transactions or data, increase transaction throughput, and meet the requirements for security and performance, the embodiment provided in this specification can also use the alliance chain architecture to construct the block chain. The above-mentioned service platform node equipment or the institution that supervises related service businesses can be used as the pre-selected node equipment of the alliance chain to participate in block accounting. The consensus process of the alliance chain is also controlled by the pre-selected node device. When there are more than a set ratio (such as 2/3) of node devices on the network to confirm a block, the transaction or data recorded in the block will be confirmed by the entire network. Consortium chains usually use proof of rights or consensus algorithms such as PBFT and RAFT. In implementation, before each round of consensus in the blockchain starts, a master node device can be elected from each node device in the blockchain, that is, the consensus accounting node described in the above embodiment (for example, each round of consensus A master node device is re-elected, and other node devices are used as slave node devices. The master node device further initiates transaction verification and consensus, and is responsible for creating the latest blockchain based on the transaction data (or target data) passed by the consensus. Block. The PBFT algorithm, as a preferred implementation of the consensus algorithm of the alliance chain provided in this specification, is due to the high efficiency of the consensus algorithm and can meet the needs of high-frequency transaction volume. For example, in this embodiment, the service The platform generates service certificate transactions based on frequently occurring order information; and the consensus delay is very low, which basically meets the requirements of real-time processing, and can quickly and instantly include the above-mentioned service certificate transactions in the new block of the blockchain; and , The trusted node in the alliance chain network is used as the pre-selected accounting node, which takes into account security and stability; in addition, the use of PBFT algorithm will not consume too much computer computing resources, and does not necessarily require token circulation, so it has Good usability. Based on the service method provided in this embodiment and the distributed database storage mechanism based on blockchain technology, the actual completed service content is decentralized and recorded in multiple blockchain nodes, which are jointly maintained by the blockchain nodes. Real-time synchronization, all records can be traced back; moreover, based on the consensus mechanism of the blockchain, the completed service content information provided by the service platform node equipment will not be tampered with after provision, thus ensuring the authenticity of the completed service content And security, it provides an effective data basis for forensics or other applications based on the completed service content. Corresponding to the above-mentioned process implementation, the embodiment of this specification also provides a data processing device 20 based on a blockchain. The device 20 can be implemented 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 hardware level, in addition to the CPU, memory, and memory shown in Figure 3, the equipment where the network risk business is implemented usually also includes other hardware such as chips for wireless signal transmission and reception, and / Or other hardware such as boards used to realize network communication functions. Figure 2 shows that this specification also provides a block chain-based data processing device 20, the block chain includes service platform node equipment; the device 20 includes: The obtaining unit 202 is configured to obtain order information sent by a service demander terminal, where the order information includes the required service content; The sending unit 204 is configured to send order distribution information to the service provider terminal based on the order information to distribute the service provider to the service demander terminal, wherein the distributed database of the blockchain has a certificate The identity information of the above-mentioned service provider is used for the identity verification and comparison of the service provider when providing services; The receiving unit 206 is configured to receive the service content actually provided by the service provider sent by the service demander terminal or the service provider terminal; The transaction sending unit 208 is configured to send a service certificate transaction to the blockchain, so that the service certificate transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus; The above-mentioned service deposit transaction is used to deposit the service content actually provided by the service provider. In another embodiment shown, the identity information is the biological identity information of the service provider. In another embodiment shown, the receiving unit 206 is further configured to receive identity verification information sent by the service provider terminal or the service demander terminal, where the identity verification information includes the service Provider’s current identity information; The device 20 also includes a comparison unit 210 for comparing the identity information with the existing identity information; The sending unit 204 is further configured to send the comparison result to the service provider terminal or the service demander terminal. In another embodiment shown, the obtaining unit 202 is further configured to obtain the identification information of the service provider deposited in the distributed database of the blockchain; The sending unit 204 is further configured to send the identity identification information to the service provider terminal or the service demander terminal, so that the service provider terminal or the service demander terminal is based on the identity identification Information, and compare the identity of the service provider; The receiving unit 206 is further configured to receive the identity verification comparison result sent by the service provider terminal or the service demander terminal. In another embodiment shown, the service content actually provided by the service provider includes the location information of the service provider's node device, the identity verification and comparison result of the service provider, and the service provider's service start time. One or more of the time when the service provider ends the service, the content of the memo in the service process, or the mathematical summary of the content. In another illustrated embodiment, the blockchain is an alliance chain, and the service platform node device is an alliance member node device. For the implementation process of the functions and roles of each unit in the above-mentioned device 20, please refer to the implementation process of the corresponding steps in the above-mentioned method. 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. Console, tablet, wearable device or any combination of these devices. Corresponding to the foregoing method embodiment, the embodiment of this specification also provides a computer device. As shown in FIG. 3, the computer device 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, it executes each step of the blockchain-based data processing method executed by the service platform node device in the embodiment of this specification. For a detailed description of each step of the blockchain-based data processing method executed by the service platform node device, 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 service platform in the embodiments of this specification when they are run by the processor. Each step of the blockchain-based data processing method executed by the node device. For a detailed description of each step of the blockchain-based data processing method executed by the service platform node device, 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 internal 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 technology, 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 transient computer-readable media (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 in this specification may adopt the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. 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.

102:步驟 104:步驟 106:步驟 108:步驟 20:裝置 202:獲取單元 204:發送單元 206:接收單元 208:交易發送單元102: Step 104: Step 106: Step 108: Step 20: device 202: Get Unit 204: Sending unit 206: receiving unit 208: Transaction sending unit

[圖1]為本說明書所提供的一實施例所示的基於區塊鏈的資料處理方法的流程示意圖; [圖2]為本說明書所提供的一實施例提供的基於區塊鏈的資料處理裝置的示意圖; [圖3]為運行本說明書所提供的基於區塊鏈的資料處理裝置實施例的一種硬體結構圖。[Figure 1] A schematic flow diagram of a blockchain-based data processing method shown in an embodiment provided in this specification; [Figure 2] A schematic diagram of a block chain-based data processing device provided by an embodiment provided in this specification; [Figure 3] is a hardware structure diagram of an embodiment of the blockchain-based data processing device provided in this specification.

Claims (14)

一種基於區塊鏈的資料處理方法,該區塊鏈包括服務平台節點設備;該方法包括: 該服務平台節點設備獲取服務需求方終端發送的訂單資訊,其中,該訂單資訊包括需求的服務內容; 基於該訂單資訊,向服務提供方終端發送訂單分配資訊,用以為該服務需求方終端分配服務提供方,其中,該區塊鏈的分散式資料庫中存證有該服務提供方的身分識別資訊,用以供該服務提供方在提供服務時作身分校驗對比; 接收該服務需求方終端或該服務提供方終端發送的服務提供方實際提供的服務內容;以及 向該區塊鏈發送服務存證交易,以使該服務存證交易被該區塊鏈共識驗證後收錄於該區塊鏈的分散式資料庫;該服務存證交易用於為服務提供方實際提供的服務內容進行存證。A data processing method based on a blockchain, the blockchain including a service platform node device; the method includes: The service platform node device obtains the order information sent by the service demander terminal, where the order information includes the required service content; Based on the order information, send order distribution information to the service provider terminal to allocate the service provider to the service demander terminal, where the distributed database of the blockchain has the service provider’s identity information , For the service provider to perform identity verification and comparison when providing services; Receive the service content actually provided by the service provider sent by the service demander terminal or the service provider terminal; and Send a service certificate transaction to the blockchain so that the service certificate transaction is included in the blockchain's distributed database after being verified by the blockchain consensus; the service certificate transaction is used to actually provide the service provider The content of the services provided is recorded. 如請求項1之方法,該身分識別資訊為該服務提供方的生物學身分識別資訊。Such as the method of claim 1, the identification information is the biological identification information of the service provider. 如請求項1或2之方法,還包括: 接收該服務提供方終端或該服務需求方終端發送的身分校驗資訊,該身分校驗資訊包括該服務提供方的現有身分資訊; 對比該身分識別資訊與該現有身分資訊;以及 將對比的結果發送至該服務提供方終端或該服務需求方終端。Such as the method of claim 1 or 2, also including: Receiving the identity verification information sent by the service provider terminal or the service requester terminal, the identity verification information including the current identity information of the service provider; Compare the identity information with the existing identity information; and Send the comparison result to the service provider terminal or the service demander terminal. 如請求項1或2之方法,還包括: 獲取該服務提供方在該區塊鏈的分散式資料庫中存證的身分識別資訊; 向該服務提供方終端或該服務需求方終端發送該身分識別資訊,以使該服務提供方終端或該服務需求方終端基於該身分識別資訊,對該服務提供方作身分校驗對比;以及 接收該服務提供方終端或該服務需求方終端發送的身分校驗對比結果。Such as the method of claim 1 or 2, also including: Obtain the identification information of the service provider in the distributed database of the blockchain; Send the identity information to the service provider terminal or the service demander terminal, so that the service provider terminal or the service demander terminal can perform identity verification and comparison with the service provider based on the identity information; and Receive the identity verification comparison result sent by the service provider terminal or the service demander terminal. 如請求項1之方法,該服務提供方實際提供的服務內容包括該服務提供方節點設備的定位資訊、該服務提供方的身分校驗對比結果、服務提供方開始服務時間、服務提供方結束服務時間、服務過程備忘資訊內容或內容的數學摘要中的一種或多種。For example, in the method of claim 1, the service content actually provided by the service provider includes the location information of the service provider’s node equipment, the identity verification and comparison result of the service provider, the service provider’s service start time, and the service provider’s end service One or more of the time, service process memo information content or mathematical summary of the content. 如請求項1之方法,該區塊鏈的為聯盟鏈,該服務平台節點設備為聯盟成員節點設備。For example, in the method of claim 1, the blockchain is an alliance chain, and the service platform node device is an alliance member node device. 一種基於區塊鏈的資料處理裝置,該區塊鏈包括服務平台節點設備;該裝置包括: 獲取單元,用於獲取服務需求方終端發送的訂單資訊,其中,該訂單資訊包括需求的服務內容; 發送單元,用於基於該訂單資訊,向服務提供方終端發送訂單分配資訊,以為該服務需求方終端分配服務提供方,其中,該區塊鏈的分散式資料庫中存證有該服務提供方的身分識別資訊,用以供該服務提供方在提供服務時作身分校驗對比; 接收單元,用於接收該服務需求方終端或該服務提供方終端發送的服務提供方實際提供的服務內容;以及 交易發送單元,用於向該區塊鏈發送服務存證交易,以使該服務存證交易被該區塊鏈共識驗證後收錄於該區塊鏈的分散式資料庫;該服務存證交易用於為服務提供方實際提供的服務內容進行存證。A data processing device based on block chain, the block chain includes service platform node equipment; the device includes: The obtaining unit is used to obtain the order information sent by the terminal of the service demander, where the order information includes the required service content; The sending unit is used to send order distribution information to the service provider terminal based on the order information, so as to distribute the service provider to the service demander terminal, where the service provider is certified in the distributed database of the blockchain The identity information for the service provider to perform identity verification and comparison when providing services; The receiving unit is configured to receive the service content actually provided by the service provider sent by the service demander terminal or the service provider terminal; and The transaction sending unit is used to send the service certificate transaction to the blockchain, so that the service certificate transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus; the service certificate transaction is used for In order to record the content of the service actually provided by the service provider. 如請求項7之裝置,該身分識別資訊為該服務提供方的生物學身分識別資訊。For the device of claim 7, the identification information is the biological identification information of the service provider. 如請求項7或8之裝置, 該接收單元,進一步用於接收該服務提供方終端或該服務需求方終端發送的身分校驗資訊,該身分校驗資訊包括該服務提供方的現有身分資訊; 該裝置還包括對比單元,用於對比該身分識別資訊與該現有身分資訊;以及 該發送單元,進一步用於將對比的結果發送至該服務提供方終端或該服務需求方終端。Such as the device of claim 7 or 8, The receiving unit is further configured to receive the identity verification information sent by the service provider terminal or the service demander terminal, where the identity verification information includes the existing identity information of the service provider; The device also includes a comparison unit for comparing the identity information with the existing identity information; and The sending unit is further configured to send the comparison result to the service provider terminal or the service demander terminal. 如請求項7或8之裝置: 該獲取單元,進一步用於獲取該服務提供方在該區塊鏈的分散式資料庫中存證的身分識別資訊; 該發送單元,進一步用於向該服務提供方終端或該服務需求方終端發送該身分識別資訊,以使該服務提供方終端或該服務需求方終端基於該身分識別資訊,對該服務提供方作身分校驗對比;以及 該接收單元,進一步用於接收該服務提供方終端或該服務需求方終端發送的身分校驗對比結果。Such as the device of claim 7 or 8: The obtaining unit is further used to obtain the identification information of the service provider deposited in the distributed database of the blockchain; The sending unit is further configured to send the identity information to the service provider terminal or the service demander terminal, so that the service provider terminal or the service demander terminal can perform actions on the service provider based on the identity information. Identity verification comparison; and The receiving unit is further configured to receive the identity verification comparison result sent by the service provider terminal or the service demander terminal. 如請求項7之裝置,該服務提供方實際提供的服務內容包括該服務提供方節點設備的定位資訊、該服務提供方的身分校驗對比結果、服務提供方開始服務時間、服務提供方結束服務時間、服務過程備忘資訊內容或內容的數學摘要中的一種或多種。Such as the device of claim 7, the service content actually provided by the service provider includes the location information of the service provider’s node equipment, the identity verification and comparison result of the service provider, the service provider’s start time, and the service provider’s end of service One or more of the time, service process memo information content or mathematical summary of the content. 如請求項7之裝置,該區塊鏈的為聯盟鏈,該服務平台節點設備為聯盟成員節點設備。For example, in the device of claim 7, the blockchain is an alliance chain, and the service platform node device is an alliance member node device. 一種電腦設備,包括:記憶體和處理器;該記憶體上儲存有可由該處理器運行的電腦程式;該處理器運行該電腦程式時,執行如請求項1至6中任意一項所述的方法。A computer device includes: 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, the processor executes any one of claims 1 to 6 method. 一種電腦可讀儲存媒體,其上儲存有電腦程式,該電腦程式被處理器運行時,執行如請求項1至6中任意一項所述的方法。A computer-readable storage medium on which a computer program is stored. When the computer program is run by a processor, the method as described in any one of claim items 1 to 6 is executed.
TW108137831A 2018-12-29 2019-10-21 Block chain-based data processing method and apparatus TW202027457A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811636710.8 2018-12-29
CN201811636710.8A CN110009339A (en) 2018-12-29 2018-12-29 Data processing method and device based on block chain

Publications (1)

Publication Number Publication Date
TW202027457A true TW202027457A (en) 2020-07-16

Family

ID=67165311

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108137831A TW202027457A (en) 2018-12-29 2019-10-21 Block chain-based data processing method and apparatus

Country Status (3)

Country Link
CN (1) CN110009339A (en)
TW (1) TW202027457A (en)
WO (1) WO2020134631A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009339A (en) * 2018-12-29 2019-07-12 阿里巴巴集团控股有限公司 Data processing method and device based on block chain
CN110609869B (en) * 2019-09-10 2023-04-07 连连银通电子支付有限公司 Block chain-based data storage method, related equipment and storage medium
CN111553691A (en) * 2020-05-21 2020-08-18 陈议尊 Pure decentralized block chain method and system
CN111797165B (en) * 2020-06-24 2023-11-28 泰康保险集团股份有限公司 Data processing method and device based on block chain
CN111783144A (en) * 2020-08-20 2020-10-16 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain
CN111931238B (en) * 2020-09-15 2021-05-04 支付宝(杭州)信息技术有限公司 Block chain-based data asset transfer method, device and equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897902A (en) * 2017-02-21 2017-06-27 中链科技有限公司 Service transacting method, system and trading server based on block chain technology
CN112767158A (en) * 2018-02-27 2021-05-07 创新先进技术有限公司 Transaction execution method and device based on block chain and electronic equipment
CN108805650A (en) * 2018-04-27 2018-11-13 深圳市元征科技股份有限公司 A kind of order matching process and server
CN108717629A (en) * 2018-05-14 2018-10-30 现在(北京)支付股份有限公司 A kind of intelligent payment method, system and electronic equipment
CN108765070A (en) * 2018-05-22 2018-11-06 深圳市元征科技股份有限公司 A kind of service providing method, system, equipment and computer readable storage medium
CN109064330A (en) * 2018-07-19 2018-12-21 中链科技有限公司 Service transacting processing method, system and device based on alliance's block chain
CN109034437A (en) * 2018-08-16 2018-12-18 刘仕博 A kind of library system based on cloud terminal
CN110009339A (en) * 2018-12-29 2019-07-12 阿里巴巴集团控股有限公司 Data processing method and device based on block chain

Also Published As

Publication number Publication date
WO2020134631A1 (en) 2020-07-02
CN110009339A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
TWI779231B (en) Blockchain-based certificate storage method and device
CN110363527B (en) Block chain-based evidence storage and supervision method and device
TWI724391B (en) Node management method and device based on blockchain
TWI716140B (en) Data processing method and device based on blockchain
TWI694350B (en) Information supervision method and device based on blockchain
WO2020155789A1 (en) Blockchain-based certificate storage method and apparatus
CN112215608B (en) Data processing method and device
WO2020082887A1 (en) Block chain transaction method and apparatus
TW202027457A (en) Block chain-based data processing method and apparatus
WO2020103566A1 (en) Blockchain certificate storage method and apparatus, and computer device
CN107180350B (en) Method, device and system for multi-party sharing transaction metadata based on block chain
WO2020038105A1 (en) Blockchain-based data storage method and apparatus
WO2020082894A1 (en) Blockchain-based data deposit and acquisition methods and devices
WO2020082868A1 (en) Block chain-based claim settlement method and apparatus
WO2020220759A1 (en) Block chain-based payment method and device
TWI727284B (en) Block chain-based privacy transaction method, device and computer equipment, application method based on block chain privacy transaction and computer equipment
TW202026926A (en) Blockchain-based recordkeeping method and apparatus
CN115632854A (en) Data processing method and device based on block chain
WO2020125234A1 (en) Blockchain-based data processing method and apparatus
WO2021004058A1 (en) Blockchain-based data processing method and device
CN110347750B (en) Block chain-based data processing method and device
TW202046212A (en) Blockchain-based leasing method and apparatus
WO2020216053A1 (en) Distributed data processing method, device, apparatus and medium
CN112801778A (en) Federated bad asset blockchain
TW202134903A (en) Information read-write method and device based on block chain