TW202016853A - Data storage and acquisition method and device based on block chain - Google Patents

Data storage and acquisition method and device based on block chain Download PDF

Info

Publication number
TW202016853A
TW202016853A TW108109774A TW108109774A TW202016853A TW 202016853 A TW202016853 A TW 202016853A TW 108109774 A TW108109774 A TW 108109774A TW 108109774 A TW108109774 A TW 108109774A TW 202016853 A TW202016853 A TW 202016853A
Authority
TW
Taiwan
Prior art keywords
smart contract
target
data
identification
target event
Prior art date
Application number
TW108109774A
Other languages
Chinese (zh)
Other versions
TWI706360B (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 TW202016853A publication Critical patent/TW202016853A/en
Application granted granted Critical
Publication of TWI706360B publication Critical patent/TWI706360B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • 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/405Establishing or using transaction specific rules
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic 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/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

One or more embodiments of the present specification provide a data storage and acquisition method and device based on a block chain. The method and apparatus are applied to a block chain comprising a storage party node device and an acquisition party node device. Wherein an intelligent contract for data storage and reading is deployed on the block chain; the event evidence storage method based on the block chain comprises the following steps: the evidence storage party node equipment sends a first target transaction to the block chain, wherein the first target transaction comprises target event data to be stored; calling the smart contract, executing data storage logic declared by the smart contract, and storing the target event data to the smart contract; and generating a storage identification image at least based on the identification of the smart contract.

Description

基於區塊鏈的資料存證、取證方法和裝置Blockchain-based data storage and evidence collection method and device

本發明涉及資料處理技術領域,尤其涉及一種基於區塊鏈的資料存證、取證方法和裝置。The invention relates to the technical field of data processing, and in particular to a method and device for data storage and evidence collection based on a blockchain.

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

針對以上提出的區塊鏈資料處理流程的現狀,本發明提供了一種基於區塊鏈的事件存證方法,應用於包括存證方節點設備的區塊鏈中;所述區塊鏈上部署有用於資料儲存和讀取的智慧型合約;所述方法包括: 所述存證方節點設備向所述區塊鏈發送第一目標交易,所述第一目標交易包括待儲存的目標事件資料; 呼叫所述智慧型合約,執行所述智慧型合約聲明的資料儲存邏輯,儲存所述目標事件資料至所述智慧型合約; 至少基於所述智慧型合約的標識產生存證標識圖像。 在又一示出的實施方式中,所述目標資料還包括目標事件相關方所作的數位簽章,以供取證方節點設備基於所述數位簽章對所述目標事件資料進行驗證; 所述至少基於所述智慧型合約的標識產生存證標識圖像,包括: 至少基於所述智慧型合約的標識和所述目標事件相關方的身份名稱產生存證標識圖像。 在又一示出的實施方式中,所述至少基於所述智慧型合約的標識產生存證標識圖像,包括: 根據預設的編碼規則至少對所述智慧型合約的標識進行編碼以產生存證數位編碼; 根據預設的編碼與色彩的映射關係和預設的色塊產生順序,將所述存證數位編碼依次產生具有預設樣式的色塊。 在又一示出的實施方式中,所述的方法還包括: 接收所述智慧型合約為所述目標事件資料分配的映射碼; 所述至少基於所述智慧型合約的標識產生存證標識圖像,包括: 至少基於所述智慧型合約的標識和所述映射碼產生存證標識圖像。 在又一示出的實施方式中,所述的方法還包括: 向所述區塊鏈發送目標用戶的資料取證許可權交易,所述資料取證許可權交易用以設置所述目標用戶對所述目標事件資料的取證許可權; 呼叫所述智慧型合約,執行所述智慧型合約聲明的設置用戶的資料取證許可權的邏輯,為所述目標用戶設置取證所述目標事件資料的許可權。 在又一示出的實施方式中,所述的方法還包括: 接收所述智慧型合約發送的取證方節點設備取證所述目標資料的通知消息。 本發明還提供了一種基於區塊鏈的事件取證方法,應用於包括存證方節點設備和取證方節點設備的區塊鏈中;所述區塊鏈上部署有已儲存目標事件資料的智慧型合約;所述方法包括: 所述取證方節點設備識別所述存證方節點設備提供的存證標識圖像,以至少取證所述智慧型合約的標識;其中,所述存證標識圖像至少基於所述智慧型合約的標識產生; 向所述區塊鏈發送第二目標交易,所述第二目標交易包括所述智慧型合約的標識; 呼叫所述智慧型合約,執行所述智慧型合約聲明的資料取證邏輯,取證所述目標事件資料。 在又一示出的實施方式中,所述目標事件資料還包括目標事件相關方所作的數位簽章; 所述方法還包括: 基於所述數位簽章對所述目標資料進行驗證。 在又一示出的實施方式中,所述識別所述存證標識圖像以至少取證所述智慧型合約的標識,包括: 根據預設的色塊產生順序和預設的數位編碼與色彩的映射關係,將所述色塊的色彩依次轉化為存證數位編碼; 根據預設的解碼規則,對所述存證數位編碼進行解碼以至少取證所述智慧型合約的標識。 在又一示出的實施方式中,所述存證標識圖像至少基於所述智慧型合約的標識和所述智慧型合約為所述目標事件資料分配的映射碼產生; 所述識別所述存證標識圖像以至少取證所述智慧型合約的標識,包括:識別所述存證標識圖像以至少取證所述智慧型合約的標識和所述映射碼; 所述第二目標交易還包括所述映射碼。 在又一示出的實施方式中,所述智慧型合約為所述取證方設置有對所述目標事件資料的取證許可權;所述執行所述智慧型合約聲明的資料取證邏輯,取證所述目標事件資料,包括: 獲得所述取證方對所述目標事件資料的取證許可權; 基於所述取證方對所述目標資料的取證許可權,執行所述智慧型合約聲明的資料取證邏輯。 相應的,本發明還提供了一種基於區塊鏈的事件存證裝置,應用於包括存證方節點設備的區塊鏈中;所述區塊鏈上部署有用於資料儲存和讀取的智慧型合約;所述裝置包括: 發送單元,所述存證方節點設備向所述區塊鏈發送第一目標交易,所述第一目標交易包括待儲存的目標事件資料; 智慧型合約執行單元,呼叫所述智慧型合約,執行所述智慧型合約聲明的資料儲存邏輯,儲存所述目標事件資料至所述智慧型合約; 圖像產生單元,至少基於所述智慧型合約的標識產生存證標識圖像。 在又一示出的實施方式中,所述目標資料還包括目標事件相關方所作的數位簽章,以供取證方節點設備基於所述數位簽章對所述目標事件資料進行驗證; 所述圖像產生單元: 至少基於所述智慧型合約的標識和所述目標事件相關方的身份名稱產生存證標識圖像。 在又一示出的實施方式中,所述圖像產生單元: 根據預設的編碼規則至少對所述智慧型合約的標識進行編碼以產生存證數位編碼; 根據預設的編碼與色彩的映射關係和預設的色塊產生順序,將所述存證數位編碼依次產生具有預設樣式的色塊。 在又一示出的實施方式中,所述的裝置還包括: 接收單元,接收所述智慧型合約為所述目標事件資料分配的映射碼; 所述圖像產生單元: 至少基於所述智慧型合約的標識和所述映射碼產生存證標識圖像。 在又一示出的實施方式中,所述發送單元: 向所述區塊鏈發送目標用戶的資料取證許可權交易,所述資料取證許可權交易用以設置所述目標用戶對所述目標事件資料的取證許可權; 所述智慧型合約執行單元,呼叫所述智慧型合約,執行所述智慧型合約聲明的設置用戶的資料取證許可權的邏輯,為所述目標用戶設置取證所述目標事件資料的許可權。 在又一示出的實施方式中,所述的裝置還包括接收單元:接收所述智慧型合約發送的取證方節點設備取證所述目標資料的通知消息。 相應的,本發明還提供了一種基於區塊鏈的事件取證裝置,應用於包括存證方節點設備和取證方節點設備的區塊鏈中;所述區塊鏈上部署有已儲存目標事件資料的智慧型合約;所述裝置包括: 圖像識別單元,所述存證方節點設備識別所述存證方節點設備提供的存證標識圖像,以至少取證所述智慧型合約的標識;其中,所述存證標識圖像至少基於所述智慧型合約的標識產生; 發送單元,向所述區塊鏈發送第二目標交易,所述第二目標交易包括所述智慧型合約的標識; 智慧型合約執行單元,呼叫所述智慧型合約,執行所述智慧型合約聲明的資料取證邏輯,取證所述目標事件資料。 在又一示出的實施方式中,所述目標事件資料還包括目標事件相關方所作的數位簽章; 所述裝置還包括: 資料驗證單元,基於所述數位簽章對所述目標資料進行驗證。 在又一示出的實施方式中,所述圖像識別單元: 根據預設的色塊產生順序和預設的數位編碼與色彩的映射關係,將所述色塊的色彩依次轉化為存證數位編碼; 根據預設的解碼規則,對所述存證數位編碼進行解碼以至少取證所述智慧型合約的標識。 在又一示出的實施方式中,所述存證標識圖像至少基於所述智慧型合約的標識和所述智慧型合約為所述目標事件資料分配的映射碼產生; 所述圖像識別單元:識別所述存證標識圖像以至少取證所述智慧型合約的標識和所述映射碼; 所述第二目標交易還包括所述映射碼。 在又一示出的實施方式中,所述智慧型合約為所述取證方設置有對所述目標事件資料的取證許可權;所述智慧型合約執行單元: 獲得所述取證方對所述目標事件資料的取證許可權; 基於所述取證方對所述目標資料的取證許可權,執行所述智慧型合約聲明的資料取證邏輯。 本發明還提供了一種電腦設備,包括:記憶體和處理器;所述記憶體上儲存有可由處理器運行的電腦程式;所述處理器運行所述電腦程式時,執行上述基於區塊鏈的事件存證方法所述的步驟。 本發明還提供了一種電腦設備,包括:記憶體和處理器;所述記憶體上儲存有可由處理器運行的電腦程式;所述處理器運行所述電腦程式時,執行上述基於區塊鏈的事件取證方法所述的步驟。 本發明提供的基於區塊鏈的資料存證、取證方法和裝置,在所述區塊鏈上部署有用於資料儲存和讀取的智慧型合約,該智慧型合約可應用戶的呼叫而執行對資料的儲存或讀取。基於區塊鏈技術的分散式資料庫儲存機制,存證方用戶在所述智慧型合約內儲存的目標資料被去中心化地記錄在所有節點中,由所有參與方的節點共同維護;基於區塊鏈的共識機制,每個存證方用戶提供的資料資訊不會在提供後被竄改,從而達到了存證目標資料的效果。存證方至少基於所述智慧型合約的標識產生存證標識圖像,以供取證方可通過圖像識別該存證標識圖像而取證上述智慧型合約的標識,進而呼叫該智慧型合約以取證上述目標資料。 智慧型合約可在任何時候應用戶的呼叫而完成對目標資料的存證或取證,大大提升對目標資料的存證或取證的效率;且智慧型合約執行有著較低的人為干預、去中心化權威的優勢,更加增加了資料存證及取證行為的公平性。In view of the current status of the blockchain data processing process proposed above, the present invention provides a blockchain-based event certificate storage method, which is applied to the blockchain including the node device of the depositor; the deployment on the blockchain is useful Smart contract for data storage and reading; the method includes: The depositor node device sends a first target transaction to the blockchain, where the first target transaction includes target event data to be stored; Calling the smart contract, executing the data storage logic declared by the smart contract, and storing the target event data in the smart contract; A certificate identification image is generated based at least on the identification of the smart contract. In yet another illustrated embodiment, the target data further includes a digital signature made by a target event related party, so that the forensic node device can verify the target event data based on the digital signature; The at least generating a certificate-storage logo image based on the logo of the smart contract includes: A certificate identification image is generated based at least on the identification of the smart contract and the identification name of the target event related party. In yet another illustrated embodiment, said generating a certificate-keeping logo image based at least on the logo of the smart contract includes: Encoding at least the identifier of the smart contract according to a preset encoding rule to generate a digital code for certificate deposit; According to the preset coding and color mapping relationship and the preset color block generation order, the stored digital code is sequentially generated to generate a color block with a preset pattern. In another embodiment shown, the method further includes: Receiving the mapping code assigned by the smart contract to the target event data; The at least generating a certificate-storage logo image based on the logo of the smart contract includes: A certificate identification image is generated based at least on the identification of the smart contract and the mapping code. In another embodiment shown, the method further includes: Sending the target user's data forensic permission transaction to the blockchain, the data forensic permission transaction used to set the target user's forensic permission for the target event data; Call the smart contract, execute the logic set by the smart contract to set the user's data forensics permission, and set the permission for the target user to forge the target event data. In another embodiment shown, the method further includes: Receiving a notification message sent by the smart contract for the forensic node device to obtain evidence of the target data. The invention also provides a blockchain-based event forensics method, which is applied to a blockchain including a depositor node device and a forensic node device; the blockchain is deployed with a smart type that has stored target event data Contract; the method includes: The forensic node device recognizes the certificate identification image provided by the certificate provider node device to at least prove the identification of the smart contract; wherein, the certificate identification image is based at least on the smart contract Logo generation; Sending a second target transaction to the blockchain, the second target transaction including the identifier of the smart contract; Call the smart contract, execute the data forensics logic declared by the smart contract, and obtain the target event data. In another embodiment shown, the target event data further includes digital signatures made by the target event related parties; The method also includes: Verify the target data based on the digital signature. In yet another illustrated embodiment, the identification of the certificate identification image to at least prove the identification of the smart contract includes: Converting the colors of the color blocks into digital codes for certificate registration according to the preset color block generation order and the mapping relationship between the preset digital codes and colors in sequence; According to a preset decoding rule, the digital code of the certificate is decoded to at least obtain the identification of the smart contract. In another embodiment shown, the certificate identification image is generated based at least on the identification of the smart contract and the mapping code allocated by the smart contract to the target event data; The identifying the identification image of the certificate to at least identify the identification of the smart contract includes: identifying the identification image of the certificate to at least identify the identification of the smart contract and the mapping code; The second target transaction also includes the mapping code. In yet another illustrated embodiment, the smart contract is provided with forensic permission for the target event data for the forensic party; the data forensics logic that executes the smart contract statement, forensics the Target event information, including: Obtain the forensic permission of the forensic party to the target event data; Based on the forensic permission of the forensic party to the target data, execute the data forensics logic declared by the smart contract. Correspondingly, the present invention also provides a blockchain-based event certificate storage device, which is applied to a blockchain including a node device of a depositor; the blockchain is deployed with a smart type for data storage and reading Contract; the device includes: A sending unit, the certificate depositor node device sends a first target transaction to the blockchain, the first target transaction includes target event data to be stored; The smart contract execution unit calls the smart contract, executes the data storage logic declared by the smart contract, and stores the target event data in the smart contract; The image generating unit generates a certificate-keeping logo image based at least on the logo of the smart contract. In yet another illustrated embodiment, the target data further includes a digital signature made by a target event related party, so that the forensic node device can verify the target event data based on the digital signature; The image generating unit: A certificate identification image is generated based at least on the identification of the smart contract and the identification name of the target event related party. In another embodiment shown, the image generating unit: Encoding at least the identifier of the smart contract according to a preset encoding rule to generate a digital code for certificate deposit; According to the preset coding and color mapping relationship and the preset color block generation order, the stored digital code is sequentially generated to generate a color block with a preset pattern. In another embodiment shown, the device further includes: The receiving unit receives the mapping code allocated by the smart contract to the target event data; The image generating unit: A certificate identification image is generated based at least on the identification of the smart contract and the mapping code. In another embodiment shown, the sending unit: Sending the target user's data forensic permission transaction to the blockchain, the data forensic permission transaction used to set the target user's forensic permission for the target event data; The smart contract execution unit calls the smart contract, executes the logic set by the smart contract to set the user's data forensics permission, and sets the permission for the target user to forge the target event data. In yet another illustrated embodiment, the apparatus further includes a receiving unit: receiving a notification message sent by the smart contract for the forensic node device to obtain the target data. Correspondingly, the present invention also provides a blockchain-based event forensics device, which is applied to a blockchain including a depositor node device and a forensic node device; the stored target event data is deployed on the blockchain Smart contract; the device includes: An image recognition unit, the certificate depositor node device recognizes the certificate deposit identification image provided by the certificate depositor node device to at least prove the identification of the smart contract; wherein, the certificate deposit identification image is based at least on The identification of the smart contract is generated; The sending unit sends a second target transaction to the blockchain, where the second target transaction includes the identifier of the smart contract; The smart contract execution unit calls the smart contract, executes the data forensics logic declared by the smart contract, and obtains the target event data. In another embodiment shown, the target event data further includes digital signatures made by the target event related parties; The device also includes: The data verification unit verifies the target data based on the digital signature. In another embodiment shown, the image recognition unit: Converting the colors of the color blocks into digital codes for certificate registration according to the preset color block generation order and the mapping relationship between the preset digital codes and colors in sequence; According to a preset decoding rule, the digital code of the certificate is decoded to at least obtain the identification of the smart contract. In yet another embodiment shown, the certificate identification image is generated based at least on the identification of the smart contract and the mapping code assigned by the smart contract to the target event data; The image recognition unit: recognize the certificate identification image to at least prove the identification of the smart contract and the mapping code; The second target transaction also includes the mapping code. In yet another illustrated embodiment, the smart contract is provided with forensic permission for the target event data for the forensic party; the smart contract execution unit: Obtain the forensic permission of the forensic party to the target event data; Based on the forensic permission of the forensic party to the target data, execute the data forensics logic declared by the smart contract. The invention also provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the above blockchain-based The steps described in the event certification method. The invention also provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the above blockchain-based The steps described in the event forensics method. The block chain-based data storage and forensics method and device provided by the present invention are deployed on the block chain with a smart contract for data storage and reading. The smart contract can execute Storage or reading of data. Based on the decentralized database storage mechanism of blockchain technology, the target data stored by the depository user in the smart contract is decentralized and recorded in all nodes, which are jointly maintained by the nodes of all participants; based on the area The consensus mechanism of the blockchain, the information provided by each user of the depositor will not be tampered with after being provided, thus achieving the effect of depositing the target data. The certificate depositor generates the certificate identification image at least based on the identification of the smart contract, so that the forensic party can identify the certificate identification image through the image to obtain the identification of the smart contract, and then call the smart contract to Obtain the above target information. The smart contract can complete the certification or forensics of the target data at any time in response to the user's call, which greatly improves the efficiency of the certification or forensics of the target data; and the implementation of the smart contract has low human intervention and decentralization The superiority of authority further increases the fairness of data storage and forensics.

這裡將詳細地對示例性實施例進行說明,其示例表示在圖式中。下面的描述涉及圖式時,除非另有表示,不同圖式中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本發明一個或多個實施例相一致的所有實施方式。相反,它們僅是與如所附申請專利範圍中所詳述的、本發明一個或多個實施例的一些方面相一致的裝置和方法的例子。 需要說明的是:在其他實施例中並不一定按照本發明示出和描述的順序來執行相應方法的步驟。在一些其他實施例中,其方法所包括的步驟可以比本發明所描述的更多或更少。此外,本發明中所描述的單個步驟,在其他實施例中可能被分解為多個步驟進行描述;而本發明中所描述的多個步驟,在其他實施例中也可能被合併為單個步驟進行描述。 如圖1所示,本發明一示意性實施例提供了一種基於區塊鏈的目標事件存證、及取證方法,應用於包括存證方節點設備和取證方節點設備的區塊鏈中,所述區塊鏈上部署有用於資料儲存和讀取的智慧型合約。 本實施例所述的區塊鏈,具體可指一個各節點設備通過共識機制達成的、具有分散式資料儲存結構的P2P網路系統,該區塊鏈內的資料分佈在時間上相連的一個個“區塊(block)”之內,後一區塊包含前一區塊的資料摘要,且根據具體的共識機制(如POW、POS、DPOS或PBFT等)的不同,達成全部或部分節點設備的資料全備份。本領域的技術人員熟知,由於區塊鏈系統在相應共識機制下運行,已收錄至區塊鏈資料庫內的資料很難被任意的節點設備竄改,例如採用Pow共識的區塊鏈,至少需要全網51%運算力的攻擊才有可能竄改已有資料,因此區塊鏈系統有著其他中心化資料庫系統所法比擬的保證資料安全、防攻擊竄改的特性。 另外,值得注意的是,本發明所述的節點設備,不僅可包括備份有區塊鏈的分散式資料庫的全量資料的全節點設備,還可包括備份有區塊鏈的分散式資料庫的部分資料的輕節點設備,以及其他的終端設備或用戶端,在本發明中不做限定。 區塊鏈上部署的智慧型合約,是被區塊鏈的節點設備共識驗證以保存至區塊鏈的分散式資料庫的可執行的電腦程式語言;區塊鏈上的任一節點設備均可接收區塊鏈的用戶對智慧型合約的呼叫,以執行該智慧型合約聲明的邏輯;上述執行結果經區塊鏈的節點設備共識驗證後也可被保存至區塊鏈的分散式資料庫。 在本實施例中,區塊鏈上部署有用以資料儲存和讀取的智慧型合約,用戶可通過向該智慧型合約的帳戶位址或其他標識發送交易,呼叫該智慧型合約的介面、及相應的函數,完成向所述智慧型合約內儲存資料或讀取所述智慧型合約內已儲存的資料的操作。 如圖1所示,本實施例所提供的基於區塊鏈的資料存證方法包括: 步驟102,所述存證方節點設備向所述區塊鏈發送第一目標交易,所述第一目標交易包括待儲存的目標事件資料。 在本發明中所描述的交易(transaction),是指用戶通過區塊鏈的節點設備創建,並需要最終發佈至區塊鏈的分散式資料庫中的一筆資料。其中,區塊鏈中的交易,存在狹義的交易以及廣義的交易之分。狹義的交易是指用戶向區塊鏈發佈的一筆價值轉移;例如,在傳統的比特幣區塊鏈網路中,交易可以是用戶在區塊鏈中發起的一筆轉帳。而廣義的交易是指用戶向區塊鏈發佈的一筆任意的數據。本實施例所述的第一目標交易,是包括待儲存的目標事件資料,上述目標事件資料可以包括描述全部或部分事件發生的過程的資料,或描述事件的特徵值的資料等,其可以具體表現為契約、通知書、說明書、業務概況、訂單等各種形式,在本發明中不做限定。為了防止區塊鏈中的其他節點獲知上述目標事件資料的原文,引起一些隱私資訊的洩露,可對上述目標事件資料加密,將上述包含目標事件資料密文的第一目標交易向區塊鏈發送。 本領域的技術人員容易知道,本實施例所述的存證方,可以是上述目標事件相關方或目標事件相關方之一,也可以不屬於上述目標事件相關方,而作為一個中立方或事件存證機構方,執行本發明實施例所述的事件存證方法。 在又一示出的實施例中,上述目標事件資料還包括所述目標事件相關方所作的數位簽章,例如契約的簽署方對契約正文所作的數位簽章,通知書發佈方對通知書正文所作的數位簽章,說明書撰寫方對說明書正文所作的數位簽章,訂單訂購方對訂單內容所作的數位簽章,電子郵件的發送方對電子郵件的正文內容所作的數位簽章等等。類似於實際業務中的簽名,上述的數位簽章可以表達為目標事件相關方對目標事件資料的認定,例如契約簽署方對電子契約所作的數位簽章等。 數位簽章是簽名者基於自身的私密金鑰對其認可的資料內容的數學摘要所進行的數學加密;通過驗證數位簽章,不僅可驗證簽名者的公開金鑰所對應的身份,還可通過將上述私密金鑰加密的數學摘要與現有的資料內容所得的數學摘要進行對比,驗證現有的資料內容是否與簽名者簽署的資料內容是否一致,從而獲知現有的資料內容是否被竄改過。因此在本實施例中,通過驗證上述數位簽章,通常可供該目標事件資料的取證方對目標事件資料的簽署方身份及目標事件資料的內容是否經竄改進行驗證。 在所述第一目標交易經過所述區塊鏈節點設備的共識驗證後,該第一目標交易即可被收錄至所述區塊鏈的分散式資料庫中;區塊鏈中的任一節點設備,包括存證方節點設備在內,均可接收所述存證方節點設備發送至所述區塊鏈的第一目標交易,以基於所述第一目標交易內的智慧型合約的位址,呼叫上述智慧型合約。 步驟104,呼叫所述智慧型合約,執行所述智慧型合約聲明的資料儲存邏輯,儲存所述目標事件資料至所述智慧型合約。 上述將目標事件資料儲存至所述智慧型合約的過程,也可被視為在上述區塊鏈的分散式資料庫內更新上述智慧型合約的過程。在一示出的實施例中,所述儲存所述目標事件資料至所述智慧型合約,包括: 所述區塊鏈中具有記帳許可權的節點將所述儲存有所述目標事件資料的智慧型合約代碼加入到候選區塊; 從所述具有記帳許可權的節點中確定滿足所述區塊鏈共識機制的共識記帳節點; 所述共識記帳節點向所述區塊鏈的節點廣播所述候選區塊; 在所述候選區塊通過所述區塊鏈符合預設數量的節點的驗證認可後,所述候選區塊被視為最新區塊,加入到所述區塊鏈的分散式資料庫中。 在上述的實施例中,具有記帳許可權的節點是指具有產生候選區塊許可權的節點,可包括本發明所述的存證方節點設備、取證方節點設備及上述區塊鏈中的其他節點設備。根據所述區塊鏈的共識機制,可從上述對所述候選區塊具有記帳許可權的節點中確定共識記帳節點,上述共識機制可以包括工作量證明機制(PoW)、或權利證明機制(PoS)、或股份授權證明機制(DPoS)、或PBFT演算法機制等。 基於以上的具體過程,上述目標事件資料被儲存至所述智慧型合約,也即被儲存在所述區塊鏈的分散式資料庫中,從而完成對上述目標事件資料的區塊鏈存證。 當上述第一目標交易中包含的目標事件資料為加密的密文狀態時,上述智慧型合約既可以將上述密文解密,在智慧型合約記憶體證上述目標事件資料的原文;也可以直接存證上述目標事件資料的密文,在本發明中不做限定。 在本實施例中,為了方便其他用戶取證到上述已存證的目標事件資料,存證方節點設備還可執行步驟106:至少基於所述智慧型合約的標識產生存證標識圖像,以供其他用戶基於圖像識別的方式取證到所述智慧型合約的標識,從而在上述區塊鏈中呼叫所述智慧型合約,執行所述智慧型合約聲明的資料取證邏輯,取證所述目標事件資料。上述智慧型合約的標識通常可包括智慧型合約的地址、或智慧型合約的帳戶名稱、或智慧型合約的數位摘要值等可唯一性識別上述智慧型合約的標識。 在又一示出的實施方式中,當所述目標資料還包括所述目標事件相關方所作的數位簽章時,為方便目標事件資料的取證方節點設備在取證目標事件資料後,基於所述數位簽章對所述目標事件資料進行驗證——例如,驗證目標事件相關方的身份,或驗證區塊鏈上存證的目標事件資料是否與目標事件相關方數位簽章所簽署的目標事件資料一致,上述存證標識圖像可基於上述智慧型合約的標識和目標事件相關方的身份名稱而產生。 表徵所述智慧型合約的標識或所述目標事件相關方的身份名稱的存證標識圖像通常可採用二維條碼或條碼等數位圖像化的方式,便捷地通過圖像掃碼的方式取證上述智慧型合約的標識或/和目標事件相關方的身份名稱,以用於對目標事件資料的取證或/和驗證;但是上述二維條碼或條碼形式的存證識別圖像通常不能直觀的體現其代表的資料資訊。 圖2示意了本發明一示例性實施例提供的存證標識圖像,該存證標識圖像為至少基於所述智慧型合約的標識產生的圖片(含色彩),例如根據預設的編碼規則至少對所述智慧型合約的標識進行編碼以產生存證數位編碼,根據預設的編碼與色彩的映射關係,將所述存證數位編碼依次產生相應色彩的色塊。可選的,上述色塊可以為具有固定樣式的圖案,如圖2所示的花朵等,可以按照上述色塊產生的順序(如圖2所示的花瓣1至8的順序)產生彩色圖片。 當存證標識圖像還包括目標事件相關方的身份名稱資訊時,上述目標事件相關方的身份名稱可以採用手寫簽名的方式與上述彩色圖片共同呈現,如圖2所示的手寫簽名“林立”(標號為9),相較於上述以二維條碼或條碼的形式呈現的存證標識圖像,圖2所示的彩色圖片加手寫簽名方式呈現的存證標識圖像,取證方用戶既可以通過觀察手寫簽名,直接取證待取證或待驗證的目標事件相關方的身份名稱,具有更好的直觀性,也可以通過圖像識別的方式識別上述手寫簽名獲得事件相關方的用戶名稱;相較於條碼或二維條碼的圖像樣式,圖2所示的用彩色圖案也具有更好的美觀性。 上述實施例所述的用於資料儲存和讀取的智慧型合約,可以為指定的一個目標業務事件作存證,也可以為多個目標業務事件作存證;既可以為一個目標事件的多條目標事件資料作存證,也可以為多個目標事件的目標事件資料作存證。當上述智慧型合約用於為多個目標業務事件作存證或為一個目標業務事件的多條目標事件資料作存證時,上述智慧型合約還可為上述目標事件資料分配相應的映射碼,以供目標事件資料的取證方可基於該映射碼取證到相應的目標事件資料。上述映射碼可以包括上述智慧型合約為目標事件資料分配的序號,也可包括上述智慧型合約為目標事件資料的相關方的名稱分配的識別號,等等。相應地,上述至少基於所述智慧型合約的標識產生存證標識圖像,也應包括:至少基於所述智慧型合約的標識和所述映射碼產生存證標識圖像。 為了保證上述目標事件資料不會應任何區塊鏈用戶對該智慧型合約的調取而被獲得,保證該目標事件資料的隱私性和安全性,上述智慧型合約內還可為不同的區塊鏈用戶設置其對上述目標事件資料的取證許可權,上述取證許可權可包括:不可取證任何目標事件資料、可取證預設的部分目標事件資料、可獲得全部的目標事件資料等,可依據上述智慧型合約應用的具體場景而設置。上述對目標事件資料的取證許可權的設置,可以在該智慧型合約的部署上鏈前由該智慧型合約的部署方設置,也可在該智慧型合約部署後由具有許可權設置的管理員用戶給予設置,還可根據具體的目標事件,由該目標事件的存證方給予設置。 在一示出的實施方式中,上述由目標事件的存證方設置目標用戶的資料取證許可權的過程包括:該區塊鏈中的任一節點設備(包括所述存證方節點設備)接收所述存證方節點設備向所述區塊鏈發送的目標用戶的資料取證許可權交易,所述資料取證許可權交易用以設置所述目標用戶對所述目標事件資料的取證許可權;呼叫所述智慧型合約,執行所述智慧型合約聲明的設置用戶的資料取證許可權的邏輯,為所述目標用戶設置取證所述目標事件資料的許可權。 為了保證存證方節點設備監控上述目標事件資料的取證以保證資料的安全性,包括及時獲知從上述智慧型合約內取證到上述目標事件資料的取證方用戶,在又一示出的實施方式中,該智慧型合約還聲明有取證消息通知邏輯,用以向上述目標事件資料的存證方發送關於取證方節點設備取證上述目標事件資料的通知消息;相應地,上述存證方節點設備可接收上述智慧型合約發送的關於取證方節點設備取證上述目標事件資料的通知消息。 以上的一個或多個實施例描述了一種或多種基於區塊鏈的事件存證方法,在存證方節點設備完成對目標事件資料的存證後,存證方可將上述存證識別圖像發送至任何需要取證或驗證上述目標事件資料的區塊鏈節點設備,以供上述節點設備作為取證方節點設備取證上述目標事件資料。如圖1所示,取證上述目標事件資料的過程可以包括: 步驟108,所述取證方節點設備識別所述存證方節點設備提供的存證標識圖像,以至少取證所述智慧型合約的標識;其中,所述存證標識圖像至少基於所述智慧型合約的標識產生; 步驟110,向所述區塊鏈發送第二目標交易,所述第二目標交易包括所述智慧型合約的標識; 步驟112,呼叫所述智慧型合約,執行所述智慧型合約聲明的資料取證邏輯,取證所述目標事件資料。 如前所述,上述目標事件資料可以包括描述全部或部分目標事件發生的過程的資料,或描述目標事件的特徵值的資料等,其可以具體表現為契約、通知書、說明書、業務概況、訂單等各種形式,在本發明中不做限定。 在又一示出的實施例中,上述目標事件資料還包括所述目標事件相關方所作的數位簽章,例如契約的簽署方對契約正文所作的數位簽章,通知書發佈方對通知書正文所作的數位簽章,說明書撰寫方對說明書正文所作的數位簽章,訂單訂購方對訂單內容所作的數位簽章,電子郵件的發送方對電子郵件的正文內容所作的數位簽章等等。類似於實際業務中的簽名,上述的數位簽章可以表達為目標事件相關方對目標事件資料的認定,例如契約簽署方對電子契約所作的數位簽章等。 相應地,上述基於區塊鏈的事件取證方法還包括:基於所述數位簽章對所述目標資料進行驗證。數位簽章是簽名者基於自身的私密金鑰對其認可的資料內容的數學摘要所進行的數學加密;通過驗證數位簽章,不僅可獲得簽名者的公開金鑰,進而將上述公開金鑰提供至身份認證機構予以身份認證,從而獲知簽名者的公開金鑰所對應的身份,還可通過將上述私密金鑰加密的數學摘要與現有的資料內容所得的數學摘要進行對比,驗證現有的資料內容是否與簽名者簽署的資料內容是否一致,從而獲知現有的資料內容是否被竄改過。因此在本實施例中,通過驗證上述數位簽章,通常可供該目標事件資料的取證方對目標事件資料的簽署方身份及目標事件資料的內容是否經竄改進行驗證。 在又一示出的實施方式中,當所述目標資料還包括所述目標事件相關方所作的數位簽章時,為方便目標事件資料的取證方節點設備在取證目標事件資料後,基於所述數位簽章對所述目標事件資料進行驗證——例如,驗證目標事件相關方的身份,或驗證區塊鏈上存證的目標事件資料是否與目標事件相關方數位簽章所簽署的目標事件資料一致,上述存證標識圖像可基於上述智慧型合約的標識和目標事件相關方的身份名稱而產生。 表徵所述智慧型合約的標識或所述目標事件相關方的身份名稱的存證標識圖像通常可採用二維條碼或條碼等數位圖像化的方式,便捷地通過圖像掃碼的方式取證上述智慧型合約的標識或/和目標事件相關方的身份名稱,以用於對目標事件資料的取證或/和驗證;但是上述二維條碼或條碼形式的存證識別圖像通常不能直觀的體現其代表的資料資訊。 圖2示意了本發明一示例性實施例提供的存證標識圖像,該存證標識圖像為至少基於所述智慧型合約的標識產生的圖片(含色彩),例如根據預設的編碼規則至少對所述智慧型合約的標識進行編碼以產生存證數位編碼,根據預設的編碼與色彩的映射關係,將所述存證數位編碼依次產生相應色彩的色塊。可選的,上述色塊可以為具有固定樣式的圖案,如圖2所示的花朵等,可以按照上述色塊產生的順序(如圖2所示的花瓣1至8的順序)產生彩色圖片。取證方可通過圖像識別終端掃描上述彩色圖片,根據所述色塊的產生順序(如圖2所示的花瓣1至8的順序),識別上述具有預設樣式的色塊的色彩;根據預設的數位編碼與色彩的映射關係,將所述色塊的色彩解碼,以獲得存證數位編碼;根據預設的解碼規則,對所述存證數位編碼進行解碼以至少取證所述智慧型合約的標識。 當存證標識圖像還包括目標事件相關方的身份名稱資訊時,上述目標事件相關方的身份名稱可以採用手寫簽名的方式與上述彩色圖片共同呈現,如圖2所示的手寫簽名“林立”(標號為9),相較於上述以二維條碼或條碼的形式呈現的存證標識圖像,圖2所示的彩色圖片加手寫簽名方式呈現的存證標識圖像,取證方用戶既可以通過觀察手寫簽名,直接取證待取證或待驗證的目標事件相關方的身份名稱,具有更好的直觀性,也可以通過圖像識別的方式識別上述手寫簽名獲得事件相關方的用戶名稱;相較於條碼或二維條碼的圖像樣式,圖2所示的用彩色圖案也具有更好的美觀性。 上述實施例所述的用於資料儲存和讀取的智慧型合約,可以為指定的一個目標業務事件作存證,也可以為多個目標業務事件作存證;既可以為一個目標事件的多條目標事件資料作存證,也可以為多個目標事件的目標事件資料作存證。當上述智慧型合約用於為多個目標業務事件作存證或為一個目標業務事件的多條目標事件資料作存證時,上述智慧型合約還可為上述目標事件資料分配相應的映射碼,以供目標事件資料的取證方可基於該映射碼取證到相應的目標事件資料。上述映射碼可以包括上述智慧型合約為目標事件資料分配的序號,也可包括上述智慧型合約為目標事件資料的相關方的名稱分配的識別號,等等。相應地,上述至少基於所述智慧型合約的標識產生存證標識圖像,也應包括:至少基於所述智慧型合約的標識和所述映射碼產生存證標識圖像。在取證方節點設備進行存證標識圖像識別後,可獲得所述智慧型合約的標識和所述映射碼,並將上述智慧型合約的標識和所述映射碼一起放置於第二目標交易中,以呼叫上述智慧型合約,並基於上述映射碼取證到相應的目標事件資料。 為了保證上述目標事件資料不會應任何區塊鏈用戶對該智慧型合約的調取而被獲得,保證該目標事件資料的隱私性和安全性,上述智慧型合約內還可為不同的區塊鏈用戶設置其對上述目標事件資料的取證許可權,上述取證許可權可包括:不可取證任何目標事件資料、可取證預設的部分目標事件資料、可獲得全部的目標事件資料等,可依據上述智慧型合約應用的具體場景而設置。上述對目標事件資料的取證許可權的設置,可以在該智慧型合約的部署上鏈前由該智慧型合約的部署方設置,也可在該智慧型合約部署後由具有許可權設置的管理員用戶給予設置,還可根據具體的目標事件,由該目標事件的存證方給予設置。 因此,所述執行所述智慧型合約聲明的資料取證邏輯,取證所述目標資料,包括:獲得所述取證方對所述目標資料的取證許可權;基於所述取證方對所述目標資料的取證許可權,執行所述智慧型合約聲明的資料取證邏輯。具體的,上述取證方的資料取證許可權的設置可以通過設置用戶白名單、用戶黑名單、用戶許可權設置表等技術手段來實現,在此不再贅述。 與上述流程實現對應,本發明的實施例還提供了一種基於區塊鏈的事件存證裝置和一種基於區塊鏈的事件取證。該裝置可以通過軟體實現,也可以通過硬體或者軟硬體結合的方式實現。以軟體實現為例,作為邏輯意義上的裝置,是通過所在設備的CPU(Central Process Unit,中央處理器)將對應的電腦程式指令讀取到記憶體中運行形成的。從硬體層面而言,除了圖5所示的CPU、記憶體以及儲存裝置之外,網路風險業務的實現裝置所在的設備通常還包括用於進行無線信號收發的晶片等其他硬體,和/或用於實現網路通訊功能的板卡等其他硬體。 如圖3所示,本發明還提供了一種基於區塊鏈的事件存證裝置30,應用於包括存證方節點設備的區塊鏈中;所述區塊鏈上部署有用於資料儲存和讀取的智慧型合約;所述裝置30包括: 發送單元302,所述存證方節點設備向所述區塊鏈發送第一目標交易,所述第一目標交易包括待儲存的目標事件資料; 智慧型合約執行單元304,呼叫所述智慧型合約,執行所述智慧型合約聲明的資料儲存邏輯,儲存所述目標事件資料至所述智慧型合約; 圖像產生單元306,至少基於所述智慧型合約的標識產生存證標識圖像。 在又一示出的實施方式中,所述目標事件資料還包括目標事件相關方所作的數位簽章,以供取證方節點設備基於所述數位簽章對所述目標事件資料進行驗證; 所述圖像產生單元306: 至少基於所述智慧型合約的標識和所述目標事件相關方的身份名稱產生存證標識圖像。 在又一示出的實施方式中,所述圖像產生單元306: 根據預設的編碼規則至少對所述智慧型合約的標識進行編碼以產生存證數位編碼; 根據預設的編碼與色彩的映射關係和預設的色塊產生順序,將所述存證數位編碼依次產生具有預設樣式的色塊。 在又一示出的實施方式中,所述的裝置30還包括: 接收單元308,接收所述智慧型合約為所述目標事件資料分配的映射碼; 所述圖像產生單元306: 至少基於所述智慧型合約的標識和所述映射碼產生存證標識圖像。 在又一示出的實施方式中,所述發送單元302: 向所述區塊鏈發送目標用戶的資料取證許可權交易,所述資料取證許可權交易用以設置所述目標用戶對所述目標事件資料的取證許可權; 所述智慧型合約執行單元304,呼叫所述智慧型合約,執行所述智慧型合約聲明的設置用戶的資料取證許可權的邏輯,為所述目標用戶設置取證所述目標事件資料的許可權。 在又一示出的實施方式中,所述的裝置30還包括接收單元310:接收所述智慧型合約發送的取證方節點設備取證所述目標資料的通知消息。 相應的,如圖4所示,本發明還提供了一種基於區塊鏈的事件取證裝置40,應用於包括存證方節點設備和取證方節點設備的區塊鏈中;所述區塊鏈上部署有已儲存目標事件資料的智慧型合約;所述裝置40包括: 圖像識別單元402,所述存證方節點設備識別所述存證方節點設備提供的存證標識圖像,以至少取證所述智慧型合約的標識;其中,所述存證標識圖像至少基於所述智慧型合約的標識產生; 發送單元404,向所述區塊鏈發送第二目標交易,所述第二目標交易包括所述智慧型合約的標識; 智慧型合約執行單元406,呼叫所述智慧型合約,執行所述智慧型合約聲明的資料取證邏輯,取證所述目標事件資料。 在又一示出的實施方式中,所述目標事件資料還包括目標事件相關方所作的數位簽章; 所述裝置40還包括: 資料驗證單元408,基於所述數位簽章對所述目標資料進行驗證。 在又一示出的實施方式中,所述圖像識別單元402: 根據預設的色塊產生順序和預設的數位編碼與色彩的映射關係,將所述色塊的色彩依次轉化為存證數位編碼; 根據預設的解碼規則,對所述存證數位編碼進行解碼以至少取證所述智慧型合約的標識。 在又一示出的實施方式中,所述存證標識圖像至少基於所述智慧型合約的標識和所述智慧型合約為所述目標事件資料分配的映射碼產生; 所述圖像識別單元402:識別所述存證標識圖像以至少取證所述智慧型合約的標識和所述映射碼; 所述第二目標交易還包括所述映射碼。 在又一示出的實施方式中,所述智慧型合約為所述取證方設置有對所述目標事件資料的取證許可權;所述智慧型合約執行單元404: 獲得所述取證方對所述目標事件資料的取證許可權; 基於所述取證方對所述目標資料的取證許可權,執行所述智慧型合約聲明的資料取證邏輯。 上述裝置中各個單元的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,相關之處參見方法實施例的部分說明即可,在此不再贅述。 以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是實體上分開的,作為單元顯示的部件可以是或者也可以不是實體模組,即可以位於一個地方,或者也可以分佈到多個網路模組上。可以根據實際的需要選擇其中的部分或者全部單元或模組來實現本發明方案的目的。本領域普通技術人員在不付出創造性勞動的情況下,即可以理解並實施。 上述實施例闡明的裝置、單元、模組,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、筆記型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。 與上述方法實施例相對應,本發明的實施例還提供了一種電腦設備,該電腦設備包括記憶體和處理器。其中,記憶體上儲存有能夠由處理器運行的電腦程式;處理器在運行儲存的電腦程式時,執行本發明實施例中基於區塊鏈的事件存證方法的各個步驟。對基於區塊鏈的事件存證方法的各個步驟的詳細描述請參見之前的內容,不再重複。 與上述方法實施例相對應,本發明的實施例還提供了一種電腦設備,該電腦設備包括記憶體和處理器。其中,記憶體上儲存有能夠由處理器運行的電腦程式;處理器在運行儲存的電腦程式時,執行本發明實施例中基於區塊鏈的事件取證方法的各個步驟。對基於區塊鏈的事件取證方法的各個步驟的詳細描述請參見之前的內容,不再重複。 以上所述僅為本發明的較佳實施例而已,並不用以限制本發明,凡在本發明的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本發明保護的範圍之內。 在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。 記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非揮發性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。 電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。 電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 本領域技術人員應明白,本發明的實施例可提供為方法、系統或電腦程式產品。因此,本發明的實施例可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體方面的實施例的形式。而且,本發明的實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。Exemplary embodiments will be described in detail here, examples of which are shown in the drawings. When the following description refers to drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of the present invention. Rather, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of the invention as detailed in the appended patent application. It should be noted that in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in the present invention. In some other embodiments, the method may include more or less steps than described in the present invention. In addition, the single step described in the present invention may be decomposed into multiple steps for description in other embodiments; and the multiple steps described in the present invention may also be combined into a single step in other embodiments description. As shown in FIG. 1, an exemplary embodiment of the present invention provides a blockchain-based target event forensics and forensics method, which is applied to a blockchain that includes an escrow node device and an forensic node device. The smart contract for data storage and reading is deployed on the blockchain. The blockchain described in this embodiment may 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 blockchain is distributed in time. Within the "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.), all or part of the node equipment is reached Full backup of data. Those skilled in the art are familiar with the fact that since the blockchain system operates under the corresponding consensus mechanism, the data already included in the blockchain database is difficult to be tampered with by any node device. For example, the blockchain using Pow consensus requires at least Only an attack of 51% of the computing power of the entire network is possible to tamper with the existing data. Therefore, the blockchain system has the characteristics of ensuring data security and preventing attack and tampering compared with other centralized database systems. In addition, it is worth noting that the node device described in the present invention can include not only a full-node device that backs up the full amount of data of the distributed database of the blockchain, but also a distributed node of the distributed database that backs up the blockchain The light node equipment of some materials, and other terminal equipment or user terminals are not limited in the present invention. The smart contract deployed on the blockchain is an executable computer programming language that is verified by the consensus of the node devices of the blockchain to be saved to the distributed database of the blockchain; any node device on the blockchain can be Receive a call from a blockchain user to a smart contract to execute the logic of the smart contract statement; the above execution result can also be saved to the blockchain's decentralized database after being verified by the blockchain's node device consensus. In this embodiment, a smart contract with data storage and reading is deployed on the blockchain, and the user can call the interface of the smart contract by sending a transaction to the account address or other identifier of the smart contract, and The corresponding function completes the operation of storing data into the smart contract or reading data already stored in the smart contract. As shown in FIG. 1, the blockchain-based data certification method provided in this embodiment includes: Step 102: The depositor node device sends a first target transaction to the blockchain, where the first target transaction includes target event data to be stored. The transaction described in the present invention refers to a piece of data that a user creates through a node device of the blockchain and needs to be finally released to the distributed database of the blockchain. Among them, there are transactions in the narrow sense and transactions in the broad sense in the blockchain. A narrowly defined transaction refers to a value transfer issued by the user to the blockchain; for example, in the traditional Bitcoin blockchain network, the transaction can be a transfer initiated by the user in the blockchain. The broad sense of transactions refers to an arbitrary piece of data released by users to the blockchain. The first target transaction described in this embodiment includes target event data to be stored. The target event data may include data describing a process in which all or part of the event occurs, or data describing characteristic values of the event, etc., which may be specific Various forms such as contracts, notices, specifications, business profiles, orders, etc. are not limited in the present invention. In order to prevent other nodes in the blockchain from learning the original text of the target event data and causing leakage of some private information, the target event data can be encrypted and the first target transaction containing the ciphertext of the target event data can be sent to the blockchain . It is easy for those skilled in the art to know that the certificate depositor described in this embodiment may be the above-mentioned target event related party or one of the target event related parties, or may not belong to the above target event related party, but as a neutral party or event The certificate depository side implements the event certificate depository method described in the embodiments of the present invention. In yet another illustrated embodiment, the target event data further includes a digital signature made by the relevant party of the target event, for example, a digital signature made by the signing party of the contract on the body of the contract, and a notice issuer on the body of the notice The digital signature made by the writer, the digital signature made by the writer of the manual to the body of the manual, the digital signature made by the orderer to the content of the order, the digital signature made by the sender of the email to the content of the email, etc. Similar to the signature in the actual business, the above-mentioned digital signature can be expressed as the identification of the target event data by the relevant parties of the target event, such as the digital signature made by the contract signatory on the electronic contract. Digital signature is the mathematical encryption that the signer performs on the mathematical summary of the approved data based on his private key; by verifying the digital signature, not only can the identity of the signer’s public key be verified, but also through Compare the mathematical summary of the above private key encryption with the mathematical summary of the existing data content to verify whether the existing data content is consistent with the data content signed by the signer, so as to know whether the existing data content has been tampered with. Therefore, in this embodiment, by verifying the above digital signature, the forensic party of the target event data can usually be used to verify whether the identity of the signer of the target event data and the content of the target event data have been tampered with. After the first target transaction passes the consensus verification of the blockchain node device, the first target transaction can be included in the distributed database of the blockchain; any node in the blockchain The device, including the depositor node device, can receive the first target transaction sent by the depositor node device to the blockchain to be based on the address of the smart contract in the first target transaction , Call the above smart contract. Step 104: Call the smart contract, execute the data storage logic declared by the smart contract, and store the target event data in the smart contract. The above process of storing target event data in the smart contract may also be regarded as a process of updating the smart contract in the distributed database of the blockchain. In an illustrated embodiment, the storing of the target event data in the smart contract includes: A node with accounting permission in the blockchain adds the smart contract code that stores the target event data to the candidate block; Determine a consensus accounting node that satisfies the blockchain consensus mechanism from the nodes with accounting permission; The consensus accounting node broadcasts the candidate block to the nodes of the blockchain; After the candidate block passes the verification and approval of a predetermined number of nodes of the blockchain, the candidate block is regarded as the latest block and is added to the distributed database of the blockchain. In the above embodiments, the node with accounting permission refers to the node with permission to generate candidate blocks, which may include the depositor node device, the forensic node device, and other blockchains described in the present invention. Node device. According to the consensus mechanism of the blockchain, a consensus accounting node can be determined from the nodes that have accounting permission for the candidate block. The consensus mechanism may include a proof of work mechanism (PoW) or a proof of rights mechanism (PoS ), or Proof of Share Authorization (DPoS), or PBFT algorithm mechanism, etc. Based on the above specific process, the target event data is stored in the smart contract, that is, it is stored in the distributed database of the blockchain, so as to complete the blockchain certification of the target event data. When the target event data included in the first target transaction is in an encrypted ciphertext state, the smart contract can decrypt the ciphertext and verify the original text of the target event data in the smart contract memory; it can also be stored directly The ciphertext that proves the above target event data is not limited in the present invention. In this embodiment, in order to facilitate other users to obtain evidence of the above-mentioned stored target event data, the depositor node device may also perform step 106: at least generate a certificated logo image based on the logo of the smart contract for Other users obtain the identification of the smart contract based on the image recognition method, so as to call the smart contract in the above blockchain, execute the data forensics logic declared by the smart contract, and obtain the target event data . The identifier of the smart contract may generally include an address of the smart contract, an account name of the smart contract, or a digital summary value of the smart contract, etc., which can uniquely identify the identifier of the smart contract. In yet another illustrated embodiment, when the target data further includes a digital signature made by the target event related party, the forensic node device for the convenience of the target event data, after forensic target event data, is based on the Digital signature to verify the target event data-for example, to verify the identity of the target event related party, or to verify whether the target event data stored on the blockchain and the target event data signed by the digital signature of the target event related party Consistently, the above-mentioned certificate identification image can be generated based on the identification of the above-mentioned smart contract and the identity name of the target event-related party. The identification image of the certificate representing the identification of the smart contract or the identification name of the target event-related party can usually be digitally imaged by a two-dimensional bar code or bar code, which is convenient for obtaining evidence by scanning the image The identification of the above-mentioned smart contract or/and the identification name of the target event related party is used for forensics or/and verification of the target event data; however, the above-mentioned two-dimensional bar code or bar code identification image in the form of evidence usually cannot be intuitively reflected The information of its representative. FIG. 2 illustrates a certificate identification image provided by an exemplary embodiment of the present invention. The certificate identification image is a picture (including color) generated based at least on the identification of the smart contract, for example, according to a preset encoding rule At least encode the identification of the smart contract to generate a digital code for certificate storage, and in accordance with a preset mapping relationship between the code and the color, encode the digital certificate for storage to sequentially generate color blocks of corresponding colors. Optionally, the color block may be a pattern with a fixed pattern, such as flowers shown in FIG. 2, and a color picture may be generated in the order in which the color blocks are generated (the order of petals 1 to 8 shown in FIG. 2 ). When the certificate identification image also includes the identity name information of the relevant party of the target event, the identity name of the relevant party of the target event can be presented together with the above-mentioned color picture in the form of a handwritten signature, as shown in FIG. 2 (The reference number is 9). Compared with the above-mentioned certificate identification image presented in the form of a two-dimensional bar code or barcode, the color registration image shown in FIG. 2 plus the handwritten signature method can be used by the forensic user. By observing the handwritten signature, the identity name of the target event related party for forensics or verification is directly forensic, which is more intuitive, and the user name of the event related party can also be obtained by identifying the above handwritten signature through image recognition; For the image style of the bar code or two-dimensional bar code, the color pattern shown in FIG. 2 also has better aesthetics. The smart contract for data storage and reading described in the above embodiment can be used to deposit evidence for a specified target business event or multiple target business events; A piece of target event data can be used as evidence, and can also be used as evidence for multiple target events. When the above smart contract is used to document multiple target business events or multiple target event data of one target business event, the above smart contract can also allocate corresponding mapping codes to the target event data, The forensics party for the target event data can obtain the corresponding target event data based on the mapping code. The mapping code may include the serial number allocated by the smart contract to the target event data, or may include an identification number allocated by the smart contract to the name of the related party of the target event data, and so on. Correspondingly, the above-mentioned generation of the certificate storage identification image based at least on the identification of the smart contract should also include: generation of the certificate storage identification image based on at least the identification of the smart contract and the mapping code. In order to ensure that the above target event data will not be obtained by any blockchain user's access to the smart contract, and to ensure the privacy and security of the target event data, the above smart contract can also be different blocks Chain users set their forensic permission for the above target event data. The above forensic permission can include: no target event data can be forensic, some target event data can be preset for forensics, and all target event data can be obtained. Set up for specific scenarios of smart contract applications. The setting of the above forensic permission for target event data can be set by the deployer of the smart contract before the deployment of the smart contract is launched, or by an administrator with permission setting after the deployment of the smart contract The user gives the setting, and the depositor of the target event can also give the setting according to the specific target event. In an illustrated embodiment, the process of setting the target user's data forensics permission by the depositor of the target event includes: receiving by any node device (including the depositor node device) in the blockchain The forensic node device sends the target user's data forensic permission transaction to the blockchain, and the data forensic permission transaction is used to set the target user's forensic permission for the target event data; call The smart contract executes the logic set by the smart contract to set the user's data forensics permission, and sets the permission for the target user to forge the target event data. In order to ensure that the depository node device monitors the forensics of the above target event data to ensure the security of the data, including the timely acquisition of forensic users from the above smart contract forensics to the above target event data, in another embodiment shown , The smart contract also declares that there is forensic message notification logic to send a notification message about the forensic node device forensics of the target event data to the depositor of the target event data; accordingly, the node of the depositor node can receive The notification message sent by the above-mentioned smart contract regarding the forensic node device to obtain the above-mentioned target event data. One or more of the above embodiments describe one or more blockchain-based event deposit methods. After the depositor node device completes the deposit of the target event data, the depositor can use the above-mentioned deposit recognition image Sent to any blockchain node device that needs to obtain evidence or verify the target event data, so that the node device can be used as a forensic node device to obtain the target event data. As shown in Figure 1, the process of forensics of the above target event data may include: In step 108, the forensic node device recognizes the certificate identification image provided by the certificate provider node device to at least prove the identification of the smart contract; wherein the certificate identification image is based at least on the wisdom The logo of the type contract is generated; Step 110: Send a second target transaction to the blockchain, where the second target transaction includes the identifier of the smart contract; Step 112: Call the smart contract, execute the data forensics logic declared by the smart contract, and obtain the target event data. As mentioned above, the above-mentioned target event data may include data describing the process in which all or part of the target event occurs, or data describing the characteristic values of the target event, etc., which may be embodied as contracts, notices, specifications, business profiles, orders Various forms such as these are not limited in the present invention. In yet another illustrated embodiment, the target event data further includes a digital signature made by the relevant party of the target event, for example, a digital signature made by the signing party of the contract on the body of the contract, and a notice issuer on the body of the notice The digital signature made by the writer, the digital signature made by the writer of the manual to the body of the manual, the digital signature made by the orderer to the content of the order, the digital signature made by the sender of the email to the content of the email, etc. Similar to the signature in the actual business, the above-mentioned digital signature can be expressed as the identification of the target event data by the relevant parties of the target event, such as the digital signature made by the contract signatory on the electronic contract. Correspondingly, the above blockchain-based event forensics method further includes: verifying the target data based on the digital signature. The digital signature is the mathematical encryption that the signer performs on the mathematical summary of the approved data based on his private key; by verifying the digital signature, not only can the signer’s public key be obtained, but also the above public key can be provided Go to the identity certification agency to verify the identity, so as to know the identity of the signer's public key. You can also verify the existing data content by comparing the mathematical digest of the above private key encryption with the existing mathematical content. Whether it is consistent with the data content signed by the signer, so as to know whether the existing data content has been tampered with. Therefore, in this embodiment, by verifying the above digital signature, the forensic party of the target event data can usually be used to verify whether the identity of the signer of the target event data and the content of the target event data have been tampered with. In yet another illustrated embodiment, when the target data further includes a digital signature made by the target event related party, the forensic node device for the convenience of the target event data, after forensic target event data, is based on the Digital signature to verify the target event data-for example, to verify the identity of the target event related party, or to verify whether the target event data stored on the blockchain and the target event data signed by the digital signature of the target event related party Consistently, the above-mentioned certificate identification image can be generated based on the identification of the above-mentioned smart contract and the identity name of the target event-related party. The identification image of the certificate representing the identification of the smart contract or the identification name of the target event-related party can usually be digitally imaged by a two-dimensional bar code or bar code, which is convenient for obtaining evidence by scanning the image The identification of the above-mentioned smart contract or/and the identification name of the target event related party is used for forensics or/and verification of the target event data; however, the above-mentioned two-dimensional bar code or bar code identification image in the form of evidence usually cannot be intuitively reflected The information of its representative. FIG. 2 illustrates a certificate identification image provided by an exemplary embodiment of the present invention. The certificate identification image is a picture (including color) generated based at least on the identification of the smart contract, for example, according to a preset encoding rule At least encode the identification of the smart contract to generate a digital code for certificate storage, and in accordance with a preset mapping relationship between the code and the color, encode the digital certificate for storage to sequentially generate color blocks of corresponding colors. Optionally, the color block may be a pattern with a fixed pattern, such as flowers shown in FIG. 2, and a color picture may be generated in the order in which the color blocks are generated (the order of petals 1 to 8 shown in FIG. 2 ). The forensic party can scan the above-mentioned color pictures through the image recognition terminal, and recognize the colors of the above-mentioned color blocks with preset patterns according to the order in which the color blocks are generated (the order of petals 1 to 8 shown in FIG. 2); Set the mapping relationship between the digital code and the color, and decode the color of the color block to obtain the certificated digital code; according to the preset decoding rules, decode the certificated digital code to at least prove the smart contract Logo. When the certificate identification image also includes the identity name information of the relevant party of the target event, the identity name of the relevant party of the target event can be presented together with the above-mentioned color picture in the form of a handwritten signature, as shown in FIG. 2 (The reference number is 9). Compared with the above-mentioned certificate identification image presented in the form of a two-dimensional bar code or barcode, the color registration image shown in FIG. 2 plus the handwritten signature method can be used by the forensic user. By observing the handwritten signature, the identity name of the target event related party for forensics or verification is directly forensic, which is more intuitive, and the user name of the event related party can also be obtained by identifying the above handwritten signature through image recognition; For the image style of the bar code or two-dimensional bar code, the color pattern shown in FIG. 2 also has better aesthetics. The smart contract for data storage and reading described in the above embodiment can be used to deposit evidence for a specified target business event or multiple target business events; A piece of target event data can be used as evidence, and can also be used as evidence for multiple target events. When the above smart contract is used to document multiple target business events or multiple target event data of one target business event, the above smart contract can also allocate corresponding mapping codes to the target event data, The forensics party for the target event data can obtain the corresponding target event data based on the mapping code. The mapping code may include the serial number allocated by the smart contract to the target event data, or may include an identification number allocated by the smart contract to the name of the related party of the target event data, and so on. Correspondingly, the above-mentioned generation of the certificate storage identification image based at least on the identification of the smart contract should also include: generation of the certificate storage identification image based on at least the identification of the smart contract and the mapping code. After the forensic node device performs the identification identification image identification, the identification of the smart contract and the mapping code can be obtained, and the identification of the smart contract and the mapping code are placed together in the second target transaction To call the above smart contract and obtain the corresponding target event data based on the above mapping code. In order to ensure that the above target event data will not be obtained by any blockchain user's access to the smart contract, and to ensure the privacy and security of the target event data, the above smart contract can also be different blocks Chain users set their forensic permission for the above target event data. The above forensic permission can include: no target event data can be forensic, some target event data can be preset for forensics, and all target event data can be obtained. Set up for specific scenarios of smart contract applications. The setting of the above forensic permission for target event data can be set by the deployer of the smart contract before the deployment of the smart contract is launched, or by an administrator with permission setting after the deployment of the smart contract The user gives the setting, and the depositor of the target event can also give the setting according to the specific target event. Therefore, the data forensics logic that executes the smart contract statement to obtain the target data includes: obtaining the forensic permission of the forensic party to the target data; based on the forensic party’s Forensics permission, to execute the data forensics logic stated in the smart contract. Specifically, the setting of the data forensics permission of the above forensic party can be achieved by setting a user whitelist, a user blacklist, a user permission setting table, and other technical means, which will not be repeated here. Corresponding to the above process implementation, embodiments of the present invention also provide a blockchain-based event evidence storage device and a blockchain-based event forensics. The device can be realized by software, or by hardware or a combination of hardware and software. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instruction into the memory through the CPU (Central Process Unit, central processing unit) of the device. From the hardware level, in addition to the CPU, memory, and storage devices shown in FIG. 5, the equipment where the network risk service implementation device is located usually includes other hardware such as chips for wireless signal transmission and reception, and /Or other hardware such as boards and cards used for network communication. As shown in FIG. 3, the present invention also provides a blockchain-based event certificate storage device 30, which is applied to a blockchain including a node device of a depositor; the blockchain is deployed for data storage and reading Smart contract; the device 30 includes: Sending unit 302, the depositor node device sends a first target transaction to the blockchain, the first target transaction includes target event data to be stored; The smart contract execution unit 304 calls the smart contract, executes the data storage logic declared by the smart contract, and stores the target event data in the smart contract; The image generation unit 306 generates a certificate identification image based at least on the identification of the smart contract. In yet another illustrated embodiment, the target event data further includes a digital signature made by a target event related party, so that the forensic node device can verify the target event data based on the digital signature; The image generating unit 306: A certificate identification image is generated based at least on the identification of the smart contract and the identification name of the target event related party. In another embodiment shown, the image generating unit 306: Encoding at least the identifier of the smart contract according to a preset encoding rule to generate a digital code for certificate deposit; According to the preset coding and color mapping relationship and the preset color block generation order, the stored digital code is sequentially generated to generate a color block with a preset pattern. In yet another illustrated embodiment, the device 30 further includes: The receiving unit 308 receives the mapping code allocated by the smart contract to the target event data; The image generating unit 306: A certificate identification image is generated based at least on the identification of the smart contract and the mapping code. In another embodiment shown, the sending unit 302: Sending the target user's data forensic permission transaction to the blockchain, the data forensic permission transaction used to set the target user's forensic permission for the target event data; The smart contract execution unit 304 calls the smart contract, executes the logic set by the smart contract to set the user's data forensics permission, and sets the permission for the target user to forge the target event data. In yet another illustrated embodiment, the device 30 further includes a receiving unit 310: receiving a notification message sent by the smart contract for the forensic node device to obtain the target data. Correspondingly, as shown in FIG. 4, the present invention also provides a blockchain-based event forensics device 40, which is applied to a blockchain including a depositor node device and a forensic node device; the blockchain A smart contract with stored target event data is deployed; the device 40 includes: An image recognition unit 402, the certificate depositor node device recognizes the certificate deposit identification image provided by the certificate depositor node device to at least prove the identification of the smart contract; wherein, the certificate deposit identification image is at least Generated based on the identification of the smart contract; The sending unit 404 sends a second target transaction to the blockchain, where the second target transaction includes the identifier of the smart contract; The smart contract execution unit 406 calls the smart contract, executes the data forensics logic declared by the smart contract, and obtains the target event data. In another embodiment shown, the target event data further includes digital signatures made by the target event related parties; The device 40 also includes: The document verification unit 408 verifies the target document based on the digital signature. In another embodiment shown, the image recognition unit 402: Converting the colors of the color blocks into digital codes for certificate registration according to the preset color block generation order and the mapping relationship between the preset digital codes and colors in sequence; According to a preset decoding rule, the digital code of the certificate is decoded to at least obtain the identification of the smart contract. In another embodiment shown, the certificate identification image is generated based at least on the identification of the smart contract and the mapping code allocated by the smart contract to the target event data; The image recognition unit 402: recognize the certificate identification image to at least prove the identification of the smart contract and the mapping code; The second target transaction also includes the mapping code. In yet another illustrated embodiment, the smart contract is provided with forensic permission for the target event data for the forensic party; the smart contract execution unit 404: Obtain the forensic permission of the forensic party to the target event data; Based on the forensic permission of the forensic party to the target data, execute the data forensics logic declared by the smart contract. For the implementation process of the functions and functions of the units in the above device, please refer to the implementation process of the corresponding steps in the above method for specific details. For the relevant parts, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments described above are only schematic, wherein 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, may Located in one place, or can be distributed to multiple network modules. Some or all of the units or modules may be selected according to actual needs to achieve the objectives of the solutions of the present invention. Those of ordinary skill in the art can understand and implement without paying creative labor. The devices, units, and modules illustrated in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, and the specific form of the computer may be a personal computer, a notebook computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet, wearable device, or any combination of these devices. Corresponding to the above method embodiment, an embodiment of the present invention also provides a computer device, the computer device includes a memory and a processor. Among them, a computer program that can be executed by the processor is stored on the memory; when the processor runs the stored computer program, each step of the event certification method based on the blockchain in the embodiment of the present invention is executed. For a detailed description of the various steps of the blockchain-based event certification method, please refer to the previous content, and it will not be repeated. Corresponding to the above method embodiment, an embodiment of the present invention also provides a computer device, the computer device includes a memory and a processor. Among them, a computer program that can be executed by the processor is stored on the memory; when the processor runs the stored computer program, each step of the event forensics method based on the blockchain in the embodiment of the present invention is executed. For a detailed description of the various steps of the blockchain-based event forensics method, please refer to the previous content, and will not be repeated. The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the present invention Within the scope of protection. In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory, random access memory (RAM) and/or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash) RAM). Memory is an example of computer-readable media. Computer-readable media, including permanent and non-permanent, removable and non-removable media, can be stored by any method or technology. The information can be computer readable instructions, data structures, modules of programs, 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), other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable and programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital multifunction Optical discs (DVDs) or other optical storage, magnetic cassette tapes, magnetic tape 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 temporary computer-readable media (transitory media), such as modulated data signals and carrier waves. It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also includes Other elements not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are 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 the present invention may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present invention may employ 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 code The form of the product.

102-112:步驟 1-8:花瓣 9:簽名 30:裝置 302:發送單元 304:智慧型合約執行單元 306:圖像產生單元 40:裝置 402:圖像識別單元 404:發送單元 406:智慧型合約執行單元102-112: steps 1-8: petals 9: Signature 30: device 302: sending unit 304: Smart contract execution unit 306: Image generation unit 40: device 402: Image recognition unit 404: sending unit 406: Smart contract execution unit

圖1為本發明一示例性實施例提供的基於區塊鏈的資料存證、取證方法的流程圖; 圖2為本發明又一實施例提供的存證標識圖像示意圖; 圖3為本發明一示例性實施例提供的基於區塊鏈的資料存證裝置的示意圖; 圖4為本發明一示例性實施例提供的基於區塊鏈的資料取證裝置的示意圖; 圖5為運行本發明示例性實施例所提供的基於區塊鏈的資料存證或驗證裝置實施例的一種硬體結構圖。FIG. 1 is a flowchart of a blockchain-based data storage and forensics method provided by an exemplary embodiment of the present invention; 2 is a schematic diagram of a certificate identification image provided by another embodiment of the present invention; 3 is a schematic diagram of a blockchain-based data certification device provided by an exemplary embodiment of the present invention; 4 is a schematic diagram of a blockchain-based data forensics device provided by an exemplary embodiment of the present invention; FIG. 5 is a hardware structure diagram of an embodiment of a blockchain-based data storage or verification device provided by an exemplary embodiment of the present invention.

Claims (24)

一種基於區塊鏈的事件存證方法,應用於包括存證方節點設備的區塊鏈中;該區塊鏈上部署有用於資料儲存和讀取的智慧型合約;該方法包括: 該存證方節點設備向該區塊鏈發送第一目標交易,該第一目標交易包括待儲存的目標事件資料; 呼叫該智慧型合約,執行該智慧型合約聲明的資料儲存邏輯,儲存該目標事件資料至該智慧型合約; 至少基於該智慧型合約的標識產生存證標識圖像。A blockchain-based event certificate storage method is applied to a blockchain including a node device of the depositor; a smart contract for data storage and reading is deployed on the blockchain; the method includes: The depositor node device sends a first target transaction to the blockchain, the first target transaction includes target event data to be stored; Call the smart contract, execute the data storage logic declared by the smart contract, and store the target event data to the smart contract; Generate at least a certificated logo image based on the logo of the smart contract. 根據請求項1所述的方法,該目標事件資料還包括目標事件相關方所作的數位簽章,以供取證方節點設備基於該數位簽章對該目標事件資料進行驗證; 該至少基於該智慧型合約的標識產生存證標識圖像,包括: 至少基於該智慧型合約的標識和該目標事件相關方的身份名稱產生存證標識圖像。According to the method described in claim 1, the target event data further includes a digital signature made by the target event related party, so that the forensic node device can verify the target event data based on the digital signature; The at least generating a certificated logo image based on the logo of the smart contract includes: A certificate identification image is generated based at least on the identification of the smart contract and the identity name of the target event related party. 根據請求項1或2所述的方法,該至少基於該智慧型合約的標識產生存證標識圖像,包括: 根據預設的編碼規則至少對該智慧型合約的標識進行編碼以產生存證數位編碼; 根據預設的編碼與色彩的映射關係和預設的色塊產生順序,將該存證數位編碼依次產生具有預設樣式的色塊。According to the method according to claim 1 or 2, generating the certificate identification image at least based on the identification of the smart contract includes: According to the preset encoding rules, at least encode the identification of the smart contract to generate a digital code for certificate deposit; According to the mapping relationship between the preset encoding and the color and the preset color block generation order, the stored digital code is sequentially used to generate color blocks with a preset pattern. 根據請求項1或2所述的方法,還包括: 接收該智慧型合約為該目標事件資料分配的映射碼; 該至少基於該智慧型合約的標識產生存證標識圖像,包括: 至少基於該智慧型合約的標識和該映射碼產生存證標識圖像。The method according to claim 1 or 2, further comprising: Receive the mapping code assigned by the smart contract to the target event data; The at least generating a certificated logo image based on the logo of the smart contract includes: A certificate identification image is generated based at least on the identification of the smart contract and the mapping code. 根據請求項1或2所述的方法,還包括: 向該區塊鏈發送目標用戶的資料取證許可權交易,該資料取證許可權交易用以設置該目標用戶對該目標事件資料的取證許可權; 呼叫該智慧型合約,執行該智慧型合約聲明的設置用戶的資料取證許可權的邏輯,為該目標用戶設置取證該目標事件資料的許可權。The method according to claim 1 or 2, further comprising: Send the target user's data forensic permission transaction to the blockchain, and the data forensic permission transaction is used to set the target user's forensic permission for the target event data; Call the smart contract, execute the logic set by the smart contract to set the user's data forensics permission, and set the permission for the target user to forge the target event data. 根據請求項1所述的方法,還包括: 接收該智慧型合約發送的取證方節點設備取證該目標資料的通知消息。The method according to claim 1, further comprising: Receive a notification message sent by the smart contract to obtain the target data from the forensic node device. 一種基於區塊鏈的事件取證方法,應用於包括存證方節點設備和取證方節點設備的區塊鏈中;該區塊鏈上部署有已儲存目標事件資料的智慧型合約;該方法包括: 該取證方節點設備識別該存證方節點設備提供的存證標識圖像,以至少取證該智慧型合約的標識;其中,該存證標識圖像至少基於該智慧型合約的標識產生; 向該區塊鏈發送第二目標交易,該第二目標交易包括該智慧型合約的標識; 呼叫該智慧型合約,執行該智慧型合約聲明的資料取證邏輯,取證該目標事件資料。A blockchain-based event forensics method, applied to a blockchain that includes both a depositor node device and a forensic node device; a smart contract that has stored target event data is deployed on the blockchain; the method includes: The forensic node device recognizes the certificate identification image provided by the certificate provider node device to at least obtain the identification of the smart contract; wherein, the certificate identification image is generated based at least on the identification of the smart contract; Send a second target transaction to the blockchain, the second target transaction including the identifier of the smart contract; Call the smart contract, execute the data forensics logic declared by the smart contract, and obtain the target event data. 根據請求項7所述的方法,該目標事件資料還包括目標事件相關方所作的數位簽章; 該方法還包括: 基於該數位簽章對該目標資料進行驗證。According to the method described in claim 7, the target event data further includes a digital signature made by the target event related party; The method also includes: Verify the target data based on the digital signature. 根據請求項7或8所述的方法,該識別該存證標識圖像以至少取證該智慧型合約的標識,包括: 根據預設的色塊產生順序和預設的數位編碼與色彩的映射關係,將該色塊的色彩依次轉化為存證數位編碼; 根據預設的解碼規則,對該存證數位編碼進行解碼以至少取證該智慧型合約的標識。According to the method of claim 7 or 8, the identification of the certificate identification image to at least prove the identification of the smart contract includes: According to the preset color block generation sequence and the preset digital coding and color mapping relationship, the color of the color block is sequentially converted into certificated digital coding; According to the preset decoding rule, the digital code of the certificate is decoded to at least prove the identification of the smart contract. 根據請求項7或8所述的方法,該存證標識圖像至少基於該智慧型合約的標識和該智慧型合約為該目標事件資料分配的映射碼產生; 該識別該存證標識圖像以至少取證該智慧型合約的標識,包括:識別該存證標識圖像以至少取證該智慧型合約的標識和該映射碼; 該第二目標交易還包括該映射碼。According to the method of claim 7 or 8, the certificate identification image is generated based at least on the identification of the smart contract and the mapping code assigned by the smart contract to the target event data; The identification of the identification image of the certificate to at least prove the identification of the smart contract includes: identification of the image of the identification certificate to at least prove the identification of the smart contract and the mapping code; The second target transaction also includes the mapping code. 根據請求項7所述的方法,該智慧型合約為該取證方設置有對該目標事件資料的取證許可權;該執行該智慧型合約聲明的資料取證邏輯,取證該目標事件資料,包括: 獲得該取證方對該目標事件資料的取證許可權; 基於該取證方對該目標資料的取證許可權,執行該智慧型合約聲明的資料取證邏輯。According to the method described in claim 7, the smart contract provides the forensic party with the forensic permission to the target event data; the data forensics logic that executes the smart contract statement to obtain the target event data includes: Obtain the permission of the forensic party to obtain evidence on the target event data; Based on the forensic permission of the forensic party to the target data, the data forensics logic declared by the smart contract is executed. 一種基於區塊鏈的事件存證裝置,應用於包括存證方節點設備的區塊鏈中;該區塊鏈上部署有用於資料儲存和讀取的智慧型合約;該裝置包括: 發送單元,該存證方節點設備向該區塊鏈發送第一目標交易,該第一目標交易包括待儲存的目標事件資料; 智慧型合約執行單元,呼叫該智慧型合約,執行該智慧型合約聲明的資料儲存邏輯,儲存該目標事件資料至該智慧型合約; 圖像產生單元,至少基於該智慧型合約的標識產生存證標識圖像。A blockchain-based event certificate storage device is applied to a blockchain including a node device of a depositor; a smart contract for data storage and reading is deployed on the blockchain; the device includes: A sending unit, the depositor node device sends a first target transaction to the blockchain, the first target transaction includes target event data to be stored; The smart contract execution unit calls the smart contract, executes the data storage logic declared by the smart contract, and stores the target event data to the smart contract; The image generating unit generates a certificate-keeping logo image based at least on the logo of the smart contract. 根據請求項12所述的裝置,該目標資料還包括目標事件相關方所作的數位簽章,以供取證方節點設備基於該數位簽章對該目標事件資料進行驗證; 該圖像產生單元: 至少基於該智慧型合約的標識和該目標事件相關方的身份名稱產生存證標識圖像。According to the device described in claim 12, the target data further includes a digital signature made by the relevant party of the target event for the forensic node device to verify the target event data based on the digital signature; The image generating unit: A certificate identification image is generated based at least on the identification of the smart contract and the identity name of the target event related party. 根據請求項12或13所述的裝置,該圖像產生單元: 根據預設的編碼規則至少對該智慧型合約的標識進行編碼以產生存證數位編碼; 根據預設的編碼與色彩的映射關係和預設的色塊產生順序,將該存證數位編碼依次產生具有預設樣式的色塊。The apparatus according to claim 12 or 13, the image generating unit: According to the preset encoding rules, at least encode the identification of the smart contract to generate a digital code for certificate deposit; According to the mapping relationship between the preset encoding and the color and the preset color block generation order, the stored digital code is sequentially used to generate color blocks with a preset pattern. 根據請求項12或13所述的裝置,還包括: 接收單元,接收該智慧型合約為該目標事件資料分配的映射碼; 該圖像產生單元: 至少基於該智慧型合約的標識和該映射碼產生存證標識圖像。The device according to claim 12 or 13, further comprising: The receiving unit receives the mapping code assigned by the smart contract to the target event data; The image generating unit: A certificate identification image is generated based at least on the identification of the smart contract and the mapping code. 根據請求項12或13所述的裝置,該發送單元: 向該區塊鏈發送目標用戶的資料取證許可權交易,該資料取證許可權交易用以設置該目標用戶對該目標事件資料的取證許可權; 該智慧型合約執行單元,呼叫該智慧型合約,執行該智慧型合約聲明的設置用戶的資料取證許可權的邏輯,為該目標用戶設置取證該目標事件資料的許可權。The device according to claim 12 or 13, the sending unit: Send the target user's data forensic permission transaction to the blockchain, and the data forensic permission transaction is used to set the target user's forensic permission for the target event data; The smart contract execution unit calls the smart contract, executes the logic set by the smart contract to set the user's data forensics permission, and sets the permission for the target user to forge the target event data. 根據請求項12所述的裝置,還包括接收單元:接收該智慧型合約發送的取證方節點設備取證該目標資料的通知消息。The device according to claim 12, further comprising a receiving unit: receiving a notification message sent by the smart contract node device of the forensic party forensics of the target material. 一種基於區塊鏈的事件取證裝置,應用於包括存證方節點設備和取證方節點設備的區塊鏈中;該區塊鏈上部署有已儲存目標事件資料的智慧型合約;該裝置包括: 圖像識別單元,該存證方節點設備識別該存證方節點設備提供的存證標識圖像,以至少取證該智慧型合約的標識;其中,該存證標識圖像至少基於該智慧型合約的標識產生; 發送單元,向該區塊鏈發送第二目標交易,該第二目標交易包括該智慧型合約的標識; 智慧型合約執行單元,呼叫該智慧型合約,執行該智慧型合約聲明的資料取證邏輯,取證該目標事件資料。A blockchain-based event forensics device is used in a blockchain that includes both a depositor node device and a forensic node device; a smart contract that has stored target event data is deployed on the blockchain; the device includes: An image recognition unit, the certificate depositor node device recognizes the certificate identification image provided by the certificate depositor node device to at least prove the identification of the smart contract; wherein, the certificate identification image is based at least on the smart contract The logo is generated; The sending unit sends a second target transaction to the blockchain, and the second target transaction includes the identifier of the smart contract; The smart contract execution unit calls the smart contract, executes the data forensics logic declared by the smart contract, and obtains the target event data. 根據請求項18所述的裝置,該目標事件資料還包括目標事件相關方所作的數位簽章; 該裝置還包括: 資料驗證單元,基於該數位簽章對該目標資料進行驗證。According to the device described in claim 18, the target event data further includes a digital signature made by the target event related party; The device also includes: The data verification unit verifies the target data based on the digital signature. 根據請求項18或19所述的裝置,該圖像識別單元: 根據預設的色塊產生順序和預設的數位編碼與色彩的映射關係,將該色塊的色彩依次轉化為存證數位編碼; 根據預設的解碼規則,對該存證數位編碼進行解碼以至少取證該智慧型合約的標識。The apparatus according to claim 18 or 19, the image recognition unit: According to the preset color block generation sequence and the preset digital coding and color mapping relationship, the color of the color block is sequentially converted into certificated digital coding; According to the preset decoding rule, the digital code of the certificate is decoded to at least prove the identification of the smart contract. 根據請求項18或19所述的裝置,該存證標識圖像至少基於該智慧型合約的標識和該智慧型合約為該目標事件資料分配的映射碼產生; 該圖像識別單元:識別該存證標識圖像以至少取證該智慧型合約的標識和該映射碼; 該第二目標交易還包括該映射碼。According to the device of claim 18 or 19, the certificate identification image is generated based at least on the identification of the smart contract and the mapping code assigned by the smart contract to the target event data; The image recognition unit: recognize the certificate identification image to at least prove the identification of the smart contract and the mapping code; The second target transaction also includes the mapping code. 根據請求項18所述的裝置,該智慧型合約為該取證方設置有對該目標事件資料的取證許可權;該智慧型合約執行單元: 獲得該取證方對該目標事件資料的取證許可權; 基於該取證方對該目標資料的取證許可權,執行該智慧型合約聲明的資料取證邏輯。According to the device described in claim 18, the smart contract provides the forensic party with forensic permission for the target event data; the smart contract execution unit: Obtain the permission of the forensic party to obtain evidence on the target event data; Based on the forensic permission of the forensic party to the target data, the data forensics logic declared by the smart contract is executed. 一種電腦設備,包括:記憶體和處理器;該記憶體上儲存有可由處理器運行的電腦程式;該處理器運行該電腦程式時,執行如請求項1到6中任一項所述的方法。A computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the method according to any one of request items 1 to 6 is executed . 一種電腦設備,包括:記憶體和處理器;該記憶體上儲存有可由處理器運行的電腦程式;該處理器運行該電腦程式時,執行如請求項7到11中任一項所述的方法。A computer device, comprising: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the method according to any one of claims 7 to 11 is executed .
TW108109774A 2018-10-26 2019-03-21 Data storage and evidence collection method and device based on blockchain TWI706360B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811260957.4A CN109615383B (en) 2018-10-26 2018-10-26 Data storage and acquisition method and device based on block chain
CN201811260957.4 2018-10-26

Publications (2)

Publication Number Publication Date
TW202016853A true TW202016853A (en) 2020-05-01
TWI706360B TWI706360B (en) 2020-10-01

Family

ID=66001654

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108109774A TWI706360B (en) 2018-10-26 2019-03-21 Data storage and evidence collection method and device based on blockchain

Country Status (3)

Country Link
CN (2) CN113283905A (en)
TW (1) TWI706360B (en)
WO (1) WO2020082894A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114066446A (en) * 2021-11-16 2022-02-18 上海鸿米信息科技有限责任公司 Block chain data processing method and device, storage medium and block chain link points
TWI796675B (en) * 2020-07-03 2023-03-21 大陸商支付寶(杭州)信息技術有限公司 Blockchain-based identity verification method and related hardware

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283905A (en) * 2018-10-26 2021-08-20 创新先进技术有限公司 Data storage and acquisition method and device based on block chain
CN110099108B (en) * 2019-04-26 2022-04-01 深圳前海微众银行股份有限公司 Block chain event duplicate removal method and device, computer equipment and storage medium
CN110162470B (en) * 2019-04-28 2023-08-18 创新先进技术有限公司 Block chain testing method and device
CN110163691B (en) * 2019-04-29 2020-12-04 创新先进技术有限公司 Invoice creating method and device based on block chain and electronic equipment
US11087371B2 (en) 2019-04-29 2021-08-10 Advanced New Technologies Co., Ltd. Blockchain-based invoice creation method apparatus, and electronic device
US10795882B2 (en) 2019-04-30 2020-10-06 Alibaba Group Holding Limited Blockchain-based data compression and searching
CN110166442B (en) * 2019-04-30 2022-09-06 创新先进技术有限公司 Data processing method and device based on block chain
CN110163755B (en) * 2019-04-30 2020-11-24 创新先进技术有限公司 Block chain-based data compression and query method and device and electronic equipment
CN110264196B (en) * 2019-05-20 2021-04-23 创新先进技术有限公司 Conditional receipt storage method and node combining code labeling and user type
CN110363527B (en) * 2019-06-26 2023-07-04 创新先进技术有限公司 Block chain-based evidence storage and supervision method and device
US10909317B2 (en) 2019-07-26 2021-02-02 Advanced New Technologies Co., Ltd. Blockchain-based text similarity detection method, apparatus and electronic device
CN111898360B (en) * 2019-07-26 2023-09-26 创新先进技术有限公司 Text similarity detection method and device based on block chain and electronic equipment
CN110958319B (en) * 2019-12-05 2022-07-12 腾讯科技(深圳)有限公司 Method and device for managing infringement and evidence-based block chain
CN111260469A (en) * 2020-01-10 2020-06-09 杭州溪塔科技有限公司 Block chain-based evidence storing method, block chain-based evidence storing query method, corresponding device and electronic equipment
CN111339182A (en) * 2020-02-10 2020-06-26 叮当快药科技集团有限公司 Method and device for user data invocation of information sharing system based on Etherhouse blockchain
CN112199446B (en) * 2020-12-01 2021-05-28 支付宝(杭州)信息技术有限公司 Method, device, equipment and storage medium for storing article circulation records
CN112487497A (en) * 2020-12-10 2021-03-12 杭州溪塔科技有限公司 Method and device for managing off-link files based on intelligent contracts and electronic equipment
CN113011422A (en) * 2021-05-12 2021-06-22 青岛冠成软件有限公司 Supply chain supervision method and device based on pattern recognition and computer equipment
CN114241248B (en) * 2022-02-24 2022-07-01 北京市农林科学院信息技术研究中心 River crab origin tracing method and system
CN115168489B (en) * 2022-06-28 2024-03-22 杭州钛度科技有限公司 Data certification method and device based on blockchain

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209877A (en) * 2016-07-19 2016-12-07 井创(北京)科技有限公司 A kind of be certification core with block chain backstage false-proof authentication system
CN110263003A (en) * 2016-07-21 2019-09-20 北京源创云网络科技有限公司 Item file deposits card method and terminal device
US11176519B2 (en) * 2016-11-11 2021-11-16 International Business Machines Corporation Smart contract admission check and fault tolerance in a blockchain
WO2018111295A1 (en) * 2016-12-16 2018-06-21 Hitachi, Ltd. Blockchain monitoring and management
US10715331B2 (en) * 2016-12-28 2020-07-14 MasterCard International Incorported Method and system for providing validated, auditable, and immutable inputs to a smart contract
CN107248074A (en) * 2017-03-29 2017-10-13 阿里巴巴集团控股有限公司 A kind of method for processing business and equipment based on block chain
CN107273759B (en) * 2017-05-08 2020-07-14 上海点融信息科技有限责任公司 Method, apparatus, and computer-readable storage medium for protecting blockchain data
CN107403303B (en) * 2017-06-16 2020-10-30 兴业数字金融服务(上海)股份有限公司 Signing method of electronic contract system based on block chain deposit certificate
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN107862215B (en) * 2017-09-29 2020-10-16 创新先进技术有限公司 Data storage method, data query method and device
CN107844978A (en) * 2017-11-30 2018-03-27 中链科技有限公司 A kind of staple commodities transaction processing method and system based on block chain
CN107944868A (en) * 2017-12-07 2018-04-20 杭州趣链科技有限公司 A kind of electronics deposit system and management method based on block chain intelligence contract
TWM561279U (en) * 2018-02-12 2018-06-01 林俊良 Blockchain system and node server for processing strategy model scripts of financial assets
CN108305056B (en) * 2018-03-27 2023-11-10 北京蓝亚盒子科技有限公司 Block chain-based data processing method and device and block chain node network
CN111861433B (en) * 2018-03-30 2024-04-02 创新先进技术有限公司 Business execution method and device based on block chain and electronic equipment
CN108550037B (en) * 2018-04-11 2022-05-17 北京知金链网络技术有限公司 File processing method and device based on block chain
CN108648056A (en) * 2018-05-10 2018-10-12 中链科技有限公司 A kind of house lease contract processing method and system based on block chain
CN113283905A (en) * 2018-10-26 2021-08-20 创新先进技术有限公司 Data storage and acquisition method and device based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI796675B (en) * 2020-07-03 2023-03-21 大陸商支付寶(杭州)信息技術有限公司 Blockchain-based identity verification method and related hardware
CN114066446A (en) * 2021-11-16 2022-02-18 上海鸿米信息科技有限责任公司 Block chain data processing method and device, storage medium and block chain link points

Also Published As

Publication number Publication date
WO2020082894A1 (en) 2020-04-30
CN113283905A (en) 2021-08-20
TWI706360B (en) 2020-10-01
CN109615383A (en) 2019-04-12
CN109615383B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
TWI706360B (en) Data storage and evidence collection method and device based on blockchain
CN108681853B (en) Logistics information transmission method, system and device based on block chain
CN109584066B (en) Privacy transaction based on block chain and application method and device thereof
CN110060162B (en) Data authorization and query method and device based on block chain
WO2020082887A1 (en) Block chain transaction method and apparatus
CN110166442B (en) Data processing method and device based on block chain
TWI724391B (en) Node management method and device based on blockchain
TWI727284B (en) Block chain-based privacy transaction method, device and computer equipment, application method based on block chain privacy transaction and computer equipment
CN112215608A (en) Data processing method and device
TW202029106A (en) A blockchain-based evidence storage method and device
WO2020051710A1 (en) System and process for managing digitized security tokens
CN108377187A (en) A kind of block chain private key application method and device based on biological characteristic
Ali et al. Blockchain and the future of the internet: A comprehensive review
CN111192146B (en) Correction method and device for block chain data
CN111211911B (en) Collaborative signature method, device, equipment and system
WO2020134631A1 (en) Block chain-based data processing method and apparatus
CN112149077B (en) Supply chain billing method, system and computer equipment based on block chain technology
CN111488372A (en) Data processing method, device and storage medium
CN113704775A (en) Service processing method based on distributed digital identity and related device
CN110347750B (en) Block chain-based data processing method and device
CN111669434A (en) Method, system, device and equipment for establishing communication group
CN109388923B (en) Program execution method and device
CN110458541B (en) Object replacement method and device based on block chain
CN113761496A (en) Identity verification method and device based on block chain and electronic equipment
CN114331437A (en) Block chain-based digital seal using method and device