WO2021129005A1 - Blockchain state change-based transaction tracking method and device - Google Patents

Blockchain state change-based transaction tracking method and device Download PDF

Info

Publication number
WO2021129005A1
WO2021129005A1 PCT/CN2020/117173 CN2020117173W WO2021129005A1 WO 2021129005 A1 WO2021129005 A1 WO 2021129005A1 CN 2020117173 W CN2020117173 W CN 2020117173W WO 2021129005 A1 WO2021129005 A1 WO 2021129005A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
blockchain
state
historical
identifier
Prior art date
Application number
PCT/CN2020/117173
Other languages
French (fr)
Chinese (zh)
Inventor
许玉壮
王贺贺
朱涛
胡景秀
Original Assignee
中国银联股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2021129005A1 publication Critical patent/WO2021129005A1/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
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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/10Tax strategies
    • 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/12Accounting
    • G06Q40/123Tax preparation or submission

Definitions

  • FIG. 4 is a schematic diagram of a system architecture provided by an embodiment of the present invention.
  • the data structure of the blockchain state can be as shown in Figure 3.
  • add transaction hash collection fields for example, txH1, txH2, txH3, txH4, txH5, .
  • txH1, txH2, txH3, txH4, txH5 Used to store the transaction history hash collection. That is to say, in addition to storing the required document data, it is also necessary to store the transaction hash value collection of all transactions that change the state of the blockchain.
  • the state needs to have the following fields:
  • the invoice status is stored in a data structure with transaction hash collection fields as shown in Figure 3.
  • the SDK Software Development Kit, software development kit
  • the SDK uses a tool independently developed based on the open source Fabric SDK, which is more convenient to use than the original SDK. Fast.
  • Each merchant connects with the invoicing service provider through its own cash register system, and each invoicing service provider connects to the blockchain invoice node of the tax bureau through the SDK provided by the tax bureau's blockchain invoice system.
  • the device specifically includes:
  • each historical transaction data corresponding to the transaction identifier is determined.
  • processing unit 502 is further configured to:
  • the block chain state is updated, and the hash value of the block is stored in the historical transaction hash set in the block chain state.
  • the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
  • the memory 603 is used to store programs.
  • the program may include program code, and the program code includes computer operation instructions.
  • the memory 603 may be a random access memory (random access memory, RAM for short), or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure. Of course, the memory can also be set to multiple as required.
  • the memory 603 may also be a memory in the processor 602.
  • the foregoing method for tracing a blockchain state change transaction in the embodiment of the present invention may be applied to the processor 602, or implemented by the processor 602.
  • the processor 602 may be an integrated circuit chip with signal processing capability.
  • the steps of the method for tracing the blockchain state change transaction can be completed by the integrated logic circuit of the hardware in the processor 602 or the instructions in the form of software.
  • the aforementioned processor 602 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware Components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the transceiver 601 is used to obtain the transaction identifier of the transaction to be traced
  • the blockchain state is the state at the time of the latest transaction execution corresponding to the transaction identifier.
  • the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
  • the processor is used to call the program instructions stored in the memory, and execute the above-mentioned blockchain state change transaction traceability method according to the obtained program.

Abstract

A blockchain state change-based transaction tracking method and device. Said method comprises: a blockchain node acquiring a transaction identifier of a transaction to be tracked (201); the blockchain node determining, according to the transaction identifier, a blockchain state corresponding to the transaction identifier (202); and the blockchain node determining, according to a historical transaction hash set, each piece of historical transaction data corresponding to the transaction identifier (203). By adding in a blockchain state a transaction hash value when the blockchain state changes, historical transaction data can be quickly found, thereby solving the problem in the prior art that only the latest state of blockchain data can be found by means of a smart contract, and a historical transaction record in a block cannot be directly tracked, improving the tracking efficiency of the historical transaction data.

Description

一种区块链状态变更交易追溯的方法及装置Method and device for tracing block chain state change transaction
相关申请的交叉引用Cross references to related applications
本申请要求在2019年12月25日提交中国专利局、申请号为201911356606.8、申请名称为“一种区块链状态变更交易追溯的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on December 25, 2019, the application number is 201911356606.8, and the application name is "a method and device for the traceability of blockchain state change transactions". The entire content of the application is approved The reference is incorporated in this application.
技术领域Technical field
本发明实施例涉及区块链技术领域,尤其涉及一种区块链状态变更交易追溯的方法及装置。The embodiments of the present invention relate to the field of blockchain technology, and in particular to a method and device for tracing blockchain state change transactions.
背景技术Background technique
在区块链电子票据服务系统中,由于电子票据的特殊性,因此区块链电子票据从开票、打印、收票、报销、红冲等状态税局作为监管部门需要追溯整个的流程,对于监管恶意开票企业的需求,也需要追溯发票的全流程信息来更进一步对开票企业在发票的各个阶段中的对应的行为进行挖掘分析。但是,在目前的查询区块链上的数据的方案中,仅能获得的最新的区块链状态,而对区块链中的区块链状态变化情况是没有办法获取的,进而无法直接追溯区块中历史交易记录。In the blockchain electronic bill service system, due to the particularity of electronic bills, the state tax bureau as a supervisory authority needs to trace the entire process from invoicing, printing, receipt, reimbursement, and red flushing. The needs of malicious invoicing companies also need to trace the entire process information of the invoice to further analyze the corresponding behaviors of the invoicing companies in each stage of the invoice. However, in the current scheme of querying the data on the blockchain, only the latest blockchain state can be obtained, and there is no way to obtain the state changes of the blockchain in the blockchain, and thus cannot be directly traced back. Historical transaction records in the block.
发明内容Summary of the invention
本发明实施例提供一种区块链状态变更交易追溯的方法及装置,用以解决现有区块链数据通过智能合约只能查询到最新状态,无法直接追溯区块中历史交易记录的问题。The embodiment of the present invention provides a method and device for tracing a block chain state change transaction, which is used to solve the problem that the existing block chain data can only be queried to the latest state through a smart contract and cannot directly trace the historical transaction records in the block.
第一方面,本发明实施例提供一种区块链状态变更交易追溯的方法,包括:In the first aspect, an embodiment of the present invention provides a method for tracing blockchain state change transactions, including:
区块链节点获取待追溯交易的交易标识;The blockchain node obtains the transaction identifier of the transaction to be traced;
所述区块链节点根据所述交易标识,确定出所述交易标识对应区块链状态;所述区块链状态包括历史交易hash(哈希)集合,所述历史交易hash集合中包括所述区块链状态发生变化时的交易的hash值;The blockchain node determines the state of the blockchain corresponding to the transaction identifier according to the transaction identifier; the blockchain state includes a historical transaction hash (hash) set, and the historical transaction hash set includes the The hash value of the transaction when the state of the blockchain changes;
所述区块链节点根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据。The blockchain node determines each historical transaction data corresponding to the transaction identifier according to the historical transaction hash set.
上述技术方案中,通过在区块链状态中增加区块链状态发生变化时的交易hash值,可以实现快速的查找到历史的交易数据,从而可以解决现有区块链数据通过智能合约只能查询到最新状态,无法直接追溯区块中历史交易记录的问题,提高历史交易数据的追溯效率。In the above technical solution, by adding the transaction hash value when the blockchain state changes in the blockchain state, it is possible to quickly find historical transaction data, which can solve the problem that the existing blockchain data can only be found through smart contracts. When the latest status is queried, it is impossible to directly trace the historical transaction records in the block, and improve the traceability efficiency of historical transaction data.
可选的,所述区块链节点根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据,包括:Optionally, the block chain node determines each historical transaction data corresponding to the transaction identifier according to the historical transaction hash set, including:
所述区块链节点根据所述历史交易hash集合中的每个hash值,确定出每个hash值对应的区块;The blockchain node determines the block corresponding to each hash value according to each hash value in the historical transaction hash set;
所述区块链节点从所述每个hash值对应的区块,确定出所述交易标识对应的每一笔历史的交易数据。The blockchain node determines each historical transaction data corresponding to the transaction identifier from the block corresponding to each hash value.
可选的,在所述区块链节点获取待追溯交易的交易标识之前,还包括:Optionally, before the block chain node obtains the transaction identifier of the transaction to be traced, the method further includes:
所述区块链节点获取待执行交易的交易标识;The blockchain node obtains the transaction identifier of the transaction to be executed;
所述区块链节点执行所述待执行交易,将交易数据写入区块;The blockchain node executes the transaction to be executed, and writes transaction data into the block;
所述区块链节点在确认所述交易数据发生变化时,更新所述区块链状态,将所述区块的hash值存储在所述区块链状态中的历史交易hash集合中。When the blockchain node confirms that the transaction data has changed, it updates the blockchain state, and stores the hash value of the block in the historical transaction hash set in the blockchain state.
可选的,所述区块链状态为所述交易标识对应的最新一次交易执行时的状态。Optionally, the blockchain state is the state at the time of the latest transaction execution corresponding to the transaction identifier.
可选的,所述待追溯交易的交易标识是通过部署的智能合约获取的。Optionally, the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
第二方面,本发明实施例提供一种区块链状态变更交易追溯的装置,包括:In the second aspect, an embodiment of the present invention provides a device for tracing blockchain state change transactions, including:
获取单元,用于获取待追溯交易的交易标识;The obtaining unit is used to obtain the transaction identifier of the transaction to be traced;
处理单元,用于根据所述交易标识,确定出所述交易标识对应区块链状 态;所述区块链状态包括历史交易hash集合,所述历史交易hash集合中包括所述区块链状态发生变化时的交易的hash值;根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据。The processing unit is configured to determine the state of the blockchain corresponding to the transaction identifier according to the transaction identifier; the blockchain state includes a historical transaction hash set, and the historical transaction hash set includes the occurrence of the blockchain state The hash value of the transaction at the time of change; according to the historical transaction hash set, each historical transaction data corresponding to the transaction identifier is determined.
可选的,所述处理单元具体用于:Optionally, the processing unit is specifically configured to:
根据所述历史交易hash集合中的每个hash值,确定出每个hash值对应的区块;Determine the block corresponding to each hash value according to each hash value in the historical transaction hash set;
从所述每个hash值对应的区块,确定出所述交易标识对应的每一笔历史的交易数据。From the block corresponding to each hash value, each historical transaction data corresponding to the transaction identifier is determined.
可选的,所述处理单元还用于:Optionally, the processing unit is further configured to:
在获取待追溯交易的交易标识之前,还包括:Before obtaining the transaction identifier of the transaction to be traced, it also includes:
获取待执行交易的交易标识;Obtain the transaction identifier of the transaction to be executed;
执行所述待执行交易,将交易数据写入区块;Execute the transaction to be executed and write the transaction data into the block;
在确认所述交易数据发生变化时,更新所述区块链状态,将所述区块的hash值存储在所述区块链状态中的历史交易hash集合中。When it is confirmed that the transaction data has changed, the block chain state is updated, and the hash value of the block is stored in the historical transaction hash set in the block chain state.
可选的,所述区块链状态为所述交易标识对应的最新一次交易执行时的状态。Optionally, the blockchain state is the state at the time of the latest transaction execution corresponding to the transaction identifier.
可选的,所述待追溯交易的交易标识是通过部署的智能合约获取的。Optionally, the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
第三方面,本发明实施例还提供一种计算设备,包括:In a third aspect, an embodiment of the present invention also provides a computing device, including:
存储器,用于存储程序指令;Memory, used to store program instructions;
处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行上述区块链状态变更交易追溯的方法。The processor is used to call the program instructions stored in the memory, and execute the above-mentioned blockchain state change transaction traceability method according to the obtained program.
第四方面,本发明实施例还提供一种计算机可读非易失性存储介质,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行上述区块链状态变更交易追溯的方法。In a fourth aspect, embodiments of the present invention also provide a computer-readable non-volatile storage medium, including computer-readable instructions, which when the computer reads and executes the computer-readable instructions, cause the computer to execute the above-mentioned blockchain state Change the method of transaction traceability.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中 所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present invention more clearly, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1为本发明实施例提供的一种系统架构的示意图;FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present invention;
图2为本发明实施例提供的一种区块链状态变更交易追溯的方法的流程示意图;2 is a schematic flowchart of a method for tracing blockchain state change transactions according to an embodiment of the present invention;
图3为本发明实施例提供的一种区块链状态的示意图;FIG. 3 is a schematic diagram of a state of a blockchain provided by an embodiment of the present invention;
图4为本发明实施例提供的一种系统架构的示意图;FIG. 4 is a schematic diagram of a system architecture provided by an embodiment of the present invention;
图5为本发明实施例提供的一种区块链状态变更交易追溯的装置的结构示意图;5 is a schematic structural diagram of a device for tracing blockchain state change transactions according to an embodiment of the present invention;
图6为本发明实施例提供的一种区块链状态变更交易追溯的设备的结构示意图。FIG. 6 is a schematic structural diagram of a device for tracing blockchain state change transactions according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
图1示例性的示出了本发明实施例所适用的一种系统架构,该系统架构可以包括多个机构客户端100和区块链系统200。FIG. 1 exemplarily shows a system architecture to which an embodiment of the present invention is applicable. The system architecture may include multiple institutional clients 100 and a blockchain system 200.
其中,机构客户端100用于与区块链系统200进行通信,将交易数据发送给区块链系统200进行处理并上链。Among them, the institutional client 100 is used to communicate with the blockchain system 200, and send transaction data to the blockchain system 200 for processing and uploading to the chain.
区块链系统200由多个区块链节点210,与机构客户端100进行通信,用于处理和存储机构客户端100发送的交易数据。该多个区块链节点210可以相互连接通信,每个区块链节点210中包括多个区块,区块用于存储机构客户端100发送的交易数据。The blockchain system 200 consists of multiple blockchain nodes 210 communicating with the institutional client 100 for processing and storing transaction data sent by the institutional client 100. The multiple blockchain nodes 210 can be connected to each other for communication. Each blockchain node 210 includes multiple blocks, and the blocks are used to store transaction data sent by the institutional client 100.
需要说明的是,上述图1所示的结构仅是一种示例,本发明实施例对此不做限定。It should be noted that the structure shown in FIG. 1 is only an example, which is not limited in the embodiment of the present invention.
基于上述描述,图2详细的示出了本发明实施例提供的一种区块链状态变更交易追溯的方法的流程,该流程可以由区块链状态变更交易追溯的装置执行,该装置可以位于上述区块链节点210中,也可以是该区块链节点210。Based on the above description, Figure 2 shows in detail the process of a method for tracing blockchain state change transactions provided by an embodiment of the present invention. The process can be executed by a device for tracing blockchain state change transactions, which can be located in Among the above-mentioned blockchain nodes 210, it may also be the blockchain node 210.
如图2所示,该流程具体包括:As shown in Figure 2, the process specifically includes:
步骤201,区块链节点获取待追溯交易的交易标识。Step 201: The blockchain node obtains the transaction identifier of the transaction to be traced.
在本发明实施例中,待追溯交易的交易标识是可以通过部署的智能合约获取的。区块链节点在获取该待追溯交易的交易标识之前,需要在执行每次交易时,将hash值写入到区块链状态中。区块链状态为交易标识对应的最新一次交易执行时的状态。In the embodiment of the present invention, the transaction identifier of the transaction to be traced can be obtained through the deployed smart contract. Before the blockchain node obtains the transaction identifier of the transaction to be traced, it needs to write the hash value into the blockchain state when executing each transaction. The state of the blockchain is the state of the latest transaction execution corresponding to the transaction identifier.
具体的,区块链节点获取待执行交易的交易标识,然后执行该待执行交易,将交易数据写入区块。最后在确认交易数据发生变化时,更新区块链状态,将区块的hash值存储在区块链状态中的历史交易hash集合中。Specifically, the blockchain node obtains the transaction identifier of the transaction to be executed, then executes the transaction to be executed, and writes the transaction data into the block. Finally, when it is confirmed that the transaction data has changed, the blockchain state is updated, and the hash value of the block is stored in the historical transaction hash set in the blockchain state.
在本发明实施例中,区块链状态的数据结构可以如图3所示,构建区块链状态中存放的数据结构时,添加交易hash集合字段(例如txH1,txH2,txH3,txH4,txH5,…)用于存放交易历史hash集合。也就是说除了存储需要的单据数据之外,还需要存储使区块链状态变更的所有交易的交易hash值集合,状态需要具备以下字段:In the embodiment of the present invention, the data structure of the blockchain state can be as shown in Figure 3. When constructing the data structure stored in the blockchain state, add transaction hash collection fields (for example, txH1, txH2, txH3, txH4, txH5, …) Used to store the transaction history hash collection. That is to say, in addition to storing the required document data, it is also necessary to store the transaction hash value collection of all transactions that change the state of the blockchain. The state needs to have the following fields:
交易hash集合:每一个使该区块链状态发生变化的交易hash的集合,交易hash可以唯一的表示交易,通过交易hash可以查询到具体的交易数据。Transaction hash set: For each transaction hash set that changes the state of the blockchain, the transaction hash can uniquely represent the transaction, and the specific transaction data can be queried through the transaction hash.
还需要在智能合约中添加获取交易hash方法,在每次发送交易调用合约的时候,获取该交易的hash值并将其存放在状态中。It is also necessary to add a method to obtain the transaction hash in the smart contract. Every time a transaction is sent to call the contract, the hash value of the transaction is obtained and stored in the state.
图3中的Value(值)存储原始状态数据。Value in Figure 3 stores the original state data.
步骤202,所述区块链节点根据所述交易标识,确定出所述交易标识对应区块链状态。Step 202: The blockchain node determines the state of the blockchain corresponding to the transaction identifier according to the transaction identifier.
当得到交易标识后,区块链节点就可以得到该交易标识对应的区块链状 态。After obtaining the transaction identifier, the blockchain node can obtain the state of the blockchain corresponding to the transaction identifier.
步骤203,所述区块链节点根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据。Step 203: The blockchain node determines each historical transaction data corresponding to the transaction identifier according to the historical transaction hash set.
具体的,区块链节点根据历史交易hash集合中的每个hash值,确定出每个hash值对应的区块,然后从每个hash值对应的区块,确定出交易标识对应的每一笔历史的交易数据。Specifically, the blockchain node determines the block corresponding to each hash value according to each hash value in the historical transaction hash set, and then determines each block corresponding to the transaction identifier from the block corresponding to each hash value Historical transaction data.
依次返回区块里存储的对应交易hash的交易数据。由此即可得到促使状态变化的历史交易数据,也就完成了对整个区块链状态变化流程的追溯过程。Return the transaction data corresponding to the transaction hash stored in the block in turn. From this, the historical transaction data that prompted the state change can be obtained, and the traceability process of the entire blockchain state change process is completed.
用户或机构可通过对应的交易数据,对整个交易流程进行分析,从而证实数据真实可信。The user or institution can analyze the entire transaction process through the corresponding transaction data, thereby confirming the authenticity of the data.
为了更好的解释本发明实施例,下面将在具体实施场景下来描述上述区块链状态变更交易追溯的过程。In order to better explain the embodiments of the present invention, the process of tracing the above-mentioned blockchain state change transaction will be described below in a specific implementation scenario.
如图4所示架构,本实施例采用以Fabric为底层的区块链电子票据服务系统为例,其上部署具备获取交易hash功能的智能合约,在发票进行开票、打印、收票、报销、红冲等上链操作的时候,合约执行的过程中会获取发票改变发票状态的交易的hash值,并和发票数据一并存储到状态中。As shown in Figure 4, this embodiment uses a blockchain electronic bill service system with Fabric as the bottom layer as an example, deploys a smart contract with the function of obtaining transaction hashes on it, and performs invoicing, printing, receipt, reimbursement, and reimbursement on invoices. When red flushing and other operations are performed on the chain, the hash value of the transaction in which the invoice changes the status of the invoice will be obtained during the execution of the contract, and stored in the status together with the invoice data.
发票状态采用图3中所示的具备交易hash集合字段的数据结构存储,SDK(Software Development Kit,软件开发工具包)采用基于开源Fabric SDK自主研发的工具,相比原始SDK,使用起来更加方便,快捷。各商户通过自己的收银系统对接开票服务商,各开票服务商通过税局区块链发票系统给出的SDK对接税局的区块链发票节点。The invoice status is stored in a data structure with transaction hash collection fields as shown in Figure 3. The SDK (Software Development Kit, software development kit) uses a tool independently developed based on the open source Fabric SDK, which is more convenient to use than the original SDK. Fast. Each merchant connects with the invoicing service provider through its own cash register system, and each invoicing service provider connects to the blockchain invoice node of the tax bureau through the SDK provided by the tax bureau's blockchain invoice system.
基于上述架构,数字积分到期操作及修改有效期的步骤如下:Based on the above structure, the steps for the expiration operation and modification of the validity period of digital points are as follows:
1、各开票商户,通过对接税局授权的开票服务商,向税局申请开票,用户向商户提出需求,商户将请求发往服务商。1. Each invoicing merchant, through the docking with the invoicing service provider authorized by the tax bureau, applies for the invoicing to the tax bureau, the user makes a request to the merchant, and the merchant sends the request to the service provider.
2、服务商通过SDK调用具备获取交易hash功能的智能合约,执行开票交易后,对应的交易将会存放在区块中,而状态为已开票的发票数据以及开票交易hash值将会存储到状态数据库(State DB)中,后续的打印,收票, 报销,红冲等交易请求的处理方式同开票类似,所有的改变状态的交易hash将存储到状态中。2. The service provider uses the SDK to call the smart contract with the function of obtaining the transaction hash. After the invoicing transaction is executed, the corresponding transaction will be stored in the block, and the invoice data and the hash value of the invoicing transaction will be stored in the state. In the database (State DB), the subsequent printing, receipt, reimbursement, red flush and other transaction requests are processed similarly to invoicing, and all transaction hashes that change state will be stored in the state.
3、开票服务商为了对商户开票的全流程进行管理,将会追溯发票的整个交易流程,此时首先在状态中,查询到对应发票的最新状态,以及其历史交易hash集合,返回给开票服务商。3. In order to manage the entire process of merchant invoicing, the invoicing service provider will trace the entire transaction process of the invoice. At this time, first query the latest status of the corresponding invoice and its historical transaction hash set in the status, and return it to the invoicing service Quotient.
4、开票服务商将会通过SDK依次传入历史交易hash集合中交易hash值,并从区块上获取到对应的交易。4. The invoicing service provider will sequentially pass in the transaction hash value in the historical transaction hash collection through the SDK, and obtain the corresponding transaction from the block.
5、获取到的交易集合返回到开票服务商处,通过整个交易流程的追溯,服务商可对相应商户的开票行为进行分析。5. The acquired transaction set is returned to the invoicing service provider. Through the traceability of the entire transaction process, the service provider can analyze the invoicing behavior of the corresponding merchant.
上述实施例表明,区块链节点获取待追溯交易的交易标识,根据所述交易标识,确定出交易标识对应区块链状态,区块链状态包括历史交易hash集合,历史交易hash集合中包括区块链状态发生变化时的交易的hash值,根据历史交易hash集合,确定出交易标识对应的每一笔历史的交易数据。通过在区块链状态中增加区块链状态发生变化时的交易hash值,可以实现快速的查找到历史的交易数据,从而可以解决现有区块链数据通过智能合约只能查询到最新状态,无法直接追溯区块中历史交易记录的问题,提高历史交易数据的追溯效率。The above embodiment shows that the blockchain node obtains the transaction identifier of the transaction to be traced, and determines the state of the blockchain corresponding to the transaction identifier according to the transaction identifier. The blockchain state includes a historical transaction hash set, and the historical transaction hash set includes a block The hash value of the transaction when the state of the block chain changes, and each historical transaction data corresponding to the transaction identifier is determined according to the historical transaction hash set. By adding the transaction hash value when the blockchain state changes in the blockchain state, you can quickly find historical transaction data, which can solve the problem that the existing blockchain data can only be queried to the latest state through smart contracts. The problem of historical transaction records in the block cannot be directly traced, and the traceability efficiency of historical transaction data is improved.
基于相同的技术构思,图5示例性的示出了本发明实施例提供的一种区块链状态变更交易追溯的装置的结构,该装置可以执行区块链状态变更交易追溯的流程。Based on the same technical concept, FIG. 5 exemplarily shows the structure of a device for tracing blockchain state change transactions according to an embodiment of the present invention, and the device can execute the process of tracing blockchain state change transactions.
如图5所示,该装置具体包括:As shown in Figure 5, the device specifically includes:
获取单元501,用于获取待追溯交易的交易标识;The obtaining unit 501 is configured to obtain the transaction identifier of the transaction to be traced;
处理单元502,用于根据所述交易标识,确定出所述交易标识对应区块链状态;所述区块链状态包括历史交易hash集合,所述历史交易hash集合中包括所述区块链状态发生变化时的交易的hash值;根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据。The processing unit 502 is configured to determine the state of the blockchain corresponding to the transaction identifier according to the transaction identifier; the blockchain state includes a historical transaction hash set, and the historical transaction hash set includes the blockchain state The hash value of the transaction when the change occurs; according to the historical transaction hash set, each historical transaction data corresponding to the transaction identifier is determined.
可选的,所述处理单元502具体用于:Optionally, the processing unit 502 is specifically configured to:
根据所述历史交易hash集合中的每个hash值,确定出每个hash值对应的区块;Determine the block corresponding to each hash value according to each hash value in the historical transaction hash set;
从所述每个hash值对应的区块,确定出所述交易标识对应的每一笔历史的交易数据。From the block corresponding to each hash value, each historical transaction data corresponding to the transaction identifier is determined.
可选的,所述处理单元502还用于:Optionally, the processing unit 502 is further configured to:
在获取待追溯交易的交易标识之前,还包括:Before obtaining the transaction identifier of the transaction to be traced, it also includes:
获取待执行交易的交易标识;Obtain the transaction identifier of the transaction to be executed;
执行所述待执行交易,将交易数据写入区块;Execute the transaction to be executed and write the transaction data into the block;
在确认所述交易数据发生变化时,更新所述区块链状态,将所述区块的hash值存储在所述区块链状态中的历史交易hash集合中。When it is confirmed that the transaction data has changed, the block chain state is updated, and the hash value of the block is stored in the historical transaction hash set in the block chain state.
可选的,所述区块链状态为所述交易标识对应的最新一次交易执行时的状态。Optionally, the blockchain state is the state at the time of the latest transaction execution corresponding to the transaction identifier.
可选的,所述待追溯交易的交易标识是通过部署的智能合约获取的。Optionally, the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
基于相同的技术构思,本发明实施例提供一种区块链状态变更交易追溯的设备。至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述实施例中的区块链状态变更交易追溯的方法。Based on the same technical concept, embodiments of the present invention provide a device for tracing blockchain state change transactions. At least one processor; and, a memory communicatively connected with the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable The at least one processor can execute the method for tracing blockchain state change transactions in the foregoing embodiment.
以一个处理器为例,图6为本发明实施例提供的区块链状态变更交易追溯的设备的结构,该区块链状态变更交易追溯的设备600包括:收发器601、处理器602、存储器603和总线系统604;Taking a processor as an example, FIG. 6 shows the structure of a device for tracing blockchain state change transactions according to an embodiment of the present invention. The device 600 for tracing blockchain state change transactions includes a transceiver 601, a processor 602, and a memory. 603 and bus system 604;
其中,存储器603,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器603可能为随机存取存储器(random access memory,简称RAM),也可能为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以根据需要,设置为多个。存储器603也可以是处理器602中的存储器。Among them, the memory 603 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 603 may be a random access memory (random access memory, RAM for short), or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure. Of course, the memory can also be set to multiple as required. The memory 603 may also be a memory in the processor 602.
存储器603存储了如下的元素,可执行模块或者数据结构,或者它们的 子集,或者它们的扩展集:The memory 603 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
操作指令:包括各种操作指令,用于实现各种操作。Operating instructions: including various operating instructions, used to implement various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Including various system programs, used to implement various basic services and process hardware-based tasks.
上述本发明实施例区块链状态变更交易追溯的方法可以应用于处理器602中,或者说由处理器602实现。处理器602可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述区块链状态变更交易追溯的方法的各步骤可以通过处理器602中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器602可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器603,处理器602读取存储器603中的信息,结合其硬件执行以下步骤:The foregoing method for tracing a blockchain state change transaction in the embodiment of the present invention may be applied to the processor 602, or implemented by the processor 602. The processor 602 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the method for tracing the blockchain state change transaction can be completed by the integrated logic circuit of the hardware in the processor 602 or the instructions in the form of software. The aforementioned processor 602 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware Components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the embodiments of the present invention may be directly embodied as being executed and completed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory 603, and the processor 602 reads the information in the memory 603, and performs the following steps in combination with its hardware:
收发器601,用于获取待追溯交易的交易标识;The transceiver 601 is used to obtain the transaction identifier of the transaction to be traced;
处理器602,用于根据所述交易标识,确定出所述交易标识对应区块链状态;所述区块链状态包括历史交易hash集合,所述历史交易hash集合中包括所述区块链状态发生变化时的交易的hash值;根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据。The processor 602 is configured to determine the blockchain state corresponding to the transaction identifier according to the transaction identifier; the blockchain state includes a historical transaction hash set, and the historical transaction hash set includes the blockchain state The hash value of the transaction when the change occurs; according to the historical transaction hash set, each historical transaction data corresponding to the transaction identifier is determined.
可选的,所述处理器602用于根据所述历史交易hash集合中的每个hash值,确定出每个hash值对应的区块;从所述每个hash值对应的区块,确定出所述交易标识对应的每一笔历史的交易数据。Optionally, the processor 602 is configured to determine the block corresponding to each hash value according to each hash value in the historical transaction hash set; from the block corresponding to each hash value, determine Each historical transaction data corresponding to the transaction identifier.
可选的,所述处理器602还用于在获取待追溯交易的交易标识之前,获 取待执行交易的交易标识;执行所述待执行交易,将交易数据写入区块;在确认所述交易数据发生变化时,更新所述区块链状态,将所述区块的hash值存储在所述区块链状态中的历史交易hash集合中。Optionally, the processor 602 is further configured to obtain the transaction identifier of the transaction to be executed before obtaining the transaction identifier of the transaction to be traced; execute the transaction to be executed and write the transaction data into the block; and after confirming the transaction When the data changes, the blockchain state is updated, and the hash value of the block is stored in the historical transaction hash set in the blockchain state.
可选的,所述区块链状态为所述交易标识对应的最新一次交易执行时的状态。Optionally, the blockchain state is the state at the time of the latest transaction execution corresponding to the transaction identifier.
可选的,所述待追溯交易的交易标识是通过部署的智能合约获取的。Optionally, the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
基于相同的技术构思,本发明实施例还提供了一种计算设备,包括:Based on the same technical concept, an embodiment of the present invention also provides a computing device, including:
存储器,用于存储程序指令;Memory, used to store program instructions;
处理器,用于调用存储器中存储的程序指令,按照获得的程序执行上述区块链状态变更交易追溯的方法。The processor is used to call the program instructions stored in the memory, and execute the above-mentioned blockchain state change transaction traceability method according to the obtained program.
基于相同的技术构思,本发明实施例还提供了一种计算机可读非易失性存储介质,包括计算机可读指令,当计算机读取并执行计算机可读指令时,使得计算机执行上述区块链状态变更交易追溯的方法。Based on the same technical concept, the embodiments of the present invention also provide a computer-readable non-volatile storage medium, including computer-readable instructions. When the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned blockchain. The method of state change transaction traceability.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的 处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims (12)

  1. 一种区块链状态变更交易追溯的方法,其特征在于,包括:A method for tracing blockchain state change transactions, which is characterized in that it includes:
    区块链节点获取待追溯交易的交易标识;The blockchain node obtains the transaction identifier of the transaction to be traced;
    所述区块链节点根据所述交易标识,确定出所述交易标识对应区块链状态;所述区块链状态包括历史交易hash集合,所述历史交易hash集合中包括所述区块链状态发生变化时的交易的hash值;The blockchain node determines the state of the blockchain corresponding to the transaction identifier according to the transaction identifier; the blockchain state includes a historical transaction hash set, and the historical transaction hash set includes the blockchain state The hash value of the transaction at the time of the change;
    所述区块链节点根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据。The blockchain node determines each historical transaction data corresponding to the transaction identifier according to the historical transaction hash set.
  2. 如权利要求1所述的方法,其特征在于,所述区块链节点根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据,包括:The method according to claim 1, wherein the block chain node determines each historical transaction data corresponding to the transaction identifier according to the historical transaction hash set, comprising:
    所述区块链节点根据所述历史交易hash集合中的每个hash值,确定出每个hash值对应的区块;The blockchain node determines the block corresponding to each hash value according to each hash value in the historical transaction hash set;
    所述区块链节点从所述每个hash值对应的区块,确定出所述交易标识对应的每一笔历史的交易数据。The blockchain node determines each historical transaction data corresponding to the transaction identifier from the block corresponding to each hash value.
  3. 如权利要求1所述的方法,其特征在于,在所述区块链节点获取待追溯交易的交易标识之前,还包括:The method of claim 1, wherein before the blockchain node obtains the transaction identifier of the transaction to be traced, the method further comprises:
    所述区块链节点获取待执行交易的交易标识;The blockchain node obtains the transaction identifier of the transaction to be executed;
    所述区块链节点执行所述待执行交易,将交易数据写入区块;The blockchain node executes the transaction to be executed, and writes transaction data into the block;
    所述区块链节点在确认所述交易数据发生变化时,更新所述区块链状态,将所述区块的hash值存储在所述区块链状态中的历史交易hash集合中。When the blockchain node confirms that the transaction data has changed, it updates the blockchain state, and stores the hash value of the block in the historical transaction hash set in the blockchain state.
  4. 如权利要求1所述的方法,其特征在于,所述区块链状态为所述交易标识对应的最新一次交易执行时的状态。The method according to claim 1, wherein the state of the blockchain is the state when the latest transaction corresponding to the transaction identifier is executed.
  5. 如权利要求1至4任一项所述的方法,其特征在于,所述待追溯交易的交易标识是通过部署的智能合约获取的。The method according to any one of claims 1 to 4, wherein the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
  6. 一种区块链状态变更交易追溯的装置,其特征在于,包括:A device for tracing blockchain state change transactions, which is characterized in that it includes:
    获取单元,用于获取待追溯交易的交易标识;The obtaining unit is used to obtain the transaction identifier of the transaction to be traced;
    处理单元,用于根据所述交易标识,确定出所述交易标识对应区块链状态;所述区块链状态包括历史交易hash集合,所述历史交易hash集合中包括所述区块链状态发生变化时的交易的hash值;根据所述历史交易hash集合,确定出所述交易标识对应的每一笔历史的交易数据。The processing unit is configured to determine the state of the blockchain corresponding to the transaction identifier according to the transaction identifier; the blockchain state includes a historical transaction hash set, and the historical transaction hash set includes the occurrence of the blockchain state The hash value of the transaction at the time of change; according to the historical transaction hash set, each historical transaction data corresponding to the transaction identifier is determined.
  7. 如权利要求6所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 6, wherein the processing unit is specifically configured to:
    根据所述历史交易hash集合中的每个hash值,确定出每个hash值对应的区块;Determine the block corresponding to each hash value according to each hash value in the historical transaction hash set;
    从所述每个hash值对应的区块,确定出所述交易标识对应的每一笔历史的交易数据。From the block corresponding to each hash value, each historical transaction data corresponding to the transaction identifier is determined.
  8. 如权利要求6所述的装置,其特征在于,所述处理单元还用于:The device according to claim 6, wherein the processing unit is further configured to:
    在获取待追溯交易的交易标识之前,还包括:Before obtaining the transaction identifier of the transaction to be traced, it also includes:
    获取待执行交易的交易标识;Obtain the transaction identifier of the transaction to be executed;
    执行所述待执行交易,将交易数据写入区块;Execute the transaction to be executed and write the transaction data into the block;
    在确认所述交易数据发生变化时,更新所述区块链状态,将所述区块的hash值存储在所述区块链状态中的历史交易hash集合中。When it is confirmed that the transaction data has changed, the block chain state is updated, and the hash value of the block is stored in the historical transaction hash set in the block chain state.
  9. 如权利要求6所述的装置,其特征在于,所述区块链状态为所述交易标识对应的最新一次交易执行时的状态。7. The device according to claim 6, wherein the state of the blockchain is the state when the latest transaction corresponding to the transaction identifier is executed.
  10. 如权利要求6至9任一项所述的装置,其特征在于,所述待追溯交易的交易标识是通过部署的智能合约获取的。The device according to any one of claims 6 to 9, wherein the transaction identifier of the transaction to be traced is obtained through a deployed smart contract.
  11. 一种计算设备,其特征在于,包括:A computing device, characterized in that it comprises:
    存储器,用于存储程序指令;Memory, used to store program instructions;
    处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行权利要求1至5任一项所述的方法。The processor is configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 5 according to the obtained program.
  12. 一种计算机可读非易失性存储介质,其特征在于,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行如权利要求1至5任一项所述的方法。A computer-readable non-volatile storage medium, characterized by comprising computer-readable instructions, when the computer reads and executes the computer-readable instructions, the computer is caused to execute any one of claims 1 to 5 Methods.
PCT/CN2020/117173 2019-12-25 2020-09-23 Blockchain state change-based transaction tracking method and device WO2021129005A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911356606.8 2019-12-25
CN201911356606.8A CN111105277A (en) 2019-12-25 2019-12-25 Block chain state change transaction tracing method and device

Publications (1)

Publication Number Publication Date
WO2021129005A1 true WO2021129005A1 (en) 2021-07-01

Family

ID=70424632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117173 WO2021129005A1 (en) 2019-12-25 2020-09-23 Blockchain state change-based transaction tracking method and device

Country Status (2)

Country Link
CN (1) CN111105277A (en)
WO (1) WO2021129005A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111105277A (en) * 2019-12-25 2020-05-05 中国银联股份有限公司 Block chain state change transaction tracing method and device
CN112200533A (en) * 2020-09-22 2021-01-08 国网电力科学研究院有限公司 Block chain-based consumption voucher full-life-cycle management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030050875A1 (en) * 2001-08-29 2003-03-13 Via Technologies, Inc. Method of sales deposit management
CN108876616A (en) * 2018-06-13 2018-11-23 众安信息技术服务有限公司 Exchange information processing method, device and assets based on block chain register settlement system
CN110264348A (en) * 2019-05-07 2019-09-20 北京奇艺世纪科技有限公司 A kind of processing method, device and the storage medium of cochain of trading
CN110569281A (en) * 2019-08-30 2019-12-13 阿里巴巴集团控股有限公司 Block chain transaction query method and system
CN111105277A (en) * 2019-12-25 2020-05-05 中国银联股份有限公司 Block chain state change transaction tracing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543459A (en) * 2018-11-22 2019-03-29 中国联合网络通信集团有限公司 A kind of data deposit card method and apparatus
CN109559231B (en) * 2018-12-29 2020-08-04 华东师范大学 Block chain-oriented tracing query method
CN110580418B (en) * 2019-11-08 2020-04-07 支付宝(杭州)信息技术有限公司 Private data query method and device based on block chain account

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030050875A1 (en) * 2001-08-29 2003-03-13 Via Technologies, Inc. Method of sales deposit management
CN108876616A (en) * 2018-06-13 2018-11-23 众安信息技术服务有限公司 Exchange information processing method, device and assets based on block chain register settlement system
CN110264348A (en) * 2019-05-07 2019-09-20 北京奇艺世纪科技有限公司 A kind of processing method, device and the storage medium of cochain of trading
CN110569281A (en) * 2019-08-30 2019-12-13 阿里巴巴集团控股有限公司 Block chain transaction query method and system
CN111105277A (en) * 2019-12-25 2020-05-05 中国银联股份有限公司 Block chain state change transaction tracing method and device

Also Published As

Publication number Publication date
CN111105277A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
US10698885B2 (en) Method and device for writing service data in block chain system
CN108846659B (en) Block chain-based transfer method and device and storage medium
JP6975101B2 (en) Methods, devices and non-temporary computer-readable storage media for transaction execution and validation in the blockchain (transaction execution and validation in the blockchain)
US20210049715A1 (en) Blockchain-based data procesing method, apparatus, and electronic device
TWI726573B (en) Block chain-based data compression and query method and device and electronic equipment
US11087371B2 (en) Blockchain-based invoice creation method apparatus, and electronic device
WO2021129005A1 (en) Blockchain state change-based transaction tracking method and device
US20200082349A1 (en) Blockchain Timeclock System
WO2020155811A1 (en) Block chain intelligent contract execution method, device and electronic apparatus
CN110245190B (en) Block data segmented storage method, terminal and medium
WO2020224353A1 (en) Method and device for publishing smart contracts in block chain
CN114564500A (en) Method and system for implementing structured data storage and query in block chain system
CN112860802A (en) Database operation statement processing method and device and electronic equipment
CN109166042B (en) Node device, real-time reconciliation method based on blockchain, and storage medium
CN108710658B (en) Data record storage method and device
CN111260364A (en) Extensible quick payment method and system based on block chain
CN115984022A (en) Unified account checking method and device for distributed payment system
US20220253457A1 (en) Block Generation Control Method Applied to Blockchain and Related Apparatus
US11743051B2 (en) Blockchain machine compute acceleration engine with a block verify and a block validate
CN112712433B (en) Block chain-based data state management and query method and block chain device
CN113327167B (en) Block chain data processing method
CN117573305A (en) Service processing method, device, computer equipment, storage medium and program product
CN111898004A (en) Data mining method and device, electronic equipment and readable storage medium thereof
CN115344553A (en) Data version management method, device, equipment and storage medium
CN117593125A (en) Service data processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20904991

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20904991

Country of ref document: EP

Kind code of ref document: A1