Cross-chain identity authentication method, device and system based on national secret, and storage medium
Through the cross-chain identity authentication method based on Guoxin, social authentication and smart contracts are used to generate temporary keys, solving the complexity and security of identity authentication in cross-chain transactions, achieving more efficient and reliable cross-chain identity authentication, ensuring that The timeliness and security of transactions.
Patent Information
- Application Number
- CN202411172023.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-12
AI Technical Summary
Identity authentication in cross-chain transactions is complex and unsafe, which leads to difficulty in key management, cumbersome authentication process and timeliness, threatening the security of users and systems.
The cross-chain identity authentication method based on Guoxin is adopted to generate temporary keys through social authentication requests, and the identity is verified using smart contracts and SM3 hash algorithms to ensure the secure transmission and activation of the keys, and simplify the cross-chain operation process.
It improves the security and timeliness of cross-chain transactions, reduces the complexity of user operations, ensures the reliability and uniqueness of identity authentication, and reduces the risk of key management.
Smart Images

Figure CN118944951A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of network security technology, and in particular to a cross-chain identity authentication method and device, system, and storage medium based on national encryption. Background Art
[0002] In the current context of the rapid development of blockchain technology, blockchain technology is developing rapidly, many blockchain networks have emerged, and the demand for cross-chain data circulation has become increasingly significant. Cross-chain identity authentication faces a series of prominent problems, which pose severe challenges to ensuring the legitimacy, credibility and timeliness of cross-chain transactions.
[0003] Since cross-chain transactions involve multiple alliance chain networks, in order to ensure their legitimacy and credibility, it is usually necessary to use a trusted third-party cross-chain system for identity authentication. However, managing multiple different cross-chain keys at the same time becomes a complex and difficult task, which can easily lead to risks such as key loss and confusion, and directly threaten the security of users and systems. At the same time, different cross-chain systems use unique identity authentication processes, which leads to errors and inconsistencies in the authentication process, increasing the complexity of user operations and the possibility of errors.
[0004] Cross-chain transactions are inherently real-time, and in order to ensure cross-chain security, current identity authentication often uses cumbersome means in the early stages, such as permission application, offline authentication, etc. This cumbersome process may affect the timeliness of cross-chain transactions, especially when cross-chain data exchange needs to be completed quickly. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a cross-chain identity authentication method and device, system, and storage medium based on national encryption to solve the complexity and security problems of identity authentication in current cross-chain transactions.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] A cross-chain identity authentication method based on national encryption, including:
[0008] Step S1: The cross-chain initiator who has lost the key initiates a social authentication request to the cross-chain system;
[0009] Step S2: The cross-chain service center starts verifying Alice’s identity and generates a temporary key, which Bob decrypts and passes to Alice.
[0010] Step S3: The cross-chain initiator initiates a transaction in its own alliance chain and passes the verification code. After the verification is successful, a temporary cross-chain access key is issued.
[0011] Preferably, in step S2, after the cross-chain authentication service center receives the social authentication request submitted by user Bob on behalf of user Alice, the cross-chain authentication procedure is started, and the cross-chain temporary key generation algorithm is then executed through the smart contract to verify Alice's identity and generate a temporary key; the identity verification of Alice includes checking the past authorization records of Alice's account to confirm whether she has ever obtained a social authentication request on the Blockchain. j The legal authorization to perform operations on the cross-chain authentication service center; if inconsistencies are found in this preliminary verification stage, the cross-chain authentication service center will reject the access request; when Alice's identity and request are confirmed, a temporary key will be generated.
[0012] Preferably, in step S3, after user Alice successfully decrypts and obtains the temporary access key, the original plaintext password will be one-way encrypted using the SM3 hash algorithm to obtain a hash value h, and the cross-chain temporary key verification algorithm will be called to submit key information to complete the verification of temporary access, wherein the key information includes the key hash value, user account information, and a unique identifier for this authentication; after the smart contract receives the key information submitted by Alice, the hash value h will be extracted and compared with the corresponding password hash value stored in the database of the cross-chain authentication service center; if the comparison results are consistent, it indicates that Alice's identity and authorization information are verified, and the cross-chain authentication service center will immediately log Alice's account User A Set to effective state and activate the temporary cross-chain access key; the successful verification state indicates that Alice's temporary key is officially effective, allowing cross-chain migration and exchange of data within the authorized time range; if the hash value h does not match the record of the service center, the smart contract will return an error message indicating that the verification failed, and Alice's temporary cross-chain access request will be rejected.
[0013] The present invention also provides a cross-chain identity authentication device based on national encryption, comprising:
[0014] The first processing module is used to enable the cross-chain initiator who has lost the key to initiate a social authentication request to the cross-chain system;
[0015] The second processing module is used to enable the cross-chain service center to start verifying Alice's identity and generate a temporary key, which Bob decrypts and passes to Alice;
[0016] The third processing module is used to enable the cross-chain initiator to initiate a transaction in its own alliance chain to pass the verification code, and issue a temporary cross-chain access key after the verification is successful.
[0017] The present invention also provides a cross-chain identity authentication system based on national encryption, comprising: a memory and a processor, wherein the memory stores a computer program run by the processor, and the computer program executes a cross-chain identity authentication method based on national encryption when run by the processor.
[0018] The present invention also provides a storage medium, on which a computer program is stored, and the computer program executes a cross-chain identity authentication method based on national encryption when running.
[0019] When the initiator loses the key during the cross-chain operation, temporary access is completed with the help of social friends through social authentication requests; the authentication process includes identity authentication under the cross-chain system framework: key generation, key transfer, and key activation steps; for the case where the initiator has multiple alliance chain accounts, a third-party cross-chain system is introduced to ensure the smooth progress of cross-chain operations; after the cross-chain temporary login key, the encrypted key is securely delivered to the initiator through telephone, video, etc., and finally the identity is verified and the temporary cross-chain access key is activated in the alliance chain by calling the smart contract. The technical solution of the present invention is adopted to solve the complexity and security problems of identity authentication in current cross-chain transactions; under the background of the rapid development of blockchain technology, the demand for cross-chain transactions is increasing, but cross-chain identity authentication faces many challenges, such as difficult key management and complex authentication processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0021] Figure 1 This is a flow chart of a cross-chain identity authentication method based on national encryption according to an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of a system model of an embodiment of the present invention;
[0023] Figure 3 This is a schematic diagram of the cross-chain identity authentication principle of an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0026] Embodiment 1:
[0027] The embodiment of the present invention provides a cross-chain identity authentication method based on national encryption, which is a convenient, efficient, safe and reliable social authentication mechanism based on national encryption; it overcomes the complex and cumbersome problems of the traditional cross-chain identity authentication process, and is committed to ensuring the security and reliability of identity authentication. The national encryption algorithm is adopted to combine cross-chain identity authentication with highly secure domestic cryptography, providing users with a more reliable identity authentication method. The guarantee role of social friends in cross-chain operations is cleverly designed, and an additional security guarantee mechanism is introduced.
[0028] First, the definitions of some letters and formulas involved in the embodiments of the present invention are explained:
[0029] PK X ,SK X : The public key and private key generated by the SM2 algorithm of user number X.
[0030] User X : Account information of user numbered X in the alliance chain.
[0031] Blockchain i :A consortium chain that can be accessed across chains is managed by a cross-chain authentication service center.
[0032] AID: social identity authentication identifier initiated by the user.
[0033] h←SM3_Hash(m): Hash the data using the SM3 algorithm.
[0034] c←EncSM2(m,PK X ): Use the SM2 algorithm to encrypt the relevant data with the user public key numbered X.
[0035] m←DecSM2(c,SK X ): Use the SM2 algorithm to decrypt the relevant data with the user private key numbered X.
[0036] like Figure 2 As shown, the embodiment of the present invention includes the following key roles and components:
[0037] User: Users are the terminal participants of the system. They conduct transactions and data exchange through the cross-chain identity authentication system. Users need to register in the system and obtain corresponding identity authentication before they can perform cross-chain operations.
[0038] Cross-chain Certification Service Center
[0039] (Cross-Chain Authentication Service Center, CCAS): CCAS is the core of the system, responsible for processing all authentication requests and cross-chain transaction authorization. It is jointly maintained by multiple organizations to ensure decentralization and resistance to single point failure.
[0040] Smart Contract: Smart contracts are deployed on the blockchain and automatically handle the logic of identity authentication and temporary key generation. It responds to user authentication requests, performs necessary security checks, and issues temporary keys.
[0041] Alliance chain network (Blockchain Network,Blockchain i ): The network consists of multiple alliance chains, each of which runs on a different blockchain platform. Each chain in the network is independent of other chains, but can communicate across chains through CCAS.
[0042] Social Authentication Node (SAN): When a user's private key is lost, SAN provides temporary identity authentication services through the social authentication mechanism. SAN itself is an ordinary user in the system and acts as a social authentication node when performing social authentication. Users can request assistance from trusted friends in their social network to generate temporary keys through smart contracts.
[0043] like Figure 1 , 3 As shown, the embodiment of the present invention provides a cross-chain identity authentication method based on national encryption, which specifically includes the following steps:
[0044] Step 1: During the key generation phase, the cross-chain initiator who has lost the key initiates a social authentication request to the cross-chain system, seeking temporary access with the help of his or her social friends.
[0045] When user Alice is preparing to perform a cross-chain transaction, she accidentally discovers that she has forgotten or cannot use the cross-chain key she holds. She will use the social authentication mechanism to restore her access rights in the target consortium chain through the following steps:
[0046] Alice can use the social authentication mechanism to jAlice and Bob can verify their identities through face-to-face confirmation via video calls or offline meetings. After confirming their identities, Alice sends a cross-chain identity authentication request to Bob and provides key authentication information, including her public key (pk A ), the identification information of the related alliance chain and her i Cross-chain account details in User A ). Bob then uses this information and calls Blockchain j The smart contract on , thereby starting the cross-chain authentication process.
[0047]
[0048] Step 2: Key transfer phase: The cross-chain service center starts to verify Alice's identity and generates a temporary key, which Bob decrypts and passes to Alice.
[0049] After the cross-chain authentication service center receives the social authentication request submitted by user Bob on behalf of user Alice, the cross-chain authentication procedure is initiated, and the cross-chain temporary key generation algorithm is then executed through the smart contract to verify Alice's identity and generate a temporary key. The identity verification of Alice includes checking the past authorization records of Alice's account to confirm whether she has ever obtained a j If an inconsistency is found during this initial verification phase, the cross-chain authentication service center will reject the access request, thereby preventing potential security risks. Once Alice's identity and request are confirmed, it will generate a temporary key that will be designed to be valid only for a limited time to reduce security risks and limit potential abuse.
[0050] The temporary key is securely transmitted to Bob, the middleman, in encrypted form through a smart contract. After receiving the ciphertext, Bob uses his private key SK B Decryption obtains the intermediate ciphertext C1 = SM2Dec (C2, SK_B) and forwards the intermediate ciphertext C1 to Alice via secure email or text message. Alice then uses her private key SK A Decrypt to obtain the original temporary cross-chain key password = SM2Dec (C1, SK A ). Alice can complete the required cross-chain data exchange task within the specified time through the temporary cross-chain key password.
[0051] Step 3: The cross-chain initiator initiates a transaction in its own alliance chain and passes the verification code. After the system verifies successfully, a temporary cross-chain access key is issued.
[0052]
[0053] After user Alice successfully decrypts and obtains the temporary access key, she needs to take further actions in the consortium chain network to activate the key. To this end, Alice will use the SM3 hash algorithm to unidirectionally encrypt the original plaintext password to obtain the hash value h, and call the cross-chain temporary key verification algorithm to submit key information to complete the temporary access verification process, which includes the key hash value (h), user account information, and the unique identifier (AID) for this authentication.
[0054] After receiving the information submitted by Alice, the smart contract will automatically execute the predetermined processing logic. The contract will extract the hash value h and compare it with the corresponding password hash value stored in the cross-chain authentication service center database. If the comparison results are consistent, it means that Alice's identity and authorization information have been verified, and the cross-chain authentication service center will immediately register Alice's account User A Set to the effective state, thereby activating the temporary cross-chain access key.
[0055] This successful verification status indicates that Alice's temporary key is officially effective, allowing her to migrate and exchange data across chains within the authorized time frame. On the contrary, if the hash value h does not match the record of the service center, the smart contract will return an error message indicating that the verification failed. At this time, Alice's temporary cross-chain access request will be rejected to ensure that the security and information confidentiality of the alliance chain network are not affected.
[0056] This method improves the system's autonomy and security by introducing encryption methods based on national secrets; adopts a temporary social identity authentication method to ensure the timeliness and security of cross-chain transactions; and uses identifiers to ensure the uniqueness and traceability of authentication. This innovative cross-chain identity authentication method provides a feasible solution for achieving more secure, efficient, and scalable cross-chain identity authentication.
[0057] Embodiment 2:
[0058] The embodiment of the present invention also provides a cross-chain identity authentication device based on national encryption, including:
[0059] The first processing module is used to enable the cross-chain initiator who has lost the key to initiate a social authentication request to the cross-chain system;
[0060] The second processing module is used to enable the cross-chain service center to start verifying Alice's identity and generate a temporary key, which Bob decrypts and passes to Alice;
[0061] The third processing module is used to enable the cross-chain initiator to initiate a transaction in its own alliance chain to pass the verification code, and issue a temporary cross-chain access key after the verification is successful.
[0062] Embodiment 3:
[0063] An embodiment of the present invention also provides a cross-chain identity authentication system based on national encryption, including: a memory and a processor, wherein the memory stores a computer program run by the processor, and when the computer program is run by the processor, it executes a cross-chain identity authentication method based on national encryption.
[0064] Embodiment 4:
[0065] An embodiment of the present invention also provides a storage medium, on which a computer program is stored, and the computer program executes a cross-chain identity authentication method based on national encryption when running.
[0066] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A cross-chain identity authentication method based on national encryption, characterized in that: include: Step S1: The cross-chain initiator who has lost the key initiates a social authentication request to the cross-chain system; Step S2: The cross-chain service center starts verifying Alice’s identity and generates a temporary key, which Bob decrypts and passes to Alice. Step S3: The cross-chain initiator initiates a transaction in its own alliance chain and passes the verification code. After the verification is successful, a temporary cross-chain access key is issued.
2. The cross-chain identity authentication method based on national secrets as claimed in claim 1 is characterized in that: In step S2, after the cross-chain authentication service center receives the social authentication request submitted by user Bob on behalf of user Alice, the cross-chain authentication procedure is started, and the cross-chain temporary key generation algorithm is then executed through the smart contract to verify Alice's identity and generate a temporary key; the identity verification of Alice includes checking the past authorization records of Alice's account to confirm whether she has ever obtained a valid authorization record on the Blockchain. j Legal authorization to operate on the If inconsistencies are found during this initial verification phase, the cross-chain authentication service center will reject the access request; when Alice's identity and request are confirmed, a temporary key will be generated.
3. The cross-chain identity authentication method based on national secrets as claimed in claim 2 is characterized in that: In step S3, after user Alice successfully decrypts and obtains the temporary access key, the original plaintext password will be one-way encrypted using the SM3 hash algorithm to obtain the hash value h, and the cross-chain temporary key verification algorithm will be called to submit key information to complete the verification of temporary access. The key information includes the key hash value, user account information, and the unique identifier of this authentication. After the smart contract receives the key information submitted by Alice, it will extract the hash value h and compare it with the corresponding password hash value stored in the database of the cross-chain authentication service center. If the comparison results are consistent, it indicates that Alice's identity and authorization information have been verified, and the cross-chain authentication service center will immediately log Alice's account User A Set to effective state and activate the temporary cross-chain access key; the successful verification state indicates that Alice's temporary key is officially effective, allowing cross-chain migration and exchange of data within the authorized time range; if the hash value h does not match the record of the service center, the smart contract will return an error message indicating that the verification failed, and Alice's temporary cross-chain access request will be rejected.
4. A cross-chain identity authentication device based on national encryption, characterized in that: include: The first processing module is used to enable the cross-chain initiator who has lost the key to initiate a social authentication request to the cross-chain system; The second processing module is used to enable the cross-chain service center to start verifying Alice's identity and generate a temporary key, which Bob decrypts and passes to Alice; The third processing module is used to enable the cross-chain initiator to initiate a transaction in its own alliance chain to pass the verification code, and issue a temporary cross-chain access key after the verification is successful.
5. A cross-chain identity authentication system based on national encryption, characterized in that: include: A memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the cross-chain identity authentication method based on national encryption as described in any one of claims 1 to 3 is executed.
6. A storage medium, characterized in that: The storage medium stores a computer program, which, when running, executes the cross-chain identity authentication method based on national encryption as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Block chain cross-chain transaction-based notary fault-tolerant mechanism processing method and system
CN115730350A
Block chain cross-chain system and method based on distributed identity
CN117614640A
