Cross-domain security review method and device based on multi-chain architecture

By using grid cipher and hash time locking technologies in a multi-chain architecture, the security risks and insufficient performance problems of cross-domain review technology are solved, and efficient and secure cross-domain asset exchange is achieved to adapt to the quantum computing environment.

CN116170158BActive Publication Date: 2024-11-12BEIJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310171592.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-11-12
Estimated Expiration
2043-02-15

AI Technical Summary

Technical Problem

The existing cross-domain review technology has security risks and insufficient performance, especially after the emergence of quantum computers, the security of traditional cryptography is threatened, resulting in a reduction in the reliability of cross-domain interactions.

Method used

Using a cross-domain security review method based on multi-chain architecture, we use the grid cryptography algorithm to generate private keys and session keys, and use hash time locking technology to cross-border Chain asset exchange ensures security and efficiency.

Benefits of technology

It realizes cross-domain interaction with high security in the quantum computing environment, ensures the security and efficiency of the asset exchange process between different blockchains, avoids third-party participation, and simplifies response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170158B_ABST
    Figure CN116170158B_ABST
Patent Text Reader

Abstract

The present invention provides a cross-domain security review method and device based on a multi-chain architecture, including: deploying smart contracts for each domain blockchain and creating required functions, setting public parameters; each domain private key generation center generates private keys for the authentication server and blockchain node of the domain; each domain blockchain node interacts with the authentication server of the domain, generates an identity index and adds it to the identity list; the blockchain node of the domain sends a cross-domain request message to the external domain authentication server, and the external domain authentication server requests the authentication server of the domain to assist in reviewing the identity of the corresponding node and negotiate a session key; after the review is completed, the blockchain node of the domain and the blockchain node of the external domain perform cross-chain asset exchange between domains based on a preset hash time locking technology. The present invention realizes cross-domain security review based on a multi-chain architecture based on lattice cryptography technology, so that the cross-domain security review has higher post-quantum security and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of identity review technology, and in particular to a cross-domain security review method and device based on a multi-chain architecture. Background Art

[0002] With the continuous acceleration of the process of informatization, the amount of data in the network is growing exponentially. How to supervise and share data safely and efficiently has become an urgent problem to be solved. Blockchain technology provides a good solution to this problem due to its decentralized, tamper-proof and traceable characteristics. In equipment development management, the introduction of blockchain technology enables managers, users and scientific research institutions of equipment development to jointly participate in the management and maintenance of equipment development data, improving security and credibility. Since different participants may maintain multiple blockchains, the exchange of assets and value data of different blockchains in multi-chain scenarios becomes very necessary.

[0003] Cross-chain is an important technology to achieve interconnection between different blockchains. In actual scenarios, blockchains involved in asset exchange may be located in different trust domains. Nodes in external domains can only access entities in the domain after passing the identity review of the authentication server in this domain. This results in the inability of blockchain nodes in different domains to interact directly. The existing cross-domain review schemes are mainly divided into cross-domain schemes based on symmetric cryptography, cross-domain schemes based on public key infrastructure, and cross-domain schemes based on identity cryptography. The reliability of existing cross-domain review schemes mainly depends on the security of cryptographic algorithms. However, with the emergence of quantum computers, Shor's algorithm can solve the problem of large integer decomposition and discrete logarithm difficulty in polynomial time, which greatly threatens the security of traditional cryptography, and thus the security of cross-domain review schemes no longer exists. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a cross-domain security review method and device based on a multi-chain architecture to eliminate or improve one or more defects existing in the prior art and solve the problems of security risks and insufficient performance of the existing cross-domain review technology.

[0005] On the one hand, the present invention provides a cross-domain security review method based on a multi-chain architecture, characterized in that the method is used to realize entity interaction between a local domain and an external domain; the local domain includes a local domain authentication server, a local domain private key generation center and a local domain blockchain; the external domain includes an external domain authentication server, an external domain private key generation center and an external domain blockchain; the method includes the following steps:

[0006] Create smart contracts and their required functions for the local blockchain and the foreign blockchain, and set public parameters;

[0007] The local domain private key generation center uses the first lattice cryptographic algorithm to generate the local domain authentication server private key and the local domain blockchain node private key for the local domain authentication server and the local domain blockchain node respectively; the external domain private key generation center uses the first lattice cryptographic algorithm to generate the external domain authentication server private key and the external domain blockchain node private key for the external domain authentication server and the external domain blockchain node respectively;

[0008] The local domain blockchain node sends a registration request to the local domain authentication server, and the local domain authentication server calculates the identity index of the local domain blockchain node, stores the identity information of the local domain blockchain node and its identity index in the local domain identity list, and returns a registration success message; the foreign domain blockchain node sends a registration request to the foreign domain authentication server, and the foreign domain authentication server calculates the identity index of the foreign domain blockchain node, stores the identity information of the foreign domain blockchain node and its identity index in the foreign domain identity list, and returns a registration success message;

[0009] The local domain blockchain node sends a cross-domain request message to the external domain authentication server; the cross-domain request message includes the local domain blockchain node identity information, the first vector, the second vector, the external domain blockchain node identity information, cross-chain asset exchange information, a secure hash algorithm, and a request time; the first vector and the second vector are used to calculate an identity index; the external domain authentication server generates assistance request information, and uses a second lattice cryptographic algorithm to generate a first digital signature for the assistance request information, and sends the assistance request information with the first digital signature to the local domain authentication server; the assistance request information includes the local domain blockchain node identity information, the first vector, the second vector, the external domain blockchain node identity information, the request time, and the assistance request time; the local domain authentication server uses a preset signature verification algorithm to review the external domain authentication server, and generates a first digital signature for the assistance request information based on the first vector and the second vector. The two-vector restores the identity index of the local domain blockchain node for review; if the review is passed, the local domain authentication server calculates the session key and generates the assistance review information, and uses the second lattice cryptographic algorithm to generate the second digital signature of the assistance review information, and sends the assistance review information with the second digital signature to the foreign domain authentication server; the assistance review information includes the local domain blockchain node identity information, the foreign domain blockchain node identity information, the assistance request time, the session key and the assistance review time; the foreign domain authentication server verifies the second digital signature using the preset signature verification algorithm, and if the verification is passed, stores the local domain blockchain node identity information in the foreign domain identity list, sends the session key and the cross-domain request information to the foreign domain blockchain node, and encrypts the review success information with the session key and sends it to the local domain blockchain node;

[0010] The local domain blockchain node and the foreign domain blockchain node use the session key for encryption and decryption, and adopt a preset hash time locking technology for cross-chain asset exchange.

[0011] In some embodiments, creating smart contracts and their required functions for the local blockchain and the foreign blockchain, and setting public parameters, further includes:

[0012] The TrapGen algorithm in the lattice cryptography is used to generate a parameter matrix and a system master key, and the parameter matrix and multiple hash functions required in the cross-domain are packaged to generate the public parameters; the system master key is stored by the private key generation center of each domain.

[0013] In some embodiments, after the local domain private key generation center uses the first lattice cryptographic algorithm to generate the local domain authentication server private key and the local domain blockchain node private key for the local domain authentication server and the local domain blockchain node respectively, it also includes:

[0014] The local domain private key generation center sends the local domain authentication server private key to the local domain authentication server, and sends the local domain blockchain node private key to the local domain blockchain node to verify the correctness of the private key; wherein the first lattice cryptographic algorithm is the SampleMat algorithm in the lattice cryptography.

[0015] In some embodiments, the local domain blockchain node sends the cross-domain request information to the foreign domain authentication server, further comprising:

[0016] The local blockchain node randomly selects a random vector from an integer group, randomly selects a noise vector from a noise distribution, and calculates the first vector and the second vector based on the random vector and the noise vector. The calculation formula is:

[0017] R0=A T s+x;

[0018]

[0019] Wherein, R0 represents the first vector; A represents the parameter matrix; s represents the random vector; x represents the noise vector; R1 represents the second vector; H2 represents a hash function in the public parameters; Represents the identity information of the authentication server in this domain; Represents the identity index of the blockchain node in the local domain; (·) T represents transpose; q is a prime number.

[0020] In some embodiments, the external domain authentication server generates assistance request information, and uses a second lattice cryptographic algorithm to generate a first digital signature of the assistance request information, further comprising:

[0021] The external domain authentication server receives the cross-domain request information, and if the request time meets a preset condition, selects the current time as the assistance request time, and generates the assistance request information;

[0022] The external domain authentication server randomly selects a vector from a discrete Gaussian distribution, calculates an external domain hash value and an external domain signature intermediate value, and uses the second lattice cryptographic algorithm to calculate a digital signature probability value to obtain the first digital signature; the second lattice cryptographic algorithm is a lattice basis rejection sampling theorem, and the calculation formula for the first digital signature probability value is:

[0023]

[0024] Among them, min(·) means finding the minimum value; represents a discrete Gaussian distribution; represents the intermediate value of the external domain signature; M is a constant; Represents the private key of the external domain authentication server; Represents the external domain hash value.

[0025] In some embodiments, the local domain authentication server uses a preset signature verification algorithm to review the external domain authentication server, further comprising:

[0026] The local domain authentication server receives the assistance request information, and if the assistance request time meets the preset conditions, executes the preset signature verification algorithm, and if the equation in the preset signature verification algorithm is satisfied at the same time, the signature verification is passed, and the preset signature verification algorithm equation is:

[0027]

[0028]

[0029] in, represents the external domain hash value; H1 and H2 represent the hash functions in the public parameters; A represents the parameter matrix; represents the external domain signature intermediate value; Represents the identity information of the external domain authentication server; represents the assistance request information; σ and m are preset parameters.

[0030] In some embodiments, restoring the identity index of the local domain blockchain node for review according to the first vector and the second vector further includes:

[0031] extracting the first vector and the second vector from the assistance request information, calculating a third vector according to the first vector and the second vector, and comparing an absolute value of each component of the third vector after subtracting a first preset value with a second preset value to restore a corresponding identity index;

[0032] The local domain authentication server uses the obtained identity index to traverse the elements in the local domain identity list for review;

[0033] The calculation formula of the third vector is:

[0034]

[0035] Wherein, R2 represents the third vector; R1 represents the second vector; represents the private key of the authentication server in this domain; R0 represents the first vector; (·) T Indicates transpose.

[0036] In some embodiments, the local domain blockchain node and the foreign domain blockchain node use the session key to encrypt and decrypt, and use a preset hash time locking technology to perform cross-chain asset exchange, further comprising:

[0037] The local blockchain node generates a random number and calculates its cross-chain hash value, encrypts it with the session key and sends it to the foreign blockchain node; the foreign blockchain node decrypts it with the session key to obtain the cross-chain hash value;

[0038] The local domain blockchain node selects a first time, and uses the cross-chain hash value and the first time to lock the local domain asset to be exchanged; the foreign domain blockchain node selects a second time, and uses the cross-chain hash value and the second time to lock the foreign domain asset to be exchanged; the second time is less than the first time;

[0039] The local domain blockchain node calls the smart contract interface of the foreign domain blockchain and uses the random number to unlock the foreign domain asset; the foreign domain blockchain node obtains the random number from the foreign domain blockchain and calls the smart contract interface of the local domain blockchain to unlock the local domain asset and realize cross-chain asset exchange.

[0040] In some embodiments, if the local domain blockchain node and the foreign domain blockchain node fail to unlock each other's assets within the specified time, the cross-chain asset exchange fails, and the smart contract returns the assets to the corresponding nodes.

[0041] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods mentioned above.

[0042] The beneficial effects of the present invention are at least:

[0043] The present invention provides a cross-domain security review method and device based on a multi-chain architecture, by deploying smart contracts for each domain blockchain and creating required functions, setting public parameters; each domain private key generation center generates private keys for the authentication server and blockchain node of the domain; each domain blockchain node interacts with the authentication server of the domain, generates an identity index and adds it to the identity list; the blockchain node of this domain sends a cross-domain request message to the external domain authentication server, and the external domain authentication server requests the authentication server of this domain to assist in reviewing the identity of the corresponding node and negotiate a session key; after the review is completed, the blockchain node of this domain and the blockchain node of the external domain perform cross-chain asset exchange between domains. The present invention realizes cross-domain security review based on a multi-chain architecture based on lattice cryptography technology, so that the cross-domain security review has higher post-quantum security and efficiency.

[0044] Furthermore, after the review is completed, the blockchain nodes in this domain and the blockchain nodes in the foreign domain will conduct cross-chain asset exchanges between domains based on the improved hash time locking technology. The improved hash time locking technology is simple to implement and has a fast response speed. It can realize asset exchanges between different blockchains without the participation of a third party.

[0045] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.

[0046] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:

[0048] Figure 1 This is a schematic diagram of the steps of a cross-domain security review method based on a multi-chain architecture in one embodiment of the present invention.

[0049] Figure 2 This is a structural flow chart of a cross-domain security review method based on a multi-chain architecture in one embodiment of the present invention.

[0050] Figure 3 This is a schematic diagram of the process of cross-chain asset exchange between the local domain blockchain node and the foreign domain blockchain node in one embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0052] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0053] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0054] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.

[0055] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0056] It should be emphasized here that the step marks mentioned below are not intended to limit the order of the steps, but it should be understood that the steps can be executed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be executed simultaneously.

[0057] In order to solve the problems of security risks and insufficient performance of existing cross-domain review technologies, the present invention provides a cross-domain security review method based on a multi-chain architecture, which is used to realize entity interaction between the local domain and the external domain, wherein the local domain includes a local domain authentication server, a local domain private key generation center and a local domain blockchain, and the external domain includes an external domain authentication server, an external domain private key generation center and an external domain blockchain. Figure 1 As shown, the method includes the following steps S101 to S105:

[0058] Step S101: Create smart contracts and their required functions for the local blockchain and the external blockchain, and set public parameters.

[0059] Step S102: The local private key generation center adopts the first-grid cryptographic algorithm to generate the local authentication server private key and the local blockchain node private key for the local authentication server and the local blockchain node respectively; the foreign domain private key generation center adopts the first-grid cryptographic algorithm to generate the foreign domain authentication server private key and the foreign domain blockchain node private key respectively.

[0060] Step S103: The local domain blockchain node sends a registration request to the local domain authentication server. The local domain authentication server calculates the identity index of the local domain blockchain node, stores the local domain blockchain node identity information and its identity index into the local domain identity list, and returns a successful registration message. The foreign domain blockchain node sends a registration request to the foreign domain authentication server. The foreign domain authentication server calculates the identity index of the foreign domain blockchain node, stores the foreign domain blockchain node identity information and its identity index into the foreign domain identity list, and returns a successful registration message.

[0061] Step S104: The blockchain node in this domain sends a cross-domain request message to the external domain authentication server; wherein the cross-domain request message includes the identity information of the blockchain node in this domain, the first vector, the second vector, the identity information of the external domain blockchain node, the cross-chain asset exchange information, the secure hash algorithm and the request time; the first vector and the second vector are used to calculate the identity index; the external domain authentication server generates assistance request information, and uses the second lattice cryptographic algorithm to generate a first digital signature of the assistance request information, and sends the assistance request information with the first digital signature to the local domain authentication server; wherein the assistance request information includes the identity information of the blockchain node in this domain, the first vector, the second vector, the identity information of the external domain blockchain node, the request time, and the assistance request time; the local domain authentication server uses a preset signature verification algorithm to review the external domain authentication server, and according to the first The vector and the second vector restore the identity index of the blockchain node in this domain for review; if the review is passed, the authentication server in this domain calculates the session key and generates the assistance review information, and uses the second grid cryptographic algorithm to generate the second digital signature of the assistance review information, and sends the assistance review information with the second digital signature to the external domain authentication server; wherein, the assistance review information includes the identity information of the blockchain node in this domain, the identity information of the external domain blockchain node, the assistance request time, the session key and the assistance review time; the external domain authentication server verifies the second digital signature using a preset signature verification algorithm, and if the verification is passed, stores the identity information of the blockchain node in this domain in the external domain identity list, sends the session key and the cross-domain request information to the external domain blockchain node, and encrypts the review success information with the session key and sends it to the blockchain node in this domain.

[0062] Step S105: The local domain blockchain node and the external domain blockchain node use the session key for encryption and decryption, and use the preset hash time locking technology for cross-chain asset exchange.

[0063] For example, Figure 2As shown, the local domain is domain A and the external domain is domain B. In the local domain, the local domain authentication server is recorded as AS1, the local domain private key generation center is recorded as PKG1, the local domain blockchain is blockchain A, and the local domain blockchain node is recorded as AN1; in the external domain, the external domain authentication server is recorded as AS2, the external domain private key generation center is recorded as PKG2, the external domain blockchain is blockchain B, and the external domain blockchain node is recorded as BN1.

[0064] Among them, the authentication server is responsible for the identity registration and identity review of the blockchain nodes in this domain, and maintains the identity list of this domain. The authentication server itself has identity information and is open to each domain. It can obtain the private key from the private key generation center of this domain. When the blockchain node in the external domain makes an access request, the authentication server in this domain will send an assistance review request to the authentication server in the external domain. When the authentication server in this domain receives the assistance review request from the external domain, it will review the identity information of the blockchain node in this domain and return the review result to the authentication server in the external domain.

[0065] The private key generation center is responsible for generating the private key of the domain authentication server and the private key of the domain blockchain node. After receiving the identity information of the domain authentication server or the domain blockchain node, the private key corresponding to the identity information is calculated and returned.

[0066] Blockchain is a decentralized network composed of many nodes. In the present invention, the blockchain node itself has identity information, can obtain private keys from the private key generation center of the local domain, interact with the local domain authentication server to complete identity registration, make a cross-domain access request to the external domain authentication server, and after the identity review is successful, perform cross-chain asset exchange with the external domain blockchain node. Smart contracts can automatically execute functional codes and provide interfaces and functional encapsulation for cross-chain asset exchange.

[0067] In step S101, the system is initialized, which can be divided into two steps: blockchain initialization and parameter initialization. In blockchain initialization, smart contracts are deployed in each domain blockchain, and the functions required by the smart contracts in the cross-chain are created. After the settings are completed, the smart contract can automatically execute the created functions without human intervention. In parameter initialization, first set the parameters m and n, where m>5nlogq, q is a prime number, and q≥3. The TrapGen algorithm in the lattice cryptography is used to generate the parameter matrix and lattice basis, and the lattice basis is used as the system master key and saved by the private key generation center of each domain. Exemplarily, the parameter matrix is ​​denoted as A, and the lattice basis, that is, the system master key, is denoted as msk. Four hash functions are selected, and the parameter matrix and the four hash functions are packaged to generate public parameters. Exemplarily, the four hash functions are H1, H2, H3 and H4, where, Then the public parameters can be recorded as pp = {A, H1, H2, H3, H4}.

[0068] In step S102, private keys are generated for authentication servers and blockchain nodes in each domain. In the generation of authentication server private keys, taking this domain as an example, the authentication server of this domain generates its own identity information, which is made public to authentication servers of all domains and sent to the private key generation center of this domain. The private key generation center of this domain uses the SampleMat algorithm in the lattice cipher to generate the private key of the authentication server of this domain, and returns the generated private key to the authentication server of this domain to verify the correctness of the private key. Exemplarily, the identity information of the authentication server of this domain is recorded as The private key of the domain authentication server is recorded as The private key of the domain authentication server must satisfy both formula (1) and formula (2):

[0069]

[0070]

[0071] Where A represents the parameter matrix; Indicates the private key of the domain authentication server; H2 indicates the hash function; represents the identity information of the authentication server in this domain; ρ is a constant; and m is the parameter set in step S101.

[0072] After receiving the private key, the domain authentication server can verify whether the equation is established according to formula (1).

[0073] Similarly, the external domain authentication server can also interact with the external domain private key generation center to generate a private key according to the above steps.

[0074] In the generation of blockchain node private keys, taking this domain as an example, the blockchain node of this domain generates its own identity information and sends it to the private key generation center of this domain. The private key generation center of this domain uses the SampleMat algorithm in the lattice cipher to generate the private key of the blockchain node of this domain, and returns the generated private key to the blockchain node of this domain to verify the correctness of the private key. For example, the identity information of the blockchain node of this domain is recorded as The private key of the blockchain node in this domain is recorded as Among them, consistent with the private key of the domain authentication server, the private key of the domain blockchain node must also satisfy formula (3) and formula (4) at the same time:

[0075]

[0076]

[0077] Where A represents the parameter matrix; Represents the private key of the blockchain node in this domain; H2 represents the hash function; Represents the identity information of the blockchain node in this domain; ρ is a constant; m is the parameter set in step S101.

[0078] After receiving the private key, the blockchain node in this domain can verify whether the equation is true according to formula (3).

[0079] Similarly, the external blockchain node can also interact with the external private key generation center to generate private keys according to the above steps.

[0080] In step S103, the blockchain nodes of each domain interact with the corresponding authentication server, generate an identity index and add it to the identity list. Taking this domain as an example, the authentication server of this domain maintains a domain identity list. When the blockchain node of this domain has a registration requirement, it sends a registration request to the authentication server of this domain. The authentication server of this domain calculates the identity index of the blockchain node of this domain, stores the identity information of the blockchain node of this domain and its identity index in the identity list of this domain, and returns the registration success information. Exemplarily, the identity list of this domain is denoted as L A , the blockchain node identity index of this domain is recorded as Its calculation formula is shown in formula (5):

[0081]

[0082] in, Indicates the identity index of the blockchain node in this domain; H3 indicates the hash function; Indicates the identity information of the blockchain node in this domain; Indicates the private key of the blockchain node in this domain.

[0083] The authentication server of this domain adds the identity information and identity index of the blockchain node of this domain to the identity list of this domain, and obtains

[0084] Similarly, the external domain blockchain node can also interact with the external domain authentication server according to the above steps, and generate an identity index to join the external domain identity list.

[0085] In step S104, the blockchain node in this domain makes a cross-domain request and sends it to the foreign domain authentication server. The foreign domain authentication server requests the authentication server in this domain to assist in reviewing the identity of the blockchain node in this domain and negotiate the session key.

[0086] Specifically, the blockchain node in this domain randomly selects a random vector from the integer group, randomly selects a noise vector from the noise distribution, denotes the random vector as s, denotes the noise vector as x, and calculates the first vector and the second vector based on the random vector and the noise vector. The calculation formulas are shown in formula (6) and formula (7):

[0087] R0=A T s+x; (6)

[0088]

[0089] Wherein, R0 represents the first vector; A represents the parameter matrix; s represents the random vector; x represents the noise vector; R1 represents the second vector; H2 represents a hash function in the public parameters; Indicates the identity information of the authentication server in this domain; Indicates the identity index of the blockchain node in this domain; (·) T represents transpose; q is a prime number.

[0090] The local blockchain node obtains the current time as the request time and sends a cross-domain request message to the external domain authentication server, where the request time is recorded as T1. The cross-domain request message at least includes the local blockchain node identity information, the first vector, the second vector, the external blockchain node identity information, the cross-chain asset exchange information, the secure hash algorithm and the request time. The cross-domain request message can be recorded as

[0091] After receiving the cross-domain request information, the foreign domain authentication server extracts the request time in the cross-domain request information. If the request time is timely, the current time is obtained as the assistance request time, and the assistance request information is generated, where the assistance request time is recorded as T2. The assistance request information at least includes the local blockchain node identity information, the first vector, the second vector, the foreign domain blockchain node identity information, the request time, and the assistance request time. The assistance request information can be recorded as The external domain authentication server randomly selects vectors from the discrete Gaussian distribution, calculates the external domain hash value and the external domain signature intermediate value, and uses the Lattice Rejection Sampling Theorem to calculate the first digital signature probability value to obtain the first digital signature. The calculation formulas for the external domain hash value and the external domain signature intermediate value are shown in formulas (8) and (9) respectively:

[0092]

[0093]

[0094] in, represents the external domain hash value; H1 represents the hash function; A represents the parameter matrix; r represents the vector randomly selected by the external domain authentication server from the discrete Gaussian distribution; Indicates a request for assistance message; Indicates the external domain signature intermediate value; Indicates the private key of the external domain authentication server.

[0095] The calculation formula of the first digital signature probability value is shown in formula (10):

[0096]

[0097] Among them, min(·) means finding the minimum value; represents a discrete Gaussian distribution; Indicates the intermediate value of the external domain signature; M is a constant; Indicates the private key of the external domain authentication server; Indicates the external domain hash value.

[0098] The signature obtained by the probability output of formula (10) is used as the digital signature of the external domain authentication server for the assistance request information. The digital signature can be recorded as The external domain authentication server sends the assistance request information with the attached digital signature to the local domain authentication server, indicating that the local domain authentication server is required to assist in requesting the identity information of the local domain blockchain node.

[0099] After receiving the assistance request information, the local authentication server extracts the assistance request time. If the assistance request time is timely, the signature verification algorithm is executed. During the signature verification process, if both formula (11) and formula (12) are satisfied, it means that the signature verification is successful and the local authentication server successfully verifies the identity of the foreign authentication server:

[0100]

[0101]

[0102] in, represents the external domain hash value; H1 and H2 represent the hash functions in the public parameters; A represents the parameter matrix; Indicates the external domain signature intermediate value; Indicates the identity information of the external domain authentication server; represents assistance request information; σ is a constant; m is a preset parameter.

[0103] After the signature verification is passed, the domain authentication server extracts the first vector and the second vector in the assistance request information and calculates the third vector. The calculation formula of the third vector is shown in formula (13):

[0104]

[0105] Wherein, R2 represents the third vector; R1 represents the second vector; Represents the private key of the authentication server in this domain; R0 represents the first vector; (·) T Indicates transpose.

[0106] Subtract each component of the third vector from The absolute value after For comparison, restore the identity index of the blockchain node in this domain, recorded as The authentication server of this domain traverses the elements in the identity list of this domain. If there is This means that the authentication server of this domain has completed the identity review of the blockchain node of this domain. The authentication server of this domain calculates the session key, selects the current time as the assisted review time, and generates the assisted review information. Among them, the session key is recorded as It is calculated by the hash function H4 according to the identity index of the blockchain node in this domain. The assisted review information includes at least the identity information of the blockchain node in this domain, the identity information of the blockchain node in the external domain, the assistance request time, the session key and the assisted review time. The authentication server in this domain randomly selects vectors from the discrete Gaussian distribution, calculates the hash value of this domain and the intermediate value of the signature in this domain, and calculates the probability value of the second digital signature using the Lattice rejection sampling theorem to obtain the second digital signature. The calculation formulas for the hash value of this domain and the intermediate value of the signature in this domain are shown in formulas (14) and (15), respectively:

[0107]

[0108]

[0109] in, represents the hash value of this domain; H1 represents the hash function; A represents the parameter matrix; r represents the vector randomly selected by the authentication server of this domain from the discrete Gaussian distribution; Offer to assist in reviewing the information; Indicates the intermediate value of the signature of this domain; Indicates the private key of the authentication server in this domain.

[0110] The calculation formula of the second digital signature probability value is shown in formula (16):

[0111]

[0112] Among them, min(·) means finding the minimum value; represents a discrete Gaussian distribution; Indicates the intermediate value of the external domain signature; M is a constant; Indicates the private key of the external domain authentication server; Indicates the external domain hash value.

[0113] The signature obtained by the probability output of formula (16) is used as the digital signature of the domain authentication server for the assistance review information. The digital signature can be recorded as The authentication server of this domain sends the assistance review information with attached digital signature to the authentication server of the external domain through a secure and confidential channel, indicating that the authentication server of this domain has assisted the authentication server of the external domain to complete the identity review of the blockchain node of this domain.

[0114] After receiving the assistance review information, the external domain authentication server extracts the assistance review time. If the assistance review time is timely, the signature verification algorithm is executed. During the signature verification process, if both formula (17) and formula (18) are satisfied at the same time, it means that the signature verification is successful, and the local domain authentication server successfully verifies the identity of the external domain authentication server:

[0115]

[0116]

[0117] in, represents the hash value of this domain; H1 and H2 represent the hash functions in the public parameters; A represents the parameter matrix; Indicates the intermediate value of the signature of this domain; Indicates the identity information of the authentication server in this domain; Represents information for assisting review; σ is a constant; and m is a preset parameter.

[0118] After the signature verification is passed, the foreign domain authentication server adds the identity information of the local domain blockchain node to the foreign domain identity list, indicating that the local domain blockchain node is allowed to access across domains. At the same time, the foreign domain authentication server extracts the session key in the assisting review information and the foreign domain blockchain node identity information, cross-chain asset exchange information and SHA256 in the cross-domain request information, and sends the extracted information to the foreign domain blockchain. The current time is selected as the review success time, and the review success information is generated by encrypting the session key, and the review success information is sent to the local domain blockchain node. Among them, the review success information can be recorded as

[0119] In step S105, after the identity review is completed based on step S104, it means that the cross-domain access request is allowed, and the blockchain node in this domain and the blockchain node in the external domain perform cross-chain asset exchange between domains.

[0120] Specifically, first, cross-chain preparation is performed. After the local blockchain node receives the review success information from the foreign domain authentication server, the session key is calculated to decrypt the review success information. The review success time in the review success information is extracted. If the time is timely, the local blockchain node knows that the identity review has been successful and can perform cross-chain asset exchange with the foreign domain blockchain node. At the same time, in step S104, after the foreign domain blockchain node receives the information extracted from the foreign domain authentication server, it has made preparations for asset exchange.

[0121] After completing the cross-chain preparation, Figure 3 As shown, the local blockchain node generates a random number and calculates its corresponding cross-chain hash value, encrypts the generated cross-chain information using the session key, and sends it to the foreign blockchain node through the cross-domain channel. For example, the random number is denoted as h, the cross-chain hash value is denoted as H, and the cross-domain information is denoted as After receiving the cross-chain information, the foreign blockchain node uses the session key to decrypt and obtain the cross-domain hash value. At the same time, the local blockchain node selects the first moment, uses the cross-chain hash value and the first moment to lock its local assets to be exchanged, and the foreign blockchain node selects the second moment, uses the cross-chain hash value and the second moment to lock its foreign assets to be exchanged, where the first moment is recorded as t1, the second moment is recorded as t2, and the second moment is less than the first moment; the local assets are recorded as a, and the foreign assets are recorded as b. The local blockchain node cross-domain calls the smart contract interface of the foreign blockchain and uses a random number to unlock the foreign assets. The foreign blockchain node obtains the value of the random number from the smart contract of the foreign blockchain, and cross-domain calls the smart contract interface of the local blockchain to unlock the local assets. If both the local blockchain node and the foreign blockchain node unlock each other's assets within the specified time, it means that the cross-chain asset exchange is successful, and the smart contracts of the local blockchain and the foreign blockchain send the local assets to the foreign blockchain node through the cross-domain channel, and send the foreign assets to the local blockchain node.

[0122] In some embodiments, if the local domain blockchain node and the foreign domain blockchain node fail to unlock each other's assets within the specified time, the smart contracts of the local domain blockchain and the foreign domain blockchain will return the assets to the corresponding blockchain nodes in their respective domains.

[0123] The present invention also provides at least one computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the cross-domain security review method based on a multi-chain architecture are implemented.

[0124] Corresponding to the above method, the present invention also provides a device, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the device implements the steps of the method described above.

[0125] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0126] In summary, the present invention provides a cross-domain security review method and device based on a multi-chain architecture, by deploying smart contracts for each domain blockchain and creating required functions, setting public parameters; each domain private key generation center generates private keys for the authentication server and blockchain node of the domain; each domain blockchain node interacts with the authentication server of the domain, generates an identity index and adds it to the identity list; the blockchain node of this domain sends a cross-domain request message to the external domain authentication server, and the external domain authentication server requests the authentication server of this domain to assist in reviewing the identity of the corresponding node and negotiate the session key; after the review is completed, the blockchain node of this domain and the blockchain node of the external domain perform cross-chain asset exchange between domains. The present invention realizes cross-domain security review based on a multi-chain architecture based on lattice cryptography technology, so that the cross-domain security review has higher post-quantum security and efficiency.

[0127] Furthermore, after the review is completed, the blockchain nodes in this domain and the blockchain nodes in the foreign domain will conduct cross-chain asset exchanges between domains based on the improved hash time locking technology. The improved hash time locking technology is simple to implement and has a fast response speed. It can realize asset exchanges between different blockchains without the participation of a third party.

[0128] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0129] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0130] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0131] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A cross-domain security review method based on multi-chain architecture, It is characterized in that The method is used to realize entity interaction between the local domain and the external domain; the local domain includes a local domain authentication server, a local domain private key generation center and a local domain blockchain; the external domain includes an external domain authentication server, an external domain private key generation center and an external domain blockchain; the method includes the following steps: Create smart contracts and their required functions for the local blockchain and the foreign blockchain, and set public parameters; The local domain private key generation center uses the first lattice cryptographic algorithm to generate the local domain authentication server private key and the local domain blockchain node private key for the local domain authentication server and the local domain blockchain node respectively; the external domain private key generation center uses the first lattice cryptographic algorithm to generate the external domain authentication server private key and the external domain blockchain node private key for the external domain authentication server and the external domain blockchain node respectively; The local domain blockchain node sends a registration request to the local domain authentication server, and the local domain authentication server calculates the identity index of the local domain blockchain node, stores the identity information of the local domain blockchain node and its identity index in the local domain identity list, and returns a registration success message; the foreign domain blockchain node sends a registration request to the foreign domain authentication server, and the foreign domain authentication server calculates the identity index of the foreign domain blockchain node, stores the identity information of the foreign domain blockchain node and its identity index in the foreign domain identity list, and returns a registration success message; The local domain blockchain node sends a cross-domain request message to the external domain authentication server; the cross-domain request message includes the local domain blockchain node identity information, the first vector, the second vector, the external domain blockchain node identity information, cross-chain asset exchange information, a secure hash algorithm, and a request time; the first vector and the second vector are used to calculate an identity index; the external domain authentication server generates assistance request information, and uses a second lattice cryptographic algorithm to generate a first digital signature for the assistance request information, and sends the assistance request information with the first digital signature to the local domain authentication server; the assistance request information includes the local domain blockchain node identity information, the first vector, the second vector, the external domain blockchain node identity information, the request time, and the assistance request time; the local domain authentication server uses a preset signature verification algorithm to review the external domain authentication server, and generates a first digital signature for the assistance request information based on the first vector and the second vector. The two-vector restores the identity index of the local domain blockchain node for review; if the review is passed, the local domain authentication server calculates the session key and generates the assistance review information, and uses the second lattice cryptographic algorithm to generate the second digital signature of the assistance review information, and sends the assistance review information with the second digital signature to the foreign domain authentication server; the assistance review information includes the local domain blockchain node identity information, the foreign domain blockchain node identity information, the assistance request time, the session key and the assistance review time; the foreign domain authentication server verifies the second digital signature using the preset signature verification algorithm, and if the verification is passed, stores the local domain blockchain node identity information in the foreign domain identity list, sends the session key and the cross-domain request information to the foreign domain blockchain node, and encrypts the review success information with the session key and sends it to the local domain blockchain node; The local domain blockchain node and the foreign domain blockchain node use the session key for encryption and decryption, and adopt a preset hash time locking technology for cross-chain asset exchange.

2. According to the cross-domain security review method based on multi-chain architecture according to claim 1, It is characterized in that Creating smart contracts and their required functions for the local blockchain and the foreign blockchain, and setting public parameters, also includes: The TrapGen algorithm in the lattice cryptography is used to generate a parameter matrix and a system master key, and the parameter matrix and multiple hash functions required in the cross-domain are packaged to generate the public parameters; the system master key is stored by the private key generation center of each domain.

3. According to the cross-domain security review method based on multi-chain architecture according to claim 1, It is characterized in that After the local domain private key generation center uses the first lattice cryptographic algorithm to generate the local domain authentication server private key and the local domain blockchain node private key for the local domain authentication server and the local domain blockchain node respectively, it also includes: The local domain private key generation center sends the local domain authentication server private key to the local domain authentication server, and sends the local domain blockchain node private key to the local domain blockchain node to verify the correctness of the private key; wherein the first lattice cryptographic algorithm is the SampleMat algorithm in the lattice cryptography.

4. According to the cross-domain security review method based on multi-chain architecture according to claim 1, It is characterized in that The local domain blockchain node sends cross-domain request information to the external domain authentication server, further comprising: The local blockchain node randomly selects a random vector from an integer group, randomly selects a noise vector from a noise distribution, and calculates the first vector and the second vector based on the random vector and the noise vector. The calculation formula is: R 0 =A T s+x; Among them, R 0 represents the first vector; A represents the parameter matrix; s represents the random vector; x represents the noise vector; R 1 represents the second vector; H 2 represents a hash function in the public parameters; Represents the identity information of the authentication server in this domain; Represents the identity index of the blockchain node in the local domain; (·) T represents transpose; q is a prime number.

5. According to the cross-domain security review method based on multi-chain architecture according to claim 1, It is characterized in that The external domain authentication server generates assistance request information, and uses the second grid cryptographic algorithm to generate a first digital signature of the assistance request information, further comprising: The external domain authentication server receives the cross-domain request information, and if the request time meets a preset condition, selects the current time as the assistance request time, and generates the assistance request information; The external domain authentication server randomly selects a vector from a discrete Gaussian distribution, calculates an external domain hash value and an external domain signature intermediate value, and uses the second lattice cryptographic algorithm to calculate a digital signature probability value to obtain the first digital signature; the second lattice cryptographic algorithm is a lattice basis rejection sampling theorem, and the calculation formula for the first digital signature probability value is: Among them, min(·) means finding the minimum value; represents a discrete Gaussian distribution; represents the intermediate value of the external domain signature; M is a constant; Represents the private key of the external domain authentication server; Represents the external domain hash value.

6. According to the cross-domain security review method based on multi-chain architecture according to claim 5, It is characterized in that The local domain authentication server uses a preset signature verification algorithm to examine the external domain authentication server, and further includes: The local domain authentication server receives the assistance request information, and if the assistance request time meets the preset conditions, executes the preset signature verification algorithm, and if the equation in the preset signature verification algorithm is satisfied at the same time, the signature verification is passed, and the preset signature verification algorithm equation is: in, Represents the external domain hash value; H 1 and H 2 represents the hash function in the public parameters; A represents the parameter matrix; represents the external domain signature intermediate value; Represents the identity information of the external domain authentication server; represents the assistance request information; σ and m are preset parameters.

7. According to claim 4, the cross-domain security review method based on multi-chain architecture, It is characterized in that The identity index of the local domain blockchain node is restored according to the first vector and the second vector for review, and further includes: extracting the first vector and the second vector from the assistance request information, calculating a third vector according to the first vector and the second vector, and comparing an absolute value of each component of the third vector after subtracting a first preset value with a second preset value to restore a corresponding identity index; The local domain authentication server uses the obtained identity index to traverse the elements in the local domain identity list for review; The calculation formula of the third vector is: Among them, R 2 represents the third vector; R 1 represents the second vector; Represents the private key of the authentication server in this domain; R 0 represents the first vector; (·) T Indicates transpose.

8. According to claim 1, the cross-domain security review method based on multi-chain architecture, It is characterized in that The local domain blockchain node and the foreign domain blockchain node use the session key to perform encryption and decryption, and use a preset hash time locking technology to perform cross-chain asset exchange, and also include: The local blockchain node generates a random number and calculates its cross-chain hash value, encrypts it with the session key and sends it to the foreign blockchain node; the foreign blockchain node decrypts it with the session key to obtain the cross-chain hash value; The local domain blockchain node selects a first time, and uses the cross-chain hash value and the first time to lock the local domain asset to be exchanged; the foreign domain blockchain node selects a second time, and uses the cross-chain hash value and the second time to lock the foreign domain asset to be exchanged; the second time is less than the first time; The local domain blockchain node calls the smart contract interface of the foreign domain blockchain and uses the random number to unlock the foreign domain asset; the foreign domain blockchain node obtains the random number from the foreign domain blockchain and calls the smart contract interface of the local domain blockchain to unlock the local domain asset and realize cross-chain asset exchange.

9. According to the cross-domain security review method based on multi-chain architecture according to claim 8, It is characterized in that If the local domain blockchain node and the foreign domain blockchain node fail to unlock each other's assets within the specified time, the cross-chain asset exchange fails, and the smart contract returns the assets to the corresponding nodes.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.