A random number generation method based on VBFT consensus mechanism
By employing multinomial factorization and cryptographic commitment in the VBFT consensus mechanism, unpredictable and verifiable random numbers are generated, solving the security vulnerabilities in random number generation in the VBFT consensus mechanism and the performance degradation of PBFT, thus achieving efficient, secure, and scalable random number generation.
Patent Information
- Application Number
- CN202210653734.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-10
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-06-10
AI Technical Summary
The VBFT consensus mechanism has a security vulnerability in the random number generation process, which makes the priority of proposal nodes predictable. Furthermore, the PBFT algorithm's performance degrades with a high number of nodes, making it unable to meet the needs of complex blockchain applications.
A random number generation method based on the VBFT consensus mechanism is adopted. Through the collaborative computation of the consortium core and general consensus participating nodes, verifiable random numbers are generated using multinomial factorization and cryptographic commitments to ensure the security and verifiability of the computation process.
It achieves efficient and secure random number generation, ensuring that the generated random numbers are unpredictable, and has good scalability and performance, adapting to multi-node environments.
Smart Images

Figure CN115021912B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of blockchain applications, and in particular relates to a random number generation method based on a VBFT consensus mechanism. Background Art
[0002] Blockchain originated from Bitcoin. In 2008, Satoshi Nakamoto published the article "Bitcoin: A Peer-to-Peer Electronic Cash System", which marked the birth of Bitcoin and blockchain. Blockchain was originally proposed as the core underlying technology of Bitcoin. It uses data encryption, timestamps, distributed consensus and other means to achieve decentralized and trustless peer-to-peer transactions. Later, it gradually expanded to the fields of electronic contracts, Internet of Things, insurance, copyright evidence, etc. The consensus mechanism, as the underlying technology of blockchain, ensures the correctness and consistency of distributed ledger data, and is a rule that every blockchain network node must abide by. The performance, security and scalability of a blockchain network largely depend on the algorithm design of its consensus mechanism. The Verifiable Byzantine Fault-Tolerant (VBFT) consensus mechanism is an emerging hybrid consensus mechanism that combines the advantages of VRF (verifiable random function), PoS (proof of stake), and BFT (Byzantine Fault Tolerance). It is a highly decentralized, scalable and efficient consensus mechanism, but it has great security issues. We propose an improved VBFT consensus mechanism system based on general access structured secret sharing, hash operations and other cryptographic techniques to solve the security issues in the VBFT consensus mechanism, and use zero-knowledge proof to ensure the correctness and verifiability of the calculation during the calculation process.
[0003] The selection of consensus node roles, the order of block generation, and which node completes the final block generation in the VBFT consensus mechanism process are determined by the value of the random number generated by VRF. However, the VRF algorithm used in the VBFT consensus mechanism has huge security vulnerabilities. Let's first analyze the method used when a block is generated in VBFT. First, the verification node only endorses the highest-level block in its hand, and the highest-level block is determined by the highest priority of the proposal node. The priority of the proposal node is the order of all the candidate proposal nodes arranged in V. In other words, the proposal node ranked first has the highest priority. After that, the confirmation node only signs the block with the highest level that has completed the endorsement. Therefore, the priority of the proposal node is of great significance to the result of the consensus, that is, the proposal node with the highest priority has the greatest possibility of becoming the generator of this block.
[0004] We assume that the consensus is on the rth block, r is a positive integer, and the VRF value of the rth block is V=hash(vrf r-1, r), that is, the V value of the rth block is obtained by the vrf of the rth block and the hash of r, hash(vrf r-1 , r) indicates based on vrf r and the hash value of r, vrf represents a verifiable random function, and the calculation method of vrf is vrf r-1 = (sig,π) where sig is the hash value of the user's private key, i.e. the user's private key signature; π is a zero-knowledge proof generated by the private key, and π is variable. Therefore, when the rth block is generated (r is a positive integer), since V of the rth block = hash (vrf r-1 ,r), and the rth block completely determines the priority of the proposal node through V, so the proposal node of the r-1th block calculates vrf r-1 , we can know in advance which node is the highest priority proposal node for the rth block.
[0005] Through the above analysis, the attacker may have the following attack forms: When the proposal node of the r-1th block generates the r-1th block, since π is variable, the proposal node can continuously change vrf r-1 The value of π in the code is used to try to find the vrf that can give it the highest priority in the rth block. r-1 Since the highest priority proposal node is determined only by the lowest 10 bits of V, on average, it takes 1024 attempts to find a vrf that can make itself the highest priority for the next block. r-1 The value of .
[0006] The consensus mechanism currently used by the alliance chain is generally an improved consensus mechanism based on PBFT. A serious problem with this consensus mechanism is that when the number of nodes is too large, the performance of PBFT will drop significantly. The biggest limitation of the PBFT algorithm is that it can only coordinate a small number of nodes. When the number of consensus nodes is hundreds or thousands, the performance of the entire system will be very low. This is due to the three-stage protocol of the PBFT algorithm. In the three-stage protocol, nodes need to continuously perform multipoint broadcasting to achieve voting message transmission, which greatly limits the performance of the algorithm. The order of magnitude of the number of communications in the PBFT algorithm is proportional to the square of the number of consensus nodes. When the number of consensus nodes is large, the performance loss caused by communication limits the consensus performance of PBFT. In addition, PBFT is only applicable to peer-to-peer node networks. However, with the rapid development of blockchain, more and more application requirements have been proposed. The complexity of blockchain application scenarios has caused the PBFT algorithm to be unable to meet the requirements.
[0007] In summary, in the VBFT random number generation process, if a proposal node wins a block competition, it may always be at the highest priority of the proposal node, and all blocks are generated by this proposal node, which is a serious security vulnerability. In the traditional alliance chain consensus mechanism, scalability and throughput are urgent issues that restrict the development of alliance chains. Summary of the invention
[0008] In view of the existing problems, the purpose of the present invention is to provide a random number generation method based on the VBFT consensus mechanism to solve the above problems.
[0009] The present invention provides the following technical solutions:
[0010] A random number generation method based on the VBFT consensus mechanism comprises the following steps:
[0011] S1: Each core participating node of the alliance selects 1 first random number and t-1 second random numbers, and uses a public function of a public vector space access structure Calculate the distributed sub-shares and make public the cryptographic commitment of the sub-shares while distributing them; except for the core participating nodes of the alliance, each general consensus participating node selects 1 first random number and t-1 second random numbers. Each general consensus participating node generates a t-1 degree polynomial based on the 1 first random number and t-1 second random numbers selected by it. The first random number is used as the constant term of the t-1 degree polynomial, and the t-1 degree polynomial is divided into n secret sub-shares. The secret sub-shares are sent to their corresponding general consensus participating nodes;
[0012] S2: Verify the cryptographic commitment provided by the participating nodes. If the verification fails, all the calculation data of the participating nodes will be deleted. After all participating nodes have verified, the participating nodes that have passed the verification will proceed to the next step.
[0013] S3: The participating nodes homomorphically add all the received secret sub-shares;
[0014] S4: The participating node uses the private key to decrypt the result of the homomorphic addition to obtain the sum of the decrypted sub-shares, and then decodes the sum of the decrypted sub-shares to obtain the sum of the decoded sub-shares, and obtains the cryptographic commitment used to verify its own decryption;
[0015] S5: Verify the decryption calculation of the participating node according to the cryptographic commitment provided by the participating node. If the verification fails, all the calculation data of the participating node will be deleted. After all participating nodes have completed the verification, the participating nodes that have passed the verification will proceed to the next step.
[0016] S6: After the alliance core nodes satisfy the specific access structure, each participating alliance core node calculates the first verifiable random number based on the sum of the sub-shares of other participating alliance core nodes; the general consensus participating nodes send the sum of the decoded sub-shares by themselves to other general consensus participating nodes, and the general consensus participating nodes calculate the second verifiable random number based on the sum of the decoded sub-shares of other general consensus participating nodes.
[0017] S7: Add the first verifiable random number and the second verifiable random number to obtain a random seed, and perform a single hash operation on the random seed to obtain the third verifiable random number.
[0018] Preferably, t is the protocol threshold or the vector space dimension, and the value range of t is t > 1.
[0019] Preferably, the length of the verifiable random number is 256 bits.
[0020] Among them, the method for the participating alliance core node to calculate the first verifiable random number specifically includes the following steps:
[0021] S6A1: Initialize Γ as the access structure on the vector space of n participating alliance core nodes, is a public function;
[0022] S6A2: The participating alliance core node P i arbitrarily selects an S i ∈GF(q) as the sub-secret. The participating node P i randomly selects a vector V i ∈E, such that V i ·(1, 0,..., 0) = S i , and calculates the sub-shares of other participating alliance core nodes P through consensus j and secretly shares them with P j . At the same time, P i calculates and publishes the commitment through the formula .
[0023] S6A3: In the authorized subset B = P 1 , P 2 ,..., P l , 1 < l < n, after the participating alliance core nodes in B complete the sub-share verification, they solve the equation to calculate the vector x = (c 1 , c 2 ,..., c l ). The master secret is the calculation result of the formula . The participating alliance core nodes in B combine their master shares to obtain the master secret S, that is, the first verifiable random number.
[0024] Preferably, the alliance core participating node receives sub-shares s from other alliance core participating nodes ij When the alliance core participating node P j Calculate first if Established, then I believe that the core of the alliance will participate in P i is honest, otherwise the alliance core participating node P is required i Resend the sub-share or re-transmit the alliance core node P i Mark as a dishonest participating node and delete the relevant data.
[0025] In the σth round, there is a node P outside the system. n+1 When joining the Alliance Core, the Alliance Core participating node P i The operation performed by (i= 1,2,...,n) includes the following steps:
[0026] S6AA1: Alliance core participating node P i Choose any non-zero r-dimensional vector on E Recorded as
[0027] S6AA2: Alliance core participating node P i Using the formula Calculate the secret sub-share and publicly commit to Sent to other honest alliance core participating nodes;
[0028] S6AA3: Other alliance core participating nodes P j Verify received sub-shares If the sub-share is valid, the sub-share will be accepted;
[0029] S6AA4: When P j After accepting, calculate have The obtained S j ' (σ Sent to the newly joined node P n+1 ;
[0030] S6AA5: New node P n+1 Receive the secret sub-shares S of all members j ' (σ After that, the new node calculates its own sub-share through Lagrange interpolation. When the new node receives the sub-share provided by the core participating nodes of the alliance and completes the construction of its own sub-share, it is considered to have joined the core of the alliance.
[0031] Preferably, step S6AA5 uses the formula Calculate the new node Pn+1 own sub-share.
[0032] After σ-1 rounds of consensus, the core participating nodes of the alliance have C nodes {P 1 ,P 2 ,...,P C When you need to exit, the following steps are performed:
[0033] S6AB1: At time σ, the core participating nodes P of the alliance that have not withdrawn j No longer accepting exit nodes P i (i= 1,2,...,C) sent updated sub-shares, P j By formula Update own sub-shares;
[0034] S6AB2: Node P that has not exited j (j=C+1,C+2,...,n) no longer exits node P i (i= 1,2,...,C) sends updated sub-shares and exits node P i , the secret sub-share of (i=1,2,...,C) is still
[0035] Preferably, the method for calculating the second verifiable random number by the general consensus participating node in step S6 comprises the following steps:
[0036] S6B1: Generate parameters of the elliptic curve used to generate keys;
[0037] S6B2: Generally, the consensus participating nodes generate a random large number as the private key and use the formula pk i =sk i G generates a public key;
[0038] S6B3; General consensus participating nodes generate and share secrets for other participating nodes to verify;
[0039] S6B4: The general consensus participating nodes verify the received sub-shares to determine whether they are honest;
[0040] S6B5: The receiving node uses the private key sk j Decrypt the sub-shares of the honest general consensus participating nodes to obtain the sum of all sub-shares;
[0041] S6B6: The general consensus participating node calculates the master secret initially selected by the general consensus participating node based on the sum of the sub-shares through the Lagrange interpolation formula, and performs an operation on the master secret to obtain the second verification random number.
[0042] Preferably, the method of generating and sharing a secret in step S6B3 comprises the following steps:
[0043] S6B31: General consensus participating node P i Choose to randomly choose your own master secrets i , and then select t-1 random numbers a 1 ,a 2 ,...,a t-1 Generate the following t-1 degree polynomial f i (x) = s i +a 1 x+...+ a t-1 x t-1 ;
[0044] S6B32: General consensus participating nodes use formula s ij =f i (j) calculating sub-shares;
[0045] S6B33: General consensus participating nodes use their own public key pk i Encrypting sub-shares;
[0046] S6B34: General consensus participating nodes use formula Construct Feldman commitment;
[0047] S6B35: General consensus participating nodes publicly commit y ij , and send the sub-shares to other general consensus participating nodes.
[0048] The beneficial technical effects of the present invention are:
[0049] The present invention replaces the VRF in the classic VBFT consensus mechanism to generate random numbers, and has the advantages of high efficiency and security. The random number generation method allows multiple parties that do not trust each other to jointly generate a safe random number that is calculated by multiple parties and can be verified by anyone, and the authenticity and generation process of the random number can be verified by anyone. Through the random number generation method, no one knows any private information of others and the input data during the calculation, but anyone can verify the correctness of each person's calculation. Based on this method, as long as there is an honest participant, the random number finally generated is random and unpredictable. At the same time, this solution also provides the addition and deletion of nodes, provides good scalability and has the high performance of the VBFT consensus mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flow chart of a random number generation method based on the VBFT consensus mechanism provided by the present invention;
[0051] Figure 2It is a tree relationship diagram of each sub-method in step 6 of the random number generation method of the VBFT consensus mechanism provided by the present invention;
[0052] Figure 3 It is a schematic diagram of the random number generation method of the VBFT consensus mechanism provided by the present invention. DETAILED DESCRIPTION
[0053] The embodiments of the present invention are described in detail below. The following embodiments are implemented on the premise of the technical solution of the present invention, and detailed implementation methods and specific operation processes are given, but the protection scope of the present invention is not limited to the following embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments without conflict.
[0055] Example
[0056] See also Figure 1 , 2 The random number generation method based on the VBFT consensus mechanism provided by the embodiment of the present invention comprises the following steps:
[0057] S1: Each core participating node of the alliance selects 1 first random number and t-1 second random numbers, and uses a public function of a public vector space access structure Calculate the distributed sub-shares and make public the cryptographic commitment of the sub-shares while distributing them; except for the core participating nodes of the alliance, each general consensus participating node selects 1 first random number and t-1 second random numbers. Each general consensus participating node generates a t-1 degree polynomial based on the 1 first random number and t-1 second random numbers selected by it. The first random number is used as the constant term of the t-1 degree polynomial, and the t-1 degree polynomial is divided into n secret sub-shares. The secret sub-shares are sent to their corresponding general consensus participating nodes;
[0058] S2: Verify the cryptographic commitment provided by the participating nodes. If the verification fails, all the calculation data of the participating nodes will be deleted. After all participating nodes have verified, the participating nodes that have passed the verification will proceed to the next step.
[0059] S3: The participating nodes homomorphically add all the received secret sub-shares;
[0060] S4: The participating node uses the private key to decrypt the result of the homomorphic addition to obtain the sum of the decrypted sub-shares, and then decodes the sum of the decrypted sub-shares to obtain the sum of the decoded sub-shares, and obtains the cryptographic commitment used to verify its own decryption;
[0061] S5: Verify the decryption calculation of the participating node according to the cryptographic commitment provided by the participating node. If the verification fails, all the calculation data of the participating node will be deleted. After all participating nodes have completed the verification, the participating nodes that have passed the verification will proceed to the next step.
[0062] S6: After the alliance core nodes meet the specific access structure, each alliance core participating node calculates the first verifiable random number based on the sum of the sub-shares of other alliance core participating nodes; the general consensus participating node sends the sum of its decoded sub-shares to other general consensus participating nodes, and the general consensus participating node calculates the second verifiable random number based on the sum of the decoded sub-shares of other general consensus participating nodes;
[0063] S7: Add the first verifiable random number and the second verifiable random number to obtain a random seed, and perform a hash operation on the random seed to obtain a third verifiable random number.
[0064] t is the protocol threshold value or the vector space dimension, and the value range of t is t>1.
[0065] The length of the verifiable random number is 256 bits.
[0066] The method for the core participating node of the alliance to calculate the first verifiable random number specifically includes the following steps:
[0067] S6A1: Initialize Γ as the access structure on the vector space of n core participating nodes of the alliance, For public functions;
[0068] S6A2: Alliance core participating node P i Choose any S i ∈GF(q) is the sub-secret, and the participating node P i Randomly select a vector V i ∈E, so that V i (1,0,...,0) = S i , through consensus Calculate other alliance core participating nodes P j The sub-share is shared secretly with P j , while P i By formula Calculate and make public commitments;
[0069] S6A3: In the authorized subset B = P1 , P 2 ,..., P l , where 1 < l < n, after the coalition core participating nodes in B complete the sub-share verification, by solving the equation calculate the vector x = c 1 , c 2 ,..., c l ). The master secret is the calculation result of the formula . The coalition core participating nodes in B combine their master shares to obtain the master secret S, that is, the first verifiable random number.
[0070] When the coalition core participating node receives the sub-share s ij from other coalition core participating nodes, the coalition core participating node P j first calculates If holds, then it is believed that the coalition core participating P i is honest, otherwise the coalition core participating node P i is required to resend the sub-share or mark the coalition core node P i as a dishonest participating node and delete the relevant data.
[0071] When a node P n+1 outside the system joins the coalition core in the σ-th round, the operations performed by the coalition core participating nodes P i (i = 1, 2,..., n) include the following steps:
[0072] S6AA1: The coalition core participating node P i arbitrarily selects a non-zero r-dimensional vector on E denoted as
[0073] S6AA2: The coalition core participating node P i uses the formula to calculate the secret sub-share, makes a public commitment, and sends the sub-share to other honest coalition core participating nodes;
[0074] S6AA3: Other coalition core participating nodes P j verify the validity of the received sub-share . If it is valid, accept the sub-share;
[0075] S6AA4: After P j accepts, calculate There is Send the obtained S j ' (σ) to the newly joined node P n+1;
[0076] S6AA5: New node P n+1 Receive the secret sub-shares S of all members j ' (σ) After that, the new node calculates its own sub-share through Lagrange interpolation. When the new node receives the sub-share provided by the core participating nodes of the alliance and completes the construction of its own sub-share, it is considered to have joined the core of the alliance.
[0077] Step S6AA5 uses the formula Calculate the new node P n+1 own sub-share.
[0078] After σ-1 rounds of consensus, the core participating nodes of the alliance have C nodes {P 1 ,P 2 ,...,P C When you need to exit, the following steps are performed:
[0079] S6AB1: At time σ, the core participating nodes P of the alliance that have not withdrawn j No longer accepting exit nodes P i (i= 1,2,...,C) sent updated sub-shares, P j By formula Update own sub-shares;
[0080] S6AB2: Node P that has not exited j (j=C+1,C+2,...,n) no longer exits node P i (i= 1,2,...,C) sends updated sub-shares and exits node P i , the secret sub-share of (i=1,2,...,C) is still
[0081] like Figure 2 As shown, the method for calculating the second verifiable random number by the general consensus participating node in step S6 includes the following steps:
[0082] S6B1: Generate parameters of the elliptic curve used to generate keys;
[0083] S6B2: Generally, the consensus participating nodes generate a random large number as the private key and use the formula pk i =sk i G generates a public key;
[0084] S6B3; General consensus participating nodes generate and share secrets for other participating nodes to verify;
[0085] S6B4: The general consensus participating nodes verify the received sub-shares to determine whether they are honest;
[0086] S6B5: The receiving node uses the private key sk j Decrypt the sub-shares of the honest general consensus participating nodes to obtain the sum of all sub-shares;
[0087] S6B6: The general consensus participating node calculates the master secret initially selected by the general consensus participating node based on the sum of the sub-shares through the Lagrange interpolation formula, and performs an operation on the master secret to obtain the second verification random number.
[0088] Step S6B3: The method for generating a secret comprises the following steps:
[0089] S6B31: General consensus participating node P i Choose to randomly choose your own master secrets i , and then select t-1 random numbers a 1 ,a 2 ,...,a t-1 Generate the following t-1 degree polynomial f i (x) = s i +a 1 x+...+ a t-1 x t-1 ;
[0090] S6B32: General consensus participating nodes use formula s ij =f i (j) calculating sub-shares;
[0091] S6B33: General consensus participating nodes use their own public key pk i Encrypting sub-shares;
[0092] S6B34: General consensus participating nodes use formula Construct Feldman commitment;
[0093] S6B35: General consensus participating nodes publicly commit y ij , and send the sub-shares to other general consensus participating nodes.
[0094] The method provided by the embodiment of the present invention can generate random numbers efficiently and securely, and anyone can verify the correctness of the calculation of each node.
[0095] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A random number generation method based on the VBFT consensus mechanism, characterized in that: The following steps are involved: S1: Each core participating node of the alliance selects 1 first random number and t-1 second random numbers, and uses a public function of a public vector space access structure Calculate the distributed sub-shares and make public the cryptographic commitment of the sub-shares while distributing them; except for the core participating nodes of the alliance, each general consensus participating node selects 1 first random number and t-1 second random numbers. Each general consensus participating node generates a t-1 degree polynomial based on the 1 first random number and t-1 second random numbers selected by it. The first random number is used as the constant term of the t-1 degree polynomial, and the t-1 degree polynomial is divided into n secret sub-shares. The secret sub-shares are sent to their corresponding general consensus participating nodes; S2: Verify the cryptographic commitment provided by the participating nodes. If the verification fails, all the calculation data of the participating nodes will be deleted. After all participating nodes have verified, the participating nodes that have passed the verification will proceed to the next step. S3: The participating nodes homomorphically add all the received secret sub-shares; S4: The participating node uses the private key to decrypt the result of the homomorphic addition to obtain the sum of the decrypted sub-shares, and then decodes the sum of the decrypted sub-shares to obtain the sum of the decoded sub-shares, and obtains the cryptographic commitment used to verify its own decryption; S5: Verify the decryption calculation of the participating node according to the cryptographic commitment provided by the participating node. If the verification fails, all the calculation data of the participating node will be deleted. After all participating nodes have completed the verification, the participating nodes that have passed the verification will proceed to the next step. S6: After the alliance core nodes meet the specific access structure, each alliance core participating node calculates the first verifiable random number based on the sum of the sub-shares of other alliance core participating nodes; the general consensus participating node sends the sum of its decoded sub-shares to other general consensus participating nodes, and the general consensus participating node calculates the second verifiable random number based on the sum of the decoded sub-shares of other general consensus participating nodes; S7: Add the first verifiable random number and the second verifiable random number to obtain a random seed, and perform a hash operation on the random seed to obtain a third verifiable random number; The method for the alliance core participating node to calculate the first verifiable random number in step S6 comprises the following steps: S6A1: Initialization is the access structure on the vector space of n core participating nodes of the alliance, For public functions; S6A2: Alliance core participating node Choose any one For sub-secrets, participating nodes Pick a vector at random ,make , through consensus Calculate other alliance core participating nodes and secretly share it with ,at the same time By formula Calculate and make public commitments; S6A3: In the authorized subset middle, After completing the sub-share verification, the core participating nodes of the alliance solve the equation Calculating vectors , the master secret is the formula The calculation result is The core participating nodes of the alliance combine their master shares to obtain the master secret , which is the first verifiable random number.
2. The random number generation method based on the VBFT consensus mechanism according to claim 1 is characterized in that: In step S1, t is a protocol threshold value or a vector space dimension, and the value range of t is t>1.
3. The random number generation method based on the VBFT consensus mechanism according to claim 1 is characterized in that: The length of the verifiable random number is 256 bits.
4. The random number generation method based on the VBFT consensus mechanism according to claim 1 is characterized in that: In step S6A2, the alliance core participating node receives sub-shares from other alliance core participating nodes. When the alliance core participating nodes Calculate first ,if Established, then I believe the core participation of the alliance Be honest, otherwise the alliance core participation node is required Resend the sub-share or re-transmit the alliance core node Mark as a dishonest participating node and delete the relevant data.
5. The random number generation method based on the VBFT consensus mechanism according to claim 1 is characterized in that: In the There are nodes outside the wheel system When joining the Alliance Core, the Alliance Core Participating Node The operations performed include the following steps: S6AA1: Alliance core participating node exist Choose any non-zero Dimensional vector , denoted as ; S6AA2: Alliance core participating node Calculate the secret sub-share and publicly commit to Sent to other honest alliance core participating nodes; S6AA3: Other alliance core participating nodes Verify received sub-shares If the sub-share is valid, the sub-share will be accepted; S6AA4: When After accepting, calculate ,have , will get Sent to newly joined nodes ; S6AA5: New Node Receive secret subshares from all members After that, the new node calculates its own sub-share through Lagrange interpolation. When the new node receives the sub-share provided by the core participating nodes of the alliance and completes the construction of its own sub-share, it is considered to have joined the core of the alliance.
6. The random number generation method based on the VBFT consensus mechanism according to claim 5 is characterized in that: The step S6AA5 uses the formula Calculate the new node its own sub-share.
7. The random number generation method based on the VBFT consensus mechanism according to claim 5 is characterized in that: exist After the round of consensus, the core participating nodes of the alliance have Nodes When you need to exit, the following steps are performed: S6AB1: At this time, the core participating nodes of the alliance that have not withdrawn No longer accepting exit nodes Update sub-shares sent, Update own sub-shares; S6AB2: Node that has not exited No longer send exit nodes Send updated sub-shares and exit node The secret sub-share is still .
8. The random number generation method based on the VBFT consensus mechanism according to claim 1 is characterized in that: The method for calculating the second verifiable random number by the general consensus participating node in step S6 comprises the following steps: S6B1: Generate parameters of the elliptic curve used to generate keys; S6B2: Generally, the consensus participating nodes generate a large random number as a private key and use the formula Generate a public key; S6B3; General consensus participating nodes generate and share secrets for other participating nodes to verify; S6B4: The general consensus participating nodes verify the received sub-shares to determine whether they are honest; S6B5: Receiving node uses private key Decrypt the sub-shares of the honest general consensus participating nodes to obtain the sum of all sub-shares; S6B6: The general consensus participating node calculates the master secret initially selected by the general consensus participating node based on the sum of the sub-shares through the Lagrange interpolation formula, and performs an operation on the master secret to obtain a second verifiable random number.
9. The random number generation method based on the VBFT consensus mechanism according to claim 8 is characterized in that: In the method for calculating the second verifiable random number by the consensus participating nodes, the method for generating a secret in step S6B3 comprises the following steps: S6B31: General consensus participating node Choose to randomly choose your own master secret , then select Random numbers Generate as follows Polynomial ; S6B32: General consensus participating nodes pass the formula Calculate sub-shares; S6B33: General consensus participating nodes use their own public keys Encrypting sub-shares; S6B34: General consensus participating nodes use formula Construct Feldman commitment; S6B35: Public commitment of general consensus participating nodes , and send the sub-shares to other general consensus participating nodes.
Citation Information
Patent Citations
Multi-dimensional random number consensus election method of block chain
CN107481145A
Random number generation method of VBFT consensus mechanism and consensus mechanism system
CN113111373A
Privacy preservation in private consensus networks
US11164180B1
