CN111127011B - Transaction method, system and computer readable storage medium for checking based on blockchain - Google Patents

Transaction method, system and computer readable storage medium for checking based on blockchain Download PDF

Info

Publication number
CN111127011B
CN111127011B CN201911289291.XA CN201911289291A CN111127011B CN 111127011 B CN111127011 B CN 111127011B CN 201911289291 A CN201911289291 A CN 201911289291A CN 111127011 B CN111127011 B CN 111127011B
Authority
CN
China
Prior art keywords
transaction
party
value
blockchain
transfer
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.)
Active
Application number
CN201911289291.XA
Other languages
Chinese (zh)
Other versions
CN111127011A (en
Inventor
杜晓楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201911289291.XA priority Critical patent/CN111127011B/en
Priority to PCT/CN2020/070525 priority patent/WO2020199703A1/en
Publication of CN111127011A publication Critical patent/CN111127011A/en
Application granted granted Critical
Publication of CN111127011B publication Critical patent/CN111127011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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/02Banking, e.g. interest calculation or account maintenance
    • 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/125Finance or payroll

Abstract

The invention relates to a transaction method for checking based on a blockchain, which comprises the following steps: s1, a business device of a first transaction party receives first party transaction data information, generates a first blockchain ID value according to a set rule based on the first party transaction data information, and sends the first party transaction data information to a business device of a second transaction party, and the business device of the second transaction party generates a second blockchain ID value according to the same set rule based on the first party transaction data information; s2, writing the first block chain ID value into a first block chain node, and transmitting the first block chain ID value to a second block chain node through a block chain P2P network; s3, the business device of the second transaction party monitors the second blockchain node to acquire the first blockchain ID value; s4, comparing the first blockchain ID value with the second blockchain ID value to check. The invention ensures the authenticity and the safety of the transaction details, and the checking process is simple and efficient.

Description

Transaction method, system and computer readable storage medium for checking based on blockchain
Technical Field
The present invention relates to the field of blockchains, and more particularly, to a blockchain-based transactional method, system, and computer-readable storage medium.
Background
The existing bank account checking system adopts a T+1 account checking mechanism (namely, the data of the buying operation in the T day can be checked only in the T+1 day), so that the transaction flow is more, and the fund link is long. And the checking is usually based on the bill of one party, and the whole bill of both parties in a certain time is checked. Such reconciliation rules are very complex, making the clearing of funds very inefficient. In addition, in the checking process, the security of the data is difficult to be ensured, so that when disputes or account errors occur, it is difficult to judge which side of the account has problems, and therefore checking is required from the source, so that the efficiency is low and errors are easy to occur.
Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. The block chain is connected with the scattered network layered structure through the nodes, so that the comprehensive transmission of information can be realized in the whole network, and the accuracy of the information can be checked, so that the block chain is widely applied to the field of digital transaction.
Disclosure of Invention
Aiming at the defects of complex account checking process, low efficiency and low safety of a bank account checking system in the prior art, which require day-to-day account checking, the invention provides a transaction method, a transaction system and a computer readable storage medium for checking based on a blockchain, which can safely, effectively, simply and efficiently perform account checking.
The technical scheme adopted by the invention for solving the technical problems is that a transaction method based on block chain for checking is constructed, which comprises the following steps:
s1, a business device of a first transaction party receives first transaction party data information, generates a first blockchain ID value according to a set rule based on the first transaction party data information, and sends the first transaction party data information to a business device of a second transaction party, and the business device of the second transaction party generates a second blockchain ID value according to the same set rule based on the first transaction party data information;
s2, writing the first block chain ID value into a first block chain node, and transmitting the first block chain ID value to a second block chain node through a block chain P2P network;
s3, the business device of the second transaction party monitors the second blockchain node to acquire the first blockchain ID value;
s4, comparing the first blockchain ID value with the second blockchain ID value to check.
In the transaction method for checking based on blockchain according to the present invention, the step S1 further includes:
s11, the business device of the first transaction party receives the first transaction party data information from the internal information network of the first transaction party;
s12, a business device of a first transaction party generates a first blockchain ID value according to a set rule based on the data information of the first transaction party and stores the first blockchain ID value in the business device of the first transaction party;
s13, the business device of the first transaction party sends the data information of the first transaction party to the business device of the second transaction party in a message mode;
s14, the business device of the second transaction party generates a second block chain ID value according to the same set rule based on the first transaction party data information.
In the transaction method for checking based on blockchain according to the present invention, the step S2 further includes:
s21, a block links a request of a income chain and completes consensus on a block chain;
s22, writing the first block chain ID value into a first block chain node and broadcasting the first block chain ID value on a block chain P2P network;
s23, the second blockchain node receives the first blockchain ID value.
In the transaction method for checking based on blockchain of the present invention, the first transaction party data information is a single piece of real-time transaction data and includes: transaction time, transaction amount, transaction transfer-out party and transaction transfer-in party; the first blockchain ID value includes a first time association value, a first amount association value, a first transfer-out association value, and a first transfer-in association value; the second blockchain ID value includes a second time association value, a second amount association value, a second transfer-out association value, and a second transfer-in association value.
In the transaction method for checking based on blockchain according to the present invention, the step S4 further includes
S41, comparing the first time correlation value with the second time correlation value, if the first time correlation value and the second time correlation value are the same, executing a step S42, otherwise, executing a step S46;
s42, comparing the first amount correlation value with the second amount correlation value, if the first amount correlation value and the second amount correlation value are the same, executing a step S43, otherwise executing a step S46;
s43, comparing the first transfer-out party association value with the second transfer-out party association value, if the first transfer-out party association value and the second transfer-out party association value are the same, executing a step S44, otherwise executing a step S46;
s44, comparing the first transfer-in party association value with the second transfer-in party association value, if the first transfer-in party association value and the second transfer-in party association value are the same, executing a step S45, otherwise executing a step S46;
s45, the business device of the first transaction party and the business device of the second transaction party respectively display successful reconciliation;
s46, the business device of the first transaction party and the business device of the second transaction party respectively display the data information of the first transaction party and report errors.
In the block chain-based reconciliation transaction method, the first transaction party data information comprises a plurality of transaction data in a set time period, and each transaction data comprises a transaction time, a transaction amount, a transaction transfer-out party and a transaction transfer-in party; the first blockchain ID value includes a first time-associated total value generated based on all transaction times, a first amount-associated total value generated based on all transaction amounts, a first turn-out-associated total value generated based on all transaction turns-out parties, and a first turn-in-party-associated total value generated based on all transaction turns-in parties, the first blockchain ID value further including a plurality of first time-associated values, a plurality of first amount-associated values, a plurality of first turn-out-party-associated values, and a plurality of first turn-in-party-associated values generated based on each transaction data; the second blockchain ID value includes a second time-associated total value generated based on all transaction times, a second amount-associated total value generated based on all transaction amounts, a second turn-out-associated total value generated based on all transaction turn-outs, and a second turn-in-party-associated total value generated based on all transaction turn-ins, the second blockchain ID value further including a plurality of second time-associated values, a plurality of second amount-associated values, a plurality of second turn-out-party-associated values, and a plurality of second turn-in-party-associated values generated based on each transaction data.
In the transaction method for checking based on blockchain according to the present invention, the step S4 further includes
S41, comparing the first time correlation total value with the second time correlation total value, if the first time correlation total value and the second time correlation total value are the same, executing a step S42, otherwise, traversing and comparing the first time correlation value and the second time correlation value of each transaction data, outputting transaction data with different first time correlation values and second time correlation values, and reporting errors;
s42, comparing the first amount correlation total value with the second amount correlation total value, if the first amount correlation total value and the second amount correlation total value are the same, executing the step S43, otherwise, traversing and comparing the first amount correlation value and the second amount correlation value of each transaction data, outputting transaction data with different first amount correlation values and second amount correlation values, and reporting errors;
s43, comparing the first and second transfer-out party association total values, if the first and second transfer-out party association total values are the same, executing a step S44, otherwise, traversing and comparing the first and second transfer-out party association values of each transaction data, outputting transaction data with different first and second transfer-out party association values, and reporting errors;
s44, comparing the first transfer-in party association total value with the second transfer-in party association total value, if the first transfer-in party association total value and the second transfer-in party association total value are the same, executing a step S45, otherwise, traversing and comparing the first transfer-in party association value and the second transfer-in party association value of each transaction data, outputting transaction data with different first transfer-in party association values and second transfer-in party association values, and reporting errors;
s45, the business device of the first transaction party and the business device of the second transaction party respectively display successful reconciliation.
The invention solves the technical problem by adopting another technical scheme that a transaction system based on block chain for checking is constructed, the transaction system comprises a first transaction party business device, a second transaction party business device and each block chain node device which are communicated with each other, wherein the first transaction party business device is in communication connection with each corresponding business terminal, the second transaction party business device is in communication connection with each corresponding business terminal, the first transaction party business device, the second transaction party business device and the block chain node device respectively comprise a memory and a processor, the memory stores a computer program, and the processor implements the transaction method based on block chain for checking when executing the computer program.
Another technical solution adopted by the present invention to solve the technical problem is to construct a computer readable storage medium, where the computer readable storage medium stores a computer software program, where the computer software program is executable by at least one processor, so that the at least one processor implements the transaction method based on blockchain for reconciliation.
The transaction method, the system and the computer readable storage medium for checking based on the blockchain ensure the authenticity and the security of transaction details due to the advantages of tamper resistance, high transparency, decentralization and the like of the blockchain, and the whole process is simple and efficient because only the first blockchain ID value generated by the business device of the first transaction party is written into the blockchain once and the business device of the second transaction party acquires and checks the first blockchain ID value in a monitoring mode. Furthermore, the method can realize real-time checking of a single piece of real-time transaction data and periodic batch checking of a plurality of pieces of transaction data within a certain time, so that the checking time is flexible.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a method flow diagram of a first embodiment of a blockchain-based reconciliation transaction method of the present invention;
FIG. 2 is a method flow diagram of the single transaction data real-time reconciliation step of the blockchain-based reconciliation transaction method of the present invention;
FIG. 3 is a method flow diagram of a batch reconciliation step for multiple transaction data for a blockchain-based reconciliation transaction method of the present invention;
FIG. 4 is a functional block diagram of a blockchain-based reconciliation transaction system of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
FIG. 1 is a method flow diagram of a first embodiment of a blockchain-based reconciliation transaction method of the present invention. As shown in fig. 1, in step S1, a service device of a first transaction party receives first transaction party data information, generates a first blockchain ID value according to a set rule based on the first transaction party data information, and sends the first transaction party data information to a service device of a second transaction party, and the service device of the second transaction party generates a second blockchain ID value according to the same set rule based on the first transaction party data information. In a preferred embodiment of the invention, the business means of the first transaction part receives the first transaction part data information from the internal information network of the first transaction part; generating a first blockchain ID value by a business device of a first transaction party according to a set rule based on the first transaction party data information and storing the first blockchain ID value in the business device of the first transaction party; the business device of the first transaction party sends the data information of the first transaction party to the business device of the second transaction party in a message mode; and the business device of the second transaction party generates a second blockchain ID value according to the same set rule based on the first transaction party data information. In a preferred embodiment of the present invention, the first transaction part data information is a single piece of real-time transaction data and includes: transaction time, transaction amount, transaction transfer-out party and transaction transfer-in party. In the present invention, it should be noted that the first transaction part and the second transaction part are only for distinguishing the two transaction parts, and any transaction part can be used as the first transaction part or the second transaction part.
In a preferred embodiment of the present invention, the first transaction part data information includes a plurality of transaction data within a set time period, each transaction data including a transaction time, a transaction amount, a transaction transfer-out part, and a transaction transfer-in part. Correspondingly, the first and second blockchain ID values may also include multiple sets of blockchain ID values.
An example will be described below. For example, a person performs a transfer operation on a member terminal of a worker using a card a (622230) of the worker to a card B (62284) of the worker, the transfer amount is 100 yuan, and the transfer time is 2019-9-23, 20:23. at this point, the work row acts as a first business party and the farming row acts as a second business party. The business device of the worker receives the transfer operation information, namely the first transaction party data information, which comprises transaction time, transaction amount, transaction transfer party account number and transaction transfer party account number through the internal network. These first transaction party data information may then be generated into first blockchain ID values according to the set rules. Any method known in the art may be employed by those skilled in the art to generate such a first blockchain ID value. For example, the transaction-side data may be extracted into binary values of arbitrary length according to a specific rule, and then mapped into binary values of fixed length, for example, using MD5 algorithm, or the like. Any extraction algorithm and mapping means known in the art may be used in the present invention. The transaction time, the transaction amount, the transaction transfer-out account number and the transaction transfer-in account number of each transaction party data information can be extracted according to the method, so that a first time association value, a first amount association value, a first transfer-out association value, a first transfer-in party association value, a second time association value, a second amount association value, a second transfer-out party association value and a second transfer-in party association value are generated.
After the business device of the industry generates the first blockchain ID value, it is stored in an internal memory. In this embodiment, the first blockchain ID value includes a first time association value, a first amount association value, a first transfer-out association value, and a first transfer-in association value. At the same time, the farm acts as a second business party, and the first transaction party data information can be received through the public network. At this point, the business device of the farm will generate a second blockchain ID value based on the first transaction party data information with the same algorithm and the same rule. In this embodiment, the second blockchain ID value includes a second time association value, a second amount association value, a second transfer-out association value, and a second transfer-in association value. Since the algorithm and rules are the same, the first and second blockchain ID values should be the same or meet the set rules in the event that no problem occurs with the accounting. And can be set by a person skilled in the art according to actual needs.
In step S2, the first blockchain ID value is written to a first blockchain node and transmitted to a second blockchain node over a blockchain P2P network. In a preferred embodiment of the present invention, first the business device of the first transaction party may initiate an in-link request, block link the in-link request, and complete the consensus on the block chain. The first blockchain ID value is then written to the first blockchain node and broadcast over the blockchain P2P network.
Blockchains are a peer-to-peer network that decentralizes the open ledger, relying on a distributed shared network to exist between users. Each user has its own public ledger that records each transaction and, based on the application on the network structure, can be confident that they will be correct when checking the transaction records with other users. If it is desired to rewrite the blockchain, a chase-type bifurcation attack is required to be performed on the network, and even if a read-write access manner is used for each peer network, sufficient data cannot be extracted to change the transaction record already put in the blockchain. Thus, the first blockchain ID is difficult to alter after it is written to the blockchain. While the remaining blockchain links on the blockchain will each receive the first blockchain ID value. In this way, the second blockchain link will receive the first blockchain ID value. Here, it is known to those skilled in the art that the second blockchain node may be any node on the blockchain, except that it is always monitored by the service device of the second transaction party.
In step S3, the service device of the second transaction party listens to the second blockchain node to obtain the first blockchain ID value. In a preferred embodiment of the present invention, the transaction device of the second transaction party may communicate with the second blockchain node in any manner to securely obtain the first blockchain ID value.
In step S4, the first blockchain ID value and the second blockchain ID value may be compared for reconciliation. In a preferred embodiment of the invention, different comparisons may be made according to different rules. For example, in the case that the first transaction party data information is single real-time transaction data, the time association value, the amount association value, the transfer-out party association value and the transfer-in party association value in the first blockchain ID value and the second blockchain ID value may be sequentially compared, and errors may be reported when any one group of values has a problem. In a further preferred embodiment of the present invention, in the case that the first transaction part data information includes a plurality of pieces of real-time transaction data, a time-related total value, an amount-related total value, an outgoing side-related total value, and an incoming side-related total value may be calculated, respectively, so long as the total values are the same or meet a set rule, it is determined that reconciliation will be successful. When an error occurs in the total value, a query is returned for each value.
By implementing the transaction method based on the blockchain for checking, the authenticity and the safety of transaction details are ensured due to the advantages of tamper resistance, high transparency, decentralization and the like of the blockchain, and the transaction device of the second transaction party acquires and checks the blockchain by only writing the first blockchain ID value generated by the service device of the first transaction party into the blockchain once in a monitoring mode, so that the whole process is simple and efficient. Furthermore, the method can realize real-time checking of a single piece of real-time transaction data and periodic batch checking of a plurality of pieces of transaction data within a certain time, so that the checking time is flexible.
FIG. 2 is a method flow diagram of the single transaction data real-time reconciliation step of the blockchain-based reconciliation transaction method of the present invention. The embodiment shown in fig. 2 is for the case of real-time reconciliation of single transaction data. In this embodiment, the first transaction part data information is a single piece of real-time transaction data and includes: transaction time, transaction amount, transaction transfer-out party and transaction transfer-in party. The first blockchain ID value includes a first time association value, a first amount association value, a first transfer-out association value, and a first transfer-in association value. The second blockchain ID value includes a second time association value, a second amount association value, a second transfer-out association value, and a second transfer-in association value. In this embodiment, the generation of the first blockchain ID value and the second blockchain ID value, and the acquisition may refer to the embodiment shown in fig. 1, which is not described here.
Therefore, when checking, in step S1, the first time-related value and the second time-related value are compared, if they are the same, step S2 is performed, otherwise step S6 is performed. In step S2, the first amount-related value and the second amount-related value are compared, if they are the same, step S3 is executed, otherwise step S6 is executed. In step S3, the first roll-out correlation value and the second roll-out correlation value are compared, if they are the same, step S4 is performed, otherwise step S6 is performed. In step S4, the first transfer-in party association value and the second transfer-in party association value are compared, if they are the same, step S5 is executed, otherwise step S6 is executed. In step S5, the business device of the first transaction party and the business device of the second transaction party respectively display successful reconciliation. In the step S6, the service device of the first transaction party and the service device of the second transaction party display the data information of the first transaction party and report errors.
And for single real-time transaction data, when the first time association value, the first amount association value, the first transfer-out party association value, the first transfer-in party association value, the second time association value, the second amount association value, the second transfer-out party association value and the second transfer-in party association value are the same, the checking is determined to be correct. Therefore, according to the actual situation, whether the numerical values are the same or not can be alternatively inquired, and whether the reconciliation is correct or not can be judged. Although in the present embodiment, the determination is performed according to the order of the time-related value, the amount-related value, the transfer-side-related value, and the transfer-side-related value, in other preferred embodiments of the present invention, other orders may be selected, which fall within the scope of the present invention.
By adopting the embodiment, the real-time reconciliation can be carried out on a single piece of real-time transaction data, the in-transit time and the funds clearing period are shortened, and the safety of the funds in the transaction period is improved.
FIG. 3 is a method flow diagram of a batch reconciliation step for multiple transaction data for a blockchain-based reconciliation transaction method of the present invention. In this embodiment, the first transaction part data information includes a plurality of transaction data in a set time period, and each transaction data includes a transaction time, a transaction amount, a transaction transfer-out part, and a transaction transfer-in part; the first blockchain ID value includes a first time-associated total value generated based on all transaction times, a first amount-associated total value generated based on all transaction amounts, a first turn-out-associated total value generated based on all transaction turns-out parties, and a first turn-in-party-associated total value generated based on all transaction turns-in parties, the first blockchain ID value further including a plurality of first time-associated values, a plurality of first amount-associated values, a plurality of first turn-out-party-associated values, and a plurality of first turn-in-party-associated values generated based on each transaction data; the second blockchain ID value includes a second time-associated total value generated based on all transaction times, a second amount-associated total value generated based on all transaction amounts, a second turn-out-associated total value generated based on all transaction turn-outs, and a second turn-in-party-associated total value generated based on all transaction turn-ins, the second blockchain ID value further including a plurality of second time-associated values, a plurality of second amount-associated values, a plurality of second turn-out-party-associated values, and a plurality of second turn-in-party-associated values generated based on each transaction data. In this embodiment, the generation of the first blockchain ID value and the second blockchain ID value, and the acquisition may refer to the embodiment shown in fig. 1, which is not described here.
In step S1, the first time-related total value and the second time-related total value are compared, if the first time-related total value and the second time-related total value are the same, step S2 is executed, otherwise step S6 is executed to compare the first time-related value and the second time-related value of each transaction data in a traversing manner, and output transaction data with different first time-related values and second time-related values and report errors. In step S2, the first amount-related total value and the second amount-related total value are compared, if they are the same, step S3 is executed, otherwise step S7 is executed to compare the first amount-related value and the second amount-related value of each transaction data in a traversing manner, and output transaction data with different first amount-related values and second amount-related values and report errors. In step S3, the first and second roll-out party association total values are compared, if they are the same, step S4 is executed, otherwise step S7 is executed to compare the first and second roll-out party association values of each transaction data in a traversing manner, and output transaction data with different first and second roll-out party association values and report errors. In step S4, the first transfer-in party association total value and the second transfer-in party association total value are compared, if the first transfer-in party association total value and the second transfer-in party association total value are the same, step S5 is executed, otherwise step S7 is executed to compare the first transfer-in party association value and the second transfer-in party association value of each transaction data in a traversing manner, and transaction data with different first transfer-in party association values and second transfer-in party association values are output and error reporting is carried out. In step S5, the business device of the first transaction party and the business device of the second transaction party respectively display successful reconciliation.
In this embodiment, for the case of batch processing, the total value may be compared first by calculating the time-associated total value, the sum total value, the transfer-out-party-associated total value, and the transfer-in-party-associated total value, and if the total values are the same, the accounting may be directly determined to be successful, thereby simplifying the accounting process and realizing the simplification of batch accounting. And under the condition that the total values are not equal, the corresponding values of all transaction data are compared, and the transaction data of the problem are found out.
FIG. 4 is a functional block diagram of a blockchain-based reconciliation transaction system of the present invention. The blockchain-based reconciliation transaction system of the present invention includes a transaction device 100 of a first transaction party, a transaction device 200 of a second transaction party, and first and second blockchain node devices 310, 320 in communication with each other. The business device 100 of the first transaction party is in communication connection with its corresponding respective business terminal 101. The service device of the second transaction party is in communication connection with its corresponding respective service terminal 201. The business apparatus 100 of the first transaction party communicates with the first blockchain node device 310 and the business apparatus 200 of the second transaction party listens to the second blockchain node device 320, the first and second blockchain node devices 310, 320 being disposed in the blockchain P2P network 300. The business apparatus 100 of the first transaction party, the business apparatus 200 of the second transaction party and the blockchain node devices 310 and 320 respectively comprise a memory and a processor, wherein the memory stores a computer program, and the processor implements the transaction method based on blockchain for checking when executing the computer program.
The invention also relates to a computer readable storage medium storing a computer software program executable by at least one processor to cause the at least one processor to implement the aforementioned blockchain-based reconciliation transaction method.
The transaction method, the system and the computer readable storage medium for checking based on the blockchain ensure the authenticity and the security of transaction details due to the advantages of tamper resistance, high transparency, decentralization and the like of the blockchain, and the whole process is simple and efficient because only the first blockchain ID value generated by the business device of the first transaction party is written into the blockchain once and the business device of the second transaction party acquires and checks the first blockchain ID value in a monitoring mode. Furthermore, the method can realize real-time checking of a single piece of real-time transaction data and periodic batch checking of a plurality of pieces of transaction data within a certain time, so that the checking time is flexible.
Thus, the present invention may be realized in hardware, software, or a combination of hardware and software. The invention may be implemented in a centralized fashion in at least one computer system or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system or other apparatus adapted for carrying out the methods of the invention is suited. The combination of hardware and software may be a general-purpose computer system with a computer program installed thereon, which, when executed, controls the computer system such that it carries out the methods of the present invention.
The present invention can also be realized by a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which when installed in a computer system is able to carry out these methods. The computer program in this document refers to: any expression, in any programming language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following: a) Conversion to other languages, codes or symbols; b) Reproduced in a different format.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from its scope. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (8)

1. A blockchain-based transactional method of reconciliation, comprising:
s1, a business device of a first transaction party receives first transaction party data information, generates a first blockchain ID value according to a set rule based on the first transaction party data information, and sends the first transaction party data information to a business device of a second transaction party, and the business device of the second transaction party generates a second blockchain ID value according to the same set rule based on the first transaction party data information;
s2, writing the first block chain ID value into a first block chain node, and transmitting the first block chain ID value to a second block chain node through a block chain P2P network;
s3, the business device of the second transaction party monitors the second blockchain node to acquire the first blockchain ID value;
s4, comparing the first blockchain ID value with the second blockchain ID value to check out;
the first transaction party data information is a single piece of real-time transaction data and comprises: transaction time, transaction amount, transaction transfer-out party and transaction transfer-in party; the first blockchain ID value includes a first time association value, a first amount association value, a first transfer-out association value, and a first transfer-in association value; the second blockchain ID value includes a second time association value, a second amount association value, a second transfer-out association value, and a second transfer-in association value;
the step S4 further comprises
S41, comparing the first time correlation value with the second time correlation value, if the first time correlation value and the second time correlation value are the same, executing a step S42, otherwise, executing a step S46;
s42, comparing the first amount correlation value with the second amount correlation value, if the first amount correlation value and the second amount correlation value are the same, executing a step S43, otherwise executing a step S46;
s43, comparing the first transfer-out party association value with the second transfer-out party association value, if the first transfer-out party association value and the second transfer-out party association value are the same, executing a step S44, otherwise executing a step S46;
s44, comparing the first transfer-in party association value with the second transfer-in party association value, if the first transfer-in party association value and the second transfer-in party association value are the same, executing a step S45, otherwise executing a step S46;
s45, the business device of the first transaction party and the business device of the second transaction party respectively display successful reconciliation;
s46, the business device of the first transaction party and the business device of the second transaction party respectively display the data information of the first transaction party and report errors.
2. The blockchain-based reconciliation transaction method of claim 1, wherein step S1 further comprises:
s11, the business device of the first transaction party receives the first transaction party data information from the internal information network of the first transaction party;
s12, a business device of a first transaction party generates a first blockchain ID value according to a set rule based on the data information of the first transaction party and stores the first blockchain ID value in the business device of the first transaction party;
s13, the business device of the first transaction party sends the data information of the first transaction party to the business device of the second transaction party in a message mode;
s14, the business device of the second transaction party generates a second block chain ID value according to the same set rule based on the first transaction party data information.
3. The blockchain-based reconciliation transaction method of claim 2, wherein step S2 further comprises:
s21, a block links a request of a income chain and completes consensus on a block chain;
s22, writing the first block chain ID value into a first block chain node and broadcasting the first block chain ID value on a block chain P2P network;
s23, the second blockchain node receives the first blockchain ID value.
4. A blockchain-based transactional method of reconciliation, comprising:
s1, a business device of a first transaction party receives first transaction party data information, generates a first blockchain ID value according to a set rule based on the first transaction party data information, and sends the first transaction party data information to a business device of a second transaction party, and the business device of the second transaction party generates a second blockchain ID value according to the same set rule based on the first transaction party data information;
s2, writing the first block chain ID value into a first block chain node, and transmitting the first block chain ID value to a second block chain node through a block chain P2P network;
s3, the business device of the second transaction party monitors the second blockchain node to acquire the first blockchain ID value;
s4, comparing the first blockchain ID value with the second blockchain ID value to check out;
the first transaction party data information comprises a plurality of transaction data in a set time period, and each transaction data comprises transaction time, transaction amount, a transaction transfer-out party and a transaction transfer-in party; the first blockchain ID value includes a first time-associated total value generated based on all transaction times, a first amount-associated total value generated based on all transaction amounts, a first turn-out-associated total value generated based on all transaction turns-out parties, and a first turn-in-party-associated total value generated based on all transaction turns-in parties, the first blockchain ID value further including a plurality of first time-associated values, a plurality of first amount-associated values, a plurality of first turn-out-party-associated values, and a plurality of first turn-in-party-associated values generated based on each transaction data; the second blockchain ID value includes a second time-associated total value generated based on all transaction times, a second amount-associated total value generated based on all transaction amounts, a second turn-out-associated total value generated based on all transaction turns-out-parties, and a second turn-in-party-associated total value generated based on all transaction turns-in-parties, the second blockchain ID value further including a plurality of second time-associated values, a plurality of second amount-associated values, a plurality of second turn-out-party-associated values, and a plurality of second turn-in-party-associated values generated based on each transaction data; the step S4 further comprises
S41, comparing the first time correlation total value with the second time correlation total value, if the first time correlation total value and the second time correlation total value are the same, executing a step S42, otherwise, traversing and comparing the first time correlation value and the second time correlation value of each transaction data, outputting transaction data with different first time correlation values and second time correlation values, and reporting errors;
s42, comparing the first amount correlation total value with the second amount correlation total value, if the first amount correlation total value and the second amount correlation total value are the same, executing the step S43, otherwise, traversing and comparing the first amount correlation value and the second amount correlation value of each transaction data, outputting transaction data with different first amount correlation values and second amount correlation values, and reporting errors;
s43, comparing the first and second transfer-out party association total values, if the first and second transfer-out party association total values are the same, executing a step S44, otherwise, traversing and comparing the first and second transfer-out party association values of each transaction data, outputting transaction data with different first and second transfer-out party association values, and reporting errors;
s44, comparing the first transfer-in party association total value with the second transfer-in party association total value, if the first transfer-in party association total value and the second transfer-in party association total value are the same, executing a step S45, otherwise, traversing and comparing the first transfer-in party association value and the second transfer-in party association value of each transaction data, outputting transaction data with different first transfer-in party association values and second transfer-in party association values, and reporting errors;
s45, the business device of the first transaction party and the business device of the second transaction party respectively display successful reconciliation.
5. The blockchain-based reconciliation transaction method of claim 4, wherein step S1 further comprises:
s11, the business device of the first transaction party receives the first transaction party data information from the internal information network of the first transaction party;
s12, a business device of a first transaction party generates a first blockchain ID value according to a set rule based on the data information of the first transaction party and stores the first blockchain ID value in the business device of the first transaction party;
s13, the business device of the first transaction party sends the data information of the first transaction party to the business device of the second transaction party in a message mode;
s14, the business device of the second transaction party generates a second block chain ID value according to the same set rule based on the first transaction party data information.
6. The blockchain-based reconciliation transaction method of claim 5, wherein step S2 further comprises:
s21, a block links a request of a income chain and completes consensus on a block chain;
s22, writing the first block chain ID value into a first block chain node and broadcasting the first block chain ID value on a block chain P2P network;
s23, the second blockchain node receives the first blockchain ID value.
7. A transaction system for checking out based on a blockchain, comprising a transaction device of a first transaction party, a transaction device of a second transaction party and each blockchain node device, which are in communication with each other, wherein the transaction device of the first transaction party is in communication connection with each corresponding transaction terminal, the transaction device of the second transaction party is in communication connection with each corresponding transaction terminal, wherein the transaction device of the first transaction party, the transaction device of the second transaction party and the blockchain node device each comprise a memory and a processor, wherein the memory stores a computer program, and wherein the processor when executing the computer program implements the transaction method for checking out based on a blockchain according to any of claims 1-6.
8. A computer readable storage medium, characterized in that it stores a computer software program executable by at least one processor to cause the at least one processor to implement a blockchain-based reconciliation transaction method according to any of claims 1-6.
CN201911289291.XA 2019-04-01 2019-12-13 Transaction method, system and computer readable storage medium for checking based on blockchain Active CN111127011B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911289291.XA CN111127011B (en) 2019-12-13 2019-12-13 Transaction method, system and computer readable storage medium for checking based on blockchain
PCT/CN2020/070525 WO2020199703A1 (en) 2019-04-01 2020-01-06 Method, device and system for blockchain transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911289291.XA CN111127011B (en) 2019-12-13 2019-12-13 Transaction method, system and computer readable storage medium for checking based on blockchain

Publications (2)

Publication Number Publication Date
CN111127011A CN111127011A (en) 2020-05-08
CN111127011B true CN111127011B (en) 2023-08-01

Family

ID=70498956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911289291.XA Active CN111127011B (en) 2019-04-01 2019-12-13 Transaction method, system and computer readable storage medium for checking based on blockchain

Country Status (1)

Country Link
CN (1) CN111127011B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709742B (en) * 2020-05-18 2023-08-01 杜晓楠 Method for preventing root address exposure in blockchain system, computer readable storage medium and blockchain system
CN111881166B (en) * 2020-07-22 2024-03-08 中国工商银行股份有限公司 Method, device and system for processing operation data based on block chain
CN112163870B (en) * 2020-09-30 2023-12-05 中国联合网络通信集团有限公司 Information management method based on block chain, analysis node and rework platform
CN115829753B (en) * 2023-02-09 2023-06-16 中国证券登记结算有限责任公司 Cross-border securities business exchange method and system based on blockchain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503995A (en) * 2016-11-17 2017-03-15 中国银行股份有限公司 A kind of data sharing method, source node, destination node and system
CN109493202A (en) * 2018-09-27 2019-03-19 深圳壹账通智能科技有限公司 Block chain account checking method, device, system, equipment and readable storage medium storing program for executing
CN110033371A (en) * 2019-02-19 2019-07-19 阿里巴巴集团控股有限公司 A kind of account checking method and device based on transaction in assets

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190172059A1 (en) * 2017-12-05 2019-06-06 Bank Of America Corporation Real-time net settlement by distributed ledger system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503995A (en) * 2016-11-17 2017-03-15 中国银行股份有限公司 A kind of data sharing method, source node, destination node and system
CN109493202A (en) * 2018-09-27 2019-03-19 深圳壹账通智能科技有限公司 Block chain account checking method, device, system, equipment and readable storage medium storing program for executing
CN110033371A (en) * 2019-02-19 2019-07-19 阿里巴巴集团控股有限公司 A kind of account checking method and device based on transaction in assets

Also Published As

Publication number Publication date
CN111127011A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111127011B (en) Transaction method, system and computer readable storage medium for checking based on blockchain
CN109685489B (en) Cross-chain transaction method for assets between block chains
US10965446B2 (en) Blockchain-based automated user matching
KR101727525B1 (en) Block chain based distributed storage method and device thereof
CN110070359B (en) Block chain-based data checking system, method, computing device and storage medium
CN108446947B (en) Real estate transaction method and device
CN109391645B (en) Block chain lightweight processing method, block chain node and storage medium
CN110232565B (en) Resource clearing method, device, computer equipment and storage medium
CN107480990A (en) Block chain bookkeeping methods and device
CN108615195B (en) Resource transfer information transmission method and device, storage medium and electronic device
CN110751485B (en) Data processing method and equipment
CN110135843B (en) Method and system for supervising movable property warranty based on alliance chain
CN110070445A (en) A kind of transaction processing method and device based on block catenary system
CN111033491B (en) Storing shared blockchain data based on error correction coding
CN111095218A (en) Storing shared blockchain data based on error correction coding
CN113645278B (en) Cross-chain message transmission method, device and storage medium of block chain
CN111899019A (en) Method and system for cross validation and sharing of blacklist and multiple parties
CN111651442A (en) Data reporting method and device, electronic equipment and storage medium
CN109981221A (en) Industrial DTU data preprocessing method and device
WO2020199703A1 (en) Method, device and system for blockchain transaction
CN114567643A (en) Cross-block-chain data transfer method, device and related equipment
CN110955919A (en) Data processing method based on block chain network, related device and storage medium
CN112699136B (en) Cross-link certificate storage method and related device
CN112200573B (en) Block chain transaction design method capable of rolling back
CN111598556A (en) Digital currency exchange method, device, equipment and medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40028334

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant