CN110223069A - Packaging method and device based on block chain meshed network - Google Patents

Packaging method and device based on block chain meshed network Download PDF

Info

Publication number
CN110223069A
CN110223069A CN201910519297.5A CN201910519297A CN110223069A CN 110223069 A CN110223069 A CN 110223069A CN 201910519297 A CN201910519297 A CN 201910519297A CN 110223069 A CN110223069 A CN 110223069A
Authority
CN
China
Prior art keywords
block
node
cryptographic hash
block node
sub
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
CN201910519297.5A
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.)
Beijing Ai Morui Strategic Technology Co Ltd
Original Assignee
Beijing Ai Morui Strategic Technology Co Ltd
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 Beijing Ai Morui Strategic Technology Co Ltd filed Critical Beijing Ai Morui Strategic Technology Co Ltd
Priority to CN201910519297.5A priority Critical patent/CN110223069A/en
Publication of CN110223069A publication Critical patent/CN110223069A/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
    • G06Q20/3825Use of electronic signatures
    • 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
    • G06Q20/3827Use of message hashing
    • 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
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The present embodiments relate to a kind of packaging methods and device based on block chain meshed network.If including: that the first block to be packaged is greater than first threshold, first block is divided into the first sub-block and at least one second sub-block;The first Hash operation, which is carried out, according to first block obtains the first cryptographic Hash;By being signed to obtain the first digital signature to first cryptographic Hash;Second Hash operation is carried out to first digital signature, obtains the second cryptographic Hash;According to second cryptographic Hash and preset random rule, it is the multiple go out block node in select at least one second to go out block node, go out block node respectively as at least one second sub-block.With this, block node can specify next block node out out, which has certain randomness and verifiability, can reduce block chain by the possibility of success attack, and improve the block efficiency out of block chain meshed network, and then improve book keeping operation efficiency.

Description

Packaging method and device based on block chain meshed network
Technical field
The present invention relates to field of computer technology more particularly to a kind of packaging methods and dress based on block chain meshed network It sets.
Background technique
Each of block chain network node is equivalent to store each computer of all block datas or service Device terminal.The production of all new blocks, and the verifying and record keeping of transaction, and it is synchronous to be broadcasted to the whole network, all by node Lai It completes.
Node is exactly the miner that we are commonly called as.The different of each miner calculate power, determine it can be assigned to how many record keeping Power harvests how many rewards.
The block chain first generation knows together mechanism POW, is exactly proof of work common recognition mechanism, is commonly called as digging mine.It is new to produce Block, must just carry out the operation of thousands of secondary Hash collisions.And these operations, many electric power can be consumed, the energy is caused Waste, therefore also by dirty disease.Everybody is more allowed to worry, once most of power of calculating is monopolized, decentralization is just on the hazard.
The second generation knows together mechanism POS, is exactly that equity proves common recognition mechanism, it is to be determined according to quantity with cash in hand with the time Who possesses more billing rights.The advantages of this common recognition mechanism is can be to avoid energy consumption, but the disadvantage is that right of speech is all held Coin rich and influential family is controlled, and centralized feature is formed, and also the original intention with block chain decentralization runs in the opposite direction.
Third generation common recognition mechanism is exactly DPOS, maximum feature, is exactly to be added on the basis that POS equity proves Electoral system.The super node for the final acquisition billing right being born by all votes by ballot of user with cash in hand is kept accounts, can To significantly reduce the waste of the energy, still, on the super node all concentrated due to operation, to the calculation force request of super node It is higher, and the efficiency of super node directly affects the efficiency of book keeping operation, this is resulted in, this kind of mode copes with the ability of large-scale data Not strong, development is restricted.
Summary of the invention
Based on the above issues, the embodiment of the invention provides a kind of packaging methods and dress based on block chain meshed network It sets.
In a first aspect, a kind of packaging method based on block chain meshed network is provided, the block chain meshed network packet Multiple block nodes out are included, the method is suitable for first and goes out block node, and described first goes out block node for the multiple block node out In any one, which comprises
If the first block to be packaged is greater than first threshold, first block is divided into the first sub-block and at least one A second sub-block, wherein described first, which goes out block node as the first sub-block, goes out block node;
The first Hash operation, which is carried out, according to first block obtains the first cryptographic Hash;
By being signed to obtain the first digital signature to first cryptographic Hash;
Second Hash operation is carried out to first digital signature, obtains the second cryptographic Hash;
According to second cryptographic Hash and preset random rule, at least one is selected in the multiple block node out Second goes out block node, goes out block node respectively as at least one second sub-block.
In some embodiments, first Hash operation and second Hash operation are that identical or different Hash is transported It calculates.
In some embodiments, described that second Hash operation is carried out to first digital signature, the second cryptographic Hash is obtained, Include:
First digital signature and the first numerical value are subjected to the second Hash operation and obtain the second cryptographic Hash, first number Value is the sequence number that 1-n or described first goes out block node, and the n is arbitrary value.
In some embodiments, the preset random rule includes:
Second cryptographic Hash is converted into 10 systems, and takes the remainder of second value, the second value is according to The quantity of multiple verifying nodes determines;
Determine that the corresponding verifying node of the remainder goes out block node for described second.
In some embodiments, described according to second cryptographic Hash and preset random rule, it is the multiple go out Selected in block node at least one second go out block node, respectively as at least one second sub-block go out block node, packet It includes:
According to second cryptographic Hash and preset random rule, at least one is selected in the multiple block node out Second goes out block node;
Precedence relationship is determined according to the size relation of at least one second serial number for going out block node, according to described successive Relationship goes out block node respectively as at least one second sub-block.
In some embodiments, further includes:
First digital signature is sent to the multiple block node out.
In some embodiments, further includes:
The second digital signature that third goes out the transmission of block node is received, second digital signature is directed to the second block, described Second block is divided into third sub-block and at least one the 4th sub-block;
Second Hash operation is carried out to second digital signature, obtains third cryptographic Hash;
According to the third cryptographic Hash and preset random rule, judge described first go out block node whether be it is described extremely Few 4th sub-block goes out block node;
If so, being packaged to one at least one described the 4th sub-block.
In some embodiments, described according to the third cryptographic Hash and preset random rule, judge described first Whether block node is that the block node that goes out of at least one the 4th sub-block includes: out
According to the third cryptographic Hash and preset random rule, determine at least one the 4th sub-block goes out block The serial number of node;
Whether the serial number for going out block node for judging at least one the 4th sub-block is the described first serial number for going out block node.
In some embodiments, further includes:
Second digital signature is verified using the public key that third goes out block node, obtains the 4th cryptographic Hash;
First Hash operation is carried out to second block and obtains the 5th cryptographic Hash;
If the 4th cryptographic Hash is identical with the 5th cryptographic Hash, second is carried out to second digital signature and is breathed out Uncommon operation, obtains third cryptographic Hash.
Second aspect provides a kind of packing apparatus based on block chain meshed network.The block chain meshed network packet Multiple block nodes out are included, the method is suitable for first and goes out block node, and described first goes out block node for the multiple block node out In any one, described device includes:
Blocking unit, if the first block to be packaged is greater than first threshold, for first block to be divided into first Sub-block and at least one second sub-block, wherein described first, which goes out block node as the first sub-block, goes out block node;
Hash units obtain the first cryptographic Hash for carrying out the first Hash operation according to first block;
Signature unit, for by being signed to obtain the first digital signature to first cryptographic Hash;
The hash units are also used to, and are carried out the second Hash operation to first digital signature, are obtained the second cryptographic Hash;
Selecting unit is used for according to second cryptographic Hash and preset random rule, in the multiple block node out It is middle selection at least one second go out block node, respectively as at least one second sub-block go out block node.
In some embodiments, first Hash operation and second Hash operation are that identical or different Hash is transported It calculates.
In some embodiments, hash units are specifically used for:
First digital signature and the first numerical value are subjected to the second Hash operation and obtain the second cryptographic Hash, first number Value is the sequence number that 1-n or described first goes out block node, and the n is arbitrary value.
In some embodiments, the preset random rule includes:
Second cryptographic Hash is converted into 10 systems, and takes the remainder of second value, the second value is according to The quantity of multiple verifying nodes determines;
Determine that the corresponding verifying node of the remainder goes out block node for described second.
In some embodiments, selecting unit is specifically used for:
According to second cryptographic Hash and preset random rule, at least one is selected in the multiple block node out Second goes out block node;
Precedence relationship is determined according to the size relation of at least one second serial number for going out block node, according to described successive Relationship goes out block node respectively as at least one second sub-block.
In some embodiments, further includes:
Transmission unit, for sending first digital signature to the multiple block node out.
In some embodiments, further includes:
Receiving unit, the second digital signature of block node transmission is gone out for receiving third, and second digital signature is directed to Second block, second block are divided into third sub-block and at least one the 4th sub-block;
Hash units obtain third cryptographic Hash for carrying out the second Hash operation to second digital signature;
Judging unit, for judging that described first goes out block section according to the third cryptographic Hash and preset random rule Whether point is that at least one the 4th sub-block goes out block node;
Packaged unit, if so, for being packaged to one at least one described the 4th sub-block.
In some embodiments, sentence unit to be specifically used for:
According to the third cryptographic Hash and preset random rule, determine at least one the 4th sub-block goes out block The serial number of node;
Whether the serial number for going out block node for judging the 4th block is the described first serial number for going out block node.
In some embodiments, further includes:
Authentication unit, the public key for being gone out block node using third verify second digital signature, obtain Four cryptographic Hash;
Hash units obtain the 5th cryptographic Hash for carrying out the first Hash operation to second block;
Judging unit, if identical with the 5th cryptographic Hash for the 4th cryptographic Hash, to second number Signature carries out the second Hash operation, obtains the third cryptographic Hash third aspect, and this specification embodiment provides a kind of computer and sets It is standby, including memory, processor and the computer program that can be run on a memory and on a processor is stored, feature exists In the processor realizes either side or various sides in aforementioned first aspect or second aspect when executing described program Method step.
Fourth aspect provides a kind of computer readable storage medium, and meter is stored on the computer readable storage medium Calculation machine program, the computer program realize either side or more in above-mentioned first aspect or second aspect when being executed by processor Method described in aspect.
5th aspect, provides a kind of computer program product comprising instruction, when described instruction is run on computers When, so that computer executes in above-mentioned first aspect or second aspect method described in either side or various aspects.
Through the embodiment of the present invention, out block node can specify it is next go out block node, the assignment procedure have it is certain with Machine and verifiability can reduce block chain by the possibility of success attack, and improve the block out of block chain meshed network Efficiency, and then book keeping operation efficiency is improved, allow block chain meshed network should the bigger service scenarios of data scale.
Detailed description of the invention
Fig. 1 applies the exemplary architecture of embodiment provided by the present application;
Fig. 2 is a kind of flow chart of the packaging method based on block chain meshed network provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the device of the release information based on block chain provided in an embodiment of the present invention;
Fig. 4 shows a kind of computer equipment structural schematic diagram provided by this specification embodiment.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of packaging methods and device based on block chain meshed network.Fig. 1, which is shown, to be answered With the exemplary architecture of embodiment provided by the present application.
As shown in Figure 1, the exemplary architecture may include multiple block chain nodes, multiple block chain node may include Multiple block node 101 and multiple verifying nodes 102 out.In one example, should go out block node can be to be selected by election mechanism The quantity of the multiple super nodes selected, the super node can determine according to actual needs, and the quantity of the super node can be Odd number, such as 21.In another example, multiple verifying node can be alternate node, wherein the super node can Think and chosen from alternate node, the quantity of the alternate node can also determine according to actual needs, for example, can be 100, Wherein, alternate node can be selected according to preset random rule, for example, calculating the highest specified quantity node of power can be with Alternately node.In another example, verifying node can also be all or part of node in addition to block node out.Its In, block chain node can be realized in a software form, can also realize in the form of hardware.When implemented in hardware, it can be Laptop, desktop computer and mobile terminal etc..
Block node is mainly used for based on common recognition mechanism out, the data in system in designated time period is produced block, also It is primarily used for keeping accounts.Verifying node is mainly used for based on common recognition mechanism, and the block generated to block node out is verified, and passes through The block of verifying can be recorded in block chain.It is can communicate between node to synchronize the data such as block chain.For example, section It can be communicated based on D2D agreement between point.
In order to facilitate understanding of embodiments of the present invention, it is further explained below in conjunction with attached drawing with specific embodiment Bright, embodiment does not constitute the restriction to the embodiment of the present invention.
Fig. 2 is a kind of flow chart of the packaging method based on block chain meshed network provided by the invention.The block chain link Spot net includes the block chain meshed network in multiple block nodes, such as exemplary architecture shown in FIG. 1 out, and this method is suitable for First go out block node, this first go out block node be it is multiple go out block nodes in any one.As shown in Fig. 2, this method is specifically wrapped It includes:
S210, if the first block to be packaged be greater than first threshold, by first block be divided into the first sub-block and At least one second sub-block, wherein described first, which goes out block node as the first sub-block, goes out block node.
Wherein, each node in block chain meshed network is run based on common recognition mechanism.The common recognition mechanism is predefined, The common recognition mechanism, which can wrap, includes block common recognition mechanism, verifying common recognition mechanism etc..
Block node out in block chain meshed network can determine that first goes out block node according to the common recognition mechanism of block out, this first The data in system in designated time period can be generated block by block node out.The designated time period can according to actual needs really It is fixed, such as can be 1 second, 10 seconds, 3 minutes or 10 minutes etc..The system can be corresponding whole for the block chain meshed network A block catenary system.Wherein, block chain has multiple blocks to constitute, and each block can carry the mark of a block The storage organization of chain type is formed.
First goes out block node after determining the first block, if it is determined that the first block is greater than first threshold, it is determined that this One block is excessive, will affect out block efficiency, then first block can be divided into multiple sub-blocks, goes out block node by different The sub-block is packaged, to promote packaging efficiency.
Wherein, first threshold can be determine according to actual needs.
It, can determine according to actual needs, for example, it may be determined that the data of block are less than for the division rule of sub-block The maximum time interval of first threshold then divides sub-block according to the maximum time interval.For example, maximum time interval can be 1 minute, a block was 3 minutes, it is possible to be divided into three 1 minute sub-blocks.
S220 carries out the first Hash operation according to first block and obtains the first cryptographic Hash.
Current block chain node is generating block it needs to be determined that next node for needing to generate block, the current block chain Node is properly termed as first and goes out block node, which is properly termed as second and goes out block node, deserve The block that preceding block chain link point generates is properly termed as the first block, and the block which generates can To be known as the second block.
In order to increase the efficiency for going out the selection of block node of node, reduce the burden of system, next block node out is being selected When, the first Hash operation can be carried out to the first block, obtain the first cryptographic Hash.Wherein, verifying common recognition mechanism may include pre- First Hash operation of definition, which can determine according to actual needs, for example, the first Hash operation can be SHA-256 etc..
S230, by being signed to obtain the first digital signature to first cryptographic Hash.
Each block chain node may include at least one secret key pair, and each secret key pair includes a public key and a private Key, the private key can store in local, which can be sent to other block chain nodes.
Current block chain node can sign to the cryptographic Hash after determining the first cryptographic Hash, obtain the first number Signature.The signature can be used private key and sign, and can verify the signature using the corresponding public key of the private key.
S230 carries out the second Hash operation to the first digital signature, obtains the second cryptographic Hash.
When determining block node, the second Hash operation can be carried out to the first digital signature, obtain the second cryptographic Hash.Its In, block common recognition mechanism may include predefined second Hash operation out, which can according to actual needs really It is fixed, for example, the second Hash operation can be SHA-256 etc..Wherein, the first Hash operation can be identical with the second Hash operation Hash operation can be different Hash operations.
S240, according to second cryptographic Hash and preset random rule, it is the multiple go out block node in select to Few one second goes out block node, goes out block node respectively as at least one second sub-block.
In some embodiments, it can be determined according to the size relation of at least one the second serial number for going out block node and successively be closed System goes out block node respectively as at least one the second sub-block according to precedence relationship.For example, it is each go out block child node be according to What the time divided, the precedence relationship progress of block node can be gone out according to the time order and function relationship of block child node out and second Match, determines that the second of each block child node out goes out block node.
When determining block node, can be selected according to the second cryptographic Hash.Wherein, block common recognition mechanism may include out The preset random rule of selection gist, the preset random rule have certain randomness and verifiability.
In one example, which may include:
Second cryptographic Hash is converted into 10 systems, and takes the remainder of second value;
Determine that the corresponding block node out of the remainder goes out block node for second.
Wherein, which can determine according to the quantity of block node out.For example, the quantity of block node can be out 100, which can be 100.
Wherein, the second cryptographic Hash ensure that randomness, the determination of the second cryptographic Hash and preset random rule, ensure that This second go out block node verifiability.
First go out block node the first digital signature can be sent to second go out block node, so as to second go out block node continue Block out.For example, the first digital signature can be sent to multiple block nodes out by way of broadcast.
Block node the first block of transmission and first can also be gone out to second and go out the public key of block node.Wherein, the public key is sent Form may include a variety of.In one example, can be generated according to the public key should go out block address of node, which can be with Produce or be transferred to address as transaction, this second go out block node can be gone out according to this block address of node determine should go out block node Public key.In another example, which can carry is sent in the first block.
Second goes out block node after receiving the first digital signature, can verify the first identity for going out block node first, should The identity of block node can carry out verifying realization to the first digital signature by going out the public key of block node out.After being verified, Second go out block node can the verifying identity to itself verify, which can be based on preset random rule It is verified, whether includes its own to verify the block node out of the second sub-block.After above-mentioned two verification process all passes through, Second, which goes out block node, is again packaged the second sub-block, and the second sub-block of packing is carried out the whole network and is synchronized.
In some embodiments, above-mentioned steps S230 can be specifically achieved by the steps of:
First digital signature and the first numerical value are subjected to the second Hash operation and obtain the second cryptographic Hash.
Wherein, the first numerical value is the predefined fixed values such as 1-n, which is arbitrary value.
First numerical value can also for first go out block node sequence number, or according to first go out block node sequence number it is true Fixed numerical value.By first value, the randomness of block node selection can be further realized out.
In some embodiments, can also include the following steps:
1) the second digital signature that third goes out the transmission of block node is received, second digital signature is directed to the second block, institute It states the second block and is divided into third sub-block and at least one the 4th sub-block;
2) the second Hash operation is carried out to second digital signature, obtains third cryptographic Hash;
3) according to the third cryptographic Hash and preset random rule, judge that described first goes out whether block node is described At least one the 4th sub-block goes out block node;
4) if so, being packaged to one at least one described the 4th sub-block.
5) if it is not, then terminating.
In step 1), third block, public key and the second digital signature that third goes out the transmission of block node can receive.
Wherein, third block can go out the newly-generated block of block node for third.Second digital signature can be according to this Third block determines.It specifically may refer to the acquisition process of aforementioned first digital signature, details are not described herein again.
First, which goes out block node, can also determine that third goes out the public key of block node, which can go out block node according to the third Address determine, also it is available carrying with the public key in third block.
In step 3), at least one the 4th sub-district can be determined according to third cryptographic Hash and preset random rule The serial number for going out block node of block;Judge at least one the 4th sub-block go out block node serial number whether include first go out block node Serial number.
In addition, first goes out block node after receiving third block, the identity that third goes out block node can be verified first, it should The identity of block node can be realized by following step out.
Step A verifies second digital signature using the public key that third goes out block node, obtains the 4th Hash Value;
Step B carries out the first Hash operation to second block and obtains the 5th cryptographic Hash;
If the 4th cryptographic Hash is identical with the 5th cryptographic Hash, illustrate that second digital signature is that the third goes out The digital signature of block node, namely be verified.If it is different, then verifying does not pass through.
Through the embodiment of the present invention, can go out block node can specify next block node out, which has certain Randomness and verifiability, block chain can be reduced by the possibility of success attack, and improve block chain meshed network Block efficiency out, and then book keeping operation efficiency is improved, allow block chain meshed network should the bigger service scenarios of data scale.
Fig. 3 is a kind of packing apparatus structural schematic diagram based on block chain meshed network provided in an embodiment of the present invention.It should Block chain meshed network includes the block chain meshed network in multiple block nodes, such as exemplary architecture shown in FIG. 1 out, described Device is suitable for first and goes out block node, and described first goes out block node for any one in the multiple block node out, the dress It sets and includes:
Blocking unit 301, if the first block to be packaged is greater than first threshold, for first block to be divided into the One sub-block and at least one second sub-block, wherein described first, which goes out block node as the first sub-block, goes out block node;
Hash units 302 obtain the first cryptographic Hash for carrying out the first Hash operation according to first block;
Signature unit 303, for by being signed to obtain the first digital signature to first cryptographic Hash;
The hash units 302 are also used to, and are carried out the second Hash operation to first digital signature, are obtained the second Hash Value;
Selecting unit 304 is used for according to second cryptographic Hash and preset random rule, in the multiple block section out Selected in point at least one second go out block node, respectively as at least one second sub-block go out block node.
In some embodiments, first Hash operation and second Hash operation are that identical or different Hash is transported It calculates.
In some embodiments, hash units are specifically used for:
First digital signature and the first numerical value are subjected to the second Hash operation and obtain the second cryptographic Hash, first number Value is the sequence number that 1-n or described first goes out block node, and the n is arbitrary value.
In some embodiments, the preset random rule includes:
Second cryptographic Hash is converted into 10 systems, and takes the remainder of second value, the second value is according to The quantity of multiple verifying nodes determines;
Determine that the corresponding verifying node of the remainder goes out block node for described second.
In some embodiments, selecting unit is specifically used for:
According to second cryptographic Hash and preset random rule, at least one is selected in the multiple block node out Second goes out block node;
Precedence relationship is determined according to the size relation of at least one second serial number for going out block node, according to described successive Relationship goes out block node respectively as at least one second sub-block.
In some embodiments, further includes:
Transmission unit, for sending first digital signature to the multiple block node out.
In some embodiments, further includes:
Receiving unit, the second digital signature of block node transmission is gone out for receiving third, and second digital signature is directed to Second block, second block are divided into third sub-block and at least one the 4th sub-block;
Hash units obtain third cryptographic Hash for carrying out the second Hash operation to second digital signature;
Judging unit, for judging that described first goes out block section according to the third cryptographic Hash and preset random rule Whether point is that at least one the 4th sub-block goes out block node;
Packaged unit, if so, for being packaged to one at least one described the 4th sub-block.
In some embodiments, sentence unit to be specifically used for:
According to the third cryptographic Hash and preset random rule, determine at least one the 4th sub-block goes out block The serial number of node;
Whether the serial number for going out block node for judging the 4th block is the described first serial number for going out block node.
In some embodiments, further includes:
Authentication unit, the public key for being gone out block node using third verify second digital signature, obtain Four cryptographic Hash;
Hash units obtain the 5th cryptographic Hash for carrying out the first Hash operation to second block;
Judging unit, if identical with the 5th cryptographic Hash for the 4th cryptographic Hash, to second number Signature carries out the second Hash operation, obtains third cryptographic Hash.
It is appreciated that the packing apparatus based on block chain meshed network and embodiment of the method shown in Fig. 2 of the present embodiment It is corresponding, therefore, the device of the present embodiment is equally applicable to above with respect to the description of embodiment of the method shown in Fig. 2, herein not It repeats again.
Fig. 4 shows a kind of computer equipment structural schematic diagram, the computer equipment provided by this specification embodiment It may include: processor 410, memory 420, input/output interface 430, communication interface 440 and bus 450.Wherein processor 440, memory 420, input/output interface 430 and communication interface 440 by bus 450 realize between inside equipment Communication connection.
Processor 410 can use general CPU (Central Processing Unit, central processing unit), micro process Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or The modes such as multiple integrated circuits are realized, for executing relative program, to realize technical solution provided by this specification embodiment.
Memory 420 can use ROM (Read Only Memory, read-only memory), RAM (Random Access Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 420 can store Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware When, relevant program code is stored in memory 420, and execution is called by processor 410.
Input/output interface 430 is for connecting input/output module, to realize information input and output.Input and output/ Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display, Loudspeaker, vibrator, indicator light etc..
Communication interface 440 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly (such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 450 includes an access, in various components (such as the processor 410, memory 420, input/output of equipment Interface 430 and communication interface 440) between transmit information.
It should be noted that although above equipment illustrates only processor 410, memory 420, input/output interface 430, communication interface 440 and bus 450, but in the specific implementation process, which can also include realizing to operate normally Necessary other assemblies.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising realizing in above equipment Component necessary to this specification example scheme, without including all components shown in figure.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all any modification, equivalent substitution, improvement and etc. within the scope of the present invention, done should be included in this hair Within bright protection scope.

Claims (10)

1. a kind of packaging method based on block chain meshed network, which is characterized in that the block chain meshed network includes multiple Block node out, the method are suitable for first and go out block node, and described first goes out block node for appointing in the multiple block node out Meaning one, which comprises
If the first block to be packaged is greater than first threshold, by first block be divided into the first sub-block and at least one the Two sub-blocks, wherein described first, which goes out block node as the first sub-block, goes out block node;
The first Hash operation, which is carried out, according to first block obtains the first cryptographic Hash;
By being signed to obtain the first digital signature to first cryptographic Hash;
Second Hash operation is carried out to first digital signature, obtains the second cryptographic Hash;
According to second cryptographic Hash and preset random rule, it is the multiple go out block node in select at least one second Block node out goes out block node respectively as at least one second sub-block.
2. the method according to claim 1, wherein first Hash operation is with second Hash operation Identical or different Hash operation.
3. the method according to claim 1, wherein described carry out the second Hash fortune to first digital signature It calculates, obtains the second cryptographic Hash, comprising:
First digital signature and the first numerical value are subjected to the second Hash operation and obtain the second cryptographic Hash, first numerical value is 1-n or described first goes out the sequence number of block node, and the n is arbitrary value.
4. the method according to claim 1, wherein the preset random rule includes:
Second cryptographic Hash is converted into 10 systems, and takes the remainder of second value, the second value is according to the multiple The quantity for verifying node determines;
Determine that the corresponding verifying node of the remainder goes out block node for described second.
5. the method according to claim 1, wherein described according to second cryptographic Hash and preset random Rule, it is the multiple go out block node in select at least one second go out block node, respectively as it is described at least one second son Block goes out block node, comprising:
According to second cryptographic Hash and preset random rule, it is the multiple go out block node in select at least one second Block node out;
Precedence relationship is determined according to the size relation of at least one second serial number for going out block node, according to the precedence relationship Go out block node respectively as at least one second sub-block.
6. the method according to claim 1, wherein further include:
First digital signature is sent to the multiple block node out.
7. according to the method described in claim 6, it is characterized by further comprising:
Receive third go out block node transmission the second digital signature, second digital signature be directed to the second block, described second Block is divided into third sub-block and at least one the 4th sub-block;
Second Hash operation is carried out to second digital signature, obtains third cryptographic Hash;
According to the third cryptographic Hash and preset random rule, judge that described first goes out whether block node is described at least one A 4th sub-block goes out block node;
If so, being packaged to one at least one described the 4th sub-block.
8. the method according to the description of claim 7 is characterized in that described according to the third cryptographic Hash and preset random Rule judges that described first goes out whether block node is that the block node that goes out of at least one the 4th sub-block includes:
According to the third cryptographic Hash and preset random rule, determine at least one the 4th sub-block goes out block node Serial number;
Whether the serial number for going out block node for judging at least one the 4th sub-block includes the described first serial number for going out block node.
9. the method according to the description of claim 7 is characterized in that further include:
Second digital signature is verified using the public key that third goes out block node, obtains the 4th cryptographic Hash;
First Hash operation is carried out to second block and obtains the 5th cryptographic Hash;
If the 4th cryptographic Hash is identical with the 5th cryptographic Hash, the second Hash fortune is carried out to second digital signature It calculates, obtains third cryptographic Hash.
10. a kind of packing apparatus based on block chain meshed network, which is characterized in that the block chain meshed network includes multiple Block node out, described device are suitable for first and go out block node, and described first goes out block node for appointing in the multiple block node out Meaning one, described device include:
Blocking unit, if the first block to be packaged is greater than first threshold, for first block to be divided into the first sub-district Block and at least one second sub-block, wherein described first, which goes out block node as the first sub-block, goes out block node;
Hash units obtain the first cryptographic Hash for carrying out the first Hash operation according to first block;
Signature unit, for by being signed to obtain the first digital signature to first cryptographic Hash;
The hash units are also used to, and are carried out the second Hash operation to first digital signature, are obtained the second cryptographic Hash;
Selecting unit, for being selected in the multiple block node out according to second cryptographic Hash and preset random rule Select at least one second go out block node, respectively as at least one second sub-block go out block node.
CN201910519297.5A 2019-06-17 2019-06-17 Packaging method and device based on block chain meshed network Pending CN110223069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910519297.5A CN110223069A (en) 2019-06-17 2019-06-17 Packaging method and device based on block chain meshed network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910519297.5A CN110223069A (en) 2019-06-17 2019-06-17 Packaging method and device based on block chain meshed network

Publications (1)

Publication Number Publication Date
CN110223069A true CN110223069A (en) 2019-09-10

Family

ID=67817178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910519297.5A Pending CN110223069A (en) 2019-06-17 2019-06-17 Packaging method and device based on block chain meshed network

Country Status (1)

Country Link
CN (1) CN110223069A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815845A (en) * 2020-07-08 2020-10-23 中钞信用卡产业发展有限公司杭州区块链技术研究院 Shaking method, device, system, equipment and medium based on heterogeneous block chain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network
CN107395403A (en) * 2017-07-07 2017-11-24 北京区块链云科技有限公司 A kind of fiduciary block chain common recognition method suitable for extensive ecommerce
CN107918666A (en) * 2017-11-24 2018-04-17 中钞信用卡产业发展有限公司杭州区块链技术研究院 Method of data synchronization and system on a kind of block chain
CN108596621A (en) * 2018-04-28 2018-09-28 深圳市优学链科技有限公司 Block chain accounting nodes generation method, device, computer equipment and storage medium
CN108964879A (en) * 2018-07-20 2018-12-07 杭州复杂美科技有限公司 A kind of drawing method, common recognition method, equipment and storage medium
CN109559122A (en) * 2018-12-07 2019-04-02 北京瑞卓喜投科技发展有限公司 Block chain data transmission method and block chain data transmission system
CN109743173A (en) * 2018-12-20 2019-05-10 弗洛格(武汉)信息科技有限公司 Go out block node in block chain and determines method, block verification method and block catenary system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network
CN107395403A (en) * 2017-07-07 2017-11-24 北京区块链云科技有限公司 A kind of fiduciary block chain common recognition method suitable for extensive ecommerce
CN107918666A (en) * 2017-11-24 2018-04-17 中钞信用卡产业发展有限公司杭州区块链技术研究院 Method of data synchronization and system on a kind of block chain
CN108596621A (en) * 2018-04-28 2018-09-28 深圳市优学链科技有限公司 Block chain accounting nodes generation method, device, computer equipment and storage medium
CN108964879A (en) * 2018-07-20 2018-12-07 杭州复杂美科技有限公司 A kind of drawing method, common recognition method, equipment and storage medium
CN109559122A (en) * 2018-12-07 2019-04-02 北京瑞卓喜投科技发展有限公司 Block chain data transmission method and block chain data transmission system
CN109743173A (en) * 2018-12-20 2019-05-10 弗洛格(武汉)信息科技有限公司 Go out block node in block chain and determines method, block verification method and block catenary system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ITTAY EYAL 等: "Bitcoin-NG:A Scalable Blockchain Protocol", 《OPEN ACCESS TO THE PROCEEDINGS OF THE 13TH USENIX SYMPOSIUM ON NETWORK SYSTEMS DESIGN AND IMPLEMENT》 *
RAFAEL PASS 等: "Thunderella:Blockchains with Optimistic Instant Confirmation", 《ANNUAL INTERNATIONAL CONFERENCE ON THE THEORY AND APPLICATIONS OF CRYPTOGRAPHIC TECHNIQUES》 *
潘业达 等: "区块链吞吐率提升研究", 《通信技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815845A (en) * 2020-07-08 2020-10-23 中钞信用卡产业发展有限公司杭州区块链技术研究院 Shaking method, device, system, equipment and medium based on heterogeneous block chain

Similar Documents

Publication Publication Date Title
CN110210865A (en) Packaging method and device based on block chain
CN110247753A (en) Go out block method and device based on block chain meshed network
CN110222537A (en) Verification method and device applied to block chain link
CN108848148B (en) Transaction information confirmation method and device based on block chain
CN110223070A (en) Verification method and device based on block chain meshed network
CN110659905B (en) Transaction verification method, device, terminal equipment and storage medium
CN111985007A (en) Contract signing and executing method and device based on block chain
CN109857810A (en) Data synchronization unit and method based on block chain
CN110233722A (en) Go out block method and device on block chain
CN110222538A (en) It is related to the verification method and device of block chain
CN110225044A (en) Verification method and device on block chain
CN111669434A (en) Method, system, device and equipment for establishing communication group
CN110223069A (en) Packaging method and device based on block chain meshed network
CN110224813A (en) Go out block method and device based on block chain
CN110224839A (en) Applied to the verification method and device on block chain
CN110298757B (en) Consensus method and device relating to DPoS
CN110224840A (en) Packaging method and device based on block chain
CN110247773A (en) Packaging method and device on block chain
CN110245949A (en) It is related to the packaging method and device of block chain
CN110245950A (en) Be related to block chain goes out block method and device
CN111831669A (en) Method and device for storing internet voting data according to block chain
CN110225043A (en) Packaging method and device applied to block chain
CN109918445A (en) Digging mine device and method based on block chain
CN109885258A (en) Data deletion apparatus and method based on block chain
CN109818965A (en) Personal verification device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 100085 No. 108, 1st Floor, No. 9, Shangdi Jiujie, Haidian District, Beijing

Applicant after: Beijing ruice Technology Co.,Ltd.

Address before: 100085 No. 108, 1st Floor, No. 9, Shangdi Jiujie, Haidian District, Beijing

Applicant before: BEIJING AIMO RUICE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination