A method and system for periodic distributed key distribution based on blockchain
By using the block height to drive the periodic operation and consensus mechanism of the DKG protocol in the blockchain, the complexity of key distribution and private key leakage problems in the blockchain asynchronous network are solved, and reliable distributed key distribution is achieved.
Patent Information
- Application Number
- CN202311462780.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-11-06
AI Technical Summary
In the asynchronous network environment of the blockchain, distributed key distribution faces problems such as message loss, duplication, and disorder, and requires periodic distribution to deal with private key leaks, which increases complexity.
The block height of the blockchain is used as a logical clock to drive the DKG protocol to run periodically, and the consensus mechanism is used as a broadcast channel to simplify the distributed key distribution process. Specific methods include running the DKG protocol when the block height reaches specific conditions, generating and verifying public key and private key slices, and storing and broadcasting protocol information through the transaction pool to ensure the reliability and periodicity of key distribution.
It simulates a synchronous network environment, overcomes the problems of loss, duplication, and disorder in message transmission, improves the reliability of the broadcast channel, and avoids the leakage of private keys through periodic operation.
Smart Images

Figure CN117478334B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain, and in particular to a method and system for implementing periodic distributed key distribution based on blockchain. Background Art
[0002] Threshold signature is a digital signature method. Given a signature group with n participants, as long as at least t of the participants use their own private keys to sign the same message, these signature slices can be aggregated into a group signature and can be verified using the group public key of the signature group. In such a signature mode, only when at least t members of the signature group each generate a legal signature slice can the group signature be successfully aggregated. Participants who are not members of the signature group cannot forge signature slices, and a single signature group member cannot control the final group signature. Due to these characteristics, threshold signatures are widely used in blockchains, such as introducing trusted oracles for closed blockchain systems and generating secure random numbers.
[0003] Threshold signature consists of two parts: key distribution and signature. Generating signatures, aggregating signatures, verifying signatures, etc. are the same as other group signature technologies. The most critical part is key distribution. There are two ways of key distribution: central node distribution and distributed distribution. Central node distribution, that is, introducing a trusted Dealer, which is responsible for generating group public keys and distributing key slices; distributed key distribution is that each participant exchanges key slices, and each participant aggregates their own private key and aggregates the group public key.
[0004] Blockchain is a decentralized system. It is inappropriate to introduce a centralized dealer because the centralized dealer needs to be trusted by all nodes, which does not conform to the assumed operating environment of blockchain. Distributed key distribution includes public commitment, private key slice distribution, private key slice verification, public key reconstruction and other functions, all of which are completed through message passing. Most distributed key distribution is discussed based on synchronous networks and reliable broadcast channels, which is easy to understand conceptually. However, the environment in which blockchain is located is often an unreliable asynchronous network. The message arrival time cannot be limited to a certain time. Messages may be lost, repeated, or out of order, so it is more complicated to implement distributed key distribution. In addition, in order to deal with the possible leakage of private keys of participants, key distribution also needs to be distributed periodically, which further increases the complexity of key distribution. Summary of the invention
[0005] To solve the above problems, the present invention provides a method, system and device for implementing threshold signature distributed key distribution using blockchain, which drives the DKG protocol to run periodically by using the block height of the blockchain as a logical clock; and uses the consensus mechanism as a broadcast channel to make distributed key distribution relatively simple.
[0006] To achieve the above-mentioned purpose, the present invention provides a method for implementing threshold signature distributed key distribution using blockchain, comprising: when a new block is generated, obtaining the block height of the block; when the block height reaches the condition for starting a DKG protocol cycle, the first participant runs the DKG protocol to obtain protocol information, and stores the protocol information in a transaction pool; the protocol information in the transaction pool is packaged into blocks and the blocks are sent to all nodes to generate new blocks; when the block height is the condition for ending the operation of the DKG protocol cycle, the second participant reconstructs a group public key and a group private key slice according to the protocol information, and the second participant is generated by running the DKG protocol; the second participant generates a signature group according to the group public key and the group private key slice, and obtains a participant who runs the DKG protocol for the next cycle.
[0007] Further optionally, when the block height reaches the condition for starting a DKG protocol cycle, running the DKG protocol to obtain protocol information, and storing the protocol information in the transaction pool includes: when the block height reaches different preset block height intervals within a DKG protocol cycle, executing corresponding operations and generating protocol information, and storing the protocol information in the transaction pool, and different preset block height intervals within a DKG protocol cycle correspond to different node operations.
[0008] Further optionally, when the block height reaches different preset block height intervals within a DKG protocol cycle, executing corresponding operations and generating protocol information, and storing the protocol information in the transaction pool includes: when the block height reaches a preset first block height interval, each of the first participants generates a public key and private key pair, broadcasts the public key to other first participants in the form of a hash commitment, divides the private key into several private key slices and encrypts the multiple private key slices and broadcasts them to other first participants, and each first participant decrypts a private key slice; and stores the public key broadcasted in the form of a hash commitment and the encrypted private key slices in the transaction pool.
[0009] Further optionally, when the block height reaches different preset block height intervals within a DKG protocol cycle, executing corresponding operations and generating protocol information, and storing the protocol information in the transaction pool also includes: when the block height reaches a preset second block height interval, each of the first participants decrypts each received private key slice, and verifies whether the decrypted private key slice matches the corresponding public key; if the decrypted private key slice matches the corresponding public key, each of the first participants broadcasts the consent information to other first participants; if the decrypted private key slice does not match the corresponding public key, each of the first participants sends a veto information to other first participants, and removes the node corresponding to the veto information from the first participant to obtain the second participant; and stores the consent information, the veto information, and the second participant in the transaction pool.
[0010] Further optionally, the notifying the second participant to reconstruct the group public key and the group private key slices according to the protocol information includes: notifying the second participant so that the second participant aggregates each public key received to reconstruct the group public key; notifying the second participant so that the second participant aggregates each decryptable private key slice received and the private key slice generated by itself to reconstruct the group private key slice.
[0011] Further optionally, storing the protocol information in a transaction pool includes: storing the protocol information as a transaction in a transaction pool.
[0012] On the other hand, the present invention provides a system for implementing periodic distributed key distribution based on blockchain, including: a block height acquisition module, used to obtain the block height of the block when a new block is generated; a protocol information generation module, used to run the DKG protocol to obtain protocol information when the block height reaches the condition for starting a DKG protocol cycle, and store the protocol information in a transaction pool, the node running the DKG protocol is the first participant, and the protocol information includes the second participant; a block generation module, used to package the protocol information in the transaction pool into blocks and send the blocks to all nodes to generate new blocks; a group public key and group private key slice generation module, used to notify the second participant to reconstruct the group public key and group private key slices according to the protocol information when the block height is the condition for ending the operation of the DKG protocol cycle; a signature group module, used for the second participant to generate a signature group according to the group public key and group private key slices, and obtain the participant who runs the next cycle of the DKG protocol.
[0013] Further optionally, the protocol information generation module is used to execute corresponding operations and generate protocol information when the block height reaches different preset block height intervals within a DKG protocol cycle, and store the protocol information in the transaction pool, and different preset block height intervals within a DKG protocol cycle correspond to different node operations.
[0014] Further optionally, the protocol information generation module is used to, when the block height reaches a preset first block height interval, each of the first participants generates a public key and private key pair, broadcasts the public key to other first participants in the form of a hash commitment, divides the private key into a plurality of private key slices and encrypts the plurality of private key slices and broadcasts them to other first participants, and each of the first participants decrypts a private key slice; and stores the public key broadcasted in the form of a hash commitment and the encrypted private key slices in a transaction pool.
[0015] Further optionally, the protocol information generation module is used to, when the block height reaches a preset second block height interval, each first participant decrypts each received private key slice and verifies whether the decrypted private key slice matches the corresponding public key; if the decrypted private key slice matches the corresponding public key, each first participant broadcasts the consent information to other first participants; if the decrypted private key slice does not match the corresponding public key, each first participant sends a veto information to other first participants, and removes the node corresponding to the veto information from the first participant to obtain the second participant; and stores the consent information, the veto information, and the second participant in the transaction pool.
[0016] The above technical solution has the following beneficial effects: using the block height as a logical clock to drive the operation of the DKG protocol, simulating a synchronous network environment, overcoming the phenomenon that the blockchain is in an asynchronous network environment, causing message loss, duplication, disorder, etc. during the transmission process; using the consensus mechanism as a broadcast channel, making the broadcast channel more reliable; using the block height as a logical clock to periodically run the DKG protocol, avoiding the problem of private key leakage of participants. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1It is a flowchart of a method for implementing periodic distributed key distribution based on blockchain provided by an embodiment of the present invention;
[0019] Figure 2 is a flow chart of the operation of the DKG protocol provided by an embodiment of the present invention;
[0020] Figure 3 is a flowchart of generating group public key and group private key slices provided by an embodiment of the present invention;
[0021] Figure 4 It is a structural diagram of a system for implementing periodic distributed key distribution based on blockchain provided by an embodiment of the present invention;
[0022] Reference numerals: 100 - block height acquisition module; 200 - protocol information generation module; 300 - block generation module; 400 - group public key and group private key slice generation module; 500 - signature group module. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] In order to solve the problems of loss, duplication, disorder and other issues in the prior art caused by the blockchain being in an asynchronous network during the transmission of messages, the embodiment of the present invention provides a method for periodic distributed key distribution based on blockchain. Figure 1 is a flowchart of a method for implementing periodic distributed key distribution based on blockchain provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0025] S1. When a new block is generated, the block height of the block is obtained;
[0026] Each computer in the blockchain network is a node. In the process of running the DKG protocol, the participant nodes are pre-selected from the nodes of the blockchain. The messages transmitted between each participant will be recorded in the block and added to the chain. The block height is the position of a block in the blockchain.
[0027] When each node adds a new block to the blockchain, each first participant obtains the block height of the new block.
[0028] S2. When the block height reaches the condition for starting a DKG protocol cycle, the DKG protocol is run to obtain protocol information, and the protocol information is stored in the transaction pool. The node running the DKG protocol is the first participant, and the protocol information includes the second participant.
[0029] The DKG protocol is a distributed key distribution algorithm. Multiple segment intervals are pre-set in each DKG protocol cycle. Different block height intervals correspond to different node operations. The different node operations include: each participant node generates a public key and private key pair, and broadcasts the public key and private key slices to other participant nodes. It also includes each first participant node determining whether the received private key slice and the corresponding public key match, removing the unmatched nodes from the first participant, and storing the protocol information generated by the node operation in the transaction pool in the form of a transaction location.
[0030] Each block height interval has a starting block height and an ending block height. When the block height reaches the set starting block height, the DKG protocol starts running.
[0031] S3. Packing the protocol information in the transaction pool into blocks and sending the blocks to all nodes to generate new blocks.
[0032] At regular intervals, the information in the transaction pool is packaged into blocks and broadcast to all nodes, and each node adds the blocks to the blockchain.
[0033] S4. When the block height meets the condition for the end of the operation of one DKG protocol cycle, notify the second participant to reconstruct the group public key and group private key slices according to the protocol information.
[0034] The block height at which a DKG protocol cycle ends is set. When the block height of the newly generated block meets the condition for the end of a DKG protocol cycle, each second participant node reconstructs the group public key and group private key slices according to the protocol information.
[0035] S5. Generate a signature group according to the group public key and group private key slices, and obtain participants who run the next cycle of the DKG protocol.
[0036] Since the public keys and private keys of some nodes cannot match, a signature group is generated based on the nodes with successful public and private key matching, the group public key and the group private key slices, and the participant nodes that run the next cycle of the DKG protocol are obtained. When the block height reaches the DKG protocol running block interval for the next cycle, the DKG protocol runs.
[0037] As an optional implementation, Figure 2 is a flowchart of the operation of the DKG protocol provided by an embodiment of the present invention, such as Figure 2As shown, when the block height reaches different preset block height intervals within a DKG protocol cycle, corresponding operations are performed and protocol information is generated, and the protocol information is stored in the transaction pool, including:
[0038] S201. When the block height reaches a preset first block height interval, each of the first participants generates a public key and private key pair, broadcasts the public key to other first participants in the form of a hash commitment, divides the private key into a plurality of private key slices, encrypts the plurality of private key slices and broadcasts them to other first participants, and each of the first participants decrypts a private key slice;
[0039] A DKG protocol cycle is pre-divided into two block height intervals, for example, the first block height interval is [1-200], and the second height interval is [200-400]. In the first block height interval, participants generate public and private key slices, and in the second block height interval, participants determine whether the public and private keys match; when the block height is 1, each first participant node generates a pair of public and private keys, hashes the public key and broadcasts it to all participants; divides the private key into multiple private key slices, encrypts each private key slice, and broadcasts each encrypted private key slice to all participants, but each participant can only decrypt one private key slice.
[0040] S202. Each of the first participants stores the public key broadcasted in the form of hash commitment and the encrypted private key slice in the transaction pool.
[0041] During the running of the DKG protocol, each first participant stores the generated public and private key slices in the transaction pool.
[0042] S203, when the block height reaches a preset second block height interval, each of the first participants decrypts each received private key slice and verifies whether the decrypted private key slice matches the corresponding public key.
[0043] When the block height of the generated block reaches the preset second block height interval, for example, when the block height is 200, the block height is in the second block height interval, each first participant decrypts the decryptable private key slice sent by other participants, and matches it with the corresponding public key to obtain a matching result.
[0044] S204, if the decrypted private key slice matches the corresponding public key, each of the first participants broadcasts the consent information to other first participants;
[0045] If the private key slice matches the corresponding public key, the agreed information is broadcast to other first participants.
[0046] S205, if the decrypted private key slice does not match the corresponding public key, each of the first participants sends a rejection message to other first participants, and removes the participant corresponding to the rejection message from the first participants to obtain a second participant;
[0047] If the private key slice does not match the corresponding public key, the rejection information will be broadcast to other first participants, and the participant with unsuccessful matching will be deleted from the first participant to generate the second participant.
[0048] S206: Store the approval information, the rejection information, and the second participant in a transaction pool.
[0049] In specific applications, the number of block height intervals within a DKG protocol cycle can be set or adjusted according to actual needs, and this application does not impose any restrictions on this.
[0050] As an optional implementation, Figure 3 is a flowchart of generating group public key and group private key slices provided by an embodiment of the present invention, such as Figure 3 As shown, the notifying the second participant to reconstruct the group public key and the group private key slice according to the protocol information includes:
[0051] S401, notifying the second participant so that the second participant aggregates each received public key to reconstruct a group public key;
[0052] Each second participant aggregates the public keys broadcast by other second participants to generate a group public key.
[0053] S402, notifying the second participant so that the second participant aggregates each received decryptable private key slice and the private key slice generated by itself to reconstruct a group private key slice.
[0054] Each of the second participants aggregates the decrypted received slices and the private key slices generated by itself to reconstruct the group private key slice.
[0055] The embodiment of the present invention also provides a system for periodically distributing distributed keys based on blockchain. Figure 4 is a schematic diagram of the structure of a system for implementing periodic distributed key distribution based on blockchain provided by an embodiment of the present invention, such as Figure 4 As shown, the system includes:
[0056] The block height acquisition module 100 is used to acquire the block height of a new block when generating the new block;
[0057] Each computer in the blockchain network is a node. In the process of running the DKG protocol, the participant nodes are pre-selected from the nodes of the blockchain. The messages transmitted between each participant will be recorded in the block and added to the chain. The block height is the position of a block in the blockchain.
[0058] When each node adds a new block to the blockchain, each first participant obtains the block height of the new block.
[0059] The protocol information generation module 200 is used for, when the block height reaches the condition for starting a DKG protocol cycle, the first participant runs the DKG protocol to obtain protocol information, and stores the protocol information in the transaction pool;
[0060] The DKG protocol is a distributed key distribution algorithm. Multiple segment intervals are pre-set in each DKG protocol cycle. Different block height intervals correspond to different node operations. The different node operations include: each participant node generates a public key and private key pair, and broadcasts the public key and private key slices to other participant nodes. It also includes each first participant node determining whether the received private key slice and the corresponding public key match, removing the unmatched nodes from the first participant, and storing the protocol information generated by the node operation in the transaction pool in the form of a transaction location.
[0061] Each block height interval has a starting block height and an ending block height. When the block height reaches the set starting block height, the DKG protocol starts running.
[0062] A DKG protocol cycle is pre-divided into two block height intervals, for example, the first block height interval is [1-200], and the second height interval is [200-400]. In the first block height interval, participants generate public and private key slices, and in the second block height interval, participants determine whether the public and private keys match; when the block height is 1, each first participant node generates a pair of public and private keys, hashes the public key and broadcasts it to all participants; divides the private key into multiple private key slices, encrypts each private key slice, and broadcasts each encrypted private key slice to all participants, but each participant can only decrypt one private key slice.
[0063] During the running of the DKG protocol, each first participant stores the generated public and private key slices in the transaction pool.
[0064] When the block height of the generated block reaches the preset second block height interval, for example, when the block height is 200, the block height is in the second block height interval, each first participant decrypts the decryptable private key slice sent by other participants, and matches it with the corresponding public key to obtain a matching result.
[0065] If the private key slice matches the corresponding public key, the agreed information is broadcast to other first participants.
[0066] If the private key slice does not match the corresponding public key, the rejection information will be broadcast to other first participants, and the node with unsuccessful matching will be deleted from the first participant node to generate the second participant.
[0067] The approval information, the rejection information, and the second participant are stored in the transaction pool.
[0068] A block generation module 300, used to package the protocol information in the transaction pool into blocks and send the blocks to all nodes to generate new blocks;
[0069] At regular intervals, the information in the transaction pool is packaged into blocks and broadcast to all nodes, and each node adds the blocks to the blockchain.
[0070] A group public key and group private key slice generation module 400, configured to notify the second participant to reconstruct the group public key and group private key slice according to the protocol information when the block height meets the condition for the end of the operation of one DKG protocol cycle;
[0071] The block height at which a DKG protocol cycle ends is set. When the block height of the newly generated block meets the condition for the end of a DKG protocol cycle, each second participant node reconstructs the group public key and group private key slices according to the protocol information.
[0072] The signature group module 500 is used for the second participant to generate a signature group according to the group public key and the group private key slice, and obtain the participant who runs the next cycle of the DKG protocol.
[0073] Since the public keys and private keys of some nodes cannot match, a signature group is generated based on the nodes with successful public and private key matching, the group public key and the group private key slices, and the participant nodes that run the next cycle of the DKG protocol are obtained. When the block height reaches the DKG protocol running block interval for the next cycle, the DKG protocol runs.
[0074] An embodiment of the present invention also provides a device for implementing periodic distributed key distribution based on blockchain, including the above-mentioned system for implementing periodic distributed key distribution based on blockchain.
[0075] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for periodic distributed key distribution based on blockchain is implemented.
[0076] The above-mentioned software is stored in the above-mentioned storage medium, which includes but is not limited to: a CD, a floppy disk, a hard disk, an erasable memory, etc.
[0077] The above technical solution has the following beneficial effects: multiple block intervals of the DKG protocol are pre-set to perform different node operations, and the block height is used as a logical clock to drive the operation of the DKG protocol, simulating a synchronous network environment, overcoming the phenomenon that the blockchain is in an asynchronous network environment, causing message loss, duplication, disorder, etc. during the transmission process; the protocol information is packaged into blocks and broadcast to all nodes, and the consensus mechanism is used as a broadcast channel to make the broadcast channel more reliable; after each protocol cycle is completed, the node running the next cycle of the DKG protocol is obtained, and the DKG protocol is periodically run with the block height as the logical clock, avoiding the problem of private key leakage of participants.
[0078] The specific implementation methods of the above invention further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above content is only the specific implementation methods of the present invention and is not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for periodic distributed key distribution based on blockchain, characterized in that: include: When a new block is generated, the block height of the block is obtained; When the block height reaches the condition for starting a DKG protocol cycle, the DKG protocol is run to obtain protocol information, and the protocol information is stored in the transaction pool. The node running the DKG protocol is the first participant, and the protocol information includes the second participant. Packing the protocol information in the transaction pool into blocks and sending the blocks to all nodes to generate new blocks; When the block height meets the condition for the end of the operation of the DKG protocol cycle, notifying the second participant to reconstruct the group public key and the group private key slice according to the protocol information; Generate a signature group based on the group public key and group private key slices, and obtain participants who run the next cycle of the DKG protocol; When the block height reaches the condition for starting a DKG protocol cycle, running the DKG protocol to obtain protocol information and storing the protocol information in the transaction pool includes: When the block height reaches different preset block height intervals within a DKG protocol cycle, the corresponding operation is performed and protocol information is generated, and the protocol information is stored in the transaction pool. Different preset block height intervals within a DKG protocol cycle correspond to different node operations; When the block height reaches different preset block height intervals within a DKG protocol cycle, executing corresponding operations and generating protocol information, and storing the protocol information in the transaction pool includes: When the block height reaches a preset first block height interval, each of the first participants generates a public key and private key pair, broadcasts the public key to other first participants in the form of a hash commitment, divides the private key into a plurality of private key slices, encrypts the plurality of private key slices and broadcasts them to other first participants, and each of the first participants decrypts a private key slice; The public key and encrypted private key slices broadcasted in the form of hash commitment are stored in the transaction pool; When the block height reaches different preset block height intervals within a DKG protocol cycle, executing corresponding operations and generating protocol information, and storing the protocol information in the transaction pool also includes: When the block height reaches a preset second block height interval, each of the first participants decrypts each received private key slice, and verifies whether the decrypted private key slice matches the corresponding public key; If the decrypted private key slice matches the corresponding public key, each of the first participants broadcasts the consent information to other first participants; If the decrypted private key slice does not match the corresponding public key, each of the first participants sends a veto message to other first participants, and removes the node corresponding to the veto message from the first participant to obtain a second participant; The approval information, the rejection information, and the second participant are stored in a transaction pool.
2. The method for periodically distributing distributed keys based on blockchain according to claim 1 is characterized in that: The notifying the second participant to reconstruct the group public key and the group private key slice according to the protocol information includes: Notifying the second participant so that the second participant aggregates each received public key to reconstruct a group public key; The second participant is notified so that the second participant aggregates each received decryptable private key slice and the private key slice generated by itself to reconstruct a group private key slice.
3. The method for implementing periodic distributed key distribution based on blockchain according to claim 2 is characterized in that: The storing of the protocol information into the transaction pool includes: The protocol information constitutes a transaction and is stored in a transaction pool.
4. A system for periodic distributed key distribution based on blockchain, characterized in that: include: A block height acquisition module, used to acquire the block height of a new block when generating the new block; A protocol information generation module, used for running the DKG protocol to obtain protocol information when the block height reaches the condition for starting a DKG protocol cycle, and storing the protocol information in the transaction pool. The node running the DKG protocol is the first participant, and the protocol information includes the second participant; A block generation module, used for packaging the protocol information in the transaction pool into blocks and sending the blocks to all nodes to generate new blocks; A group public key and group private key slice generation module, used for notifying the second participant to reconstruct the group public key and group private key slice according to the protocol information when the block height meets the condition for the end of the operation of one DKG protocol cycle; A signature group module, used for the second participant to generate a signature group according to the group public key and the group private key slice, and obtain a participant who runs the next cycle of the DKG protocol; When the block height reaches the condition for starting a DKG protocol cycle, running the DKG protocol to obtain protocol information and storing the protocol information in the transaction pool includes: When the block height reaches different preset block height intervals within a DKG protocol cycle, the corresponding operation is performed and protocol information is generated, and the protocol information is stored in the transaction pool. Different preset block height intervals within a DKG protocol cycle correspond to different node operations; When the block height reaches different preset block height intervals within a DKG protocol cycle, executing corresponding operations and generating protocol information, and storing the protocol information in the transaction pool includes: When the block height reaches a preset first block height interval, each of the first participants generates a public key and private key pair, broadcasts the public key to other first participants in the form of a hash commitment, divides the private key into a plurality of private key slices, encrypts the plurality of private key slices and broadcasts them to other first participants, and each of the first participants decrypts a private key slice; and stores the public key broadcasted in the form of a hash commitment and the encrypted private key slices in a transaction pool; When the block height reaches different preset block height intervals within a DKG protocol cycle, executing corresponding operations and generating protocol information, and storing the protocol information in the transaction pool also includes: When the block height reaches the preset second block height interval, each of the first participants decrypts each received private key slice and verifies whether the decrypted private key slice matches the corresponding public key; if the decrypted private key slice matches the corresponding public key, each of the first participants broadcasts the consent information to other first participants; if the decrypted private key slice does not match the corresponding public key, each of the first participants sends a veto information to other first participants, and removes the node corresponding to the veto information from the first participant to obtain the second participant; the consent information, the veto information, and the second participant are stored in the transaction pool.
Citation Information
Patent Citations
Block storage method and device, computer equipment and storage medium
CN111314067A
Key management method and device based on block chain digital copyright protection system
CN113158143A
Data processing method, device and equipment based on block chain and readable storage medium
CN113783699A
Method, system and node for realizing distributed key generation on block chain
CN115941163A
Method and node for realizing distributed key generation on block chain
CN116032461A
