Dynamic Hash computation method and device for block chain, node and storage medium

A hash calculation and hash algorithm technology, applied in the field of blockchain, can solve the problems of high stake nodes not participating in bookkeeping, long consensus cycle, waste of energy, etc., to shorten the calculation time, improve security problems, avoid effect of attack

Inactive Publication Date: 2018-09-07
南京思利华信息科技有限公司
View PDF6 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The biggest disadvantage of the POW consensus mechanism is that it consumes a lot of resources and wastes energy. In addition, the unbalanced computing power leads to a long consensus cycle. At the same time, the method of simply relying on machine computing power can easily lead to a 51% risk
In essence, the POS consensus mechanism still relies on computing power to increase the proportion of equity, and then obtain the right to bookkeeping, and it is easy to cause nodes with high equity not to participate in b

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic Hash computation method and device for block chain, node and storage medium
  • Dynamic Hash computation method and device for block chain, node and storage medium
  • Dynamic Hash computation method and device for block chain, node and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0043] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention will be described.

[0044] Tokens, in the embodiments of the present invention, refer to encrypted Internet currencies, which are distributed digital currencies based on cryptography, including Bitcoin, Ethereum, Litecoin and other similar derivative currencies.

[0045] Block (Block) is a storage unit, each block is linke...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a dynamic Hash computation method and a dynamic Hash computation device for a block chain, a node and a computer readable storage medium. The method comprises the following steps of acquiring an object to be subjected to Hash operation and the height of a block to be generated; converting the height into bytes, and performing the Hash operation on the bytes to acquire a first byte array of a bits; performing n-mode computation on the first m bits of the first byte array according to a preset number of running times m to acquire a second byte array of m bits, wherein n is the type number of preset Hash algorithms; and calling the corresponding Hash algorithm to perform the Hash operation on the object to be subjected to Hash operation according to the Hash algorithmcorresponding to each number and the order of the number in the second byte array, and judging whether the block can be generated according to a computation result. According to the method and deviceprovided by the invention, the Hash algorithm is dynamically generated according to the height of the block, and thus the security of the operation process is ensured.

Description

technical field [0001] The present invention relates to the field of block chains, in particular to a block chain-oriented dynamic hash calculation method, device, node and storage medium. Background technique [0002] The emergence of digital currency represented by Bitcoin indicates that blockchain technology has officially entered people's field of vision. Blockchain technology is essentially a decentralized distributed system. It is precisely because of this feature that the consensus mechanism has become a very critical technology in blockchain technology, that is, how to ensure that distributed nodes efficiently reach consensus on the effectiveness of point-to-point transactions and collaboration in a highly decentralized decentralized system . [0003] At present, widely used consensus mechanisms are based on proof of work (POW), based on proof of stake (POS), and so on. The POW consensus mechanism is the earliest consensus mechanism, which uses the computing power...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L9/06G06Q20/38
CPCG06Q20/3827H04L9/0643
Inventor 魏松杰莫冰刘才陈樟荣杨锋戴闽华
Owner 南京思利华信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products