CN109684798A - A kind of common recognition algorithm, equipment and storage medium based on publicly-owned block chain - Google Patents
A kind of common recognition algorithm, equipment and storage medium based on publicly-owned block chain Download PDFInfo
- Publication number
- CN109684798A CN109684798A CN201910008521.4A CN201910008521A CN109684798A CN 109684798 A CN109684798 A CN 109684798A CN 201910008521 A CN201910008521 A CN 201910008521A CN 109684798 A CN109684798 A CN 109684798A
- Authority
- CN
- China
- Prior art keywords
- operation person
- keeping operation
- book keeping
- block
- common recognition
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Abstract
The invention discloses a kind of common recognition algorithm, equipment and storage mediums based on publicly-owned block chain, wherein the algorithm includes: the current block height for obtaining block chain, and judges whether to meet according to block height and choose book keeping operation person's selection condition;If meeting book keeping operation person chooses condition, obtains the list of the whole network host node and choose host node addition book keeping operation person's candidate list that line duration in list is greater than preset number of days;Node in book keeping operation person's candidate list is ranked up;N number of node is randomly choosed in book keeping operation person's candidate list after sequence as book keeping operation person;N number of book keeping operation person produces block in turn;N number of book keeping operation person repeats the above steps after completing a wheel block production.The invention enables the requirements that the common recognition algorithm of publicly-owned block chain can meet safety, decentralization and performance simultaneously.
Description
Technical field
The present invention relates to block chain technical field more particularly to a kind of common recognition algorithm based on publicly-owned block chain, equipment and
Storage medium.
Background technique
The existing publicly-owned block chain representative of typical case has bit coin, ether mill, EOS, bit stock, common recognition algorithm used by them
It is POW (Proof of Work), DPOS (Delegated Proof of Stake) type respectively.
Using POW common recognition algorithm, this common recognition algorithm advantage is the work of complete decentralization for bit coin, ether mill
, at high cost mode, each node can generate block, bring apparent disadvantage simultaneously in this way: 1), book keeping operation person needs to consume
Take a large amount of hardware, power cost to produce block, investment will generally reach up to ten million;2), low efficiency, it is per second to handle transaction data
Only 7 or so, such trading volume is unable to satisfy the requirement of many business block chain application software completely.
EOS is using DPOS common recognition algorithm, and this common recognition algorithm advantage is that processing trading volume speed is fast, and processing per second is handed over
Easily amount can reach 2000 or so.In order to reach this requirement, using the working method of half decentralization, pass through vote
21 super nodes are taken out, generate block by them.This common recognition algorithm shortcomings: 1), the decentralization of publicly-owned chain has been violated
Spirit;2) it, is subject to DDOS attack, as long as attacking this 21 super nodes, then entire block chain network will be unable to produce
Raw block, leads to not work normally;3), hardware configuration requires very high, and the price of every server of super node is even wanted
Up to hundreds of thousands yuan;4), EOS not fully belongs to publicly-owned chain, a kind of chain between publicly-owned chain and alliance's chain.
What bit stock used is also DPOS common recognition algorithm, it is very similar with the DPOS common recognition algorithm of EOS.Difference exists
In, being taken out by vote is 101 common recognition nodes, others be substantially it is the same, therefore it the shortcomings that and EOS it is also basic
It is identical.
I.e. existing common recognition algorithm cannot meet the requirement of safety, decentralization and performance simultaneously.
Therefore, there are also to be developed for the prior art.
Summary of the invention
Place in view of above-mentioned deficiencies of the prior art, it is an object of the invention to propose a kind of being total to based on publicly-owned block chain
Know algorithm, equipment and storage medium, it is intended to enable the common recognition algorithm of publicly-owned block chain meet simultaneously safety, decentralization and
The requirement of performance.
To achieve the above object, this invention takes following technical schemes:
A kind of common recognition algorithm based on publicly-owned block chain, wherein include the following steps:
S10 obtains the current block height of block chain, and judges whether to meet according to block height and choose book keeping operation person's selection
Condition;
S20 obtains the list of the whole network host node and chooses line duration in list and be greater than if meeting book keeping operation person chooses condition
Book keeping operation person's candidate list is added in the host node of preset number of days;
S30 is ranked up the node in book keeping operation person's candidate list;
S40 randomly chooses N number of node as book keeping operation person in book keeping operation person's candidate list after sequence;
S50, N number of book keeping operation person produce block in turn;
S60, N number of book keeping operation person repeat step S10 to S60 after completing a wheel block production.
Preferably, the preset number of days is more than or equal to 3 days;The N is the odd number between 9 to 21.
Preferably, the book keeping operation person chooses the judgment step of condition are as follows:
S11, with the current block height of block chain to N complementation;
S12 is judged as if complementation result is 0 and meets selection condition;
S13 is judged as if complementation result is not 0 and is unsatisfactory for selection condition.
Preferably, the host node in described pair of book keeping operation person's candidate list is ranked up is arranged from high to low using score value
The calculating of sequence, the score value includes the following steps:
S31 generates the HASH of a SAH256 with two data of time of host node mortgage address, the newest block of current chain
Value, the host node mortgage address are generated with public key by Base58;
S32,4 bytes every to the HASH value are transmitted to conversion function for HASH value as one piece of data, by the segment data
Convert 32 integer datas;
S33 repeats step S32, until complete HASH data of conversion, obtains the array for being converted to 32 integers,
Each integer of this array is added again to obtain final 256 integer, using 256 integers as the score of host node
Value.
It is preferably, described that N number of node is randomly choosed in book keeping operation person's candidate list as book keeping operation person's selecting step are as follows:
S41 upsets book keeping operation person's candidate list with Xorshift random algorithm;
S42 takes top n node as book keeping operation person after upsetting in book keeping operation person's candidate list;
Preferably, the Xorshift random algorithm is upset book keeping operation person's candidate list and is included the following steps:
S411 generates one 64 bit constant K, the constant K and got by three input factor operations, is respectively: one is appointed
Index i, a fixed number K2 for an exchangeable object in meaning integer k 1, book keeping operation person's candidate list;
S412, to constant K itself different parts shift, exclusive or, then do multiplying, make the number become one with
Machine number and obtain randomness;
S413, with random number to fixed number K2 complementation, complementation result adds i to obtain another index j;
S414, will index i, and the corresponding object of j swaps;
S415 recycles above-mentioned steps, until exchanging complete book keeping operation person's candidate list.
Preferably, further include the verifying of block, verification step is as follows:
S71 judges whether nBits, nNonce in block are zero;If be not zero, refuse this block, under otherwise continuing
Face step;
S72 obtains local zone time, subtracts the time in block with local zone time, whether judging result is greater than negative " production block
Otherwise below step is continued if it does, refusing this block in interval time+n second ", n >=2;
S73, with the signature value in the mortgage address validation block of the host node in block, verifying does not pass through, and refuses this area
Otherwise block continues below step;
S74, if node is currently at the synchronous block stage, directly so far verifying is completed, and otherwise continues below step;
S75 is subtracted with the time in block and is chosen N number of book keeping operation person's recorded time, obtained result again divided by production block when
Between be spaced, the result obtained after removing again to N complementation, thus obtain one index;
S76 is found the mortgage address of host node in local N number of book keeping operation person's list by the index, whether judges it
Equal to the mortgage address of the host node in block, if unequal, refuses this block, otherwise receive this block.
The present invention also proposes a kind of common recognition equipment based on publicly-owned block chain, wherein being total to based on publicly-owned block chain
Know equipment to include memory, processor and storage in the memory and be configured as the computer executed by the processor
Program realizes above-mentioned common recognition algorithm when the processor executes the computer program.
The present invention also proposes a kind of computer readable storage medium, which is characterized in that the computer readable storage medium
In be stored with computer program, the computer program, which is performed, realizes above-mentioned common recognition algorithm.
Common recognition algorithm, equipment and storage medium based on publicly-owned block chain of the invention, by host node list with
Machine chooses N number of node as book keeping operation person, and N number of book keeping operation person randomly selects book keeping operation person after the completion of producing block in turn again again, so that
The common recognition algorithm of publicly-owned block chain can meet the requirement of safety, decentralization and performance simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the flow diagram of the common recognition algorithm first embodiment the present invention is based on publicly-owned block chain;
Fig. 2 is the flow diagram that book keeping operation person chooses condition judgement in the common recognition algorithm the present invention is based on publicly-owned block chain;
Fig. 3 is the flow diagram that host node score value calculates in book keeping operation person's candidate list of the present invention;
Fig. 4 is the flow diagram that book keeping operation person is randomly selected in book keeping operation person's candidate list of the present invention;
Fig. 5 is the flow diagram that random algorithm of the present invention upsets book keeping operation person's candidate list;
Fig. 6 is the flow diagram of block verifying in the common recognition algorithm the present invention is based on publicly-owned block chain.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is the process of the common recognition algorithm the present invention is based on publicly-owned block chain, include the following steps:
S10 obtains the current block height of block chain, and judges whether to meet according to block height and choose book keeping operation person's selection
Condition;
S20 obtains the list of the whole network host node and chooses line duration in list and be greater than if meeting book keeping operation person chooses condition
Book keeping operation person's candidate list is added in the host node of preset number of days;
S30 is ranked up the node in book keeping operation person's candidate list;
S40 randomly chooses N number of node as book keeping operation person in book keeping operation person's candidate list after sequence;
S50, N number of book keeping operation person produce block in turn;
S60, N number of book keeping operation person repeat step S10 to S60 after completing a wheel block production.
As an implementation, the host node of the embodiment of the present invention is the infrastructure of the publicly-owned chain network of SAFE, is established
Condition only need to mortgage 1000 SAFE, while needing a Cloud Server longtime running node procedure.As needed for construction
Cloud Server configuration only needs 4 core CPU, 8G memories, 1T hard disk, 5M bandwidth and 1000 SAFE, such cost everyone
It can bear, therefore everyone could set up host node, the range for so randomly choosing book keeping operation person is bigger, meets publicly-owned
The requirement of the decentralization of chain.
Preferably, the present invention is based on preset number of days described in the common recognition algorithm of publicly-owned block chain to be more than or equal to 3 days;The N
For the odd number between 9 to 21.N be more than know together after 21 algorithm the common recognition time it is longer, the processing speed of shadow trading volume is fast.
By odd number of the N control between N is 9 to 21, so that the common recognition based on publicly-owned block chain of the embodiment of the present invention is calculated
The common recognition time that method generates within the scope of one suitable, trading processing performance with higher.
By taking N value is 9 i.e. N=9 as an example, the embodiment of the present invention produce block gap be 10 seconds block, a block sizes most
Greatly 2M, with each transaction size for 300 bytes, per second to handle transaction about 700 or so, processing speed is fast, effect
Rate is high.
As shown in Fig. 2, the book keeping operation person of the embodiment of the present invention chooses the judgment step of condition are as follows:
S11, with the current block height of block chain to N complementation;
S12 is judged as if complementation result is 0 and meets selection condition;
S13 is judged as if complementation result is not 0 and is unsatisfactory for selection condition.
It is chosen in condition deterministic process in specific book keeping operation person, it, can be in two kinds of situation by taking N=9 as an example:
1), when program starts
Program starting when and synchronized good host node data, do following steps;
With newest block height to N=9 complementation, if complementation result is 0, according to the step S20-S40 in overall procedure
Choose 9 book keeping operation persons;
If complementation result is not 0, backward open search, until block height to 9 complementation results be 0 when, according to step
Rapid S20-S40 chooses 9 book keeping operation persons;
2), in program operation
After receiving a new block and upchecking, with block chain height to N=9 complementation, if complementation result
Not equal to 0, then do not deal with;
If complementation result is equal to 0,9 book keeping operation persons are chosen according to the step S20-S40 in overall procedure.
Common recognition algorithm of the embodiment of the present invention based on publicly-owned block chain due to book keeping operation person be randomly selected from host node, and
Next group book keeping operation person is randomly selected again after the completion of a wheel block production every time, therefore meets the needs of decentralization, can be reduced
DDOS attack risk, it is highly-safe, while being able to satisfy the demand of the fast performance of trading volume processing speed.
Common recognition algorithm of the embodiment of the present invention based on publicly-owned block chain is advantageous in that relative to POW common recognition algorithm: it is at low cost,
It does not need to put into a large amount of hardware, power cost, everyone can become book keeping operation person;High-efficient, compare bit coin, ether
Mill handles transactions velocity faster.
Common recognition algorithm of the embodiment of the present invention based on publicly-owned block chain relative to DPOS common recognition algorithm be advantageous in that: due to
Machine chooses book keeping operation person, is more in line with decentralization spirit, and safety ratio DPOS common recognition algorithm is higher, can reduce DDOS attack wind
Danger;It is at low cost, it does not need to put into a large amount of hardware cost, everyone can become book keeping operation person;
Therefore, the common recognition algorithm based on publicly-owned block chain of the embodiment of the present invention is a kind of efficient publicly-owned chain common recognition calculation
Method can satisfy decentralization marrow, while also ensure safety, improve processing trading volume per second.
Specifically, in the embodiment of the present invention, the host node in described pair of book keeping operation person's candidate list is ranked up using score
Value is ranked up from high to low, as shown in figure 3, the calculating of the score value includes the following steps:
S31 generates the HASH of a SAH256 with two data of time of host node mortgage address, the newest block of current chain
Value, the host node mortgage address are generated with public key by Base58;
S32,4 bytes every to the HASH value are transmitted to conversion function for HASH value as one piece of data, by the segment data
Convert 32 integer datas;Conversion function can be le32toh function.
S33 repeats step S32, until complete HASH data of conversion, obtains the array for being converted to 32 integers,
Each integer of this array is added again to obtain final 256 integer, using 256 integers as the score of host node
Value.
As an implementation, as shown in figure 4, the embodiment of the present invention randomly choosed in book keeping operation person's candidate list it is N number of
Node is as book keeping operation person's selecting step are as follows:
S41 upsets book keeping operation person's candidate list with Xorshift random algorithm;
S42 takes top n node as book keeping operation person after upsetting in book keeping operation person's candidate list;
The mode that the embodiment of the present invention randomly selects book keeping operation person is able to satisfy the requirement of decentralization.
Specifically, as shown in figure 5, the Xorshift random algorithm upsets book keeping operation person's candidate list includes the following steps:
S411 generates one 64 bit constant K, the constant K and got by three input factor operations, is respectively: one is appointed
Index i, a fixed number K2 for an exchangeable object in meaning integer k 1, book keeping operation person's candidate list;
S412, to constant K itself different parts shift, exclusive or, then do multiplying, make the number become one with
Machine number and obtain randomness;
S413, with random number to fixed number K2 complementation, complementation result adds i to obtain another index j;
S414, will index i, and the corresponding object of j swaps;
S415 recycles above-mentioned steps, until exchanging complete book keeping operation person's candidate list.
As shown in fig. 6, the common recognition algorithm based on publicly-owned block chain of the embodiment of the present invention further includes the verifying of block, verifying
Steps are as follows:
S71 judges whether nBits, nNonce in block are zero;If be not zero, refuse this block, under otherwise continuing
Face step;
S72 obtains local zone time, subtracts the time in block with local zone time, whether judging result is greater than negative " production block
Otherwise below step is continued if it does, refusing this block in interval time+n second ", n >=2;
S73, with the signature value in the mortgage address validation block of the host node in block, verifying does not pass through, and refuses this area
Otherwise block continues below step;
S74, if node is currently at the synchronous block stage, directly so far verifying is completed, and otherwise continues below step;
S75 is subtracted with the time in block and is chosen N number of book keeping operation person's recorded time, obtained result again divided by production block when
Between be spaced, the result obtained after removing again to N complementation, thus obtain one index;
S76 is found the mortgage address of host node in local N number of book keeping operation person's list by the index, whether judges it
Equal to the mortgage address of the host node in block, if unequal, refuses this block, otherwise receive this block.
The present invention also proposes a kind of common recognition equipment based on publicly-owned block chain, should the common recognition equipment packet based on publicly-owned block chain
It includes memory, processor and storage in the memory and is configured as the computer program executed by the processor, institute
When stating the processor execution computer program, above-mentioned common recognition algorithm is realized.Such as the common recognition algorithm of S10-S60 step.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the asynchronous message processing terminal equipment.
The common recognition equipment may include, but are not limited to processor, memory.It will be understood by those skilled in the art that above-mentioned
Component is only based on the example of the common recognition equipment of publicly-owned block chain, does not constitute to the common recognition equipment based on publicly-owned block chain
Limit, may include perhaps combine certain components or different components than above-mentioned more or fewer components, such as based on
The common recognition equipment of publicly-owned block chain can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Dig ita l Sig na l Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is the control centre of the common recognition equipment based on publicly-owned block chain, utilizes various interfaces and connection
The various pieces of common recognition equipment entirely based on publicly-owned block chain.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of equipment.The memory can mainly include storing program area and storage data area, wherein storing program area can deposit
Application program (such as sound-playing function, image player function etc.) needed for storing up operating system, at least one function etc.;Storage
Data field can be stored according to using created data (such as audio data, phone directory etc.) etc..In addition, memory may include
High-speed random access memory can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent storage
Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), extremely
A few disk memory, flush memory device or other volatile solid-state parts.
The present invention also proposes a kind of computer readable storage medium, and calculating is stored in the computer readable storage medium
Machine program, the computer program, which is performed, realizes above-mentioned common recognition algorithm.
If module/unit of the common recognition algorithm integration based on publicly-owned block chain of the invention is with the shape of SFU software functional unit
Formula realize and when sold or used as an independent product, can store in a computer readable storage medium.This hair
Bright computer readable storage medium specific embodiment and the above-mentioned basic phase of each embodiment of common recognition algorithm based on publicly-owned block chain
Together, details are not described herein.
It should be noted that embodiments described above is only schematical, wherein described be used as separate part description
Unit may or may not be physically separated, component shown as a unit may or may not be
Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, embodiment provided by the invention is attached
In figure, the connection relationship between module indicates there is communication connection between them, specifically can be implemented as one or more communication
Bus or signal wire.Those of ordinary skill in the art can understand and implement without creative efforts.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this
Under the inventive concept of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/use indirectly
It is included in other related technical areas in scope of patent protection of the invention.
Claims (9)
1. a kind of common recognition algorithm based on publicly-owned block chain, which is characterized in that include the following steps:
S10 obtains the current block height of block chain, and judges whether to meet according to block height and choose book keeping operation person's selection item
Part;
S20, if meeting book keeping operation person chooses condition, obtain the list of the whole network host node and choose in list line duration be greater than it is default
Book keeping operation person's candidate list is added in the host node of number of days;
S30 is ranked up the node in book keeping operation person's candidate list;
S40 randomly chooses N number of node as book keeping operation person in book keeping operation person's candidate list after sequence;
S50, N number of book keeping operation person produce block in turn;
S60, N number of book keeping operation person repeat step S10 to S60 after completing a wheel block production.
2. the common recognition algorithm according to claim 1 based on publicly-owned block chain, which is characterized in that
The preset number of days is more than or equal to 3 days;
The N is the odd number between 9 to 21.
3. the common recognition algorithm according to claim 1 based on publicly-owned block chain, which is characterized in that the book keeping operation person chooses item
The judgment step of part are as follows:
S11, with the current block height of block chain to N complementation;
S12 is judged as if complementation result is 0 and meets selection condition;
S13 is judged as if complementation result is not 0 and is unsatisfactory for selection condition.
4. the common recognition algorithm according to claim 1 based on publicly-owned block chain, which is characterized in that described couple of book keeping operation person is candidate
Host node in list is ranked up to be ranked up from high to low using score value, and the calculating of the score value includes following steps
It is rapid:
S31 generates the HASH value of a SAH256 with two data of time of host node mortgage address, the newest block of current chain,
The host node mortgage address is generated with public key by Base58;
The segment data is transmitted to conversion function and converts HASH value by S32,4 bytes every to the HASH value as one piece of data
32 integer datas;
S33 repeats step S32, until converting complete HASH data, obtains the array for being converted to 32 integers, then right
Each integer of this array is added to obtain final 256 integer, using 256 integers as the score value of host node.
5. the common recognition algorithm according to claim 1 based on publicly-owned block chain, which is characterized in that described in book keeping operation person candidate
N number of node is randomly choosed in list as book keeping operation person's selecting step are as follows:
S41 upsets book keeping operation person's candidate list with Xorshift random algorithm;
S42 takes top n node as book keeping operation person after upsetting in book keeping operation person's candidate list.
6. the common recognition algorithm according to claim 5 based on publicly-owned block chain, which is characterized in that the Xorshift is random
Algorithm is upset book keeping operation person's candidate list and is included the following steps:
S411 generates one 64 bit constant K, the constant K and got by three input factor operations, is respectively: one any whole
Index i, a fixed number K2 for an exchangeable object in number k1, book keeping operation person's candidate list;
S412, to constant K itself different parts shift, exclusive or, then do multiplying, the number made to become a random number
And obtain randomness;
S413, with random number to fixed number K2 complementation, complementation result adds i to obtain another index j;
S414, will index i, and the corresponding object of j swaps;
S415 recycles above-mentioned steps, until exchanging complete book keeping operation person's candidate list.
7. the common recognition algorithm according to claim 1 based on publicly-owned block chain, which is characterized in that further include testing for block
Card, verification step are as follows:
S71 judges whether nBits, nNonce in block are zero;If be not zero, refuse this block, otherwise continues step below
Suddenly;
S72 obtains local zone time, subtracts the time in block with local zone time, whether judging result is greater than negative " production block gap
Otherwise below step is continued if it does, refusing this block in time+n second ", n >=2;
S73, with the signature value in the mortgage address validation block of the host node in block, verifying does not pass through, and refuses this block, no
Then continue below step;
S74, if node is currently at the synchronous block stage, directly so far verifying is completed, and otherwise continues below step;
S75 is subtracted with the time in block and is chosen N number of book keeping operation person's recorded time, and obtained result is again divided by between the production block time
Every thus the result obtained after removing obtains an index again to N complementation;
S76 is found the mortgage address of host node in local N number of book keeping operation person's list by the index, judges whether it is equal to
This block is refused if unequal in the mortgage address of host node in block, otherwise receives this block.
8. a kind of common recognition equipment based on publicly-owned block chain, which is characterized in that the common recognition equipment packet based on publicly-owned block chain
It includes memory, processor and storage in the memory and is configured as the computer program executed by the processor, institute
When stating the processor execution computer program, such as common recognition algorithm of any of claims 1-7 is realized.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program, the computer program are performed realization such as common recognition algorithm of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910008521.4A CN109684798A (en) | 2019-01-04 | 2019-01-04 | A kind of common recognition algorithm, equipment and storage medium based on publicly-owned block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910008521.4A CN109684798A (en) | 2019-01-04 | 2019-01-04 | A kind of common recognition algorithm, equipment and storage medium based on publicly-owned block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109684798A true CN109684798A (en) | 2019-04-26 |
Family
ID=66192644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910008521.4A Pending CN109684798A (en) | 2019-01-04 | 2019-01-04 | A kind of common recognition algorithm, equipment and storage medium based on publicly-owned block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684798A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225044A (en) * | 2019-06-17 | 2019-09-10 | 北京艾摩瑞策科技有限公司 | Verification method and device on block chain |
CN110245949A (en) * | 2019-06-17 | 2019-09-17 | 北京艾摩瑞策科技有限公司 | It is related to the packaging method and device of block chain |
CN110601834A (en) * | 2019-09-30 | 2019-12-20 | 深圳市网心科技有限公司 | Consensus method, device, equipment and readable storage medium |
CN110673914A (en) * | 2019-09-24 | 2020-01-10 | 支付宝(杭州)信息技术有限公司 | View switching method for block chain consensus and block chain system |
CN110853214A (en) * | 2019-11-06 | 2020-02-28 | 杭州复杂美科技有限公司 | Block generation method, device and storage medium |
CN110868386A (en) * | 2019-05-17 | 2020-03-06 | 北京安妮全版权科技发展有限公司 | Block chain consensus method |
CN110990490A (en) * | 2019-12-19 | 2020-04-10 | 北京海益同展信息科技有限公司 | Method, device, equipment and medium for posting block chain in block chain network |
CN111866066A (en) * | 2020-06-04 | 2020-10-30 | 江苏理工学院 | Vehicle networking consensus algorithm based on DPoS |
CN112671732A (en) * | 2020-12-15 | 2021-04-16 | 中国联合网络通信集团有限公司 | Consensus method, device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107424066A (en) * | 2017-07-19 | 2017-12-01 | 武汉凤链科技有限公司 | A kind of method and its system of mechanism of being built a consensus based on the magnitude of value |
CN108777704A (en) * | 2018-05-16 | 2018-11-09 | 横琴密达科技有限责任公司 | A kind of block chain common recognition method and system |
CN108965329A (en) * | 2018-08-23 | 2018-12-07 | 泰链(厦门)科技有限公司 | The common recognition mechanism implementation method of block catenary system, medium, apparatus and system |
CN109067516A (en) * | 2018-07-20 | 2018-12-21 | 杭州复杂美科技有限公司 | A kind of drawing method, common recognition method, equipment and storage medium |
-
2019
- 2019-01-04 CN CN201910008521.4A patent/CN109684798A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107424066A (en) * | 2017-07-19 | 2017-12-01 | 武汉凤链科技有限公司 | A kind of method and its system of mechanism of being built a consensus based on the magnitude of value |
CN108777704A (en) * | 2018-05-16 | 2018-11-09 | 横琴密达科技有限责任公司 | A kind of block chain common recognition method and system |
CN109067516A (en) * | 2018-07-20 | 2018-12-21 | 杭州复杂美科技有限公司 | A kind of drawing method, common recognition method, equipment and storage medium |
CN108965329A (en) * | 2018-08-23 | 2018-12-07 | 泰链(厦门)科技有限公司 | The common recognition mechanism implementation method of block catenary system, medium, apparatus and system |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110868386A (en) * | 2019-05-17 | 2020-03-06 | 北京安妮全版权科技发展有限公司 | Block chain consensus method |
CN110868386B (en) * | 2019-05-17 | 2022-05-20 | 北京安妮全版权科技发展有限公司 | Block chain consensus method |
CN110245949A (en) * | 2019-06-17 | 2019-09-17 | 北京艾摩瑞策科技有限公司 | It is related to the packaging method and device of block chain |
CN110225044A (en) * | 2019-06-17 | 2019-09-10 | 北京艾摩瑞策科技有限公司 | Verification method and device on block chain |
CN110245949B (en) * | 2019-06-17 | 2021-05-28 | 北京瑞策科技有限公司 | Packing method and device related to block chain |
CN110673914A (en) * | 2019-09-24 | 2020-01-10 | 支付宝(杭州)信息技术有限公司 | View switching method for block chain consensus and block chain system |
CN110601834A (en) * | 2019-09-30 | 2019-12-20 | 深圳市网心科技有限公司 | Consensus method, device, equipment and readable storage medium |
CN110853214A (en) * | 2019-11-06 | 2020-02-28 | 杭州复杂美科技有限公司 | Block generation method, device and storage medium |
CN110990490A (en) * | 2019-12-19 | 2020-04-10 | 北京海益同展信息科技有限公司 | Method, device, equipment and medium for posting block chain in block chain network |
CN110990490B (en) * | 2019-12-19 | 2023-09-01 | 京东科技信息技术有限公司 | Method, device, equipment and medium for checking in blockchain network |
CN111866066A (en) * | 2020-06-04 | 2020-10-30 | 江苏理工学院 | Vehicle networking consensus algorithm based on DPoS |
CN111866066B (en) * | 2020-06-04 | 2023-11-07 | 江苏理工学院 | Internet of vehicles consensus algorithm based on DPoS |
CN112671732A (en) * | 2020-12-15 | 2021-04-16 | 中国联合网络通信集团有限公司 | Consensus method, device and system |
CN112671732B (en) * | 2020-12-15 | 2022-11-22 | 中国联合网络通信集团有限公司 | Consensus method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109684798A (en) | A kind of common recognition algorithm, equipment and storage medium based on publicly-owned block chain | |
CN107464106B (en) | Method and system for transaction between main chain and side chain of block chain | |
CN109544334A (en) | A kind of network scalability block chain implementation method | |
CN107169865B (en) | Asset data processing system based on block chain technology | |
CN105488675B (en) | Block chain distributed shared general ledger construction method | |
CN108961052A (en) | Verification method, storage method, device, equipment and the medium of block chain data | |
CN108009811A (en) | Inter-cloud computing environment value exchange-oriented cross-chain communication method | |
CN109522362A (en) | Incomplete markets synchronous method, system and equipment based on block chain data | |
CN113407640A (en) | Multi-chain NFT (network File transfer) based chain crossing method and system | |
CN109903049A (en) | A kind of block chain transaction data storage method, device, equipment and storage medium | |
CN109584063A (en) | Transaction processing method and device, electronic equipment based on block chain | |
CN105550307B (en) | A kind of generation method of netizen's personal status relationship network | |
CN108509615A (en) | Common recognition method for building up, device and readable storage medium storing program for executing based on lottery mechanism | |
CN109985389A (en) | Cards game anti-cheating method and its system based on block chain intelligence contract | |
CN112118138B (en) | System and method for realizing block chain consensus mechanism | |
CN109213781A (en) | Air control data query method and device | |
WO2021244581A1 (en) | Consensus method in alliance chain and alliance chain system | |
CN110135993A (en) | Method, equipment and the storage medium of UTXO model adaptation intelligence contract account model | |
CN111865968A (en) | Optimized Byzantine fault-tolerant algorithm applied to block chain | |
CN108764902A (en) | Method, node and block catenary system for storing data | |
CN114663104A (en) | PBFT based on block chain product supply chain tracing | |
CN109857810A (en) | Data synchronization unit and method based on block chain | |
CN113448694B (en) | Block chain consensus method for improving transaction processing capability | |
CN110232148A (en) | Item recommendation system, method and device | |
CN110502578A (en) | A kind of common recognition mechanism of rapid data cochain |
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: 20190426 |
|
RJ01 | Rejection of invention patent application after publication |