TWI718614B - Data processing method, device and server based on blockchain - Google Patents

Data processing method, device and server based on blockchain Download PDF

Info

Publication number
TWI718614B
TWI718614B TW108128082A TW108128082A TWI718614B TW I718614 B TWI718614 B TW I718614B TW 108128082 A TW108128082 A TW 108128082A TW 108128082 A TW108128082 A TW 108128082A TW I718614 B TWI718614 B TW I718614B
Authority
TW
Taiwan
Prior art keywords
transaction information
information
false
blockchain
account identifier
Prior art date
Application number
TW108128082A
Other languages
Chinese (zh)
Other versions
TW202018644A (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 TW202018644A publication Critical patent/TW202018644A/en
Application granted granted Critical
Publication of TWI718614B publication Critical patent/TWI718614B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本說明書實施例提供一種基於區塊鏈的資料處理方法、裝置和伺服器。所述方法包括:根據基準時刻和提交時間間隔,計算提交時刻;在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊;向所述區塊鏈提交所述至少一個合併交易資訊。The embodiments of this specification provide a data processing method, device and server based on blockchain. The method includes: calculating the submission time according to the reference time and the submission time interval; after the submission time arrives, merging at least one original transaction information received within the submission time interval to obtain at least one merged transaction Information; submit the at least one combined transaction information to the blockchain.

Description

基於區塊鏈的資料處理方法、裝置和伺服器Data processing method, device and server based on blockchain

本說明書實施例涉及電腦技術領域,特別涉及一種基於區塊鏈的資料處理方法、裝置和伺服器。The embodiments of this specification relate to the field of computer technology, and in particular to a data processing method, device and server based on blockchain.

區塊鏈技術是一種分散式資料庫技術,利用密碼學和共識機制保證了資料的不可篡改和不可偽造。隨著電腦和網際網路技術的發展,區塊鏈技術以其去中心化、公開透明、不可篡改、可信任等優點,備受青睞,在智慧合約、證券交易、電子商務、物聯網、社交通訊、檔儲存、存在性證明、身分驗證、股權眾籌等眾多場景得到廣泛應用。 目前,當將區塊鏈技術應用於上述場景時,由於每筆交易的交易資訊均需要發送到區塊鏈進行驗證、實施和上鏈,因而帳戶的交易筆數面臨洩露給第三方的風險。 出於保護隱私的考慮,業務亟需一種能夠隱藏交易筆數的技術方案。Blockchain technology is a decentralized database technology that uses cryptography and consensus mechanisms to ensure that data cannot be tampered with or forged. With the development of computer and Internet technology, blockchain technology is favored by its advantages such as decentralization, openness and transparency, immutability, and trustworthiness. It is widely used in smart contracts, securities trading, e-commerce, Internet of Things, and social networking. Communication, file storage, existence proof, identity verification, equity crowdfunding and many other scenarios are widely used. At present, when blockchain technology is applied to the above scenarios, since the transaction information of each transaction needs to be sent to the blockchain for verification, implementation, and chaining, the number of transactions in the account faces the risk of leaking to a third party. For the sake of privacy protection, the business urgently needs a technical solution that can hide the number of transactions.

本說明書實施例的目的是提供一種基於區塊鏈的資料處理方法、裝置和伺服器,以隱藏帳戶在區塊鏈上的交易筆數。 為實現上述目的,本說明書實施例提供一種基於區塊鏈的資料處理方法,包括: 根據基準時刻和提交時間間隔,計算提交時刻; 在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊; 向所述區塊鏈提交所述至少一個合併交易資訊。 為實現上述目的,本說明書實施例提供一種基於區塊鏈的資料處理裝置,包括 計算單元,用於根據基準時刻和提交時間間隔,計算提交時刻; 合併單元,用於在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊; 提交單元,用於向所述區塊鏈提交所述至少一個合併交易資訊。 為實現上述目的,本說明書實施例提供一種伺服器,包括: 儲存器,用於儲存電腦指令; 處理器,用於執行所述電腦指令實現以下步驟:根據基準時刻和提交時間間隔,計算提交時刻;在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊;向所述區塊鏈提交所述至少一個合併交易資訊。 由以上本說明書實施例提供的技術方案可見,本說明書實施例中,匯出方伺服器可以對在提交時間間隔內接收到的原始交易資訊進行合併處理,使得第三方無法獲得實際向區塊鏈提交的原始交易資訊的數量,從而能夠實現隱藏匯出方帳戶在區塊鏈上的交易筆數。此外,透過對在提交時間間隔內接收到的原始交易資訊進行合併處理,還可以減少區塊鏈處理的交易資訊的數量,從而可以減少區塊鏈輸送量的負擔。The purpose of the embodiments of this specification is to provide a blockchain-based data processing method, device and server to hide the number of transactions of an account on the blockchain. In order to achieve the above objective, the embodiment of this specification provides a blockchain-based data processing method, including: Calculate the submission time based on the reference time and the submission time interval; After the submission time arrives, at least one piece of original transaction information received within the submission time interval is merged to obtain at least one piece of merged transaction information; Submit the at least one combined transaction information to the blockchain. In order to achieve the above objective, the embodiment of this specification provides a block chain-based data processing device, including The calculation unit is used to calculate the submission time according to the reference time and the submission time interval; The merging unit is used for merging at least one piece of original transaction information received within the submission time interval after the submission time arrives to obtain at least one piece of merged transaction information; The submission unit is configured to submit the at least one combined transaction information to the blockchain. To achieve the above objective, an embodiment of this specification provides a server, including: Storage, used to store computer instructions; The processor is configured to execute the computer instructions to implement the following steps: calculate the submission time according to the reference time and the submission time interval; after the submission time arrives, check at least one original transaction information received within the submission time interval Perform merge processing to obtain at least one merged transaction information; submit the at least one merged transaction information to the blockchain. As can be seen from the technical solutions provided by the above embodiments of this specification, in the embodiments of this specification, the exporting server can merge the original transaction information received within the submission time interval, so that the third party cannot obtain the actual information to the blockchain. The number of original transaction information submitted, which can hide the number of transactions of the sender’s account on the blockchain. In addition, by merging the original transaction information received during the submission time interval, the amount of transaction information processed by the blockchain can also be reduced, thereby reducing the burden of blockchain transportation.

下面將結合本說明書實施例中的圖式,對本說明書實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本說明書一部分實施例,而不是全部的實施例。基於本說明書中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本說明書保護的範圍。 請參閱圖1和圖2。本說明書實施例提供一種基於區塊鏈的資料處理方法。 在本實施例中,所述區塊鏈(Block Chain),可以是一種按照時間先後順序,將多個區塊資料以鏈式結構進行組織,並以密碼學演算法保證安全、可追溯、且不可篡改的分散式帳本。所述區塊鏈可以包括公有區塊鏈、聯合區塊鏈(也稱為聯盟區塊鏈)、和私有區塊鏈等。所述區塊鏈可以基於區塊鏈網路來實現。所述區塊鏈網路可以包括P2P網路(peer-to-peer network)等。所述區塊鏈網路可以包括多個區塊鏈節點。各個區塊鏈節點之間共同維護統一的區塊鏈帳本。 在本實施例中,所述資料處理方法以匯出方伺服器為執行主體。所述匯出方伺服器可以作為一個區塊鏈節點加入區塊鏈網路。在所述匯出方伺服器中可以登錄有匯出方帳戶。所述匯出方帳戶可以為匯出方在所述區塊鏈中的帳戶。所述匯出方伺服器能夠與用戶端進行通信。所述用戶端例如可以為智慧手機、平板電子設備、可攜式電腦、個人數位助理(PDA)、或智慧穿戴設備等。所述資料處理方法可以包括以下步驟。 步驟S10:根據基準時刻和提交時間間隔,計算提交時刻。 在本實施例中,所述基準時刻可以包括以下至少一種:最近一次向區塊鏈提交合併交易資訊的時刻、最近一次向區塊鏈提交虛假交易資訊的時刻。關於所述合併交易資訊和所述虛假交易資訊在後續過程中會有詳細介紹。 在本實施例中,所述提交時間間隔的取值可以根據業務需要靈活設定。具體地,所述提交時間間隔的取值可以為一固定值;或者,也可以依據業務實際需求分時間段,每一時間段內設定為一固定值;又或者,還可以為一隨機值。例如,在交易高峰期提交時間間隔的取值可以設定為0.1秒鐘(還可以依據業務需求設置更短或更長);在交易低谷期提交時間間隔的取值可以設定為1分鐘(還可以依據業務需求設置更短或更長)。當然,還可以根據分佈函數設定所述提交時間間隔的取值,使得所述提交時間間隔的取值滿足所述分佈函數。所述分佈函數例如可以包括指數分佈函數和愛爾朗分佈(Erlang Distribution)函數。其中,所述指數分佈函數的運算式可以為

Figure 02_image001
;所述愛爾朗分佈函數的運算式可以為
Figure 02_image003
。這裡
Figure 02_image005
表示提交時間間隔的取值;
Figure 02_image007
表示到達率;
Figure 02_image009
表示愛爾朗分佈函數的階數。其中,所述到達率可以表示單位時間內事件發生的數量。在一些場景示例中,所述到達率具體可以表示單位時間內的交易數量。在實際業務中,例如,可以設定提交時間間隔的期望交易(包括真實交易和虛假交易)到達率D;可以統計真實交易的實際到達率E。那麼,在指數分佈函數和愛爾朗分佈函數中
Figure 02_image011
。當然,本領域技術人員應當能夠理解,上述根據分佈函數和愛爾朗分佈函數設定提交時間間隔的取值的方式僅為示例,實際上根據分佈函數和愛爾朗分佈函數還可以採用任意其它適當方式來設定提交時間間隔的取值。 在本實施例中,所述匯出方伺服器可以將基準時刻和提交時間間隔相加,得到提交時刻。具體地,所述匯出方伺服器可以將最近一次向所述區塊鏈提交交易資訊的時刻和提交時間間隔相加,得到提交時刻。這裡最近一次向所述區塊鏈提交交易資訊的時刻可以為提交合併交易資訊的時刻,或者,也可以為提交虛假交易資訊的時刻。 步驟S12:在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊。 在本實施例中,所述原始交易資訊可以為來自所述用戶端的交易資訊。具體地,在所述提交時間間隔內,所述用戶端可以向所述匯出方伺服器發送交易資訊,所述匯出方伺服器可以接收交易資訊作為原始交易資訊。其中,所述原始交易資訊可以包括匯入方帳戶標識及其對應的原始交易金額。所述匯入方帳戶標識可以用於標識匯入方帳戶,例如可以為所述匯入方帳戶的名稱或地址等。在本實施例的一個實施方式中,所述原始交易資訊還可以包括真實業務資訊。所述真實業務資訊例如可以包括訂單號、用戶資訊等等。這裡所述原始交易資訊可以直接包括所述真實業務資訊,或者,還可以包括所述真實業務資訊的密文。進一步地,在本實施方式中,所述原始交易資訊還可以包括真實業務資訊的簽名資訊。 在本實施例中,所述合併交易資訊可以包括至少一個匯入方帳戶標識及其對應的合併交易金額。在所述合併交易資訊中,匯入方帳戶標識對應的合併交易金額可以根據該匯入方帳戶標識對應的原始交易金額計算得到,例如可以為該匯入方帳戶標識對應的原始交易金額之和。在本實施例的一個實施方式中,所述原始交易資訊可以包括真實業務資訊。相應地,所述合併交易資訊可以包括至少一個匯入方帳戶標識對應的真實業務資訊。匯入方帳戶標識在合併交易資訊中對應的真實業務資訊可以根據該匯入方帳戶標識在原始交易資訊中對應的真實業務資訊確定得到。這裡所述合併交易資訊可以直接包括所述真實業務資訊,或者,還可以包括所述真實業務資訊的密文。進一步地,在本實施方式中,所述合併交易資訊還可以包括真實業務資訊的簽名資訊。 在本實施例中,所述匯出方伺服器在所述提交時間間隔內接收到的原始交易資訊的數量可以為一個或多個。在接收到的原始交易資訊的數量為一個時,所述匯出方伺服器可以直接將該原始交易資訊作為合併交易資訊。在接收到的原始交易資訊的數量為多個時,所述匯出方伺服器可以將所述多個原始交易資訊合併為至少一個合併交易資訊。具體地,所述匯出方伺服器可以採用任意方式將所述多個原始交易資訊合併為至少一個合併交易資訊。例如,所述匯出方伺服器可以將所述多個原始交易資訊合併為一個合併交易資訊。另舉一例,所述匯出方伺服器可以將所述多個原始交易資訊中具有相同匯入方帳戶標識的原始交易資訊合併為一個合併交易資訊。 在一個場景示例中,所述匯出方伺服器在所述提交時間間隔內接收到的原始交易資訊可以包括A1、A2、A3、B1、B2等5個。所述5個原始交易資訊可以如下表1所示。 表1
Figure 108128082-A0304-0001
所述匯出方伺服器可以將所述5個原始交易資訊合併為一個合併交易資訊。透過合併得到的合併交易資訊可以如下表2所示。 表2
Figure 108128082-A0304-0002
在另一個場景示例中,所述匯出方伺服器在所述提交時間間隔內接收到的原始交易資訊可以包括A4、A5、A6、B3、B4等5個。所述5個原始交易資訊可以如下表3所示。 表3
Figure 108128082-A0304-0003
所述匯出方伺服器可以將所述5個原始交易資訊合併為一個合併交易資訊。透過合併得到的合併交易資訊可以如下表4所示。 表4
Figure 108128082-A0304-0004
當然,所述匯出方伺服器還可以將所述5個原始交易資訊合併為兩個合併交易資訊。透過合併得到的合併交易資訊可以分別如下表5和下表6所示。 表5
Figure 108128082-A0304-0005
表6
Figure 108128082-A0304-0006
步驟S14:向所述區塊鏈提交所述至少一個合併交易資訊。 在本實施例中,所述匯出方設備可以向所述區塊鏈提交所述至少一個合併交易資訊;以便所述區塊鏈中的共識區塊鏈節點能夠根據合併交易資訊中的合併交易金額更新匯出方帳戶的餘額和匯入方帳戶的餘額。例如,從匯出方帳戶的餘額中扣除所述合併交易金額;將合併交易金額記入匯入方帳戶的餘額。其中,所述匯出方設備可以同時向所述區塊鏈提交所述至少一個合併交易資訊,或者,也可以分別向所述區塊鏈提交所述至少一個合併交易資訊。 在本實施例的一個實施方式中,在向所述區塊鏈提交所述至少一個合併交易資訊之前,針對所述至少一個合併交易資訊中的每個合併交易資訊,所述匯出方伺服器還可以根據該合併交易資訊產生校驗資訊;可以在該合併交易資訊中添加該校驗資訊。例如,所述校驗資訊可以包括合併交易資訊的簽名資訊。 在本實施例的一個實施方式中,在向所述區塊鏈提交所述至少一個合併交易資訊之前,所述匯出方伺服器還可以對所述至少一個合併交易資訊中的合併交易金額進行加密處理。這樣可以實現合併交易金額的隱藏和保密。 在本實施例的一個實施方式中,所述匯出方伺服器可以提供有虛假業務資訊集合。所述虛假業務資訊集合可以包括至少一個虛假業務資訊。所述虛假業務資訊例如可以包括虛假的訂單號、虛假的用戶資訊等等。所述虛假業務資訊可以是預先設定的。如此,在向所述區塊鏈提交所述至少一個合併交易資訊之前,針對每個合併交易資訊中的每個匯入方帳戶標識,所述匯出方伺服器還可以從所述虛假業務資訊集合中選取至少一個虛假業務資訊,作為該匯入方帳戶標識在該合併交易資訊中對應的虛假業務資訊。這裡選取的虛假業務資訊的數量可以根據業務需要靈活設定,例如可以選取1個、2個、或5個虛假業務資訊。這樣透過在合併交易資訊中添加虛假業務資訊,可以隱藏合併交易資訊中真實業務資訊的數量,避免透過合併交易資訊中真實業務資訊的數量洩漏交易筆數。 進一步地,在本實施方式中,在所述虛假業務資訊集合中虛假業務資訊可以對應有簽名資訊。相應地,每個合併交易資訊還可以包括虛假業務資訊對應的簽名資訊。 進一步地,在本實施方式中,在所述虛假業務資訊集合中虛假業務資訊可以對應有匯入方帳戶標識。如此,針對每個合併交易資訊中的每個匯入方帳戶標識,所述匯出方伺服器可以從所述虛假業務資訊集合中選取該匯入方帳戶標識對應的虛假業務資訊,作為該合併交易資訊中的虛假業務資訊。 例如,所述虛假業務資訊集合可以包括虛假業務資訊AXJ1_D、AXJ2_D、AXJ3_D、BXJ1_D、BXJ2_D。其中,虛假業務資訊AXJ1_D、AXJ2_D、AXJ3_D可以與匯入方帳戶標識A相對應;虛假業務資訊BXJ1_D、BXJ2_D可以與匯入方帳戶標識B相對應。虛假業務資訊AXJ1_D、AXJ2_D、AXJ3_D、BXJ1_D、BXJ2_D的簽名資訊可以分別為AXJ1_QM、AXJ2_QM、AXJ3_QM、BXJ1_QM、BXJ2_QM。 透過合併得到的合併交易資訊可以前述表4所示。那麼,在添加虛假業務資訊以後,該合併交易資訊可以如下表7所示。 表7
Figure 108128082-A0304-0007
在本實施例的一個實施方式中,在所述提交時間間隔內,所述用戶端有可能沒有向所述匯出方伺服器發送交易資訊。這樣在所述提交時間間隔內,所述匯出方伺服器便沒有接收到原始交易資訊。如此所述匯出方伺服器可以產生虛假交易資訊。所述虛假交易資訊可以包括匯入方帳戶標識及其對應的數值為零的交易金額。這裡所述匯出方伺服器可以採用任意方式獲取匯入方帳戶標識作為所述虛假交易資訊中的匯入方帳戶標識。例如,所述匯出方伺服器可以隨機選取區塊鏈中的帳戶標識,作為所述虛假交易資訊中的匯入方帳戶標識。 所述匯出方伺服器可以對所述虛假交易資訊中數值為零的交易金額進行加密處理;可以向所述區塊鏈提交所述虛假交易資訊。這樣在區塊鏈中的共識區塊鏈節點根據數值為零的交易金額更新匯出方帳戶的餘額和匯入方帳戶的餘額以後,匯出方帳戶的餘額和匯入方帳戶的餘額可以保持不變。 在本實施例中,所述匯出方伺服器可以對在提交時間間隔內接收到的原始交易資訊進行合併處理,使得第三方無法獲得實際向區塊鏈提交的原始交易資訊的數量,從而能夠實現隱藏匯出方帳戶在區塊鏈上的交易筆數。此外,透過對在提交時間間隔內接收到的原始交易資訊進行合併處理,還可以減少區塊鏈處理的交易資訊的數量,從而可以減少區塊鏈輸送量的負擔。 請參閱圖1和圖2。以下介紹本說明書實施例的一個場景示例。 在本場景示例中,所述匯出方設備可以預先在本機存放區有虛假業務資訊集合。所述虛假業務資訊集合可以包括至少一個虛假業務資訊。在所述虛假業務資訊集合中虛假業務資訊可以對應有匯入方帳戶標識和簽名資訊。其中,所述虛假業務資訊集合中的虛假業務資訊可以是由匯出方和匯入方提前約定好的。具體地,例如,匯出方可以提前產生虛假業務資訊併發送給匯入方。匯入方可以對虛假業務資訊進行簽名處理,得到虛假業務資訊的簽名資訊;可以將虛假業務資訊的簽名資訊回饋給匯出方。 在本場景示例中,所述匯出方伺服器可以將最近一次向區塊鏈提交交易資訊的時刻和提交時間間隔相加,得到提交時刻。這裡最近一次向區塊鏈提交交易資訊的時刻可以為提交虛假交易資訊的時刻,也可以為提交真實交易資訊的時刻。所述匯出方伺服器可以在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊。 在本場景示例中,所述匯出方伺服器可以對所述至少一個合併交易資訊進行如下處理。 針對每個合併交易資訊中的匯入方帳戶標識,從所述虛假業務資訊集合中選取該匯入方帳戶標識對應的虛假業務資訊,作為該合併交易資訊中的虛假業務資訊。 對所述至少一個合併交易資訊中的合併交易金額進行加密處理。 對每個合併交易資訊進行簽名處理,得到簽名資訊;將該簽名資訊加入該合併交易資訊。 在本場景示例中,經過上述處理後,所述匯出方伺服器可以向所述區塊鏈提交所述至少一個合併交易資訊。 所述區塊鏈可以根據共識機制確定出共識區塊鏈節點。針對每個合併交易資訊,所述共識區塊鏈節點可以利用相關技術中的防雙花或防重放機制,驗證該交易是否已經執行過;如果已經執行過,可以拒絕該交易;如果未執行過,可以驗證該合併交易資訊中的簽名資訊是否正確;如果不正確,可以拒絕該交易;如果正確,可以根據該合併交易資訊中的合併交易金額更新匯出方帳戶的餘額和匯入方帳戶的餘額。 請參閱圖3。本說明書實施例提供一種基於區塊鏈的資料處理裝置。所述裝置可以包括以下單元。 計算單元20,用於根據基準時刻和提交時間間隔,計算提交時刻; 合併單元22,用於在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊; 提交單元24,用於向所述區塊鏈提交所述至少一個合併交易資訊。 請參閱圖4。本說明書實施例還提供一種伺服器。所述伺服器可以包括儲存器和處理器。 在本實施例中,所述儲存器可以按任何適當的方式實現。例如,所述儲存器可以為唯讀記憶體、機械硬碟、固態硬碟、或USB記憶體等。所述儲存器可以用於儲存電腦指令。 在本實施例中,所述處理器可以按任何適當的方式實現。例如,處理器可以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式碼(例如軟體或韌體)的電腦可讀媒體、邏輯閘、開關、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式設計邏輯控制器和嵌入微控制器的形式等等。所述處理器可以執行所述電腦指令實現以下步驟:根據基準時刻和提交時間間隔,計算提交時刻;在所述提交時刻到達以後,對在所述提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊;向所述區塊鏈提交所述至少一個合併交易資訊。 需要說明的是,本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同或相似的部分互相參見即可,每個實施例重點說明的都是與其它實施例的不同之處。尤其,對於裝置實施例和伺服器實施例而言,由於其基本相似於方法實施例,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 本領域技術人員在閱讀本說明書檔之後,可以無需創造性勞動想到將本說明書列舉的部分或全部實施例進行任意組合,這些組合也在本說明書公開和保護的範圍內。 在20世紀90年代,對於一個技術的改進可以很明顯地區分是硬體上的改進(例如,對二極體、電晶體、開關等電路結構的改進)還是軟體上的改進(對於方法流程的改進)。然而,隨著技術的發展,當今的很多方法流程的改進已經可以視為硬體電路結構的直接改進。設計人員幾乎都透過將改進的方法流程程式設計到硬體電路中來得到相應的硬體電路結構。因此,不能說一個方法流程的改進就不能用硬體實體模組來實現。例如,可程式設計邏輯裝置(Programmable Logic Device, PLD)(例如現場可程式設計閘陣列(Field Programmable Gate Array,FPGA))就是這樣一種積體電路,其邏輯功能由用戶對裝置程式設計來確定。由設計人員自行程式設計來把一個數位系統“整合”在一片PLD 上,而不需要請晶片製造廠商來設計和製作專用的積體電路晶片2。而且,如今,取代手工地製作積體電路晶片,這種程式設計也多半改用 “邏輯編譯器(logic compiler)”軟體來實現,它與程式開發撰寫時所用的軟體編譯器相類似,而要編譯之前的原始代碼也得用特定的程式設計語言來撰寫,此稱之為硬體描述語言(Hardware Description Language,HDL),而HDL也並非僅有一種,而是有許多種,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)與Verilog2。本領域技術人員也應該清楚,只需要將方法流程用上述幾種硬體描述語言稍作邏輯程式設計並程式設計到積體電路中,就可以很容易得到實現該邏輯方法流程的硬體電路。 上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦。具體的,電腦例如可以為個人電腦、膝上型電腦、行動電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任何設備的組合。 透過以上的實施方式的描述可知,本領域的技術人員可以清楚地瞭解到本說明書可借助軟體加必需的通用硬體平臺的方式來實現。基於這樣的理解,本說明書的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品可以儲存在儲存媒體中,如ROM/RAM、磁碟、光碟等,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本說明書各個實施例或者實施例的某些部分所述的方法。 本說明書可用於眾多通用或專用的電腦系統環境或配置中。例如:個人電腦、伺服器電腦、手持設備或可攜式設備、平板型設備、多處理器系統、基於微處理器的系統、機上盒、可程式設計的消費電子設備、網路PC、小型電腦、大型電腦、包括以上任何系統或設備的分散式運算環境等等。 本說明書可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的常式、程式、物件、元件、資料結構等等。也可以在分散式運算環境中實踐本說明書,在這些分散式運算環境中,由透過通信網路而被連接的遠端處理設備來執行任務。在分散式運算環境中,程式模組可以位於包括儲存設備在內的本地和遠端電腦儲存媒體中。 雖然透過實施例描繪了本說明書,本領域普通技術人員知道,本說明書有許多變形和變化而不脫離本說明書的精神,希望申請專利範圍包括這些變形和變化而不脫離本說明書的精神。The technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this specification. Please refer to Figure 1 and Figure 2. The embodiment of this specification provides a data processing method based on blockchain. In this embodiment, the block chain (Block Chain) can be a chronological order that organizes multiple block data in a chain structure, and uses cryptographic algorithms to ensure security, traceability, and Distributed ledger that cannot be tampered with. The block chain may include a public block chain, a joint block chain (also called a consortium block chain), and a private block chain. The blockchain can be implemented based on a blockchain network. The blockchain network may include a peer-to-peer network and the like. The blockchain network may include multiple blockchain nodes. Each blockchain node jointly maintains a unified blockchain ledger. In this embodiment, the data processing method is executed by the exporting server. The exporter server can join the blockchain network as a blockchain node. An exporter account may be registered in the exporter server. The account of the exporter may be an account of the exporter in the blockchain. The exporter server can communicate with the client. The user terminal may be, for example, a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), or a smart wearable device. The data processing method may include the following steps. Step S10: Calculate the submission time according to the reference time and the submission time interval. In this embodiment, the reference time may include at least one of the following: the time when the merged transaction information was submitted to the blockchain for the last time, and the time when the false transaction information was submitted to the blockchain for the last time. There will be detailed introductions about the merged transaction information and the false transaction information in the follow-up process. In this embodiment, the value of the submission time interval can be flexibly set according to business needs. Specifically, the value of the submission time interval may be a fixed value; or, it may be divided into time periods according to actual business needs, and set to a fixed value in each time period; or, it may also be a random value. For example, the value of the submission time interval during peak trading period can be set to 0.1 seconds (it can also be set shorter or longer according to business requirements); the value of submission time interval during the low transaction period can be set to 1 minute (you can also Set shorter or longer according to business requirements). Of course, the value of the submission time interval can also be set according to a distribution function, so that the value of the submission time interval meets the distribution function. The distribution function may include, for example, an exponential distribution function and an Erlang Distribution function. Wherein, the expression of the exponential distribution function can be
Figure 02_image001
; The expression of the Erlang distribution function can be
Figure 02_image003
. Here
Figure 02_image005
Indicates the value of the submission time interval;
Figure 02_image007
Indicates the arrival rate;
Figure 02_image009
Indicates the order of the Erlang distribution function. Wherein, the arrival rate may represent the number of events occurring in a unit time. In some scenario examples, the arrival rate may specifically represent the number of transactions per unit time. In actual business, for example, the expected transaction (including real transaction and false transaction) arrival rate D of the submission time interval can be set; the actual arrival rate E of real transactions can be counted. Then, in the exponential distribution function and the Erlang distribution function
Figure 02_image011
. Of course, those skilled in the art should be able to understand that the above-mentioned method of setting the value of the submission time interval according to the distribution function and the Erlang distribution function is only an example. In fact, any other suitable methods can be used according to the distribution function and the Erlang distribution function. Way to set the value of the submission time interval. In this embodiment, the exporter server may add the reference time and the submission time interval to obtain the submission time. Specifically, the exporter server may add the time when the transaction information was last submitted to the blockchain and the submission time interval to obtain the submission time. Here, the time when the latest transaction information was submitted to the blockchain may be the time when the merged transaction information was submitted, or it could be the time when the false transaction information was submitted. Step S12: After the submission time arrives, at least one piece of original transaction information received within the submission time interval is merged to obtain at least one piece of merged transaction information. In this embodiment, the original transaction information may be transaction information from the client. Specifically, within the submission time interval, the client can send transaction information to the exporter server, and the exporter server can receive the transaction information as original transaction information. Wherein, the original transaction information may include the account identification of the importer and its corresponding original transaction amount. The importer account identifier may be used to identify the importer's account, for example, it may be the name or address of the importer's account. In an implementation of this embodiment, the original transaction information may also include real business information. The real business information may include, for example, order number, user information, and so on. The original transaction information herein may directly include the real business information, or may also include the cipher text of the real business information. Further, in this embodiment, the original transaction information may also include signature information of real business information. In this embodiment, the combined transaction information may include at least one remitter account identifier and its corresponding combined transaction amount. In the combined transaction information, the combined transaction amount corresponding to the remitter’s account identifier can be calculated based on the original transaction amount corresponding to the remitter’s account identifier, for example, it may be the sum of the original transaction amount corresponding to the remitter’s account identifier . In an implementation of this embodiment, the original transaction information may include real business information. Correspondingly, the combined transaction information may include real business information corresponding to at least one importer account identifier. The real business information corresponding to the importer's account identifier in the consolidated transaction information can be determined based on the real business information corresponding to the importer's account identifier in the original transaction information. The combined transaction information here may directly include the real business information, or it may also include the ciphertext of the real business information. Further, in this embodiment, the combined transaction information may also include signature information of real business information. In this embodiment, the number of original transaction information received by the exporter server within the submission time interval may be one or more. When the number of received original transaction information is one, the exporting server may directly use the original transaction information as the combined transaction information. When the number of received original transaction information is multiple, the exporter server may merge the multiple original transaction information into at least one combined transaction information. Specifically, the exporter server may use any method to merge the multiple original transaction information into at least one merged transaction information. For example, the exporter server may merge the multiple original transaction information into one merged transaction information. For another example, the exporter server may merge the original transaction information with the same importer account identifier among the multiple original transaction information into one combined transaction information. In an example scenario, the original transaction information received by the exporter server during the submission time interval may include 5 pieces of A1, A2, A3, B1, B2, etc. The five original transaction information can be shown in Table 1 below. Table 1
Figure 108128082-A0304-0001
The exporter server may merge the five original transaction information into one merged transaction information. The combined transaction information obtained through the merger can be shown in Table 2 below. Table 2
Figure 108128082-A0304-0002
In another scenario example, the original transaction information received by the exporter server within the submission time interval may include 5 items such as A4, A5, A6, B3, and B4. The five original transaction information can be shown in Table 3 below. table 3
Figure 108128082-A0304-0003
The exporter server may merge the five original transaction information into one merged transaction information. The combined transaction information obtained through the merger can be shown in Table 4 below. Table 4
Figure 108128082-A0304-0004
Of course, the exporter server may also merge the five original transaction information into two merged transaction information. The combined transaction information obtained through the merger can be shown in Table 5 and Table 6 below, respectively. table 5
Figure 108128082-A0304-0005
Table 6
Figure 108128082-A0304-0006
Step S14: Submit the at least one combined transaction information to the blockchain. In this embodiment, the exporter device may submit the at least one combined transaction information to the blockchain; so that the consensus blockchain node in the blockchain can be based on the combined transaction in the combined transaction information The amount updates the balance of the remitting party's account and the remitting party's account. For example, deduct the combined transaction amount from the balance of the remitting party's account; record the combined transaction amount into the balance of the remitter's account. Wherein, the exporter device may submit the at least one combined transaction information to the blockchain at the same time, or may also submit the at least one combined transaction information to the blockchain separately. In an implementation of this embodiment, before submitting the at least one combined transaction information to the blockchain, for each combined transaction information in the at least one combined transaction information, the exporter server The verification information can also be generated based on the combined transaction information; the verification information can be added to the combined transaction information. For example, the verification information may include signature information of combined transaction information. In an implementation of this embodiment, before submitting the at least one consolidated transaction information to the blockchain, the exporter server may also perform a check on the consolidated transaction amount in the at least one consolidated transaction information. Encryption processing. In this way, the concealment and confidentiality of the combined transaction amount can be realized. In an implementation of this embodiment, the exporter server may provide a set of false business information. The set of false business information may include at least one false business information. The false business information may include, for example, false order numbers, false user information, and so on. The false business information may be preset. In this way, before submitting the at least one consolidated transaction information to the blockchain, for each importer account identifier in each consolidated transaction information, the exporter server may also obtain information from the fake business information. At least one piece of false business information is selected from the set as the false business information corresponding to the importer’s account identifier in the merged transaction information. The number of false business information selected here can be flexibly set according to business needs, for example, one, two, or five false business information can be selected. In this way, by adding false business information to the merged transaction information, the amount of real business information in the merged transaction information can be hidden, and the number of transactions can be avoided through the amount of real business information in the merged transaction information. Further, in this embodiment, the false business information in the false business information set may correspond to signature information. Correspondingly, each combined transaction information may also include signature information corresponding to the false business information. Further, in this embodiment, the false business information in the false business information set may correspond to the importer's account identifier. In this way, for each importer account identifier in each merged transaction information, the exporter server can select the false business information corresponding to the importer account identifier from the set of false business information as the merged transaction information. False business information in transaction information. For example, the set of false business information may include false business information AXJ1_D, AXJ2_D, AXJ3_D, BXJ1_D, and BXJ2_D. Among them, the false business information AXJ1_D, AXJ2_D, and AXJ3_D can correspond to the importer's account identifier A; the false business information BXJ1_D, BXJ2_D can correspond to the importer's account identifier B. The signature information of false business information AXJ1_D, AXJ2_D, AXJ3_D, BXJ1_D, BXJ2_D can be AXJ1_QM, AXJ2_QM, AXJ3_QM, BXJ1_QM, BXJ2_QM, respectively. The combined transaction information obtained through the merger can be shown in Table 4 above. Then, after adding false business information, the combined transaction information can be as shown in Table 7 below. Table 7
Figure 108128082-A0304-0007
In an implementation of this embodiment, within the submission time interval, the client may not send transaction information to the exporter server. In this way, within the submission time interval, the exporting server does not receive the original transaction information. The exporter's server as described above can generate false transaction information. The false transaction information may include the importer's account identifier and the corresponding transaction amount of zero. Here, the exporter server may use any method to obtain the importer's account identifier as the importer's account identifier in the fake transaction information. For example, the exporter server may randomly select an account identifier in the blockchain as the importer account identifier in the fake transaction information. The exporter server can encrypt the transaction amount with a value of zero in the false transaction information; and can submit the false transaction information to the blockchain. In this way, after the consensus blockchain node in the blockchain updates the balance of the remittance account and the balance of the remittance account according to the transaction amount of zero, the balance of the remittance account and the balance of the remittance account can be maintained constant. In this embodiment, the exporter server can merge the original transaction information received within the submission time interval, so that the third party cannot obtain the actual amount of original transaction information submitted to the blockchain, so that it can Achieve hiding the number of transactions of the sender's account on the blockchain. In addition, by merging the original transaction information received within the submission time interval, the amount of transaction information processed by the blockchain can also be reduced, thereby reducing the burden of blockchain transportation. Please refer to Figure 1 and Figure 2. The following introduces a scenario example of the embodiment of this specification. In this scenario example, the exporter device may have a collection of false business information in the local storage area in advance. The set of false business information may include at least one false business information. The false business information in the false business information set may correspond to the importer's account identification and signature information. Wherein, the false business information in the false business information set may be agreed in advance by the exporter and the importer. Specifically, for example, the sender can generate false business information in advance and send it to the importer. The importer can sign the false business information to obtain the signature information of the false business information; it can return the signature information of the false business information to the exporter. In this scenario example, the exporter server may add the time when the transaction information was last submitted to the blockchain and the submission time interval to obtain the submission time. Here, the time when the most recent transaction information was submitted to the blockchain can be the time when the fake transaction information was submitted, or the time when the real transaction information was submitted. The exporter server may merge at least one piece of original transaction information received within the submission time interval after the submission time arrives to obtain at least one piece of merged transaction information. In this scenario example, the exporter server may perform the following processing on the at least one consolidated transaction information. For each importer account identifier in the merged transaction information, the false business information corresponding to the importer account identifier is selected from the set of false business information as the false business information in the merged transaction information. Encryption processing is performed on the combined transaction amount in the at least one combined transaction information. Perform signature processing on each merged transaction information to obtain signature information; add the signature information to the merged transaction information. In this scenario example, after the above processing, the exporter server may submit the at least one merged transaction information to the blockchain. The block chain can determine the consensus block chain node according to the consensus mechanism. For each combined transaction information, the consensus blockchain node can use the anti-double-spending or anti-replay mechanism in related technologies to verify whether the transaction has been executed; if it has been executed, the transaction can be rejected; if it has not been executed Yes, you can verify whether the signature information in the merged transaction information is correct; if it’s not correct, you can reject the transaction; if it’s correct, you can update the balance of the exporter’s account and the importer’s account based on the merged transaction amount in the merged transaction information Balance. Please refer to Figure 3. The embodiment of this specification provides a data processing device based on blockchain. The device may include the following units. The calculation unit 20 is configured to calculate the submission time according to the reference time and the submission time interval; the merging unit 22 is configured to merge at least one original transaction information received within the submission time interval after the submission time arrives Processing to obtain at least one merged transaction information; the submission unit 24 is configured to submit the at least one merged transaction information to the blockchain. Please refer to Figure 4. The embodiment of this specification also provides a server. The server may include a storage and a processor. In this embodiment, the storage can be implemented in any suitable manner. For example, the storage may be read-only memory, mechanical hard disk, solid-state hard disk, or USB memory. The storage can be used to store computer instructions. In this embodiment, the processor can be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or a processor and a computer-readable medium, logic gates, switches, special-purpose integrated circuits that store computer-readable program codes (such as software or firmware) executable by the (micro)processor. Circuit (Application Specific Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller form, etc. The processor may execute the computer instructions to implement the following steps: calculate the submission time according to the reference time and the submission time interval; after the submission time arrives, check the at least one original transaction information received within the submission time interval Perform merge processing to obtain at least one merged transaction information; submit the at least one merged transaction information to the blockchain. It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. Place. In particular, as for the device embodiment and the server embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. After reading this specification, those skilled in the art can think of any combination of some or all of the embodiments listed in this specification without creative work, and these combinations are also within the scope of the disclosure and protection of this specification. In the 1990s, the improvement of a technology can be clearly distinguished from the improvement of the hardware (for example, the improvement of the circuit structure of diodes, transistors, switches, etc.) or the improvement of the software (for the process of the method). Improve). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is designed by the designer to "integrate" a digital system on a PLD without having to ask the chip manufacturer to design and manufacture a dedicated integrated circuit chip2. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly realized by using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation must also be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one type of HDL, but many types, such as ABEL (Advanced). Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., Currently the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2. Those skilled in the art should also be aware that only a little logic programming of the method flow using the above hardware description languages and programming into an integrated circuit can easily obtain a hardware circuit that implements the logic method flow. The systems, devices, modules, or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a mobile phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, and a wearable device. Or a combination of any of these devices. From the description of the above embodiments, those skilled in the art can clearly understand that this specification can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of this manual can be embodied in the form of a software product in essence or the part that contributes to the existing technology. The computer software product can be stored in a storage medium, such as ROM/RAM, magnetic disk, An optical disc, etc., includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment in this specification. This manual can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, small Computers, mainframe computers, distributed computing environments including any of the above systems or equipment, etc. This manual can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This manual can also be practiced in a distributed computing environment. In these distributed computing environments, remote processing devices connected through a communication network perform tasks. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices. Although this specification has been described through the embodiments, those of ordinary skill in the art know that there are many variations and changes in this specification without departing from the spirit of this specification, and it is hoped that the scope of patent application includes these variations and changes without departing from the spirit of this specification.

20:計算單元 22:合併單元 24:提交單元20: Computing unit 22: Merging Unit 24: Submit unit

為了更清楚地說明本說明書實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本說明書中記載的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動性的前提下,還可以根據這些圖式獲得其他的圖式。 圖1為本說明書實施例一種資料處理方法的流程圖; 圖2為本說明書實施例一種資料處理方法的示意圖; 圖3為本說明書實施例一種資料處理裝置的功能結構示意圖; 圖4為本說明書實施例一種伺服器的功能結構示意圖。In order to more clearly explain the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings that need to be used in the embodiments or the description of the prior art. Obviously, the drawings in the following description are merely the present For some of the embodiments described in the specification, for those of ordinary skill in the art, without creative labor, other schemes can be obtained based on these schemes. Fig. 1 is a flowchart of a data processing method according to an embodiment of the specification; Figure 2 is a schematic diagram of a data processing method according to an embodiment of the specification; 3 is a schematic diagram of the functional structure of a data processing device according to an embodiment of the specification; Fig. 4 is a schematic diagram of the functional structure of a server according to an embodiment of the specification.

Claims (12)

一種基於區塊鏈的資料處理方法,包括:根據基準時刻和提交時間間隔,計算提交時刻;在該提交時刻到達以後,對在該提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊;向該區塊鏈提交該至少一個合併交易資訊,其中,該基準時刻包括以下至少一種:最近一次向該區塊鏈提交合併交易資訊的時刻;及最近一次向該區塊鏈提交虛假交易資訊的時刻。 A blockchain-based data processing method includes: calculating the submission time according to the reference time and the submission time interval; after the submission time arrives, merging at least one original transaction information received within the submission time interval, Obtain at least one merged transaction information; submit the at least one merged transaction information to the blockchain, where the reference time includes at least one of the following: the last time the merged transaction information was submitted to the blockchain; and the most recent time to the district The moment when the block chain submits false transaction information. 如申請專利範圍第1項所述的方法,該原始交易資訊包括匯入方帳戶標識及其對應的原始交易金額;該合併交易資訊包括匯入方帳戶標識及其對應的合併交易金額;匯入方帳戶標識對應的合併交易金額根據該匯入方帳戶標識對應的原始交易金額計算得到。 For example, in the method described in item 1 of the scope of patent application, the original transaction information includes the importer’s account identifier and its corresponding original transaction amount; the combined transaction information includes the importer’s account identifier and its corresponding combined transaction amount; The combined transaction amount corresponding to the party account identifier is calculated based on the original transaction amount corresponding to the remittance party's account identifier. 如申請專利範圍第2項所述的方法,匯入方帳戶標識對應的合併交易金額為該匯入方帳戶標識對應的原始交易金額之和。 As in the method described in item 2 of the scope of patent application, the combined transaction amount corresponding to the remitter’s account identifier is the sum of the original transaction amounts corresponding to the remitter’s account identifier. 如申請專利範圍第2項所述的方法,在向該區塊鏈提 交該至少一個合併交易資訊之前,該方法還包括:對該至少一個合併交易資訊中的合併交易金額進行加密處理。 For the method described in item 2 of the scope of patent application, Before submitting the at least one combined transaction information, the method further includes: performing encryption processing on the combined transaction amount in the at least one combined transaction information. 如申請專利範圍第1項所述的方法,該原始交易資訊包括匯入方帳戶標識及其對應的真實業務資訊;該合併交易資訊包括匯入方帳戶標識及其對應的真實業務資訊;匯入方帳戶標識在合併交易資訊中對應的真實業務資訊根據該匯入方帳戶標識在原始交易資訊中對應的真實業務資訊確定得到。 For the method described in item 1 of the scope of the patent application, the original transaction information includes the importer’s account identifier and its corresponding real business information; the combined transaction information includes the importer’s account identifier and its corresponding real business information; The real business information corresponding to the party account identifier in the consolidated transaction information is determined based on the real business information corresponding to the importer's account identifier in the original transaction information. 如申請專利範圍第5項所述的方法,該原始交易資訊還包括真實業務資訊的簽名資訊;該合併交易資訊還包括真實業務資訊的簽名資訊。 For the method described in item 5 of the scope of patent application, the original transaction information also includes signature information of real business information; the combined transaction information also includes signature information of real business information. 如申請專利範圍第1項所述的方法,提供有虛假業務資訊集合;該虛假業務資訊集合包括至少一個虛假業務資訊;相應地,在向該區塊鏈提交該至少一個合併交易資訊之前,該方法還包括:針對該合併交易資訊中的匯入方帳戶標識,從該虛假業務資訊集合中選取至少一個虛假業務資訊,作為該匯入方帳戶標識在該合併交易資訊中對應的虛假業務資訊。 For example, the method described in item 1 of the scope of patent application provides a set of false business information; the set of false business information includes at least one false business information; accordingly, before submitting the at least one combined transaction information to the blockchain, the The method further includes: for the importer account identifier in the merged transaction information, selecting at least one false business information from the set of false business information as the false business information corresponding to the importer account identifier in the merged transaction information. 如申請專利範圍第7項所述的方法,在該虛假業務資 訊集合中虛假業務資訊對應有匯入方帳戶標識;相應地,在選取虛假業務資訊的步驟中包括:針對該合併交易資訊中的匯入方帳戶標識,從該虛假業務資訊集合中選取該匯入方帳戶標識對應的虛假業務資訊,作為該合併交易資訊中的虛假業務資訊。 For the method described in item 7 of the scope of patent application, the false business capital The false business information in the information collection corresponds to the importer’s account identifier; accordingly, the step of selecting the false business information includes: for the importer’s account identifier in the combined transaction information, select the importer’s account identifier from the false business information collection. The false business information corresponding to the incoming account identifier is regarded as the false business information in the combined transaction information. 如申請專利範圍第7項所述的方法,該合併交易資訊還包括虛假業務資訊的簽名資訊。 Such as the method described in item 7 of the scope of patent application, the combined transaction information also includes signature information of false business information. 如申請專利範圍第1項所述的方法,該方法還包括:在該提交時間間隔內沒有接收到原始交易資訊的條件下,產生虛假交易資訊;該虛假交易資訊包括匯入方帳戶標識及其對應的數值為零的交易金額;對該數值為零的交易金額進行加密處理;向該區塊鏈提交該虛假交易資訊。 For example, the method described in item 1 of the scope of patent application, the method also includes: generating false transaction information under the condition that the original transaction information is not received within the submission time interval; the false transaction information includes the importer’s account identification and its The corresponding value is zero transaction amount; the value of zero transaction amount is encrypted; the false transaction information is submitted to the blockchain. 一種基於區塊鏈的資料處理裝置,包括計算單元,用於根據基準時刻和提交時間間隔,計算提交時刻;合併單元,用於在該提交時刻到達以後,對在該提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊;提交單元,用於向該區塊鏈提交該至少一個合併交易資訊, 其中,該基準時刻包括以下至少一種:最近一次向該區塊鏈提交合併交易資訊的時刻;及最近一次向該區塊鏈提交虛假交易資訊的時刻。 A block chain-based data processing device includes a calculation unit for calculating the submission time according to the reference time and the submission time interval; the merging unit is used for checking the submission time received within the submission time interval after the submission time is reached At least one piece of original transaction information is merged to obtain at least one piece of merged transaction information; the submission unit is used to submit the at least one piece of merged transaction information to the blockchain, Wherein, the reference time includes at least one of the following: the time when the merged transaction information was submitted to the blockchain for the most recent time; and the time when the false transaction information was submitted to the blockchain for the most recent time. 一種伺服器,包括:儲存器,用於儲存電腦指令;處理器,用於執行該電腦指令實現以下步驟:根據基準時刻和提交時間間隔,計算提交時刻;在該提交時刻到達以後,對在該提交時間間隔內接收到的至少一個原始交易資訊進行合併處理,得到至少一個合併交易資訊;向區塊鏈提交該至少一個合併交易資訊,其中,該基準時刻包括以下至少一種:最近一次向該區塊鏈提交合併交易資訊的時刻;及最近一次向該區塊鏈提交虛假交易資訊的時刻。 A server includes: a memory for storing computer instructions; a processor for executing the computer instructions to implement the following steps: calculate the submission time according to the reference time and the submission time interval; At least one piece of original transaction information received within the submission time interval is merged to obtain at least one piece of merged transaction information; the at least one piece of merged transaction information is submitted to the blockchain, where the reference time includes at least one of the following: The moment when the block chain submitted the merged transaction information; and the moment when the last false transaction information was submitted to the block chain.
TW108128082A 2018-11-05 2019-08-07 Data processing method, device and server based on blockchain TWI718614B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811308455.4 2018-11-05
CN201811308455.4A CN110046990A (en) 2018-11-05 2018-11-05 Data processing method, device and server based on block chain

Publications (2)

Publication Number Publication Date
TW202018644A TW202018644A (en) 2020-05-16
TWI718614B true TWI718614B (en) 2021-02-11

Family

ID=67273139

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108128082A TWI718614B (en) 2018-11-05 2019-08-07 Data processing method, device and server based on blockchain

Country Status (3)

Country Link
CN (1) CN110046990A (en)
TW (1) TWI718614B (en)
WO (1) WO2020093736A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046990A (en) * 2018-11-05 2019-07-23 阿里巴巴集团控股有限公司 Data processing method, device and server based on block chain
CN110909038B (en) * 2019-10-24 2021-05-11 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain and electronic equipment
CN110929293B (en) * 2019-12-11 2022-11-15 佛山科学技术学院 Beautifying data storage system based on block chain
US20210314139A1 (en) * 2020-04-01 2021-10-07 International Business Machines Corporation Noisy transaction for protection of data
CN112435120B (en) * 2020-11-05 2023-01-31 德州职业技术学院(德州市技师学院) Block chain data supervision method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10417217B2 (en) * 2016-08-05 2019-09-17 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization
CN106330431A (en) * 2016-08-29 2017-01-11 北京瑞卓喜投科技发展有限公司 Data processing method, apparatus and system based on block chain technology
CN106549749B (en) * 2016-12-06 2019-12-24 杭州趣链科技有限公司 Block chain privacy protection method based on addition homomorphic encryption
CN106899698B (en) * 2017-04-11 2020-12-18 张铮文 Cross-chain interoperation method between block chains
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107678865A (en) * 2017-09-20 2018-02-09 中国银行股份有限公司 The verification method and system of block chain based on transaction packet
CN108062672B (en) * 2017-12-07 2022-03-18 北京泛融科技有限公司 Flow scheduling method based on block chain intelligent contract
CN108198018A (en) * 2017-12-27 2018-06-22 邵美 A kind of trade network system and its implementation for block chain address ranking
CN108540484A (en) * 2018-04-23 2018-09-14 北京云图科瑞科技有限公司 A kind of method of commerce, apparatus and system based on block chain
CN110046990A (en) * 2018-11-05 2019-07-23 阿里巴巴集团控股有限公司 Data processing method, device and server based on block chain

Also Published As

Publication number Publication date
CN110046990A (en) 2019-07-23
TW202018644A (en) 2020-05-16
WO2020093736A1 (en) 2020-05-14

Similar Documents

Publication Publication Date Title
TWI698115B (en) Blockchain-based transaction method, device and remittance equipment
TWI718614B (en) Data processing method, device and server based on blockchain
TW202014950A (en) Blockchain-based transaction method, device, and remitting apparatus
KR102541219B1 (en) Beam control method, base station, and terminal
TWI705350B (en) Method and device for processing transaction request
TWI706362B (en) Data processing method, device and server based on blockchain
WO2018171539A1 (en) Method and device for processing service request
WO2020258840A1 (en) Blockchain-based transaction processing method and apparatus, and electronic device
TW201917666A (en) Data auditing method and device
TW201832100A (en) Block chain system, and data storage method and apparatus
TW201822033A (en) Resource processing method and apparatus
US11201870B2 (en) Using commit tokens to coordinate permissions submissions to address transaction conflict in blockchain systems
WO2020108110A1 (en) Blockchain-based logistics information tracing method and apparatus, and electronic device
TWI697856B (en) Scanning code safety verification method and device
TW202009760A (en) Identity information identification method and device
WO2020220744A1 (en) Blockchain-based data processing method and apparatus, and blockchain node
TW202008271A (en) Method, apparatus and electronic device for blockchain transactions
TW202016819A (en) Block-chain transaction method and device and electronic device
US11222011B2 (en) Blockchain-based transaction processing
US11115188B2 (en) Blockchain-based data processing method, apparatus, and blockchain node
WO2019179244A1 (en) Service check method and device