CN109977166A - A kind of block chain common recognition mechanism - Google Patents
A kind of block chain common recognition mechanism Download PDFInfo
- Publication number
- CN109977166A CN109977166A CN201910123323.2A CN201910123323A CN109977166A CN 109977166 A CN109977166 A CN 109977166A CN 201910123323 A CN201910123323 A CN 201910123323A CN 109977166 A CN109977166 A CN 109977166A
- Authority
- CN
- China
- Prior art keywords
- miner
- block chain
- block
- node
- mod
- 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.)
- Granted
Links
Landscapes
- Storage Device Security (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A kind of block chain common recognition mechanism, including block chain public affairs chain, block chain public affairs chain is equipped with miner and verifying node, miner is the node for participating in out block registered in block chain public affairs chain, miner after verifying nodes records registration, node is verified with queue format management miner, node is verified by being calculated as new miner and generates miner's number.Block chain common recognition mechanism provided by the invention, a node is obtained by random selection mechanism, solves the problems, such as miner's centralization in block chain, calculation method is simple, improves out block efficiency, and it is short to calculate the time, resource consumption is few, it is random to generate miner's number, DDOS attack difficulty height is improved, internet security is enhanced.
Description
Technical field
The present invention relates to block chain technical field, specifically a kind of block chain common recognition mechanism.
Background technique
Existing block chain common recognition mostly uses POW scheme (proof of work), and POW scheme is one satisfactory
Block Hash is made of N number of leading zero, and zero number depends on the difficulty value of network, and to obtain reasonable Block Hash needs
To attempt to calculate by a large amount of, calculate the Hash operation speed that the time depends on machine, when some node provide one rationally
Block hash value, illustrate the node really and have passed through it is a large amount of attempt to calculate, certainly, can not obtain the exhausted of calculation times
To value, because finding reasonable hash is a probability event.When node possesses the calculation power for accounting for the whole network n%, which has n/
100 probability finds Block Hash, and therefore, the calculation power of node is higher, and the probability for obtaining Block Hash is higher, in use
Block is concentrated to the high node of power is calculated out, leads to the presence of serious centralization in block chain network.
Due to the maximum block size limit of POW scheme 1MB in use process, the confirmation that each block has about 10 minutes is prolonged
(depend on average transaction size) late, maximum trading volume is only 7 times/second (TPS), and 7TPS is obviously unable to satisfy upper-layer service and needs
It asks;And huge energy consumption, such as: bit coin network consumes the electric power of about 25.5 gigawatts (GW) every year at present, entire Hibernian
Electricity consumption is only 3.1 gigawatts, and Austrian electricity consumption is 8.2 gigawatts, and the electric energy of bit coin network consumption is considerably beyond small-sized state
The whole electricity consumption of family, and in the past year, too kilowatt hour (TWH) number of bit coin network consumption increases 413.37%.Therefore
Improve transaction rate, the saving energy becomes block chain network and has to solve the problems, such as.
Summary of the invention
The object of the present invention is to provide a kind of block chain common recognition mechanism, can solve miner's centralization problem in block chain.
In order to achieve the above object, the mechanism the present invention adopts the following technical scheme: a kind of block chain is known together, including block chain
Public chain, block chain public affairs chain are equipped with miner and verifying node, and miner is the node for participating in out block registered in block chain public affairs chain, is tested
Miner after demonstrate,proving nodes records registration, verifying node are verified node by calculating and are generated miner's volume with queue format management miner
Number.
Preferably, verifying node is selected next miner by stochastic selection algorithm and is numbered.
Preferably, the stochastic selection algorithm realizes that process is as follows:
Miner's sum in block chain public affairs chain is obtained, the value of miner's sum is m, and m is the positive integer that minimum is 16;
Newest block number is obtained, newest block number is n, and n is the integer that minimum is 0;
The random character in the cryptographic Hash character string of newest block is obtained as modulus, when the random character is 0, to be taken word
As modulus after symbol plus 1, the modulus is mod;;
Miner's range is c, is obtained by block number n and modulus calculation mod;
Miner's range boundary is s, is obtained by miner's sum m and modulus calculation mod;
The last one range mathematics of miner is r;It is calculated and is obtained by new district block number n and miner's range boundary s;
Miner's number is k, the calculation method of k value are as follows: k=c × s+r.
Preferably, the numerical value of miner's range c is remainder of the n divided by mod.
Preferably, the numerical value of miner's range boundary is quotient integer part of the m divided by mod.
Preferably, the numerical value of the last one range mathematics of miner r is remainder of the n divided by s result.
Preferably, modulus mod is the random character in newest block cryptographic Hash character string.
Preferably, modulus mod is the 20th byte in newest block cryptographic Hash character string.
Preferably, the block chain common recognition mechanism is applied in block chain network.
Compared with prior art, the present invention has the following advantages and beneficial effects: selecting one by chance mechanism proof
A node solves the problems, such as miner's centralization in block chain;Calculation method is simple, improves out block efficiency;And when calculating
Between it is short, resource consumption is few;It is random to generate miner's number, DDOS attack difficulty height is improved, internet security is enhanced.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of block chain common recognition system provided by the invention.
Specific embodiment
The technical scheme of the present invention will be explained in further detail below.
A kind of block chain common recognition mechanism, including block chain public affairs chain, block chain public affairs chain are equipped with miner and verifying node, miner
For the node for participating in out block registered in block chain public affairs chain, the miner after nodes records are registered is verified, verifies node with queue shape
Formula manages miner, and verifying node generates miner's number by calculating.
A kind of block chain common recognition mechanism provided by the invention, as shown in Figure 1, specific as follows:
Step 1, the validity for verifying new block.
Interdependent node information, verifying node audit section are inputted by verifying node in the node that block chain public affairs chain participates in out block
Point information passes through verifying after passing through, and the Node registry for participating in out block is new miner.
Step 2, management miner.
Nodes records miner is verified, and is queued up miner by registration sequencing.
Step 3 selects miner's number by stochastic selection algorithm.
Miner's sum in block chain public affairs chain is obtained, the value of miner's sum is m, and m is the positive integer that minimum is 16;
Newest block number is obtained, newest block number is n, and n is the integer that minimum is 0;
The random character in the cryptographic Hash character string of newest block is obtained as modulus, when the random character is 0, to be taken word
As modulus after symbol plus 1, the modulus is mod;;
Miner's range is c, and the numerical value of c is remainder of the n divided by mod;
Miner's range boundary is s, and the numerical value of s is number integer part of the m divided by mod quotient;
The last one range mathematics of miner is r, and the numerical value of r is remainder of the n divided by s result;
Miner's number is k, the calculation method of k are as follows: k=c × s+r.
Embodiment 1
The Node registry for participating in out block is the miner of block chain public affairs chain, verifies the new miner of nodes records, and miner is discharged into team
In column, verifying node, which obtains, to be dug in mine chain in miner's sum m, newest block number n and newest block cryptographic Hash character string
20th character is as modulus mod, using n divided by the remainder of mod as miner range c, by taking m divided by the number integer of mod quotient
Part determines miner range boundary s, and using n divided by the remainder of s result as the last one miner range mathematics r, pass through public affairs
Miner number k is calculated in formula k=c × s+r, finally assigns k value obtained to new miner.
Block chain common recognition mechanism provided by the invention selects a node by chance mechanism proof, solves block chain
The problem of middle miner's centralization, calculation method is simple, improves out block efficiency, and the calculating time is short, resource consumption is few, at random
Miner's number is generated, DDOS attack difficulty height is improved, enhances internet security.
Claims (9)
- The mechanism 1. a kind of block chain is known together, including block chain public affairs chain, the block chain public affairs chain are equipped with miner and verifying node, Be characterized in that: the miner is the node for participating in out block registered in block chain public affairs chain, verifying nodes records miner's number, institute Verifying node is stated with queue format management miner, the verifying node generates miner's number by calculating.
- The mechanism 2. block chain according to claim 1 is known together, it is characterised in that: the verifying node is calculated by random selection Method obtains next miner's number.
- The mechanism 3. block chain according to claim 2 is known together, it is characterised in that: the stochastic selection algorithm realizes process such as Under:Miner's sum in block chain public affairs chain is obtained, the value of miner's sum is m, and m is the positive integer that minimum is 16;Newest block number is obtained, newest block number is n, and n is the integer that minimum is 0;The random character in the cryptographic Hash character string of newest block is obtained as modulus, when the random character is 0, to be taken word As modulus after symbol plus 1, the modulus is mod;Miner's range is c, is obtained by block number n and modulus calculation mod;Miner's range boundary is s, is obtained by miner's sum m and modulus calculation mod;The last one range mathematics of miner is r;It is calculated and is obtained by new district block number n and miner's range boundary s;Miner's number is k, the calculation method of k value are as follows: k=c × s+r.
- The mechanism 4. block chain according to claim 3 is known together, it is characterised in that: the numerical value of miner's range c be n divided by The remainder of mod.
- The mechanism 5. block chain according to claim 3 is known together, it is characterised in that: the numerical value of miner's range boundary s is m Divided by quotient's round numbers part of mod.
- The mechanism 6. block chain according to claim 3 is known together, it is characterised in that: the last one range mathematics of miner r Numerical value be n divided by s result remainder.
- 7. according to any block chain common recognition mechanism of claim 3 to 6, it is characterised in that: the modulus mod is most new district Random character in block cryptographic Hash character string.
- 8. according to any block chain common recognition mechanism of claim 3 to 6, it is characterised in that: the modulus mod is most new district The 20th byte in block cryptographic Hash character string.
- The mechanism 9. block chain according to claim 1 is known together, it is characterised in that: the block chain common recognition mechanism is applied to area In block chain network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910123323.2A CN109977166B (en) | 2019-02-18 | 2019-02-18 | Block chain consensus mechanism |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910123323.2A CN109977166B (en) | 2019-02-18 | 2019-02-18 | Block chain consensus mechanism |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109977166A true CN109977166A (en) | 2019-07-05 |
CN109977166B CN109977166B (en) | 2022-12-20 |
Family
ID=67077111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910123323.2A Active CN109977166B (en) | 2019-02-18 | 2019-02-18 | Block chain consensus mechanism |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109977166B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769028A (en) * | 2019-09-10 | 2020-02-07 | 陕西优米数据技术股份有限公司 | Pattern authorization consensus system and method based on block chain technology |
CN111683120A (en) * | 2020-05-22 | 2020-09-18 | 哈尔滨工程大学 | Alliance node storage method supporting dynamic change of verification node |
CN112967148A (en) * | 2021-03-30 | 2021-06-15 | 电子科技大学长三角研究院(衢州) | Novel block chain consensus mechanism for intelligent Internet of things computing power service |
WO2022068637A1 (en) * | 2020-09-30 | 2022-04-07 | 东南大学 | Satellite-based block chain architecture |
CN114650289A (en) * | 2020-12-02 | 2022-06-21 | 王志诚 | Method and device for block chain consensus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080109501A1 (en) * | 2006-11-06 | 2008-05-08 | Atmel Corporation | Modular multiplication method with precomputation using one known operand |
CN102521653A (en) * | 2011-11-23 | 2012-06-27 | 河海大学常州校区 | Biostimulation neural network device and method for jointly rescuing by multiple underground robots |
US20160321654A1 (en) * | 2011-04-29 | 2016-11-03 | Stephen Lesavich | Method and system for storage and retrieval of blockchain blocks using galois fields |
CN109087105A (en) * | 2018-08-31 | 2018-12-25 | 深圳付贝科技有限公司 | For digging the Hash Search method of mine, digging mine machine and block catenary system |
CN109191197A (en) * | 2018-08-24 | 2019-01-11 | 陕西优米数据技术有限公司 | Video passenger flow statistical analysis based on block chain technology |
CN109242299A (en) * | 2018-08-31 | 2019-01-18 | 深圳付贝科技有限公司 | Distribution digs mine method, digs mine machine and block catenary system |
-
2019
- 2019-02-18 CN CN201910123323.2A patent/CN109977166B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080109501A1 (en) * | 2006-11-06 | 2008-05-08 | Atmel Corporation | Modular multiplication method with precomputation using one known operand |
US20160321654A1 (en) * | 2011-04-29 | 2016-11-03 | Stephen Lesavich | Method and system for storage and retrieval of blockchain blocks using galois fields |
CN102521653A (en) * | 2011-11-23 | 2012-06-27 | 河海大学常州校区 | Biostimulation neural network device and method for jointly rescuing by multiple underground robots |
CN109191197A (en) * | 2018-08-24 | 2019-01-11 | 陕西优米数据技术有限公司 | Video passenger flow statistical analysis based on block chain technology |
CN109087105A (en) * | 2018-08-31 | 2018-12-25 | 深圳付贝科技有限公司 | For digging the Hash Search method of mine, digging mine machine and block catenary system |
CN109242299A (en) * | 2018-08-31 | 2019-01-18 | 深圳付贝科技有限公司 | Distribution digs mine method, digs mine machine and block catenary system |
Non-Patent Citations (3)
Title |
---|
CHARLES WRIGHT ET AL.: "Crypto Crumple Zones: Enabling Limited Access without Mass Surveillance", 《2018 IEEE EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY (EUROS&P)》 * |
王丹妮: "比特币的公平支付及监管问题的研究", 《中国优秀硕士学位论文全文数据库 经济与管理科学辑》 * |
裴英剑 等: "区块链技术在场外衍生品市场的应用场景设计", 《中国证券期货》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769028A (en) * | 2019-09-10 | 2020-02-07 | 陕西优米数据技术股份有限公司 | Pattern authorization consensus system and method based on block chain technology |
CN110769028B (en) * | 2019-09-10 | 2022-04-15 | 陕西优米数据技术股份有限公司 | Pattern authorization consensus system and method based on block chain technology |
CN111683120A (en) * | 2020-05-22 | 2020-09-18 | 哈尔滨工程大学 | Alliance node storage method supporting dynamic change of verification node |
WO2022068637A1 (en) * | 2020-09-30 | 2022-04-07 | 东南大学 | Satellite-based block chain architecture |
CN114650289A (en) * | 2020-12-02 | 2022-06-21 | 王志诚 | Method and device for block chain consensus |
CN114650289B (en) * | 2020-12-02 | 2023-04-14 | 王志诚 | Method and device for block chain consensus |
CN112967148A (en) * | 2021-03-30 | 2021-06-15 | 电子科技大学长三角研究院(衢州) | Novel block chain consensus mechanism for intelligent Internet of things computing power service |
CN112967148B (en) * | 2021-03-30 | 2024-02-20 | 电子科技大学长三角研究院(衢州) | Block chain consensus mechanism for intelligent Internet of things computing service |
Also Published As
Publication number | Publication date |
---|---|
CN109977166B (en) | 2022-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109977166A (en) | A kind of block chain common recognition mechanism | |
CN108711052B (en) | Information verification system based on block chain | |
Huang et al. | Building redactable consortium blockchain for industrial Internet-of-Things | |
CN110517139B (en) | Voting mechanism-based alliance block chain power sharing consensus method | |
CA3037833C (en) | System and method for information protection | |
US10819505B2 (en) | System and method for information protection | |
TWI684100B (en) | Consensus system and method for public distributed ledgers | |
CN110351067B (en) | Block chain consensus method for master-slave multi-chains | |
CN106910051A (en) | A kind of DNS resource record notarization method and system based on alliance's chain | |
CN107067242A (en) | Difficulty value creation method in a kind of block chain generating process | |
CN108600161A (en) | A kind of fair efficient block chain common recognition method | |
CN107181797A (en) | The block compression method and system of a kind of block chain | |
CN110223067B (en) | Under-chain one-to-many payment method and system with decentralized characteristic | |
CN110298641B (en) | Rule updating method and device for block chain, block chain node and network | |
CN110365481A (en) | The optimization of the close SM2 algorithm of state is accelerated to realize system and method | |
CN112966048A (en) | Block chain consensus method | |
Chen et al. | On the construction of a post-quantum blockchain | |
CN113939821A (en) | System and method for non-parallel mining on a workload justification blockchain network | |
CN108564365B (en) | Intelligent power grid transaction method and system based on block chain | |
Blum et al. | Superlight–A permissionless, light-client only blockchain with self-contained proofs and BLS signatures | |
CN109104444B (en) | Electronic signature method based on block chain | |
CN114362962B (en) | Block chain workload evidence generation method | |
Wang et al. | Block proposer election method based on verifiable random function in consensus mechanism | |
AU2019101581A4 (en) | System and method for information protection | |
CN109360096A (en) | A kind of bookkeeping methods and system of the privately owned chain based on publicly-owned 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 |