CN116389504A - Block chain-based identity authentication quick consensus method, system, equipment and medium - Google Patents
Block chain-based identity authentication quick consensus method, system, equipment and medium Download PDFInfo
- Publication number
- CN116389504A CN116389504A CN202310243790.5A CN202310243790A CN116389504A CN 116389504 A CN116389504 A CN 116389504A CN 202310243790 A CN202310243790 A CN 202310243790A CN 116389504 A CN116389504 A CN 116389504A
- Authority
- CN
- China
- Prior art keywords
- block chain
- node
- consensus
- nodes
- blockchain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000012795 verification Methods 0.000 claims abstract description 126
- 230000005540 biological transmission Effects 0.000 claims abstract description 34
- 239000012634 fragment Substances 0.000 claims abstract description 34
- 230000006870 function Effects 0.000 claims description 12
- 238000013507 mapping Methods 0.000 claims description 8
- 230000000694 effects Effects 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 230000006399 behavior Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000011160 research Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000009937 brining Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000005336 cracking Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1051—Group master selection mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3247—Cryptographic 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a block chain-based identity authentication quick consensus method, a system, equipment and a medium, wherein the method comprises the following steps: distributing weight values to the block chain link points through the service group, and obtaining node grades of the block chain nodes according to the weight values of the block chain nodes; network slicing is carried out through node grades of all the block chain nodes, and a plurality of block chain network slices are obtained; carrying out internal consensus and internal election of block chain nodes on each block chain network fragment to obtain common committee members of each block chain network fragment; all common committee members constitute the common committee; the common committee is used for selecting a verification algorithm to obtain a consensus verification algorithm and generating an identity signature of the consensus verification algorithm; and carrying out transaction data transmission according to the consensus verification algorithm and the identity signature of the consensus verification algorithm. The invention reduces the consensus time among the block chain nodes, releases a large amount of computing resources, improves expansibility and ensures high safety.
Description
Technical Field
The invention relates to the technical field of communication circuits, in particular to a block chain-based identity authentication quick consensus method, a system, equipment and a medium.
Background
The consensus mechanism is an important guarantee for normal operation of the blockchain system, and has become a hot research content in the current blockchain technology. High security, high speed and low resource consumption are core goals of consensus mechanism research design.
The common chain is usually realized by executing the intelligent contract, and the intelligent contract not only comprises verification of the correctness of the application layer data, but also comprises data consistency judgment during the bottom layer storage. This tightly coupled design results in a consensus algorithm with very low extensibility, creating a limitation on building flexible blockchain applications.
Another idea of consensus mechanism research is to combine multiple consensus mechanisms. BentovI et al in 2014 proposed proof of Activity (PoA) that a balance was found between security and resource consumption based on PoW and PoS. The NEO platform in 2016 proposed a dBFT consensus mechanism. The dBFT consensus mechanism is a combination of a PoS algorithm and a PBFT algorithm, wherein a part of accounting nodes are selected from a large range of nodes by using the PoS algorithm, and then the accounting nodes are commonly known by using the PBFT algorithm. The dBFT consensus mechanism solves the problem that the PoS algorithm consensus time is long and the problem that the PBFT algorithm expansibility is poor, but whether the dBFT consensus mechanism is an action proof or a dBFT consensus mechanism, the transaction between nodes is verified, a large amount of computation resources are occupied, the transaction processing speed is influenced, and therefore the safety of the consensus mechanism is a big problem of a quick consensus scheme under the condition of low resource consumption.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides the identity authentication rapid consensus method, the system, the equipment and the medium based on the blockchain, which can reduce consensus time through the transaction data transmission in the blockchain network patch and the transaction data transmission between the blockchain network patches by the identity signature authentication, the committee election and the consensus verification algorithm, release a large amount of computing resources, promote expansibility and ensure high safety.
In a first aspect, an embodiment of the present invention provides a blockchain-based rapid identity authentication consensus method, including:
distributing weight values to the block chain link points through the service group, and obtaining node grades of the block chain nodes according to the weight values of the block chain nodes;
network slicing is carried out through node grades of all the block chain nodes, and a plurality of block chain network slices are obtained;
carrying out internal consensus and internal election of the block chain nodes on each block chain network fragment to obtain common committee members of each block chain network fragment; all the common committee members constitute a common committee;
Selecting a verification algorithm through the common committee to obtain a consensus verification algorithm and generating an identity signature of the consensus verification algorithm;
and carrying out transaction data transmission in the block chain network fragment and transaction data transmission between the block chain network fragments according to the consensus verification algorithm and the identity signature of the consensus verification algorithm.
The method according to the embodiment of the invention has at least the following beneficial effects:
firstly, distributing weight values to block chain link points through a service group, and calculating node grades of block chain nodes to prevent malicious node attacks; then network slicing is carried out according to the node grade of the block chain node, so that the high-quality block chain link points are ensured to be in the same network slice area as much as possible, and a better transaction environment is provided for the high-quality block chain node; then, each block chain network fragment is subjected to internal consensus and internal election of block chain nodes to obtain common committee members of each block chain network fragment, so that the common committee members can make decisions on representing opinion of the block chain network fragment, and the consensus time of the block chain nodes is reduced; secondly, the committee performs selection of the verification algorithm to obtain a consensus verification algorithm and generate an identity signature of the consensus verification algorithm, transaction data can be encrypted and decrypted through the consensus verification algorithm, and the transaction data cannot be decrypted without nodes achieving the consensus verification algorithm, so that transaction verification complexity among blockchain nodes is reduced, and a large amount of computing resources for transaction verification are saved; and finally, carrying out quick consensus of the blockchain nodes through a consensus verification algorithm and an identity signature of the consensus verification algorithm, so that the speed of transaction data transmission in the blockchain network area and transaction data transmission between the blockchain network areas is improved, and the security of the transaction data is ensured through the consensus verification algorithm and the identity signature.
According to some embodiments of the invention, the assigning a weight value to a block link point through a service group, and obtaining a node level of the block chain node according to the weight value of the block chain node, includes:
calculating a weight value of the blockchain node in a preset period according to the blockout time, the blockout utilization rate, the node activity and the voting effective rate of the blockchain node in the preset period of the service group;
calculating to obtain the node grade of the block chain node through the weight value of the block chain node in the preset period and the real-time dynamic weight value of the block chain node; the real-time dynamic weight value of the block chain node is calculated by the real-time online time of the block chain node, the number of the real-time proposed blocks, the total capacity fraction consumed by creating legal blocks in real time and the real-time effective voting fraction.
According to some embodiments of the present invention, the performing network slicing through node levels of all the blockchain nodes to obtain a plurality of blockchain network slices includes:
obtaining a node identity relation mapping table according to the node grades of all the blockchain nodes;
and performing network slicing according to the node identity relation mapping table to obtain the plurality of blockchain network slices.
According to some embodiments of the invention, the performing transaction data transmission inside the blockchain network patch and transaction data transmission between the blockchain network patch according to the consensus verification algorithm and the identity signature of the consensus verification algorithm includes:
according to the consensus verification algorithm, transaction data are locally calculated to obtain a verification result;
transmitting the verification result and the identity signature of the consensus verification algorithm to the inside of the blockchain network patch of the transaction data;
carrying out identity signature recognition of the identity signature verification algorithm on all nodes in the block chain network fragment to obtain nodes achieving identity signature consensus;
decrypting the verification and verification result by the node achieving identity signature consensus through the consensus verification algorithm corresponding to the identity signature consensus to obtain the transaction data;
when transaction data transmission between the block chain network tiles is required, identity signature recognition of the common committee member of each block chain network tile is carried out, whether the common recognition of the verification algorithm is achieved between the block chain network tiles is verified, and if the common recognition of the verification algorithm is achieved between the block chain network tiles, the verification result is sent to the block chain network tiles achieving the common recognition of the verification algorithm.
According to some embodiments of the present invention, after the common committee performs selection of a verification algorithm, obtains a consensus verification algorithm, and generates an identity signature of the consensus verification algorithm, the blockchain-based rapid consensus method for identity authentication further includes:
taking the common committee member as a supervision node, and acquiring other nodes of each blockchain network fragment except the common committee member;
calculating the node grade of the other nodes, and selecting the other nodes exceeding a node grade threshold to issue the identity signature of the consensus verification algorithm downwards; the supervising node is used for carrying out trust supervision on the other nodes which exceed the node grade threshold value in the trust list through the node grade.
According to some embodiments of the invention, the incorporating the other nodes exceeding the node level threshold into the trust list performs trust supervision by the node level, including:
assigning random numbers to the other nodes in the trust list according to a verifiable random function;
grouping the random numbers through a lottery algorithm to obtain the grouping of the other nodes corresponding to the random numbers;
And carrying out trust supervision on the other nodes of each group through each supervision node in one-to-one correspondence, and carrying out reassignment of the random number in a preset period.
According to some embodiments of the invention, the trust supervision of the other nodes by each of the supervision nodes in one-to-one correspondence with each of the packets comprises:
reading the ordered transactions according to the kafka1 cluster;
calculating the node grade of the other nodes corresponding to the transaction;
setting eliminated node grades corresponding to different strength security requirements, eliminating other nodes and incorporating new nodes exceeding the node grade threshold into a trust list.
In a third aspect, embodiments of the present invention provide an electronic device comprising at least one control processor and a memory for communicatively coupling with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the blockchain-based rapid consensus method of identity authentication as described in the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer storage medium storing computer-executable instructions for causing a computer to perform the blockchain-based rapid consensus method of identity authentication as described in the first aspect.
It should be noted that the advantages of the second to fourth aspects of the present invention and the prior art are the same as those of the blockchain-based rapid identity authentication consensus method of the first aspect, and will not be described in detail herein.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a flowchart of a fast identity authentication method based on blockchain according to an embodiment of the present invention;
FIG. 2 is a flow chart of assigning weight values to blockchain nodes through a service group and obtaining node levels of the blockchain nodes based on the weight values of the blockchain nodes in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart of a method for performing network slicing through node levels of all blockchain nodes to obtain a plurality of blockchain network slices according to an embodiment of the present invention;
FIG. 4 is a flow chart of transaction data transmission within a blockchain network patch and transaction data transmission between blockchain network patches according to a consensus verification algorithm and identity signatures of the consensus verification algorithm provided by an embodiment of the present invention;
FIG. 5 is a flowchart of a fast identification method based on blockchain after the common committee performs the selection of the verification algorithm to obtain the identification verification algorithm and generates the identification signature of the identification verification algorithm according to an embodiment of the present invention;
FIG. 6 is a flow chart of trust supervision by node level incorporating other nodes exceeding a node level threshold into a trust list provided by an embodiment of the invention;
FIG. 7 is a flow chart of trust supervision of other nodes by each supervising node in one-to-one correspondence with each packet, provided by an embodiment of the invention;
FIG. 8 is a block chain based architecture diagram of a fast identity authentication consensus system in accordance with an embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, the description of first, second, etc. is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, it should be understood that the direction or positional relationship indicated with respect to the description of the orientation, such as up, down, etc., is based on the direction or positional relationship shown in the drawings, is merely for convenience of describing the present invention and simplifying the description, and does not indicate or imply that the apparatus or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be determined reasonably by a person skilled in the art in combination with the specific content of the technical solution.
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings, in which it is apparent that the embodiments described below are some, but not all embodiments of the invention.
Referring to fig. 1, in some embodiments of the present invention, there is provided a blockchain-based identity authentication fast consensus method including:
and step S100, distributing weight values to the block chain link points through the service group, and obtaining node grades of the block chain nodes according to the weight values of the block chain nodes.
And step 200, performing network slicing through node grades of all the blockchain nodes to obtain a plurality of blockchain network slices.
Step S300, carrying out internal consensus and internal election of block chain nodes on each block chain network fragment to obtain common committee members of each block chain network fragment; all common committee members constitute the common committee.
Step 400, selecting a verification algorithm by a common committee to obtain a consensus verification algorithm and generating an identity signature of the consensus verification algorithm.
And S500, carrying out transaction data transmission in the block chain network fragment and transaction data transmission between the block chain network fragments according to the consensus verification algorithm and the identity signature of the consensus verification algorithm.
The verification algorithm can comprise a symmetric encryption algorithm and an asymmetric encryption algorithm, the symmetric encryption algorithm is used for encrypting the verification message, and the sending node and the receiving party can encrypt and decrypt the verification message only by holding the same secret key, so that the verification algorithm has the characteristics of shorter secret key, high encryption speed and simple encryption processing, and is suitable for occasions of encrypting a large amount of data; the asymmetric encryption algorithm requires two keys, a public key and a private key. The public key and the private key are a pair, if the public key is used for encrypting the data, the data can be decrypted only by the corresponding private key, so that the asymmetric encryption algorithm is not suitable for the occasion of encrypting a large amount of data. The embodiment can select a proper verification algorithm according to the scene requirement, but the verification algorithm cannot be considered as a limitation of the invention, for example, an asymmetric encryption algorithm can select an RSA encryption algorithm, a DSA encryption algorithm and an ECDSA encryption algorithm; RSA encryption algorithm RSA is an asymmetric key encryption technology which is widely applied at present and has long history, and RSA is the most widely applied digital encryption and signature technology at present because of difficult cracking. The security level depends on the length of the key, the currently dominant selectable key is 1024 bits, 2048 bits, 4096 bits, etc., and theoretically, the longer the key is, the more difficult to crack, so that the industry recommends using 2048 bits or more, but the 2048 bits of key is enough to be secure, and the longer key is safer, but the higher the performance cost is. DSA encryption algorithm: the digital signature algorithm is different from the RSA encryption algorithm in that the DSA encryption algorithm can only be used for digital signature, and cannot encrypt and decrypt data, and the security is equivalent to that of RSA, but the performance is faster than that of RSA. The ECDSA encryption algorithm is a combination of elliptic curve cryptography and DSA encryption algorithm, compared with an RSA algorithm, the ECDSA encryption algorithm has the advantages that smaller keys can be used by ECC, higher efficiency is achieved, higher safety guarantee is provided, the safety of 256-bit ECC keys is said to be equal to 3072-bit RSA keys, and compared with common DSA, the ECDSA encryption algorithm has the advantages that part of factors use the elliptic curve algorithm in the process of calculating the keys.
Firstly, distributing weight values to block chain link points through a service group, and calculating node grades of block chain nodes to prevent malicious node attacks; then network slicing is carried out according to the node grade of the block chain node, so that the high-quality block chain link points are ensured to be in the same network slice area as much as possible, and a better transaction environment is provided for the high-quality block chain node; then, each block chain network fragment is subjected to internal consensus and internal election of block chain nodes to obtain common committee members of each block chain network fragment, so that the common committee members can make decisions on representing opinion of the block chain network fragment, and the consensus time of the block chain nodes is reduced; secondly, the committee performs selection of the verification algorithm to obtain a consensus verification algorithm and generate an identity signature of the consensus verification algorithm, transaction data can be encrypted and decrypted through the consensus verification algorithm, and the transaction data cannot be decrypted without nodes achieving the consensus verification algorithm, so that transaction verification complexity among blockchain nodes is reduced, and a large amount of computing resources for transaction verification are saved; and finally, carrying out quick consensus of the blockchain nodes through a consensus verification algorithm and an identity signature of the consensus verification algorithm, so that the speed of transaction data transmission in the blockchain network area and transaction data transmission between the blockchain network areas is improved, and the security of the transaction data is ensured through the consensus verification algorithm and the identity signature.
Referring to fig. 2, in some embodiments of the present invention, assigning weight values to block link points through a service group, and obtaining node levels of block chain nodes according to the weight values of the block chain nodes includes:
step S101, calculating the weight value of the block chain node in a preset period according to the block outlet time, the block utilization rate, the node activity and the voting effective rate of the block chain node in the preset period of the service group.
Step S102, calculating to obtain the node grade of the block chain node through the weight value of the block chain node in a preset period and the real-time dynamic weight value of the block chain link point; the real-time dynamic weight value of the block chain link point is calculated by the real-time online time of the block chain node, the real-time proposed block number, the total capacity fraction consumed by creating the legal block in real time and the real-time effective voting fraction.
It should be noted that, in this embodiment, the block-out time, the block utilization rate, the node activity and the voting effective rate of the blockchain node in the preset period of the service group are calculated according to the past behavior of the blockchain node, the preset period can be formulated according to the actual scene requirement, and meanwhile, the real-time dynamic weight value of the blockchain node is calculated according to the service group where the blockchain node is located in real time, and is updated in real time according to the real-time behavior.
According to the embodiment, the weight value of the past behavior is calculated through the block outlet time, the block utilization rate, the node activity and the voting effective rate of the block chain node in the preset period, the real-time dynamic weight value of the block chain node is calculated, and the real-time performance, the real-time performance and the accuracy of the node grade of the block chain node are guaranteed by combining the block outlet time, the block utilization rate, the node activity and the voting effective rate of the block chain node.
Referring to fig. 3, in some embodiments of the present invention, network slicing is performed through node levels of all blockchain nodes to obtain a plurality of blockchain network slices, including:
step S201, a node identity relation mapping table is obtained according to the node grades of all the blockchain nodes.
The node identity relation mapping table can acquire elements by utilizing the index of the array, the time complexity is low, the node identity relation mapping table can trace the source blockchain node, and the behaviors of the blockchain nodes are mutually supervised to a certain degree.
Step S202, network slicing is carried out according to the node identity relation mapping table, and a plurality of blockchain network slices are obtained.
The blockchain network patch divides a blockchain network having a plurality of nodes into a plurality of subnetworks, each subnetwork including a portion of the nodes, i.e., a segment. Meanwhile, the transactions in the network can be divided into different fragments for processing, so that each node only needs to process a small part of incoming transactions, and different nodes can process the transactions in parallel, namely the concurrency of transaction processing and verification can be increased, and the throughput of the whole network is improved. The throughput is multiplied, so that the problem of transaction congestion is effectively solved, and the transfer fee is reduced.
Referring to fig. 4, in some embodiments of the present invention, the transmission of transaction data within and between blockchain network tiles is performed in accordance with a consensus verification algorithm and an identity signature of the consensus verification algorithm, comprising:
and step S510, locally calculating the transaction data according to the consensus verification algorithm to obtain a verification result.
And step S520, the verification and verification result and the identity signature of the consensus verification algorithm are sent to the inside of the blockchain network fragment of the transaction data.
And step S530, carrying out identity signature recognition of a consensus verification algorithm on all nodes in the block chain network fragment to obtain the node achieving identity signature consensus.
And S540, decrypting and verifying the verification result by the node achieving identity signature consensus through a consensus verification algorithm corresponding to the identity signature consensus to obtain transaction data.
Step S550, when the transaction data transmission between the block chain network segments is required, the common committee member of each block chain network segment is used for carrying out the identity signature recognition of the consensus verification algorithm, verifying whether the consensus of the verification algorithm is achieved between the block chain network segments, and if the consensus of the verification algorithm is achieved between the block chain network segments, transmitting the verification result to the block chain network segment achieving the consensus of the verification algorithm.
It should be noted that, the common committee records the identity of the common committee member, the result of the blockchain node managed by the common committee member, and the state balance of each address account; the block chain network fragment area is mainly formed by packing and recording the transaction which is responsible for processing the fragment by the common committee member; the blocks stored by each validation node are the blockchain network slices and the common committee of its corresponding slice.
Illustratively, the blockchain system is configured with a blockchain network slice including 3 common committee member leaders, which are respectively a first blockchain network slice, a second blockchain network slice and a third blockchain network slice, wherein the first blockchain network slice includes 1 common committee member and 3 blockchain nodes, the numbers of the 3 blockchain nodes are blockchain node 1, blockchain node 2 and blockchain node 3, the numbers of the blockchain nodes in the second blockchain network slice are common node 4, common node 5 and common node 6, and the blockchain nodes in the third blockchain network slice are common node 7, common node 8 and common node 9. The common committee member generates transaction data to be decrypted and encapsulates the transaction data to be decrypted in a preparation packet, and then sends the preparation packet to the common node blockchain node 1, the blockchain node 2 and the blockchain node 3. The common committee member and the common identification verification algorithm obtained by voting in advance through the blockchain node 1, the blockchain node 2 and the blockchain node 3 can decrypt the transaction data, and the common identification verification algorithm can be verified through the identity signature, so that the security of the transaction data transmission is improved, and more computing resources are released.
In the embodiment of the invention, the block chain link points are segmented, and the leader nodes between the segments are identified, so that the identification process between all nodes can be converted into the identification process between a small number of identification nodes among each node group, thereby greatly reducing the identification complexity, reducing the communication pressure and increasing the node scale of the alliance chain; when each consensus node performs consensus in the block chain network patch to which the consensus node belongs, the subsequent consensus process can be executed only by waiting for the consensus state sent by other consensus nodes in the block chain network patch, and the subsequent consensus process can be executed without waiting for the consensus state party sent by all the consensus nodes in the block chain system like the prior art, so that the waiting time required by the consensus process of each consensus node can be greatly reduced, and the consensus efficiency of the block chain system is greatly improved; and furthermore, when the transaction is carried out in the prior art, all nodes are required to mutually verify, and verification information is transmitted, verification information is received and replied, and the like for multiple information transmission is verified, so that the consensus time is greatly shortened, a large amount of computing resources are released, and the block chain procedure cost is reduced.
Referring to fig. 5, in some embodiments of the present invention, after the selection of the authentication algorithm by the common committee, the obtaining of the consensus authentication algorithm and the generation of the identity signature of the consensus authentication algorithm, the blockchain-based rapid consensus method for identity authentication further includes:
and step S310, taking the common committee member as a supervision node, and acquiring other nodes of each block chain network fragment except the common committee member.
Step S320, calculating node grades of other nodes, and selecting other nodes exceeding a node grade threshold to perform downward signing of identity signatures of a consensus verification algorithm; the supervising node is used for carrying out trust supervision on other nodes which exceed the threshold value of the node level in the trust list through the node level.
It should be noted that, in order to cope with the needs of task scenarios, the present embodiment provides a method capable of further reducing the complexity of consensus and reducing the consensus time, by using a common committee member as a supervision node, other nodes issue the identity signature of the consensus verification algorithm downwards, and at the same time, the nesting behavior issued downwards may not be limited.
The complexity of consensus is further reduced and the consensus time is reduced by further utilizing other nodes to issue downwards, and meanwhile, the security of issuing downwards by other nodes is enhanced by utilizing common committee members as supervision nodes.
Referring to fig. 6, in some embodiments of the invention, incorporating other nodes exceeding a node level threshold into a trust list performs trust supervision by node level, including:
and step S321, giving random numbers to other nodes in the trust list according to the verifiable random function.
And step S322, grouping the random numbers through a lottery algorithm to obtain the grouping of other nodes corresponding to the random numbers.
Step S323, performing trust supervision on other nodes of each group through one-to-one correspondence between each supervision node, and performing random number reassignment in a preset period.
It should be noted that the verifiable random function is essentially a pseudo-random function with a verification function. For a particular input and the private key of the inputter, the verifiable random function outputs a random number and a certificate, and the verifier verifies whether the random number was generated by the input by the output of the random number, the certificate, and the input. This process does not have to expose the private key of the inputter and is therefore secure. The verifiable random function satisfies verifiability, uniqueness, and pseudo-randomness. Illustratively, the message is signed using an RSA digital signature algorithm, and then a hash function is used to calculate the digital signature hash value. Different digital signatures can be obtained for different messages through an RSA digital signature algorithm, so that different random numbers are obtained, and in addition, the signature can be checked through an RSA verification algorithm, so that the validity of the random numbers is judged.
The occurrence of the brining behavior of the supervision node is reduced through the verifiable random function and the lottery algorithm, so that the behavior of issuing downwards by other nodes is safer, and the guarantee is provided for the transaction data transmission of the block chain area.
Referring to fig. 7, in some embodiments of the present invention, trust supervision by each supervising node for each group of other nodes one-to-one includes:
step S3231, the ordered transactions are read according to the kafka1 cluster.
Step S3232, calculating node grades of other nodes corresponding to the transaction.
And step S3233, setting eliminated node grades corresponding to different strength security requirements, eliminating other nodes and bringing new nodes exceeding a node grade threshold into a trust list.
And monitoring other nodes in real time through the eliminated node level, continuously eliminating other nodes lower than the eliminated node level, and incorporating new nodes exceeding the node level threshold into a trust list for supplementing, thereby ensuring the normal operation of the blockchain system and ensuring the safety of transaction data transmission.
To facilitate understanding of those skilled in the art, one embodiment of the present invention provides a blockchain-based rapid identity authentication consensus method, including:
Referring to fig. 8, the invention further provides a blockchain-based identity authentication rapid consensus system, which comprises a node level calculation module 1001, a network segmentation module 1002, a committee election module 1003, a verification algorithm selection module 1004, and a transaction data transmission module 1005, wherein:
the node level calculation module 1001 is configured to assign a weight value to the block link point through the service group, and obtain a node level of the block chain node according to the weight value of the block chain node.
The network slicing module 1002 is configured to perform network slicing through node levels of all the blockchain nodes to obtain a plurality of blockchain network slices.
The committee election module 1003 is configured to perform internal consensus and internal election of the blockchain nodes for each blockchain network slice, so as to obtain common committee members of each blockchain network slice; all common committee members constitute the common committee.
The verification algorithm selection module 1004 is configured to perform selection of a verification algorithm by using a common committee, obtain a consensus verification algorithm, and generate an identity signature of the consensus verification algorithm.
The transaction data transmission module 1005 is configured to perform transaction data transmission inside the blockchain network segment and transaction data transmission between the blockchain network segments according to the consensus verification algorithm and the identity signature of the consensus verification algorithm.
It should be noted that, since a blockchain-based rapid identity authentication consensus system and the above-mentioned blockchain-based rapid identity authentication consensus method in the present embodiment are based on the same inventive concept, the corresponding content in the method embodiment is also applicable to the present device embodiment, and will not be described in detail herein.
Referring to fig. 9, another embodiment of the present invention further provides an electronic device 6000, which may be any type of intelligent terminal such as a mobile phone, a tablet computer, a personal computer or the like.
Specifically, the electronic device 6000 includes: one or more control processors 6001 and memory 6002, one control processor 6001 and one memory 6002 being illustrated in fig. 9, the control processor 6001 and memory 6002 being connected by a bus or other means, the bus connection being illustrated in fig. 9.
The memory 6002 is used as a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to an electronic device in an embodiment of the present invention;
the control processor 6001 executes various functional applications and data processing of a blockchain-based rapid identity authentication consensus method by running non-transitory software programs, instructions and modules stored in the memory 6002, that is, implements the blockchain-based rapid identity authentication consensus method of the above method embodiments.
The memory 6002 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created by the use of a blockchain-based rapid consensus method of identity authentication, and the like. In addition, memory 6002 may include high speed random access memory, and may include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 6002 optionally includes memory located remotely from control processor 6001, which may be connected to the electronic device 6000 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Stored in memory 6002 are one or more modules that, when executed by the one or more control processors 6001, perform a blockchain-based rapid consensus method of identity authentication in the method embodiments described above, such as performing the method steps of fig. 1-7 described above.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It should be noted that, since an electronic device in the present embodiment and the above-mentioned fast identity authentication consensus method based on blockchain are based on the same inventive concept, the corresponding content in the method embodiment is also applicable to the device embodiment, and will not be described in detail herein.
An embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions for performing: the block chain based identity authentication fast consensus method of the embodiment.
It should be noted that, since a computer readable storage medium in the present embodiment and the above-mentioned fast identity authentication consensus method based on blockchain are based on the same inventive concept, the corresponding content in the method embodiment is also applicable to the present device embodiment, and will not be described in detail herein.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of data such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired data and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any data delivery media.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.
Claims (10)
1. The identity authentication quick consensus method based on the blockchain is characterized by comprising the following steps of:
distributing weight values to the block chain link points through the service group, and obtaining node grades of the block chain nodes according to the weight values of the block chain nodes;
Network slicing is carried out through node grades of all the block chain nodes, and a plurality of block chain network slices are obtained;
carrying out internal consensus and internal election of the block chain nodes on each block chain network fragment to obtain common committee members of each block chain network fragment; all the common committee members constitute a common committee;
selecting a verification algorithm through the common committee to obtain a consensus verification algorithm and generating an identity signature of the consensus verification algorithm;
and carrying out transaction data transmission in the block chain network fragment and transaction data transmission between the block chain network fragments according to the consensus verification algorithm and the identity signature of the consensus verification algorithm.
2. The blockchain-based identity authentication quick consensus method as in claim 1, wherein the assigning a weight value to a blockchain link point through a service group and obtaining a node level of the blockchain node according to the weight value of the blockchain node comprises:
calculating a weight value of the blockchain node in a preset period according to the blockout time, the blockout utilization rate, the node activity and the voting effective rate of the blockchain node in the preset period of the service group;
Calculating to obtain the node grade of the block chain node through the weight value of the block chain node in the preset period and the real-time dynamic weight value of the block chain node; the real-time dynamic weight value of the block chain node is calculated by the real-time online time of the block chain node, the number of the real-time proposed blocks, the total capacity fraction consumed by creating legal blocks in real time and the real-time effective voting fraction.
3. The blockchain-based identity authentication fast consensus method according to claim 1, wherein the performing network slicing through node levels of all the blockchain nodes to obtain a plurality of blockchain network slices comprises:
obtaining a node identity relation mapping table according to the node grades of all the blockchain nodes;
and performing network slicing according to the node identity relation mapping table to obtain the plurality of blockchain network slices.
4. The blockchain-based rapid consensus method of identity authentication of claim 1, wherein the conducting transaction data transmission inside the blockchain network patch and transaction data transmission between the blockchain network patch according to the consensus verification algorithm and an identity signature of the consensus verification algorithm comprises:
According to the consensus verification algorithm, transaction data are locally calculated to obtain a verification result;
transmitting the verification result and the identity signature of the consensus verification algorithm to the inside of the blockchain network patch of the transaction data;
carrying out identity signature recognition of the identity signature verification algorithm on all nodes in the block chain network fragment to obtain nodes achieving identity signature consensus;
decrypting the verification and verification result by the node achieving identity signature consensus through the consensus verification algorithm corresponding to the identity signature consensus to obtain the transaction data;
when transaction data transmission between the block chain network tiles is required, identity signature recognition of the common committee member of each block chain network tile is carried out, whether the common recognition of the verification algorithm is achieved between the block chain network tiles is verified, and if the common recognition of the verification algorithm is achieved between the block chain network tiles, the verification result is sent to the block chain network tiles achieving the common recognition of the verification algorithm.
5. The blockchain-based rapid identity authentication consensus method according to claim 2, wherein after the common committee performs selection of a verification algorithm, obtains a consensus verification algorithm and generates an identity signature of the consensus verification algorithm, the blockchain-based rapid identity authentication consensus method further comprises:
Taking the common committee member as a supervision node, and acquiring other nodes of each blockchain network fragment except the common committee member;
calculating the node grade of the other nodes, and selecting the other nodes exceeding a node grade threshold to issue the identity signature of the consensus verification algorithm downwards; the supervising node is used for carrying out trust supervision on the other nodes which exceed the node grade threshold value in the trust list through the node grade.
6. The blockchain-based identity authentication fast consensus method according to claim 5, wherein said incorporating the other nodes exceeding a node level threshold into a trust list performs trust supervision through the node level, comprising:
assigning random numbers to the other nodes in the trust list according to a verifiable random function;
grouping the random numbers through a lottery algorithm to obtain the grouping of the other nodes corresponding to the random numbers;
and carrying out trust supervision on the other nodes of each group through each supervision node in one-to-one correspondence, and carrying out reassignment of the random number in a preset period.
7. The blockchain-based identity authentication fast consensus method as in claim 6, wherein the trust supervision of the other nodes by each of the supervising nodes in one-to-one correspondence with each of the groups comprises:
reading the ordered transactions according to the kafka1 cluster;
calculating the node grade of the other nodes corresponding to the transaction;
setting eliminated node grades corresponding to different strength security requirements, eliminating other nodes and incorporating new nodes exceeding the node grade threshold into a trust list.
8. The block chain-based identity authentication quick consensus system is characterized by comprising:
the node grade calculation module is used for distributing weight values to the block chain link points through the service group and obtaining the node grade of the block chain node according to the weight values of the block chain node;
the network slicing module is used for performing network slicing through node grades of all the block chain nodes to obtain a plurality of block chain network slices;
the committee election module is used for carrying out internal consensus and internal election of the block chain nodes on each block chain network fragment to obtain common committee members of each block chain network fragment; all the common committee members constitute a common committee;
The verification algorithm selection module is used for selecting a verification algorithm through the common committee to obtain a consensus verification algorithm and generating an identity signature of the consensus verification algorithm;
and the transaction data transmission module is used for carrying out transaction data transmission in the block chain network fragment and transaction data transmission between the block chain network fragments according to the consensus verification algorithm and the identity signature of the consensus verification algorithm.
9. An electronic device, characterized in that: comprising at least one control processor and a memory for communication connection with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the blockchain-based rapid consensus method of identity authentication as recited in any of claims 1 to 7.
10. A computer-readable storage medium, characterized by: the computer-readable storage medium stores computer-executable instructions for causing a computer to perform the blockchain-based rapid consensus method for identity authentication as claimed in any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310243790.5A CN116389504A (en) | 2023-03-14 | 2023-03-14 | Block chain-based identity authentication quick consensus method, system, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310243790.5A CN116389504A (en) | 2023-03-14 | 2023-03-14 | Block chain-based identity authentication quick consensus method, system, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116389504A true CN116389504A (en) | 2023-07-04 |
Family
ID=86960685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310243790.5A Pending CN116389504A (en) | 2023-03-14 | 2023-03-14 | Block chain-based identity authentication quick consensus method, system, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116389504A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117318914A (en) * | 2023-09-12 | 2023-12-29 | 上海兴岩信息科技有限公司 | Block chain service platform based on terminal equipment |
-
2023
- 2023-03-14 CN CN202310243790.5A patent/CN116389504A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117318914A (en) * | 2023-09-12 | 2023-12-29 | 上海兴岩信息科技有限公司 | Block chain service platform based on terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4120114A1 (en) | Data processing method and apparatus, smart device and storage medium | |
CN112491846B (en) | Cross-chain block chain communication method and device | |
CN112311735B (en) | Credible authentication method, network equipment, system and storage medium | |
US10135616B2 (en) | Revocation of cryptographic keys in the absence of a trusted central authority | |
CN111427957B (en) | Block chain voting information verification method, device, equipment and storage medium | |
CN112600678B (en) | Data processing method, device, equipment and storage medium | |
CN112152778B (en) | Node management method and device and electronic equipment | |
CN111713088B (en) | Method and device for processing data and equipment for processing data | |
CN110177124B (en) | Identity authentication method based on block chain and related equipment | |
CN113301114B (en) | Block chain consensus node selection method and device, computer equipment and storage medium | |
CN111556120A (en) | Data processing method and device based on block chain, storage medium and equipment | |
CN113837758A (en) | Consensus method and device for block chain system | |
CN114139203A (en) | Block chain-based heterogeneous identity alliance risk assessment system and method and terminal | |
CN116389504A (en) | Block chain-based identity authentication quick consensus method, system, equipment and medium | |
CN114095499B (en) | Neutral verification method and device for block chain relay communication network | |
CN113868713B (en) | Data verification method and device, electronic equipment and storage medium | |
CN114745140A (en) | Urban planning field block chain consensus verification method and system based on aggregation encryption | |
CN113032478B (en) | Block chain system and data uplink method, device, equipment and medium | |
CN116561820B (en) | Trusted data processing method and related device | |
CN113206746A (en) | Digital certificate management method and device | |
CN113691376B (en) | Key management method and device | |
Halgamuge | Latency estimation of blockchain-based distributed access control for cyber infrastructure in the iot environment | |
CN115766075A (en) | Entrusted authentication method based on attribute-based encryption and identity signature | |
CN114722429A (en) | Identity sharing method and device, electronic equipment and readable storage medium | |
CN118316609B (en) | ETC-based data encryption method, ETC-based data encryption device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |