Credential generation and distribution method for blockchain network
The method for secure credential distribution and authentication in blockchain networks using group secret keys and bilinear pairing operations addresses the challenge of reliable communication and node legitimacy, maintaining decentralization by ensuring trust among nodes.
Patent Information
- Application Number
- JP2024104517
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2017-06-07
- Filing Date
- 2024-06-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2038-06-04
AI Technical Summary
In decentralized peer-to-peer blockchain networks, ensuring reliable communication and authenticating the roles and legitimacy of nodes without compromising the decentralized nature is challenging, especially when specialized nodes require trusted relationships and credential verification.
A method for secure credential distribution using group secret keys and secret shares, allowing nodes to authenticate each other through bilinear pairing operations without a central authority, ensuring that nodes derive the same session key from their respective identifiers and secret points generated by a group of specialized nodes.
Enables reliable communication channels between nodes by verifying credentials without a central authority, maintaining the decentralized nature of the network and ensuring trust among nodes with shared roles.
Smart Images

Figure 2024114899000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates generally to blockchain transactions, and more specifically to a method and system for establishing trusted peer-to-peer communication between nodes. [Background technology]
[0002] Herein, we use the term "blockchain" to include all forms of electronic, computer-based distributed ledgers, including but not limited to consensus-based blockchain and transaction chain technologies, permissioned and un-permissioned ledgers, shared ledgers, and variations thereof. The most widely known application of blockchain technology is the Bitcoin ledger, although other blockchain implementations have been proposed and developed. Although Bitcoin may be referred to herein for convenience and explanation, it should be noted that the present invention is not limited to use with the Bitcoin blockchain, and alternative blockchain implementations and protocols are within the scope of the present invention.
[0003] Blockchain is a consensus-based electronic ledger, implemented as a computer-based decentralized distributed system composed of blocks of transactions. Each transaction (Tx) is a data structure that encodes the transfer of control of digital assets between participants in the blockchain system and contains at least one input and at least one output. Each block contains a hash of the previous block so that blocks are chained together to form a permanent and immutable record of all transactions that have been written to the blockchain since its inception. Transactions contain small programs, known as scripts, embedded in their inputs and outputs. Scripts specify how and by whom the output of a transaction can be accessed. In the Bitcoin platform, those scripts are written using a scripting language based on Stack.
[0004] A network node that receives a new transaction immediately attempts to push that transaction out to other nodes in the network. Before a new transaction can be sent to other nodes, it is "validated", that is, it is checked against a set of criteria to ensure that the transaction meets the basic requirements for a proper transaction according to the applicable protocol.
[0005] For a transaction to be written to the blockchain, it is incorporated into a block by a node (a "miner" or "mining node"). Miners are designed to collect transactions and form them into blocks. Miners then attempt to complete a "proof of work" for the block. Miners compete across the blockchain network to be the first to assemble a block of transactions and complete the associated proof of work for that block. Successful miners add their approved block to the blockchain, and the block is propagated through the network. Other nodes that hold copies of the blockchain can then update their own records. Those nodes that receive the block also "validate" the block, ensuring that all transactions in it comply with the protocol's formal requirements.
[0006] One of the challenges in decentralized peer-to-peer systems is to ensure that nodes can communicate with other nodes in the network on a trusted basis. As the network architecture of some implementations evolve, some nodes may take on more specialized tasks, and other nodes may rely on those specialized nodes as sources of specific data or as nodes performing specific functions. If a node is going to rely on another node for information or as a legitimate source, it must be able to establish a trusted relationship for communication with that node. In cases where nodes have different roles, it is advantageous to have a mechanism for determining and verifying the role of the node. Furthermore, if a node is found to be inauthentic or malicious, it must be possible for other nodes to remember that in order to ignore future communications from such a node. In a peer-to-peer system, the challenge is to solve those problems without compromising the peer-to-peer nature of the system by giving it a central authority.
[0007] Such a solution is currently being devised. Summary of the Invention
[0008] Thus, according to the present invention there is provided a method and device as defined in the accompanying claims.
[0009] This application describes and discloses methods and devices for managing the secure distribution of credentials from a group of autonomous specialized nodes to a requesting node. The secure distribution of credentials may use a group secret key and secret shares that no node reconstructs or manipulates. The credential includes an identifier of the requesting node and a secret point that the requesting node assembles from portions of a secret point provided by each of a number of specialized nodes. The secret point is based on the group secret key and a map-to-point hash of the identifier of the requesting node.
[0010] This application further describes and discloses a method and device for two nodes to authenticate each other as trusted by a group of autonomous specialized nodes without requiring such a group or requiring a centralized certificate manager or authenticator. The method may include the first node and the second node deriving the same session key using bilinear pairing operations that require their respective identifiers and secret points. Provided that the secret point and identifier were obtained from the group using the group private key, the bilinear pairing operations result in the generation of the same session key at each of the two nodes, thereby authenticating their respective credentials and enabling trusted communication between the two nodes.
[0011] In an additional or alternative aspect, the present application describes a computer-implemented method for a node to obtain a credential from a group of specialized nodes, each of the specialized nodes having a private key share of a group private key. The method includes sending a request for a credential from a node having an identifier to a plurality of specialized nodes, receiving from each node in the plurality of specialized nodes a portion of a secret point generated by the node from the identifier and the node's private key share, and generating the secret point by combining the received portion of the secret point, the secret point being the group private key multiplied by a map-to-point hash of the identifier, and the credential being the identifier and the secret point. Neither a node nor a specialized node is required to obtain a complete copy of the group private key.
[0012] In some implementations, sending the request includes sending a separate request to each of the plurality of specialized nodes. The identifier may include an identifier string that identifies the node and a role string that identifies a role of the group of specialized nodes. In some cases, the identifier further includes an expiration time of the credential, and in some further cases, sending the request includes sending the identifier string and receiving includes receiving the identifier.
[0013] In some implementations, generating the secret point involves combining the received portions of the secret point, which in some embodiments includes adding.
[0014] In some implementations, the secret point is generated using secret shares and is based on the group secret key. In some such cases, secret shares use secret key shares of the multiple specialized nodes and Lagrange interpolation without reconstructing the group secret key.
[0015] In an additional or alternative aspect, the present application describes a computer-implemented method for a first node to establish trusted communication with a second node, the second node having a second node identifier and a second secret point, the second secret point being a group private key multiplied by a map-to-point hash of the second node identifier, the group private key being associated with a group of nodes configured to grant credentials. The method includes obtaining a first secret point from the group of nodes, the first secret point being the group private key multiplied by a map-to-point hash of a first node identifier, sending the first node identifier to the second node, receiving the second node identifier, generating a first session key using a bilinear pairing operation with the map-to-point hash of the second node identifier and the first secret point, and verifying that the first session key matches a second session key generated by the second node using the bilinear pairing operation with the second secret point and the map-to-point hash of the first node identifier.
[0016] In some implementations, the bilinear pairing operation to generate the first session key is based on the formula: K A =e(H1(id B ),s A ), and K A =e(s B ,H1(id A )) and the bilinear pairing operation for generating the second session key is characterized by the other of the equations: e() is the bilinear pairing operation, H1() is the map-to-point hash, id A and id B is one of the first node identifier and the second node identifier, s A and s B is one each of the first secret point and the second secret point.
[0017] In some implementations, deriving the first secret point includes obtaining respective portions of the first secret point from each of a plurality of nodes in the group of nodes and combining the respective portions to form the first secret point without reconstructing the group private key.
[0018] In some implementations, the verifying includes sending a challenge encrypted with the first session key from the first node to the second node, receiving a response to the challenge, and determining based on the response that the second node has validly decrypted the challenge using the second session key.
[0019] In some implementations, the sending further includes sending a first nonce, and the receiving further includes receiving a second nonce and a calculated C0 value, the C0 value having a hash of a concatenation of the second session key, the first nonce, and the second nonce. In some such cases, the concatenation further includes the first node identifier and the second node identifier. In some such cases, the generating includes generating a calculated C1 value having a hash of a concatenation of the first session key, the first nonce, and the second nonce, and the verifying includes verifying that the calculated C0 value matches the calculated C1 value.
[0020] In some implementations, the second secret point is the group secret key multiplied by a map-to-point hash of the second node identifier.
[0021] In some implementations, the first secret point and the second secret point are each provided to the first node and the second node, respectively, by the group of nodes using secret sharing.
[0022] In additional or alternative aspects, this application describes a node including one or more processors, memory, a network interface, and an application including processor-executable instructions that, when executed, cause the node to perform one or more operations of the methods described herein.
[0023] In an additional or alternative aspect, this application describes a non-transitory processor-readable medium storing processor-executable instructions that, when executed by one or more processors, cause the one or more processors to perform one or more operations of the methods described herein.
[0024] These and other aspects of the invention will be apparent from and will be elucidated with reference to the embodiments described hereinafter, which will now be described, by way of example only, with reference to the accompanying drawings, in which: [Brief description of the drawings]
[0025] [Figure 1] 1 represents an example network of blockchain nodes. [Diagram 2] 1 illustrates an example of a blockchain network that includes specialized nodes. [Diagram 3] An example of a blockchain network block in which specialized nodes form an overlay network. [Figure 4] Schematic representation of a network of specialized blockchain nodes interacting with mining nodes. [Diagram 5] 13 diagrammatically illustrates a blockchain node requesting credentials from a group or network of specialized blockchain nodes. [Figure 6] 13A-B diagrammatically illustrate an example of a blockchain node obtaining partial credentials from a group of specialized blockchain nodes. [Figure 7] 1 illustrates, in flowchart form, an example process for obtaining credentials from a group of blockchain nodes. [Figure 8] FIG. 13 is a diagram depicting an example process in which two blockchain nodes authenticate each other's credentials obtained from a group of specialized blockchain nodes. [Figure 9] FIG. 13 illustrates another example of a process by which two blockchain nodes authenticate each other's credentials obtained from a group of specialized blockchain nodes. [Figure 10] 1 is a simplified block diagram of an example blockchain node. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] In this application, the term "and / or" is intended to cover all possible combinations and subcombinations of the listed elements, including any one of the listed elements only, any subcombination, or all of the elements, without necessarily excluding additional elements.
[0027] As used herein, the phrase "at least one of ... or ..." is intended to cover any one or more of the listed elements, including any one of the listed elements only, any subcombination, or all of the elements, without necessarily excluding additional elements, and without necessarily requiring all of the elements.
[0028] Although the examples described below refer to implementations in the context of a blockchain network, it will be understood that the present application is not necessarily limited to implementations in blockchain nodes or blockchain networks.
[0029] Reference is first made to FIG. 1, which illustrates an example of a blockchain-related network in block diagram form. The network may be referred to herein as blockchain network 100. Blockchain network 100 is a peer-to-peer, non-membership network in which anyone may join without an invitation or consent from other members. Distributed electronic devices running instances of the blockchain protocol on which blockchain network 100 operates may participate in blockchain network 100. Such distributed electronic devices may be referred to as nodes 102. The blockchain protocol may be, for example, the Bitcoin protocol or other cryptocurrency.
[0030] The electronic devices that run the blockchain protocol and form the nodes 102 of the blockchain network 100 may be of various types, including, for example, computers such as desktop computers, laptop computers, tablet computers, servers, mobile devices such as smartphones, wearable computers such as smart watches, or other electronic devices.
[0031] The nodes 102 of the blockchain network 100 are coupled to one another using suitable communication technologies, which may include wired and wireless communication technologies. In many cases, the blockchain network 100 is implemented at least in part over the Internet, and some of the nodes 102 may be located in geographically dispersed locations.
[0032] Nodes 102 maintain a global ledger of all transactions on the blockchain grouped into blocks, each of which contains a hash of the previous block in the chain. The global ledger is a distributed ledger, and each node 102 may store a full or partial copy of the global ledger. Transactions by nodes 102 that affect the global ledger are verified by other nodes 102 to ensure the validity of the global ledger. The details of implementing and operating a blockchain network, such as one that uses the Bitcoin protocol, will be well understood by those skilled in the art.
[0033] Each transaction typically has one or more inputs and one or more outputs. Script embedded in the inputs and outputs specifies how and by whom the transaction's outputs can be accessed. A transaction's output can be an address to which a value is moved as a result of the transaction. That value is then associated with that output address as an unspent transaction output. Subsequent transactions may then reference that address as an input in order to use or distribute that value.
[0034] Nodes 102 can be of various types or categories depending on their functionality. It has been suggested that there are four basic functions associated with a node 102: wallet, mining, full blockchain maintenance, and network routing. Variations of those functions may exist. A node 102 may have more than one of those functions. For example, a "full node" provides all four functions. For example, a lightweight node, such as may be implemented with a digital wallet, may feature only wallet and network routing functions. Rather than keeping the full blockchain, a digital wallet may keep track of block headers that serve as an index when querying for blocks.
[0035] As described above, mining nodes (“miners”) compete to create the next block in the blockchain. To assemble a block, a miner builds the block as a set of transactions from a pool of unconfirmed transactions (“mempool”). The miner then attempts to complete a proof-of-work for the block that he assembled. If the miner manages to complete the proof-of-work before being notified that any other miner has successfully generated a block and completed its proof-of-work, then the miner propagates the block by sending it to peer nodes on the network. Those nodes validate the block and then send it further to other nodes on the network. If the miner receives notification that another block is completed before finishing its own proof-of-work, then the miner abandons its activity and starts trying to build the next block. Rapid propagation of blocks helps to avoid wasted effort for the miners and validating nodes.
[0036] In current implementations of blockchains, such as the Bitcoin network, each node that receives a block first validates the block before sending it to other nodes. The time it takes to validate a block slows the block's propagation through the network. Note that some implementations of blockchains, including evolutions of existing protocols, may provide block validation by only a portion of the nodes rather than every node in the network. However, block validation by most nodes may still be a feature of any blockchain implementation to prevent invalid blocks from propagating through the network.
[0037] Validating a block includes verifying that the block satisfies predefined criteria set by the applicable blockchain protocol. Examples of criteria applicable to the Bitcoin protocol are defined in the Bitcoin Core client functions CheckBlock and CheckBlockHeader. In addition to verifying that the block itself conforms to predefined criteria, each transaction within the block may be evaluated for conformance to transaction-level criteria. As an example, transaction-level criteria applicable to the Bitcoin protocol may be found in detail in AcceptToMemoryPool, CheckTransaction, and CheckInputs.
[0038] In general, transaction-level validation criteria specify the properties that a transaction should have to be considered valid under the applicable blockchain protocol. Similarly, block-level validation criteria specify the properties that a block should have to be considered valid under the applicable blockchain protocol.
[0039] Some evolutions of blockchain may provide for more specialized nodes. As an example, nodes are structured as storage nodes with large amounts of fast-access memory and large amounts of network communication resources. The storage nodes may implement a distributed transaction database ("memory pool") that stores unconfirmed transactions. In some implementations, the storage nodes may implement a distributed UTXO database of unspent transaction outputs. These distributed databases may be implemented by distributed hash tables in some cases. As another example, some nodes may be structured as validator nodes designed to focus on rapid validation and propagation of transactions. Validator and storage nodes can facilitate the increased transaction volume associated with high volume payment processing by forming a high-speed transaction merchant network within the blockchain network 100 designed for distributed mass storage and for rapid validation and propagation of transactions.
[0040] As the number of transactions used in payment processing increases significantly, the amount of transactions stored in each memory pool increases. 4Assuming a transaction rate of 100 TX / s, the memory pool may receive up to 400 GB of incoming data each day. All of this data needs to be stored in the memory pool of unconfirmed transactions for various times. Thus, in some implementations, a network of nodes may use a shared memory pool implemented with a distributed hash table (DHT) to hold the pool of unconfirmed transactions, rather than keeping the full memory pool at each node. In such implementations, mining nodes and / or other types of nodes may not necessarily hold the full memory pool locally, offloading the burden of holding and updating a very large pool of unconfirmed transactions. Instead, mining nodes and / or other types of specialized nodes may rely on a network of storage and / or validator nodes to manage the maintenance of the memory pool. In some examples below, the term "specialized node" may be used to refer to a node that has a specific role in the blockchain network, such as a validator node, a storage node, etc.
[0041] Reference is now made to Figure 2, which illustrates one embodiment of a blockchain network of nodes 200. The blockchain network 200 includes a number of specialized nodes 202 and a number of mining nodes 204. The specialized nodes 202 are, in this example, physically and logically distributed throughout the network 200. The blockchain network 200 may include many other types of nodes, including full nodes, Simplified Payment Verification (SPV) nodes (e.g., wallets), and other specialized nodes having focused roles.
[0042] Another embodiment of a blockchain network 300 is depicted in Fig. 3. Fig. 3 shows specialized nodes 202 forming a (logical) overlay network 302 within the blockchain network 300. The overlay network 302 may be configured to ensure fast communication between the specialized nodes 202 within the overlay network 302 to ensure fast access and retrieval of a shared memory pool.
[0043] The specialized nodes 202 in this example may be implemented to facilitate fast transaction validation and propagation as part of a structure to facilitate high volume payment processing across the blockchain network 200, 300. In this regard, the specialized nodes 202 may be validator nodes that focus on transaction validation and propagation, while the mining nodes 204 focus on block mining and avoid the need for memory pool storage or transaction validation. In this example, the specialized nodes 202 may have access to the memory pool directly in that they are responsible for the DHT-based storage, or may have access to the memory pool via one or more storage nodes.
[0044] Such reconfiguration of the blockchain network 200, 300 and the roles of individual nodes to promote faster transaction processing may present challenges in ensuring the growth of the blockchain and non-malicious participation of various nodes. It is highly important to preserve the decentralized nature of the blockchain network 200, 300 by avoiding control by one or more central authorities. For the network 200, 200 to function properly, the specialized node 202 and other specialized nodes should interact to ensure that each node is performing its own function or role and that other nodes can be trusted to perform their functions or roles. To this end, the interaction between the specialized node 202 and the mining node 204 may use multiple transactions to encourage cooperation in pursuit of faster mining and propagation of blocks.
[0045] Reference is now made to Figure 4, which diagrammatically illustrates a number of mining nodes 402 (individually designated 402a, 402b, 402c) and an overlay network 302 including a number of specialized nodes 202. In this example, the specialized nodes 202 implement a memory pool, e.g., as a shared memory pool using a DHT, to hold a large database of unconfirmed transactions distributed among the specialized nodes 202. Note that this is one example, and in some other implementations, each of the specialized nodes 202 may hold a full copy of the memory pool.
[0046] Mining nodes 204 may include individual single miners, such as those indicated by reference numerals 402b and 402c, or may include mining pools including multiple miners, such as those indicated by reference numeral 402a.
[0047] The mining nodes 402 in this example do not have a full copy of the memory pool, but rely on the specialized nodes 202 to provide them with the necessary material to mine a new block. In particular, one of the specialized nodes 202 can invite the mining node 402 to participate in mining a new block using the set of unconfirmed transactions that the specialized node 202 has access to in the memory pool. The mining nodes 402 can choose to agree to participate in the mining activity by receiving the new set of unconfirmed transactions. In exchange for receiving a deposit from each mining node 402, the specialized nodes 202 provide each of them with the set of transactions (or a hash of the set of transactions). If one of the participating mining nodes 402 succeeds in creating a new block from the set of transactions, then that mining node 402 receives a refund of its deposit from the specialized node 202 in addition to the normal fee for mining the block. The remaining unsuccessful mining nodes 402 forfeit their deposits to the specialized node 202. If none of the participating mining nodes 402 succeed in producing the next block, then the specialized nodes 202 refund their deposits, minus a validation fee collected by the specialized node 202, in part, as compensation for its effort in validating transactions and supplying a set of validated transactions to the mining nodes.
[0048] Note that the mining node 402, in this example, would like to be able to authenticate that the specialized node 202 is a legitimate member of the pool of specialized nodes. Similarly, among the specialized nodes 202 themselves, they may need to authenticate the identity of one of the specialized nodes 202 and the authority of that node to participate in the collaboration. In many network architectures, this function is achieved by imposing a central authentication service, such as a certificate authority, that centrally manages certificates and authenticates participating nodes. However, such an architecture is undesirable in a distributed peer-to-peer architecture, where central control or authority should be avoided.
[0049] The same problem may arise in other parts of the blockchain network as its architecture evolves to accommodate nodes that have specialized roles, whether validation, storage, mining, or other functions. These nodes act as members of a group with a specific role, and other members of the group with that role want to be able to identify and authenticate their membership in the group. Similarly, nodes that are not members of a group, but need to interact with and "trust" specialized nodes in the group, also want to be able to authenticate the membership of the specialized nodes in the group. It is desirable to enable nodes to authenticate identity and membership without imposing a centralized certificate authority on a decentralized blockchain network.
[0050] In one aspect, the present application provides a method and device for authenticating a node relying on distributed private key shares among a group of nodes that are members of a specialized node group, whereby a credential is generated and provided to a requesting node through cooperation of the specialized nodes in the group such that no single specialized node alone provides a valid credential to the requesting node.
[0051] In another aspect, the present application provides a method for establishing a trusted communication channel between two nodes through verifying that each node possesses a credential authorized by the same group of nodes. Both nodes involved in the trusted communication channel may, but are not necessarily, members of the group that authorized the credential. In one example, one node is a member of a specialized group of nodes and the other node is not. Verifying the validity of the credentials of the two nodes may be based on each node generating a key using a bilinear pairing operation and ensuring that the keys match. The bilinear pairing operation of one node may include as arguments a map-to-point hash of the identifier of the other node and a secret point that was generated collaboratively by the group of nodes and provided to the one node.
[0052] Reference is now made to Figure 5, which diagrammatically illustrates a group of specialized nodes 502. A requesting node 504 wishes to obtain credentials from the group of specialized nodes 502 so that it can prove its identity as one of the specialized nodes or as a node that communicates with one of the specialized nodes. The requesting node 504 may or may not be part of the group of specialized nodes 502.
[0053] The requesting node 504 sends a request 506 for credentials to the group of nodes 502. The request 506 is associated with an identifier of the requesting node 504. In some implementations, the identifier may be generated by the requesting node 504 and sent along with the request 506. For example, the requesting node 504 may generate its identifier "Alice" and communicate its id=Alice to the group of nodes 502. In some implementations, the identifier may be assigned by the group of nodes 502, or more specifically, by one node in the group of nodes 502, and sent to the requesting node 504. In some implementations, the requesting node 504 provides its "name" or identifier string, e.g., "Alice", to the group of nodes 502. The identifier string may be any alphanumeric string or other unique identifier. The group of nodes 502 may concatenate additional information to the identifier string to generate an identifier for the requesting node 504. For example, the group of nodes 502 may combine an identifier string with a name or identifier of the group of nodes 502. In some implementations, the name is a "role" or function of the group of nodes 502, such as "validator". In some implementations, the group of nodes 502 may combine the identifier with an expiration time of the credential, so that any other node evaluating the credential of the requesting node 504 can determine from the identifier whether the credential is within its expiration date. In one embodiment described below, the identifier of the requesting node 504 is formed from a concatenation of the identifier string (e.g., Alice), a role string identifying the group of nodes 502 or their functional role, and the expiration time of the credential. Other possible implementations of the identifier will be appreciated by those skilled in the art.
[0054] Each node in the group of nodes 502 receives a share k of the private key k. iSecret sharing is used in threshold cryptography where a secret k is divided among n players such that at least t+1 participants must cooperate to reconstruct the secret k. Knowledge of any t parts of the secret k leaves the secret k undetermined.
[0055] The secret sharing scheme is based on polynomial interpolation, and the secret is considered to be an element of a finite field F. The scheme consists of a dealer (a dealerless version also exists) and n participants U1, , U n In the protocol, any random secret is stored as f(0) in a t-th order polynomial f(x), and only node i knows its share f(x i ) can be calculated by using Lagrange polynomial interpolation when t+1 of the n nodes cooperate. n ) their shares k1, k2, . . . , k n Lagrange polynomial interpolation is a method to reconstruct any point on f(x) by solving for t+1 points p={(x1,f(x1)),(x2,f(x2)),...,(x t+1 ,f(x t+1 ))} can be reconstructed by:
number
number
[0056] In the implementation of dealerless shares distribution: 1. Each node i has a set of x known to all i Each x i must be unique. 2. Each node i is assigned a random polynomial f with degree t. i Generate (x). 3. Each node i sends a polynomial f i (x j ) mod n, send each of these points privately (encrypted with the recipient's public key). 4. Each node i has a share k of the polynomial f(x) mod n. i =f(x i ) mod n, all of these received f1(x1), f2(x2), . . . , f p (x i ), all mod n (where n is the base field [Outside 1] TIFF2024114899000004.tif7170 is the characteristic.) are added together.
[0057] Returning to the example of FIG. 5, a node in the group of nodes 502 may request a secret point s for the requesting node 504, as indicated by reference numeral 508. A They work together to generate a secret point s A is in the cyclic group G1, whose significance will become clear from the following explanation of the handshake and pairing. The secret point is: s A =k H1(id A ) Here, id A is the identifier of the requesting node 504. The credentials may be, in some implementations, A ,s A ), where H1 is a map-to-point hash, as explained in more detail below.
[0058] To generate a secret point without reconstructing the group private key k, a group of nodes 502 may use a form of Secret Share Joining to generate a secret point s A 6 illustrates another example of a group of nodes 502 granting a credential to a requesting node 504. In this example, the requesting node 504 sends a credential request to at least t+1 nodes in the group of nodes. Each of those nodes sends a credential to the requesting node 504. A In particular, secret points A Each share of Ai are determined by node i and sent to the requesting node 504, which then stores them as a secret point s A In some instances, the shares Ai is the secret point A are combined by adding them together to get
[0059] Reference is now made to Figure 7, which illustrates in flow chart form one example of a process 700 for group-based distributed generation of credentials. Process 700 is performed by a requesting node. It begins with the requesting node setting an index i to 1 in operation 702. The requesting node then requests a credential from node i, which is a specialized node in a group of nodes configured to perform an implementation of the credential authorization procedure described herein. Node i receives a group private key share k i Using the part, secret point s A Determine the i-th part of s Ai It may be referred to as:
[0060] In operation 706, the requesting node receives the portion s from the i-th node. AiIn operation 708, the requesting node determines whether index i is t+1. If so, the requesting node has received t+1 partial credentials. However, if not, the requesting node receives the secret point s A If i is not yet equal to t+1, then at operation 710, i is incremented by 1 and the process 700 returns to operation 704 to request another partial credential from another node in the group of nodes. If i is equal to t+1, then at operation 712, the requesting node obtains the secret point s A Assemble.
[0061] Once a credential is obtained through the collaborative efforts of nodes in a group of nodes, it is advantageous to have a mechanism to check or validate the credential without relying on a central authority or going back to the group for validation / authentication. That way, two nodes claiming to have valid credentials from a node in the same group can validate each other's credentials without incurring the time delays and communications overhead associated with having a group of nodes cooperatively verifying and validating issued credentials.
[0062] As an overview, assume that the group private key k is a member of a finite field, i.e., [Outside 2] The requesting node that obtains the credentials sends the credentials to its own identifier, id A and a secret point s in the cyclic group G1 A In this example embodiment, the identifier (or "pseudonym") id Ais (Alice||role||expiry time), where || represents the concatenation of two strings, and role is a string or other alphanumeric identifier associated with a node and / or its function or role in the group. The requesting node may publish its identifier to anyone, but s A shall remain secret.
[0063] The other requesting node receives the identifier id as (Bob || role || elapsed time). B And secret points B and get.
[0064] Secret Points A s A =k H1(id A ) and the secret point s B s B =k H1(id B )
[0065] When Alice and Bob want to establish trusted communication with each other, i.e. when one or both of them want to verify the other's credentials, the two nodes exchange their identifiers / pseudonyms without disclosing their secrets.
[0066] Node Alice then: K A =e(H1(Bob||role||time),s A ) By calculating A where e() is a bilinear map, i.e., a pairing operation. Node Bob: K B =e(s B ,H1(Alice||role||expiration time)) By calculating BRequest.
[0067] The operation H1() is a map-to-point function, as described further below. By the properties of pairing, two keys are the same, i.e., K A =K B By sending the challenge value and getting a response, the two nodes can verify that the protocol was successful, i.e., that they each hold credentials issued by the same group of nodes exhibiting the same role. Alternatively, one party can send the other some content that will be successfully decrypted if and only if the handshake is successful.
[0068] The pairing operation in this example is to find s A and s B In other cases, the two are: e:G1×G2→G T The two abelian groups G1 and G2 may be related as two abelian groups, each of which takes values in another abelian group as G1 and G2. Here, G1, G2 and G T are cyclic groups of the same order.
[0069] There are certain parameters in the generation of public credentials. They are generated by any node in the process and shared with other nodes. E is a field where q is a relatively prime power of 2 and 3. [Outside 3] Starting from the assumption that the elliptic curve contains n points over TIFF2024114899000006.tif7170, the public parameters are: params = (p, G1, G2, G T ,g1,g2,e,H1,H2) Here, g1 (or g2) is a generator of a group G1 (or G2) of prime order p with bilinear mapping e(.,.). G1 is a generator of a group of order r, where r and q are mutually prime. [Outside 4] TIFF2024114899000007.tif7170. And e(g1,g2) is a cyclic subgroup of G T H1 and H2 are map-to-point hashes for G1 and G2, respectively. As mentioned above, in some implementations, and in many of the examples described herein, only G1 may be used. That is, the same map-to-point hash H1 is used for both secret points s A and s B Used for.
[0070] In some elliptic curve cryptography schemes, hashing algorithms are used to map a password or other string, which is an element of a finite field, to a point on a given elliptic curve. They are map-to-point hashes. More precisely, a map-to-point hash H1 is a transformation that takes as input a message m and returns a point P ∈ E(K). More specifically, H1 returns a point P ∈ E(K)[r], where E(K)[r] is a subgroup of E(K) generated by G1. In this scheme, the base field [Outside 5] There is a one-to-one mapping f from TIFF2024114899000008.tif7170 to the curve, which allows us to hash using f(H(m)), where H is a classical hash function, [Outside 6] TIFF2024114899000009.tif7170
[0071] Reference is now made to Figure 8, which shows the message flow between two nodes A and B in establishing a trusted communication channel by validating each other's credentials. In this example, node A sends its identifier id Ato Node B. Identifier id A is publicly available and in some cases may be obtained by node B from other sources. From this, node B obtains the identifier of node A and a secret point s held by node B. B and a map-to-point hash H1 defined by the group of nodes that issued the credential, to generate a session key K B The session key K can be generated. B is generated using a pairing operation e(), also specified by a group of nodes: K B =e(s B ,H1(Alice||role||expiration time)) Here, in this example, the identifier of node B, id B is (Alice || role || expiration time).
[0072] Node B uses its id B to node A, which then similarly provides node B's identifier and its own secret point s A Using the same pairing operation and map-to-point hash, we obtain the session key K A can be generated: K A =e(H1(Bob||role||time),s A )
[0073] If the secret points are generated by a group of nodes in a legitimate cooperative manner using the identities of each node A and B and the same group secret key, then the pairing operation can be completed in K A =K B This can be tested in a variety of ways. In this example, node A obtains a session key K A Node B sends the challenge encrypted with its own session key K BThe response is sent using the session key K B Based on this, both nodes can be sure that they have the same session key. That session key can be used to encrypt communications between the two nodes. In other implementations, the session key may be used to encrypt communications that result in the setup of other keys. In yet other implementations, communications between the two nodes simply rely on the above procedure to validate / authenticate each other's credentials, and communications between the two nodes are either not encrypted or are encrypted with the nodes' regular public-private key pairs.
[0074] Another embodiment is illustrated by the signal diagram of Fig. 9. In this example, node A generates a random nonce A Node A starts by creating a node with identifier id A and sends the nonce to node B. Node B receives its own nonce B Node B then generates a value C0, in this example, which is a hash of the result of the pairing operation and other data, including the nonce. In this example, value C0 is: C0 = H(e(s B ,H1(id A ))||id A ||id B ||nonce A ||nonce B ) where H is a string-wise collision resistant hash function. In one example, H is SHA-256.
[0075] Node B then receives its identifier id B And the nonce B and the value C0, which is returned to node A. Node A then performs a similar calculation to obtain a value C1, which in this example is: C1 = H(e(H1(id B ),s A )||id A ||id B ||nonce A ||nonce B ) This is expressed as:
[0076] It can be seen that the only difference in the arguments in the formula for C1 relative to C0 is in the pairing operation. Thus, if the bilinear pairing operation confirms that the credentials of node A and node B are obtained from the same group of nodes, the two values should match. Node A can verify that they match, and if so, sends C1 to node B. Node B also verifies that they match. In one implementation, the value C0=C1 is then used as a session key to encrypt communications between node A and node B. In some implementations, the nodes simply rely on their regular public-private key pairs to encrypt communications, and the above operations are for authentication, not for establishing a session key.
[0077] In some embodiments, the data or strings that are concatenated and hashed to form the values C0 and C1 may include other data or strings, or may exclude some of the strings in the previous examples. For example, in one implementation, the values C0 and C1 are A and id B It will be appreciated that the hash and nonce help protect the communication from man-in-the-middle attacks.
[0078] Referring now to FIG. 10, FIG. 10 illustrates a simplified example of a blockchain node 1000 in block diagram form. The blockchain node 1000 in this example includes a processor 1002, a network interface 1004, and a memory 1006. The blockchain node 1000 may be implemented using any suitable computing hardware having network connectivity and sufficient processing and memory resources to perform the functions described herein. The blockchain node 1000 may include processor-executable instructions for implementing the functions described herein. In some cases, the processor-executable instructions may be referred to as a blockchain application 1020. It will be appreciated that the instructions may be implemented in one or more modules, applications, scripts, or other programming structures depending on the hardware and operating system. The processor 1002 may include a multi-core processor and / or multiple processors.
[0079] It will be understood that any modules, routines, processes, threads, applications, or other software components implementing the devices and processes described herein, as well as the described methods / processes for configuring a video feature extractor, may be implemented using standard computer programming techniques and languages, and the application is not limited to any particular processor, computer language, computer programming specification, data structures, or other such implementation details.
[0080] It should be noted that the above embodiments illustrate rather than limit the invention, and that those skilled in the art can design many alternative embodiments without departing from the scope of the invention as defined by the appended claims. In the claims, any reference signs in parentheses shall not be construed as limiting the scope of the claims. The words "comprising" and "comprises" and the like do not exclude the presence of elements or steps other than those listed in any claim or the specification as a whole. In this specification, "comprising" means "includes or consists of" and "comprising" means "including or consisting of". A single reference of an element does not exclude a plurality of references of such elements and vice versa. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different claims does not indicate that a combination of these measures cannot be used to advantage.
Claims
1. 1. A computer-implemented method for a second node to establish trusted communications with a first node, the second node having a second node identifier and a second secret point, the second secret point being a group secret key multiplied by a mash-to-point hash of the second node identifier, the group secret key being associated with a group of nodes configured to grant credentials, the method comprising: obtaining a first secret from the group of nodes, the first secret being the group secret key multiplied by a map-to-point hash of a first node identifier; obtaining the first node identifier; generating a second node session key using a bilinear pairing operation with the second secret point and a map-to-point hash of the first node identifier; providing the second node identifier to the first node such that the first node can generate a first node session key; verifying that the first node session key generated by the first node matches the second node session key using a bilinear pairing operation with a map-to-point hash of the second node identifier and the first secret point; The method according to claim 1,
2. the first node identifier is obtained from a source other than the first node; The method of claim 1.
3. the map-to-point hash is defined by the group of nodes that issued the credential; The method according to claim 1 or 2.
4. The second node session key has the formula: K B = e (s B , H 1 (Alice || role || expiration time) is generated using 4. The method according to any one of claims 1 to 3.
5. deriving the first secret point includes obtaining respective portions of the first secret point from each of a plurality of nodes in the group of nodes and combining the respective portions to form the first secret point without reconstructing the group private key.
5. The method according to any one of claims 1 to 4.
6. said verifying comprising receiving from the first node a challenge encrypted with the first node session key and transmitting a response to the challenge such that the first node can determine based on the response that the second node has validly decrypted the challenge using the second node session key.
6. The method according to any one of claims 1 to 5.
7. Obtaining the first node identifier further comprises obtaining a first nonce, and providing the second node identifier further comprises obtaining a second nonce and a calculated C 0 and providing a value of C. 0 the value comprises a hash of the concatenation of the second node session key, the first nonce, and the second nonce.
7. The method according to any one of claims 1 to 6.
8. The link further includes the first node identifier and the second node identifier. The method according to claim 7.
9. Generating the first node session key includes using a computed C 128 having a hash of a concatenation of the first node session key, the first nonce, and the second nonce. 1 and generating a value of C, 0 The value is calculated as C 1 and verifying that the value matches the 9. The method according to claim 7 or 8.
10. the first secret point and the second secret point are each provided to the first node and the second node, respectively, by the group of nodes using secret sharing; 10. The method according to any one of claims 1 to 9.
11. the first node session key or the second node session key is used to encrypt communications between the first node and the second node; 11. The method according to any one of claims 1 to 10.
12. 1. A computer-implemented method for a first node to establish trusted communications with a second node, the second node having a second node identifier and a second secret point, the second secret point being a group secret key multiplied by a map-to-point hash of the second node identifier, the group secret key being associated with a group of nodes configured to grant credentials, the method comprising: obtaining a first secret from the group of nodes, the first secret being the group secret key multiplied by a map-to-point hash of a first node identifier; sending the first node identifier to the second node; receiving the second node identifier; generating a first session key using a bilinear pairing operation with a map-to-point hash of the second node identifier and the first secret point; verifying that the first session key matches a second session key generated by the second node using the bilinear pairing operation with the second secret point and a map-to-point hash of the first node identifier. A method of having
13. The bilinear pairing operation for generating the first session key is represented by the formula: K A = e(H 1 (id B ), s A ), and K A = e (s B , H 1 (id A )) and the bilinear pairing operation for generating the second session key has the other of the equations; e() is the bilinear pairing operation, H 1 () is the map-to-point hash, id A and id B is one of the first node identifier and the second node identifier, s A and s B is one of the first secret point and the second secret point, The method of claim 12.
14. A non-transitory processor-readable medium storing processor-executable instructions that, when executed by one or more processors, cause the one or more processors to perform operations of the method of any one of claims 1 to 11.
15. A non-transitory processor-readable medium storing processor-executable instructions that, when executed by one or more processors, cause the one or more processors to perform operations of the method of claim 12 or 13.
Citation Information
Patent Citations
Systems and methods for identity-based encryption and related cryptographic methods
JP2005500740A
Secure Group Messaging
JP2014523206A
Multi-Factor Zero-Knowledge Authentication Using Pairing
JP2016526342A
