CN110210967A - A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system - Google Patents

A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system Download PDF

Info

Publication number
CN110210967A
CN110210967A CN201810164601.4A CN201810164601A CN110210967A CN 110210967 A CN110210967 A CN 110210967A CN 201810164601 A CN201810164601 A CN 201810164601A CN 110210967 A CN110210967 A CN 110210967A
Authority
CN
China
Prior art keywords
block
miner
block chain
encapsulation
pos
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.)
Pending
Application number
CN201810164601.4A
Other languages
Chinese (zh)
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.)
Chengdu Hi Tech Information Technology Research Institute
Original Assignee
Chengdu Hi Tech Information Technology Research Institute
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 Chengdu Hi Tech Information Technology Research Institute filed Critical Chengdu Hi Tech Information Technology Research Institute
Priority to CN201810164601.4A priority Critical patent/CN110210967A/en
Publication of CN110210967A publication Critical patent/CN110210967A/en
Pending legal-status Critical Current

Links

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of block chain POS of high speed, frequency conversion common recognition calculation method and systems, it is serious for current POW common recognition calculation method low efficiency, energy waste, emerging POS mechanism in principle again with existing POW distinguish it is too big, and make from existing POW to POS transition it is difficult the problems such as.This system is under conditions of keeping existing POW system constant to the overall structure of block encapsulation, excitation, block chain network constructs random space based on miner account's weight, selects next block encapsulation miner (ratio in random space is accounted for according to its weight) by the Hash calculation mapping obtained for counting to random space at random to block chain data;Meanwhile the rate of each block encapsulation depends entirely on the number of deals of current trading pit.Current POW can be made to seamlessly transit to POS by this system, and new POS is made to know together mechanism block chain with high speed and according to the ability of trading volume progress block frequency conversion encapsulation, and solve the transaction bottleneck problem faced in current block chain high concurrent application scenarios.

Description

A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system
Technical field
The present invention relates to block chain technical field more particularly to block chain common recognition calculating fields.
Background technique
The common recognition mechanism of block chain, i.e., which miner obtains the encapsulation power of next block in decision block chain network, is The core work mechanism of block chain is that block chain obtains decentralization feature, so that building has distributed security and data can The key point of communication network.It is born from bit coin to current mainstream block chain network such as ether mill, with proof of work (POW) as the core algorithm for obtaining common recognition.
POW knows together mechanism on the one hand due to a large amount of energy waste, keeps it more bigger stronger, right in today's society environmental consciousness Under conditions of environmental requirement is higher and higher, it appears more and more outdated;On the other hand, random due to superelevation difficulty to be calculated Number needs to take some time, so that the number of deals that accommodate its unit time can be severely limited, transaction effect Rate is extremely low, the popularization and use this greatly limits block chain to large capacity, big concurrent application scenarios.
POS machine system is the Main way for solving the problems, such as that POW mechanism is existing at present, due to no longer needing to calculate random number, Therefore can be realized simultaneously " green dig mine " (block encapsulation) and trading efficiency promoted, because due to by the great attention of industry and Extensive concern.But the most POS machine systems or mechanism too complex that occur at present or one with existing block chain A little core mechanisms, if the difference of block reward mechanism is excessive, so that it be made to be difficult to realize putting down from existing POW mechanism to POS machine It slips over and crosses.
There are several critical issues to need to solve into the smooth transition of POS machine system realizing from existing POW mechanism:
(1) fair, reasonably select block encapsulation competition and obtain as based on how association attributes of existing user (miner) Victor;
(2) how ensuring entire block chain when trading volume is big, network query function efficiency is able to satisfy the demand of high speed transaction, but The newly-increased block of whole network will not be brought excessive because of too frequent block encapsulation again simultaneously, so that network be made integrally to motivate It is excessive to issue additional miner's reward, brings the devaluation of network entirety reward points.
Summary of the invention
In view of this, the present invention devises a kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system, pass through This method and system can both possess the performance that the green that POS common recognition calculates digs mine, the transaction of high concurrent high efficiency is supported, can be with It realizes smooth transition of the existing mainstream block chain technology from POW to POS, while guaranteeing network high-speed transaction, uses frequency conversion The block of change encapsulates, and network entirety block packaging density is controlled in certain level.To achieve the above object, technology of the invention Scheme is achieved in that
As shown in Figure 1, designing a kind of high speed, the block chain POS common recognition method of frequency conversion, include the following steps:
The first step, miner is based on its block chain account's weight, by block chain about fixed cycle periodically to block chain network In digging pipe reason energy contract send miner's registering transaction;
Second step when new block generates, counts the random space size that the currently active registration miner is constituted, meter first It is as follows to calculate formula:
RspaceFor current random space, M (i)balanceFor account's weight of i miner, miner's sum is registered as n;
Third step carries out Hash calculation, and by Hash calculation based on the cryptographic Hash of current block number and previous block Byte data be converted to the random floating-point decimal r between 0~1float, rfloatDecimal place cannot be less than RspaceInteger-bit Size;
The random space calculated by (2) is multiplied by the 4th step with the random number that (3) obtain:
RSelMiner=Rspace×rfloat (2)
R obtainedSelMinerThe miner M (j) corresponding to random space reflectionbalanceI.e. selected by the encapsulation of this block In miner;
5th step, whether the miner that block encapsulation algorithm comparison (4) is chosen is this miner, if so, starting encapsulation region Block;
6th step, block encapsulates the number of transaction in algorithm statistics trading pit, and calculates number of deals in trading pit and account for transaction The ratio of pond top limit:
Trate=TPoolCount/Pmax (3)
7th step, block encapsulate time delay, control according to formula formula (4):
BMminmgDelay=TMaxDelay-TMaxDelav×Trate (4)
BminmgDelavTime delay, T are encapsulated for this blockMaxDelayTime delay is encapsulated for block maximum set by system;
8th step has encapsulated block to Web broadcast after block completes encapsulation;
9th step, remaining node receives encapsulated block after, by (2), (3), (4) step to block encapsulation miner carry out Verifying, if meeting, is added main chain for block, if not meeting, abandons the block.
As shown in Figure 1, miner's registration about fixed cycle can be using the incrementss of the block number of block chain as calculation basis, such as Arrange 100 blocks of every increase as a registration period or a set time such as one day and is used as a registration period.Using solid Fixed cycle user's registration is the real-time online in order to ensure user, so that it is guaranteed that power is calculated in the block encapsulation of network.
As shown in Figure 1, block encapsulates the selection of current miner, it is important that the calculating of random number.Random number Calculating, to guarantee two features simultaneously: (1) randomness, i.e. nobody can by calculate setting clearly set it is next Whom miner is;(2) certainty, due to the consistency that whole network to be guaranteed calculates, any miner and block verifier can be with According to current network data, identical current block encapsulation person is calculated according to determining mechanism.To realize the two features, The present invention is using the cryptographic Hash of current block number and previous block number as data source, the side generated using Hash calculation as random number Method.Hash calculation has the characteristics that following two: (1) determining that data source, cryptographic Hash calculated are determining;(2) data source is appointed One minor change, cryptographic Hash becomes entirely different, and its variation is spatial stochastically distribution.
As shown in Fig. 2, common recognition computing system following module by being made of: (1) miner's weight statistical module;(2) random number Generation module;;(3) miner's selecting module;(4) block encapsulates time-delay calculation module;(5) block package module;(6) encapsulation region Lump ore work authentication module.
These modules can also be combined presence, be adjusted according to practical application scene with individualism.
Detailed description of the invention
A kind of high speed of Fig. 1, frequency conversion block chain POS know together calculation method flow chart
A kind of high speed of Fig. 2, the block chain POS common recognition computing system of frequency conversion form figure
Specific embodiment
Hereinafter, this hair is described in detail for realizing the POS technology mechanism of high speed, frequency conversion based on ether mill technical system Bright implementation principle and preferred embodiment.
Miner is disposed in the network of ether mill registers intelligence and about MinerRegistry Contract, it is included in contract Structural body Miner structure it is as follows:
Meanwhile miner's array is established in contract, management registration miner's information.
The generating algorithm function of random number are as follows:
Block encapsulates the main computations of time delay function are as follows:
15 be block maximum packaging time 15 seconds, and txs is current trading pit number of deals, and 300 be trading pit maximum number of deals.
Block encapsulation verifying equally takes above-mentioned algorithm to carry out the verifying of miner and block encapsulation time delay, increases separately MinerVeryfy (coinbase) and BlockTimeVeryfy (blocknuber) function.
Explanation that the above description is only an embodiment of the present invention, is not intended to limit the scope of the present invention.It is all in this hair Any modification, equivalent replacement, improvement and so within bright spirit and principle, are included within the scope of protection of the present invention.
In conclusion the present invention is serious for current POW common recognition calculation method low efficiency, energy waste, emerging POS Mechanism in principle again with existing POW distinguish it is too big, thus make from existing POW to POS transition it is difficult the problems such as, devise one Kind high speed, the block chain POS common recognition calculation method of frequency conversion and system.It can be made currently by this method and system with POW common recognition machine Leading block chain is made as to being leading block chain smooth transition with POS, and makes new POS mechanism block chain of knowing together that there is height Speed and the ability that block frequency conversion encapsulation is carried out according to trading volume, on the one hand solve institute face in current block chain high concurrent application scenarios The transaction bottleneck faced, on the other hand to allow block overall package density domination in a reasonable level.

Claims (4)

  1. The calculation method 1. the block chain of a kind of high speed, frequency conversion is known together, it is characterised in that common recognition is calculated and comprised the following steps that
    (1) miner is based on its block chain account's weight, by block chain about digging mine of the fixed cycle timing into block chain network It manages intelligent contract and sends miner's registering transaction;
    (2) when new block generates, the random space size that the currently active registration miner is constituted is counted first, calculation formula is such as Under:
    RspaceFor current random space, M (i)balanceFor account's weight of i miner, miner's sum is registered as n;
    (3) based on the cryptographic Hash of current block number and previous block, Hash calculation is carried out, and by the byte number of Hash calculation According to the random floating-point decimal r be converted between 0~1float, rfloatDecimal place cannot be less than RspaceInteger-bit size;
    (4) the random space calculated by (2) is multiplied with the random number that (3) obtain:
    RSelMiner=Rspace×rfloat (2)
    R obtainedSelMinerThe miner M (j) corresponding to random space reflectionbalanceI.e. the encapsulation of this block is chosen Miner;
    (5) whether the miner that block encapsulation algorithm comparison (4) is chosen is this miner, if so, starting to encapsulate block;
    (6) number of transaction in block encapsulation algorithm statistics trading pit, and calculate number of deals in trading pit and account for trading pit maximum limit The ratio of volume:
    Trate=TPoolCount/Pmax (3)
    (7) block encapsulates time delay, controls according to formula formula (4):
    BMiningDelay=TMaxDelay-TMaxDelay×Trate (4)
    BMiningDelayTime delay, T are encapsulated for this blockMaxDelayTime delay is encapsulated for block maximum set by system;
    (8) after block completes encapsulation, block has been encapsulated to Web broadcast;
    (9) remaining node receives encapsulated block after, by (2), (3), (4) step to block encapsulation miner verify, if Meet, then main chain is added in block, if not meeting, abandons the block.
  2. The calculation method 2. POS of a kind of high speed as described in claim 1, frequency conversion knows together, it is characterised in that the about fixed cycle Using the incrementss of the block number of block chain as calculation basis, such as arrange 100 blocks of every increase as a registration period.
  3. The calculation method 3. POS of a kind of high speed as described in claim 1, frequency conversion knows together, it is characterised in that the random number Calculate, using the cryptographic Hash of current block number and previous block number be used as the foundation of Hash calculation, it is any main chain operation and with master Chain keeps synchronous node, is consistent using this method random number calculated.
  4. The computing system 4. the block chain POS of a kind of high speed, frequency conversion knows together, which is characterized in that the common recognition computing system includes Following module: (1) miner's weight statistical module;(2) random number generation module;;(3) miner's selecting module;(4) when block encapsulates Prolong computing module;(5) block package module;(6) encapsulation region lump ore work authentication module.
CN201810164601.4A 2018-02-28 2018-02-28 A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system Pending CN110210967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810164601.4A CN110210967A (en) 2018-02-28 2018-02-28 A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810164601.4A CN110210967A (en) 2018-02-28 2018-02-28 A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system

Publications (1)

Publication Number Publication Date
CN110210967A true CN110210967A (en) 2019-09-06

Family

ID=67778976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810164601.4A Pending CN110210967A (en) 2018-02-28 2018-02-28 A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system

Country Status (1)

Country Link
CN (1) CN110210967A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545170A (en) * 2019-09-16 2019-12-06 福建中科中欣智能科技有限公司 Block chain consensus method, device and equipment based on password drawing
CN113079179A (en) * 2021-04-15 2021-07-06 广州蚁比特区块链科技有限公司 Efficient block chain consensus method, system, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789908A (en) * 2016-11-23 2017-05-31 江苏通付盾科技有限公司 Block common recognition method for building up and system in block chain
CN107392770A (en) * 2017-08-09 2017-11-24 北京云知科技有限公司 A kind of random-number generating method and system based on block chain
US20170359374A1 (en) * 2016-06-11 2017-12-14 Lntel Corporation Blockchain System with Nucleobase Sequencing as Proof of Work

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170359374A1 (en) * 2016-06-11 2017-12-14 Lntel Corporation Blockchain System with Nucleobase Sequencing as Proof of Work
CN106789908A (en) * 2016-11-23 2017-05-31 江苏通付盾科技有限公司 Block common recognition method for building up and system in block chain
CN107392770A (en) * 2017-08-09 2017-11-24 北京云知科技有限公司 A kind of random-number generating method and system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
段希楠等: "区块链共识算法研究与趋势分析", 《科研信息化技术与应用》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545170A (en) * 2019-09-16 2019-12-06 福建中科中欣智能科技有限公司 Block chain consensus method, device and equipment based on password drawing
CN113079179A (en) * 2021-04-15 2021-07-06 广州蚁比特区块链科技有限公司 Efficient block chain consensus method, system, computer equipment and storage medium
CN113079179B (en) * 2021-04-15 2023-02-28 广州蚁比特区块链科技有限公司 Efficient block chain consensus method, system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
Wu et al. Portfolio planning of renewable energy with energy storage technologies for different applications from electricity grid
CN108491980A (en) Micro-capacitance sensor intelligent node trade decision method based on cloud sector block chain service platform
Xu et al. Blockchain-based trustworthy energy dispatching approach for high renewable energy penetrated power systems
CN107480847B (en) Energy source block chain network and virtual power plant operation and scheduling method based on network
Lin et al. Towards multistep electricity prices in smart grid electricity markets
CN107565557A (en) A kind of virtual accumulator cell charging and discharging management system of block chain
CN107681675A (en) Block chain electricity transaction peak-frequency regulation system based on distributed electric power storage facility
CN106296191A (en) A kind of PoW common recognition mechanism of block chain power-aware
Turgeon et al. An aggregation‐disaggregation approach to long‐term reservoir management
Jin et al. Environmental/economic power dispatch with wind power
CN104573875B (en) A kind of method of the power generating facilities and power grids optimization planning of low-carbon
CN108736471A (en) A kind of distributed power generation and electric power storage dig mine machine and dig mine mechanism
CN110210967A (en) A kind of high speed, the block chain POS common recognition calculation method of frequency conversion and system
CN107046301A (en) The layered multi-stage power grid regulation system and method for building load cluster
CN108681891A (en) A kind of Multiple Currencies tranaction costs collection methods based on block chain
CN107276065A (en) Monthly generation scheduling optimization and Security Checking method based on the load characteristic period
CN114971421A (en) Hydropower station operation risk management and control system based on block chain technology
CN109617099A (en) A kind of virtual energy storage coordinated control system and its method
Hu et al. Energy management strategy for a society of prosumers under the IOT environment considering the network constraints
CN111552573A (en) Block chain heterogeneous system and artificial intelligence computational power network
CN109587070B (en) Data aggregation method with privacy protection and load balancing functions in smart power grid
CN106549409A (en) Consider the receiving end electric network source planing method that extra-high voltage direct-current is accessed
CN115271453A (en) Urban raw water supply allocation path identification method and system and storable medium
CN110322079A (en) A kind of flow of power plan optimization method
Syu et al. AI-based electricity grid management for sustainability, reliability, and security

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190906

RJ01 Rejection of invention patent application after publication