Determination method, device, server and storage medium of block chain main chain
A determination method, blockchain technology, applied in the blockchain field, can solve problems such as wrong chains, achieve the effects of improving rationality, reducing the success rate of malicious attacks, and increasing the cost of doing evil
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flowchart of a method for determining the main chain of a block chain provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where a fork chain is generated in the block chain to determine the main chain. This method can be determined by the main chain of the block chain. The chain is determined by the device, which can be configured in the node that has the right to store the block chain in the block chain system. The method specifically includes the following:
[0028] S110. If it is detected that there are at least two forked chains in the blockchain, determine the weight of each block in each forked chain.
[0029] In a specific embodiment of the present invention, the block data in each block in the blockchain not only includes the transaction data recorded in the block body, but also includes block header information, such as the hash value of the previous block header, the timestamp, or Block identific...
Embodiment 2
[0044] On the basis of the first embodiment above, this embodiment provides a preferred implementation of the method for determining the main chain of the blockchain, which can set corresponding weights according to the type of attack. image 3 A flow chart of a method for determining the main chain of a block chain provided by Embodiment 2 of the present invention, such as image 3 As shown, the method includes the following specific steps:
[0045] S310. If it is detected that there are at least two forked chains in the blockchain, determine the target attack type according to the block information contained in each forked chain.
[0046] In the specific embodiment of the present invention, since the purpose of the malicious end's attack is to make its own illegal transaction data effective in order to profit from it, most of the common attack types belong to the attack method based on the longest chain main chain determination method, for example Double spend attack. In o...
Embodiment 3
[0062] Figure 4 A schematic structural diagram of a device for determining the main chain of a block chain provided by Embodiment 3 of the present invention. This embodiment is applicable to the case where a fork chain is generated in the block chain and the main chain is determined. The device can realize any The method for determining the blockchain main chain described in the embodiment. Specifically, the device includes:
[0063] The block weight determination module 410 is used to determine the weight of each block in each forked chain if it is detected that there are at least two forked chains in the blockchain;
[0064] The forked chain weight determination module 420 is used to determine the weight of each forked chain according to the weights of the blocks contained in each forked chain;
[0065] The main chain determination module 430 is configured to determine the main chain from the forked chains according to the weight of each forked chain, and roll back the fo...
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