CN109658099B - Account book accounting method based on block chain - Google Patents

Account book accounting method based on block chain Download PDF

Info

Publication number
CN109658099B
CN109658099B CN201811561434.3A CN201811561434A CN109658099B CN 109658099 B CN109658099 B CN 109658099B CN 201811561434 A CN201811561434 A CN 201811561434A CN 109658099 B CN109658099 B CN 109658099B
Authority
CN
China
Prior art keywords
block
accounting
node
task
account book
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
CN201811561434.3A
Other languages
Chinese (zh)
Other versions
CN109658099A (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.)
Putian Zhuhuo Information Technology Co ltd
Original Assignee
Putian Zhuhuo Information Technology 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 Putian Zhuhuo Information Technology Co ltd filed Critical Putian Zhuhuo Information Technology Co ltd
Priority to CN201811561434.3A priority Critical patent/CN109658099B/en
Publication of CN109658099A publication Critical patent/CN109658099A/en
Application granted granted Critical
Publication of CN109658099B publication Critical patent/CN109658099B/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
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Landscapes

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

Abstract

The invention discloses an account book accounting method based on a block chain, which relates to the field of the block chain and comprises the following steps: firstly, at least one accounting task is distributed on a first block chain network by an account book management node; then, the accounting node generates a second block meeting a preset constraint condition according to the accounting task and the first block information of the first block commonly recognized by the accounting management node; then, the accounting node sends the second block data corresponding to the second block to the account book management node; and finally, the account book management node verifies that the second block meets the preset constraint condition, marks the completion of the accounting task, and announces the completed information of the accounting task or the second block on the first blockchain network. The invention liberates the traditional overstaffed manual accounting, overcomes the account checking reliability of the traditional low-efficiency digital accounting and the low-efficiency accounting, and simultaneously turns the accounting function or the accounting obligation to the absenteeism, thereby reducing the accounting cost of the account book manager.

Description

Account book accounting method based on block chain
Technical Field
The invention relates to the field of block chains, in particular to an account book accounting method based on a block chain.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm.
In a narrow sense, the blockchain is a distributed account book which is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence and is guaranteed in a cryptographic mode and cannot be tampered and forged. Broadly, the blockchain technique is a completely new distributed infrastructure and computing approach that utilizes blockchain data structures to verify and store data, utilizes distributed node consensus algorithms to generate and update data, utilizes cryptography to secure data transmission and access, and utilizes intelligent contracts composed of automated script code to program and manipulate data.
In the prior art, bank account has the risks of data tampering and counterfeiting, poor traceability of business processes and records, poor auditability, long account checking time and high operation cost.
Disclosure of Invention
In view of some of the above defects in the prior art, the technical problem to be solved by the present invention is to provide a block chain-based account book keeping method, aiming at overcoming the problems of tedious account checking in the existing keeping mode, easy error of account book data, required trust cost, and the like.
To achieve the above object, in a first aspect of the present invention, there is provided a block chain-based ledger accounting method, including:
the accounting book management node distributes at least one accounting task on the first block chain network; the accounting task comprises business data to be accounted, and the first block chain network further comprises an accounting node;
the accounting node generates a second block meeting a preset constraint condition according to the accounting task and first block information of the first block commonly recognized by the accounting management node; the first block information includes a hash value of the first block; the first block is a last block of the second block, and the second block is a current block;
the accounting node sends second block data corresponding to the second block to the accounting book management node;
the account book management node verifies whether the second block meets the preset constraint condition; and if the second block meets the preset constraint condition, marking the accounting task as completed, and announcing the completed information of the accounting task or the second block on the first block chain network.
In one embodiment, the data of the accounting task further includes a block hash value of the first block.
In a specific embodiment, the method further comprises:
storing data of a second block on the account book management node in a private storage space of the account book management node; the private storage space is restricted access.
In one embodiment, the second block further comprises a difficulty target field for regulating difficulty in completing the billing task; the method further comprises the following steps:
collecting accounting time consumed by the accounting node from the time when the accounting task is issued to the time when the accounting node completes the accounting task in a first historical time period;
and according to the bookkeeping consumed time, modifying the difficulty target field to increase the completion difficulty of the bookkeeping task.
In one embodiment, the verifying, by the ledger administration node, whether the second block meets the preset constraint condition further includes:
the accounting book management node acquires the second block sent by the accounting node;
generating a second block hash value according to the second block;
in response to the second block hash value meeting a preset condition, determining that the second block meets a preset constraint condition; otherwise, the second block does not meet the preset constraint condition.
In a specific embodiment, the ledger administration node pays an incentive to the accounting node either within the chain or outside the chain of the first blockchain.
In a specific embodiment, the method for the ledger administration node to pay for an incentive through the intra-chain or the out-chain of the first blockchain to the accounting node includes:
the account book management node sends a first digital legal note sent by an official party to the accounting node through a block chain network;
and/or the accounting book management node is used for paying an incentive to bank card accounts or users corresponding to the accounting node outside the blockchain network.
In a specific embodiment, the method further comprises:
the account checking node receives block data sent by the account book management node; the block data at least comprises a first block and a second block;
the checking node checks whether the first block and/or the second block meet a preset constraint condition;
in response to the first block not meeting a preset constraint condition, the checking node records the first block; and responding to the second block not meeting the preset constraint condition, and recording the second block by the account checking node.
In a specific embodiment, the method further comprises:
acquiring a timestamp of the second block, acquiring a timestamp of the first block, and acquiring a block hash value of the second block;
according to the block hash value, obtaining the solving difficulty of the second block corresponding to the preset constraint condition;
and marking the second block as credible in response to the solving difficulty being larger than a difficulty preset value.
In a specific embodiment, the method further comprises: and the supervision node records and supervises the accounting tasks issued by the accounting book management node and the accounting behaviors of the accounting nodes.
In a second aspect of the present invention, a block chain based ledger accounting system is provided, which includes a ledger management node and an accounting node; the account book management node comprises an account book node first module and an account book node fourth module; the accounting node comprises: a second accounting node module and a third accounting node module;
the account book node first module is used for the account book management node to distribute at least one accounting task on a first block chain network; the accounting task comprises business data to be accounted;
the accounting node second module is used for the accounting node to generate a second block meeting a preset constraint condition according to the accounting task and the first block information of the first block identified by the accounting book management node; the first block information includes a hash value of the first block; the first block is a last block of the second block, and the second block is a current block;
the accounting node third module is configured to send, by the accounting node, second block data corresponding to the second block to the accounting book management node;
the account book node fourth module is configured to verify, by the account book management node, whether the second block meets the preset constraint condition; and if the second block meets the preset constraint condition, marking the accounting task as completed, and announcing the completed information of the accounting task or the second block on the first block chain network.
In one embodiment, the data of the accounting task further includes a block hash value of the first block.
In a specific embodiment, the ledger administration node further includes:
the account book node fifth module is used for storing the data of the second block on the account book management node in the private storage space of the account book management node; the private storage space is restricted access.
In one embodiment, the second block further comprises a difficulty target field for regulating difficulty in completing the billing task; the system further comprises:
the difficulty management sixth module is used for collecting accounting time consumed by the accounting node from the time when the accounting task is issued to the accounting node to the time when the accounting node completes the accounting task in a first historical time period;
and the difficulty management seventh module is used for modifying the difficulty target field according to the accounting time so as to increase the completion difficulty of the accounting task.
In a specific embodiment, the fourth module of the account book node further includes:
the block data acquisition module is used for the accounting management node to acquire the second block sent by the accounting node;
the block hash generation module is used for generating a second block hash value according to the second block;
the block validity verification module is used for responding to the second block hash value meeting a preset condition, and judging that the second block meets a preset constraint condition; otherwise, the second block does not meet the preset constraint condition.
In a specific embodiment, the ledger administration node includes an incentive payment eighth module, configured to pay an incentive to the accounting node through an intra-chain or an out-chain of the first block chain by the ledger administration node.
In a specific embodiment, the incentive payment eighth module includes:
the first payment unit is used for sending a first digital legal note sent by an official party to the accounting node through the block chain network by the accounting management node;
and/or the second payment unit is used for the accounting book management node to pay an incentive to bank card accounts or users corresponding to the accounting node outside the blockchain network.
In a specific embodiment, the system further includes an audit node, the audit node including: a ninth account checking module and a tenth account checking module;
the account checking ninth module is configured to receive, by the account checking node, block data sent by the account book management node; the block data at least comprises a first block and a second block;
the accounting tenth module is configured to check, by the accounting node, whether the first block and/or the second block meet a preset constraint condition; in response to the first block not meeting a preset constraint condition, the checking node records the first block; and responding to the second block not meeting the preset constraint condition, and recording the second block by the account checking node.
In a specific embodiment, the tenth audit module further includes:
the first account checking unit is used for acquiring the timestamp of the second block, acquiring the timestamp of the first block and acquiring the block hash value of the second block;
the second account checking unit is used for acquiring the solving difficulty of the second block corresponding to the preset constraint condition according to the block hash value; and marking the second block as credible in response to the solving difficulty being larger than a difficulty preset value.
In a specific embodiment, the system further comprises: a supervisory node;
and the supervision node is used for recording and supervising the accounting tasks issued by the accounting book management node and the accounting behaviors of the accounting nodes.
The invention has the beneficial effects that: in the invention, the accounting book management node issues an accounting task, and the accounting node generates a block, and the correctness of the block is verified by the accounting book management node; for the verified blocks, the account book management node cannot be tampered or the tampering cost is high and the account book management node does not want to change, and the credibility of the account book is guaranteed. The invention liberates the traditional overstaffed manual accounting and overcomes the account checking reliability and the inefficient accounting of the traditional inefficient digital accounting. The function of bookkeeping or the obligation of bookkeeping is handed to the spacious workers, the bookkeeping cost of an account book manager (a bank and the like) is reduced, and in addition, the block chain network automatic maintenance cost, the checking cost and the trust cost are lower than those of the traditional bank bookkeeping mode.
Drawings
Fig. 1 is a schematic flow chart of a block chain-based ledger accounting method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a block chain-based ledger accounting system according to an embodiment of the present invention.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
as shown in fig. 1-2, in a first embodiment of the present invention, there is provided a block chain-based ledger accounting method, including:
the accounting book management node distributes at least one accounting task on the first block chain network; the accounting task comprises business data to be accounted, and the first block chain network further comprises an accounting node;
the accounting node generates a second block meeting a preset constraint condition according to the accounting task and first block information of the first block commonly recognized by the accounting management node; the first block information includes a hash value of the first block; the first block is a last block of the second block, and the second block is a current block;
the accounting node sends second block data corresponding to the second block to the accounting book management node;
the account book management node verifies whether the second block meets the preset constraint condition; and if the second block meets the preset constraint condition, marking the accounting task as completed, and announcing the completed information of the accounting task or the second block on the first block chain network.
For the account book management node, performing endorsement through the block chain network to ensure that the account book data is not tampered after the accounting task is issued in the block chain network;
optionally, the accounting task includes a release time of the accounting task.
Optionally, the generated second block of the accounting node includes a timestamp of the second block.
Typically, the blocks of the blockchain network include a block number, a block hash value, a timestamp, a difficulty target, a random number, a Merkle root hash of a transaction included in the accounting task, and a last block hash value; the block chain network is similar to the chain structure of the traditional block chain, and the block hash value of the previous block is used as the input of the next block to form chain connection.
In actual operation, the accounting management node issues an accounting task, the accounting node performs calculation force test by setting a random number to obtain a proper random number, so that the block meets the difficulty target, the block meeting the difficulty target sends a value to the accounting management node for verification and is adopted by the accounting management node, and the accounting task is completed.
In the process of accounting, the actual function is to receive the entrusts of the account book management nodes (bank nodes and the like), and provide the account book security and the evidence that the account book is not tampered for the account book management nodes by relying on the investment cost (including the accumulation of time cost and the investment cost) of the account book; meanwhile, account checking cost is reduced when later-stage account checking is facilitated, and the management cost is reduced.
Optionally, the accounting node acquires information of a previous block from the account book management node; optionally, the accounting node acquires the previous block information from the block chain network;
it should be noted that the first block is the last block of the second block, and for the non-first secondary block billing, the block as the second block has one first block as the last block;
in this embodiment, the data of the accounting task further includes a chunk hash value of the first chunk.
It should be noted that, if the accounting task received by the accounting node already includes the block hash value of the first block, the accounting node does not need to know the specific information of the last block in the current block link network.
In this embodiment, the method further includes:
storing data of a second block on the account book management node in a private storage space of the account book management node; the private storage space is restricted access. Based on this, the private storage space is not accessed by the accounting node or requires credentials to access.
It should be noted that a plurality of blocks can be updated in the private memory space at the same time, or one block can be added for updating. In addition, when data in the private storage space comes in and goes out with data on the account book management node or the blockchain network, the data is investigated or controlled according to actual scene needs.
Of course, the account book management node itself is also in communication connection with the first blockchain network, and in fact, the account book management node also belongs to a node of the first blockchain network; corresponding to the private storage space, the public storage space of the account book management node also stores an account book containing a first block network, and the account book also contains a first block, a second block and a block before the first block; if necessary, the account book also deletes the block before the first block.
In this embodiment, the second block further includes a difficulty target field for regulating and controlling difficulty in completing the accounting task; the method further comprises the following steps:
collecting accounting time consumed by the accounting node from the time when the accounting task is issued to the time when the accounting node completes the accounting task in a first historical time period;
and according to the bookkeeping consumed time, modifying the difficulty target field to increase the completion difficulty of the bookkeeping task.
It is worth mentioning that the modification of the difficulty target field can refer to the existing blockchain technique; typically, for example, a bitcoin network, the accounting competition difficulty is limited according to the condition that the N bits before the block hash value is limited to be 0; optionally, other restrictions may be made on the chunk hash value to vary the difficulty of completion of the accounting task.
In this embodiment, the first history period includes at least one tile generation cycle.
Typically, the second block generation rule is to adjust the difficulty of completing the accounting task according to the difficulty target field, and verify whether the hash value of the block corresponding to the second block sent by the accounting node meets a preset value;
optionally, in this embodiment, the verifying, by the ledger administration node, whether the second block meets the preset constraint condition further includes:
the accounting book management node acquires the second block sent by the accounting node;
generating a second block hash value according to the second block;
in response to the second block hash value meeting a preset condition, determining that the second block meets a preset constraint condition; otherwise, the second block does not meet the preset constraint condition.
Optionally, the preset condition includes a number of first N bits being zero.
Optionally, in this embodiment, the ledger administration node pays an incentive to the accounting node through an in-chain or an out-chain of the first block chain.
Optionally, the account book management node pays an incentive to the accounting node through the intra-chain or the out-chain of the first block chain, including:
the account book management node sends a first digital legal note sent by an official party to the accounting node through a block chain network;
and/or the accounting book management node is used for paying an incentive to bank card accounts or users corresponding to the accounting node outside the blockchain network.
In this embodiment, the method further includes:
the account checking node receives block data sent by the account book management node; the block data at least comprises a first block and a second block;
the checking node checks whether the first block and/or the second block meet a preset constraint condition;
in response to the first block not meeting a preset constraint condition, the checking node records the first block; and responding to the second block not meeting the preset constraint condition, and recording the second block by the account checking node.
In this embodiment, the method further includes:
acquiring a timestamp of the second block, acquiring a timestamp of the first block, and acquiring a block hash value of the second block;
according to the block hash value, obtaining the solving difficulty of the second block corresponding to the preset constraint condition;
and marking the second block as credible in response to the solving difficulty being larger than a difficulty preset value.
Typically, similar to the bitcoin network, according to the number of bits of the hash value of the block, where the first N bits are zero, the more zero bits, the harder the representation block is tampered, and the higher the credibility of the representation block is. In fact, the specific credible judgment method is related to the preset constraint condition.
In this embodiment, the method further includes: and the supervision node records and supervises the accounting tasks issued by the accounting book management node and the accounting behaviors of the accounting nodes.
In this embodiment, only the calculation power needs to be maintained at a height, and the ledger management node cannot tamper with the booked ledger or is unwilling to change due to higher tampering cost, so as to improve the credibility of the ledger. The invention liberates the traditional overstaffed manual accounting and overcomes the account checking reliability and the inefficient accounting of the traditional inefficient digital accounting. The function of bookkeeping or the obligation of bookkeeping is handed to the spacious workers, the bookkeeping cost of an account book manager (a bank and the like) is reduced, and in addition, the block chain network automatic maintenance cost, the checking cost and the trust cost are lower than those of the traditional bank bookkeeping mode.
As shown in fig. 1-2, in a second embodiment of the present invention, there is provided a block chain-based ledger accounting system, which includes a ledger administration node 100 and an accounting node 200; the ledger management node 100 comprises a ledger node first module 101 and a ledger node fourth module 102; said accounting node 200 comprises: a second accounting node module 201, a third accounting node module 202;
the ledger node first module 101 is configured to issue at least one accounting task from the ledger management node 100 on a first block chain network; the accounting task comprises business data to be accounted;
the accounting node second module 201 is configured to generate, by the accounting node 200, a second block meeting a preset constraint condition according to the accounting task and first block information of the first block that is commonly recognized by the accounting node 100; the first block information includes a hash value of the first block; the first block is a last block of the second block, and the second block is a current block;
the third accounting node module 202 is configured to send, by the accounting node 200, second block data corresponding to the second block to the accounting management node 100;
the fourth module 102 of the ledger node is configured to verify, by the ledger management node 100, whether the second block meets the preset constraint condition; and if the second block meets the preset constraint condition, marking the accounting task as completed, and announcing the completed information of the accounting task or the second block on the first block chain network.
For the account book management node 100, endorsement is performed through the blockchain network, so that the account book data is guaranteed not to be tampered after the accounting task is issued in the blockchain network;
optionally, the accounting task includes a release time of the accounting task.
Optionally, the generated second block of the accounting node 200 includes a timestamp of the second block.
Typically, the blocks of the blockchain network include a block number, a block hash value, a timestamp, a difficulty target, a random number, a Merkle root hash of a transaction included in the accounting task, and a last block hash value; the block chain network is similar to the chain structure of the traditional block chain, and the block hash value of the previous block is used as the input of the next block to form chain connection.
In actual operation, the account book management node 100 issues an account keeping task, the account keeping node 200 performs a calculation force test by setting a random number to obtain a proper random number, so that the block meets the difficulty target, and the block meeting the difficulty target is sent to the account book management node 100 for verification and adoption, so that the account keeping task is completed.
In the accounting process, the actual role is to receive the entrustment of the account book management node 100 (bank node and the like), and provide the account book guarantee and the evidence that the account book is not tampered for the account book management node 100 by relying on the investment cost (including the accumulation of time cost and effort cost) of the account book management node; meanwhile, account checking cost is reduced when later-stage account checking is facilitated, and the management cost is reduced.
Optionally, the accounting node 200 acquires the previous block information from the account book management node 100; optionally, the accounting node 200 obtains previous block information from the blockchain network;
it should be noted that the first block is the last block of the second block, and for the non-first secondary block billing, the block as the second block has one first block as the last block;
in this embodiment, the data of the accounting task further includes a chunk hash value of the first chunk.
It should be noted that if the billing task received by the billing node 200 already includes the block hash value of the first block, the billing node 200 does not need to know the specific information of the last block in the current blockchain network.
In this embodiment, the account book management node 100 further includes:
a fifth module 103 of the ledger node, configured to store data of the second block on the ledger management node 100 in a private storage space of the ledger management node 100; the private storage space is restricted access. Based on this, the private storage space is not accessed by the accounting node 200 or requires credentials to access.
It should be noted that a plurality of blocks can be updated in the private memory space at the same time, or one block can be added for updating. In addition, when data in the private storage space comes in and goes out of the book management node 100 or data on the blockchain network, the data is investigated or controlled according to actual scene needs.
Of course, the book management node 100 itself is also in communication connection with the first blockchain network, and in fact, the book management node 100 also belongs to a node of the first blockchain network; corresponding to the private storage space, the public storage space of the account book management node 100 itself also stores an account book including a first block network, and the account book also includes a first block, a second block and a block before the first block; if necessary, the account book also deletes the block before the first block.
In this embodiment, the second block further includes a difficulty target field for regulating and controlling difficulty in completing the accounting task; the system further comprises:
a difficulty management sixth module 301, configured to collect accounting time consumed by the accounting node 200 to complete the accounting task after the accounting task is issued by the accounting node 100 within a first historical time period;
a difficulty management seventh module 302, configured to modify the difficulty target field to increase difficulty of completing the billing task according to the billing duration.
It is worth mentioning that the modification of the difficulty target field can refer to the existing blockchain technique; typically, for example, a bitcoin network, the accounting competition difficulty is limited according to the condition that the N bits before the block hash value is limited to be 0; optionally, other restrictions may be made on the chunk hash value to vary the difficulty of completion of the accounting task.
In this embodiment, the first history period includes at least one tile generation cycle.
Typically, the second block generation rule is to adjust the difficulty of completing the accounting task according to the difficulty target field, and verify whether the hash value of the block corresponding to the second block sent by the accounting node 200 meets a preset value;
in this embodiment, the fourth module 102 of the account book node further includes:
a block data obtaining module, configured to obtain, by the accounting management node 100, the second block sent by the accounting node 200;
the block hash generation module is used for generating a second block hash value according to the second block;
the block validity verification module is used for responding to the second block hash value meeting a preset condition, and judging that the second block meets a preset constraint condition; otherwise, the second block does not meet the preset constraint condition.
Optionally, the preset condition includes a number of first N bits being zero.
Optionally, in this embodiment, the ledger administration node 100 includes an incentive payment eighth module 104, configured to the ledger administration node 100 pay an incentive to the accounting node 200 through an intra-chain or an out-chain of the first block chain.
Optionally, in this embodiment, the incentive payment eighth module 104 includes:
a first payment unit, configured to send a first digital legal note sent by an official party through a block chain network accounting node 200 by the accounting book management node 100;
and/or a second payment unit, configured to enable the ledger administration node 100 to provide payment incentive to the bank card account or the user corresponding to the accounting node 200 outside the blockchain network.
In this embodiment, the system further includes an accounting node 400, where the accounting node 400 includes: an account checking ninth module 401 and an account checking tenth module 402;
the accounting ninth module 401 is configured to receive, by the accounting node 400, block data sent by the accounting management node 100; the block data at least comprises a first block and a second block;
the tenth checking module 402, configured to check, by the checking node 400, whether the first block and/or the second block meet a preset constraint condition; in response to the first block not meeting a preset constraint, the audit node 400 records the first block; in response to the second block not satisfying the predetermined constraint, the audit node 400 records the second block.
Optionally, in this embodiment, the tenth audit module 402 further includes:
the first account checking unit is used for acquiring the timestamp of the second block, acquiring the timestamp of the first block and acquiring the block hash value of the second block;
the second account checking unit is used for acquiring the solving difficulty of the second block corresponding to the preset constraint condition according to the block hash value; and marking the second block as credible in response to the solving difficulty being larger than a difficulty preset value.
Typically, similar to the bitcoin network, according to the number of bits of the hash value of the block, where the first N bits are zero, the more zero bits, the harder the representation block is tampered, and the higher the credibility of the representation block is. In fact, the specific credible judgment method is related to the preset constraint condition.
Optionally, in this embodiment, the system further includes: a supervisory node 500;
the supervision node 500 is configured to record and supervise the accounting tasks issued by the ledger administration node 100 and the accounting behavior of the accounting node 200.
In this embodiment, only the calculation power needs to be maintained at a height, and the ledger management node cannot tamper with the booked ledger or is unwilling to change due to higher tampering cost, so as to improve the credibility of the ledger. The invention liberates the traditional overstaffed manual accounting and overcomes the account checking reliability and the inefficient accounting of the traditional inefficient digital accounting. The function of bookkeeping or the obligation of bookkeeping is handed to the spacious workers, the bookkeeping cost of an account book manager (a bank and the like) is reduced, and in addition, the block chain network automatic maintenance cost, the checking cost and the trust cost are lower than those of the traditional bank bookkeeping mode.
Optionally, in the present invention, the account book management node is a bank node, and the bank completes a bank accounting task through an ore machine of the block chain network. The third embodiment of the present invention is exemplified for a bank billing scenario.
In the bank bookkeeping scene, the bank is used as an account book manager, the flow is large, and the huge accounting cost is spent every month.
In this embodiment, a method for accounting of commercial banks based on a block chain is provided, where the method includes:
the bank node distributes at least one accounting task on the first block chain network; the accounting task comprises business data to be accounted, and the first block chain network further comprises an accounting node;
the accounting node generates a second block meeting a preset constraint condition according to the accounting task and first block information of the first block commonly recognized by the bank node; the first block information includes a hash value of the first block; the first block is a last block of the second block, and the second block is a current block;
the accounting node sends second block data corresponding to the second block to the bank node;
the bank node verifies whether the second block meets the preset constraint condition; and if the second block meets the preset constraint condition, marking the accounting task as completed, and announcing the completed information of the accounting task or the second block on the first block chain network.
In this embodiment, the bank node serves as an account book management node; and packaging the transaction records into accounting tasks, sending the accounting tasks to a first block chain network, packaging the accounting tasks into blocks by accounting nodes, and verifying the validity of the blocks by bank nodes and storing the blocks. This technical scheme has greatly reduced bank reconciliation cost, reduces the bank cost of labor. In fact, the mining machine on the block chain network can be regarded as a bookkeeping robot, the bookkeeping task processed by the accountant is undertaken, meanwhile, the bookkeeping is carried out in a block chain mode, the calculation force is used as guarantee, and the credibility of the account book is improved. Based on this embodiment, can reduce bank reconciliation cost. In addition, on one hand, the embodiment ensures the autonomy of the bank, issues the accounting tasks needing accounting and is networked with the block chain, and completes the complicated accounting tasks by using an ore machine; on the other hand, the decentralization credibility of the ledger is also increased.
Optionally, the accounting tasks are encrypted for comparison.
Preferably, in this embodiment, the first blockchain network serves the accounting tasks of the banking node separately.
In addition, other unexhausted contents can refer to other embodiments, which are schematic.
In addition, the invention can also be used for other accounting scenes, including tax accounting of tax authorities, medical and social security data accounting, fiscal accounting of middle and small enterprises, production record accounting of industrial enterprises and business line accounting of stores. Meanwhile, the ownership of the account book is still owned by the account book manager, and the blockchain network only receives the entrustment of the block chain network to complete the accounting. In addition, the above billing scenarios are only illustrative, and in fact, in principle, the scenarios with billing requirements can all adopt the scheme disclosed in the present invention.
In a fourth embodiment, corresponding to the third embodiment, there is provided a block chain based commercial bank billing system, characterized in that the system comprises: the system comprises a bank node and a billing node; the bank node comprises a bank node first module and a bank node fourth module; the accounting node comprises: a second accounting node module and a third accounting node module;
the first module of the bank node is used for the bank node to distribute at least one accounting task on a first block chain network; the accounting task comprises business data to be accounted;
the second accounting node module is used for generating a second block meeting a preset constraint condition by the accounting node according to the accounting task and the first block information of the first block commonly recognized by the bank node; the first block information includes a hash value of the first block; the first block is a last block of the second block, and the second block is a current block;
the third accounting node module is configured to send, by the accounting node, second block data corresponding to the second block to the bank node;
the bank node fourth module is configured to verify, by the bank node, whether the second block meets the preset constraint condition; and if the second block meets the preset constraint condition, marking the accounting task as completed, and announcing the completed information of the accounting task or the second block on the first block chain network.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.

Claims (10)

1. An account book accounting method based on a block chain is characterized by comprising the following steps:
the account book management node distributes at least one accounting task on the first block chain network; the accounting task comprises business data to be accounted, and the first block chain network further comprises an accounting node;
the accounting node generates a second block meeting a preset constraint condition according to the accounting task and first block information of the first block commonly recognized by the accounting management node; the first block information includes a hash value of the first block; the first block is a last block of the second block, and the second block is a current block;
the accounting node sends second block data corresponding to the second block to the accounting book management node;
the account book management node verifies whether the second block meets the preset constraint condition; and if the second block meets the preset constraint condition, marking the accounting task as completed, and announcing the completed information of the accounting task or the second block on the first block chain network.
2. The method for ledger accounting based on blockchain of claim 1, wherein the data of the accounting task further includes a block hash value of the first block.
3. The blockchain-based ledger accounting method of claim 1, wherein the method further comprises:
storing data of a second block on the account book management node in a private storage space of the account book management node; the private storage space is restricted access.
4. The block chain-based book accounting method of claim 1, wherein the second block further comprises a difficulty target field for regulating difficulty of accounting task completion; the method further comprises the following steps:
collecting accounting time consumed by the accounting node from the time when the accounting task is issued to the time when the accounting node completes the accounting task in a first historical time period;
and according to the bookkeeping consumed time, modifying the difficulty target field to increase the completion difficulty of the bookkeeping task.
5. The method as claimed in claim 1, wherein the ledger administration node verifies whether the second block meets the preset constraint condition, and further comprising:
the accounting book management node acquires the second block sent by the accounting node;
generating a second block hash value according to the second block;
in response to the second block hash value meeting a preset condition, determining that the second block meets a preset constraint condition; otherwise, the second block does not meet the preset constraint condition.
6. The blockchain-based ledger method of claim 1, wherein the ledger administration node pays an incentive to the accounting node either within the chain or outside the chain of the first blockchain.
7. The blockchain-based ledger method of claim 6, wherein the ledger administration node pays an incentive to the accounting node either within the chain or outside the chain of the first blockchain, comprising:
the account book management node sends a first digital legal note sent by an official party to an accounting node through a block chain network;
and/or the accounting book management node is used for paying an incentive to bank card accounts or users corresponding to the accounting node outside the blockchain network.
8. The blockchain-based ledger accounting method of claim 1, wherein the method further comprises:
the account checking node receives block data sent by the account book management node; the block data at least comprises a first block and a second block;
the checking node checks whether the first block and/or the second block meet a preset constraint condition;
in response to the first block not meeting a preset constraint condition, the checking node records the first block; and responding to the second block not meeting the preset constraint condition, and recording the second block by the account checking node.
9. The blockchain-based ledger accounting method of claim 8, wherein the method further comprises:
acquiring a timestamp of the second block, acquiring a timestamp of the first block, and acquiring a block hash value of the second block;
according to the block hash value, obtaining the solving difficulty of the second block corresponding to the preset constraint condition;
and marking the second block as credible in response to the solving difficulty being larger than a difficulty preset value.
10. The blockchain-based ledger accounting method of claim 1, wherein the method further comprises: and the supervision node records and supervises the accounting tasks issued by the accounting book management node and the accounting behaviors of the accounting nodes.
CN201811561434.3A 2018-12-20 2018-12-20 Account book accounting method based on block chain Active CN109658099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811561434.3A CN109658099B (en) 2018-12-20 2018-12-20 Account book accounting method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811561434.3A CN109658099B (en) 2018-12-20 2018-12-20 Account book accounting method based on block chain

Publications (2)

Publication Number Publication Date
CN109658099A CN109658099A (en) 2019-04-19
CN109658099B true CN109658099B (en) 2021-09-03

Family

ID=66115238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811561434.3A Active CN109658099B (en) 2018-12-20 2018-12-20 Account book accounting method based on block chain

Country Status (1)

Country Link
CN (1) CN109658099B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347744B (en) * 2019-06-03 2020-07-24 阿里巴巴集团控股有限公司 Data storage method, device and equipment for multilayer block chain type account book
US10949118B2 (en) 2019-06-03 2021-03-16 Advanced New Technologies Co., Ltd. Data storage method, apparatus, and device for multi-layer blockchain-type ledger
CN111369252A (en) * 2020-03-10 2020-07-03 北京意锐新创科技有限公司 Account checking method and device suitable for payment equipment
CN117132279B (en) * 2023-10-26 2024-01-23 山东大学 Block chain double-chain accounting method, system, equipment and medium
CN117692128B (en) * 2024-02-02 2024-04-16 波维希数字科技有限公司 Three-stage chain sealing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN108416593B (en) * 2018-03-20 2021-02-12 杨鉴 Block chain consensus method and system based on network dispersity certification

Also Published As

Publication number Publication date
CN109658099A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN109658099B (en) Account book accounting method based on block chain
CN108833081B (en) Block chain-based equipment networking authentication method
CN109040271B (en) Network equipment integrity protection method under distributed environment
US20200027080A1 (en) Scalable reconciliation of crypto assets in a blockchain network
CN109003175A (en) A kind of account checking method and system based on block chain
CN108009445B (en) Semi-centralized trusted data management system
CN112288434B (en) Privacy transaction method, device, zero knowledge proof system and privacy transaction architecture model
CN110175838A (en) Offline barcode scanning method of payment and offline barcode scanning payment mechanism
CN111429191A (en) Block chain-based electronic invoice flow management method, device and system
CN111008903A (en) Block chain-based credit insurance accrual pledge financing system and method
CN115526617A (en) Block chain-based digital RMB payment method, system, medium and equipment
EP3818481A1 (en) Encrypted blockchain voting system
CN111461881A (en) Data management method and device, computer equipment and storage medium
CN109493060B (en) Account book accounting system based on block chain
CN110766403A (en) Data processing device and method based on block chain and storage medium
CN113674080A (en) Block chain-based dynamic movable property pledge financing method, equipment and storage medium
CN109711842B (en) Account book accounting method of block chain network with regularly converged parallel chains
CN110619511A (en) Electronic bill processing method and device, readable storage medium and computer equipment
TWM637772U (en) Blockchain-based account clearing system
CN110163732A (en) A kind of processing method and processing system of accounting statement
CN109741050A (en) Extend method of financial IC card service life and associated method and device
CN113269649A (en) System and method for tracking digital currency
CN113472543A (en) Employment data processing method and device based on block chain, electronic equipment and medium
CN113850596A (en) Block chain-based spot material escort financing method, device, equipment and storage medium
CN113850595A (en) Export back-to-back insurance financing method and device based on block chain and electronic equipment

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