TWI779231B - Blockchain-based certificate storage method and device - Google Patents

Blockchain-based certificate storage method and device Download PDF

Info

Publication number
TWI779231B
TWI779231B TW108130769A TW108130769A TWI779231B TW I779231 B TWI779231 B TW I779231B TW 108130769 A TW108130769 A TW 108130769A TW 108130769 A TW108130769 A TW 108130769A TW I779231 B TWI779231 B TW I779231B
Authority
TW
Taiwan
Prior art keywords
party payment
blockchain
deposit transaction
node device
information
Prior art date
Application number
TW108130769A
Other languages
Chinese (zh)
Other versions
TW202029086A (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 TW202029086A publication Critical patent/TW202029086A/en
Application granted granted Critical
Publication of TWI779231B publication Critical patent/TWI779231B/en

Links

Images

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • 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

Abstract

本說明書的一個或多個實施例提供了一種基於區塊鏈的存證方法和裝置,應用於包括第三方支付服務節點設備的區塊鏈系統;所述方法包括:所述第三方支付服務節點設備獲取使用者的第三方支付使用資訊,所述第三方支付使用資訊包括所述使用者的第三方支付帳戶資訊和基於所述第三方支付帳戶的資金流轉資訊;基於所述第三方支付使用資訊,產生第一存證交易;將所述第一存證交易發送到所述區塊鏈的分散式資料庫,以使所述第一存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。One or more embodiments of this specification provide a blockchain-based certificate deposit method and device, which are applied to a blockchain system including a third-party payment service node device; the method includes: the third-party payment service node The device acquires the user's third-party payment usage information, the third-party payment usage information includes the user's third-party payment account information and the fund flow information based on the third-party payment account; based on the third-party payment usage information , generate the first certificate deposit transaction; send the first certificate deposit transaction to the distributed database of the blockchain, so that the first certificate deposit transaction is verified by the node device consensus of the blockchain , is included in the decentralized database of the blockchain.

Description

基於區塊鏈的存證方法和裝置Method and device for depositing evidence based on block chain

本說明書涉及資料處理技術領域,尤其涉及一種基於區塊鏈的存證方法和裝置。This specification relates to the technical field of data processing, and in particular to a method and device for depositing certificates based on blockchain.

區塊鏈技術,也被稱之為分散式帳本技術,是一種由若干台電腦設備共同參與“記帳”,共同維護一份完整的分散式資料庫的新興技術。由於區塊鏈技術具有去中心化、公開透明、每台電腦設備可以參與資料庫記錄、並且各電腦設備之間可以快速的進行資料同步的特性,使得區塊鏈技術已在眾多的領域中廣泛的進行應用。Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computer devices jointly participate in "bookkeeping" and jointly maintain a complete distributed database. Due to the characteristics of decentralization, openness and transparency, each computer device can participate in database records, and rapid data synchronization between computer devices, blockchain technology has been widely used in many fields. to apply.

有鑑於此,本說明書一個或多個實施例提供了一種基於區塊鏈的存證方法,應用於包括第三方支付服務節點設備的區塊鏈系統;所述方法包括: 所述第三方支付服務節點設備獲取使用者的第三方支付使用資訊,所述第三方支付使用資訊包括所述使用者的第三方支付帳戶資訊和基於所述第三方支付帳戶的資金流轉資訊; 基於所述第三方支付使用資訊,產生第一存證交易; 將所述第一存證交易發送到區塊鏈的分散式資料庫,以使所述第一存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 在又一示出的實施方式中,所述的方法還包括: 獲取所述第三方支付帳戶的使用者註冊資訊,所述使用者註冊資訊包括使用者的身份識別資訊; 基於所述註冊資訊產生第二存證交易; 將所述第二存證交易發送到區塊鏈的分散式資料庫,以使所述第二存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 在又一示出的實施方式中,所述區塊鏈還包括與關聯金融機構節點設備;所述區塊鏈的分散式資料庫還收錄有所述關聯金融機構節點設備發送的第三存證交易,所述第三存證交易用以為所述第三方支付帳戶的資金流轉資訊提供憑證。 在又一示出的實施方式中,所述第一存證交易包括所述第三方支付使用資訊的雜湊摘要。 在又一示出的實施方式中,所述第二存證交易包括所述使用者註冊資訊的雜湊摘要。 在又一示出的實施方式中,所述區塊鏈為聯盟鏈;所述第三方支付服務節點設備、和所述關聯金融機構節點設備為所述聯盟鏈的聯盟成員節點設備。 相應地,本說明書還提供了一種基於區塊鏈的存證裝置,應用於包括第三方支付服務節點設備的區塊鏈系統;所述裝置包括: 獲取單元,用於獲取使用者的第三方支付使用資訊,所述第三方支付使用資訊包括所述使用者的第三方支付帳戶資訊和基於所述第三方支付帳戶的資金流轉資訊; 產生單元,用於基於所述第三方支付使用資訊,產生第一存證交易; 發送單元,用於將所述第一存證交易發送到區塊鏈的分散式資料庫,以使所述第一存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 在又一示出的實施方式中,所述獲取單元,進一步用於獲取所述第三方支付帳戶的使用者註冊資訊,所述使用者註冊資訊包括使用者的身份識別資訊; 所述產生單元,進一步用於基於所述註冊資訊產生第二存證交易; 所述發送單元,進一步用於將所述第二存證交易發送到區塊鏈的分散式資料庫,以使所述第二存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 在又一示出的實施方式中,所述區塊鏈還包括與關聯金融機構節點設備;所述區塊鏈的分散式資料庫還收錄有所述關聯金融機構節點設備發送的第三存證交易,所述第三存證交易用以為所述第三方支付帳戶的資金流轉資訊提供憑證。 在又一示出的實施方式中,所述第一存證交易包括所述第三方支付使用資訊的雜湊摘要。 在又一示出的實施方式中,所述第二存證交易包括所述使用者註冊資訊的雜湊摘要。 在又一示出的實施方式中,所述區塊鏈為聯盟鏈;所述第三方支付服務節點設備、和所述關聯金融機構節點設備為所述聯盟鏈的聯盟成員節點設備。 相應地,本說明書還提出了一種電腦設備,包括:記憶體和處理器;所述記憶體上儲存有可由處理器運行的電腦程式;所述處理器運行所述電腦程式時,執行上述第三方支付服務節點設備所執行的基於區塊鏈的存證方法。 本說明書還提供了一種電腦可讀儲存媒體,其上儲存有電腦程式,所述電腦程式被處理器運行時,執行上述第三方支付服務節點設備所執行的基於區塊鏈的存證方法。 由以上技術方案可見,本說明書提供的基於區塊鏈的存證方法及裝置,將第三方支付機構的服務終端設置為區塊鏈的節點設備,基於區塊鏈技術的分散式資料庫儲存機制,將第三方支付機構的使用者使用第三方支付的使用資訊產生第一存證交易,而存證於區塊鏈的分散式資料庫中,由區塊鏈系統的節點設備共同維護,實時進行同步,所有記錄可回溯;而且,基於區塊鏈的共識機制,上述第一存證交易不會在提供後被竄改,從而保證了上述第一存證交易的真實性和安全性,為基於上述第一存證交易進行的司法取證或其他應用提供了有效的資料基礎。 In view of this, one or more embodiments of this specification provide a blockchain-based certificate deposit method, which is applied to a blockchain system including a third-party payment service node device; the method includes: The third-party payment service node device obtains the user's third-party payment usage information, and the third-party payment usage information includes the user's third-party payment account information and fund flow information based on the third-party payment account; Generate a first certificate deposit transaction based on the third-party payment usage information; Sending the first certificate deposit transaction to the decentralized database of the block chain, so that the first certificate deposit transaction is included in the block chain after being verified by the node device consensus of the block chain Distributed database. In yet another illustrated embodiment, the method further includes: Obtain user registration information of the third-party payment account, where the user registration information includes the user's identification information; generating a second deposit transaction based on the registration information; Sending the second certificate deposit transaction to the decentralized database of the block chain, so that the second certificate deposit transaction is included in the block chain after being verified by the node device consensus of the block chain Distributed database. In yet another illustrated embodiment, the block chain also includes a node device associated with an associated financial institution; the distributed database of the block chain also contains the third deposit certificate sent by the node device associated transaction, the third deposit transaction is used to provide evidence for the fund flow information of the third-party payment account. In yet another illustrated embodiment, the first deposit transaction includes a hash digest of the third-party payment usage information. In yet another illustrated embodiment, the second deposit transaction includes a hash digest of the user registration information. In yet another illustrated embodiment, the block chain is a consortium chain; the third-party payment service node device and the associated financial institution node device are consortium member node devices of the consortium chain. Correspondingly, this specification also provides a blockchain-based certificate storage device, which is applied to a blockchain system including a third-party payment service node device; the device includes: An acquisition unit, configured to acquire third-party payment usage information of the user, the third-party payment usage information including the user's third-party payment account information and fund flow information based on the third-party payment account; A generating unit, configured to generate a first certificate deposit transaction based on the third-party payment usage information; A sending unit, configured to send the first certificate deposit transaction to the distributed database of the blockchain, so that the first certificate deposit transaction is recorded in the blockchain after being verified by the consensus of the node devices of the blockchain. A decentralized repository for blockchains. In yet another illustrated embodiment, the acquiring unit is further configured to acquire user registration information of the third-party payment account, where the user registration information includes user identification information; The generating unit is further configured to generate a second certificate deposit transaction based on the registration information; The sending unit is further configured to send the second certificate deposit transaction to the decentralized database of the blockchain, so that after the second certificate deposit transaction is verified by the consensus of the node devices of the blockchain, it is Included in the decentralized database of said blockchain. In yet another illustrated embodiment, the block chain also includes a node device associated with an associated financial institution; the distributed database of the block chain also contains the third deposit certificate sent by the node device associated transaction, the third deposit transaction is used to provide evidence for the fund flow information of the third-party payment account. In yet another illustrated embodiment, the first deposit transaction includes a hash digest of the third-party payment usage information. In yet another illustrated embodiment, the second deposit transaction includes a hash digest of the user registration information. In yet another illustrated embodiment, the block chain is a consortium chain; the third-party payment service node device and the associated financial institution node device are consortium member node devices of the consortium chain. Correspondingly, this specification also proposes a computer device, including: a memory and a processor; a computer program that can be run by the processor is stored on the memory; when the processor runs the computer program, it executes the above-mentioned third-party The payment service node device implements the blockchain-based certificate deposit method. 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 above-mentioned third-party payment service node device based on the blockchain-based certificate storage method. It can be seen from the above technical solutions that the blockchain-based certificate storage method and device provided in this manual set the service terminal of the third-party payment institution as the node device of the blockchain, and the distributed database storage mechanism based on blockchain technology , the user of the third-party payment institution uses the information of the third-party payment to generate the first deposit transaction, and deposit the certificate in the distributed database of the blockchain, which is jointly maintained by the node devices of the blockchain system and carried out in real time Synchronization, all records can be traced back; moreover, based on the blockchain consensus mechanism, the above-mentioned first deposit transaction will not be tampered with after being provided, thereby ensuring the authenticity and security of the above-mentioned first deposit transaction, based on the above-mentioned Judicial forensics or other applications conducted by the first depository transaction provide an effective data base.

這裡將詳細地對示例性實施例進行說明,其示例表示在附圖中。下面的描述涉及附圖時,除非另有表示,不同附圖中的相同數位表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本說明書一個或多個實施例相一致的所有實施方式。相反,它們僅是與如所附申請專利範圍中所詳述的、本說明書一個或多個實施例的一些態樣相一致的裝置和方法的例子。 Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numerals in different drawings indicate the same or similar elements. Implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of one or more embodiments of the present specification, as detailed in the appended claims.

需要說明的是:在其他實施例中並不一定按照本說明書示出和描述的順序來執行相應方法的步驟。在一些其他實施例中,其方法所包括的步驟可以比本說明書所描述的更多或更少。此外,本說明書中所描述的單個步驟,在其他實施例中可能被分解為多個步驟進行描述;而本說明書中所描述的多個步驟,在其他實施例中也可能被合併為單 個步驟進行描述。 It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or less steps than those 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 steps are described.

第三方支付機構通常是指具備一定實力和信譽保障的獨立機構,透過促成交易雙方進行交易的網路支付模式,目前使用者可以基於第三方支付完成商品購買異步支付、使用者第三方支付帳戶之間轉帳收款、或使用者的其他金融帳戶與第三方支付帳戶之間轉帳收款等金融。對於第三方支付機構而言,如果使用者出現黑灰交易,第三方支付機構不得不配合司法機構進行調查取證及對受害使用者的賠付;在第三方支付機構基於自身受損進行司法追償訴訟時,其收益往往小於訴訟成本;對此問題,第三方支付機構只能透過不斷追加技術投入以疊加風控策略。 Third-party payment institutions usually refer to independent institutions with certain strength and reputation guarantee. Through the online payment mode that facilitates transactions between the two parties, users can currently complete asynchronous payment for commodity purchases based on third-party payment, and the user's third-party payment account transfers and collections between users, or transfers and collections between other financial accounts of users and third-party payment accounts. For third-party payment institutions, if users have black and gray transactions, third-party payment institutions have to cooperate with judicial agencies to investigate and collect evidence and compensate victims; when third-party payment institutions conduct judicial recovery proceedings based on their own damage , its income is often less than the cost of litigation; for this problem, third-party payment institutions can only superimpose risk control strategies by continuously increasing technical investment.

基於以上提出的技術現狀和問題,圖1是本說明書所提供的一實施例所示的基於區塊鏈的存證方法,應用於包括第三方支付服務節點設備的區塊鏈系統。 Based on the technical status and problems raised above, Fig. 1 is a block chain-based certificate storage method shown in an embodiment provided in this specification, which is applied to a block chain system including a third-party payment service node device.

本實施例所述的第三方支付服務機構是指承擔第三方支付的貨款支付、轉帳匯款等功能的金融服務機構;本實施例所述的第三方支付服務節點設備是指上述第三方支付服務機構設置的、連接入區塊鏈網路的終端設備。 The third-party payment service institution described in this embodiment refers to a financial service institution that undertakes the functions of third-party payment such as payment for goods, transfer and remittance; the third-party payment service node device described in this embodiment refers to the above-mentioned third-party payment service institution A terminal device that is set up and connected to the blockchain network.

本實施例所述的區塊鏈,具體可指一個各節點設備透過共識機制達成的、具有分散式資料儲存結構的P2P網路系統,該區塊鏈內的資料分佈在時間上相連的一個個“區塊(block)”之內,後一區塊包含前一區塊的資料摘要,且根據具體的共識機制(如POW、POS、DPOS或PBFT等)的不同,達成全部或部分節點的資料全備份。本領域的技術人員熟知,由於區塊鏈系統在相應共識機制下運行,已收錄至區塊鏈資料庫內的資料很難被任意的節點竄改,例如採用Pow共識的區塊鏈,至少需要全網51%算力的攻擊才有可能竄改已有資料,因此區塊鏈系統有著其他中心化資料庫系統所無法比擬的保證資料安全、防攻擊竄改的特性。由此可知,在本說明書所提供的實施例中,被收錄至區塊鏈的分散式資料庫中的資料不會被攻擊或竄改,從而保證了上述區塊鏈系統中各節點設備(包括上述第三方支付服務節點設備)向上述區塊鏈存證的資料資訊的真實可靠性。 上述第三方支付服務機構的終端設備,可透過遵循相應節點協議、運行節點協議程式的安裝來加入該區塊鏈,作為該區塊鏈的節點設備。本領域的技術人員通常將具有區塊鏈分散式資料庫的資料全備份的節點設備稱為全節點,將具有區塊鏈分散式資料庫的部分備份資料(如僅有區塊頭的資料)的節點設備稱為輕節點等;在本實施例中所述的第三方支付服務節點設備可以為上述的全節點或輕節點,只要直接或間接連入上述區塊鏈、且可發送或獲取區塊鏈的分散式資料庫的資料的任何設備均可稱為本實施例所述的節點設備。 如圖1所示,上述基於區塊鏈的存證方法包括: 步驟102,所述第三方支付服務節點設備獲取使用者的第三方支付使用資訊,所述第三方支付使用資訊包括所述使用者的第三方支付帳戶資訊和基於所述第三方支付帳戶的資金流轉資訊。 本實施例所述的使用者的第三方支付使用資訊,是指使用者基於自身的第三方支付帳戶使用第三方支付服務的記錄資訊;可包括使用者基於自身的第三方支付帳戶,進行貨款支付(或收取)、轉帳匯款(或收款)等資金流轉的使用資訊。值得注意的是,上述轉帳匯款(或收款)可包括多個使用者的第三方支付帳戶之間的轉帳匯款(或收款),也可包括使用者的第三方支付帳戶與其他金融機構的帳戶(如銀行帳戶)之間的轉帳匯款(或收款),在本說明書中不作限定。 本說明書並不限定上述第三方支付服務節點設備獲取上述使用者的第三方支付使用資訊的具體方式,既可以從使用者的第三方支付服務客戶端獲取上述使用者的第三方支付使用資訊,也可以從第三方支付服務機構的其他伺服器或終端設備獲取上述使用者的第三方支付使用資訊,等等。 步驟104,基於所述第三方支付使用資訊,產生第一存證交易。 在本說明書中所描述的交易(transfer),是指透過區塊鏈的節點設備創建,並需要最終發佈至區塊鏈的分散式資料庫中的一筆資料。其中,區塊鏈中的交易,存在狹義的交易以及廣義的交易之分。狹義的交易是指使用者向區塊鏈發佈的一筆價值轉移;例如,在傳統的比特幣區塊鏈網路中,交易可以是使用者在區塊鏈中發起的一筆轉帳。而廣義的交易是指使用者向區塊鏈發佈的一筆具有業務意圖的業務資料;例如,本說明書的上述實施例所述的由第三方支付服務節點設備產生的、用於為上述使用者的第三方支付使用資訊進行存證的資料即可以為一筆交易;上述第三方支付服務節點設備可將上述第三方支付使用資訊按照預設的資料內容產生規則和交易資料格式整理,從而轉化為一筆交易——即第一存證交易。 上述基於第三方支付使用資訊產生第一存證交易的具體方式可以有多種,例如,可將使用者的第三方支付使用資訊直接按照預設的交易資料格式整理成第一存證交易,從而方便區塊鏈上任一節點設備對上述使用者的第三方支付使用資訊的資訊內容獲取。又如,由於使用者的第三方支付使用資訊通常涉及使用者的帳戶資訊、資金流轉資訊等隱私資訊,為保護使用者資訊的安全,可以將上述使用者的第三方支付使用資訊基於預設的加密規則加密後,再產生上述第一存證交易。上述預設的加密規則可以有多種設置方法,如對稱加密或非對稱加密,在本說明書中不作限定。 對資料原文進行數學雜湊化處理以產生資料原文的雜湊摘要(或稱雜湊指紋)是本領域常用的一種對資料原文的存證手段,透過存證雜湊摘要基本上可唯一性地指向資料原文資訊;而且雜湊摘要佔用的資料空間相對於資料原文,尤其是大資料量的資料原文,具有佔用空間小的優點。鑒於以上的技術基礎,本實施例所述的第一存證交易還可包括上述第三方支付使用資訊的雜湊摘要;透過將第三方支付使用資訊的雜湊摘要存證於區塊鏈的分散式資料庫中,可在取證時,驗證上述第三方支付使用資訊是否與被存證的雜湊摘要對應,如果對應,則證明上述第三方支付使用資訊為原始的資訊,未經過竄改,具有作為證據的合法性。 步驟106,將所述第一存證交易發送到區塊鏈的分散式資料庫,以使所述第一存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 本實施例所述的將所述第一存證交易上傳到所述區塊鏈的分散式資料庫中的詳細過程,可依據所述區塊鏈的共識機制及交易規則而具體設定。在一示出的實施例中,將所述第一存證交易上傳到所述區塊鏈的分散式資料庫中,包括: 所述區塊鏈中具有記帳權限的節點設備將所述第一存證交易加入到候選區塊; 從所述具有記帳權限的節點設備中確定滿足所述區塊鏈共識機制的共識記帳節點設備; 所述共識記帳節點向所述區塊鏈的節點設備廣播所述候選區塊; 在所述候選區塊透過所述區塊鏈符合預設數量的節點設備的驗證認可後,所述候選區塊被視為最新區塊,加入到所述區塊鏈的分散式資料庫中。 在上述的實施例中,具有記帳權限的節點設備是指具有產生候選區塊權限的節點設備。根據所述區塊鏈的共識機制,可從所述候選區塊具有記帳權限的節點設備中確定共識記帳節點設備,上述共識機制可以包括工作量證明機制(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,用於將所述第一存證交易發送到區塊鏈的分散式資料庫,以使所述第一存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 在又一示出的實施方式中,所述獲取單元202,進一步用於獲取所述第三方支付帳戶的使用者註冊資訊,所述使用者註冊資訊包括使用者的身份識別資訊; 所述產生單元204,進一步用於基於所述註冊資訊產生第二存證交易; 所述發送單元206,進一步用於將所述第二存證交易發送到區塊鏈的分散式資料庫,以使所述第二存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 在又一示出的實施方式中,所述區塊鏈還包括與關聯金融機構節點設備;所述區塊鏈的分散式資料庫還收錄有所述關聯金融機構節點設備發送的第三存證交易,所述第三存證交易用以為所述第三方支付帳戶的資金流轉資訊提供憑證。 在又一示出的實施方式中,所述第一存證交易包括所述第三方支付使用資訊的雜湊摘要。 在又一示出的實施方式中,所述第二存證交易包括所述使用者註冊資訊的雜湊摘要。 在又一示出的實施方式中,所述區塊鏈為聯盟鏈;所述第三方支付服務節點設備、和所述關聯金融機構節點設備為所述聯盟鏈的聯盟成員節點設備。 上述裝置20中各個單元的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,相關之處參見方法實施例的部分說明即可,在此不再贅述。 以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是實體上分開的,作為單元顯示的部件可以是或者也可以不是實體模組,即可以位於一個地方,或者也可以分佈到多個網路模組上。可以根據實際的需要選擇其中的部分或者全部單元或模組來實現本說明書方案的目的。本領域普通技術人員在不付出進步性勞動的情況下,即可以理解並實施。 上述實施例闡明的裝置、單元、模組,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、膝上型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放器、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。 與上述方法實施例相對應,本說明書的實施例還提供了一種電腦設備,如圖3所示,該電腦設備包括記憶體和處理器。其中,記憶體上儲存有能夠由處理器運行的電腦程式;處理器在運行儲存的電腦程式時,執行本說明書實施例中第三方支付服務節點設備所執行的基於區塊鏈的存證方法的各個步驟。對上述第三方支付服務節點設備所執行的基於區塊鏈的存證方法的各個步驟的詳細描述請參見之前的內容,不再重複。 與上述方法實施例相對應,本說明書的實施例還提供了一種電腦可讀儲存媒體,該儲存媒體上儲存有電腦程式,這些電腦程式在被處理器運行時,執行本說明書實施例中第三方支付服務節點設備所執行的基於區塊鏈的存證方法的各個步驟。對上述第三方支付服務節點設備所執行的基於區塊鏈的存證方法的各個步驟的詳細描述請參見之前的內容,不再重複。 以上所述僅為本說明書的較佳實施例而已,並不用以限制本說明書,凡在本說明書的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本說明書保護的範圍之內。 在一個典型的配置中,電腦設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和內部記憶體。 內部記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)及/或非揮發性內部記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。內部記憶體是電腦可讀媒體的示例。 電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。 電腦的儲存媒體的例子包括,但不限於相變內部記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可抹除可編程唯讀記憶體(EEPROM)、快閃記憶體或其他內部記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶式磁碟儲存器或其他磁性儲存設備或任何其他非傳輸媒體,可用於儲存可以被電腦設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 本領域中具有通常知識者應明白,本說明書的實施例可提供為方法、系統或電腦程式產品。因此,本說明書的實施例可採用完全硬體實施例、完全軟件實施例或結合軟件和硬體態樣的實施例的形式。而且,本說明書的實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。 The block chain described in this embodiment can specifically refer to a P2P network system with a distributed data storage structure achieved by each node device through a consensus mechanism. The data in the block chain are distributed in time. Within the "block (block)", the latter block contains the data summary of the previous block, and according to the specific consensus mechanism (such as POW, POS, DPOS or PBFT, etc.), the data of all or part of the nodes is reached. Full 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 the Pow consensus requires at least all Only an attack with 51% of the computing power of the network 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 that, in the embodiments provided in this specification, the data recorded in the distributed database of the blockchain will not be attacked or tampered with, thereby ensuring that each node device in the blockchain system (including the above-mentioned The authenticity and reliability of the data information stored in the above-mentioned blockchain by the third-party payment service node device). The terminal equipment of the above-mentioned third-party payment service organization can join the blockchain as a node equipment of the blockchain by following the corresponding node protocol and installing the node protocol program. Those skilled in the art usually refer to a node device with a full backup of data in a distributed blockchain database as a full node, and a device with partial backup data (such as only block header data) in a distributed blockchain database The node device is called a light node, etc.; the third-party payment service node device described in this embodiment can be the above-mentioned full node or light node, as long as it is directly or indirectly connected to the above-mentioned blockchain and can send or obtain blocks Any device with data in the distributed database of the chain can be referred to as a node device described in this embodiment. As shown in Figure 1, the above-mentioned block chain-based certificate storage method includes: Step 102, the third-party payment service node device obtains the user's third-party payment usage information, and the third-party payment usage information includes the user's The third-party payment account information and the fund flow information based on the third-party payment account. The user's third-party payment usage information described in this embodiment refers to the record information of the user's use of third-party payment services based on his own third-party payment account; it may include the user's own third-party payment account to make payment for goods (or receiving), transfer and remittance (or receiving) and other fund flow usage information. It is worth noting that the above-mentioned transfers (or receipts) may include transfers (or receipts) between third-party payment accounts of multiple users, and may also include transfers (or receipts) between the third-party payment accounts of users and other financial institutions. The transfer and remittance (or receipt) between accounts (such as bank accounts) is not limited in this manual. This manual does not limit the specific method for the above-mentioned third-party payment service node device to obtain the above-mentioned user's third-party payment usage information. It can obtain the above-mentioned user's third-party payment usage information from the user's third-party payment service client, or The third-party payment usage information of the above-mentioned users can be obtained from other servers or terminal devices of the third-party payment service organization, etc. Step 104: Generate a first certificate deposit transaction based on the third-party payment usage information. The transaction (transfer) described in this manual refers to a piece of data that is created through the node equipment of the blockchain and needs to be finally released to the decentralized database of the blockchain. Among them, transactions in the blockchain can be divided into transactions in a narrow sense and transactions in a broad sense. A transaction in a narrow sense refers to a value transfer issued by a user to the blockchain; for example, in the traditional Bitcoin blockchain network, a transaction can be a transfer initiated by a user in the blockchain. In a broad sense, a transaction refers to a piece of business data with business intentions issued by the user to the blockchain; for example, the transaction generated by the third-party payment service node device described in the above-mentioned embodiments of this specification is used for the above-mentioned user's The third-party payment use information for depositing evidence can be regarded as a transaction; the above-mentioned third-party payment service node device can organize the above-mentioned third-party payment use information according to the preset data content generation rules and transaction data format, so as to convert it into a transaction ——that is, the first certificate deposit transaction. There are many specific ways to generate the first deposit transaction based on the third-party payment usage information. For example, the user's third-party payment usage information can be directly organized into the first deposit transaction according to the preset transaction data format, so as to facilitate Any node device on the blockchain obtains the information content of the third-party payment usage information of the above-mentioned users. As another example, since the user's third-party payment usage information usually involves the user's account information, fund flow information and other private information, in order to protect the security of the user's information, the above-mentioned user's third-party payment usage information can be based on the default After the encryption rules are encrypted, the above-mentioned first deposit transaction will be generated. The aforementioned preset encryption rules can be set in various ways, such as symmetric encryption or asymmetric encryption, which are not limited in this specification. Mathematically hashing the original data to generate a hash summary (or hash fingerprint) of the original data is a commonly used means of storing evidence in the field, through which the hash summary can basically uniquely point to the original data information ; and the data space occupied by the hash summary has the advantage of occupying less space than the original data, especially the original data with a large amount of data. In view of the above technical basis, the first certificate deposit transaction described in this embodiment may also include the hash summary of the above-mentioned third-party payment usage information; by storing the hash summary of the third-party payment usage information in the decentralized data In the library, when obtaining evidence, it can be verified whether the above-mentioned third-party payment usage information corresponds to the stored hash summary. If so, it proves that the above-mentioned third-party payment usage information is the original information, has not been tampered with, and has legal validity as evidence. sex. Step 106: Send the first certificate deposit transaction to the decentralized database of the blockchain, so that the first certificate deposit transaction is included in the area after being verified by the consensus of the node devices of the blockchain A decentralized repository of blockchains. The detailed process of uploading the first certificate deposit transaction to the distributed database of the blockchain described in this embodiment can be specifically set according to the consensus mechanism and transaction rules of the blockchain. In an illustrated embodiment, uploading the first certificate deposit transaction to the decentralized database of the block chain includes: a node device with accounting authority in the block chain uploads the first The deposit transaction is added to the candidate block; the consensus accounting node equipment that satisfies the blockchain consensus mechanism is determined from the node equipment with accounting authority; the consensus accounting node broadcasts the node equipment of the blockchain The candidate block; After the candidate block is verified and approved by the node device that meets the preset number of nodes in the block chain, the candidate block is regarded as the latest block and added to the distributed block of the block chain in the database. In the above embodiments, the node device with accounting authority refers to the node device with the authority to generate candidate blocks. According to the consensus mechanism of the block chain, the consensus accounting node equipment can be determined from the node equipment with accounting authority in the candidate block, and the above consensus mechanism can include a proof of work mechanism (PoW) or a proof of rights 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 often used to confirm the consensus accounting node equipment in the public blockchain. In yet another illustrated embodiment, in order to reduce the confirmation time of transactions or data, improve transaction throughput, and meet the requirements for security and performance, the embodiments provided in this specification can also choose the alliance chain architecture to construct the block chain. The above-mentioned third-party payment service node equipment, or institutions that supervise financial services, judicial agencies, etc., can be used as pre-selected alliance member node equipment of the alliance chain to participate in block accounting. The consensus process of the consortium chain is also controlled by the pre-selected node devices. When more than a set ratio (such as 2/3) of node devices on the network confirms 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. When implementing, before each round of consensus in the blockchain starts, a master node device can be elected among each node device in the blockchain, that is, the consensus accounting node described in the above-mentioned embodiments (for example, each round of consensus A master node device is re-elected, and other node devices are used as slave node devices), and the master node device further initiates transaction verification and consensus, and is responsible for creating the latest transaction data (or target data) for the blockchain based on the consensus. block. As a preferred implementation of the consensus algorithm of the consortium chain provided in this specification, the PBFT algorithm is due to the high consensus efficiency of this algorithm, which can meet the needs of high-frequency trading volume. For example, in this embodiment, the first The first deposit transaction generated by the third-party payment service agency based on the frequent use of third-party payment by the user; and the consensus delay is very low, which basically meets the requirements of real-time processing, and can quickly and real-time in the new block of the blockchain The above-mentioned first deposit transaction is included in the above; moreover, the trusted node in the alliance chain network is used as the pre-selected accounting node, which takes into account both security and stability; in addition, the use of PBFT algorithm will not consume too much computer computing power resources, It does not necessarily require token circulation, so it has good usability. Based on the certificate storage method provided in this embodiment, based on the distributed database storage mechanism of blockchain technology, the first certificate deposit transaction generated based on the user's third-party payment usage information is recorded in multiple blocks in a decentralized manner Among the chain nodes, the blockchain nodes are jointly maintained and synchronized in real time, and all records can be traced back; moreover, based on the consensus mechanism of the blockchain, the first deposit transaction provided by the third-party payment service node device will not be tampering, thereby ensuring the authenticity and security of the stored evidence data, and providing an effective data basis for the investigation and evidence collection or other applications of the user's third-party payment usage behavior based on the first evidence-based transaction; When a third-party payment account is used to conduct black and gray transactions, any node device on the blockchain (including third-party payment service node devices, or node devices of judicial institutions) can directly obtain the above-mentioned first deposit certificate from the blockchain. Transactions are based on the anti-tampering mechanism of the blockchain for evidence collection, thereby reducing the litigation costs of third-party payment service agencies when dealing with users' black and gray transactions. In yet another illustrated embodiment, in order to further strengthen the supervision of third-party payment service users and improve the comprehensiveness of evidence collection for users' use of third-party payment services, the evidence storage method provided in this manual may also include: : Obtain the user registration information of the third-party payment account, the user registration information includes the user's identification information; generate a second deposit transaction based on the registration information; send the second deposit transaction to The distributed database of the block chain, so that the second deposit transaction is recorded in the distributed database of the block chain after being verified by the consensus of the node devices of the block chain. Similarly, the above-mentioned user registration information can be obtained from the user's third-party payment service client, or from other servers or terminal devices of the third-party payment service institution, etc., which are not limited in this specification. The identification information of the above-mentioned users may include the identity card information of the individual user, or the business license information of the enterprise user, and may also include the biological identification information of the individual user, or the biological identification of the responsible person of the enterprise user information and so on. The user's third-party payment service client can obtain the user's face information, or fingerprint information, or voiceprint information and other biological identification information through various collection methods, or can obtain the user's biological identification information by scanning the card or manually entering The user's certificate information, etc., and send the collected above information to the server or terminal device of the above-mentioned third-party payment service agency. Since the user's identification information is usually private information, if the plain text of the user's identification information is directly backed up in the distributed database of the blockchain for storage, other node devices can obtain the above identification information Clear text, which may bring security risks of identity information leakage. Therefore, similar to the first deposit transaction, the second deposit transaction described in the above embodiments may include the original text of the above user registration information, or the encrypted ciphertext of the above user registration information, or the hash of the above user registration information. One or more types of abstracts and other information. Encrypting the identification information or converting the identification information into a hash summary can not only store the original text of the above identification information, but also prevent information leakage. The specific process of recording the second certificate-deposit transaction into the distributed database of the blockchain described in the above-mentioned embodiment may be similar to the above-mentioned process of recording the first certificate-deposit transaction into the distributed database of the blockchain , which will not be repeated here. Those skilled in the art should know that when a user uses a third-party payment service, sometimes the transfer of funds between the third-party payment account and the external financial account is involved. Investigate evidence and establish a complete chain of evidence. The above-mentioned blockchain also includes node devices of associated financial institutions. The associated financial institutions refer to financial institutions that have a fund circulation relationship with the above-mentioned third-party payment service agencies, which may include various banking institutions; Moreover, the decentralized database of the block chain also includes the third deposit transaction sent by the node device of the associated financial institution, and the third deposit transaction is used to provide information on the fund flow of the third-party payment account. Evidence, for example, the third depository transaction can be the account change information of the user in the affiliated financial institution, which is included in the third-party payment usage information of the above-mentioned user, based on the fund flow information of the third-party payment account to provide to account notification, or fund transfer notification, etc. The specific process of recording the third certificate-deposit transaction into the distributed database of the blockchain described in the above-mentioned embodiment may be similar to the above-mentioned process of recording the first certificate-deposit transaction into the distributed database of the blockchain , which will not be repeated here. It is worth noting that when the above-mentioned blockchain is an alliance chain; the above-mentioned third-party payment service node equipment and the above-mentioned associated financial institution node equipment can all be alliance member node equipment of the alliance chain, and participate in the construction of the above-mentioned alliance chain; It can be used as the pre-selected node device of the alliance chain to participate in the consensus accounting of the first deposit transaction, the second deposit transaction, or the third deposit transaction. Corresponding to the realization of the above process, the embodiment of this specification also provides a certificate storage device 20 based on 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 device in the logical sense, it is formed by reading the corresponding computer program instructions into the internal memory through the CPU (Central Process Unit, central processing unit) of the device to run. From the perspective of hardware, in addition to the CPU, internal memory, and memory shown in Figure 3, the equipment where the network risk business implementation device is located usually includes other hardware such as chips for wireless signal transmission and reception. And/or boards and other hardware used to realize network communication functions. As shown in FIG. 2, this specification also provides a block chain-based certificate storage device 20, which is applied to a block chain system including a third-party payment service node device; the device 20 includes: an acquisition unit 202, which is used to obtain The third-party payment usage information of the user, the third-party payment usage information includes the third-party payment account information of the user and the fund flow information based on the third-party payment account; the generating unit 204 is configured to Paying for usage information, generating a first deposit transaction; sending unit 206, configured to send the first deposit transaction to the decentralized database of the block chain, so that the first deposit transaction is included in the block After the consensus verification of the node equipment of the chain, it is included in the decentralized database of the blockchain. In yet another illustrated embodiment, the acquiring unit 202 is further configured to acquire user registration information of the third-party payment account, the user registration information including user identification information; the generating unit 204, further configured to generate a second certificate deposit transaction based on the registration information; the sending unit 206, further configured to send the second certificate deposit transaction to a distributed database of the block chain, so that the first After the second deposit transaction is verified by the consensus of the node devices of the blockchain, it is included in the distributed database of the blockchain. In yet another illustrated embodiment, the block chain also includes a node device associated with an associated financial institution; the distributed database of the block chain also includes the third deposit certificate sent by the node device associated transaction, the third deposit transaction is used to provide evidence for the fund flow information of the third-party payment account. In yet another illustrated embodiment, the first deposit transaction includes a hash digest of the third-party payment usage information. In yet another illustrated embodiment, the second deposit transaction includes a hash digest of the user registration information. In yet another illustrated embodiment, the block chain is a consortium chain; the third-party payment service node device and the associated financial institution node device are consortium member node devices of the consortium chain. For the implementation process of the functions and effects of each unit in the above-mentioned device 20, refer to the implementation process of the corresponding steps in the above-mentioned method for details. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical modules, that is, they may Located in one place, or can be distributed to multiple network modules. Part or all of the units or modules can be selected according to actual needs to achieve the purpose of the solution in this specification. It can be understood and implemented by those skilled in the art without progressive effort. The devices, units, and modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer, which can be in the form of a personal computer, a laptop, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an e-mail device, a game, etc. Consoles, tablets, wearables, or a combination of any of these. Corresponding to the above method embodiments, the embodiments of this specification also provide a computer device, as shown in FIG. 3 , the computer device includes a memory and a processor. Among them, 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 the blockchain-based certificate storage method performed by the third-party payment service node device in the embodiment of this specification. various steps. For a detailed description of the various steps of the blockchain-based certificate deposit method performed by the above-mentioned third-party payment service node device, please refer to the previous content, and will not be repeated. Corresponding to the above-mentioned method embodiments, the embodiments of this specification also provide a computer-readable storage medium, on which computer programs are stored. When these computer programs are run by a processor, the third-party Each step of the blockchain-based certificate deposit method performed by the payment service node device. For a detailed description of the various steps of the blockchain-based certificate deposit method performed by the above-mentioned third-party payment service node device, please refer to the previous content, and will not be repeated. The above descriptions are only preferred embodiments of this specification, and are not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification shall be included in this specification. within the scope of protection. In a typical configuration, a computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and internal memory. Internal memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile internal memory in the form of read-only memory (ROM) or flash memory (flash RAM). Internal memory is an example of a computer readable medium. Computer-readable media includes both permanent and non-permanent, removable and non-removable media and can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for computers include, but are not limited to, phase change internal memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM ), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other internal memory technologies, compact disc read-only memory (CD-ROM), digital multi A compact disc (DVD) or other optical storage, magnetic tape cartridge, magnetic tape storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by computer equipment. As defined herein, computer readable media does not include transitory computer readable media, such as modulated data signals and carrier waves. It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element. Those skilled in the art should understand that the embodiments of this specification may be provided as methods, systems or computer program products. Accordingly, the embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present specification may employ a computer program embodied on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) having computer-usable program code embodied therein. The form of the product.

102:步驟 104:步驟 106:步驟 20:裝置 202:獲取單元 204:產生單元 206:發送單元102: Step 104: Step 106: Step 20: Device 202: Get unit 204: generating unit 206: sending unit

圖1為本說明書所提供的一實施例所示的基於區塊鏈的存證方法的流程示意圖;圖2為本說明書所提供的一實施例提供的基於區塊鏈的存證裝置的示意圖;圖3為運行本說明書所提供的基於區塊鏈的存證裝置實施例的一種硬體結構圖。 Fig. 1 is a schematic flow diagram of a blockchain-based certificate storage method shown in an embodiment provided in this specification; Fig. 2 is a schematic diagram of a blockchain-based certificate storage device provided in an embodiment provided in this specification; Fig. 3 is a hardware structure diagram for running the embodiment of the blockchain-based certificate storage device provided in this specification.

Claims (14)

一種基於區塊鏈的存證方法,應用於包括第三方支付服務節點設備的區塊鏈系統;所述方法包括:所述第三方支付服務節點設備獲取使用者的第三方支付使用資訊,所述第三方支付使用資訊包括所述使用者的第三方支付帳戶資訊和基於所述第三方支付帳戶的資金流轉資訊;基於所述第三方支付使用資訊按照預設的資料內容產生規則和交易資料格式整理並進行加密,產生第一存證交易;將所述第一存證交易加入到透過所述區塊鏈符合預設數量的節點設備的驗證認可的候選區塊及發送到所述區塊鏈的分散式資料庫,以使所述第一存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫;其中,所述區塊鏈是以聯盟鏈架構來構建;其中,所述共識驗證是透過所述區塊鏈中超過設定比例的節點設備確認以得到全網確認。 A blockchain-based certificate deposit method, applied to a blockchain system including a third-party payment service node device; the method includes: the third-party payment service node device obtains the user's third-party payment usage information, the Third-party payment usage information includes the user's third-party payment account information and fund flow information based on the third-party payment account; based on the third-party payment usage information, it is organized according to the default data content generation rules and transaction data format and encrypt to generate the first certificate deposit transaction; add the first certificate deposit transaction to the candidate block approved by the node device that meets the preset number of nodes through the blockchain and send to the blockchain A distributed database, so that the first deposit transaction is recorded in the distributed database of the blockchain after being verified by the consensus of the node devices of the blockchain; wherein, the blockchain is based on Consortium chain architecture; wherein, the consensus verification is confirmed by the node devices exceeding the set ratio in the blockchain to obtain the confirmation of the entire network. 根據請求項1所述的方法,還包括:獲取所述第三方支付帳戶的使用者註冊資訊,所述使用者註冊資訊包括使用者的身份識別資訊;基於所述註冊資訊產生第二存證交易; 將所述第二存證交易發送到區塊鏈的分散式資料庫,以使所述第二存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 According to the method described in claim 1, further comprising: acquiring user registration information of the third-party payment account, the user registration information including user identification information; generating a second certificate deposit transaction based on the registration information ; Sending the second certificate deposit transaction to the decentralized database of the block chain, so that the second certificate deposit transaction is included in the block chain after being verified by the node device consensus of the block chain Distributed database. 根據請求項1或2所述的方法,所述區塊鏈還包括與關聯金融機構節點設備;所述區塊鏈的分散式資料庫還收錄有所述關聯金融機構節點設備發送的第三存證交易,所述第三存證交易用以為所述第三方支付帳戶的資金流轉資訊提供憑證。 According to the method described in claim 1 or 2, the block chain also includes a node device associated with the financial institution; the distributed database of the block chain also includes the third storage sent by the node device associated A certificate transaction, the third certificate deposit transaction is used to provide certificates for the fund flow information of the third-party payment account. 根據請求項1所述的方法,所述第一存證交易包括所述第三方支付使用資訊的雜湊摘要。 According to the method described in claim 1, the first certificate deposit transaction includes a hash summary of the third-party payment usage information. 根據請求項2所述的方法,所述第二存證交易包括所述使用者註冊資訊的雜湊摘要。 According to the method described in claim 2, the second certificate deposit transaction includes a hash summary of the user registration information. 根據請求項3所述的方法,所述區塊鏈為聯盟鏈;所述第三方支付服務節點設備、和所述關聯金融機構節點設備為所述聯盟鏈的聯盟成員節點設備。 According to the method described in claim 3, the blockchain is a consortium chain; the third-party payment service node device and the associated financial institution node device are consortium member node devices of the consortium chain. 一種基於區塊鏈的存證裝置,應用於包括第三方支付服務節點設備的區塊鏈系統;所述裝置包括:獲取單元,用於獲取使用者的第三方支付使用資訊,所述第三方支付使用資訊包括所述使用者的第三方支付帳 戶資訊和基於所述第三方支付帳戶的資金流轉資訊;產生單元,用於基於所述第三方支付使用資訊按照預設的資料內容產生規則和交易資料格式整理並進行加密,產生第一存證交易;發送單元,用於將所述第一存證交易加入到透過所述區塊鏈符合預設數量的節點設備的驗證認可的候選區塊及發送到區塊鏈的分散式資料庫,以使所述第一存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫;其中,所述區塊鏈是以聯盟鏈架構來構建;其中,所述共識驗證是透過所述區塊鏈中超過設定比例的節點設備確認以得到全網確認。 A block chain-based evidence storage device, applied to a block chain system including a third-party payment service node device; Usage information includes third-party payment account of said user Account information and fund flow information based on the third-party payment account; a generation unit, configured to organize and encrypt based on the third-party payment usage information according to the preset data content generation rules and transaction data format, and generate the first deposit certificate transaction; a sending unit, used to add the first certificate deposit transaction to a candidate block approved by the verification of the node device that meets the preset number of nodes through the blockchain and send it to the decentralized database of the blockchain, so as to After the first deposit transaction is verified by the node device consensus of the block chain, it is included in the distributed database of the block chain; wherein, the block chain is constructed with a consortium chain architecture; Wherein, the consensus verification is confirmed by the node devices exceeding the set ratio in the block chain to obtain the confirmation of the whole network. 根據請求項7所述的裝置,所述獲取單元,進一步用於獲取所述第三方支付帳戶的使用者註冊資訊,所述使用者註冊資訊包括使用者的身份識別資訊;所述產生單元,進一步用於基於所述註冊資訊產生第二存證交易;所述發送單元,進一步用於將所述第二存證交易發送到區塊鏈的分散式資料庫,以使所述第二存證交易被所述區塊鏈的節點設備共識驗證後,被收錄於所述區塊鏈的分散式資料庫。 According to the device described in claim 7, the acquisition unit is further configured to acquire user registration information of the third-party payment account, the user registration information includes user identification information; the generation unit is further It is used to generate a second certificate deposit transaction based on the registration information; the sending unit is further used to send the second certificate deposit transaction to the distributed database of the block chain, so that the second certificate deposit transaction After being verified by the node device consensus of the block chain, it is included in the distributed database of the block chain. 根據請求項7或8所述的裝置,所述區塊鏈還包括與關聯金融機構節點設備;所述區塊鏈的分散式資料庫還收錄有所述關聯金融機構節點設備發送的第三存證交易,所述第三存證交易用以為所述第三方支付帳戶的資金流轉資訊提供憑證。 According to the device described in claim 7 or 8, the block chain also includes a node device associated with the financial institution; the distributed database of the block chain also contains the third storage sent by the node device associated financial institution A certificate transaction, the third certificate deposit transaction is used to provide certificates for the fund flow information of the third-party payment account. 根據請求項7所述的裝置,所述第一存證交易包括所述第三方支付使用資訊的雜湊摘要。 According to the device described in claim 7, the first certificate deposit transaction includes a hash summary of the third-party payment usage information. 根據請求項8所述的裝置,所述第二存證交易包括所述使用者註冊資訊的雜湊摘要。 According to the device described in claim 8, the second deposit transaction includes a hash digest of the user registration information. 根據請求項9所述的裝置,所述區塊鏈為聯盟鏈;所述第三方支付服務節點設備、和所述關聯金融機構節點設備為所述聯盟鏈的聯盟成員節點設備。 According to the device described in claim 9, the blockchain is a consortium chain; the third-party payment service node device and the associated financial institution node device are consortium member node devices of the consortium chain. 一種電腦設備,包括:記憶體和處理器;所述記憶體上儲存有可由所述處理器運行的電腦程式;所述處理器運行所述電腦程式時,執行如請求項1到6任意一項所述的方法。 A computer device, comprising: 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 any one of the requirements 1 to 6 the method described. 一種電腦可讀儲存媒體,其上儲存有電腦程式,所述電腦程式被處理器運行時,執行如請求項1到6任意一項所述的方法。 A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of claims 1 to 6 is executed.
TW108130769A 2019-01-16 2019-08-28 Blockchain-based certificate storage method and device TWI779231B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910041267.8 2019-01-16
CN201910041267.8A CN110009340A (en) 2019-01-16 2019-01-16 Card method and apparatus are deposited based on block chain

Publications (2)

Publication Number Publication Date
TW202029086A TW202029086A (en) 2020-08-01
TWI779231B true TWI779231B (en) 2022-10-01

Family

ID=67165442

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108130769A TWI779231B (en) 2019-01-16 2019-08-28 Blockchain-based certificate storage method and device

Country Status (3)

Country Link
CN (1) CN110009340A (en)
TW (1) TWI779231B (en)
WO (1) WO2020147568A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009340A (en) * 2019-01-16 2019-07-12 阿里巴巴集团控股有限公司 Card method and apparatus are deposited based on block chain
CN110363513A (en) * 2019-07-15 2019-10-22 湖南智慧政务区块链科技有限公司 Payment unions method and apparatus based on block chain
CN111768180B (en) * 2020-06-24 2022-05-24 江苏荣泽信息科技股份有限公司 Block chain account balance deposit certificate and recovery method
CN112039972B (en) * 2020-08-26 2023-10-27 蚂蚁胜信(上海)信息技术有限公司 Service processing method, device and equipment
CN112488715A (en) * 2020-12-17 2021-03-12 欧冶链金再生资源有限公司 Block chain storage method in scrap steel industry
CN114726912A (en) * 2020-12-19 2022-07-08 北京万集科技股份有限公司 Data processing method and device and electronic equipment
CN112950415B (en) * 2021-03-11 2024-01-16 全链通有限公司 Judicial evidence fixing method, platform and system based on blockchain
CN112988901A (en) * 2021-04-06 2021-06-18 湖北央中巨石信息技术有限公司 Evidence-storing data chaining method based on block chain
CN116957579A (en) * 2021-04-27 2023-10-27 支付宝(杭州)信息技术有限公司 Data storage method and device based on blockchain
CN113298507B (en) * 2021-06-15 2023-08-22 英华达(上海)科技有限公司 Payment verification method, system, electronic device and storage medium
CN114781004B (en) * 2022-06-15 2022-09-30 恒生电子股份有限公司 Block chain-based data evidence storage method and device, electronic equipment and storage medium
CN117171720B (en) * 2023-08-17 2024-03-22 哈尔滨工业大学 Data attribution right identification system and method based on behavior fingerprint

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103632274A (en) * 2013-11-08 2014-03-12 青岛中科英泰商用系统有限公司 Loss prevention method with customer transaction prompt and video monitoring for supermarket self-service clearing
CN108288222A (en) * 2018-03-05 2018-07-17 数字乾元科技有限公司 Property tax processing system and method based on block chain
CN108920965A (en) * 2018-06-25 2018-11-30 北京奇虎科技有限公司 A kind of block chain deposits card method and device
CN109165957A (en) * 2018-08-14 2019-01-08 海南高灯科技有限公司 Invoice data method of charging out, system and relevant device based on block chain

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10762479B2 (en) * 2017-04-05 2020-09-01 Samsung Sds Co., Ltd. Method and system for processing blockchain-based real-time transaction
CN107944868A (en) * 2017-12-07 2018-04-20 杭州趣链科技有限公司 A kind of electronics deposit system and management method based on block chain intelligence contract
CN109064120A (en) * 2018-07-10 2018-12-21 马上游科技股份有限公司 Tourism electric contract number deposit system based on region chain and deposit card method
CN109002732B (en) * 2018-07-17 2022-04-26 深圳前海微众银行股份有限公司 Data evidence storage method, equipment and system and data evidence obtaining method
CN110032882A (en) * 2018-12-29 2019-07-19 阿里巴巴集团控股有限公司 Card method and apparatus are deposited based on block chain
CN110009340A (en) * 2019-01-16 2019-07-12 阿里巴巴集团控股有限公司 Card method and apparatus are deposited based on block chain
CN109947848A (en) * 2019-01-30 2019-06-28 阿里巴巴集团控股有限公司 Card method and apparatus are deposited based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103632274A (en) * 2013-11-08 2014-03-12 青岛中科英泰商用系统有限公司 Loss prevention method with customer transaction prompt and video monitoring for supermarket self-service clearing
CN108288222A (en) * 2018-03-05 2018-07-17 数字乾元科技有限公司 Property tax processing system and method based on block chain
CN108920965A (en) * 2018-06-25 2018-11-30 北京奇虎科技有限公司 A kind of block chain deposits card method and device
CN109165957A (en) * 2018-08-14 2019-01-08 海南高灯科技有限公司 Invoice data method of charging out, system and relevant device based on block chain

Also Published As

Publication number Publication date
TW202029086A (en) 2020-08-01
WO2020147568A1 (en) 2020-07-23
CN110009340A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
TWI779231B (en) Blockchain-based certificate storage method and device
WO2020155789A1 (en) Blockchain-based certificate storage method and apparatus
EP3877936B1 (en) Digital fiat currency
TWI694350B (en) Information supervision method and device based on blockchain
TWI773912B (en) Blockchain-based claims settlement method and device
TWI798483B (en) Method and device for generating blockchain transactions
CN107180350B (en) Method, device and system for multi-party sharing transaction metadata based on block chain
CN110363527B (en) Block chain-based evidence storage and supervision method and device
CN110009337B (en) Data processing method and device based on block chain
WO2020103566A1 (en) Blockchain certificate storage method and apparatus, and computer device
WO2020220759A1 (en) Block chain-based payment method and device
CN110020543B (en) Data processing method and device based on block chain
EP3933642A1 (en) Managing transactions in multiple blockchain networks
TW202026926A (en) Blockchain-based recordkeeping method and apparatus
WO2020134631A1 (en) Block chain-based data processing method and apparatus
CN113595734B (en) Methods, systems, and apparatus for managing transactions in a plurality of blockchain networks
US20200175588A1 (en) Blockchain-based payment
US11599858B2 (en) Blockchain settlement network
EP3933641A1 (en) Managing transactions in multiple blockchain networks

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent