Method and system for establishing trusted peer-to-peer communication between nodes in a blockchain network

By using secret sharing and bilinear pairing operations in the blockchain network, trusted credentials are generated between nodes, which solves the problems of node identity authentication and communication credibility in the blockchain network, and achieves decentralized security. communication.

CN110709875BActive Publication Date: 2024-10-29NCHAIN HLDG LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201880037551.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-06-04
Publication Date
2024-10-29
Estimated Expiration
2038-06-04

AI Technical Summary

Technical Problem

In a blockchain network, trusted point-to-point communication between nodes is difficult to achieve, especially how to ensure identity authentication and authority verification between nodes without compromising the point-to-point nature of the system, and avoid relying on a central authentication service.

Method used

By using secret sharing and bilinear pairing operations in an autonomous private node group to generate credentials that do not involve the reconstruction of the group private key, bilinear pairing operations are performed between nodes through secret points and identifiers to generate the same session key to Enable authentication and trusted communication.

Benefits of technology

It achieves trusted communication between nodes, avoids dependence on central authority, improves the decentralization and security of the system, and reduces the delay and communication overhead of the authentication process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110709875B_ABST
    Figure CN110709875B_ABST
Patent Text Reader

Abstract

A method and apparatus for two nodes to authenticate each other under the attestation of an autonomous private node group without involving the group or a decentralized credential manager or authenticator. The method may include a first node and a second node deriving a same session key using a bilinear pairing operation involving their respective identifiers and a secret point. Assuming the secret point and the identifier are obtained from the group using a group private key, the bilinear pairing operation results 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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates generally to blockchain transactions, and more particularly to methods and devices for establishing trusted peer-to-peer communications between nodes. Background Art

[0002] In this document, 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 unpermissioned ledgers, shared ledgers and their variations. It should be noted that other alternative blockchain implementations and protocols also fall within the scope of the present invention.

[0003] A blockchain is a consensus-based electronic ledger implemented as a decentralized, distributed computer-based system consisting of blocks, which in turn consist of transactions. Each transaction (Tx) is a data structure that encodes the transfer of control of a digital asset between participants in a blockchain system, and the data structure includes at least one input and at least one output. Each block contains a hash of the previous block, and the blocks are linked together to create a permanent, unchangeable record of all transactions written to the blockchain since its creation. Transactions contain small programs called scripts embedded in their inputs and outputs that specify how and by whom the outputs of the transaction can be accessed. These scripts are written using a stack-based scripting language.

[0004] A network node that receives a new transaction will quickly attempt to push that transaction to other nodes in the network. Before a new transaction is transmitted to other nodes, it is "validated," meaning that it is checked against a set of criteria to ensure that it meets the basic requirements for a proper transaction under the applicable blockchain protocol.

[0005] To write a transaction to the blockchain, a node incorporates that transaction into a block, which is designed to collect transactions and form those transactions into a block. The block is propagated through the network so that other nodes that maintain a copy of the blockchain can update their records. The node that receives the block also "validates" the block and all the transactions in it to ensure that it meets the formal requirements of the protocol.

[0006] One of the challenges in a decentralized peer-to-peer system is ensuring that a node can communicate with another node in the network on a trusted basis. As the network architecture of some implementations evolves, some nodes may take on more specialized tasks, while other nodes may rely on those specialized nodes as sources of certain data or performers of certain functions. If a node is to rely on another node for information or as a legitimate source, it needs to be able to establish a trusted relationship to communicate with that node. In cases where nodes may have different roles, it is best to have a mechanism to determine and verify the role of a node. In addition, if a node is proven to be illegitimate or malicious, other nodes should be able to remember the node and ignore future communications from such a node. In a peer-to-peer system, the challenge is to address these issues by imposing a central authority without compromising the peer-to-peer nature of the system.

[0007] Such a solution has now been devised. Summary of the invention

[0008] Hence, according to the present invention there is provided a method and system as defined in the accompanying claims.

[0009] The present application may describe and disclose methods and apparatus for managing the secure distribution of credentials from an autonomous group of dedicated nodes to a requesting node. The secure distribution of credentials may use a secret share and a group private key that is not rebuilt or possessed by any node. The credential includes an identifier for the requesting node and a secret point that is composed of portions of a secret point provided by each of a plurality of dedicated nodes, wherein the secret point is based on a map-to-point hash of the group private key and the identifier of the requesting node. In some embodiments, the node may be a blockchain node.

[0010] The present application may further describe and disclose methods and apparatus for two nodes to authenticate each other under the attestation of an autonomous private node group without involving the group or a decentralized certificate manager or authenticator. The method may include a first node and a second node deriving a same session key using a bilinear pairing operation including their respective identifiers and a secret point. Assuming the secret point and the identifier are obtained from the group using a group private key, the bilinear pairing operation results 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] Additionally or alternatively, the present application describes a computer-implemented method for a node to obtain a credential from a group of dedicated nodes, each dedicated node having a private key share of a group private key. The method may include: sending a request for the credential from the node to a plurality of dedicated nodes, wherein the node has an identifier; receiving a portion of a secret point from each of the plurality of dedicated nodes, the portion of the secret point being generated by the node from the identifier and the node's private key share; generating the secret point by combining the received portions of the secret point, wherein the secret point is a mapping to a point hash of the group private key multiplied by an identifier, the credential being the identifier and the secret point. None of the dedicated nodes or the nodes may be required to obtain a complete copy of the group private key.

[0012] In some embodiments, sending the request includes sending a separate request to each of the plurality of dedicated nodes. The identifier may include an identifier string identifying the node and a role string identifying the dedicated node group role. In some cases, the identifier also includes an expiration time of the credential, and in some other cases, sending the request includes sending the identifier string, and wherein receiving includes receiving the identifier.

[0013] In some embodiments, generating the secret point comprises combining portions of the received secret point. In some example embodiments, combining may comprise summing.

[0014] In some embodiments, the secret point is generated using secret shares and based on a group private key. In some cases, the secret shares use Lagrange interpolation and private key shares of multiple dedicated nodes without reconstructing the group private key.

[0015] Additionally or alternatively, the present application may describe 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 secret key multiplied by a mapping-to-point hash of the second node identifier, the group secret key being associated with a node group for granting credentials. The method may include: obtaining a first secret point from the node group, wherein the first secret point is a group secret key multiplied by a mapping-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, a mapping-to-point hash of the second node identifier, and the first secret point together; confirming that the first session key matches a second session key, the second session key being generated by the second node using a bilinear pairing operation, the second secret point, and a mapping-to-point hash of the first node identifier together.

[0016] In some implementations, the generating of the first session key by a bilinear pairing operation is represented by one of the following expressions:

[0017] K A =e(H 1 (id B ),s A ),and

[0018] K A =e(s B ,H 1 (id A )),

[0019] Generating the second session key by a bilinear pairing operation is represented by another of the expressions, and wherein e() is a bilinear pairing operation, H 1 () is mapped to a point hash, id A and id B are respectively one of the first node identifier and the second node identifier, s A and B One of the first secret point and the second secret point respectively.

[0020] In some embodiments, obtaining the first secret point includes obtaining portions of the first secret point from each of a plurality of nodes in the node group and combining the portions to form the first secret point without reorganizing the group private key.

[0021] In some embodiments, the confirming 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 validly decrypted the challenge using the second session key.

[0022] In some embodiments, the sending further comprises sending a first random number, and wherein the receiving further comprises receiving a second random number and the calculated C 0 value, where the C 0 The value includes a hash of a concatenation of the second session key, the first random number, and the second random number. In some of these cases, the concatenation also includes the first node identifier and the second node identifier. In some of these cases, the generating includes generating a calculated C 1 value, the C 1 The value comprises a hash of a concatenation of the first session key, the first random number, and the second random number, and wherein the confirmation comprises confirming the calculated C 0 The calculated C 1The values ​​match.

[0023] In some embodiments, the second secret point is a mapping-to-point hash of the group private key multiplied by the second node identifier.

[0024] In some embodiments, the first secret point and the second secret point are each provided to the first node and the second node, respectively, by the node group using secret sharing.

[0025] Additionally or alternatively, the present application may describe a node comprising one or more processors, a memory, a network interface, and an application comprising processor-executable instructions that, when executed, cause the node to perform the operations of one or more of the methods described herein.

[0026] Additionally or alternatively, the present application may describe a non-volatile processor-readable medium storing processor-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the operations of one or more of the methods described herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] These and other aspects of the invention will become clear and elucidated with reference to the embodiments described herein. Embodiments of the invention will now be described by way of example only and with reference to the accompanying drawings, in which:

[0028] Figure 1 An example network of blockchain nodes is shown;

[0029] Figure 2 Schematically illustrating a blockchain node requesting a credential from a dedicated blockchain node group or network of dedicated blockchain nodes;

[0030] Figure 3 Schematically illustrating an example implementation in which a blockchain node obtains partial credentials from the dedicated blockchain node group;

[0031] Figure 4 An example process for obtaining credentials from a blockchain node group is shown in flowchart form;

[0032] Figure 5 A schematic diagram showing an example process of two blockchain nodes authenticating each other with credentials obtained from a dedicated blockchain node group;

[0033] Figure 6 A schematic diagram showing another example process of two blockchain nodes authenticating each other with credentials obtained from a dedicated blockchain node group;

[0034] Figure 7 A simplified block diagram of an example blockchain node is shown. DETAILED DESCRIPTION

[0035] In the present 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 individually, in any subcombination or all the elements, and does not necessarily exclude additional elements.

[0036] In the present application, the phrase "at least one of... or..." is intended to cover any one or more of the listed elements, including any one listed element alone, any subcombination, or all elements, without necessarily excluding any other elements, and without necessarily requiring the presence of all elements.

[0037] Although the examples described below refer to implementation in the context of a blockchain network, it should be understood that the present application is not necessarily limited to blockchain nodes or implementation in a blockchain network.

[0038] First reference Figure 1 , Figure 1 An example network associated with a blockchain is shown in block diagram form, which may be referred to herein as a blockchain network 100. The blockchain network 100 is a peer-to-peer open membership network that anyone can join without invitation or consent from other members. Distributed electronic devices running an instance of a blockchain protocol (under which the blockchain network 100 runs) may participate in the blockchain network 100. Such distributed electronic devices may be referred to as nodes 102.

[0039] 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 (e.g., desktop computers, laptops, tablet computers, servers), mobile devices (e.g., smartphones), wearable computers (e.g., smart watches), or other electronic devices.

[0040] The nodes 102 of the blockchain network 100 are connected to each other using suitable communication technologies, which may include wired and wireless communication technologies. In many cases, the blockchain network 100 is at least partially implemented by the Internet, and some nodes 102 may be located in geographically dispersed locations.

[0041] Nodes 102 maintain a global ledger of all transactions on the blockchain, divided into groups of blocks, each containing a hash of the previous block in the chain. The global ledger is a distributed ledger, and each node 102 can store a full copy or a partial copy of the global ledger. Transactions that affect the global ledger through nodes 102 are verified by other nodes 102, thereby maintaining the validity of the global ledger. One of ordinary skill in the art will understand the details of implementing and operating a blockchain network.

[0042] Each transaction typically has one or more inputs and one or more outputs. Scripts embedded in the inputs and outputs specify how and by whom the outputs of the transaction can be accessed. The output of a transaction can be an address to which the value is transferred as a result of the transaction. The value is then associated with that output address as an unspent transaction output (UTXO). Subsequent transactions can take that address as an input to spend or disperse that value.

[0043] Nodes 102 may be of different types or categories depending on their functionality. It has been proposed that three basic functions associated with nodes 102 are: wallet, full blockchain maintenance, and network routing. These functions may also have variations. Nodes 102 may have more than one of these functions. For example, a "full node" provides all functions. A lightweight node may be implemented, for example, in a digital wallet and may only have wallet and network routing functions. Instead of storing the entire blockchain, a digital wallet may track block headers, which are used as indexes when querying blocks.

[0044] The rapid propagation of blocks helps avoid wasting time on validating nodes.

[0045] In current implementations of blockchains, each node that receives a block first validates the block before sending the block to other nodes. The time required to validate a block slows down the propagation of blocks through the network. Note that some implementations of blockchains, including evolutions of existing protocols, may provide block validation only by a subset of nodes rather than by every node in the network. However, block validation by a majority of nodes may still be a feature of any blockchain implementation to prevent invalid blocks from propagating through the network.

[0046] Validating a block involves confirming that the block meets the specified standards set by the applicable blockchain protocol. In addition to confirming that the block itself meets the specified standards, each transaction within the block can also be evaluated for compliance with transaction-level standards.

[0047] Typically, transaction-level validation criteria are the specified characteristics that a transaction must possess to be considered valid under the applicable blockchain protocol. Similarly, block-level validation criteria are the specified characteristics that a block must possess to be considered valid under the applicable blockchain protocol.

[0048] Certain evolutions of blockchains may provide services for more specialized nodes. For example, there may be nodes that are constructed as storage nodes with large amounts of fast-access memory and large amounts of network communication resources. Storage nodes may implement a distributed transaction database ("mempool") that stores unconfirmed transactions. In some embodiments, storage nodes may implement a distributed UTXO database for unspent transaction outputs. In some cases, these distributed databases may be implemented in the form of distributed hash tables. Another example is that some nodes may be constructed as validator nodes that are designed to focus on rapid verification and propagation of transactions. Validator nodes and storage nodes may facilitate an increase in transaction volume associated with large-scale payment processing by forming a fast trader network within the blockchain network 100 that is designed for distributed large-capacity storage and rapid verification and propagation of transactions.

[0049] The significant growth in the number of transactions used in payment processing will increase the volume of transactions stored in each memory pool. Assuming the average size of a transaction (TX) is 500 bytes and the transaction rate is ~104TX / s, the memory pool may receive ~400GB of daily incoming data. All of this data needs to be stored in the memory pool of unconfirmed transactions for different periods of time. Therefore, in some embodiments, the node network may use a shared memory pool implemented by a distributed hash table (DHT) to store the unconfirmed transaction pool instead of storing the complete memory pool at each node. In such an embodiment, certain types of nodes may not have to maintain a complete memory pool locally to reduce their burden of storing and updating very large unconfirmed transaction pools. Instead, dedicated nodes may rely on a storage network and / or a validator node to manage the maintenance of the memory pool. In some of the examples below, the term "dedicated node" may be used to refer to nodes with specific roles in a blockchain network, such as a validator node, a storage node, etc.

[0050] In the dedicated nodes themselves, they may need to authenticate the identity of one of the dedicated nodes and the authority of that node to participate in the collaborative work. In many network architectures, this function is achieved by implementing a central authentication service (such as a certificate authority, etc.) that centrally manages credentials and authenticates participating nodes. However, this architecture is unwelcome in a distributed peer-to-peer architecture, where central control or central authority should be avoided.

[0051] As blockchain network architectures evolve to accommodate nodes with special roles (whether for validation, storage, or other functions), the same issues may arise in other parts of the blockchain network. 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 membership in that group. Similarly, nodes that are not members of the group but interact with and need to "trust" nodes dedicated to the group want to be able to authenticate the node's membership in the group. It would therefore be desirable to enable nodes to authenticate identity and membership without imposing a centralized certificate authority on a decentralized blockchain network.

[0052] In one aspect, the present application provides a method and apparatus for authenticating a node by relying on a distributed private key share between a group of nodes, the group of nodes being members of a dedicated node group. Thus, credentials are generated and provided to a requesting node through the collaboration of the dedicated nodes in the group, such that no single dedicated node can provide valid credentials to the requesting node alone.

[0053] On the other hand, the present application provides a method for establishing a trusted communication channel between two nodes by confirming that each node has a credential granted by the same group of nodes. The nodes involved in the trusted communication channel can all be members of the group that grants the credential, but not necessarily members. In one example, one node is a member of a dedicated node group, while the other is not. Confirmation of the validity of the credentials of the two nodes can be based on each node using a bilinear pairing operation to generate a key to ensure that the keys match. The bilinear pairing operation for the node may include a mapping of the identifier of the other node to a point hash and a secret point collaboratively generated by the node group and provided to the node, the mapping to the point hash and the secret point as independent variables.

[0054] Reference Figure 2 , Figure 2 Schematically illustrated is a dedicated node group 502. A requesting node 504 wishes to obtain credentials from the dedicated node group 502 in order to be able to prove its identity as one of the dedicated nodes or as a node communicating with one of the dedicated nodes. The requesting node 504 may or may not be part of the dedicated node group 502.

[0055] The requesting node 504 sends a request 506 for a credential to the node group 502. The request 506 is associated with an identifier of the requesting node 504. The identifier may be generated by the requesting node 504 and sent with the request 506 in some embodiments. For example, the requesting node 504 may generate its identifier "Alice" and tell the node group 502 that its identity (id) is Alice. In some embodiments, the identifier may be assigned by the node group 502, or more specifically, assigned by one of the nodes in the node group 502 and communicated to the requesting node 504. In some embodiments, the requesting node 504 provides its "name" or identifier string, such as "Alice", to the node group 502, which may be any alphanumeric string or other unique identifier. The node group 502 may concatenate additional information to the identifier string to generate an identifier for the requesting node 504. For example, the node group 502 may combine the identifier string with the name or identifier of the node group 502. In some embodiments, the name is a "role" or function of the node group 502, such as "validator", etc. In some embodiments, the node group 502 may combine an identifier string with an expiration time of the credential, so that any other node evaluating the credentials of the requesting node 504 can evaluate whether the credential is still not expired based on its identifier. In an example embodiment shown below, the identifier of the requesting node 504 is formed by the concatenation of an identifier string (e.g., Alice) and the expiration time of the credential, and the identifier string is a role string that identifies the node group 502 or the functional role of the node. Other possible embodiments of the identifier will be understood by those of ordinary skill in the art.

[0056] Each node in node group 502 includes a share k of private key k i Secret sharing is used in threshold cryptosystems where a secret k is distributed among n users so that at least t+1 participants need to collaborate to reconstruct k. Knowing any t of the secret k does not allow one of the remaining ones to determine it.

[0057] Secret sharing is based on polynomial interpolation and assumes that the secret is an element of a finite field F. The scheme consists of a dealer (a dealerless version also exists), a set of n participants U 1 ,...,U n In this protocol, an arbitrary random secret is stored as f(0) in a t-degree polynomial f(x), and only node i can calculate its share f(x i ). If t+1 of the n nodes cooperate, they can reconstruct any point on f(x) with a share k of key k 1 ,k 2 ,...,kn Corresponding to f(x) using Lagrange polynomial interpolation 1 ),f(x 2 ),...,f(x n ). The Lagrange polynomial interpolation method provides the ability to reconstruct the t-order function f(x) using t+1 points:

[0058] p={(x 1 ,f(x 1 )),(x 2 ,f(x 2 )),...,(x t+1 ,f(x t+1 ))}

[0059]

[0060] in,

[0061]

[0062] Note: i,p (x i )=1 and b i,p (x j )=0. Here, b i is the interpolation coefficient.

[0063] In embodiments involving non-trader share allocations:

[0064] 1. Assign each node i a known x i . Each x i Must be unique.

[0065] 2. Each node i generates t random polynomials f i (x).

[0066] 3. Each node i secretly sends its own value in polynomial f to every other node. i (x j )mod n.

[0067] 4. Each node i will receive all the f 1 (x i ),f 2 (x i ),...f p (x i ) and all mod n additions (where n is the base domain F n Characteristics (F n It can also be expressed as GF(n),Z / nZ)) to form k i =f(x i)mod n, which is the fraction of the polynomial f(x)mod n.

[0068] Refer to Figure 2 In the example of FIG. 5 , the nodes in the node group 502 cooperate to generate a secret point s for the requesting node 504. A , as shown by reference numeral 508. Secret point s A In the cyclic group G 1 The importance of this can be clearly seen from the following explanation of handshake and pairing. The secret point is related to the identifier according to the following relationship:

[0069] s A = k·H 1 (id A )

[0070] Among them, id A is the identifier of the requesting node 504. In some embodiments, the credential may be treated as (id A ,s A ). 1 is a hash function that maps to points, which is explained in more detail below.

[0071] In order to generate a secret point without reconstructing the group private key k, the node group 502 uses Secret Share Joining to collaboratively generate s A . Figure 3 Another example of a node group 502 granting credentials to a requesting node 504 is shown. In this illustration, the requesting node 504 sends a credential request to at least t+1 nodes of the node group 502. Each of these nodes provides s A In particular, the secret point s A Each share of Ai determined by node i and sent to the requesting node 504, which then assembles them (i.e., combines them) into the secret point s A In some examples, the share s Ai The combination is made by dividing the shares s Ai Add together to get secret points s A To achieve.

[0072] Reference Figure 4 , which shows an example process 700 for group-based distributed credential generation in flowchart form. Process 700 is performed by a requesting node. First, in operation 702, the requesting node sets index i to 1. Then, the requesting node requests a credential from node i. Node i is a dedicated node in a node group that is used to perform the implementation of the credential granting process described herein. Node i uses the group private key share ki part of the secret point s A The i-th part of . This part can be called s Ai .

[0073] In operation 706, the requesting node receives the portion s from the i-th node. Ai , i.e., receiving a partial credential. In operation 708, the receiving node evaluates whether the index i is t+1. If so, the receiving node has received the t+1 partial credential, but if not, other partial credential is still needed to reconstruct the secret point s A If i is not equal to t+1, then in operation 710 it is increased by 1 and process 700 returns to operation 704 to request another portion of the credential from another node in the node group. If i is equal to t+1, then in operation 712 the requesting node assembles the secret point s A .

[0074] Once a credential is obtained through the joint efforts of nodes in a node group, it is desirable to have a mechanism to check or validate the credential without relying on a central authority or going back to the group for confirmation / authentication. This way, two nodes claiming to have valid credentials from the same node group can validate each other's credentials without incurring the burden of time delays and communication overhead associated with having a node group collaborate to verify and validate issued credentials.

[0075] As an overview, we can think of the group key k as a member of a finite field, that is, k∈Z q The credentials are identified by their identifier id in the requesting node that obtained them. A and the cyclic group G 1 Secret Points in A In this example embodiment, the identifier (or "pseudonym") id A is (Alice||role||expirationtime) where || represents the concatenation of two strings, and role is a string or other alphanumeric identifier associated with a node group and / or its function or role. The requesting node may reveal its identifier to anyone, but will A Keep it confidential.

[0076] The other requesting node will send the identifier id B Get (Bob||role||expirationtime) and secret point s B .

[0077] Attention, secret spots A By A = k·H 1 (id A ) is obtained, and the secret point s B ByB = k·H 1 (id B )get.

[0078] When Alice and Bob wish to establish trusted communication with each other, i.e., when one or both of them wish to verify each other's credentials, the two nodes exchange their respective identifiers / pseudonyms without disclosing their respective secret points.

[0079] Then, node Alice generates the session key K by the following calculation A :

[0080] K A =e(H 1 (Bob||role||expirationtime),s A )

[0081] Among them, e() is a bilinear map, that is, a pairing operation. Node Bob calculates the session key K by the following calculation B :

[0082] K B =e(s B ,H 1 (Alice||role||expirationtime))

[0083] Operation H 1 () is a function that maps to points, which will be further explained below. Due to the nature of pairing, the two keys above are the same, namely K A =K B The two nodes can verify the success of the protocol by sending a challenge value and getting a response to the challenge value, that is, the two nodes each hold a credential indicating the same role issued by the same group of nodes. Alternatively, one party can send some content to the other party, and the content will be successfully decrypted if and only if the handshake succeeds.

[0084] The pairing operation in this example depends on s in this case. A and B From the same cyclic group G 1 In other cases, A and B May come from different cyclic groups G 1 and G 2 , G 1 and G 2 As two Abelian groups are related to each other, its value in the other Abelian group is:

[0085] e:G 1 ×G 2 →G T

[0086] Among them G 1 , G 2 , and G T is a cyclic group with the same order.

[0087] There are some common parameters in the generation of credentials, which can be generated by any node in the process and shared with other nodes. Assume that E is in domain F q For an elliptic curve containing n points on the elliptic curve, where q is a power of a prime number that is relatively prime to 2 and 3, the public parameters may include the following:

[0088] params=(p,G 1 ,G 2 ,G T ,g 1 ,g 2 ,e,H 1 ,H 2 )

[0089] Among them, g 1 (resp.g 2 ) is a group G of prime order p with a bilinear map e(.,.) 1 (resp.G 2 ) is a generator of G. 1 is E(F q ) where r and q are relatively prime. Also, e(g 1 ,g 2 ) Generate G T , G T The order of H is also p. 1 and H 2 Respectively relative to G 1 and G 2 As described above, in some embodiments, and in many examples described herein, it may be possible to use only G 1 , which means that for the secret point s A and B Use the same hash function H that maps to points 1 .

[0090] In some elliptic curve cryptography systems, hashing algorithms are used to map passwords or other strings (which are elements of a finite field) to points on a given elliptic curve. These are hashes that map to points. More precisely, the hash function H that maps to a point 1 is a transformation that takes a message m as input and returns a point P∈E(K). More specifically, H 1 Returns the point P∈E(K)[r], where E(K)[r] is the sum of G 1The subgroup of E(K) generated by . In this scheme, there is a subgroup from the base domain A one-to-one mapping f to a curve. This allows hashing using f(H(m)), where H is a classical hash function and H(m)∈F q .

[0091] Reference Figure 5 , Figure 5 1 shows the message flow when two nodes A and B establish a trusted communication channel by verifying each other's credentials. In this example implementation, node A sends its identifier id A Provided to Node B. Identifier id A is publicly available and can in some cases be obtained by Node B from another source. Accordingly, Node B is able to use the identifier of Node A, the secret point s held by Node B, and the B , and mapped to the point hash function H 1 (Mapped to the point hash function H 1 The session key K is generated by the node group that issues the certificate. B . Session K B is generated using the pairing operation e(), which is also specified by the node group:

[0092] K B =e(s B ,H 1 (Alice||role||expirationtime))

[0093] In this example, the identifier of node B is B is (Alice||role||expirationtime).

[0094] Node B sends its identifier id B Provided to node A, node A can then use node B’s identifier, its secret point s A , and the following same pairing operation and mapping to point function, similarly generate the session key K A :

[0095] K A =e(H 1 (Bob||role||expirationtime),s A )

[0096] If the secret point is generated by a legitimate collaboration of the group of nodes using the same group secret key k and the respective identifiers of nodes A and B, then the pairing operation should yield K A =K BThis can be a test performed in any number of ways. In this example implementation, node A sends a session key K A Node B sends the encrypted challenge. Node B attempts to use its session key K B Decrypt the challenge and send a response to the challenge. The response can be determined by the session key K B Encryption. On this basis, both nodes can be guaranteed to have the same session key. The session key can be used to encrypt communications between the two nodes. In another embodiment, the session key can be used to encrypt communications that lead to the establishment of another key. In yet another embodiment, the communication between the two nodes relies solely on the above process to verify / authenticate each other's credentials, and the communication between the two nodes is either unencrypted or encrypted using the nodes' usual public-private key pair.

[0097] Figure 6 The signal diagram of FIG. 1 shows another example implementation. In this example, node A first generates an arbitrary random number nonce A Node A sets its identifier id A and its random number is sent to node B. Node B generates its own random number nonce B Then, in this example, node B generates the value C 0 , which is a hash of the result of the pairing operation and other data (including the random number). In this example, the value C 0 It can be given by the following formula:

[0098] C 0 =H(e(s B ,H 1 (id A ))||id A ||id B ||nonce A ||nonce B )

[0099] Where H is a collision-resistant hash function from string to string. In one example, H is SHA-256.

[0100] Node B then replies to Node A, providing Node A with its identifier id B , its random number nonce B and the value C 0 Node A then performs a similar calculation to obtain the value C 1 , in this example, the value is represented by:

[0101] C 1 =H(e(H 1 (id B ),s A )||idA ||id B ||nonce A ||nonce B )

[0102] It can be noted that C 1 and C 0 The only difference in the arguments in the expression for is the pairing operation. Therefore, if the bilinear pairing operation confirms that the credentials of node A and node B were obtained from the same node group, then the two values ​​should match. Node A can verify that they match, and if so, it will pass C 1 , which also verifies that they match. 0 =C 1 is used as a session key to encrypt communications between node A and node B. In some embodiments, the nodes rely only on their usual public-private key pair to encrypt communications, and the operations described above are used for authentication rather than for establishing session keys.

[0103] In some example embodiments, are concatenated and hashed to form the value C 0 and C 1 The data or string may include other data or strings, or may not include some of the above example strings. For example, in one embodiment, the value C 0 and C 1 The identifier id may not be included A and id B Nonetheless, it is understood that hashing and random numbers help protect communications from man-in-the-middle attacks.

[0104] Reference Figure 7 , Figure 7 A simplified example of a blockchain node 1000 is shown 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 that has network connectivity and sufficient processing and storage resources to perform the functions described herein. The blockchain node 1000 may include processor executable instructions to implement the functions described herein. In some cases, the processor executable instructions may be referred to as a blockchain application 1020, but it should be understood that, depending on the hardware and operation, the instructions may be implemented in one or more modules, applications, scripts, or other programming structures. The processor 1002 may include a multi-core processor and / or multiple processors.

[0105] It should be understood that the devices and processes described herein and any modules, routines, processes, threads, applications, or other software components that implement the described methods / processes for configuring a video feature extractor can be implemented using standard computer programming techniques and languages. The application is not limited to a particular processor, computer language, computer programming convention, data structure, or other such implementation details.

[0106] It should be noted that the above embodiments illustrate rather than limit the present invention, and those skilled in the art will be able to design many alternative embodiments without departing from the scope of the present invention as defined by the appended claims. In the claims, any reference numerals in brackets shall not be interpreted as limiting the claims. The words "comprising" and "comprises" and the like do not exclude the presence of other elements and steps as a whole, even though these elements and steps are not listed in any claim or specification. In this specification, "comprises" means "includes or consists of...", and "comprises" means "including or consists of...". The singular reference of an element does not mean to exclude the plural reference of these elements, and vice versa. The present invention can be implemented by means of hardware comprising several different elements, and by means of a suitably programmed computer. In a device claim enumerating several ways, several of these ways can be embodied by the same component of hardware. The fact that certain measures are enumerated in mutually different dependent claims does not indicate that the combination of these measures cannot be used advantageously.

Claims

1. 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 equal to a group secret key multiplied by a mapping to a point hash of the second node identifier, the group secret key being associated with a node group for granting credentials, the method comprising: obtaining a first secret point from the group of nodes, wherein the first secret point is equal to a mapping-to-point hash of the group private key multiplied by 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 mapping of the second node identifier to a point hash and the first secret point; and Confirming that the first session key matches a second session key generated by the second node using the bilinear pairing operation with a mapping-to-point hash of the second secret point and the first node identifier.

2. The method according to claim 1, wherein: Generating the first session key by the bilinear pairing operation comprises one of the following expressions: K A =e(H1(id B ),s A ),or K A =e(s B ,H1(id A )), wherein generating the second session key by the bilinear pairing operation comprises another of the expressions, and wherein e() is the bilinear pairing operation, H1() is the mapping to point hash, id A and id B are respectively one of the first node identifier and the second node identifier, s A and B One of the first secret point and the second secret point respectively.

3. The method according to claim 1 or claim 2, wherein: Each node in the node group has a corresponding private key share of the group private key, and wherein obtaining the first secret point includes obtaining respective parts of the first secret point from each of multiple nodes in the node group, wherein the respective parts of the first secret point are generated by the respective nodes from the first node identifier and the corresponding private key share, and combining the respective parts to form the first secret point without reconstructing the group private key.

4. The method according to claim 1, wherein: The confirming 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 validly decrypted the challenge using the second session key.

5. The method according to claim 1, wherein: The sending further comprises sending a first random number, and wherein the receiving further comprises receiving a second random number and a calculated C0 value, wherein the C0 value comprises a concatenated hash of the second session key, the first random number, and the second random number.

6. The method according to claim 5, wherein: The cascade also includes the first node identifier and the second node identifier.

7. The method according to claim 5 or claim 6, wherein: The generating comprises generating a calculated C1 value comprising a hash of a concatenation of the first session key, the first random number, and the second random number, and wherein the confirming comprises confirming that the calculated C0 value matches the calculated C1 value.

8. The method according to claim 1, wherein: The first secret point and the second secret point are each provided to the first node and the second node, respectively, by the node group using secret sharing.

9. The first node includes: processor; Memory; Network interface; and a blockchain application comprising processor-executable instructions for establishing trusted communication with a second node, the second node having a second node identifier and a second secret point, the second secret point being equal to a group private key multiplied by a mapping-to-point hash of the second node identifier, the group private key being associated with a node group for granting credentials, wherein when the processor-executable instructions are executed, the processor-executable instructions cause the first node to: obtaining a first secret point from the group of nodes, wherein the first secret point is equal to a mapped-to-point hash of the group private key multiplied by 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 mapping of the second node identifier to a point hash and the first secret point; and Confirm that the first session key matches a second session key generated by the second node using a bilinear pairing operation with a mapping to a point hash of the second secret point and the first node identifier.

10. The first node according to claim 9, wherein: Generating the first session key by the bilinear pairing operation includes one of the following expressions: K A =e(H1(id B ),s A ),or K A =e(s B ,H1(id A )), wherein generating the second session key by the bilinear pairing operation comprises another of the expressions, and wherein e() is the bilinear pairing operation, H1() is a mapping to a point hash, id A and id B are respectively one of the first node identifier and the second node identifier, s A and B One of the first secret point and the second secret point respectively.

11. The first node according to claim 9 or claim 10, wherein: Each node in the node group has a corresponding private key share of the group private key, and wherein, when the processor executable instructions are executed, the processor executable instructions cause the first node to obtain the first secret point in a manner such that: the first secret point is obtained by obtaining a portion of the first secret point from each of a plurality of nodes in the node group, wherein the portion of the first secret point is generated by the corresponding node from the first node identifier and the corresponding private key share, and the portions are combined to form the first secret point without reconstructing the group private key.

12. The first node according to claim 9, wherein: When the processor-executable instructions are executed, the processor-executable instructions cause the first node to perform confirmation by 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 effectively decrypted the challenge using the second session key.

13. The first node according to claim 9, wherein: When the processor-executable instructions are executed, the processor-executable instructions cause the first node to send by further sending a first random number, and the processor-executable instructions cause the first node to receive by further receiving a second random number and a calculated C0 value, wherein the C0 value includes a hash of a concatenation of the second session key, the first random number, and the second random number.

14. The first node according to claim 13, wherein: The cascade also includes the first node identifier and the second node identifier.

15. The first node according to claim 13 or claim 14, wherein: When the processor-executable instructions are executed, the processor-executable instructions cause the first node to generate by generating a calculated C1 value, wherein the C1 value includes a hash of a cascade of the first session key, the first random number, and the second random number, and the processor-executable instructions cause the first node to confirm by confirming that the calculated C0 value matches the calculated C1 value.

16. The first node according to claim 9, wherein: The first secret point and the second secret point are each provided to the first node and the second node, respectively, by the node group using secret sharing.

17. A non-volatile processor-readable medium storing processor-executable instructions, wherein when the processor-executable instructions are executed by one or more processors, the one or more processors are caused to perform the operations in the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • A method and apparatus for anonymous and trustworthy authentication in pervasive social networking

    CN105308897A

  • Non-Interactive Hierarchical Identity-Based Key-Agreement

    US20090225986A1