Account book recording method and device based on block chain and terminal equipment
A recording method and blockchain technology, applied in the blockchain field, can solve the problems of large amount of calculation, low efficiency, and high cost, and achieve the effects of ensuring equality, reducing the amount of calculation, and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] Such as figure 1 As shown, this embodiment provides a blockchain-based account book recording method, which can be applied to terminal devices such as PCs and tablet computers. The blockchain-based ledger recording method provided in this embodiment includes:
[0042] S101. Acquire ledger data sent by a non-accounting node; wherein, the ledger data includes node data, signature and hash.
[0043] In a specific application, the ledger data sent by all non-bookkeeping nodes on the current blockchain is obtained, wherein the ledger data includes node data, signatures and hashes collected by non-bookkeeping nodes.
[0044] S102. Pack the ledger data of all the non-accounting nodes to generate a preset data block; wherein, the block header of the preset data block includes the hash of the previous preset data block, the preset The hash and timestamp of the data block; the block body of the preset data block includes the ledger data body collected by all nodes within the pr...
Embodiment 2
[0055] Such as figure 2 As shown, this embodiment is a further description of the method steps in the first embodiment. In this embodiment, after step S103, include:
[0056] S104. Obtain confirmation information sent by the node; wherein the confirmation information includes confirmation information of the node to the ledger data of the node in the ledger block.
[0057] In a specific application, the confirmation information sent by the node on the current blockchain is obtained to determine that the node confirms the ledger data of the node in the ledger block. Wherein, the confirmation information includes the node's confirmation information of the ledger data of the node in the ledger block.
[0058] S105. Mark the node sending the confirmation information as a confirmed node, and record the number of the confirmed nodes; if the number of the confirmed nodes meets the first preset threshold, it is determined that the confirmation of the ledger block is successful .
...
Embodiment 3
[0062] Such as image 3 As shown, this embodiment is a further description of the method steps in the first embodiment. In this embodiment, after step S103, it also includes:
[0063] S106. Acquire determination error information sent by the node.
[0064] In a specific application, the determination error information sent by the node on the current block chain is obtained to know the information that the node determines that the node's ledger data in the ledger block is wrong. Incorrect information about ledger data.
[0065] S107. Mark the node sending the determination error information as an error node, and record the number of the error nodes.
[0066] In a specific application, the node that sends judgment error information is marked as an error node, and the number of error nodes is recorded.
[0067] S108. If the number of the error nodes satisfies the second preset threshold, it is determined that the confirmation of the ledger block fails.
[0068] In a specific...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com