CN109003175B - Account checking method and system based on block chain - Google Patents

Account checking method and system based on block chain Download PDF

Info

Publication number
CN109003175B
CN109003175B CN201810737178.2A CN201810737178A CN109003175B CN 109003175 B CN109003175 B CN 109003175B CN 201810737178 A CN201810737178 A CN 201810737178A CN 109003175 B CN109003175 B CN 109003175B
Authority
CN
China
Prior art keywords
reconciliation
account book
bank
account
payment platform
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
CN201810737178.2A
Other languages
Chinese (zh)
Other versions
CN109003175A (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.)
State Grid Digital Technology Holdings Co ltd
State Grid Huitong Jincai Beijing Information Technology Co ltd
State Grid Corp of China SGCC
Original Assignee
State Grid Huitong Jincai Beijing Information Technology Co ltd
State Grid Corp of China SGCC
State Grid E Commerce Co Ltd
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 State Grid Huitong Jincai Beijing Information Technology Co ltd, State Grid Corp of China SGCC, State Grid E Commerce Co Ltd filed Critical State Grid Huitong Jincai Beijing Information Technology Co ltd
Priority to CN201810737178.2A priority Critical patent/CN109003175B/en
Publication of CN109003175A publication Critical patent/CN109003175A/en
Application granted granted Critical
Publication of CN109003175B publication Critical patent/CN109003175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a reconciliation method and a system based on a block chain, wherein the method comprises the following steps: each transaction record of a bank is recorded into a block chain to form a bank account checking distributed account book based on the block chain, each transaction flow record of a payment platform is recorded into the block chain to form the payment platform account checking distributed account book based on the block chain; and checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book based on the intelligent contract to generate a reconciliation result. The account checking process can be simplified, data are prevented from being tampered, and the transaction efficiency and the transaction safety are improved.

Description

Account checking method and system based on block chain
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a reconciliation method and system based on a block chain.
Background
The account checking is to check the account, and to ensure the transaction record to be correct and reliable, the checking and checking work is performed on the account book or the data in the database.
In the prior art, the reconciliation files are transmitted in an FTP (File Transfer Protocol) manner, and include a payment success reconciliation File, a payment failure reconciliation File, a refund success reconciliation File, a refund failure reconciliation File, and the like.
In the prior art, the account checking work of the bank and the third-party payment platform is generally carried out manually after 1 working day or even 1 month. Therefore, the existing manual account checking mode consumes manpower and has low efficiency; the mode of T +1 account checking or account checking at the bottom of the month cannot realize timely account checking, so that the fund in-transit time is long, and the fund utilization rate is low; meanwhile, the FTP mode is unsafe to transmit transaction data, and the integrity and the non-tampering property of the data cannot be guaranteed.
Therefore, how to simplify the reconciliation flow, prevent the data from being tampered, and improve the transaction efficiency and the transaction security is an urgent problem to be solved.
Disclosure of Invention
In view of this, the application provides an account checking method based on a block chain, which can simplify an account checking process, prevent data from being tampered, and improve transaction efficiency and transaction security.
The application provides a reconciliation method based on a block chain, which comprises the following steps:
each transaction record of the bank is recorded into a block chain, and a bank reconciliation distributed account book based on the block chain is formed;
recording each transaction flow record of the payment platform into a block chain to form a payment platform reconciliation distributed account book based on the block chain;
and checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book based on the intelligent contract to generate a reconciliation result.
Preferably, the method further comprises:
and connecting the nodes of the block chain for recording each transaction record of the bank and the nodes for recording each transaction flow record of the payment platform to form an alliance chain.
Preferably, the checking the bank reconciliation distributed ledger and the payment platform reconciliation distributed ledger based on the intelligent contract, and the generating a reconciliation result includes:
judging whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, if so, then:
judging whether the accounts in the bank reconciliation distributed account book are consistent with the accounts in the payment platform reconciliation distributed account book, if so, generating a transaction account consistent report, and if not,:
and generating a transaction account inconsistent report.
Preferably, the determining whether the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book comprises:
and judging whether the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book.
Preferably, the method further comprises:
judging whether the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book exceed a preset time length, if so, then:
and generating early warning information.
A blockchain-based reconciliation system comprising:
the first recording module is used for recording each transaction record of the bank into a block chain to form a bank reconciliation distributed account book based on the block chain;
the second recording module is used for recording each transaction flow record of the payment platform into the block chain to form a payment platform reconciliation distributed account book based on the block chain;
and the processing module is used for checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book based on the intelligent contract and generating a reconciliation result.
Preferably, the system further comprises:
and the connection module is used for connecting the nodes of the block chain for recording each transaction record of the bank and the nodes for recording each transaction flow record of the payment platform to form an alliance chain.
Preferably, the processing module comprises:
the first judgment unit is used for judging whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book;
the second judging unit is used for judging whether the accounts in the bank reconciliation distributed account book are consistent with the accounts in the payment platform reconciliation distributed account book or not when the hash values of the accounts in the bank reconciliation distributed account book are consistent with the hash values of the accounts in the payment platform reconciliation distributed account book;
and the generating unit is used for generating a transaction account consistent report when the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, or generating a transaction account inconsistent report when the account in the bank reconciliation distributed account book is inconsistent with the account in the payment platform reconciliation distributed account book.
Preferably, the second judging unit is specifically configured to:
and judging whether the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book.
Preferably, the system further comprises:
the judging module is used for judging whether the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book exceeds a preset time length or not;
and the generating module is used for generating early warning information when the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book exceeds a preset time length.
In summary, the application discloses a reconciliation method based on a block chain, when reconciliation is needed, each transaction record of a bank is counted into the block chain, a bank reconciliation distributed account book based on the block chain is formed, each transaction flow record of a payment platform is counted into the block chain, a payment platform reconciliation distributed account book based on the block chain is formed, then the bank reconciliation distributed account book and the payment platform reconciliation distributed account book are checked based on an intelligent contract, and a reconciliation result is generated. The account checking process can be simplified based on the block chain, data are prevented from being tampered, and transaction efficiency and transaction safety are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment 1 of a reconciliation method based on a blockchain disclosed in the present application;
fig. 2 is a flowchart of an embodiment 2 of a reconciliation method based on a blockchain disclosed in the present application;
fig. 3 is a flowchart of an embodiment 3 of a reconciliation method based on a blockchain disclosed in the present application;
fig. 4 is a schematic structural diagram of an embodiment 1 of a reconciliation system based on a blockchain disclosed in the present application;
fig. 5 is a schematic structural diagram of an embodiment 2 of a reconciliation system based on a blockchain disclosed in the present application;
fig. 6 is a schematic structural diagram of an account reconciliation system embodiment 3 based on a blockchain disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, which is a flowchart of a block chain-based reconciliation method disclosed in embodiment 1 of the present application, the method may include the following steps:
s101, recording each transaction record of a bank into a block chain to form a bank reconciliation distributed account book based on the block chain;
when account checking is needed, each transaction record generated by the bank is recorded into the block chain, wherein the transaction record of the bank comprises: order number, order amount, transaction status, return amount, processing result, transaction record hash value, etc. And (4) recording the transaction records into a block chain, namely packaging the accounts of the bank into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in all the accounting nodes in a distributed manner to form the bank account checking distributed account book based on the block chain.
S102, recording each transaction flow record of the payment platform into a block chain to form a payment platform reconciliation distributed account book based on the block chain;
meanwhile, each transaction flow record generated by the payment platform is counted into the block chain, wherein the payment platform can comprise: third party payment platforms (such as WeChat, Payment treasures, E-treasures, etc.), electric power payment APP, shopping mall sales systems, etc. And (4) accounting the transaction flow records into a block chain, namely packaging accounts of the payment platform into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in each accounting node in a distributed manner to form a payment platform account checking distributed account book based on the block chain.
S103, checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book based on the intelligent contract to generate a reconciliation result.
And then automatically checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book according to the intelligent contract and whether the condition of account consistency is met, and generating a reconciliation result. The automatic execution of account checking is supported through the written intelligent contract, so that the whole account checking process is automatic and intelligent, the account checking cost is reduced, the efficiency is improved, and the risk of transaction errors is reduced.
In summary, in the above embodiments, when reconciliation is required, each transaction record of the bank is counted into the blockchain, so as to form a blockchain-based bank reconciliation distributed ledger book, each transaction flow record of the payment platform is counted into the blockchain, so as to form a blockchain-based payment platform reconciliation distributed ledger book, and then, based on an intelligent contract, the bank reconciliation distributed ledger book and the payment platform reconciliation distributed ledger book are checked, so as to generate a reconciliation result. The account checking process can be simplified based on the block chain, data are prevented from being tampered, and transaction efficiency and transaction safety are improved.
As shown in fig. 2, which is a flowchart of a block chain-based reconciliation method disclosed in embodiment 2 of the present application, the method may include the following steps:
s201, recording each transaction record of a bank into a block chain to form a bank reconciliation distributed account book based on the block chain;
when account checking is needed, each transaction record generated by the bank is recorded into the block chain, wherein the transaction record of the bank comprises: order number, order amount, transaction status, return amount, processing result, transaction record hash value, etc. And (4) recording the transaction records into a block chain, namely packaging the accounts of the bank into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in all the accounting nodes in a distributed manner to form the bank account checking distributed account book based on the block chain.
S202, recording each transaction flow record of the payment platform into a block chain to form a payment platform reconciliation distributed account book based on the block chain;
meanwhile, each transaction flow record generated by the payment platform is counted into the block chain, wherein the payment platform can comprise: third party payment platforms (such as WeChat, Payment treasures, E-treasures, etc.), electric power payment APP, shopping mall sales systems, etc. And (4) accounting the transaction flow records into a block chain, namely packaging accounts of the payment platform into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in each accounting node in a distributed manner to form a payment platform account checking distributed account book based on the block chain.
S203, connecting the nodes of the block chain for recording each transaction record of the bank and the nodes for recording each transaction flow record of the payment platform to form an alliance chain;
and connecting the nodes of each participating unit of the block chain to form a union chain. For example, a federation chain is formed by connecting a node for recording a blockchain of each transaction record of a bank and a node for recording a streamline record of each transaction of a payment platform, so that a blockchain-based bank reconciliation distributed ledger and a blockchain-based payment platform reconciliation distributed ledger can be shared.
S204, judging whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, if so, entering S205:
each account has a corresponding hash value, has uniqueness, and is identification information. Therefore, in the account checking process, whether the hash value of the account in the bank account checking distributed account book is consistent with the hash value of the account in the payment platform account checking distributed account book is firstly compared, and the consistency check of the account is carried out only when the hash values are consistent.
S205, judging whether the accounts in the bank reconciliation distributed account book are consistent with the accounts in the payment platform reconciliation distributed account book, if so, entering S206, otherwise, entering S207:
when the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, whether the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book is further judged based on the intelligent contract, when the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, a transaction account consistent report is generated, and when the account in the bank reconciliation distributed account book is inconsistent with the account in the payment platform reconciliation distributed account book, a transaction account inconsistent report is generated.
S206, generating a transaction account consistent report;
and S207, generating a transaction account inconsistent report.
To sum up, in this embodiment, on the basis of embodiment 1, when the bank reconciliation distributed account book and the payment platform reconciliation distributed account book are checked based on the intelligent contract and the reconciliation result is generated, it is specifically determined whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, when the reconciliation result is consistent, it is further determined whether the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, if so, a transaction account consistent report is generated, and if not, a transaction account inconsistent report is generated. In the account checking process, based on the blockchain technology, the integrity and consistency of transaction data are verified by utilizing the transaction record hash value.
As shown in fig. 3, which is a flowchart of a block chain-based reconciliation method disclosed in embodiment 3 of the present application, the method may include the following steps:
s301, recording each transaction record of the bank into a block chain to form a bank reconciliation distributed account book based on the block chain;
when account checking is needed, each transaction record generated by the bank is recorded into the block chain, wherein the transaction record of the bank comprises: order number, order amount, transaction status, return amount, processing result, transaction record hash value, etc. And (4) recording the transaction records into a block chain, namely packaging the accounts of the bank into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in all the accounting nodes in a distributed manner to form the bank account checking distributed account book based on the block chain.
S302, recording each transaction flow record of the payment platform into a block chain to form a payment platform reconciliation distributed account book based on the block chain;
meanwhile, each transaction flow record generated by the payment platform is counted into the block chain, wherein the payment platform can comprise: third party payment platforms (such as WeChat, Payment treasures, E-treasures, etc.), electric power payment APP, shopping mall sales systems, etc. And (4) accounting the transaction flow records into a block chain, namely packaging accounts of the payment platform into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in each accounting node in a distributed manner to form a payment platform account checking distributed account book based on the block chain.
S303, connecting a node of a block chain for recording each transaction record of the bank with a node for recording each transaction flow record of the payment platform to form a alliance chain;
and connecting the nodes of each participating unit of the block chain to form a union chain. For example, a federation chain is formed by connecting a node for recording a blockchain of each transaction record of a bank and a node for recording a streamline record of each transaction of a payment platform, so that a blockchain-based bank reconciliation distributed ledger and a blockchain-based payment platform reconciliation distributed ledger can be shared.
S304, judging whether the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book exceed a preset time length, if so, entering S305, and if not, entering S306:
in addition, the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book can be further judged whether to exceed the preset time length, namely whether the accounts exceed the reconciliation deadline is judged, and when the reconciliation deadline is exceeded, the early warning information is generated.
S305, generating early warning information;
s306, judging whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, if so, entering S307:
each account has a corresponding hash value, has uniqueness, and is identification information. Therefore, in the account checking process, whether the hash value of the account in the bank account checking distributed account book is consistent with the hash value of the account in the payment platform account checking distributed account book is firstly compared, and the consistency check of the account is carried out only when the hash values are consistent.
S307, judging whether the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book, if so, entering S308, and if not, entering S309:
when the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, the information such as order number, order amount, transaction state, return amount, processing result and the like is further checked according to rules based on the intelligent contract. Whether the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book or not is checked, when the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book, a transaction account consistent report is generated, and when the important fields of the account records in the bank reconciliation distributed account book are inconsistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book, a transaction account inconsistent report is generated.
S308, generating a transaction account consistent report;
s309, generating a transaction account inconsistent report;
in summary, in this embodiment, on the basis of embodiment 1 and embodiment 2, the reconciliation is further performed by determining whether an important field of an account record in the bank reconciliation distributed account book is consistent with a corresponding field of an account record in the payment platform reconciliation distributed account book, and meanwhile, further determining whether the recording time of the account in the bank reconciliation distributed account book and/or the recording time of the account in the payment platform reconciliation distributed account book exceeds a preset time length, and when the recording time exceeds the preset time length, generating the warning information. In the account checking process, based on the blockchain technology, the integrity and consistency of transaction data are verified by utilizing the transaction record hash value.
As shown in fig. 4, which is a schematic structural diagram of a tie-out system based on a blockchain disclosed in embodiment 1 of the present application, the system may include:
the first recording module 401 is configured to count each transaction record of a bank into a block chain, so as to form a bank reconciliation distributed account book based on the block chain;
when account checking is needed, each transaction record generated by the bank is recorded into the block chain, wherein the transaction record of the bank comprises: order number, order amount, transaction status, return amount, processing result, transaction record hash value, etc. And (4) recording the transaction records into a block chain, namely packaging the accounts of the bank into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in all the accounting nodes in a distributed manner to form the bank account checking distributed account book based on the block chain.
A second recording module 402, configured to count each transaction flow record of the payment platform into a block chain, so as to form a payment platform reconciliation distributed ledger book based on the block chain;
meanwhile, each transaction flow record generated by the payment platform is counted into the block chain, wherein the payment platform can comprise: third party payment platforms (such as WeChat, Payment treasures, E-treasures, etc.), electric power payment APP, shopping mall sales systems, etc. And (4) accounting the transaction flow records into a block chain, namely packaging accounts of the payment platform into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in each accounting node in a distributed manner to form a payment platform account checking distributed account book based on the block chain.
And the processing module 403 is configured to check the bank reconciliation distributed ledger book and the payment platform reconciliation distributed ledger book based on the intelligent contract, and generate a reconciliation result.
And then automatically checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book according to the intelligent contract and whether the condition of account consistency is met, and generating a reconciliation result. The automatic execution of account checking is supported through the written intelligent contract, so that the whole account checking process is automatic and intelligent, the account checking cost is reduced, the efficiency is improved, and the risk of transaction errors is reduced.
In summary, in the above embodiments, when reconciliation is required, each transaction record of the bank is counted into the blockchain, so as to form a blockchain-based bank reconciliation distributed ledger book, each transaction flow record of the payment platform is counted into the blockchain, so as to form a blockchain-based payment platform reconciliation distributed ledger book, and then, based on an intelligent contract, the bank reconciliation distributed ledger book and the payment platform reconciliation distributed ledger book are checked, so as to generate a reconciliation result. The account checking process can be simplified based on the block chain, data are prevented from being tampered, and transaction efficiency and transaction safety are improved.
As shown in fig. 5, a schematic structural diagram of a tie-out system based on a blockchain disclosed in embodiment 2 of the present application is shown, where the system may include:
the first recording module 501 is configured to count each transaction record of a bank into a block chain, so as to form a bank reconciliation distributed account book based on the block chain;
when account checking is needed, each transaction record generated by the bank is recorded into the block chain, wherein the transaction record of the bank comprises: order number, order amount, transaction status, return amount, processing result, transaction record hash value, etc. And (4) recording the transaction records into a block chain, namely packaging the accounts of the bank into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in all the accounting nodes in a distributed manner to form the bank account checking distributed account book based on the block chain.
A second recording module 502, configured to count each transaction flow record of the payment platform into a block chain, so as to form a payment platform reconciliation distributed ledger book based on the block chain;
meanwhile, each transaction flow record generated by the payment platform is counted into the block chain, wherein the payment platform can comprise: third party payment platforms (such as WeChat, Payment treasures, E-treasures, etc.), electric power payment APP, shopping mall sales systems, etc. And (4) accounting the transaction flow records into a block chain, namely packaging accounts of the payment platform into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in each accounting node in a distributed manner to form a payment platform account checking distributed account book based on the block chain.
The connection module 503 is configured to connect a node of a block chain for recording each transaction record of the bank and a node for recording each transaction flow record of the payment platform to form an alliance chain;
and connecting the nodes of each participating unit of the block chain to form a union chain. For example, a federation chain is formed by connecting a node for recording a blockchain of each transaction record of a bank and a node for recording a streamline record of each transaction of a payment platform, so that a blockchain-based bank reconciliation distributed ledger and a blockchain-based payment platform reconciliation distributed ledger can be shared.
A first judging unit 504, configured to judge whether a hash value of an account in a bank reconciliation distributed account book is consistent with a hash value of an account in a payment platform reconciliation distributed account book;
each account has a corresponding hash value, has uniqueness, and is identification information. Therefore, in the account checking process, whether the hash value of the account in the bank account checking distributed account book is consistent with the hash value of the account in the payment platform account checking distributed account book is firstly compared, and the consistency check of the account is carried out only when the hash values are consistent.
A second determining unit 505, configured to determine whether an account in the bank reconciliation distributed account book is consistent with an account in the payment platform reconciliation distributed account book when a hash value of the account in the bank reconciliation distributed account book is consistent with a hash value of the account in the payment platform reconciliation distributed account book;
when the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, whether the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book is further judged based on the intelligent contract, when the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, a transaction account consistent report is generated, and when the account in the bank reconciliation distributed account book is inconsistent with the account in the payment platform reconciliation distributed account book, a transaction account inconsistent report is generated.
The generating unit 506 is configured to generate a transaction account consistent report when the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, or generate a transaction account inconsistent report when the account in the bank reconciliation distributed account book is inconsistent with the account in the payment platform reconciliation distributed account book.
To sum up, in this embodiment, on the basis of embodiment 1, when the bank reconciliation distributed account book and the payment platform reconciliation distributed account book are checked based on the intelligent contract and the reconciliation result is generated, it is specifically determined whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, when the reconciliation result is consistent, it is further determined whether the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, if so, a transaction account consistent report is generated, and if not, a transaction account inconsistent report is generated. In the account checking process, based on the blockchain technology, the integrity and consistency of transaction data are verified by utilizing the transaction record hash value.
As shown in fig. 6, which is a schematic structural diagram of a tie-out system based on a blockchain disclosed in embodiment 3 of the present application, the system may include:
the first recording module 601 is configured to count each transaction record of a bank into a block chain, so as to form a bank reconciliation distributed account book based on the block chain;
when account checking is needed, each transaction record generated by the bank is recorded into the block chain, wherein the transaction record of the bank comprises: order number, order amount, transaction status, return amount, processing result, transaction record hash value, etc. And (4) recording the transaction records into a block chain, namely packaging the accounts of the bank into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in all the accounting nodes in a distributed manner to form the bank account checking distributed account book based on the block chain.
The second recording module 602 is configured to count each transaction flow record of the payment platform into a block chain, so as to form a payment platform reconciliation distributed account book based on the block chain;
meanwhile, each transaction flow record generated by the payment platform is counted into the block chain, wherein the payment platform can comprise: third party payment platforms (such as WeChat, Payment treasures, E-treasures, etc.), electric power payment APP, shopping mall sales systems, etc. And (4) accounting the transaction flow records into a block chain, namely packaging accounts of the payment platform into blocks, recording the accounts in the block chain based on a consensus mechanism, and storing the accounts in each accounting node in a distributed manner to form a payment platform account checking distributed account book based on the block chain.
The connection module 603 is configured to connect a node of a block chain for recording each transaction record of a bank and a node for recording each transaction flow record of a payment platform, so as to form an alliance chain;
and connecting the nodes of each participating unit of the block chain to form a union chain. For example, a federation chain is formed by connecting a node for recording a blockchain of each transaction record of a bank and a node for recording a streamline record of each transaction of a payment platform, so that a blockchain-based bank reconciliation distributed ledger and a blockchain-based payment platform reconciliation distributed ledger can be shared.
The judging module 604 is configured to judge whether the recording time of the account in the bank reconciliation distributed account book and/or the recording time of the account in the payment platform reconciliation distributed account book exceeds a preset time length;
in addition, the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book can be further judged whether to exceed the preset time length, namely whether the accounts exceed the reconciliation deadline is judged, and when the reconciliation deadline is exceeded, the early warning information is generated.
The generating module 605 is configured to generate the warning information when the recording time of the account in the bank reconciliation distributed account book and/or the recording time of the account in the payment platform reconciliation distributed account book exceeds a preset time length.
A first judging unit 606, configured to judge whether a hash value of an account in the bank reconciliation distributed account book is consistent with a hash value of an account in the payment platform reconciliation distributed account book;
each account has a corresponding hash value, has uniqueness, and is identification information. Therefore, in the account checking process, whether the hash value of the account in the bank account checking distributed account book is consistent with the hash value of the account in the payment platform account checking distributed account book is firstly compared, and the consistency check of the account is carried out only when the hash values are consistent.
The second determination unit 607 is configured to determine whether an important field of an account record in the bank reconciliation distributed account book is consistent with a corresponding field of an account record in the payment platform reconciliation distributed account book when the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book;
when the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, the information such as order number, order amount, transaction state, return amount, processing result and the like is further checked according to rules based on the intelligent contract. Whether the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book or not is checked, when the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book, a transaction account consistent report is generated, and when the important fields of the account records in the bank reconciliation distributed account book are inconsistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book, a transaction account inconsistent report is generated.
The generating unit 608 is configured to generate a transaction account consistent report when the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, or generate a transaction account inconsistent report when the account in the bank reconciliation distributed account book is inconsistent with the account in the payment platform reconciliation distributed account book.
In summary, in this embodiment, on the basis of embodiment 1 and embodiment 2, the reconciliation is further performed by determining whether an important field of an account record in the bank reconciliation distributed account book is consistent with a corresponding field of an account record in the payment platform reconciliation distributed account book, and meanwhile, further determining whether the recording time of the account in the bank reconciliation distributed account book and/or the recording time of the account in the payment platform reconciliation distributed account book exceeds a preset time length, and when the recording time exceeds the preset time length, generating the warning information. In the account checking process, based on the blockchain technology, the integrity and consistency of transaction data are verified by utilizing the transaction record hash value.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A reconciliation method based on a block chain is characterized by comprising the following steps:
each transaction record of the bank is recorded into a block chain, and a bank reconciliation distributed account book based on the block chain is formed;
recording each transaction flow record of the payment platform into a block chain to form a payment platform reconciliation distributed account book based on the block chain;
connecting a node of a block chain for recording each transaction record of a bank with a node for recording each transaction flow record of a payment platform to form an alliance chain;
checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book based on an intelligent contract to generate a reconciliation result;
wherein, on the basis of the intelligent contract, the bank reconciliation distributed account book and the payment platform reconciliation distributed account book are checked, and the generating of the reconciliation result comprises the following steps:
judging whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book, if so, then:
judging whether the accounts in the bank reconciliation distributed account book are consistent with the accounts in the payment platform reconciliation distributed account book, if so, generating a transaction account consistent report, and if not,:
and generating a transaction account inconsistent report.
2. The method of claim 1, wherein determining whether the account in the bank reconciliation distributed ledger is consistent with the account in the payment platform reconciliation distributed ledger comprises:
and judging whether the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book.
3. The method of claim 2, further comprising:
judging whether the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book exceed a preset time length, if so, then:
and generating early warning information.
4. A blockchain-based reconciliation system, comprising:
the first recording module is used for recording each transaction record of the bank into a block chain to form a bank reconciliation distributed account book based on the block chain;
the second recording module is used for recording each transaction flow record of the payment platform into the block chain to form a payment platform reconciliation distributed account book based on the block chain;
the connection module is used for connecting the nodes of the block chain for recording each transaction record of the bank and the nodes for recording each transaction flow record of the payment platform to form an alliance chain;
the processing module is used for checking the bank reconciliation distributed account book and the payment platform reconciliation distributed account book based on an intelligent contract to generate a reconciliation result;
wherein the processing module comprises:
the first judgment unit is used for judging whether the hash value of the account in the bank reconciliation distributed account book is consistent with the hash value of the account in the payment platform reconciliation distributed account book;
the second judging unit is used for judging whether the accounts in the bank reconciliation distributed account book are consistent with the accounts in the payment platform reconciliation distributed account book or not when the hash values of the accounts in the bank reconciliation distributed account book are consistent with the hash values of the accounts in the payment platform reconciliation distributed account book;
and the generating unit is used for generating a transaction account consistent report when the account in the bank reconciliation distributed account book is consistent with the account in the payment platform reconciliation distributed account book, or generating a transaction account inconsistent report when the account in the bank reconciliation distributed account book is inconsistent with the account in the payment platform reconciliation distributed account book.
5. The system according to claim 4, wherein the second determining unit is specifically configured to:
and judging whether the important fields of the account records in the bank reconciliation distributed account book are consistent with the corresponding fields of the account records in the payment platform reconciliation distributed account book.
6. The system of claim 5, further comprising:
the judging module is used for judging whether the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book exceeds a preset time length or not;
and the generating module is used for generating early warning information when the recording time of the accounts in the bank reconciliation distributed account book and/or the recording time of the accounts in the payment platform reconciliation distributed account book exceeds a preset time length.
CN201810737178.2A 2018-07-06 2018-07-06 Account checking method and system based on block chain Active CN109003175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810737178.2A CN109003175B (en) 2018-07-06 2018-07-06 Account checking method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810737178.2A CN109003175B (en) 2018-07-06 2018-07-06 Account checking method and system based on block chain

Publications (2)

Publication Number Publication Date
CN109003175A CN109003175A (en) 2018-12-14
CN109003175B true CN109003175B (en) 2021-08-10

Family

ID=64599472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810737178.2A Active CN109003175B (en) 2018-07-06 2018-07-06 Account checking method and system based on block chain

Country Status (1)

Country Link
CN (1) CN109003175B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109859024B (en) * 2019-01-23 2023-06-13 陕西优米数据技术有限公司 Tax system consensus method based on alliance chain
CN109784928B (en) * 2019-01-23 2024-04-12 众安信息技术服务有限公司 Information processing method and information processing device based on block chain
CN110084690A (en) * 2019-03-18 2019-08-02 深圳壹账通智能科技有限公司 Data processing method, device, computer installation and storage medium
CN110009350A (en) * 2019-03-26 2019-07-12 阿里巴巴集团控股有限公司 A kind of operation note checking method and device based on block chain intelligence contract
US11062308B2 (en) 2019-04-23 2021-07-13 Advanced New Technologies Co., Ltd. Service execution result obtaining method and system based on blockchain
CN110175915B (en) * 2019-04-23 2021-04-06 创新先进技术有限公司 Service execution result obtaining method and system based on block chain
CN110163605B (en) * 2019-04-29 2020-09-11 阿里巴巴集团控股有限公司 Settlement method and device based on block chain and electronic equipment
US10991045B2 (en) 2019-04-29 2021-04-27 Advanced New Technologies Co., Ltd. Blockchain-based settlement method, apparatus, and electronic device
CN110597919B (en) * 2019-09-25 2023-09-01 腾讯科技(深圳)有限公司 Block chain-based data management method, device, equipment and storage medium
CN112651819A (en) * 2019-10-11 2021-04-13 浙江金融资产交易中心股份有限公司 Bank account checking system for realizing financial alliance chain
CN110992033A (en) * 2019-12-10 2020-04-10 苏宁金融科技(南京)有限公司 Block chain-based article monitoring method, device, medium and computer equipment
CN111125785A (en) * 2019-12-23 2020-05-08 深圳前海星际同辉科技有限公司 Account checking method based on block chain, account checking device and readable storage medium
CN111161041A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Account checking method and device based on block chain
CN111626858A (en) * 2020-05-28 2020-09-04 北京金山云网络技术有限公司 Processing method and device for transaction, electronic equipment and computer readable medium
CN111861482B (en) * 2020-09-22 2021-07-06 支付宝(杭州)信息技术有限公司 Block chain account checking method and system
CN112347494A (en) * 2020-11-10 2021-02-09 上海欧冶金融信息服务股份有限公司 Encryption reconciliation method and system based on block chain
CN113450115A (en) * 2021-07-14 2021-09-28 中国银行股份有限公司 Intelligent transaction system and method
CN117132338B (en) * 2023-10-26 2023-12-26 环球数科集团有限公司 Distributed intelligent reconciliation system based on Web3 technology
CN117333182B (en) * 2023-11-30 2024-07-23 三亚学院 Cross-border payment transaction data distributed storage method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor
CN106789095A (en) * 2017-03-30 2017-05-31 腾讯科技(深圳)有限公司 Distributed system and message treatment method
CN107147735A (en) * 2017-05-12 2017-09-08 北京博晨技术有限公司 A kind of distributed account book system based on hierarchy
CN107194798A (en) * 2017-04-28 2017-09-22 广东网金控股股份有限公司 A kind of bank clearing method based on block chain alliance chain
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107358417A (en) * 2017-06-23 2017-11-17 现在(北京)支付股份有限公司 The method of payment supervised based on block chain technology
CN108074177A (en) * 2017-12-05 2018-05-25 深圳前海微众银行股份有限公司 Data account checking method, system and computer readable storage medium
CN108171489A (en) * 2017-12-18 2018-06-15 深圳前海微众银行股份有限公司 Data liquidation method, system and computer readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678627A (en) * 2016-01-07 2016-06-15 北京京东尚科信息技术有限公司 Method for sharing automatically changing values
CN105959307A (en) * 2016-06-30 2016-09-21 中国科学院计算技术研究所 Existence certification and authentication service method and system based on block chain technology
CN106780033A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of digital ticket transaction system construction method based on alliance's chain
CN107025602A (en) * 2017-02-24 2017-08-08 杭州象链网络技术有限公司 A kind of financial asset transaction system construction method based on alliance's chain
CN106980980A (en) * 2017-03-29 2017-07-25 宁夏宁信信息科技有限公司 Method of commerce and system based on block chain technology in e-commerce platform
CN107146087A (en) * 2017-04-11 2017-09-08 广东网金控股股份有限公司 A kind of quick common recognition bookkeeping methods and system based on block chain alliance chain
CN107733855B (en) * 2017-08-31 2019-11-05 中国科学院信息工程研究所 A kind of block catenary system and application method that can support publicly-owned chain, alliance's chain and privately owned chain simultaneously
CN108055138B (en) * 2018-02-01 2020-03-17 国家计算机网络与信息安全管理中心 Block chain-based application distribution recording method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor
CN106789095A (en) * 2017-03-30 2017-05-31 腾讯科技(深圳)有限公司 Distributed system and message treatment method
CN107194798A (en) * 2017-04-28 2017-09-22 广东网金控股股份有限公司 A kind of bank clearing method based on block chain alliance chain
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107147735A (en) * 2017-05-12 2017-09-08 北京博晨技术有限公司 A kind of distributed account book system based on hierarchy
CN107358417A (en) * 2017-06-23 2017-11-17 现在(北京)支付股份有限公司 The method of payment supervised based on block chain technology
CN108074177A (en) * 2017-12-05 2018-05-25 深圳前海微众银行股份有限公司 Data account checking method, system and computer readable storage medium
CN108171489A (en) * 2017-12-18 2018-06-15 深圳前海微众银行股份有限公司 Data liquidation method, system and computer readable storage medium

Also Published As

Publication number Publication date
CN109003175A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN109003175B (en) Account checking method and system based on block chain
EP3819850A1 (en) Method and device for data processing based on blockchain
US20180075536A1 (en) Multiparty reconciliation systems and methods
CN110148046A (en) A kind of payment management method and device
CN108280358B (en) Information reminding method and device and electronic equipment
CN109377236A (en) A kind of risk control method, equipment and storage medium based on fusing mechanism
CN111985938A (en) Method, device and equipment for verifying authenticity of cross-border transaction
WO2020000805A1 (en) Assets management method and apparatus, computer device, and readable storage medium
CN110782350A (en) Enterprise financing wind control method, device and system based on block chain
CN111641655A (en) Block chain-based guarantee fund service processing method, device and system
CN111639125A (en) Resource circulation method and device based on block chain
CN108399573A (en) Electronic device, long-range declaration form go out folk prescription method and storage medium
CN111539705A (en) Cross-border payment method and device based on block chain
CN114331191A (en) Credit risk assessment method and device based on enterprise scale and association
KR20190072571A (en) Method and apparatus for sharing local information
CN111798230A (en) Block chain based staged payment method, device and equipment
CN111008893A (en) Method, equipment and medium for managing network loan based on block chain
CN116934061A (en) Block chain-based carbon emission management method, system, equipment and storage medium
CN116862236A (en) Risk scene assessment method, system, terminal equipment and storage medium
CN114926249A (en) House rental data processing method and device based on block chain
CN115099975A (en) Transaction risk control method and device, processor and electronic equipment
CN111194441B (en) Data management method and related system based on block chain
CN110619557B (en) Fixed asset lease management method and device and electronic equipment
CN113129021A (en) Block chain-based method and device for preventing malicious overdraft of credit card
CN111831726A (en) Financial mortgage data storage method and device based on block chain

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100053 5th floor, Xianglong business building, 311 guanganmennei street, Xicheng District, Beijing

Patentee after: STATE GRID HUITONG JINCAI (BEIJING) INFORMATION TECHNOLOGY Co.,Ltd.

Patentee after: State Grid Digital Technology Holdings Co.,Ltd.

Patentee after: STATE GRID CORPORATION OF CHINA

Address before: 100053 5th floor, Xianglong business building, 311 guanganmennei street, Xicheng District, Beijing

Patentee before: STATE GRID HUITONG JINCAI (BEIJING) INFORMATION TECHNOLOGY Co.,Ltd.

Patentee before: STATE GRID ELECTRONIC COMMERCE Co.,Ltd.

Patentee before: STATE GRID CORPORATION OF CHINA