WO2019127153A1 - Block generation method and apparatus, storage medium, and block chain network - Google Patents

Block generation method and apparatus, storage medium, and block chain network Download PDF

Info

Publication number
WO2019127153A1
WO2019127153A1 PCT/CN2017/119136 CN2017119136W WO2019127153A1 WO 2019127153 A1 WO2019127153 A1 WO 2019127153A1 CN 2017119136 W CN2017119136 W CN 2017119136W WO 2019127153 A1 WO2019127153 A1 WO 2019127153A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
random number
signature
generating
blockchain network
Prior art date
Application number
PCT/CN2017/119136
Other languages
French (fr)
Chinese (zh)
Inventor
王健
谢辉
庞洪福
Original Assignee
深圳达闼科技控股有限公司
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 深圳达闼科技控股有限公司 filed Critical 深圳达闼科技控股有限公司
Priority to CN201780002590.3A priority Critical patent/CN108235799B/en
Priority to PCT/CN2017/119136 priority patent/WO2019127153A1/en
Publication of WO2019127153A1 publication Critical patent/WO2019127153A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Definitions

  • the present disclosure relates to the field of blockchain technology, and in particular, to a block generation method, apparatus, storage medium, and blockchain network.
  • Blockchain technology is a distributed, decentralized, trusted network data consensus storage technology based on a unique block generation mechanism and P2P (Point To Point (point-to-point) network communication mechanism realizes the synchronization problem of distributed computing.
  • P2P Point To Point (point-to-point) network communication mechanism
  • the computing power of the nodes participating in the block calculation is uneven.
  • the hardware used by the node of the calculation block is also from the CPU (Central). Processing Unit, Central Processing Unit), GPU (Graphics Processing Unit, Graphics Processor, FPGA Programmable Gate Array (Field Programmable Logic Gate Array) has evolved to ASIC (Application-specific Integrated circuit, dedicated chip).
  • the blockchain involves a "51% attack” scenario, that is, theoretically more than 51% of the computing power.
  • a node or multiple nodes can perform a "51% attack” on the blockchain, hinder the normal operation of the blockchain, and destroy the data of the blockchain.
  • a single or a few nodes can have great computing power together, so that when the computing power of each node in the entire blockchain network is large, "51%”
  • the conditions of the attack are not difficult to achieve, threatening the security of the blockchain network.
  • the main object of the present disclosure is to provide a block generation method, device, storage medium, and blockchain network, which are used to solve the problem that the power calculation difference of the block generation device in the existing blockchain network is too large.
  • a first aspect of the present disclosure provides a block generation method, the method being applied to a block generation device, the method comprising:
  • Advertising the signature block to the blockchain network where the node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, where If the signature authentication of the signature block is successful, it indicates that the signature block is generated by a legal block generating device.
  • a second aspect of the present disclosure provides a block generation method, the method being applied to a block generation device, the method comprising:
  • the workload verification verification is performed on the signature block
  • a third aspect of the present disclosure provides a block generating apparatus, the block generating apparatus having built-in private key information, and the block generating apparatus includes:
  • a key processing module configured to sign a block generated by the block generating device according to the private key information, to obtain a signature block
  • a publishing module configured to publish the signature block to the blockchain network, where a node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, wherein, if the signature verification of the signature block is successful, it indicates that the signature block is generated by a legal block generating device.
  • a fourth aspect of the present disclosure provides a block generating apparatus, including:
  • An obtaining module configured to acquire a signature block in a blockchain network
  • a signature authentication module configured to perform signature verification on the signature block according to the public key information
  • a workload verification module configured to perform workload verification on the signature block after the signature verification is successful
  • a block adding module is configured to determine whether to add the signature block to the blockchain according to the workload proof verification result.
  • a fifth aspect of the present disclosure provides a block generating apparatus, including:
  • At least one processor unit a communication interface, a memory, and a communication bus; the at least one processor unit, the communication interface, and the memory complete communication with each other through the communication bus;
  • the memory is configured to store program code
  • the at least one processor unit is configured to execute the program code to implement the method of the first aspect.
  • a sixth aspect of the present disclosure provides a block generating apparatus, including:
  • At least one processor unit a communication interface, a memory, and a communication bus; the at least one processor unit, the communication interface, and the memory complete communication with each other through the communication bus;
  • the memory is configured to store program code
  • the at least one processor unit is configured to execute the program code to implement the method of the second aspect.
  • a seventh aspect of the present disclosure provides a blockchain network, the blockchain network including at least two node devices;
  • the at least two node devices include a first node device, where the first node device includes the block generating device of the third aspect or the fifth aspect;
  • the at least two node devices include a second node device, and the second node device includes the block generating device of the fourth aspect or the sixth aspect.
  • An eighth aspect of the present disclosure provides a computer readable storage medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect.
  • a ninth aspect of the present disclosure provides a computer readable storage medium for storing a computer program, the computer program comprising instructions for performing the method of the second aspect.
  • the block generating device After the block generating device generates the block, the block is privately signed, the signature block is obtained, and the signature block is released into the blockchain network, and the blockchain network receives the block.
  • the node device to the signature block is configured to perform signature verification on the signature block, wherein if the signature verification of the signature block is successful, it indicates that the signature block is generated by a legal block generation device. of.
  • the block is signed by the private key of the blockchain account to authenticate the account, and the technical solution provided by the present disclosure can also perform identity authentication on the hardware device that generates the block, that is, It is said that the node device in the blockchain network can verify the identity of the block generating device by signature authentication of the signature block, so that for the illegal block generating device, the blockchain network can refuse to add the blockchain network.
  • the generated blocks ensure the security of the blockchain.
  • FIG. 1 is a schematic flowchart diagram of a method for generating a block according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of generating a block by a block generating apparatus according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of another generated block of a block generating apparatus according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart diagram of another method for generating a block according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of an implementation environment according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic flow chart of a method for generating a block in the implementation environment shown in FIG. 5;
  • FIG. 7 is a schematic flow chart of a method for verifying a block in the implementation environment shown in FIG. 5;
  • FIG. 8 is a schematic structural diagram of a block generating apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure.
  • a blockchain is a decentralized distributed database system in which all nodes in a blockchain network participate in maintenance. It is composed of a series of data blocks generated by cryptography, and each block is a blockchain. One block. According to the order of the generation time, the blocks are linked together in an orderly manner to form a data chain, which is aptly called a blockchain.
  • the generation of the effective block requires the block generating device to correctly solve a mathematical problem that requires calculation.
  • it contains Nonce (Number Once, non-repeating random value)
  • the block header data is hashed.
  • the node device combines the block header data and the block data containing the Nonce into a block for broadcasting, and the other node device recognizes that the block conforms to the format and standard defined by the protocol, This block can be added to the blockchain.
  • the block data may include transaction data broadcast by each node device during a transaction.
  • the embodiment of the present disclosure provides a block generation method, which is applied to a block generation device, and the block generation device has built-in private key information. As shown in FIG. 1, the method includes:
  • the block generating device may be part of any node device in the blockchain network, or may be a separate device that establishes a communication connection with any node device in the blockchain network.
  • the device The block generation device and the node device can be connected through different data buses, for example, USB (Universal) Serial Bus, Universal Ethernet, Bluetooth, Wi-Fi (Wireless-Fidelity), etc.
  • the tile generation device is communicatively coupled to the first node device in the blockchain network.
  • the first node device is a node device in a blockchain network, and may receive transaction data broadcast by other node devices in the blockchain network through a network interface, and the first node device may obtain the transaction data according to the transaction data.
  • the transaction data generates block data.
  • the block generating means can acquire the block data from the first node device to generate a block.
  • the node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, where if the signature verification of the signature block is successful, the signature block is indicated. It is generated by a legitimate block generating device.
  • the private key information built in each block generating device in the blockchain network is different, and the block generating device can broadcast its own public key information to other node devices through a specific node device. In this way, after receiving the signature block issued by a certain node device, the corresponding public key is used for signature authentication. If the signature authentication is successful, it indicates that the issued signature block is legal, that is, the signature block is legal. Generated by the block generation device. That is, the block generating device that generates the signature block has the right to add a new block to the blockchain, and can further perform workload verification verification on the block, and verify whether the block conforms to the format and standard defined by the protocol.
  • the blockchain network can only have the same computing power or The approximate block generating device allocates the public-private key and performs signature verification on the signature block generated by the block generating device, thereby ensuring the consistency of the computing power of each node, and avoiding the single node or a few nodes having the ability to exceed the threshold value calculation. In turn, the formation of "51% attack" is avoided, and the security of the blockchain is improved.
  • the private key and the public key may be allocated only for the tile generating device of the same model and specification.
  • the block chain network adding a new block generating device may be performed by a specific node device, The node device dynamically writes the public key of the newly added block generating device to the blockchain.
  • the block generation device can also protect the algorithm for generating the block and its own private key by hardware, and is not easily acquired by others.
  • the block generating means may include a block processor and a key processor, the block processor unit is responsible for generating a block using a specific algorithm, and the private key built in the block generating device is in the key processing
  • the hardware is used to protect the signature key.
  • the high security cryptographic chip is used, and the key generation, encryption and decryption, signature verification and other calculation processes are all completed in the cryptographic chip to ensure that the signature private key does not leave.
  • a cryptographic chip for high-strength protection of keys is used.
  • the block generating device needs to have a specific algorithm and a signature key to generate a valid block, thereby improving the security of the blockchain network.
  • the first method adopts a specific random number generation method, wherein the target random number generated based on the specific random number generation method may be used for verification by other nodes to confirm whether the target random number is according to the specific random number.
  • the method includes:
  • the block generating device generates a speed for the same block, and can generate the same random number range.
  • the other block generating device may determine that the target is random after obtaining the target random number in the block. Whether the number is within the range of the random number, if the target random number is within the range of the random number, the block can be considered to be verified by the workload proof, and if the target random number is not within the range of the random number, the block can be considered as a block The block is not added to the blockchain by the verification of the workload.
  • the corresponding generated random number range may be relatively large, thereby improving the random number generator. Generating the probability of the range of the random number, thereby increasing the speed of generating the block; when the speed of the currently generated block is too fast, the corresponding generated random number range may be relatively small, thereby reducing the random number generator generated at the random The probability of the range, which in turn reduces the speed at which the block is generated.
  • Method 2 Limit the rate at which random numbers are generated.
  • the method includes:
  • the workload proof in the blockchain can still use the PoW work proof mechanism, that is, hashing the block header data containing the random number, and adjusting the random number to make the hash result Meet certain conditions and require the generated hash value to meet certain conditions, such as the first n bits being 0x0.
  • the random number generator may further include a private key information, and the random number generator performs key processing in the block generating device before starting to generate the random number.
  • the random number generator may be required to send a signature information to verify whether the random number generator is legal. If the signature verification of the random number generator fails, the key processor may refuse to perform the generated block. signature.
  • the random number generator can also perform legality verification on the key processor. In this way, only cracking the random number generator or only cracking the key processor can not generate legal blocks, which improves the security of the blockchain.
  • the embodiment of the present disclosure further provides another block generating method, where the method is applied to a block generating device, as shown in FIG. 4, the method includes:
  • the block generating device itself may include a network connection module for directly accessing the blockchain network, and the battery power supply module enables the device to operate by itself, so that the block generating device can directly obtain the blockchain network.
  • the block generating device may be a separate device communicatively coupled to the node device in the blockchain network, such that the block generating device may acquire the node device from the node device from the blockchain network. The received signature block.
  • S402. Perform signature verification on the signature block according to the public key information.
  • the public key information may be pre-stored by the block generating device, and for the blockchain network with the rights control, the node responsible for the rights allocation in the blockchain network may also be Whether the configuration of the preset public key allows the generation of the block, so that after receiving the signature block sent by other nodes, any node can first verify whether the public key of the node has the right to generate the block, and ensure that the node has the right to generate the block. You can't pretend.
  • the block generating apparatus may also broadcast its own public key information to other node devices through a specific node device (for example, a management node in a private license chain), wherein the specific node device The published public key has the permission to generate the block by default.
  • the signature block is written into the blockchain; if the signature authentication of the signature block fails, Or if the verification of the workload of the signature block fails, the signature block is refused to be written into the blockchain. Further, the manner in which each node determines whether the block is successfully written into the blockchain can follow the existing blockchain protocol, which is not limited in this disclosure.
  • the generation of the signature block can refer to the method shown in FIG. 1 , and details are not described herein again.
  • the foregoing verification of the workload verification of the signature block includes: verifying whether the target random number in the signature block is generated according to a specific random number generation method, if the target The random number is generated according to the specific random number generation method, and it is determined that the workload verification is passed.
  • the verifying whether the target random number in the signature block is generated according to a specific random number generating method includes: determining a random number range according to a speed of the block currently generated by the blockchain network; Whether the target random number is within the random number range, and if the target random number is located within the random number range, determining that the target random number is generated according to the specific random number generating method.
  • the verification of the workload of the signature block may be an existing PoW workload proofing method or a PoS (ProofofStake) mechanism, which is not limited in this disclosure.
  • each block generating device in the blockchain network can perform signature verification on the signature blocks issued by other nodes, and can also calculate the generated blocks. That is to say, the same block generating device can apply the block generating method shown in FIG. 1 or the block generating method shown in FIG. 2.
  • FIG. 5 is a schematic diagram of an implementation environment of an embodiment of the present disclosure.
  • the implementation environment includes a first node device 51 and a second node device 52, wherein the first node device 51 and the second node device 52 are regions. Any two node devices in the blockchain network 50.
  • the first node device 51 is communicatively coupled to the block generating device 511
  • the second node device 52 is communicatively coupled to the block generating device 521.
  • the method on the block generation side includes:
  • the first node device 51 acquires at least one transaction data from the blockchain network 50.
  • the first node device 51 generates block data according to the transaction data.
  • the block data includes the at least one transaction data.
  • the block generating device 511 acquires the block data from the first node device 51.
  • the block generation device 511 sets a random number range according to the current block generation speed, and generates a random number.
  • the block generating device 511 After generating the target random number in the range of the random number, the block generating device 511 generates a block according to the target random number and the block data.
  • the block generating device 511 signs the block by using its own private key to obtain a signature block.
  • the block generating device 511 sends the signature block to the first node device 51.
  • the first node device 51 broadcasts the signature block into the blockchain network 50.
  • the method on the block verification side includes:
  • the second node device 52 receives the signature block broadcast by the first node device 51.
  • the block generating device 521 acquires the signature block from the second node device 52.
  • the block generation device 521 performs signature verification on the signature block by using the public key information.
  • step S704 is performed, and if not, the second node device may discard the signature block and no further processing is continued.
  • the block generating device 521 determines a random number range according to the current block generation speed, and determines whether the target random number in the signature block is located in the random number range.
  • the block generating device 521 sends the determination result to the second node device 52.
  • the second node device 52 adds the signature block to the current blockchain, and if the target random number is not in the random number range, The second node device 52 discards the signature block and refuses to write it to the blockchain.
  • the block generating device 521 of the second node device 52 may also generate a signature block, and broadcast the signature block to the first node device 51 through the second node device 52, the first node device.
  • the block generating device 521 of 51 may perform signature verification on the signature block received by the first node device 51 and subsequent verification of the workload.
  • the block generating device shown in FIG. 5 is a separate device that communicates with the node device.
  • the block generating device may also belong to a part of the node device.
  • FIG. 6 shows In the above method steps, the interaction between the block generating device and the node device is an internal interaction of the node device. This disclosure does not limit this.
  • the block generating device may generate a block without acquiring the transaction data.
  • the block generating apparatus may further determine a block generated by the block generating device and a current block chain before generating a block according to the block data.
  • the number of blocks that differ between the latest blocks in the middle when determining that the number of blocks is not less than a preset threshold m, performing an operation of generating a block, where m is a positive integer greater than or equal to 1, and less than n , n is the number of all node devices in the blockchain network.
  • the size of m is reasonably set, because the same block generating device cannot continuously generate blocks, thereby reducing the "51% attack" caused by the excessive computing power of a certain block generating device. The possibility.
  • the embodiment of the present disclosure further provides a block generating device 80 for implementing a block generating method provided in FIG. 1.
  • the block generating device 80 has built-in private key information, as shown in FIG. Apparatus 80 includes:
  • the key processing module 801 is configured to sign the block generated by the block generating device according to the private key information to obtain a signature block.
  • a publishing module 802 configured to publish the signature block into the blockchain network, where the signature block, after being signed and authenticated, indicates that the signature block is generated by the block generating device of.
  • the block generating device is configured to generate a block by performing a private key signature on the block, obtain a signature block, and publish the signature block to the blockchain network, wherein the signature is After the block is authenticated, the block indicates that the signature block is generated by the block generating device.
  • the block is signed by the private key of the blockchain account to authenticate the account, and the technical solution provided by the present disclosure can also perform identity authentication on the hardware device that generates the block, that is, It is said that the node device in the blockchain network can verify the identity of the block generating device by signature authentication of the signature block, so that for the illegal block generating device, the blockchain network can refuse to add the blockchain network.
  • the generated blocks ensure the security of the blockchain.
  • the block generating device 80 further includes:
  • a first obtaining module 803, configured to acquire block data, where the block data is generated based on transaction data in a blockchain network;
  • a first random number generating module 804 configured to generate a random number according to a specific random number generating method
  • a first block generating module 805 configured to generate a block according to the target random number generated by the specific random number generating method and the block data, where the node device in the blockchain network can verify the target random number Whether it is generated according to the specific random number generation method.
  • the first random number generating module 804 is further configured to: set a random number range according to a speed of the block currently generated by the blockchain network, where the target random number is located in the random number range A random number inside.
  • the block generating device 80 further includes:
  • a second obtaining module 806, configured to acquire block data, where the block data is generated based on transaction data in a blockchain network
  • a second random number generating module 807 configured to set a rate for generating a random number according to a speed of the block currently generated by the blockchain network
  • the second block generating module 808 is configured to generate a random number according to the rate, and when the generated random number and the hash value of the block header data satisfy a preset condition, use the random number as the target random number.
  • the target random number, the block header data, and the block data are grouped into the block.
  • the division performed by the block generating device component module is only one logical function division, and may be further divided when actually implemented.
  • the physical implementation of each module may also be in various manners, which is not limited in this disclosure.
  • the embodiment of the present disclosure further provides another block generating device 90 for implementing a block generating method provided in FIG. 4.
  • the block generating device 90 includes:
  • An obtaining module 901, configured to acquire a signature block in a blockchain network
  • the signature authentication module 902 is configured to perform signature verification on the signature block according to the public key information.
  • the workload verification module 903 is configured to perform workload verification on the signature block after the signature verification is successful;
  • the block adding module 904 is configured to determine whether to add the signature block to the blockchain according to the workload proof verification result.
  • the workload proof module 903 is configured to:
  • Verifying whether the target random number in the signature block is generated according to a specific random number generation method If the target random number is generated according to the specific random number generation method, it is determined that the workload proof verification is passed.
  • the workload proof module 903 is configured to:
  • the division performed by the block generating device component module is only one logical function division, and may be further divided when actually implemented.
  • the physical implementation of each module may also be in various manners, which is not limited in this disclosure.
  • the embodiment of the present disclosure further provides a block generating apparatus 100.
  • the block generating apparatus 100 includes:
  • At least one processor unit (such as processor unit 101 shown in FIG. 10), communication interface 102, memory 103, and communication bus 104; said at least one processor unit, said communication interface 102, and said memory 103 Communication bus 104 completes communication with each other;
  • the memory 103 is configured to store program code, and the at least one processor unit is configured to execute the program code to implement the block generation method illustrated in FIG. 1, with particular reference to the description of the method embodiment described above with respect to FIG.
  • Embodiments of the present disclosure also provide a non-transitory computer readable storage medium including instructions, such as the memory 103 described above, executable by a processor of the apparatus 100 to perform a method for generating a corresponding block.
  • the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • the embodiment of the present disclosure further provides another block generating device 110.
  • the block generating device 110 includes:
  • At least one processor unit (such as processor unit 111 shown in FIG. 12), communication interface 112, memory 113, and communication bus 114; said at least one processor unit, said communication interface 112, and said memory 113 Communication bus 114 completes communication with each other;
  • the memory 113 is configured to store a program code
  • the at least one processor unit is configured to execute the program code to implement the steps of a block generation method illustrated in FIG. 4, with particular reference to the description of the method embodiment described above with respect to FIG.
  • the block generating device 110 may further include other components, such as a power supply, etc., which is not limited in this disclosure.
  • Embodiments of the present disclosure also provide a non-transitory computer readable storage medium including instructions, such as the memory 113 described above, executable by a processor of the apparatus 110 to perform a method for generating a corresponding block.
  • the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • Embodiments of the present disclosure also provide a blockchain network, the blockchain network including at least two node devices.
  • the at least two node devices include a first node device, the first node device includes the above-described block generating device 80 or the block generating device 100; the at least two node devices include a second node device, the first The two-node device includes the above-described block generating device 90 or the block generating device 110.
  • the block generating device with the same computing power is used to form a blockchain network, for example, a blockchain private chain.
  • the consistency can be that the block generating device adopts a specific random number generating algorithm, and the probability of generating blocks by each block generating device is substantially the same, thereby increasing the difficulty of achieving the "51% attack” condition, thereby improving the difficulty.
  • the security of the blockchain is a specific random number generating algorithm, and the probability of generating blocks by each block generating device is substantially the same, thereby increasing the difficulty of achieving the "51% attack" condition, thereby improving the difficulty.

Abstract

A block generation method and apparatus, a storage medium and a block chain network, which are used for solving the problem of an excessive computing power difference between block generation apparatuses in existing block chain networks. The method comprises: signing, according to private key information in a block generation apparatus, a block generated by the block generation apparatus to obtain a signed block (S101); and publishing the signed block in the block chain network (S102), wherein the signed block indicates, after passing signature verification, that the signed block is generated by the block generation apparatus.

Description

区块生成方法、装置、存储介质、区块链网络Block generation method, device, storage medium, blockchain network 技术领域Technical field
本公开涉及区块链技术领域,尤其涉及一种区块生成方法、装置、存储介质、区块链网络。The present disclosure relates to the field of blockchain technology, and in particular, to a block generation method, apparatus, storage medium, and blockchain network.
背景技术Background technique
区块链技术是一种分布式、去中心、去信任的网络数据共识存储技术,其基于独特的区块(Block)生成机制和P2P(Point to Point,点对点)网络通信机制实现了分布式计算的同步性问题。Blockchain technology is a distributed, decentralized, trusted network data consensus storage technology based on a unique block generation mechanism and P2P (Point To Point (point-to-point) network communication mechanism realizes the synchronization problem of distributed computing.
相关技术中,参与区块计算的节点的计算能力参差不齐,为了提高产生区块的几率,计算区块的节点使用的硬件也从CPU(Central Processing Unit,中央处理器)、GPU(Graphics Processing Unit,图形处理器)、FPGA(Field Programmable Gate Array,现场可编程逻辑门阵列)一直演化到ASIC(Application-specific integrated circuit,专用芯片)。In the related art, the computing power of the nodes participating in the block calculation is uneven. In order to increase the probability of generating the block, the hardware used by the node of the calculation block is also from the CPU (Central). Processing Unit, Central Processing Unit), GPU (Graphics Processing Unit, Graphics Processor, FPGA Programmable Gate Array (Field Programmable Logic Gate Array) has evolved to ASIC (Application-specific Integrated circuit, dedicated chip).
由于未对区块生成装置的算力进行限制,导致不同的区块生成装置的算力差异巨大,但是,区块链涉及一个“51%攻击”的场景,即理论上超过51%计算能力的节点或者多个节点,能够对区块链进行“51%攻击”,阻碍区块链的正常运行,对区块链的数据进行破坏。目前,随着单个节点的计算能力的增长,单一或者少数节点一起可以拥有极大的计算能力,这样,在整个区块链网络中各节点的计算能力差异较大的情况下,形成“51%攻击”的条件已经不难达成,威胁了区块链网络的安全性。Since the computational power of the block generation device is not limited, the calculation power of different block generation devices is huge, but the blockchain involves a "51% attack" scenario, that is, theoretically more than 51% of the computing power. A node or multiple nodes can perform a "51% attack" on the blockchain, hinder the normal operation of the blockchain, and destroy the data of the blockchain. At present, with the increase of the computing power of a single node, a single or a few nodes can have great computing power together, so that when the computing power of each node in the entire blockchain network is large, "51%" The conditions of the attack are not difficult to achieve, threatening the security of the blockchain network.
发明内容Summary of the invention
本公开的主要目的是提供一种区块生成方法、装置、存储介质、区块链网络,用以解决现有区块链网络中区块生成装置的算力差异过大的问题。The main object of the present disclosure is to provide a block generation method, device, storage medium, and blockchain network, which are used to solve the problem that the power calculation difference of the block generation device in the existing blockchain network is too large.
为了实现上述目的,本公开第一方面提供一种区块生成方法,所述方法应用于区块生成装置,所述方法包括:In order to achieve the above object, a first aspect of the present disclosure provides a block generation method, the method being applied to a block generation device, the method comprising:
根据所述区块生成装置内置的私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块;And signing the block generated by the block generating device according to the private key information built in the block generating device to obtain a signature block;
将所述签名区块发布到所述区块链网络中,所述区块链网络中接收到所述签名区块的节点设备用于对所述签名区块进行签名认证,其中,若对所述签名区块的签名认证成功,则表明所述签名区块是合法的区块生成装置生成的。Advertising the signature block to the blockchain network, where the node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, where If the signature authentication of the signature block is successful, it indicates that the signature block is generated by a legal block generating device.
本公开第二方面提供一种区块生成方法,所述方法应用于区块生成装置,所述方法包括:A second aspect of the present disclosure provides a block generation method, the method being applied to a block generation device, the method comprising:
获取区块链网络中的签名区块;Obtaining a signature block in the blockchain network;
根据公钥信息对所述签名区块进行签名认证;Performing signature verification on the signature block according to the public key information;
在签名认证成功后,对所述签名区块进行工作量证明验证;After the signature authentication is successful, the workload verification verification is performed on the signature block;
根据工作量证明验证结果确定是否将所述签名区块添加到区块链。It is determined whether the signature block is added to the blockchain according to the workload proof verification result.
本公开第三方面提供一种区块生成装置,所述区块生成装置内置有私钥信息,所述区块生成装置包括:A third aspect of the present disclosure provides a block generating apparatus, the block generating apparatus having built-in private key information, and the block generating apparatus includes:
密钥处理模块,用于根据所述私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块;a key processing module, configured to sign a block generated by the block generating device according to the private key information, to obtain a signature block;
发布模块,用于将所述签名区块发布到所述区块链网络中,所述区块链网络中接收到所述签名区块的节点设备用于对所述签名区块进行签名认证,其中,若对所述签名区块的签名认证成功,则表明所述签名区块是合法的区块生成装置生成的。a publishing module, configured to publish the signature block to the blockchain network, where a node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, Wherein, if the signature verification of the signature block is successful, it indicates that the signature block is generated by a legal block generating device.
本公开第四方面提供一种区块生成装置,包括:A fourth aspect of the present disclosure provides a block generating apparatus, including:
获取模块,用于获取区块链网络中的签名区块;An obtaining module, configured to acquire a signature block in a blockchain network;
签名认证模块,用于根据公钥信息对所述签名区块进行签名认证;a signature authentication module, configured to perform signature verification on the signature block according to the public key information;
工作量证明模块,用于在签名认证成功后,对所述签名区块进行工作量证明验证;a workload verification module, configured to perform workload verification on the signature block after the signature verification is successful;
区块添加模块,用于根据工作量证明验证结果确定是否将所述签名区块添加到区块链。A block adding module is configured to determine whether to add the signature block to the blockchain according to the workload proof verification result.
本公开第五方面提供一种区块生成装置,包括:A fifth aspect of the present disclosure provides a block generating apparatus, including:
至少一个处理器单元、通信接口、存储器和通信总线;所述至少一个处理器单元、所述通信接口和所述存储器通过所述通信总线完成相互间的通信;At least one processor unit, a communication interface, a memory, and a communication bus; the at least one processor unit, the communication interface, and the memory complete communication with each other through the communication bus;
所述存储器被配置为存储程序代码;The memory is configured to store program code;
所述至少一个处理器单元被配置为运行所述程序代码以实现第一方面所述的方法。The at least one processor unit is configured to execute the program code to implement the method of the first aspect.
本公开第六方面提供一种区块生成装置,包括:A sixth aspect of the present disclosure provides a block generating apparatus, including:
至少一个处理器单元、通信接口、存储器和通信总线;所述至少一个处理器单元、所述通信接口和所述存储器通过所述通信总线完成相互间的通信;At least one processor unit, a communication interface, a memory, and a communication bus; the at least one processor unit, the communication interface, and the memory complete communication with each other through the communication bus;
所述存储器被配置为存储程序代码;The memory is configured to store program code;
所述至少一个处理器单元被配置为运行所述程序代码以实现第二方面所述的方法。The at least one processor unit is configured to execute the program code to implement the method of the second aspect.
本公开第七方面提供一种区块链网络,所述区块链网络包括至少两个节点设备;A seventh aspect of the present disclosure provides a blockchain network, the blockchain network including at least two node devices;
所述至少两个节点设备包括第一节点设备,所述第一节点设备包括第三方面或者第五方面所述的区块生成装置;The at least two node devices include a first node device, where the first node device includes the block generating device of the third aspect or the fifth aspect;
所述至少两个节点设备包括第二节点设备,所述第二节点设备包括第四方面或者第六方面所述的区块生成装置。The at least two node devices include a second node device, and the second node device includes the block generating device of the fourth aspect or the sixth aspect.
本公开第八方面提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序包括用于执行第一方面所述的方法的指令。An eighth aspect of the present disclosure provides a computer readable storage medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect.
本公开第九方面提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序包括用于执行第二方面所述的方法的指令。A ninth aspect of the present disclosure provides a computer readable storage medium for storing a computer program, the computer program comprising instructions for performing the method of the second aspect.
采用上述技术方案,区块生成装置生成区块后,对区块进行私钥签名,得到签名区块,并将所述签名区块发布到区块链网络中,所述区块链网络中接收到所述签名区块的节点设备用于对所述签名区块进行签名认证,其中,若对所述签名区块的签名认证成功,则表明所述签名区块是合法的区块生成装置生成的。这样,相比现有技术中仅通过区块链账户的私钥对区块进行签名以便对账户进行身份认证,本公开提供的技术方案对生成区块的硬件装置也可以进行身份认证,也就是说,区块链网络中的节点设备可以通过对签名区块的签名认证验证该区块生成装置的身份,从而对于非法的区块生成装置,区块链网络可以拒绝在区块链中添加其生成的区块,保证了区块链的安全性。With the above technical solution, after the block generating device generates the block, the block is privately signed, the signature block is obtained, and the signature block is released into the blockchain network, and the blockchain network receives the block. And the node device to the signature block is configured to perform signature verification on the signature block, wherein if the signature verification of the signature block is successful, it indicates that the signature block is generated by a legal block generation device. of. In this way, compared with the prior art, the block is signed by the private key of the blockchain account to authenticate the account, and the technical solution provided by the present disclosure can also perform identity authentication on the hardware device that generates the block, that is, It is said that the node device in the blockchain network can verify the identity of the block generating device by signature authentication of the signature block, so that for the illegal block generating device, the blockchain network can refuse to add the blockchain network. The generated blocks ensure the security of the blockchain.
附图说明DRAWINGS
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are the disclosure of the present disclosure. For some embodiments, other drawings may be obtained from those of ordinary skill in the art without departing from the drawings.
图1为本公开实施例提供的一种区块生成方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a method for generating a block according to an embodiment of the present disclosure;
图2为本公开实施例提供的区块生成装置一种生成区块的流程示意图;FIG. 2 is a schematic flowchart of generating a block by a block generating apparatus according to an embodiment of the present disclosure;
图3为本公开实施例提供的区块生成装置另一种生成区块的流程示意图;FIG. 3 is a schematic flowchart of another generated block of a block generating apparatus according to an embodiment of the present disclosure;
图4为本公开实施例提供的另一种区块生成方法的流程示意图;FIG. 4 is a schematic flowchart diagram of another method for generating a block according to an embodiment of the present disclosure;
图5为本公开实施例提供的一种实施环境的示意图;FIG. 5 is a schematic diagram of an implementation environment according to an embodiment of the present disclosure;
图6为图5所示的实施环境中区块生成侧的方法流程示意图;6 is a schematic flow chart of a method for generating a block in the implementation environment shown in FIG. 5;
图7为图5所示的实施环境中区块验证侧的方法流程示意图;7 is a schematic flow chart of a method for verifying a block in the implementation environment shown in FIG. 5;
图8为本公开实施例提供的一种区块生成装置的结构示意图;FIG. 8 is a schematic structural diagram of a block generating apparatus according to an embodiment of the present disclosure;
图9为本公开实施例提供的另一种区块生成装置的结构示意图;FIG. 9 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure;
图10为本公开实施例提供的另一种区块生成装置的结构示意图;FIG. 10 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure;
图11为本公开实施例提供的另一种区块生成装置的结构示意图;FIG. 11 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure;
图12为本公开实施例提供的另一种区块生成装置的结构示意图。FIG. 12 is a schematic structural diagram of another block generating apparatus according to an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the drawings in the embodiments of the present disclosure. It is a partial embodiment of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without departing from the inventive scope are the scope of the disclosure.
为了使本领域技术人员更容易理解本公开实施例提供的技术方案,下面首先对涉及到的相关技术进行简单介绍。In order to make it easier for a person skilled in the art to understand the technical solutions provided by the embodiments of the present disclosure, the related technologies involved will be briefly introduced below.
区块链是由区块链网络中所有节点共同参与维护的去中心化分布式数据库系统,它是由一系列基于密码学方法产生的数据块组成,每个数据块即为区块链中的一个区块。根据产生时间的先后顺序,区块被有序地链接在一起,形成一个数据链条,被形象地称为区块链。A blockchain is a decentralized distributed database system in which all nodes in a blockchain network participate in maintenance. It is composed of a series of data blocks generated by cryptography, and each block is a blockchain. One block. According to the order of the generation time, the blocks are linked together in an orderly manner to form a data chain, which is aptly called a blockchain.
在基于PoW(Proof of Work,工作量证明)的区块产生机制中,有效区块的产生要求区块生成装置正确解出一个需要计算量的数学难题,一般情况下是对含有Nonce(Number once,非重复的随机数值)的区块头部数据进行哈希运算,通过对Nonce进行调整,使得哈希结果满足特定条件,并要求生成的哈希值满足特定条件,如前n个位为0x0。在计算出满足特定条件的哈希结果后,节点设备将含有Nonce的区块头部数据和区块数据组合成区块进行广播,其它节点设备认可此区块符合协议定义的格式和标准后,即可将该区块添加到区块链上。具体可参照比特币(bitcoin)应用。其中,该区块数据可以包括各个节点设备在转账(Transaction)过程中广播的交易数据。Based on PoW (Proof In the block generation mechanism of the Work, the generation of the effective block requires the block generating device to correctly solve a mathematical problem that requires calculation. In general, it contains Nonce (Number Once, non-repeating random value) The block header data is hashed. By adjusting the Nonce, the hash result satisfies certain conditions, and the generated hash value is required to meet certain conditions, such as the first n bits. 0x0. After calculating the hash result satisfying the specific condition, the node device combines the block header data and the block data containing the Nonce into a block for broadcasting, and the other node device recognizes that the block conforms to the format and standard defined by the protocol, This block can be added to the blockchain. For details, refer to the bitcoin application. The block data may include transaction data broadcast by each node device during a transaction.
本公开实施例提供一种区块生成方法,该方法应用于区块生成装置,所述区块生成装置内置有私钥信息,如图1所示,该方法包括:The embodiment of the present disclosure provides a block generation method, which is applied to a block generation device, and the block generation device has built-in private key information. As shown in FIG. 1, the method includes:
S101、根据区块生成装置内置的私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块。S101. Sign the block generated by the block generating device according to the private key information built in the block generating device to obtain a signature block.
其中,该区块生成装置可以是区块链网络中的任一节点设备的一部分,也可以是与所述区块链网络中的任一节点设备建立通信连接的一独立装置,具体地,该区块生成装置和节点设备之间可以通过不同的数据总线进行连接,例如,USB(Universal Serial Bus,通用串行总线)、Ethernet(以太网)、Bluetooth(蓝牙)、Wi-Fi(Wireless-Fidelity)等。The block generating device may be part of any node device in the blockchain network, or may be a separate device that establishes a communication connection with any node device in the blockchain network. Specifically, the device The block generation device and the node device can be connected through different data buses, for example, USB (Universal) Serial Bus, Universal Ethernet, Bluetooth, Wi-Fi (Wireless-Fidelity), etc.
示例地,区块生成装置与区块链网络中的第一节点设备通信相连。所述第一节点设备是区块链网络中的节点设备,其可以通过网络接口接收区块链网络中的其他节点设备广播的交易数据,该第一节点设备在获取到交易数据后,可以根据该交易数据生成区块数据。这样,该区块生成装置可以从所述第一节点设备获取到区块数据,以生成区块。Illustratively, the tile generation device is communicatively coupled to the first node device in the blockchain network. The first node device is a node device in a blockchain network, and may receive transaction data broadcast by other node devices in the blockchain network through a network interface, and the first node device may obtain the transaction data according to the transaction data. The transaction data generates block data. In this way, the block generating means can acquire the block data from the first node device to generate a block.
S102、将所述签名区块发布到区块链网络中。S102. Publish the signature block into a blockchain network.
所述区块链网络中接收到所述签名区块的节点设备用于对所述签名区块进行签名认证,其中,若对所述签名区块的签名认证成功,则表明所述签名区块是合法的区块生成装置生成的。And the node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, where if the signature verification of the signature block is successful, the signature block is indicated. It is generated by a legitimate block generating device.
值得说明的是,区块链网络中的每一区块生成装置内置的私钥信息均不同,并且,区块生成装置可以将自身的公钥信息通过特定的节点设备广播至其他节点设备。这样,在接收到某一节点设备发布的签名区块后,采用相应的公钥进行签名认证,若签名认证成功,则表明发布的签名区块合法,也就是说,该签名区块是合法的区块生成装置生成的。即表明生成该签名区块的区块生成装置具备向区块链中添加新区块的权利,可进一步对区块进行工作量证明验证,以及验证区块是否符合协议定义的格式和标准。若对签名区块签名认证设备,则拒绝在区块链中添加该区块,保证了区块链的安全性,也就是说,在具体实施时,区块链网络可以仅对算力一致或者近似的区块生成装置分配公私钥,并对区块生成装置生成的签名区块进行签名认证,从而确保了各个节点算力的一致性,避免单个节点或者少数节点一起具有超越阈值得计算能力,进而避免了“51%攻击”的形成,提升了区块链的安全性。It should be noted that the private key information built in each block generating device in the blockchain network is different, and the block generating device can broadcast its own public key information to other node devices through a specific node device. In this way, after receiving the signature block issued by a certain node device, the corresponding public key is used for signature authentication. If the signature authentication is successful, it indicates that the issued signature block is legal, that is, the signature block is legal. Generated by the block generation device. That is, the block generating device that generates the signature block has the right to add a new block to the blockchain, and can further perform workload verification verification on the block, and verify whether the block conforms to the format and standard defined by the protocol. If the signature device is signed and authenticated, the block is refused to be added in the blockchain, which ensures the security of the blockchain. That is to say, in the specific implementation, the blockchain network can only have the same computing power or The approximate block generating device allocates the public-private key and performs signature verification on the signature block generated by the block generating device, thereby ensuring the consistency of the computing power of each node, and avoiding the single node or a few nodes having the ability to exceed the threshold value calculation. In turn, the formation of "51% attack" is avoided, and the security of the blockchain is improved.
具体地,区块链网络在初始化时,可以只为采用相同型号和规格的区块生成装置分配私钥和公钥。初始化完毕后,在添加新的区块生成装置时,也可以只允许算力相近的区块生成装置加入,其中,区块链网络添加新的区块生成装置可以通过特定的节点设备进行,由该节点设备动态的向区块链写入新添加的区块生成装置的公钥。Specifically, when the blockchain network is initialized, the private key and the public key may be allocated only for the tile generating device of the same model and specification. After the initialization is completed, when a new block generating device is added, only the block generating device with similar computing power may be allowed to join, wherein the block chain network adding a new block generating device may be performed by a specific node device, The node device dynamically writes the public key of the newly added block generating device to the blockchain.
另外,区块生成装置还可以通过硬件的方式对生成区块的算法以及自身的私钥进行保护,不易被他人获取。例如,区块生成装置可以包括一区块处理器以及一密钥处理器,该区块处理器单元负责采用特定的算法生成区块,该区块生成装置内置的私钥处于所述密钥处理器内,从而实现利用硬件对签名密钥进行保护,如采用高安全性密码芯片,其密钥的产生,加解密、签名验签等计算过程均在密码芯片内完成,确保签名私钥不离开密码芯片,从而实现对密钥的高强度保护。In addition, the block generation device can also protect the algorithm for generating the block and its own private key by hardware, and is not easily acquired by others. For example, the block generating means may include a block processor and a key processor, the block processor unit is responsible for generating a block using a specific algorithm, and the private key built in the block generating device is in the key processing In the device, the hardware is used to protect the signature key. For example, the high security cryptographic chip is used, and the key generation, encryption and decryption, signature verification and other calculation processes are all completed in the cryptographic chip to ensure that the signature private key does not leave. A cryptographic chip for high-strength protection of keys.
这样,在具备区块处理器和密钥处理器的情况下,区块生成装置要生成有效的区块,需同时具备特定的算法以及签名密钥,提升了区块链网络的安全性。Thus, in the case of a block processor and a key processor, the block generating device needs to have a specific algorithm and a signature key to generate a valid block, thereby improving the security of the blockchain network.
为了使本领域技术人员更加理解本公开实施例提供的技术方案,下面对区块生成装置生成区块的算法进行举例说明。In order to make those skilled in the art more understand the technical solutions provided by the embodiments of the present disclosure, an algorithm for generating a block by the block generating device is exemplified below.
方式一、采用特定的随机数生成方法,其中,基于该特定的随机数生成方法生成的目标随机数,可以被用于其他节点进行验证,以确认该目标随机数是否为根据所述特定随机数产生方法产生的。示例地,如图2所示,该方法包括:The first method adopts a specific random number generation method, wherein the target random number generated based on the specific random number generation method may be used for verification by other nodes to confirm whether the target random number is according to the specific random number. Produced by the method. For example, as shown in FIG. 2, the method includes:
S201、获取区块数据,该区块数据是基于区块链网络中的交易数据生成的。S201. Acquire block data, where the block data is generated based on transaction data in a blockchain network.
S202、根据该区块链网络当前产生区块的速度,设定一随机数范围,并产生随机数。S202. Set a random number range according to the speed of the block currently generated by the blockchain network, and generate a random number.
S203、根据产生的目标随机数与该区块数据生成区块,其中,该目标随机数为位于该随机数范围内的随机数。S203. Generate a block according to the generated target random number and the block data, wherein the target random number is a random number located within the random number range.
其中,区块生成装置针对相同的区块产生速度,可以产生相同的随机数范围。这样,与现有的区块链中通常采用的PoW工作量证明机制不同,本公开实施例中,其他区块生成装置在获取到区块中的目标随机数后,即可通过判断该目标随机数是否位于该随机数范围内,若该目标随机数位于该随机数范围内,即可认为区块通过工作量证明验证,若该目标随机数不处于该随机数范围内,即可认为区块未通过工作量证明验证,可拒绝将该区块添加到区块链中。Wherein, the block generating device generates a speed for the same block, and can generate the same random number range. In this way, unlike the PoW workload proofing mechanism generally used in the existing blockchain, in the embodiment of the present disclosure, after acquiring the target random number in the block, the other block generating device may determine that the target is random after obtaining the target random number in the block. Whether the number is within the range of the random number, if the target random number is within the range of the random number, the block can be considered to be verified by the workload proof, and if the target random number is not within the range of the random number, the block can be considered as a block The block is not added to the blockchain by the verification of the workload.
另外,值得说明的是,为了对区块链网络中生成区块的速率进行调控,在当前产生区块的速度过慢时,对应生成的随机数范围可以相对较大,从而提高随机数生成器产生位于该随机数范围的概率,进而提高产生区块的速度;在当前产生区块的速度过快时,对应生成的随机数范围可以相对较小,从而减小随机数生成器产生位于该随机数范围的概率,进而降低产生区块的速度。In addition, it is worth noting that, in order to regulate the rate of generating blocks in the blockchain network, when the speed of the currently generated block is too slow, the corresponding generated random number range may be relatively large, thereby improving the random number generator. Generating the probability of the range of the random number, thereby increasing the speed of generating the block; when the speed of the currently generated block is too fast, the corresponding generated random number range may be relatively small, thereby reducing the random number generator generated at the random The probability of the range, which in turn reduces the speed at which the block is generated.
方式二、限定随机数产生的速率。示例地,如图3所示,该方法包括:Method 2: Limit the rate at which random numbers are generated. For example, as shown in FIG. 3, the method includes:
S301、获取区块数据,该区块数据是基于区块链网络中的交易数据生成的。S301. Acquire block data, where the block data is generated based on transaction data in a blockchain network.
S302、根据所述区块链网络当前产生区块的速度,设定生成随机数的速率。S302. Set a rate at which a random number is generated according to a speed at which the blockchain network currently generates a block.
S303、根据所述速率生成随机数,并在生成的随机数与区块头数据的哈希值满足预设条件时,将所述随机数作为所述目标随机数,将所述目标随机数,所述区块头数据以及所述区块数据组成所述区块。S303. Generate a random number according to the rate, and when the generated random number and the hash value of the block header data satisfy a preset condition, use the random number as the target random number, and use the target random number. The block header data and the block data constitute the block.
在方式二的情况下,区块链中的工作量证明仍然可以采用PoW工作证明机制,即对含有随机数的区块头部数据进行哈希运算,通过对随机数进行调整,使得哈希结果满足特定条件,并要求生成的哈希值满足特定条件,如前n个位为0x0。In the case of mode 2, the workload proof in the blockchain can still use the PoW work proof mechanism, that is, hashing the block header data containing the random number, and adjusting the random number to make the hash result Meet certain conditions and require the generated hash value to meet certain conditions, such as the first n bits being 0x0.
值得说明的是,上述举例说明的产生随机数的算法均可以集成在区块生成装置中的随机数生成器中,保护算法不被轻易获得。并且,在方式二中,为了避免随机数生成器被替换,该随机数生成器还可以内置有一私钥信息,该随机数生成器在开始生成随机数之前,区块生成装置中的密钥处理器可以要求该随机数生成器发送一签名信息,以便验证该随机数生成器是否合法,若对该随机数生成器的签名认证未通过,则该密钥处理器可以拒绝为生成的区块进行签名。同理,该随机数生成器也可以对密钥处理器进行合法性认证。这样,仅破解随机数生成器或者仅破解密钥处理器均是无法产生合法区块的,提高了区块链的安全性。It should be noted that the above-exemplified algorithms for generating random numbers can be integrated into the random number generator in the block generating device, and the protection algorithm is not easily obtained. Moreover, in the second method, in order to prevent the random number generator from being replaced, the random number generator may further include a private key information, and the random number generator performs key processing in the block generating device before starting to generate the random number. The random number generator may be required to send a signature information to verify whether the random number generator is legal. If the signature verification of the random number generator fails, the key processor may refuse to perform the generated block. signature. Similarly, the random number generator can also perform legality verification on the key processor. In this way, only cracking the random number generator or only cracking the key processor can not generate legal blocks, which improves the security of the blockchain.
本公开实施例还提供另一区块生成方法,所述方法应用于区块生成装置,如图4所示,所述方法包括:The embodiment of the present disclosure further provides another block generating method, where the method is applied to a block generating device, as shown in FIG. 4, the method includes:
S401、获取区块链网络中的签名区块。S401. Acquire a signature block in a blockchain network.
其中,该区块生成装置自身可以包括网络连接模块用于直接接入区块链网络,以及电池供电模块使此装置能够自行运作,这样,该区块生成装置可以直接从区块链网络中获取到其他节点发送的签名区块。可选地,该区块生成装置可以是与区块链网络中的节点设备通信连接的一独立装置,这样,该区块生成装置可以从该节点设备获取到该节点设备从区块链网络中接收到的签名区块。The block generating device itself may include a network connection module for directly accessing the blockchain network, and the battery power supply module enables the device to operate by itself, so that the block generating device can directly obtain the blockchain network. A signature block sent to other nodes. Optionally, the block generating device may be a separate device communicatively coupled to the node device in the blockchain network, such that the block generating device may acquire the node device from the node device from the blockchain network. The received signature block.
S402、根据公钥信息对所述签名区块进行签名认证。S402. Perform signature verification on the signature block according to the public key information.
其中,在一种可能的实现方式中,公钥信息可以是该区块生成装置预先储存的,并且,对于具备权限控制的区块链网络,该区块链网络中负责权限分配的节点还可以对预置的公钥配置是否允许产生区块的权限,这样,任一节点在接收到其他节点发送的签名区块后,还可以首先验证该节点的公钥是否具备产生区块的权限,确保了不可冒充。在另一种可能的实现方式中,区块生成装置还可以将自身的公钥信息通过特定的节点设备(例如私有许可链中的管理节点)广播至其他节点设备,其中,该特定的节点设备发布的公钥默认均具备产生区块的权限。In a possible implementation manner, the public key information may be pre-stored by the block generating device, and for the blockchain network with the rights control, the node responsible for the rights allocation in the blockchain network may also be Whether the configuration of the preset public key allows the generation of the block, so that after receiving the signature block sent by other nodes, any node can first verify whether the public key of the node has the right to generate the block, and ensure that the node has the right to generate the block. You can't pretend. In another possible implementation manner, the block generating apparatus may also broadcast its own public key information to other node devices through a specific node device (for example, a management node in a private license chain), wherein the specific node device The published public key has the permission to generate the block by default.
S403、在签名认证成功后,对所述签名区块进行工作量证明验证。S403. After the signature authentication is successful, perform verification of the workload verification on the signature block.
S404、根据工作量证明验证结果确定是否将所述签名区块添加到区块链。S404. Determine, according to the workload verification result, whether to add the signature block to the blockchain.
具体地,若对签名区块的签名认证成功,且对该签名区块的工作量证明验证成功,则将该签名区块写入到区块链中;若对签名区块的签名认证失败,或者对所述签名区块的工作量证明验证失败,则拒绝将该签名区块写入区块链。进一步地,每一节点判断区块是否成功写入区块链的方式可以遵循现有区块链协议,本公开对此不做限定。Specifically, if the signature verification of the signature block is successful, and the verification of the workload of the signature block is successful, the signature block is written into the blockchain; if the signature authentication of the signature block fails, Or if the verification of the workload of the signature block fails, the signature block is refused to be written into the blockchain. Further, the manner in which each node determines whether the block is successfully written into the blockchain can follow the existing blockchain protocol, which is not limited in this disclosure.
值得说明的是,签名区块的生成可以参照图1所示的方法,此处不再赘述。It should be noted that the generation of the signature block can refer to the method shown in FIG. 1 , and details are not described herein again.
另外,参照图2和图3所示的区块生成方式,不同的生成方式对应的工作量证明验证也不同。In addition, referring to the block generation method shown in FIG. 2 and FIG. 3, the verification of the workload corresponding to different generation modes is also different.
例如,在采用方式一的情况下,上述对所述签名区块进行工作量证明验证包括:验证所述签名区块中的目标随机数是否为根据特定随机数产生方法产生的,若所述目标随机数是根据所述特定随机数产生方法产生的,则确定工作量证明验证通过。具体地,所述验证所述签名区块中的目标随机数是否为根据特定随机数产生方法产生的,包括:根据所述区块链网络当前产生区块的速度,确定一随机数范围;判断所述目标随机数是否位于所述随机数范围内,若所述目标随机数位于所述随机数范围内,则确定所述目标随机数是根据所述特定随机数产生方法产生的。For example, in the case of adopting mode 1, the foregoing verification of the workload verification of the signature block includes: verifying whether the target random number in the signature block is generated according to a specific random number generation method, if the target The random number is generated according to the specific random number generation method, and it is determined that the workload verification is passed. Specifically, the verifying whether the target random number in the signature block is generated according to a specific random number generating method includes: determining a random number range according to a speed of the block currently generated by the blockchain network; Whether the target random number is within the random number range, and if the target random number is located within the random number range, determining that the target random number is generated according to the specific random number generating method.
在采用方式二的情况下,上述对所述签名区块进行工作量证明验证可以为现有的PoW工作量证明方式,或者PoS(ProofofStake,权益证明)机制,本公开对此不做限定。In the case of the second mode, the verification of the workload of the signature block may be an existing PoW workload proofing method or a PoS (ProofofStake) mechanism, which is not limited in this disclosure.
值得说明的是,区块链网络中的每一区块生成装置既能够对其他节点发布的签名区块进行签名验证,还可以计算生成区块。也就是说,同一区块生成装置,既可以应用图1所示的区块生成方法,又可以应用图2所示的区块生成方法。It is worth noting that each block generating device in the blockchain network can perform signature verification on the signature blocks issued by other nodes, and can also calculate the generated blocks. That is to say, the same block generating device can apply the block generating method shown in FIG. 1 or the block generating method shown in FIG. 2.
下面结合区块生成侧以及区块验证侧对本公开实施例提供的技术方案进行详细说明。The technical solutions provided by the embodiments of the present disclosure are described in detail below in conjunction with the block generation side and the block verification side.
图5是本公开实施例的一种实施环境示意图,如图所示,该实施环境包括第一节点设备51和第二节点设备52,其中,第一节点设备51和第二节点设备52是区块链网络50中的任意两个节点设备。第一节点设备51与区块生成装置511通信相连,第二节点设备52与区块生成装置521通信相连。FIG. 5 is a schematic diagram of an implementation environment of an embodiment of the present disclosure. As shown, the implementation environment includes a first node device 51 and a second node device 52, wherein the first node device 51 and the second node device 52 are regions. Any two node devices in the blockchain network 50. The first node device 51 is communicatively coupled to the block generating device 511, and the second node device 52 is communicatively coupled to the block generating device 521.
结合图5,本公开实施例提供的一种区块生成方法如图6和图7所示,如图6所示,区块生成侧的方法包括:With reference to FIG. 5, a block generation method according to an embodiment of the present disclosure is shown in FIG. 6 and FIG. 7. As shown in FIG. 6, the method on the block generation side includes:
S601、第一节点设备51从区块链网络50中获取至少一笔交易数据。S601. The first node device 51 acquires at least one transaction data from the blockchain network 50.
S602、第一节点设备51根据所述交易数据生成区块数据。S602. The first node device 51 generates block data according to the transaction data.
其中,所述区块数据包括所述至少一笔交易数据。The block data includes the at least one transaction data.
S603、区块生成装置511从所述第一节点设备51获取该区块数据。S603. The block generating device 511 acquires the block data from the first node device 51.
S604、区块生成装置511根据当前的区块产生速度,设定一随机数范围,并产生随机数。S604. The block generation device 511 sets a random number range according to the current block generation speed, and generates a random number.
S605、区块生成装置511产生位于该随机数范围内的目标随机数后,根据该目标随机数以及该区块数据生成区块。S605. After generating the target random number in the range of the random number, the block generating device 511 generates a block according to the target random number and the block data.
S606、区块生成装置511利用自身的私钥对所述区块进行签名,得到签名区块。S606. The block generating device 511 signs the block by using its own private key to obtain a signature block.
S607、区块生成装置511将该签名区块发送给第一节点设备51。S607. The block generating device 511 sends the signature block to the first node device 51.
S608、第一节点设备51将该签名区块广播到区块链网络50中。S608. The first node device 51 broadcasts the signature block into the blockchain network 50.
如图7所示,区块验证侧的方法包括:As shown in FIG. 7, the method on the block verification side includes:
S701、第二节点设备52接收到第一节点设备51广播的所述签名区块。S701. The second node device 52 receives the signature block broadcast by the first node device 51.
S702、区块生成装置521从该第二节点设备52获取该签名区块。S702. The block generating device 521 acquires the signature block from the second node device 52.
S703、区块生成装置521利用公钥信息对所述签名区块进行签名验证。S703. The block generation device 521 performs signature verification on the signature block by using the public key information.
进一步地,若签名验证成功,则执行步骤S704,若否,则第二节点设备可以丢弃所述签名区块,不再继续处理。Further, if the signature verification is successful, step S704 is performed, and if not, the second node device may discard the signature block and no further processing is continued.
S704、在签名认证成功后,区块生成装置521根据当前的区块产生速度,确定一随机数范围,并判断签名区块中的目标随机数是否位于该随机数范围内。S704. After the signature authentication succeeds, the block generating device 521 determines a random number range according to the current block generation speed, and determines whether the target random number in the signature block is located in the random number range.
S705、区块生成装置521将判断结果发送给第二节点设备52。S705. The block generating device 521 sends the determination result to the second node device 52.
S706、若该目标随机数是否位于该随机数范围内,则第二节点设备52根据将所述签名区块添加到当前区块链中,若该目标随机数未处于该随机数范围内,则第二节点设备52丢弃所述签名区块,拒绝将其写入区块链。S706. If the target random number is located in the random number range, the second node device 52 adds the signature block to the current blockchain, and if the target random number is not in the random number range, The second node device 52 discards the signature block and refuses to write it to the blockchain.
值得说明的是,上述过程中,第二节点设备52的区块生成装置521也可以生成签名区块,并通过第二节点设备52将签名区块广播到第一节点设备51,第一节点设备51的区块生成装置521可以对第一节点设备51接收到的签名区块进行签名验证以及后续的工作量证明验证,具体参照上述方法步骤,此处不再赘述。It should be noted that, in the above process, the block generating device 521 of the second node device 52 may also generate a signature block, and broadcast the signature block to the first node device 51 through the second node device 52, the first node device. The block generating device 521 of 51 may perform signature verification on the signature block received by the first node device 51 and subsequent verification of the workload. For details, refer to the above method steps, and details are not described herein again.
上述只是举例说明,图5所示的区块生成装置为与节点设备通信的一独立装置,可替换地,区块生成装置也可以属于节点设备的一部分,在此种情况下,图6示出的上述方法步骤中,涉及到区块生成装置与节点设备之间的交互均为节点设备内部的交互。本公开对此不做限定。The above is merely an example. The block generating device shown in FIG. 5 is a separate device that communicates with the node device. Alternatively, the block generating device may also belong to a part of the node device. In this case, FIG. 6 shows In the above method steps, the interaction between the block generating device and the node device is an internal interaction of the node device. This disclosure does not limit this.
另外,对于上述方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本公开所必须的,例如,区块生成装置在未获取到交易数据的情况下,也可以产生区块。In addition, for the above method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments described in the specification belong to the preferred embodiment, and the actions involved are It is not necessarily required by the present disclosure. For example, the block generating device may generate a block without acquiring the transaction data.
在本公开实施例的一种可能的实现方式,该区块生成装置在根据所述区块数据生成区块之前,还可以确定所述区块生成装置最近一次生成的区块与当前区块链中的最新区块之间相差的区块数,在确定所述区块数不小于预设阈值m时,执行生成区块的操作,其中,m为大于或等于1,且小于n的正整数,n是所述区块链网络中所有节点设备的数目。In a possible implementation manner of the embodiment of the present disclosure, the block generating apparatus may further determine a block generated by the block generating device and a current block chain before generating a block according to the block data. The number of blocks that differ between the latest blocks in the middle, when determining that the number of blocks is not less than a preset threshold m, performing an operation of generating a block, where m is a positive integer greater than or equal to 1, and less than n , n is the number of all node devices in the blockchain network.
也就是说,区块生成装置在生成一次区块后,需要间隔m个区块后,才能再次生成区块。其中,m具体可以根据实际需求进行设置。例如,m=n-1,即区块生成装置需要间隔n-1区块后才能再次产生区块,在此种情况下,所有n个区块生成装置均必须保持正常工作,否则区块链的区块生成工作会停止。又例如m=1,则区块生成装置每间隔一个区块即可再次生成区块,在此种情况下,m+1个被恶意控制节点即可形成“51%攻击”。That is to say, after the block generating device generates the primary block, it needs to be separated by m blocks before the block can be generated again. Among them, m can be set according to actual needs. For example, m=n-1, that is, the block generating device needs to block the n-1 block to generate the block again. In this case, all n block generating devices must maintain normal operation, otherwise the blockchain The block generation work will stop. For another example, m=1, the block generating device can generate the block again every interval of the block. In this case, m+1 maliciously controlled nodes can form a “51% attack”.
这样,基于区块链网络的实际情况,合理设置m的大小,由于同一区块生成装置不能连续产生区块,从而降低了某一区块生成装置的算力过高产生的“51%攻击”的可能性。In this way, based on the actual situation of the blockchain network, the size of m is reasonably set, because the same block generating device cannot continuously generate blocks, thereby reducing the "51% attack" caused by the excessive computing power of a certain block generating device. The possibility.
本公开实施例还提供一种区块生成装置80,用于实施图1提供的一种区块生成方法,所述区块生成装置80内置私钥信息,如图8所示,该区块生成装置80包括:The embodiment of the present disclosure further provides a block generating device 80 for implementing a block generating method provided in FIG. 1. The block generating device 80 has built-in private key information, as shown in FIG. Apparatus 80 includes:
密钥处理模块801,用于根据所述私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块;The key processing module 801 is configured to sign the block generated by the block generating device according to the private key information to obtain a signature block.
发布模块802,用于将所述签名区块发布到所述区块链网络中,其中,所述签名区块在被签名认证通过后,表明所述签名区块是所述区块生成装置生成的。a publishing module 802, configured to publish the signature block into the blockchain network, where the signature block, after being signed and authenticated, indicates that the signature block is generated by the block generating device of.
采用上述区块生成装置,该区块生成装置生成区块后,对区块进行私钥签名,得到签名区块,并将所述签名区块发布到区块链网络中,其中,所述签名区块在被签名认证通过后,表明所述签名区块是所述区块生成装置生成的。这样,相比现有技术中仅通过区块链账户的私钥对区块进行签名以便对账户进行身份认证,本公开提供的技术方案对生成区块的硬件装置也可以进行身份认证,也就是说,区块链网络中的节点设备可以通过对签名区块的签名认证验证该区块生成装置的身份,从而对于非法的区块生成装置,区块链网络可以拒绝在区块链中添加其生成的区块,保证了区块链的安全性。The block generating device is configured to generate a block by performing a private key signature on the block, obtain a signature block, and publish the signature block to the blockchain network, wherein the signature is After the block is authenticated, the block indicates that the signature block is generated by the block generating device. In this way, compared with the prior art, the block is signed by the private key of the blockchain account to authenticate the account, and the technical solution provided by the present disclosure can also perform identity authentication on the hardware device that generates the block, that is, It is said that the node device in the blockchain network can verify the identity of the block generating device by signature authentication of the signature block, so that for the illegal block generating device, the blockchain network can refuse to add the blockchain network. The generated blocks ensure the security of the blockchain.
可选地,该区块生成装置80还包括:Optionally, the block generating device 80 further includes:
第一获取模块803,用于获取区块数据,该区块数据是基于区块链网络中的交易数据生成的;a first obtaining module 803, configured to acquire block data, where the block data is generated based on transaction data in a blockchain network;
第一随机数生成模块804,用于根据特定随机数产生方法生成随机数;a first random number generating module 804, configured to generate a random number according to a specific random number generating method;
第一区块生成模块805,用于根据所述特定随机数产生方法产生的目标随机数与所述区块数据生成区块,所述区块链网络中的节点设备可验证所述目标随机数是否为根据所述特定随机数产生方法产生的。可选地,所述第一随机数生成模块804还用于:根据所述区块链网络当前产生区块的速度,设定一随机数范围,所述目标随机数为位于所述随机数范围内的随机数。a first block generating module 805, configured to generate a block according to the target random number generated by the specific random number generating method and the block data, where the node device in the blockchain network can verify the target random number Whether it is generated according to the specific random number generation method. Optionally, the first random number generating module 804 is further configured to: set a random number range according to a speed of the block currently generated by the blockchain network, where the target random number is located in the random number range A random number inside.
可选地,如图9所示,该区块生成装置80还包括:Optionally, as shown in FIG. 9, the block generating device 80 further includes:
第二获取模块806,用于获取区块数据,该区块数据是基于区块链网络中的交易数据生成的;a second obtaining module 806, configured to acquire block data, where the block data is generated based on transaction data in a blockchain network;
第二随机数生成模块807,用于根据所述区块链网络当前产生区块的速度,设定生成随机数的速率;a second random number generating module 807, configured to set a rate for generating a random number according to a speed of the block currently generated by the blockchain network;
第二区块生成模块808,用于根据所述速率生成随机数,并在生成的随机数与区块头数据的哈希值满足预设条件时,将所述随机数作为所述目标随机数,将所述目标随机数,所述区块头数据以及所述区块数据组成所述区块。The second block generating module 808 is configured to generate a random number according to the rate, and when the generated random number and the hash value of the block header data satisfy a preset condition, use the random number as the target random number. The target random number, the block header data, and the block data are grouped into the block.
所属本领域的技术人员应该清楚地了解到,为描述的方便和简洁,上述描述的区块生成装置的各模块的具体工作过程,可以参考前述方法实施例中对应的过程,此处不再赘述。It should be clearly understood by those skilled in the art that, for the convenience and brevity of the description, the specific working process of each module of the above-mentioned block generating device may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. .
另外,上述对区块生成装置组成模块进行的划分,仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。并且,各个模块的物理实现也可以有多种方式,本公开对此不做限定。In addition, the division performed by the block generating device component module is only one logical function division, and may be further divided when actually implemented. Moreover, the physical implementation of each module may also be in various manners, which is not limited in this disclosure.
本公开实施例还提供另一种区块生成装置90,用于实施图4提供的一种区块生成方法,如图10所示,该区块生成装置90包括:The embodiment of the present disclosure further provides another block generating device 90 for implementing a block generating method provided in FIG. 4. As shown in FIG. 10, the block generating device 90 includes:
获取模块901,用于获取区块链网络中的签名区块;An obtaining module 901, configured to acquire a signature block in a blockchain network;
签名认证模块902,用于根据公钥信息对所述签名区块进行签名认证;The signature authentication module 902 is configured to perform signature verification on the signature block according to the public key information.
工作量证明模块903,用于在签名认证成功后,对所述签名区块进行工作量证明验证;The workload verification module 903 is configured to perform workload verification on the signature block after the signature verification is successful;
区块添加模块904,用于根据工作量证明验证结果确定是否将所述签名区块添加到区块链。The block adding module 904 is configured to determine whether to add the signature block to the blockchain according to the workload proof verification result.
可选地,所述工作量证明模块903用于:Optionally, the workload proof module 903 is configured to:
验证所述签名区块中的目标随机数是否为根据特定随机数产生方法产生的,若所述目标随机数是根据所述特定随机数产生方法产生的,则确定工作量证明验证通过。Verifying whether the target random number in the signature block is generated according to a specific random number generation method. If the target random number is generated according to the specific random number generation method, it is determined that the workload proof verification is passed.
可选地,所述工作量证明模块903用于:Optionally, the workload proof module 903 is configured to:
根据所述区块链网络当前产生区块的速度,确定一随机数范围;Determining a random number range according to a speed of the block currently generated by the blockchain network;
判断所述目标随机数是否位于所述随机数范围内,若所述目标随机数位于所述随机数范围内,则确定所述目标随机数是根据所述特定随机数产生方法产生的。Determining whether the target random number is within the random number range, and if the target random number is located in the random number range, determining that the target random number is generated according to the specific random number generating method.
所属本领域的技术人员应该清楚地了解到,为描述的方便和简洁,上述描述的区块生成装置的各单元的具体工作过程,可以参考前述方法实施例中对应的过程,此处不再赘述。It should be clearly understood by those skilled in the art that, for the convenience and brevity of the description, the specific working process of each unit of the above-mentioned block generating apparatus may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. .
另外,上述对区块生成装置组成模块进行的划分,仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。并且,各个模块的物理实现也可以有多种方式,本公开对此不做限定。In addition, the division performed by the block generating device component module is only one logical function division, and may be further divided when actually implemented. Moreover, the physical implementation of each module may also be in various manners, which is not limited in this disclosure.
本公开实施例还提供一种区块生成装置100,如图11所示,该区块生成装置100包括:The embodiment of the present disclosure further provides a block generating apparatus 100. As shown in FIG. 11, the block generating apparatus 100 includes:
至少一个处理器单元(如图10示出的处理器单元101)、通信接口102、存储器103和通信总线104;所述至少一个处理器单元、所述通信接口102和所述存储器103通过所述通信总线104完成相互间的通信;At least one processor unit (such as processor unit 101 shown in FIG. 10), communication interface 102, memory 103, and communication bus 104; said at least one processor unit, said communication interface 102, and said memory 103 Communication bus 104 completes communication with each other;
所述存储器103被配置为存储程序代码,所述至少一个处理器单元被配置为运行所述程序代码以实现图1所示的区块生成方法,具体参照上述方法实施例针对图1的描述。The memory 103 is configured to store program code, and the at least one processor unit is configured to execute the program code to implement the block generation method illustrated in FIG. 1, with particular reference to the description of the method embodiment described above with respect to FIG.
本公开实施例还提供了一种包括指令的非临时性计算机可读存储介质,例如上述存储器103,上述指令可由装置100的处理器执行以完成用于相应的生成区块的方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。Embodiments of the present disclosure also provide a non-transitory computer readable storage medium including instructions, such as the memory 103 described above, executable by a processor of the apparatus 100 to perform a method for generating a corresponding block. For example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
本公开实施例还提供另一种区块生成装置110,如图12所示,所述区块生成装置110包括:The embodiment of the present disclosure further provides another block generating device 110. As shown in FIG. 12, the block generating device 110 includes:
至少一个处理器单元(如图12示出的处理器单元111)、通信接口112、存储器113和通信总线114;所述至少一个处理器单元、所述通信接口112和所述存储器113通过所述通信总线114完成相互间的通信;At least one processor unit (such as processor unit 111 shown in FIG. 12), communication interface 112, memory 113, and communication bus 114; said at least one processor unit, said communication interface 112, and said memory 113 Communication bus 114 completes communication with each other;
所述存储器113被配置为存储程序代码;The memory 113 is configured to store a program code;
所述至少一个处理器单元被配置为运行所述程序代码以实现如下操作图4所示的一种区块生成方法的步骤,具体参照上述方法实施例针对图4的描述。The at least one processor unit is configured to execute the program code to implement the steps of a block generation method illustrated in FIG. 4, with particular reference to the description of the method embodiment described above with respect to FIG.
上述只是举例说明,在具体实施时,该区块生成装置110还可以包括其他部件,例如电源等,本公开对此不做限定。The above is only an example. In the specific implementation, the block generating device 110 may further include other components, such as a power supply, etc., which is not limited in this disclosure.
本公开实施例还提供了一种包括指令的非临时性计算机可读存储介质,例如上述存储器113,上述指令可由装置110的处理器执行以完成用于相应的生成区块的方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。Embodiments of the present disclosure also provide a non-transitory computer readable storage medium including instructions, such as the memory 113 described above, executable by a processor of the apparatus 110 to perform a method for generating a corresponding block. For example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
本公开实施例还提供一种区块链网络,所述区块链网络包括至少两个节点设备。所述至少两个节点设备包括第一节点设备,所述第一节点设备包括如上述区块生成装置80或区块生成装置100;所述至少两个节点设备包括第二节点设备,所述第二节点设备包括上述区块生成装置90或者区块生成装置110。Embodiments of the present disclosure also provide a blockchain network, the blockchain network including at least two node devices. The at least two node devices include a first node device, the first node device includes the above-described block generating device 80 or the block generating device 100; the at least two node devices include a second node device, the first The two-node device includes the above-described block generating device 90 or the block generating device 110.
这样,基于公私钥的权限控制,利用算力一致的区块生成装置组成区块链网络,例如,区块链私链。其中,算了一致可以是区块生成装置均采用特定的随机数生成算法,由于各个区块生成装置生成区块的几率大体一致,从而增加了“51%攻击”条件达成的难度,进而提升了区块链的安全性。In this way, based on the authority control of the public and private keys, the block generating device with the same computing power is used to form a blockchain network, for example, a blockchain private chain. Among them, the consistency can be that the block generating device adopts a specific random number generating algorithm, and the probability of generating blocks by each block generating device is substantially the same, thereby increasing the difficulty of achieving the "51% attack" condition, thereby improving the difficulty. The security of the blockchain.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical idea of the present disclosure. These simple variations are all within the scope of the disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。It should be further noted that the specific technical features described in the above specific embodiments may be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not be further described in various possible combinations.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, any combination of various embodiments of the present disclosure may be made as long as it does not deviate from the idea of the present disclosure, and should also be regarded as the disclosure of the present disclosure.

Claims (23)

  1. 一种区块生成方法,其特征在于,所述方法应用于区块生成装置,所述方法包括:A block generation method, the method is applied to a block generation device, and the method includes:
    根据所述区块生成装置内置的私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块;And signing the block generated by the block generating device according to the private key information built in the block generating device to obtain a signature block;
    将所述签名区块发布到所述区块链网络中,所述区块链网络中接收到所述签名区块的节点设备用于对所述签名区块进行签名认证,其中,若对所述签名区块的签名认证成功,则表明所述签名区块是合法的区块生成装置生成的。Advertising the signature block to the blockchain network, where the node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, where If the signature authentication of the signature block is successful, it indicates that the signature block is generated by a legal block generating device.
  2. 根据权利要求1所述的方法,其特征在于,在所述根据所述区块生成装置内置的私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块之前,所述方法还包括:The method according to claim 1, wherein said signing said block generated by said block generating means according to said private key information built in said block generating means, before said signing block is obtained The method also includes:
    获取区块数据,所述区块数据是基于区块链网络中的交易数据生成的;Obtaining block data, the block data being generated based on transaction data in a blockchain network;
    根据特定随机数产生方法生成随机数;Generating a random number according to a specific random number generation method;
    根据所述特定随机数产生方法产生的目标随机数与所述区块数据生成区块,所述区块链网络中的节点设备可验证所述目标随机数是否为根据所述特定随机数产生方法产生的。Generating a block according to the target random number generated by the specific random number generating method and the block data, and the node device in the blockchain network may verify whether the target random number is according to the specific random number generating method produced.
  3. 根据权利要求2所述的方法,其特征在于,所述特定随机数产生方法包括:根据所述区块链网络当前产生区块的速度,设定一随机数范围,所述目标随机数为位于所述随机数范围内的随机数。The method according to claim 2, wherein the specific random number generating method comprises: setting a random number range according to a speed of a block currently generated by the blockchain network, wherein the target random number is located A random number within the range of random numbers.
  4. 根据权利要求1所述的方法,其特征在于,在所述根据所述区块生成装置内置的私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块之前,所述方法还包括:The method according to claim 1, wherein said signing said block generated by said block generating means according to said private key information built in said block generating means, before said signing block is obtained The method also includes:
    获取区块数据,所述区块数据是基于区块链网络中的交易数据生成的;Obtaining block data, the block data being generated based on transaction data in a blockchain network;
    根据所述区块链网络当前产生区块的速度,设定生成随机数的速率;Setting a rate at which a random number is generated according to a speed at which the blockchain network currently generates a block;
    根据所述速率生成随机数,并在生成的随机数与区块头数据的哈希值满足预设条件时,将所述随机数作为所述目标随机数,将所述目标随机数,所述区块头数据以及所述区块数据组成所述区块。Generating a random number according to the rate, and when the generated random number and the hash value of the block header data satisfy a preset condition, using the random number as the target random number, and the target random number, the area The block header data and the block data constitute the block.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述区块生成装置包括密钥处理器以及随机数生成器,所述区块生成装置的私钥信息内置在所述密钥处理器中,所述随机数生成器内置有另一私钥信息,所述方法还包括:The method according to any one of claims 1 to 4, wherein the block generating means comprises a key processor and a random number generator, and private key information of the block generating means is built in the secret In the key processor, the random number generator has another private key information built in, and the method further includes:
    在所述随机数生成器开始生成随机数之前,所述随机数生成器与所述密钥处理器之间进行双向认证,以验证双方身份的合法性。Before the random number generator starts generating the random number, the random number generator performs mutual authentication with the key processor to verify the legality of the identity of both parties.
  6. 一种区块生成方法,其特征在于,所述方法应用于区块生成装置,所述方法包括:A block generation method, the method is applied to a block generation device, and the method includes:
    获取区块链网络中的签名区块;Obtaining a signature block in the blockchain network;
    根据公钥信息对所述签名区块进行签名认证;Performing signature verification on the signature block according to the public key information;
    在签名认证成功后,对所述签名区块进行工作量证明验证;After the signature authentication is successful, the workload verification verification is performed on the signature block;
    根据工作量证明验证结果确定是否将所述签名区块添加到区块链。It is determined whether the signature block is added to the blockchain according to the workload proof verification result.
  7. 根据权利要求6所述的方法,其特征在于,所述对所述签名区块进行工作量证明验证,包括:The method according to claim 6, wherein said verifying the workload of said signature block comprises:
    验证所述签名区块中的目标随机数是否为根据特定随机数产生方法产生的,若所述目标随机数是根据所述特定随机数产生方法产生的,则确定工作量证明验证通过。Verifying whether the target random number in the signature block is generated according to a specific random number generation method. If the target random number is generated according to the specific random number generation method, it is determined that the workload proof verification is passed.
  8. 根据权利要求7所述的方法,其特征在于,所述验证所述签名区块中的目标随机数是否为根据特定随机数产生方法产生的,包括:The method according to claim 7, wherein the verifying whether the target random number in the signature block is generated according to a specific random number generation method comprises:
    根据所述区块链网络当前产生区块的速度,确定一随机数范围;Determining a random number range according to a speed of the block currently generated by the blockchain network;
    判断所述目标随机数是否位于所述随机数范围内,若所述目标随机数位于所述随机数范围内,则确定所述目标随机数是根据所述特定随机数产生方法产生的。Determining whether the target random number is within the random number range, and if the target random number is located in the random number range, determining that the target random number is generated according to the specific random number generating method.
  9. 一种区块生成装置,其特征在于,所述区块生成装置内置有私钥信息,所述区块生成装置包括:A block generating device, wherein the block generating device has built-in private key information, and the block generating device includes:
    密钥处理模块,用于根据所述私钥信息对所述区块生成装置生成的区块进行签名,得到签名区块;a key processing module, configured to sign a block generated by the block generating device according to the private key information, to obtain a signature block;
    发布模块,用于将所述签名区块发布到所述区块链网络中,所述区块链网络中接收到所述签名区块的节点设备用于对所述签名区块进行签名认证,其中,若对所述签名区块的签名认证成功,则表明所述签名区块是合法的区块生成装置生成的。a publishing module, configured to publish the signature block to the blockchain network, where a node device that receives the signature block in the blockchain network is configured to perform signature verification on the signature block, Wherein, if the signature verification of the signature block is successful, it indicates that the signature block is generated by a legal block generating device.
  10. 根据权利要求9所述的装置,其特征在于,还包括:The device according to claim 9, further comprising:
    第一获取模块,用于获取区块数据,该区块数据是基于区块链网络中的交易数据生成的;a first obtaining module, configured to acquire block data, where the block data is generated based on transaction data in a blockchain network;
    第一随机数生成模块,用于根据特定随机数产生方法生成随机数;a first random number generating module, configured to generate a random number according to a specific random number generating method;
    第一区块生成模块,用于根据所述特定随机数产生方法产生的目标随机数与所述区块数据生成区块,所述区块链网络中的节点设备可验证所述目标随机数是否为根据所述特定随机数产生方法产生的。a first block generating module, configured to generate a block according to the target random number generated by the specific random number generating method and the block data, where the node device in the blockchain network can verify whether the target random number is Produced according to the specific random number generation method.
  11. 根据权利要求10所述的装置,其特征在于,所述第一随机数生成模块还用于:The apparatus according to claim 10, wherein the first random number generating module is further configured to:
    根据所述区块链网络当前产生区块的速度,设定一随机数范围,所述目标随机数为位于所述随机数范围内的随机数。And setting a random number range according to a speed of the block currently generated by the blockchain network, where the target random number is a random number located within the random number range.
  12. 根据权利要求9所述的装置,其特征在于,还包括:The device according to claim 9, further comprising:
    第二获取模块,用于获取区块数据,该区块数据是基于区块链网络中的交易数据生成的;a second obtaining module, configured to acquire block data, where the block data is generated based on transaction data in a blockchain network;
    第二随机数生成模块,用于根据所述区块链网络当前产生区块的速度,设定生成随机数的速率;a second random number generating module, configured to set a rate for generating a random number according to a speed of the block currently generated by the blockchain network;
    第二区块生成模块,用于根据所述速率生成随机数,并在生成的随机数与区块头数据的哈希值满足预设条件时,将所述随机数作为所述目标随机数,将所述目标随机数,所述区块头数据以及所述区块数据组成所述区块。a second block generating module, configured to generate a random number according to the rate, and when the generated random number and the hash value of the block header data satisfy a preset condition, use the random number as the target random number, and The target random number, the block header data and the block data constitute the block.
  13. 一种区块生成装置,其特征在于,包括:A block generating device, comprising:
    获取模块,用于获取区块链网络中的签名区块;An obtaining module, configured to acquire a signature block in a blockchain network;
    签名认证模块,用于根据公钥信息对所述签名区块进行签名认证;a signature authentication module, configured to perform signature verification on the signature block according to the public key information;
    工作量证明模块,用于在签名认证成功后,对所述签名区块进行工作量证明验证;a workload verification module, configured to perform workload verification on the signature block after the signature verification is successful;
    区块添加模块,用于根据工作量证明验证结果确定是否将所述签名区块添加到区块链。A block adding module is configured to determine whether to add the signature block to the blockchain according to the workload proof verification result.
  14. 根据权利要求13所述的装置,其特征在于,所述工作量证明模块用于:The apparatus of claim 13 wherein said workload proof module is for:
    验证所述签名区块中的目标随机数是否为根据特定随机数产生方法产生的,若所述目标随机数是根据所述特定随机数产生方法产生的,则确定工作量证明验证通过。Verifying whether the target random number in the signature block is generated according to a specific random number generation method. If the target random number is generated according to the specific random number generation method, it is determined that the workload proof verification is passed.
  15. 根据权利要求14所述的装置,其特征在于,所述工作量证明模块用于:The apparatus of claim 14 wherein said workload proof module is for:
    根据所述区块链网络当前产生区块的速度,确定一随机数范围;Determining a random number range according to a speed of the block currently generated by the blockchain network;
    判断所述目标随机数是否位于所述随机数范围内,若所述目标随机数位于所述随机数范围内,则确定所述目标随机数是根据所述特定随机数产生方法产生的。Determining whether the target random number is within the random number range, and if the target random number is located in the random number range, determining that the target random number is generated according to the specific random number generating method.
  16. 一种区块生成装置,其特征在于,包括:A block generating device, comprising:
    至少一个处理器单元、通信接口、存储器和通信总线;所述至少一个处理器单元、所述通信接口和所述存储器通过所述通信总线完成相互间的通信;At least one processor unit, a communication interface, a memory, and a communication bus; the at least one processor unit, the communication interface, and the memory complete communication with each other through the communication bus;
    所述存储器被配置为存储程序代码;The memory is configured to store program code;
    所述至少一个处理器单元被配置为运行所述程序代码以实现权利要求1至4中任一项所述的方法。The at least one processor unit is configured to execute the program code to implement the method of any one of claims 1 to 4.
  17. 根据权利要求16所述的装置,其特征在于,所述通信接口用于与所述区块链网络中的节点设备建立通信连接,以便所述区块生成装置从所述节点设备获取到所述区块数据,并通过所述节点设备将所述签名区块发布到所述区块链网络中。The apparatus according to claim 16, wherein said communication interface is configured to establish a communication connection with a node device in said blockchain network, so that said tile generating means acquires said said device from said node device Block data, and the signature block is published to the blockchain network by the node device.
  18. 根据权利要求16或17所述的装置,其特征在于,所述区块生成装置还包括密钥处理器以及随机数生成器,所述区块生成装置的私钥信息内置在所述密钥处理器中,所述随机数生成器内置有另一私钥信息;The apparatus according to claim 16 or 17, wherein said block generating means further comprises a key processor and a random number generator, and private key information of said block generating means is built in said key processing In the device, the random number generator has another private key information built in;
    在所述随机数生成器开始生成随机数之前,所述随机数生成器与所述密钥处理器之间进行双向认证,以验证双方身份的合法性。Before the random number generator starts generating the random number, the random number generator performs mutual authentication with the key processor to verify the legality of the identity of both parties.
  19. 一种区块生成装置,其特征在于,包括:A block generating device, comprising:
    至少一个处理器单元、通信接口、存储器和通信总线;所述至少一个处理器单元、所述通信接口和所述存储器通过所述通信总线完成相互间的通信;At least one processor unit, a communication interface, a memory, and a communication bus; the at least one processor unit, the communication interface, and the memory complete communication with each other through the communication bus;
    所述存储器被配置为存储程序代码;The memory is configured to store program code;
    所述至少一个处理器单元被配置为运行所述程序代码以实现权利要求6至8中任一项所述的方法。The at least one processor unit is configured to execute the program code to implement the method of any one of claims 6 to 8.
  20. 根据权利要求19所述的装置,其特征在于,所述通信接口用于与所述区块链网络中的节点设备建立通信连接,以便所述区块生成装置从所述节点设备获取到所述签名区块。The apparatus according to claim 19, wherein said communication interface is configured to establish a communication connection with a node device in said blockchain network, so that said tile generating means acquires said said device from said node device Signature block.
  21. 一种区块链网络,其特征在于,所述区块链网络包括至少两个节点设备;A blockchain network, characterized in that the blockchain network comprises at least two node devices;
    所述至少两个节点设备包括第一节点设备,所述第一节点设备包括如权利要求16所述的区块生成装置;The at least two node devices include a first node device, the first node device comprising the block generating device of claim 16;
    所述至少两个节点设备包括第二节点设备,所述第二节点设备包括如权利要求19所述的区块生成装置。The at least two node devices include a second node device, and the second node device includes the tile generating device of claim 19.
  22. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序包括用于执行权利要求1至5中任一项所述的方法的指令。A computer readable storage medium for storing a computer program, the computer program comprising instructions for performing the method of any one of claims 1 to 5.
  23. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序包括用于执行权利要求6至8中任一项所述的方法的指令。A computer readable storage medium for storing a computer program, the computer program comprising instructions for performing the method of any one of claims 6 to 8.
PCT/CN2017/119136 2017-12-27 2017-12-27 Block generation method and apparatus, storage medium, and block chain network WO2019127153A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780002590.3A CN108235799B (en) 2017-12-27 2017-12-27 Block generation method, device, storage medium and block chain network
PCT/CN2017/119136 WO2019127153A1 (en) 2017-12-27 2017-12-27 Block generation method and apparatus, storage medium, and block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/119136 WO2019127153A1 (en) 2017-12-27 2017-12-27 Block generation method and apparatus, storage medium, and block chain network

Publications (1)

Publication Number Publication Date
WO2019127153A1 true WO2019127153A1 (en) 2019-07-04

Family

ID=62643209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119136 WO2019127153A1 (en) 2017-12-27 2017-12-27 Block generation method and apparatus, storage medium, and block chain network

Country Status (2)

Country Link
CN (1) CN108235799B (en)
WO (1) WO2019127153A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088914B (en) * 2018-07-03 2021-10-01 深圳智乾区块链科技有限公司 Block generation method, block chain ecosystem and computer readable storage medium
CN109118655A (en) * 2018-07-31 2019-01-01 温州市图盛科技有限公司 A kind of electrical energy measurement and transaction terminal of block chain technology
CN109087103B (en) * 2018-08-10 2022-02-11 中国人民解放军国防科技大学 Block chain workload proving method based on random magic square construction
CN109102294B (en) * 2018-08-24 2021-07-30 北京京东尚科信息技术有限公司 Information transmission method and device
CN109246206B (en) * 2018-08-28 2019-12-03 瑞典爱立信有限公司 Generate and record the method and network of information
CN109242491A (en) * 2018-08-31 2019-01-18 深圳付贝科技有限公司 It digs mine identity identifying method, dig mine machine and block catenary system
CN109050248B (en) * 2018-08-31 2022-02-22 深圳市元征科技股份有限公司 Vehicle carbon emission monitoring method and related equipment
CN109410055B (en) * 2018-10-08 2020-08-07 莆田市烛火信息技术有限公司 Block chain consensus method based on computational power parasitism
CN109543456B (en) * 2018-11-06 2021-07-09 北京新唐思创教育科技有限公司 Block generation method and computer storage medium
CN109543075B (en) * 2018-11-14 2020-09-22 全链通有限公司 Block generation method and system
CN109670827B (en) * 2018-11-29 2020-11-17 如般量子科技有限公司 Anti-quantum computation blockchain transaction method based on symmetric key pool
CN109670826B (en) * 2018-11-29 2020-11-17 如般量子科技有限公司 Anti-quantum computation block chain transaction method based on asymmetric key pool
CN109379381B (en) * 2018-12-07 2021-06-15 深圳市智税链科技有限公司 Data management method, device, medium and electronic equipment of block chain system
CN109560939A (en) * 2019-01-29 2019-04-02 张超 A kind of block method and the device out of block chain
CN110572262A (en) * 2019-09-20 2019-12-13 中国银行股份有限公司 Block chain alliance chain construction method, device and system
CN111178885B (en) * 2019-12-18 2023-08-04 达闼机器人股份有限公司 Block chain-based data processing method, device, data processing equipment and system
CN111193596B (en) * 2019-12-30 2023-09-05 达闼机器人股份有限公司 Block generation system, method, server and workload verification device
CN113127560A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Competition accounting method and device
CN116846888A (en) * 2022-03-24 2023-10-03 腾讯科技(深圳)有限公司 Consensus processing method, device, equipment and storage medium of block chain network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959307A (en) * 2016-06-30 2016-09-21 中国科学院计算技术研究所 Existence certification and authentication service method and system based on block chain technology
CN106407481A (en) * 2016-11-30 2017-02-15 福州微启迪物联科技有限公司 Block chain architecture-based ecological environment monitoring system and implementation method thereof
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network
CN107079037A (en) * 2016-09-18 2017-08-18 深圳前海达闼云端智能科技有限公司 Identity identifying method, device, node and system based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11190360B2 (en) * 2016-12-23 2021-11-30 Cloudminds (Shanghai) Robotics Co., Ltd. Method, apparatus, node, signature device and system for generating block of blockchain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959307A (en) * 2016-06-30 2016-09-21 中国科学院计算技术研究所 Existence certification and authentication service method and system based on block chain technology
CN107079037A (en) * 2016-09-18 2017-08-18 深圳前海达闼云端智能科技有限公司 Identity identifying method, device, node and system based on block chain
CN106407481A (en) * 2016-11-30 2017-02-15 福州微启迪物联科技有限公司 Block chain architecture-based ecological environment monitoring system and implementation method thereof
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network

Also Published As

Publication number Publication date
CN108235799A (en) 2018-06-29
CN108235799B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
WO2019127153A1 (en) Block generation method and apparatus, storage medium, and block chain network
WO2018112948A1 (en) Block generation method and device, and blockchain network
TWI793899B (en) Secure dynamic threshold signature scheme employing trusted hardware
US11038682B2 (en) Communication method, apparatus and system, electronic device, and computer readable storage medium
US10581615B2 (en) Blockchain-based identity authentication method, device, node and system
CN110213059B (en) Random number generation method, random number generation device and storage medium
WO2018112946A1 (en) Registration and authorization method, device and system
RU2621182C1 (en) Key joint usage device and the system for its configuration
US10938570B2 (en) Technologies for remote attestation
US10116450B1 (en) Merkle signature scheme using subtrees
EP3841702B1 (en) Method, user device, management device, storage medium and computer program product for key management
CN110999204A (en) Method and system for block chain implemented event lock encryption
US10686595B2 (en) Configuring connectivity association key and connectivity association name in a media access control security capable device
CN112953855B (en) System and method for broadcasting messages to accelerators
WO2019110018A1 (en) Message authentication method for communication network system, communication method and communication network system
Seeber et al. Towards a trust computing architecture for RPL in cyber physical systems
EP3304800A1 (en) Method for providing a space puzzle
US20190044922A1 (en) Symmetric key identity systems and methods
CN116132118A (en) Encryption communication method and system based on block chain technology
JP6780771B2 (en) Verification information granting device, verification device, information management system, method and program
CN112948868A (en) Electric power data storage method and electric power data sharing method based on block chain
CN109698750B (en) Block generation method, device and equipment of block chain and readable storage medium
WO2023010688A1 (en) Key management method and apparatus
Mei et al. An authentication and key agreement scheme based on roadside unit cache for VANET
WO2023198036A1 (en) Key generation method and apparatus, and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17936682

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17936682

Country of ref document: EP

Kind code of ref document: A1