CN115393082A - A blockchain-based transaction data reconciliation processing method and device - Google Patents
A blockchain-based transaction data reconciliation processing method and device Download PDFInfo
- Publication number
- CN115393082A CN115393082A CN202210974744.8A CN202210974744A CN115393082A CN 115393082 A CN115393082 A CN 115393082A CN 202210974744 A CN202210974744 A CN 202210974744A CN 115393082 A CN115393082 A CN 115393082A
- Authority
- CN
- China
- Prior art keywords
- transaction
- data
- reconciliation
- file
- chain
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及区块链技术领域,具体涉及一种基于区块链的交易数据对帐处理方法及装置。The present invention relates to the technical field of blockchain, in particular to a transaction data reconciliation processing method and device based on blockchain.
背景技术Background technique
传统的对账是指在会计核算中,为保证账簿记录正确可靠,对账簿中的有关数据进行检查和核对,对一定周期内的交易进行双方确认,一般在第二天对前一日交易生成对账单供核对方下载。Traditional reconciliation refers to the inspection and verification of relevant data in the account book in order to ensure the correctness and reliability of the account book records in accounting, and the confirmation of transactions within a certain period by both parties, usually on the next day. The statement is for the checking party to download.
所有跨应用的数据交互,理论上都应进行对账。对账可以分为信息流对账和资金流对账。信息流对账一般用在系统之间的对账,如支付系统的支付数据和业务系统的业务数据进行对账,保证资金交易和业务交易的一致性。资金流对账即支付系统和银行或者第三方支付系统之间的资金交易对账。All cross-application data interactions should theoretically be reconciled. Reconciliation can be divided into information flow reconciliation and capital flow reconciliation. Information flow reconciliation is generally used for reconciliation between systems, such as reconciliation between the payment data of the payment system and the business data of the business system, to ensure the consistency of capital transactions and business transactions. Fund flow reconciliation refers to the fund transaction reconciliation between the payment system and the bank or third-party payment system.
在区块链与业务系统交互过程中,需要对业务系统和区块链上存储的交易数据进行对账处理。基于区块链本身的技术门槛较高,需要开发者具备较高专业技能,一定程度上限制了开发者使用,因此,如何提高交易数据对账的准确性和适用性,成为亟需解决的技术问题。During the interaction between the blockchain and the business system, it is necessary to reconcile the business system and the transaction data stored on the blockchain. Based on the high technical threshold of the blockchain itself, developers are required to have high professional skills, which limits the use of developers to a certain extent. Therefore, how to improve the accuracy and applicability of transaction data reconciliation has become a technology that needs to be solved urgently. question.
发明内容Contents of the invention
针对现有技术中的问题,本发明实施例提供一种基于区块链的交易数据对帐处理方法及装置,能够至少部分地解决现有技术中存在的问题。In view of the problems in the prior art, the embodiments of the present invention provide a transaction data reconciliation processing method and device based on blockchain, which can at least partly solve the problems in the prior art.
一方面,本发明提出一种基于区块链的交易数据对帐处理方法,包括:On the one hand, the present invention proposes a transaction data reconciliation processing method based on blockchain, including:
获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;Obtain the business reconciliation file and the chain transaction list file; the chain transaction list file includes the transaction data in the block and the world state data;
根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;Determine the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include attributes of check elements arranged in a preset order hash value;
根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Comparing the hash values respectively corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset sequence, and determining the transaction data reconciliation processing result according to the comparison result.
其中,所述根据比较结果确定交易数据对账处理结果,包括:Wherein, said determining the transaction data reconciliation processing result according to the comparison result includes:
若确定所有哈希值两两比较的比较结果都相同,则确定交易数据对账处理结果为相一致;If it is determined that the comparison results of pairwise comparisons of all hash values are the same, then it is determined that the transaction data reconciliation processing results are consistent;
若确定至少存在一组哈希值两两比较的比较结果不相同,则确定交易数据对账处理结果为不一致。If it is determined that there is at least one group of hash values whose pairwise comparison results are not the same, it is determined that the transaction data reconciliation processing result is inconsistent.
其中,所述预配置信息包括交易编号;相应的,所述根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件,包括:Wherein, the pre-configuration information includes a transaction number; correspondingly, the determination of the target business reconciliation file and the transaction list file on the target chain corresponding to the same transaction according to the pre-configuration information includes:
根据所述交易编号确定对应同一交易的目标业务对账文件和目标链上交易清单文件。According to the transaction number, the target business reconciliation file and the transaction list file on the target chain corresponding to the same transaction are determined.
其中,在所述根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件的步骤之前,所述基于区块链的交易数据对帐处理方法还包括:Wherein, before the step of determining the target business reconciliation file corresponding to the same transaction and the transaction list file on the target chain according to the pre-configuration information, the transaction data reconciliation processing method based on the block chain also includes:
对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测。Perform transaction error data detection on the business reconciliation file and the on-chain transaction list file.
其中,所述对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测,包括:Wherein, the detection of transaction error data on the business reconciliation file and the on-chain transaction list file includes:
获取对应同一交易的业务对账文件和链上交易清单文件之间的交集数据;所述交集数据为在对应同一交易的业务对账文件和链上交易清单文件中字段名称相同的数据;Obtain the intersection data between the business reconciliation file corresponding to the same transaction and the transaction list file on the chain; the intersection data is the data with the same field name in the business reconciliation file corresponding to the same transaction and the transaction list file on the chain;
对所述交集数据中的所有相同字段的字段内容信息分别进行比对,若确定所有比对结果都一致,则确定在所述交集数据中不存在交易差错数据。Comparing the field content information of all the same fields in the intersection data, if it is determined that all the comparison results are consistent, then it is determined that there is no transaction error data in the intersection data.
其中,所述基于区块链的交易数据对帐处理方法还包括:Wherein, the transaction data reconciliation processing method based on the block chain also includes:
若确定存在至少一组比对结果不一致,则确定在所述交集数据中存在第一类型交易差错数据;所述第一类型交易差错数据为比对信息内容不一致的交易差错数据。If it is determined that there is at least one group of inconsistent comparison results, then it is determined that there is first type of transaction error data in the intersection data; the first type of transaction error data is transaction error data whose content of comparison information is inconsistent.
其中,所述对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测,包括:Wherein, the detection of transaction error data on the business reconciliation file and the on-chain transaction list file includes:
获取所述业务对账文件和所述链上交易清单文件之间的单边数据;所述单边数据为在所述业务对账文件中存在,且在所述链上交易清单文件中不存在的字段名称对应数据;以及在所述业务对账文件中不存在,且在所述链上交易清单文件中存在的字段名称对应数据;Obtain the unilateral data between the business reconciliation file and the on-chain transaction list file; the unilateral data exists in the business reconciliation file and does not exist in the on-chain transaction list file The data corresponding to the field name of ; and the data corresponding to the field name that does not exist in the business reconciliation file and exists in the on-chain transaction list file;
确定在所述单边数据中存在第二类型交易差错数据;所述第二类型交易差错数据为字段缺失的交易差错数据。It is determined that the second type of transaction error data exists in the unilateral data; the second type of transaction error data is transaction error data with missing fields.
一方面,本发明提出一种基于区块链的交易数据对帐处理装置,包括:On the one hand, the present invention proposes a transaction data reconciliation processing device based on blockchain, including:
获取单元,用于获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;An acquisition unit, configured to acquire a business reconciliation file and an on-chain transaction list file; the on-chain transaction list file includes transaction data and world state data in the block;
确定单元,用于根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;A determining unit, configured to determine a target business reconciliation file and a target on-chain transaction list file corresponding to the same transaction according to pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include The hash value of the check element attribute;
对账单元,用于根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。The reconciliation unit is used to compare the hash values corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset order, and determine the transaction data pair according to the comparison result. Account processing results.
再一方面,本发明实施例提供一种电子设备,包括:处理器、存储器和总线,其中,In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
所述处理器和所述存储器通过所述总线完成相互间的通信;The processor and the memory communicate with each other through the bus;
所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如下方法:The memory stores program instructions executable by the processor, and the processor calls the program instructions to perform the following methods:
获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;Obtain the business reconciliation file and the chain transaction list file; the chain transaction list file includes the transaction data in the block and the world state data;
根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;Determine the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include attributes of check elements arranged in a preset order hash value;
根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Comparing the hash values respectively corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset sequence, and determining the transaction data reconciliation processing result according to the comparison result.
本发明实施例提供一种非暂态计算机可读存储介质,包括:An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如下方法:The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to perform the following method:
获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;Obtain the business reconciliation file and the chain transaction list file; the chain transaction list file includes the transaction data in the block and the world state data;
根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;Determine the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include attributes of check elements arranged in a preset order hash value;
根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Comparing the hash values respectively corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset sequence, and determining the transaction data reconciliation processing result according to the comparison result.
本发明实施例提供的基于区块链的交易数据对帐处理方法及装置,获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果,能够提高交易数据对账的准确性和适用性。The blockchain-based transaction data reconciliation processing method and device provided by the embodiments of the present invention obtain business reconciliation files and on-chain transaction list files; the on-chain transaction list files include transaction data and world state data in blocks ; Determine the target business reconciliation file and target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include check element attributes arranged in a preset order hash value; according to the preset sequence, compare the hash values corresponding to the target business reconciliation file and the target chain transaction list file one by one, and determine the transaction data reconciliation according to the comparison result The processing results can improve the accuracy and applicability of transaction data reconciliation.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work. In the attached picture:
图1是本发明一实施例提供的基于区块链的交易数据对帐处理方法的流程示意图。Fig. 1 is a schematic flowchart of a transaction data reconciliation processing method based on blockchain provided by an embodiment of the present invention.
图2是本发明实施例提供的增量数据和存量数据传输的说明示意图。Fig. 2 is a schematic diagram illustrating incremental data and stock data transmission provided by an embodiment of the present invention.
图3是本发明一实施例提供的基于区块链的交易数据对帐处理方法的信令交互示意图。Fig. 3 is a schematic diagram of signaling interaction of a blockchain-based transaction data reconciliation processing method provided by an embodiment of the present invention.
图4是本发明实施例提供的账本的说明示意图。Fig. 4 is an explanatory schematic diagram of a ledger provided by an embodiment of the present invention.
图5是本发明另一实施例提供的账本的说明示意图。Fig. 5 is an explanatory schematic diagram of a ledger provided by another embodiment of the present invention.
图6是本发明实施例提供的节点同步的说明示意图。FIG. 6 is a schematic diagram illustrating node synchronization provided by an embodiment of the present invention.
图7是本发明另一实施例提供的账本的说明示意图。Fig. 7 is a schematic illustration of a ledger provided by another embodiment of the present invention.
图8是本发明另一实施例提供的基于区块链的交易数据对帐处理方法的信令交互示意图。Fig. 8 is a schematic diagram of signaling interaction of a blockchain-based transaction data reconciliation processing method provided by another embodiment of the present invention.
图9是本发明实施例提供的交易差错数据检测的说明示意图。Fig. 9 is a schematic diagram illustrating transaction error data detection provided by an embodiment of the present invention.
图10是本发明另一实施例提供的基于区块链的交易数据对帐处理方法的流程示意图。Fig. 10 is a schematic flowchart of a transaction data reconciliation processing method based on blockchain provided by another embodiment of the present invention.
图11是本发明另一实施例提供的基于区块链的交易数据对帐处理方法的流程示意图。Fig. 11 is a schematic flowchart of a transaction data reconciliation processing method based on blockchain provided by another embodiment of the present invention.
图12是本发明一实施例提供的基于区块链的交易数据对帐处理装置的结构示意图。Fig. 12 is a schematic structural diagram of a block chain-based transaction data reconciliation processing device provided by an embodiment of the present invention.
图13为本发明实施例提供的电子设备实体结构示意图。FIG. 13 is a schematic diagram of the physical structure of the electronic device provided by the embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
对本发明实施例的相关术语说明如下:The related terms of the embodiments of the present invention are described as follows:
对账依据和标准:Reconciliation basis and standards:
首先业务系统需要明确对账依据和标准。如数字信用凭证的签发、冻结、转入、转出,对账依据是指令编号。对账标准可以设定为对用户的承诺。如:数字信用凭据的签发,如果给用户的结果是失败,但链上成功签发了该数据信用凭据,则需要取消链上的该数字凭证。如果给用户的结果为成功,而链上没有,则需要补签发。数据核对时,如果各个环节结果不一致,最终结果需要与用户的承诺对齐。First of all, the business system needs to clarify the basis and standards for reconciliation. Such as the issuance, freezing, transfer-in, and transfer-out of digital credit certificates, the basis for reconciliation is the instruction number. Reconciliation standards can be set as commitments to users. For example: the issuance of digital credit certificates, if the result to the user is failure, but the data credit certificates are successfully issued on the chain, the digital certificates on the chain need to be cancelled. If the result to the user is success, but not on the chain, it needs to be reissued. During data verification, if the results of each link are inconsistent, the final result needs to be aligned with the user's commitment.
对账时机:Reconciliation timing:
分为在线对账和日终对账。在线对账又分为实时对账和准实时对账。It is divided into online reconciliation and day-end reconciliation. Online reconciliation is divided into real-time reconciliation and quasi-real-time reconciliation.
实时对账可通过超时重试等方式进行强一致性保证。Real-time reconciliation can be guaranteed by strong consistency through timeout retry and other methods.
准实时对账通常用异步来实现。如订单返回失败,异步发起一个任务进行退款,如果退款不成功,则多次重试进行补单。Quasi-real-time reconciliation is usually implemented asynchronously. If the order fails to return, a task will be initiated asynchronously to refund. If the refund is unsuccessful, multiple retries will be made to replenish the order.
日终对账,则一般通过定时任务实现,批量对账方法较多,各业务应用可自由发挥。Day-end reconciliation is generally realized through scheduled tasks, and there are many methods of batch reconciliation, and various business applications can be used freely.
对账方式:Reconciliation method:
单向对账:一般拿第三方支付机构或银行流水,与自身系统进行对账,防止出现掉单问题;One-way reconciliation: Generally, third-party payment institutions or bank statements are used to reconcile with its own system to prevent the problem of missing orders;
双向对账:两个应用间的流水进行双向核对,如订单与财务系统,既要保证财务系统支付成功的记录,订单系统也是成功的;也要确保订单系统记录成功的记录,财务系统也成功。Two-way reconciliation: Two-way checking of the flow between two applications, such as the order and financial system, not only to ensure that the financial system has a successful record of payment, but also the order system is successful; it is also necessary to ensure that the order system records successful records, and the financial system is also successful .
业务系统可根据实际情况采用单向或双向对账的方式进行对账。The business system can use one-way or two-way reconciliation to conduct account reconciliation according to the actual situation.
图1是本发明一实施例提供的基于区块链的交易数据对帐处理方法的流程示意图,如图1所示,本发明实施例提供的基于区块链的交易数据对帐处理方法,包括:Fig. 1 is a schematic flow diagram of a transaction data reconciliation processing method based on blockchain provided by an embodiment of the present invention. As shown in Fig. 1, the transaction data reconciliation processing method based on blockchain provided by an embodiment of the present invention includes :
步骤S1:获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据。Step S1: Obtain the business reconciliation file and the on-chain transaction list file; the on-chain transaction list file includes the transaction data in the block and the world state data.
步骤S2:根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值。Step S2: Determine the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include checks arranged in a preset order The hash value of the feature attribute.
步骤S3:根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Step S3: Compare the hash values corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset order, and determine the transaction data reconciliation processing result according to the comparison result .
在上述步骤S1中,装置获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据。装置可以是执行该方法的计算机设备,例如可以包括服务器,具体可以为区块链服务器中的区块链对账节点服务器等。需要说明是,本发明实施例涉及数据的获取及分析是经用户授权的。如图2所示,在核对上,支持日增量明细数据的核对及定期的资产信息核对。增量核对可及时定位问题数据,而定期的核对,可发现未知的潜在问题。In the above step S1, the device obtains the business reconciliation file and the on-chain transaction list file; the on-chain transaction list file includes transaction data and world state data in the block. The apparatus may be a computer device for executing the method, for example, may include a server, specifically, a blockchain reconciliation node server in the blockchain server, and the like. It should be noted that the acquisition and analysis of data related to the embodiment of the present invention is authorized by the user. As shown in Figure 2, in terms of verification, it supports the verification of daily incremental detailed data and regular asset information verification. Incremental checks can locate problem data in a timely manner, and regular checks can discover unknown potential problems.
如图3所示,对批量对账流程进行简要说明:As shown in Figure 3, a brief description of the batch reconciliation process:
(1)区块链:增加两个数据导出服务,一是将T日日切时间当日生成的区块中的交易数据导出到文件,并上送至区块链对帐节点。二是根据业务需求定期导出世界状态数据。(1) Blockchain: Two data export services are added. One is to export the transaction data in the block generated on the day of T day to a file and send it to the blockchain reconciliation node. The second is to regularly export world state data according to business needs.
(2)业务应用:业务应用日终生成T日的业务对帐文件,并通过区块链存储节点agent将文件传输到区块链对帐节点,或将文件FTP到对帐节点。(2) Business application: The business application generates the business reconciliation file of T day at the end of the day, and transfers the file to the blockchain reconciliation node through the blockchain storage node agent, or FTPs the file to the reconciliation node.
(3)区块链:区块链增加数据对帐节点。根据批量作业配置表,对帐节点定时从区块链存储节点获取相应的业务对账文件和链上交易清单文件,并分别导入到业务订单表和上链交易表,启动对帐流程。(3) Blockchain: The blockchain adds data reconciliation nodes. According to the batch job configuration table, the reconciliation node regularly obtains the corresponding business reconciliation file and on-chain transaction list file from the blockchain storage node, and imports them into the business order table and on-chain transaction table respectively to start the reconciliation process.
(4)处理核心的核对流程。(4) Process the verification process of the core.
(5)将对帐结果文件返回业务应用方。(5) Return the reconciliation result file to the business application side.
说明:illustrate:
1、业务应用对帐文件名规范:业务应用按照统一的规范对生成的对帐文件进行命名,需包含机构id、表名、日期等信息。1. Business application reconciliation file name specification: The business application names the generated reconciliation file according to a unified specification, which must include information such as organization id, table name, and date.
2、数据传输服务调度提供可选的数据传输组件服务的调度,如ftp,或者专门用于文件传输的agent。联盟方机构可根据实际需要由机构自行完成数据的存储及传输。2. Data transmission service scheduling Provide optional scheduling of data transmission component services, such as ftp, or an agent specially used for file transmission. Alliance institutions can complete the storage and transmission of data by themselves according to actual needs.
在获取业务对账文件和链上交易清单文件之后,可以进行链上链下区块数据同步:After obtaining the business reconciliation file and the on-chain transaction list file, the on-chain and off-chain block data synchronization can be performed:
如图4所示,对账本进行简要说明如下:As shown in Figure 4, a brief description of the ledger is as follows:
账本(账册)由两个主要的部分组成,一个是区块链(Block chain),一个是世界状态(World State)。区块链是在账本中的一系列连接好的用来记录交易的账页(区块Block)。世界状态是一个用来存储交易执行状态的键-值(key-value)数据库。即,区块链记录了交易的历史,世界状态记录了交易的现状。账本记录着所有节点交易的总账,分布存储在各个节点,各节点看到的账本都是完整的、真实的、完全一样的。The ledger (ledger) consists of two main parts, one is the blockchain (Block chain) and the other is the world state (World State). The blockchain is a series of connected account pages (block Block) in the ledger that are used to record transactions. The world state is a key-value database used to store transaction execution state. That is, the blockchain records the history of transactions, and the state of the world records the current status of transactions. The ledger records the general ledger of all node transactions, distributed and stored in each node, and the ledger seen by each node is complete, true, and exactly the same.
如图5所示,对账本进行详细说明如下:As shown in Figure 5, the account book is described in detail as follows:
一个区块由区块头(Block Header)和交易集(Block Transaction)构成。区块头包含:上一个区块的hash值和区块号等。交易集包括每笔交易的请求参数、合约执行后的读写集、合约返回值等信息。A block consists of a block header (Block Header) and a transaction set (Block Transaction). The block header contains: the hash value and block number of the previous block, etc. The transaction set includes information such as the request parameters of each transaction, the read and write set after the contract is executed, and the return value of the contract.
由于区块链记录了交易的历史,故交易的历史记录都可以从区块中提取。考虑到对帐的通用性,考虑通过同步整个区块的数据到链下,来实现灵活的数据对帐。可通过监听等方式同步区块。Since the blockchain records the history of transactions, the history of transactions can be extracted from the block. Considering the versatility of reconciliation, it is considered to realize flexible data reconciliation by synchronizing the data of the entire block to the off-chain. Blocks can be synchronized by listening and other methods.
存量方式获取当前peer节点的所有区块。对于增量的区块,通过注册“块监听器”获取增量产生的区块。为了防止增量模式同步节点崩溃导致漏监听的情况,对区块的序号连续性做检查。如图6所示,例如block4,如果中间有漏的区块,则通过区块获取接口获取缺失的区块号的区块信息。The stock method gets all the blocks of the current peer node. For incremental blocks, the incrementally generated blocks are obtained by registering a "block listener". In order to prevent the leakage of monitoring caused by the collapse of the synchronization node in the incremental mode, the sequence number continuity of the block is checked. As shown in Figure 6, for example, block4, if there is a missing block in the middle, the block information of the missing block number is obtained through the block acquisition interface.
区块同步作业相关配置内容如表1所示:The relevant configuration content of the block synchronization job is shown in Table 1:
表1Table 1
区块产生满足如下三个条件之一即可生成:Blocks can be generated when they meet one of the following three conditions:
①每间隔几秒(默认2秒)出块;① Generate blocks every few seconds (default 2 seconds);
②满若干笔交易出块;②Blocks are produced when several transactions are completed;
③交易大小达到指定大小出块。③When the transaction size reaches the specified size, a block is generated.
由此可见,一个区块中可能包含T和T+1日的数据。在执行T日数据的同步时,将T日的交易写入T日的对帐文件中,当检测到当前区块包含T+1日的数据时,则将T+1日的数据写入到T+1日的对帐文件中。一个区块包含T日和T+1日的数据,在同步完毕当前区块后,即完成T日数据的同步工作。It can be seen that a block may contain the data of T and T+1 days. When synchronizing the data of T day, write the transaction of T day into the reconciliation file of T day, when it is detected that the current block contains the data of T+1 day, then write the data of T+1 day into In the reconciliation file on T+1 day. A block contains the data of T day and T+1 day. After the synchronization of the current block is completed, the synchronization of the data of T day is completed.
在链上链下区块数据同步之后,还可以对存量数据进行核对,包括:After the on-chain and off-chain block data is synchronized, the stock data can also be checked, including:
针对的是需要月末或者按季度、年度进行核对的情况。此类数据要求业务应用方在智能合约中将相关数据写入世界状态数据库。业务系统在编写智能合约时应确定要登记到链上的产品日志的数据结构,产品日志中需包含交易的唯一业务主键,且该主键与业务应用系统中的订单信息的唯一业务主键一致。产品日志信息记录到链上,且对应的健值需包含产品种类、唯一业务主键,需要对帐的字段信息保存在相应的记录值中。区块链从世界状态数据库导出相应的数据。世界状态数据跟业务数据一般来说是一对一的关系,不存在一个业务主键存在多笔记录的情况。It is aimed at the situation that needs to be checked at the end of the month or by quarter or year. Such data requires the business application side to write relevant data into the world state database in the smart contract. When writing smart contracts, the business system should determine the data structure of the product log to be registered on the chain. The product log must contain the unique business primary key of the transaction, and the primary key is consistent with the unique business primary key of the order information in the business application system. The product log information is recorded on the chain, and the corresponding key value must include the product type and unique business primary key, and the field information that needs to be reconciled is stored in the corresponding record value. The blockchain derives corresponding data from the world state database. Generally speaking, there is a one-to-one relationship between world state data and business data, and there is no situation where there are multiple records in a business primary key.
该类作业配置中,需要提供世界状态中的表名、核对字段属性等信息。如表2所示:In this type of job configuration, it is necessary to provide information such as the table name and check field attributes in the world state. As shown in table 2:
表2Table 2
在对存量数据进行核对之后,对账本交易数据进行提取:After checking the stock data, extract the ledger transaction data:
在区块数据的交易集里,唯一交易编号(可以是复合健)一般在交易的背书请求入参中,交易时间在交易头中,核对的信息可能部分存在于请求参数,部分存在于执行结果的读写集中。In the transaction set of block data, the unique transaction number (which can be a compound key) is generally included in the endorsement request input parameter of the transaction, and the transaction time is included in the transaction header. The information to be checked may partially exist in the request parameters and partially exist in the execution result read and write concentration.
如图7所示,在应用系统中,订单表部分信息对应链上的背书请求信息,部分对应区块的读写集信息,故需要核对作业定义核对的属性及其来源。从区块提取交易信息时按照作业定义的规则解析区块中的交易数据,如果一个唯一交易编号(可以是复合健)在多个区块中存在,则选取最新同步的区块交易覆盖。As shown in Figure 7, in the application system, part of the information in the order table corresponds to the endorsement request information on the chain, and part of it corresponds to the read-write set information of the block, so it is necessary to check the attributes and sources of the job definition check. When extracting transaction information from a block, analyze the transaction data in the block according to the rules defined by the job. If a unique transaction number (which can be a compound key) exists in multiple blocks, select the latest synchronized block transaction to overwrite.
核对作业配置:Check job configuration:
在对帐作业配置中,提供对账相关信息配置。包含作业的组织机构标识、通道名、唯一交易编号、核对字段属性等信息,如表3所示:In the reconciliation job configuration, provide reconciliation-related information configuration. Contains job organization ID, channel name, unique transaction number, check field attributes and other information, as shown in Table 3:
表3table 3
如图8所示,区块链底层记帐节点包含区块数据和世界状态数据。链上的业务数据通过在智能合约中将交易信息写入区块链底层,区块链日终同步区块,并解析区块中的交易信息,解析出来的结果导出到区块链交易日志文件中,导出信息包含业务id、交易唯一id、交易哈希值。文件导出后上传到区块链对帐节点,对帐节点获取文件进行处理。此外,合约执行时还会更新区块链的世界状态数据库,此类数据保存了业务数据的最新状态,根据业务作业配置需求导出相应的数据。As shown in Figure 8, the underlying accounting nodes of the blockchain contain block data and world state data. The business data on the chain writes the transaction information into the bottom layer of the blockchain in the smart contract, and the blockchain synchronizes the blocks at the end of the day, and analyzes the transaction information in the block, and the parsed results are exported to the blockchain transaction log file In , the exported information includes business id, transaction unique id, and transaction hash value. After the file is exported, it is uploaded to the blockchain reconciliation node, and the reconciliation node obtains the file for processing. In addition, the world state database of the blockchain will be updated when the contract is executed. This type of data saves the latest state of business data, and the corresponding data is exported according to the configuration requirements of business operations.
在对账本交易数据进行提取之后,还包括:After extracting the ledger transaction data, it also includes:
对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测。Perform transaction error data detection on the business reconciliation file and the on-chain transaction list file.
如图9所示,具体包括:As shown in Figure 9, specifically include:
获取对应同一交易的业务对账文件和链上交易清单文件之间的交集数据;所述交集数据为在对应同一交易的业务对账文件和链上交易清单文件中字段名称相同的数据;字段名称可以在预配置信息中进行配置,例如业务对账文件中字段名称包括A、B、C和D,链上交易清单文件中字段名称包括A、B、D和E,则业务对账文件中A中的数据a1和链上交易清单文件中A中的数据a2,以及业务对账文件中B中的数据b1和链上交易清单文件中B中的数据b2为上述交集数据。交集数据对应图9中两个圆圈的公共部分。Obtain the intersection data between the business reconciliation file corresponding to the same transaction and the transaction list file on the chain; the intersection data is the data with the same field name in the business reconciliation file corresponding to the same transaction and the transaction list file on the chain; the field name It can be configured in pre-configured information. For example, the field names in the business reconciliation file include A, B, C, and D, and the field names in the on-chain transaction list file include A, B, D, and E. In the business reconciliation file, A The data a1 in and the data a2 in A in the on-chain transaction list file, as well as the data b1 in B in the business reconciliation file and the data b2 in B in the on-chain transaction list file are the above intersection data. The intersection data corresponds to the common part of the two circles in Figure 9.
对所述交集数据中的所有相同字段的字段内容信息分别进行比对,若确定所有比对结果都一致,则确定在所述交集数据中不存在交易差错数据。参照上述举例,将a1与a2进行比对,将b1与b2进行比对,如果a1与a2比对结果一致,且b1与b2比对结果一致,则确定在交集数据中不存在交易差错数据。即对应图9中,两个圆圈的公共部分都为一致的情况。Comparing the field content information of all the same fields in the intersection data, if it is determined that all the comparison results are consistent, then it is determined that there is no transaction error data in the intersection data. Referring to the above example, compare a1 with a2, and compare b1 with b2. If the comparison results of a1 and a2 are consistent, and the comparison results of b1 and b2 are consistent, then it is determined that there is no transaction error data in the intersection data. That is, it corresponds to the case where the common parts of the two circles are consistent in FIG. 9 .
若确定存在至少一组比对结果不一致,则确定在所述交集数据中存在第一类型交易差错数据;所述第一类型交易差错数据为比对信息内容不一致的交易差错数据。If it is determined that there is at least one group of inconsistent comparison results, then it is determined that there is first type of transaction error data in the intersection data; the first type of transaction error data is transaction error data whose content of comparison information is inconsistent.
参照上述举例,如果a1与a2比对结果一致,且b1与b2比对结果不一致,则确定B为第一类型交易差错数据,即对应图9中,两个圆圈的公共部分的一致部分为A,不一致部分为B。Referring to the above example, if the comparison results of a1 and a2 are consistent, and the comparison results of b1 and b2 are inconsistent, then it is determined that B is the first type of transaction error data, that is, corresponding to Figure 9, the common part of the two circles is A , the inconsistent part is B.
获取所述业务对账文件和所述链上交易清单文件之间的单边数据;所述单边数据为在所述业务对账文件中存在,且在所述链上交易清单文件中不存在的字段名称对应数据;以及在所述业务对账文件中不存在,且在所述链上交易清单文件中存在的字段名称对应数据;参照上述举例,业务对账文件的单边数据为C对应的c1、链上交易清单文件的单边数据为E对应的e2。Obtain the unilateral data between the business reconciliation file and the on-chain transaction list file; the unilateral data exists in the business reconciliation file and does not exist in the on-chain transaction list file The data corresponding to the field name of the business reconciliation file; and the data corresponding to the field name that does not exist in the business reconciliation file and exists in the on-chain transaction list file; referring to the above example, the unilateral data of the business reconciliation file corresponds to C c1 and the unilateral data of the on-chain transaction list file are e2 corresponding to E.
确定在所述单边数据中存在第二类型交易差错数据;所述第二类型交易差错数据为字段缺失的交易差错数据。上述c2(链上交易清单文件中缺失字段C对应的c2)和e1(业务对账文件中缺失字段e对应的c1)为第二类型交易差错数据。It is determined that the second type of transaction error data exists in the unilateral data; the second type of transaction error data is transaction error data with missing fields. The above c2 (c2 corresponding to the missing field C in the on-chain transaction list file) and e1 (c1 corresponding to the missing field e in the business reconciliation file) are the second type of transaction error data.
对于上述第一类型交易差错数据,可以采用如下应对策略:For the above-mentioned first type of transaction error data, the following coping strategies can be adopted:
由业务应用提供远程服务接口,并配置在差错处理作业中。接口包含订单号及链上交易数据,对帐平台差错处理作业调用该接口。接口处理时,如果业务订单为失败,而链上的状态为成功,更新订单状态为成功;如果业务订单为成功,链上交易为失败,则更新订单状态为失败,在差错作业定义中可由业务应用定义服务接口进行更新。The remote service interface is provided by the business application and configured in the error handling job. The interface includes the order number and transaction data on the chain, and the error processing job of the reconciliation platform calls this interface. When the interface is processed, if the business order is failed and the status on the chain is successful, the status of the update order is successful; if the business order is successful and the transaction on the chain is failed, the status of the update order is failed. The application defines the service interface for updating.
对于上述第二类型交易差错数据,可以采用如下应对策略:For the above-mentioned second type of transaction error data, the following coping strategies can be adopted:
处于链上交易侧的补集属于长款差错,即这部分数据在链上存在,而在业务订单系统成功数据集中未找到,导致这部分差错数据的原因,可能有跨天交易的情况、系统层面的订单掉单等。这类数据先置单边,等到T+1日进行对帐。The complement set on the transaction side of the chain is a long-term error, that is, this part of the data exists on the chain, but it is not found in the successful data set of the business order system. The reason for this part of the error data may be cross-day transactions, the system level of orders dropped orders and so on. This kind of data is placed on one side first, and the reconciliation will be performed on T+1 day.
处于业务应用侧的补集,即这部分数据在业务订单中存在,而在链上不存在,造成这部分差错的原因有可能是跨天交易情况导致。这类数据先置单边,等到T+1日进行对帐。T+1日时会出现链上交易长款的情况。Complementary set on the business application side, that is, this part of data exists in the business order but does not exist on the chain. The cause of this part of the error may be caused by cross-day transactions. This kind of data is placed on one side first, and the reconciliation will be performed on T+1 day. On T+1 day, there will be long-term transactions on the chain.
等到T+1日,差错处理作业将前几日的差异数据进行遍历,如果一致,则对平;如果依然没找到,差错作业定义中可由业务应用定义远程服务接口进行补单,如果应用不做配置,则由应用自身发起差错处理。Wait until T+1 day, the error processing job will traverse the difference data of the previous few days, if they are consistent, then level; if still not found, the remote service interface can be defined by the business application in the error job definition to make up the order, if the application does not configuration, the error handling is initiated by the application itself.
差错处理作业配置如表4所示:The error handling job configuration is shown in Table 4:
表4Table 4
在上述步骤S2中,装置根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值。核对要素属性可以理解为根据用户需要在预配置信息中配置的待对账信息数据,预设顺序可以根据用户需要在预配置信息中配置。可以按照上述预设顺序依次对核对要素属性进行计算,得到与各核对要素属性分别对应的哈希值。In the above step S2, the device determines the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include Sequentially ordered hashes of attributes of the checked features. Checking element attributes can be understood as information data to be reconciled configured in the pre-configured information according to user needs, and the preset order can be configured in the pre-configured information according to user needs. The attributes of the checking elements may be calculated sequentially according to the above preset order to obtain the hash values respectively corresponding to the attributes of each checking element.
目标业务对账文件和目标链上交易清单文件还可以包括交易编号,通过该交易编号可以确定对应同一交易的目标业务对账文件和目标链上交易清单文件。The target business reconciliation file and the target on-chain transaction list file may also include a transaction number, through which the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction can be determined.
如图10所示,对根据业务需要配置信息流程说明如下:As shown in Figure 10, the configuration information flow according to business needs is described as follows:
考虑到不同的业务匹配要素多种多样,为了避免重复开发,由业务应用确定核对要素属性,并在核对作业中配置。在发起交易时,各核对属性及属性值分别记录到应用系统和链上的相关请求报文和读写集中,链上的属性与应用系统的属性映射关系通过作业定义进行配置。Considering the variety of different business matching elements, in order to avoid repeated development, the business application determines the properties of the checking elements and configures them in the checking job. When a transaction is initiated, each check attribute and attribute value are recorded in the application system and the relevant request message and read-write set on the chain, and the mapping relationship between the attributes on the chain and the attribute of the application system is configured through the job definition.
业务方交易上链时通过智能合约发起交易写入链上,业务系统在编写智能合约时应确定要登记到链上的数据结构,需包含交易的唯一交易编号,且该编号与业务应用系统中的订单信息的唯一交易编号一致。When the business party trades on the chain, it initiates the transaction through the smart contract and writes it on the chain. When writing the smart contract, the business system should determine the data structure to be registered on the chain, which must include the unique transaction number of the transaction, and the number is consistent with the The unique transaction number of the order information is the same.
对帐文件(目标业务对账文件和目标链上交易清单文件)结构如表5所示:The structure of the reconciliation file (the target business reconciliation file and the transaction list file on the target chain) is shown in Table 5:
表5table 5
由于该哈希主要是针对一个交易内的哈希码,故出现哈希冲突的概率比较低,可以构造简易高效的哈希算法生成哈希值。Since the hash is mainly for the hash code in a transaction, the probability of hash collision is relatively low, and a simple and efficient hash algorithm can be constructed to generate the hash value.
核对时,业务方提供交易订单信息文件,区块链提供链上的区块交易文件,订单文件和区块交易表通过唯一交易编号进行关联,核对两张表的相同交易编号对应的哈希值是否一致。When checking, the business party provides the transaction order information file, and the blockchain provides the block transaction file on the chain. The order file and the block transaction table are associated through a unique transaction number, and the hash value corresponding to the same transaction number of the two tables is checked. Is it consistent.
在上述步骤S3中,装置根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。举例说明如下:目标业务对账文件中顺序排列的哈希值记为H1、H2…HM;目标链上交易清单文件中顺序排列的哈希值记为h1、h2…hM,先将H1与h1比较,再将H2与h2比较,以此类推最后将HM与hM比较。In the above step S3, the device compares the hash values corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset order, and determines the transaction data according to the comparison result Reconciliation processing results. An example is as follows: the hash values arranged in sequence in the target business reconciliation file are recorded as H1, H2...HM; the hash values arranged in sequence in the transaction list file on the target chain are recorded as h1, h2...hM, first H1 and h1 Compare, then compare H2 with h2, and so on, and finally compare HM with hM.
如图11所示,所述根据比较结果确定交易数据对账处理结果,包括:As shown in Figure 11, the determination of the transaction data reconciliation processing result according to the comparison result includes:
若确定所有哈希值两两比较的比较结果都相同,则确定交易数据对账处理结果为相一致;参照上述举例,如果H1、H2…HM与h1、h2…hM两两比较的比较结果都相同,则确定交易数据对账处理结果为相一致。If it is determined that the comparison results of pairwise comparisons of all hash values are the same, it is determined that the transaction data reconciliation processing results are consistent; referring to the above example, if the comparison results of pairwise comparisons of H1, H2...HM and h1, h2...hM are the same If they are the same, it is determined that the transaction data reconciliation processing results are consistent.
若确定至少存在一组哈希值两两比较的比较结果不相同,则确定交易数据对账处理结果为不一致。参照上述举例,如果在H1、H2…HM与h1、h2…hM中至少存在一组比较结果不相同,则确定交易数据对账处理结果为不一致。If it is determined that there is at least one group of hash values whose pairwise comparison results are not the same, it is determined that the transaction data reconciliation processing result is inconsistent. Referring to the above example, if there is at least one group of comparison results among H1, H2...HM and h1, h2...hM that are not the same, it is determined that the transaction data reconciliation processing result is inconsistent.
本发明实施例具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
1.针对去中心化应用,提供完整的区块链与应用系统之间的对帐建设方案。通过从区块提取交易数据,并支持增量交易信息的核对,通过提取世界状态数据库中的交易数据支持定期的存量资产的核对,最终实现业务系统和链上交易数据的一致性,避免由于网络、系统bug等问题导致双方的数据不一致。1. For decentralized applications, provide a complete reconciliation construction solution between the blockchain and the application system. By extracting transaction data from the block and supporting the verification of incremental transaction information, and by extracting transaction data from the world state database to support regular verification of stock assets, the consistency of business systems and transaction data on the chain is finally achieved, avoiding network , system bugs and other issues lead to data inconsistencies between the two parties.
2.通用性:链上生成的对帐文件数据,保存的是交易唯一id及对应的核对要素的哈希值,业务系统在生成对帐业务文件时,根据同样的hash算法生成该交易的核对要素的哈希值,从而屏蔽不同业务系统多种多样的一致性对帐逻辑,与业务逻辑完全解耦,实现通用的解决方案。2. Versatility: The reconciliation file data generated on the chain stores the hash value of the unique id of the transaction and the corresponding verification elements. When the business system generates the reconciliation business file, it generates the verification of the transaction according to the same hash algorithm The hash value of the elements, so as to shield the various consistent reconciliation logics of different business systems, completely decoupled from the business logic, and realize a general solution.
3.安全性:链上生成的对帐文件数据,保存的是交易唯一id及对应的核对要素的哈希值,不涉及敏感业务信息的泄漏,保证业务数据的安全。3. Security: The reconciliation file data generated on the chain stores the unique ID of the transaction and the hash value of the corresponding verification elements, which does not involve the leakage of sensitive business information and ensures the security of business data.
4.网络传输量小:对帐双方的文件由于只包含交易id和哈希值,大大降低了传统对帐文件的大小,减少网络传输流量。4. Small amount of network transmission: Since the files of both sides of the reconciliation only contain the transaction id and hash value, the size of the traditional reconciliation file is greatly reduced, and the network transmission traffic is reduced.
5.所使用的哈希算法,可支持一定较大程度的哈希碰撞,当存在多个输入值对应相同的哈希码时,攻击者无法确定以哪个输入值为准,从而保护业务信息安全。5. The hash algorithm used can support a certain degree of hash collision. When there are multiple input values corresponding to the same hash code, the attacker cannot determine which input value shall prevail, thereby protecting the security of business information .
6.交易差错处理作业中,支持交易的补单处理。交易的核对信息保存在区块链中,出现核对不一致时,业务系统在相应的补单服务中可以调用相关的区块链查询接口获取区块链上的交易信息。6. In the transaction error processing operation, it supports the transaction replenishment order processing. The verification information of the transaction is stored in the blockchain. When there is an inconsistency in the verification, the business system can call the relevant blockchain query interface to obtain the transaction information on the blockchain in the corresponding replenishment service.
本发明实施例提供的基于区块链的交易数据对帐处理方法,获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果,能够提高交易数据对账的准确性和适用性。The transaction data reconciliation processing method based on the block chain provided by the embodiment of the present invention obtains the business reconciliation file and the transaction list file on the chain; the transaction list file on the chain includes the transaction data in the block and the world state data; according to The pre-configuration information determines the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction; the target business reconciliation file and the target on-chain transaction list file respectively include hashes of attributes of the verification elements arranged in a preset order. Greek value: compare the hash values corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset order, and determine the transaction data reconciliation processing result according to the comparison result , can improve the accuracy and applicability of transaction data reconciliation.
进一步地,所述根据比较结果确定交易数据对账处理结果,包括:Further, the determining the transaction data reconciliation processing result according to the comparison result includes:
若确定所有哈希值两两比较的比较结果都相同,则确定交易数据对账处理结果为相一致;可参照上述说明,不再赘述。If it is determined that the comparison results of pairwise comparisons of all hash values are the same, then it is determined that the transaction data reconciliation processing results are consistent; refer to the above description, and will not repeat them here.
若确定至少存在一组哈希值两两比较的比较结果不相同,则确定交易数据对账处理结果为不一致。可参照上述说明,不再赘述。If it is determined that there is at least one group of hash values whose pairwise comparison results are not the same, it is determined that the transaction data reconciliation processing result is inconsistent. Reference may be made to the above description, and details are not repeated here.
本发明实施例提供的基于区块链的交易数据对帐处理方法,进一步能够提高交易数据对账的准确性。The blockchain-based transaction data reconciliation processing method provided by the embodiment of the present invention can further improve the accuracy of transaction data reconciliation.
进一步地,所述预配置信息包括交易编号;相应的,所述根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件,包括:Further, the pre-configuration information includes a transaction number; correspondingly, determining the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configuration information includes:
根据所述交易编号确定对应同一交易的目标业务对账文件和目标链上交易清单文件。可参照上述说明,不再赘述。According to the transaction number, the target business reconciliation file and the transaction list file on the target chain corresponding to the same transaction are determined. Reference may be made to the above description, and details are not repeated here.
本发明实施例提供的基于区块链的交易数据对帐处理方法,能够准确关联到目标业务对账文件和目标链上交易清单文件。The transaction data reconciliation processing method based on the block chain provided by the embodiment of the present invention can be accurately associated with the target business reconciliation file and the transaction list file on the target chain.
进一步地,在所述根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件的步骤之前,所述基于区块链的交易数据对帐处理方法还包括:Further, before the step of determining the target business reconciliation file and the target chain transaction list file corresponding to the same transaction according to the pre-configuration information, the block chain-based transaction data reconciliation processing method also includes:
对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测。可参照上述说明,不再赘述。Perform transaction error data detection on the business reconciliation file and the on-chain transaction list file. Reference may be made to the above description, and details are not repeated here.
本发明实施例提供的基于区块链的交易数据对帐处理方法,通过预先进行交易差错数据检测,进一步能够提高交易数据对账的准确性和适用性。The transaction data reconciliation processing method based on the blockchain provided by the embodiment of the present invention can further improve the accuracy and applicability of the transaction data reconciliation by performing transaction error data detection in advance.
进一步地,所述对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测,包括:Further, the detection of transaction error data on the business reconciliation file and the on-chain transaction list file includes:
获取对应同一交易的业务对账文件和链上交易清单文件之间的交集数据;所述交集数据为在对应同一交易的业务对账文件和链上交易清单文件中字段名称相同的数据;可参照上述说明,不再赘述。Obtain the intersection data between the business reconciliation file corresponding to the same transaction and the transaction list file on the chain; the intersection data is the data with the same field name in the business reconciliation file corresponding to the same transaction and the transaction list file on the chain; refer to The above description will not be repeated here.
对所述交集数据中的所有相同字段的字段内容信息分别进行比对,若确定所有比对结果都一致,则确定在所述交集数据中不存在交易差错数据。可参照上述说明,不再赘述。Comparing the field content information of all the same fields in the intersection data, if it is determined that all the comparison results are consistent, then it is determined that there is no transaction error data in the intersection data. Reference may be made to the above description, and details are not repeated here.
本发明实施例提供的基于区块链的交易数据对帐处理方法,能够准确进行交易差错数据检测。The blockchain-based transaction data reconciliation processing method provided by the embodiment of the present invention can accurately detect transaction error data.
进一步地,所述基于区块链的交易数据对帐处理方法还包括:Further, the transaction data reconciliation processing method based on the block chain also includes:
若确定存在至少一组比对结果不一致,则确定在所述交集数据中存在第一类型交易差错数据;所述第一类型交易差错数据为比对信息内容不一致的交易差错数据。可参照上述说明,不再赘述。If it is determined that there is at least one group of inconsistent comparison results, then it is determined that there is first type of transaction error data in the intersection data; the first type of transaction error data is transaction error data whose content of comparison information is inconsistent. Reference may be made to the above description, and details are not repeated here.
本发明实施例提供的基于区块链的交易数据对帐处理方法,能够准确进行交易差错数据检测。The blockchain-based transaction data reconciliation processing method provided by the embodiment of the present invention can accurately detect transaction error data.
进一步地,所述对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测,包括:Further, the detection of transaction error data on the business reconciliation file and the on-chain transaction list file includes:
获取所述业务对账文件和所述链上交易清单文件之间的单边数据;所述单边数据为在所述业务对账文件中存在,且在所述链上交易清单文件中不存在的字段名称对应数据;以及在所述业务对账文件中不存在,且在所述链上交易清单文件中存在的字段名称对应数据;可参照上述说明,不再赘述。Obtain the unilateral data between the business reconciliation file and the on-chain transaction list file; the unilateral data exists in the business reconciliation file and does not exist in the on-chain transaction list file The data corresponding to the field name of the ; and the data corresponding to the field name that does not exist in the business reconciliation file and exists in the on-chain transaction list file; you can refer to the above description, and will not repeat it.
确定在所述单边数据中存在第二类型交易差错数据;所述第二类型交易差错数据为字段缺失的交易差错数据。可参照上述说明,不再赘述。It is determined that the second type of transaction error data exists in the unilateral data; the second type of transaction error data is transaction error data with missing fields. Reference may be made to the above description, and details are not repeated here.
本发明实施例提供的基于区块链的交易数据对帐处理方法,能够准确进行交易差错数据检测。The blockchain-based transaction data reconciliation processing method provided by the embodiment of the present invention can accurately detect transaction error data.
需要说明的是,本发明实施例提供的基于区块链的交易数据对帐处理方法可用于金融领域,也可用于除金融领域之外的任意技术领域,本发明实施例对基于区块链的交易数据对帐处理方法的应用领域不做限定。It should be noted that the blockchain-based transaction data reconciliation processing method provided by the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The application field of the transaction data reconciliation processing method is not limited.
图12是本发明一实施例提供的基于区块链的交易数据对帐处理装置的结构示意图,如图12所示,本发明实施例提供的基于区块链的交易数据对帐处理装置,包括获取单元1201、确定单元1202和对账单元1203,其中:Fig. 12 is a schematic structural diagram of a block chain-based transaction data reconciliation processing device provided by an embodiment of the present invention. As shown in Fig. 12, the block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention includes An
获取单元1201用于获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;确定单元1202用于根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;对账单元1203用于根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。The obtaining
具体的,装置中的获取单元1201用于获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;确定单元1202用于根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;对账单元1203用于根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Specifically, the obtaining
本发明实施例提供的基于区块链的交易数据对帐处理装置,获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果,能够提高交易数据对账的准确性和适用性。The block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention obtains the business reconciliation file and the transaction list file on the chain; the transaction list file on the chain includes the transaction data in the block and the world state data; according to The pre-configuration information determines the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction; the target business reconciliation file and the target on-chain transaction list file respectively include hashes of attributes of the verification elements arranged in a preset order. Greek value: compare the hash values corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset order, and determine the transaction data reconciliation processing result according to the comparison result , can improve the accuracy and applicability of transaction data reconciliation.
进一步地,所述对账单元1203具体用于:Further, the
若确定所有哈希值两两比较的比较结果都相同,则确定交易数据对账处理结果为相一致;If it is determined that the comparison results of pairwise comparisons of all hash values are the same, then it is determined that the transaction data reconciliation processing results are consistent;
若确定至少存在一组哈希值两两比较的比较结果不相同,则确定交易数据对账处理结果为不一致。If it is determined that there is at least one group of hash values whose pairwise comparison results are not the same, it is determined that the transaction data reconciliation processing result is inconsistent.
本发明实施例提供的基于区块链的交易数据对帐处理装置,进一步能够提高交易数据对账的准确性。The block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention can further improve the accuracy of transaction data reconciliation.
进一步地,所述预配置信息包括交易编号;相应的,所述确定单元1202具体用于:Further, the pre-configuration information includes a transaction number; correspondingly, the determining
根据所述交易编号确定对应同一交易的目标业务对账文件和目标链上交易清单文件。According to the transaction number, the target business reconciliation file and the transaction list file on the target chain corresponding to the same transaction are determined.
本发明实施例提供的基于区块链的交易数据对帐处理装置,能够准确关联到目标业务对账文件和目标链上交易清单文件。The block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention can be accurately associated with the target business reconciliation file and the transaction list file on the target chain.
进一步地,在所述根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件的步骤之前,所述基于区块链的交易数据对帐处理装置还用于:Further, before the step of determining the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configuration information, the block chain-based transaction data reconciliation processing device is also used for:
对所述业务对账文件和所述链上交易清单文件进行交易差错数据检测。Perform transaction error data detection on the business reconciliation file and the on-chain transaction list file.
本发明实施例提供的基于区块链的交易数据对帐处理装置,通过预先进行交易差错数据检测,进一步能够提高交易数据对账的准确性和适用性。The block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention can further improve the accuracy and applicability of transaction data reconciliation by performing transaction error data detection in advance.
进一步地,所述基于区块链的交易数据对帐处理装置还具体用于:Further, the transaction data reconciliation processing device based on blockchain is also specifically used for:
获取对应同一交易的业务对账文件和链上交易清单文件之间的交集数据;所述交集数据为在对应同一交易的业务对账文件和链上交易清单文件中字段名称相同的数据;Obtain the intersection data between the business reconciliation file corresponding to the same transaction and the transaction list file on the chain; the intersection data is the data with the same field name in the business reconciliation file corresponding to the same transaction and the transaction list file on the chain;
对所述交集数据中的所有相同字段的字段内容信息分别进行比对,若确定所有比对结果都一致,则确定在所述交集数据中不存在交易差错数据。Comparing the field content information of all the same fields in the intersection data, if it is determined that all the comparison results are consistent, then it is determined that there is no transaction error data in the intersection data.
本发明实施例提供的基于区块链的交易数据对帐处理装置,能够准确进行交易差错数据检测。The block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention can accurately detect transaction error data.
进一步地,所述基于区块链的交易数据对帐处理装置还具体用于:Further, the transaction data reconciliation processing device based on blockchain is also specifically used for:
若确定存在至少一组比对结果不一致,则确定在所述交集数据中存在第一类型交易差错数据;所述第一类型交易差错数据为比对信息内容不一致的交易差错数据。If it is determined that there is at least one group of inconsistent comparison results, then it is determined that there is first type of transaction error data in the intersection data; the first type of transaction error data is transaction error data whose content of comparison information is inconsistent.
本发明实施例提供的基于区块链的交易数据对帐处理装置,能够准确进行交易差错数据检测。The block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention can accurately detect transaction error data.
进一步地,所述基于区块链的交易数据对帐处理装置还具体用于:Further, the transaction data reconciliation processing device based on blockchain is also specifically used for:
获取所述业务对账文件和所述链上交易清单文件之间的单边数据;所述单边数据为在所述业务对账文件中存在,且在所述链上交易清单文件中不存在的字段名称对应数据;以及在所述业务对账文件中不存在,且在所述链上交易清单文件中存在的字段名称对应数据;Obtain the unilateral data between the business reconciliation file and the on-chain transaction list file; the unilateral data exists in the business reconciliation file and does not exist in the on-chain transaction list file The data corresponding to the field name of ; and the data corresponding to the field name that does not exist in the business reconciliation file and exists in the on-chain transaction list file;
确定在所述单边数据中存在第二类型交易差错数据;所述第二类型交易差错数据为字段缺失的交易差错数据。It is determined that the second type of transaction error data exists in the unilateral data; the second type of transaction error data is transaction error data with missing fields.
本发明实施例提供的基于区块链的交易数据对帐处理装置,能够准确进行交易差错数据检测。The block chain-based transaction data reconciliation processing device provided by the embodiment of the present invention can accurately detect transaction error data.
本发明实施例提供基于区块链的交易数据对帐处理装置的实施例具体可以用于执行上述各方法实施例的处理流程,其功能在此不再赘述,可以参照上述方法实施例的详细描述。The embodiment of the present invention provides an embodiment of a block chain-based transaction data reconciliation processing device that can specifically be used to execute the processing procedures of the above-mentioned method embodiments, and its functions will not be repeated here. You can refer to the detailed description of the above-mentioned method embodiments .
图13为本发明实施例提供的电子设备实体结构示意图,如图13所示,所述电子设备包括:处理器(processor)1301、存储器(memory)1302和总线1303;FIG. 13 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 13 , the electronic device includes: a processor (processor) 1301, a memory (memory) 1302, and a
其中,所述处理器1301、存储器1302通过总线1303完成相互间的通信;Wherein, the
所述处理器1301用于调用所述存储器1302中的程序指令,以执行上述各方法实施例所提供的方法,例如包括:The
获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;Obtain the business reconciliation file and the chain transaction list file; the chain transaction list file includes the transaction data in the block and the world state data;
根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;Determine the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include attributes of check elements arranged in a preset order hash value;
根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Comparing the hash values respectively corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset sequence, and determining the transaction data reconciliation processing result according to the comparison result.
本实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:This embodiment discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by the computer, the computer The methods provided by the above-mentioned method embodiments can be implemented, for example, including:
获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;Obtain the business reconciliation file and the chain transaction list file; the chain transaction list file includes the transaction data in the block and the world state data;
根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;Determine the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include attributes of check elements arranged in a preset order hash value;
根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Comparing the hash values respectively corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset sequence, and determining the transaction data reconciliation processing result according to the comparison result.
本实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储计算机程序,所述计算机程序使所述计算机执行上述各方法实施例所提供的方法,例如包括:This embodiment provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program causes the computer to execute the methods provided in the foregoing method embodiments, for example, including:
获取业务对账文件和链上交易清单文件;所述链上交易清单文件包括区块中的交易数据和世界状态数据;Obtain the business reconciliation file and the chain transaction list file; the chain transaction list file includes the transaction data in the block and the world state data;
根据预配置信息确定对应同一交易的目标业务对账文件和目标链上交易清单文件;所述目标业务对账文件和所述目标链上交易清单文件分别包括按照预设顺序排列的核对要素属性的哈希值;Determine the target business reconciliation file and the target on-chain transaction list file corresponding to the same transaction according to the pre-configured information; the target business reconciliation file and the target on-chain transaction list file respectively include attributes of check elements arranged in a preset order hash value;
根据所述预设顺序依次逐个将与所述目标业务对账文件和所述目标链上交易清单文件分别对应的哈希值两两比较,并根据比较结果确定交易数据对账处理结果。Comparing the hash values respectively corresponding to the target business reconciliation file and the target on-chain transaction list file one by one according to the preset sequence, and determining the transaction data reconciliation processing result according to the comparison result.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在本说明书的描述中,参考术语“一个实施例”、“一个具体实施例”、“一些实施例”、“例如”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "examples", "specific examples", or "some examples" etc. mean It means that a specific feature, structure, material or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210974744.8A CN115393082A (en) | 2022-08-15 | 2022-08-15 | A blockchain-based transaction data reconciliation processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210974744.8A CN115393082A (en) | 2022-08-15 | 2022-08-15 | A blockchain-based transaction data reconciliation processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115393082A true CN115393082A (en) | 2022-11-25 |
Family
ID=84117870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210974744.8A Pending CN115393082A (en) | 2022-08-15 | 2022-08-15 | A blockchain-based transaction data reconciliation processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115393082A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116614513A (en) * | 2023-03-31 | 2023-08-18 | 中国工商银行股份有限公司 | Block chain data migration method, device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110706105A (en) * | 2019-09-19 | 2020-01-17 | 北京三快在线科技有限公司 | Error marking method, error marking device, computer equipment and storage medium |
CN111861482A (en) * | 2020-09-22 | 2020-10-30 | 支付宝(杭州)信息技术有限公司 | Block chain account checking method and system |
CN112785408A (en) * | 2021-02-26 | 2021-05-11 | 中国工商银行股份有限公司 | Account checking method and device based on Hash |
CN114169887A (en) * | 2021-12-06 | 2022-03-11 | 江苏点石乐投科技有限公司 | Reconciliation system based on distributed data nodes |
CN114266578A (en) * | 2021-11-23 | 2022-04-01 | 航天信息股份有限公司 | A transaction reconciliation method and system based on Merkle tree |
-
2022
- 2022-08-15 CN CN202210974744.8A patent/CN115393082A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110706105A (en) * | 2019-09-19 | 2020-01-17 | 北京三快在线科技有限公司 | Error marking method, error marking device, computer equipment and storage medium |
CN111861482A (en) * | 2020-09-22 | 2020-10-30 | 支付宝(杭州)信息技术有限公司 | Block chain account checking method and system |
CN112785408A (en) * | 2021-02-26 | 2021-05-11 | 中国工商银行股份有限公司 | Account checking method and device based on Hash |
CN114266578A (en) * | 2021-11-23 | 2022-04-01 | 航天信息股份有限公司 | A transaction reconciliation method and system based on Merkle tree |
CN114169887A (en) * | 2021-12-06 | 2022-03-11 | 江苏点石乐投科技有限公司 | Reconciliation system based on distributed data nodes |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116614513A (en) * | 2023-03-31 | 2023-08-18 | 中国工商银行股份有限公司 | Block chain data migration method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10437795B2 (en) | Upgrading systems with changing constraints | |
US10969929B2 (en) | Dependency graph-controlled object and compute pipeline migration | |
US10353878B1 (en) | Method and system for cloning enterprise content management systems | |
US20210383370A1 (en) | Enhanced multi-party user data deletion | |
US20080162494A1 (en) | Coordinated data conversion systems and methods | |
US10599985B2 (en) | Systems and methods for expediting rule-based data processing | |
US11157247B2 (en) | Cryptographic digital twin segregation system for development operations | |
CN106897342B (en) | Data verification method and equipment | |
CN110599166A (en) | Method and device for acquiring transaction dependency relationship in block chain | |
CN114564500A (en) | Method and system for implementing structured data storage and query in block chain system | |
CN114358903A (en) | RPA-based multi-system account checking method, device and computer equipment | |
CN109614271A (en) | Control method, device, device and storage medium for data consistency of multiple clusters | |
CN114416805B (en) | Data checking method and device, computer equipment and storage medium | |
CN115393082A (en) | A blockchain-based transaction data reconciliation processing method and device | |
CN106990974B (en) | APP updating method and device and electronic equipment | |
CN113656380B (en) | Data lifecycle management method and device | |
CN115357594A (en) | A blockchain-based data model update method and related equipment | |
US20120011164A1 (en) | Life cycle based data coordination | |
CN117743306A (en) | Data migration method, device, computer equipment and storage medium | |
US12008017B2 (en) | Replicating data across databases by utilizing validation functions for data completeness and sequencing | |
WO2020155167A1 (en) | Application of cross-organizational transactions to blockchain | |
CN114490415B (en) | Business testing method, computer device, storage medium and computer program product | |
CN113179294B (en) | Schema unified access method based on intelligent contract | |
CN113190463B (en) | A code testing method, node and system | |
US20140025439A1 (en) | Regression free business process management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |