How blockchain consensus works
The blockchain consensus method addresses energy consumption and security issues by using a decentralized network with node authentication and periodic checks, ensuring secure and efficient transaction processing.
Patent Information
- Application Number
- JP2024513320
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2024-10-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing blockchain consensus methods, such as PoW and PoS, face limitations in energy consumption and security, particularly the 'nothing-at-stake' problem, which undermines the structural integrity and security of transactions.
A blockchain consensus method involving a decentralized network with administrative, elected, and regular nodes, utilizing a checker service and virtual machine to authenticate transactions and blocks, ensuring low power consumption and high security through periodic checks and non-deterministic election processes.
This method provides high security and authentication of transactions with minimal energy consumption by periodically checking nodes and preventing corruption, thus reducing the risk of attacks and ensuring all nodes maintain consistent content.
Smart Images

Figure 2024536705000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to the field of blockchain technology, and in particular to blockchain consensus methods.
[0002] The present invention more particularly relates to the application of such blockchain consensus methods to identity management via distributed ledger technology. [Background technology]
[0003] Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices participate in keeping a "ledger" to jointly maintain a complete distributed database. Blockchain technology is characterized by decentralization, openness, and transparency, and in blockchain technology, each computing device can participate in the database record, and data can be quickly synchronized between computing devices. Therefore, blockchain technology has been widely applied to many fields.
[0004] "Analysis of the main consensus protocols of blockchain" is presented in a paper by Shijie Zhang et al., available online on August 12, 2019. The paper presents the most common consensus protocols, including Proof of Work (PoW), which is based on computational power, and Proof of Stake (PoS), which is based on the held stake brought in.
[0005] Each existing consensus presents some limitations. PoW consumes the most computing power and transaction throughput per second, which greatly limits the application prospects of PoW. PoS can greatly reduce the consumption of computing power, but on the other hand, it has the same drawback that it does not require computing work in exchange for its verification, so it cannot structurally provide the same level of security as PoW.
[0006] Furthermore, PoS protocols can suffer from the nothing-at-stake problem, where validator nodes validate competing copies of the blockchain because the cost of doing so is minimal and there is a low chance of losing rewards by validating a block on the wrong chain.
[0007] The present disclosure improves the situation over the prior art. In particular, the objective of the present disclosure is to ensure high security and authentication of transactions recorded in distributed blocks, while ensuring that all nodes have the same content, without having high energy consumed by the system and avoiding the nothing-at-stake problem, as normal blockchain systems do. Summary of the Invention
[0008] A first aspect of the present disclosure is a method for consensus in a blockchain including a distributed network having a plurality of nodes, the plurality of nodes including one administrative node "AN", one elected node "EN" and a plurality of regular nodes "RN", each of the AN, EN and RN further including a provider node "PN" having a virtual machine "VM", a checker service running on the VM and a checker account available to other nodes to read and / or exercise authority over the checker service, the provider node providing transactions to the blockchain, the method comprising: selecting an EN from among a plurality of RNs by an AN; receiving, by the EN, a transaction from the PN; for each received transaction, running the EN's checker service through the EN's checker account; generating a block containing the checked transactions by the EN; transmitting, by the EN, the generated blocks to a plurality of RNs; and running a checker service of the EN through a checker account of the EN on the generated block to authenticate the generated block.
[0009] Such a consensus method requires very little power consumption, since there is only one node, the EN, constructing a new block at a time, while guaranteeing a high level of security thanks to the checker service and checker accounts, allowing direct and permanent availability of the EN while it is being constructed by any other node. Each transaction is checked as a block when it is generated.
[0010] Advantageously, the step of running a checker service on each received transaction is performed by either at least one RN of the plurality of RNs or any external node, and the step of running a checker service on the generated blocks is performed by the plurality of RNs.
[0011] Checking each new transaction by any node gives flexibility and at the same time security while checking blocks produced by multiple RNs provides a higher level of security before releasing a new block in the blockchain.
[0012] Advantageously, each AN node, EN node, RN node further comprises predetermined services including a checker service and at least one process check service, all the predetermined services being executed on a VM, and the step of executing the checker service comprises: running a process checker service to retrieve a list of services running on the VM; and verifying the running services when the list of running services matches the list of predefined services.
[0013] Such a process checker service enforces the running process by ensuring that all running services on a VM are only predetermined services, thus preventing unknown services from running on the VM.
[0014] Advantageously, each AN, EN and RN node has one or more local executables of predetermined services, further including a hash service, and the step of executing the checker service comprises: downloading trusted source code for a given service stored in a trusted blockchain repository; Compiling the trusted source code to obtain one or more trusted executable files; hashing, by a hash service, one or more trusted executable files to obtain at least one trusted hash value; hashing, by a hash service, one or more local executable files to obtain at least one local hash value; verifying the one or more local executable files when the one or more local hash values match the one or more trusted hash values; or The method further includes transmitting a compromised EN ("ENC") signal to the AN when the one or more local hash values and the one or more trusted hash values do not match.
[0015] Such a hashing service further enhances the security of the execution process by ensuring that all running services on a VM use the latest available version of the source code for each given service, so that it does not contain corrupted code.
[0016] Advantageously, the predetermined service further comprises an extractor service, and when the AN receives the ENC signal, the steps it executes are: using, by the AN, a checker service of the EN to verify the ENC signal; and, in the case of the verified ENC signal, extracting, by the AN, the checked transactions using an extractor service of the compromised EN; disconnecting the compromised EN from the distributed network; and initiating a new selection process.
[0017] Such an extractor service further enhances the security of the execution process by isolating compromised nodes and extracting transactions before they are compromised.
[0018] Advantageously, the detection of the predetermined condition of the generating step comprises: When a certain number of transactions have been validated, or This is performed when a predetermined time interval has elapsed since the selecting step.
[0019] Such a predefined condition would prevent the generation process from lasting too long, either in terms of the number of transactions contained in the generated block or the time between the generation of two successive blocks, thus reducing the frame for attacking the EN.
[0020] Advantageously, after authentication of the generated block, the method further comprises the step of designating the EN as the new AN before looping to a new election step.
[0021] Designating an EN as the new AN for the next block generation prevents an EN from being elected twice in a row, thus further reducing the risk of external control of the EN.
[0022] Advantageously, the step of executing a checker service is further performed at regular time intervals.
[0023] Introducing periodic checks by a checker service further narrows the window of attack against the EN.
[0024] Advantageously, the step of executing a checker service is further performed immediately after the step of election by the AN, in order to check that the EN has not been corrupted.
[0025] Such an initial check by the checker service immediately after election ensures that the EN is safe from the start of any processes it executes.
[0026] Advantageously, the AN processes a new election process whenever an EN is no longer available in the distributed network.
[0027] If an EN disappears from the distributed network (e.g., due to lack of connectivity), the AN processes a new election to prevent the disconnected EN from suddenly reappearing and performing block production.
[0028] Advantageously, the selecting step comprises the steps of requesting, by the AN, selection information from the plurality of RNs, and selecting, by the AN, an EN from among the plurality of RNs based on the requested selection information. More preferably, the selection information comprises at least an election occurrence count "EON" corresponding to the number of times the RN has already been selected.
[0029] Using an EON with criteria in the election process often ensures that the elected RN is less likely to become the next EN versus another RN with a lower EON. Other criteria can be used, such as the reliability of the RN given past block production, its position, its dependency on a larger group of nodes, the amount of transactions performed, etc.
[0030] Advantageously, the selection step is based on a non-deterministic selection algorithm that uses at least one random number to determine the EN. More preferably, each AN, EN, RN node is identified by a unique identification number "UIN", its EON and a set of public / private keys, and the selection step is based on: providing, by each RN, its UIN, its EON, and its public key to the AN; ranking the RNs by their EONs according to the AN and associating each RN with an interval according to the EON; receiving, by the AN, a random number from a previous AN; calculating, by the AN, a function of the UIN and the EON, hashing the calculated function result, encrypting the hashed function result using the AN private key, and calculating a function of the encrypted function result and the provided random number to obtain a final number; The method includes at least the steps of traversing the RN interval with this final number and progressively eliminating corresponding RNs that are encountered until only one RN remains that becomes an EN.
[0031] Such an election process is used to ensure that the next EN cannot be known in advance, unlike some cryptocurrencies where the account stakes are public and each node uses a formula that allows it to predict with reasonable accuracy which accounts will gain the power to build additional blocks in the blockchain.
[0032] Advantageously, the blockchain consensus is a distributed ledger technology (DLT) that includes shared data called transactions. More preferably, the shared data is data of a particular identity type.
[0033] Such DLTs can be applied in many different areas. One interesting application is identity management, where ID type data can be securely stored in a DLT and easily accessed when authorized.
[0034] Advantageously, certain identity type data is authenticated upon request by a trusted third party via a smart contract.
[0035] Another aspect of the present disclosure relates to a blockchain distributed network having a plurality of nodes, the plurality of nodes including one management node "AN", one elected node "EN" and a plurality of regular nodes "RN", each of the AN, EN, RN having a virtual machine "VM", a checker service running on the VM and a checker account available to other nodes having read and / or execution rights on the checker service, and further including a provider node "PN" that provides transactions to the blockchain of the distributed network, wherein the blockchain consensus method according to the first aspect is applied to the blockchain distributed network.
[0036] Another aspect of the present disclosure relates to an electronic device comprising a processor and a memory, the memory being used to store source code of a given service, the processor being configured to host a virtual machine that invokes the source code stored in the memory to perform the method according to the first aspect.
[0037] A computer readable storage medium having instructions stored therein which, when executed on a computer, cause the computer to perform the method according to the first aspect. [Brief description of the drawings]
[0038] Other features, objects and advantages of the present disclosure will become more apparent from a reading of the detailed description of the non-limiting embodiments, which is made with reference to the accompanying drawings.
[0039] [Figure 1] 1 illustrates an example network of a peer-to-peer network of nodes according to the present disclosure.
[0040] [Figure 2A] 1 illustrates an example of a blockchain node architecture according to the present disclosure.
[0041] [Figure 2B] 1 illustrates an example of a checker account for a blockchain node according to the present disclosure.
[0042] [Diagram 3] FIG. 1 shows a diagram of a consensus method according to one embodiment of the present disclosure.
[0043] [Figure 4] FIG. 1 shows a diagram of a consensus method according to another embodiment of the present disclosure.
[0044] [Diagram 5] 1 shows a diagram for the case of obituaries sent during the consensus method.
[0045] [Figure 6] 1 shows an exemplary diagram of a selection process according to the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0046] Distributed Ledger Technology, "DLT" or database is distributed across several nodes (devices) on a peer-to-peer network, each replicating and storing an identical copy of the ledger and updating itself independently. The main advantage is the lack of a central authority.
[0047] A consensus mechanism refers to any number of methodologies used to achieve agreement, trust, and security across such distributed computer, or peer-to-peer, networks.
[0048] This disclosure describes a blockchain identity management system that handles "identity" type transactions, with a process of role attribution to nodes of the blockchain to limit energy consumption when building blocks, and specific software processes to ensure authentication and security of distributed data. Of course, other types of transactions are possible with this blockchain management system and specific software processes.
[0049] Figure 1 shows an example of a peer-to-peer network of nodes according to the present disclosure. The network constituting the identity management system includes three types of nodes: one administrative node "AN", one elected node "EN", and multiple regular nodes "RN". Each type of node has its own role, which is briefly summarized below.
[0050] The ANs (the only nodes in the network) need information from the RNs in order to elect, via a specific election process, one of them to be the (only) EN.
[0051] Once elected, an EN receives new transactions from providers or provider nodes "PN". A checker process is performed on the EN to verify each received transaction. The EN then adds the received transactions to a new block under construction. By doing so, the EN collects incoming transactions until the completion of the new block, defined for example by the number of transactions received, or until a predefined time has elapsed since its election. For example, the variable time interval is set between 15 and 60 minutes depending on the amount of traffic on the network. 15 minutes is chosen for higher traffic and 60 minutes for lower traffic. Once the new block is completed, the EN transmits the generated block to all other RNs for authentication purposes. After generating a new block, the EN becomes an AN and starts organizing the next election as a new AN.
[0052] RNs are all nodes part of the peer-to-peer network that are neither ANs nor ENs. All of them can become ENs if they are elected and then become ANs after they complete block generation. Each RN present in the network provides election information to the ANs before the election process so that they can potentially be elected. These RNs are also used to check each new transaction as well as to authenticate newly generated blocks.
[0053] PNs are not a direct part of the peer-to-peer network. They only offer new transactions to the ENs. An external node(s) "ExN" are nodes that are not regular nodes but can be used to perform the process of performing the checker service of the ENs at any time, and in particular for each newly received transaction.
[0054] 2A illustrates an example of an architecture for a blockchain node (either an AN, EN, or RN) according to the present disclosure. Each node in the network, AN, EN, or RN, has a dedicated software installation process.
[0055] This process requires the installation of a virtual machine "VM" and a limited number of services that run on the VM. These services include at least a "checker service" that ensures that only authorized services are running on the VM, and a "checker account" available to ANs and RNs as well as external nodes and PNs, giving read / execute rights to the installed pack of services. In this way, any external node can freely check that the node is not corrupted. For each received transaction, at least one RN runs the EN's checker service through the EN's checker account to check the validity of the transaction. Of course, several RNs may run the EN's checker service. For a new generated block, several RNs run the EN's checker service through their checker accounts to authenticate the block.
[0056] In the case of the sublayer architecture, as an example, each node includes a Java VM such that the Java application of the blockchain node is deployed in executable jar mode and the application jar is stored in a directory with a predefined pack of four determined shell scripts, preferably including a checker service, a process check service, a hash service, and an extractor service. The node further includes a software utility CRON, which is a time-based job scheduler, used to execute the checker process. A UNIX-like operating system ("OS") such as Linux and a process management running on the OS complete the sublayer architecture.
[0057] Figure 2B shows a preferred embodiment of the checker account of the blockchain node presented in Figure 2A when performing the checker process. Each node (AN, EN, RN) has a pack of predefined services in the form of executable files, including four services: checker service (i.e., checker.sh script), process check service (i.e., process_check.sh script), hash service (i.e., hash.sh script), and extractor service (i.e., extractor.sh script). The checker account is created by default in the folder where the executable file(s) (e.g., jar file(s)) and script are located. The checker account has "read" permissions for all files, "execute" permissions for all scripts except the extraction script, and no "write" permissions. The checker account has no password, and any person or node with Internet access (e.g., RN, PN, or ExN) can access the blockchain through the EN's checker account and test its compliance, thus automatically ensuring the authenticity of the node that takes over block production. The scripts belong to the root user, and no user has the permission to run them in administrative mode (sudoers) in the VM. Since the creator of the scripts is root, no one can modify them, but the checker user has the permission to read and run them. Furthermore, they do not have sudo privileges that give access to administrator-level clearance.
[0058] The process checker service is used to ensure that only services from a given pack are running by retrieving the list of services running on a VM and verifying that the list of running services corresponds to the list of services for a given pack.
[0059] The hash service contains instructions to hash the contents of a jar application and display the results.
[0060] The checker service runs periodically or upon request from a node (CRON task) and ensures that (i) the EN's process checker service runs to retrieve a list of running services on the EN's VM, and (ii) the running services are verified when the list of running services matches the list of predefined services. More specifically, the checker service runs the following steps: (i) downloads the trusted source code of the predefined services stored in the trusted blockchain repository, (ii) compiles the trusted source code to obtain one or more trusted executable files, (iii) hashes the one or more trusted executable files by a hash service to obtain at least one trusted hash value, hashes the one or more local executable files to obtain at least one local hash value, and (iv) verifies the one or more local executable files when the one or more local hash values match the one or more trusted hash values, or sends a compromised EN "ENC" signal to the AN when the one or more local hash values do not match the one or more trusted hash values.
[0061] In addition to the fact that the checker service runs periodically, it also runs after an election and every transaction that arrives in a block, which ensures that fake nodes are not given the hand.
[0062] Preferably, the checker service is coded as a very simple program of just a few lines of code to check that the hash of the source of the current service is identical to the hash of the latest available version of such service.
[0063] Checker service code example #! / bin / bash export signature=`md5sum tdxbc / knight.jar` export LOCAL_SIG=${signature%% *} mkdir temp_src cd temp_src git clone<repository_url_here> CD<repository_name> mvn clean install export signature=`md5sum <repository_name> / target / knight_1.0.0.jar` export DIST_SIG=${signature%% *} if[“$DIST_SIG”=“$LOCAL_SIG”];then echo“0”# All is good else echo “1”# Signatures are not equal end
[0064] The extractor service allows to recover all the records of this blockchain by bypassing the executable file(s). It consists of the commands necessary to connect to the node's embedded database. Its purpose is to ensure that the records can be isolated from the outside world before and after the node is declared compromised. If a node is detected to be compromised, the extractor service is used to extract the valid part of the block, while the admin node organizes a new election process and sends these transactions as the initiating node.
[0065] Methods for consensus in blockchain
[0066] 3 shows a diagram of a consensus method according to an embodiment of the present disclosure from the perspective of an EN. The blockchain includes a distributed network with multiple nodes, including one administrative node "AN", one elected node "EN", and multiple regular nodes "RN", each of which further includes a provider node "PN" having a virtual machine "VM", a checker service running on the VM, and a checker account available to other nodes that have read and / or execution rights on the checker service, and providing transactions to the blockchain.
[0067] The consensus method comprises the following steps: An election step (S1) performed by an AN to designate an EN among a number of RNs; A reception step (S2) performed by an EN receiving transactions from different PNs; A step (S3) of running a checker service of the EN through a checker account for each received transaction; A generation step (S4) performed by the EN of a block containing the checked transactions. This generation step may be performed in several ways, for example by sequentially adding all received and checked transactions to a block being generated; A step (S5) of sending the generated block to a number of RNs; Another step (S6) of running a checker service of the EN through a checker account to authenticate the generated block. To ensure continuity in block generation, the method preferably further comprises a designation step (S7) where an EN is designated as a new AN and then loops to S1.
[0068] The step of performing a checker service for each received transaction may be performed by at least one RN of the plurality of RNs or by any external node having access to a checker account of the EN. The step of performing a checker service for the generated block is performed by the plurality of RNs to ensure a high level of security for the generated block authentication.
[0069] 4 shows a diagram of a consensus method according to another embodiment of the present disclosure from the perspective of the entire network. The consensus method includes the following steps: an AN selects an EN (not shown in FIG. 4) that performs an election step based on the election information received from the RN to elect one of the RNs as an EN (S10); creates a transaction coming from any external service such as a PN that is sent to the EN (S20); an external service (ExN, PN or RN) executes a checker service of the EN to check whether the received transaction is OK (i.e., trustworthy) or not (S30); if the checker result is "false", i.e., the transaction is corrupted, the consensus declares a blockchain integrity violation (S31); if the checker result is "true", i.e., the transaction is not corrupted, executes a hash service of the EN to check whether the hashed transaction, the so-called The process includes the steps of adding an entry to the block under construction (S32), checking whether the block under construction is full after adding the new entry to the block, i.e., whether the generated block is complete (S40), and returning to S20 if the block is not full (S41), and if the block is full, sending the newly generated block to all RNs (S50), and each RN that receives the new block again runs the EN's checker service (S61). If the checker is "false", the consensus declares a blockchain integrity violation (S60), and if the checker is "true", the block is stored by each RN until all RNs have verified the checker (S62), and the EN becomes the new AN and the process returns to S10 (S70).
[0070] FIG. 5 shows a diagram of the case of obituary notices emitted during the consensus method. A blockchain integrity violation (S100) is sent to the AN. The AN executes the EN's checker service (S101) to verify that the EN is compromised. If the EN is not compromised, nothing is done by the AN (S102). If the EN is compromised, the AN executes the EN's extractor service to extract the database to extract valid transactions (S103). The AN then removes the compromised EN from the network (S104) and organizes a new election process without the removed node (S105). Once a new RN is selected as the new EN, the AN provides the extracted incomplete transactions to the newly elected EN (S106). Then, it returns to step S2 or step S20.
[0071] Such a consensus method offers several advantages, such as solving the "Quis custodiet ipsos custodes" problem that seems to arise, i.e. which checker services check other services and which services check the "checkers". This is solved in practice by the full transparency and utmost simplicity of the checker service, which all nodes can access through a "checker" account, preventing any modification of the checker service.
[0072] There is no permanent "central node": the central position of the managing or electing nodes changes over time as the role is shared by the regular nodes.
[0073] Authentication is guaranteed by a service that can be activated at will by any one of the system's nodes, and that is activated during key steps of the blockchain's incremental construction, in particular when adding a new transaction to a block and when adding a new block to the blockchain.
[0074] Only one node is working to build the current block (the elected node), so there is no excess consumption of energy due to several nodes "mining" at the same time as well as due to high difficulty levels.
[0075] Selection process
[0076] In the above description, the selection process has been mentioned several times.
[0077] According to one embodiment, the selection step includes the steps of requesting, by the AN, selection information from a plurality of RNs, and selecting, by the AN, an EN from among the plurality of RNs based on the requested selection information. Such selection information includes at least an selection occurrence count "EON" corresponding to the number of times the RN has already been selected.
[0078] To further enhance the security of the blockchain, the election process is preferably based on a non-deterministic election algorithm that uses at least one random number to determine the EN, preventing other nodes or external devices from predicting which node will be successfully elected.
[0079] FIG. 6 shows an exemplary diagram of the election process according to the present disclosure. In this example, each AN, EN, and RN node is identified by a unique identification number "UIN", its EON, and a set of public / private keys. The election process from the AN's perspective includes the steps of each RN providing its UIN, its EON, and its public key to the AN (S1001), the AN ranking the RNs by their EONs and associating each RN with an interval according to its EON (S1002), the AN receiving a random number from a previous AN (S1003), the AN calculating a function of the UIN and EON, hashing the calculated function result, encrypting the hashed function result with the AN private key, and calculating a function of the encrypted function result and the provided random number to obtain a final number (S1004), and traversing the RN interval with this final number and progressively removing corresponding RNs encountered until only one RN remains that will become an EN (S1005).
[0080] Of course, it will be appreciated that obvious improvements and / or modifications may be made by those skilled in the art and still fall within the scope of the present invention as defined by the appended claims.
Claims
1. 1. A method for consensus in a blockchain comprising a distributed network having a plurality of nodes, comprising: The plurality of nodes includes one management node "AN", one elected node "EN", and a plurality of regular nodes "RN", each of the AN, the EN, and the RN having a virtual machine "VM", a checker service running on the VM, and a checker account available to other nodes that has read and / or execute rights on the checker service; Further comprising a provider node "PN" which provides transactions to the blockchain; The method further comprising: selecting, by the AN, the EN from among the plurality of RNs; receiving, by said EN, a transaction from a PN; for each received transaction, executing the checker service of the EN through a checker account of the EN; generating, by the EN, a block including the checked transaction; transmitting, by the EN, the generated block to the plurality of RNs; and running the checker service of the EN on the generated block through a checker account of the EN to authenticate the generated block.
2. 2. The method for consensus in a blockchain as described in claim 1, wherein the step of running the checker service on each received transaction is performed by at least one RN of the plurality of RNs or any external node "ExN", and the step of running the checker service on the generated block is performed by the plurality of RNs.
3. The method, wherein each of the AN node, the EN node, and the RN node further comprises predetermined services including the checker service and at least one process check service, all of the predetermined services being executed on the VM, and the step of executing the checker service includes: executing the process checker service of the EN to retrieve a list of services running on a VM of the EN; 3. The method for consensus according to claim 1 or 2, further comprising the step of: verifying the running services when the list of running services matches the list of predefined services.
4. 11. A method, comprising: each of the AN, EN, and RN nodes having one or more local executables of the predetermined services, the predetermined services further including a hash service; and executing the checker service comprises: downloading a trusted source code of the given service stored in a trusted blockchain repository; compiling the trusted source code to obtain one or more trusted executable files; hashing, by the hash service, the one or more trusted executable files to obtain at least one trusted hash value; hashing, by the hash service, the one or more local executable files to obtain at least one local hash value; verifying the one or more local executable files when the one or more local hash values and the one or more trusted hash values match; or and sending an EN compromised ("ENC") signal to the AN when the one or more local hash values and the one or more trusted hash values do not match.
5. The method, wherein the predetermined service further includes an extractor service, and when the AN receives an ENC signal, the performing step includes: using, by the AN, the checker service of the EN to verify the ENC signal; and in the case of a verified ENC signal, extracting, by the AN, the checked transaction using the extractor service of the compromised EN; disconnecting the compromised EN from the distributed network; 5. The method for consensus of claim 4, further comprising the step of: initiating a new selection process.
6. 11. A method, comprising: generating the block upon detection of a predetermined condition, the predetermined condition comprising: When a certain number of transactions have been validated, or 6. A method for consensus according to any one of claims 1 to 5, wherein a predetermined time interval has elapsed since the selecting step.
7. After authenticating the generated block, the method further comprises: The method for consensus according to claim 1 , further comprising the step of designating the EN as the new AN before looping to a new selection step.
8. 8. The method for consensus in a blockchain according to claim 1, wherein the step of executing the checker service is further performed at regular time intervals.
9. 9. The method for consensus in a blockchain according to claim 1, further comprising the step of executing the checker service to check that the EN is not corrupted, immediately after the election step by the AN.
10. 10. The method for consensus in a blockchain according to claim 1, wherein whenever the EN is no longer available in the distributed network, the AN processes a new election.
11. The method, wherein the selecting step comprises: requesting, by the AN, election information from the plurality of RNs; and selecting, by the AN, the EN from among the plurality of RNs based on the requested selection information.
12. 12. The method for consensus in a blockchain of claim 11, wherein the election information includes at least an election occurrence number "EON" corresponding to the number of times an RN has already been elected.
13. 13. The method for consensus in a blockchain of claim 12, wherein the step of selecting is based on a non-deterministic selection algorithm that uses at least one random number to determine the EN.
14. 1. A method, wherein each of the AN, EN, and RN nodes is identified by a unique identification number "UIN", its EON, and a set of public / private keys, and the step of electing includes: providing, by each said RN, its UIN, its EON, and its public key to said AN; ranking the RNs by their EONs, by the AN, and associating each of the RNs with an interval according to the EON; receiving, by the AN, a random number from the previous AN; calculating, by the AN, a function of the UIN and the EON, hashing the calculated function result, encrypting the hashed function result using the AN private key, and calculating a function of the encrypted function result and the provided random number to obtain a final number; and a step of traversing the RN interval with the final number and progressively removing the corresponding RNs encountered until only one RN remains that becomes the EN.
15. The blockchain consensus is a distributed ledger technology (DLT) that includes shared data called transactions, the shared data being data of a specific ID type, and the method includes:
15. The method for consensus of any one of claims 1 to 14, further comprising the step of authenticating the specific ID type data via a smart contract by a trusted third party upon request.
16. A blockchain distributed network having a plurality of nodes, the plurality of nodes comprising: The blockchain distributed network further includes a provider node "PN" that provides transactions to the blockchain distributed network, the provider node "PN" including one management node "AN", one elected node "EN", and a plurality of regular nodes "RN", each of the AN, the EN, and the RN having a virtual machine "VM", a checker service running on the VM, and a checker account available to other nodes that have read and / or execution rights on the checker service; A blockchain distributed network, wherein the blockchain consensus method according to any one of claims 1 to 15 is applied to the blockchain distributed network.
17. 16. An electronic device comprising a processor and a memory, the memory being used to store the source code of the given service, the processor being configured to host the virtual machine that invokes the source code stored in the memory to perform the method of any one of claims 1 to 15.
18. A computer readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the method according to claims 1 to 15.
