Medical user cross-chain identity authentication method based on block chain signature
By using relay chain technology and blockchain signature methods, decentralized identity identifiers are generated, which solves the problems of centralization and single point of failure in cross-chain identity authentication, realizes trusted identity authentication and unified management of cross-chain medical users, and ensures the security and consistency of cross-chain transactions.
Patent Information
- Application Number
- CN202511735912.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-25
- Publication Date
- 2026-02-17
AI Technical Summary
Existing cross-chain identity authentication methods in medical scenarios suffer from high centralization and a high risk of single point of failure, making it difficult to meet the needs of decentralized identity authentication, and the credibility of information in cross-chain transactions is difficult to verify.
By employing relay chain technology, decentralized identity identifiers are generated through the selection of large prime numbers, multiplicative cyclic groups, and bilinear mappings. Combined with collision-resistant hash functions and smart contracts, cross-chain medical user identity registration and authentication are achieved. Timestamps are used to prevent replay attacks, ensuring the credibility and consistency of identities.
It achieves highly decentralized cross-chain identity authentication, avoids the risk of single point of failure, ensures the security and credibility of cross-chain transactions, solves the problem of isolated cross-chain identity authentication, and realizes unified identity management among heterogeneous consortium chains.
Smart Images

Figure CN121547253A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of network information security technology, specifically involving blockchain cryptography, identity signature methods, and cross-chain protocols. Background Technology
[0002] Centralized identity authentication mechanisms struggle to meet the authentication needs of decentralized healthcare scenarios. The lack of a unified identity management mechanism across blockchains makes it difficult for individual blockchain nodes to verify the credibility of information during cross-chain transactions, causing numerous inconveniences for cross-chain resource sharing. Most current cross-chain identity authentication methods rely on traditional public key infrastructure, which is insufficient to meet the diverse identity authentication requirements of different access chains in multi-blockchain scenarios. Furthermore, current single-blockchain-based identity authentication methods are not fully compatible with cross-chain networks. Given these limitations, designing a cross-chain identity authentication method for healthcare users based on blockchain signatures is particularly important.
[0003] The relay chain is responsible for storing core information for inter-blockchain access and verification, facilitating cross-chain message passing between two parallel blockchains. Each parallel chain establishes a stable connection with the relay chain through pre-defined smart contracts and communication protocols. Information for cross-chain transactions is first submitted to verification nodes on the relay chain for review. Once approved, the relay chain forwards the valid information to the target parallel chain, ensuring smooth interoperability between blockchains. The relay mechanism's advantages in scalability and security make it a promising tool for widespread applications. Existing cross-chain identity authentication methods suffer from high centralization and are prone to single points of failure. Designing a blockchain signature-based cross-chain identity authentication method for medical users is a pressing technical challenge that needs to be addressed in the application of relay chains to smart healthcare. Summary of the Invention
[0004] The technical problem to be solved by this invention is to overcome the shortcomings of the prior art and provide a secure, reliable, highly decentralized cross-chain identity for medical users based on blockchain signatures, free from single-point-of-failure security risks.
[0005] Authentication method.
[0006] The technical solution adopted to solve the above technical problems consists of the following steps:
[0007] (1) System initialization
[0008] (1-1) The relay chain smart contract selects a large prime number. At the same time, select those with Two multiplicative cyclic groups of order , and a bilinear mapping , yes One of the generators.
[0009] (1-2) Relay chain smart contracts select collision-resistant hash functions , :
[0010] ,
[0011] ,
[0012] ;
[0013] in, It represents a finite field.
[0014] (1-3) The relay chain smart contract selects legitimate registered nodes to form an authentication group:
[0015] ;
[0016] in, Indicates the first A node that needs to be registered. The value can be a finite number of positive integers.
[0017] (1-4) Global parameters of the relay chain smart contract public system :
[0018] .
[0019] (2) Cross-chain medical user identity registration
[0020] (2-1) Nodes on the medical user application chain exist Random selection -1 order polynomial :
[0021] .
[0022] in, Denotes the coefficients of the polynomial. The value can be a finite number of positive integers.
[0023] (2-2) node Determine the broadcast intermediate value :
[0024] ,
[0025] in, , Denotes the coefficients of the polynomial. The value can be a finite number of positive integers.
[0026] (2-3) nodes Calculate function value :
[0027] ,
[0028] Output For other nodes on the medical user application chain ,in, Indicates the first A node that needs to be registered. , The value can be a finite number of positive integers.
[0029] (2-4) If the following equations hold true:
[0030] ,
[0031] node Calculate its private key :
[0032]
[0033] ;
[0034] (2-5) Relay chain smart contract calculates master control private key and system public key :
[0035] ,
[0036] .
[0037] (2-6) Global parameters of the relay chain smart contract update system :
[0038] .
[0039] (3) Generate the registration node key
[0040] (3-1) node Generate a partial private key :
[0041] ,
[0042] in, Represents a node private key, Represents a node Decentralized identity identifiers.
[0043] (3-2) node Output part of the private key and timestamp Application chain A is provided to medical users.
[0044] (3-3) The timestamp of medical user application chain A is The following inequalities hold:
[0045] ,
[0046] Timestamp Effective, among which, This indicates the time interval between successful transactions on the blockchain.
[0047] (3-4) If the following equations hold true:
[0048] ,
[0049] in, Represents a node The public key is used by the medical user application chain A to calculate their own private key.
[0050] .
[0051] (4) Cross-chain identity authentication
[0052] (4-1) The medical user application chain A has a decentralized identity identifier. nodes Random selection , And calculate the hash value :
[0053] ,
[0054] Output hash value and timestamp Initiate an identity authentication application for medical user application chain B.
[0055] (4-2) The following inequalities hold:
[0056] ,
[0057] Timestamp Valid, medical user application chain B selects random numbers. , Output random numbers and timestamp Decentralized identity identifiers are provided to medical users on application chain A. nodes .
[0058] (4-3) The following inequalities hold:
[0059] ,
[0060] Timestamp Effective; the medical user application chain A possesses a decentralized identity identifier. nodes Calculate hash value and median value :
[0061] ,
[0062] ,
[0063] Output timestamp and the signature of the following formula Application chain B for medical users:
[0064] ,
[0065] (4-4) The medical user application chain B authentication node verifies the following formula:
[0066] ,
[0067] ,
[0068] If both conditions are met, cross-chain identity authentication is successful; otherwise, identity authentication fails and the connection is broken.
[0069] In step (1) of the present invention, during system initialization (1-3), the relay chain selects legitimate registered nodes to form an authentication group as follows:
[0070]
[0071] in, Indicates the first The number of registered nodes, .
[0072] Step (2) of the present invention: Cross-chain medical user identity registration (2-1) Nodes on the medical user application chain exist Random selection -1 order polynomial for:
[0073] ;
[0074] in, Denotes the coefficients of the polynomial. .
[0075] Step (2) of the present invention: Cross-chain medical user identity registration (2-2) node Determine the broadcast intermediate value :
[0076] ,
[0077] in, , Denotes the coefficients of the polynomial. .
[0078] This invention uses decentralized identity identifiers as global identifiers for cross-chain medical users throughout the cross-chain network, solving the problem of identity silos between chains during cross-chain processing and achieving unified identity management among heterogeneous consortium chains. Simultaneously, this invention uses relay chain technology to solve the problem of interconnection between heterogeneous blockchains, and uses identity signature technology to achieve trusted identity authentication services for medical users accessing cross-chains. This invention features a high degree of decentralization and eliminates single-point-of-failure security risks, making it applicable in the field of network information security technology. Attached Figure Description
[0079] Figure 1 This is a flowchart of Embodiment 1 of the present invention. Detailed Implementation
[0080] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments, but the present invention is not limited to the following embodiments.
[0081] Example 1
[0082] exist Figure 1 In this embodiment, the cross-chain identity authentication method for medical users based on blockchain signatures consists of the following steps:
[0083] (1) System initialization
[0084] (1-1) The relay chain smart contract selects a large prime number. Large prime numbers in this embodiment Select Alternatively, you can choose Other large prime numbers can also be selected, along with those that have Two multiplicative cyclic groups of order , and a bilinear mapping , yes One of the generators.
[0085] (1-2) Relay chain smart contracts select collision-resistant hash functions , :
[0086] ,
[0087] ,
[0088] ;
[0089] in, It represents a finite field.
[0090] (1-3) The relay chain smart contract selects legitimate registered nodes to form an authentication group:
[0091] .
[0092] in, Indicates the first A node that needs to be registered. The value can be a finite number of positive integers. This embodiment The value is 500.
[0093] (1-4) Global parameters of the relay chain smart contract public system :
[0094] .
[0095] (2) Cross-chain medical user identity registration
[0096] (2-1) Nodes on the medical user application chain exist Random selection -1 order polynomial :
[0097] .
[0098] in, Denotes the coefficients of the polynomial. Values hour, , Values , .
[0099] (2-2) node Determine the broadcast intermediate value :
[0100] ,
[0101] in, , Denotes the coefficients of the polynomial. Values , , Values , .
[0102] (2-3) nodes Calculate function value :
[0103] ,
[0104] Output For other nodes on the medical user application chain ,in, Indicates the first A node that needs to be registered. , This embodiment The value is 500.
[0105] (2-4) If the following equations hold true:
[0106] ,
[0107] node Calculate its private key .
[0108] ,
[0109] .
[0110] (2-5) Relay chain smart contract calculates master control private key and system public key :
[0111] ,
[0112] .
[0113] (2-6) Global parameters of the relay chain smart contract update system :
[0114] .
[0115] This invention uses decentralized identity identifiers as global identifiers for cross-chain medical users across the entire cross-chain network, solving the problem of identity silos between chains during cross-chain processing and achieving unified identity management among heterogeneous consortium chains. It employs relay chain technology to solve the problem of interconnectivity between heterogeneous blockchains and uses identity signature technology to provide trusted identity authentication services for medical users accessing cross-chain networks.
[0116] (3) Generate the registration node key
[0117] (3-1) node Generate a partial private key :
[0118] ,
[0119] in, Represents a node private key, Represents a node Decentralized identity identifiers.
[0120] (3-2) node Output part of the private key and timestamp Application chain A is provided to medical users.
[0121] (3-3) The timestamp of medical user application chain A is The following inequalities hold:
[0122] ,
[0123] Timestamp Effective, among which, This indicates the time interval between successful transactions on the blockchain.
[0124] (3-4) If the following equations hold true:
[0125] ,
[0126] in, Represents a node The public key is used by the medical user application chain A to calculate their own private key. :
[0127] .
[0128] (4) Cross-chain identity authentication
[0129] (4-1) The medical user application chain A has a decentralized identity identifier. nodes Random selection , And calculate the hash value .
[0130] ,
[0131] Output hash value and timestamp Initiate an identity authentication application for medical user application chain B.
[0132] (4-2) The following inequalities hold:
[0133] ,
[0134] Timestamp Valid, medical user application chain B selects random numbers. , Output random numbers and timestamp Decentralized identity identifiers are provided to medical users on application chain A. nodes .
[0135] (4-3) The following inequalities hold:
[0136] ,
[0137] Timestamp Effective; the medical user application chain A possesses a decentralized identity identifier. nodes Calculate hash value and median value :
[0138] ,
[0139] ,
[0140] Output timestamp and the signature of the following formula Application chain B for medical users:
[0141] ,
[0142] (4-4) The medical user application chain B authentication node verifies the following formula:
[0143] ,
[0144] ,
[0145] If both conditions are met, cross-chain identity authentication is successful; otherwise, identity authentication fails and the connection is broken.
[0146] Because this invention employs a cross-chain system, the application chain submits its blockchain identifier, blockchain type, contract method, signature, timestamp, and other information to the relay chain via a cross-chain gateway to initiate an identity registration application. The relay chain, after consensus verification, generates a decentralized identifier for the application chain, enabling nodes in the registration process to generate partial private keys for the user to complete identity registration. In cross-chain identity authentication, application chain nodes prove their identity authenticity to the relay chain authentication nodes, using decentralized identifiers to ensure the correctness and consistency of the identity and protect the privacy information of cross-chain medical users. Timestamps prevent replay attacks.
[0147] Complete a cross-chain identity authentication method for medical users based on blockchain signatures.
[0148] Example 2
[0149] The cross-chain identity authentication method for medical users based on blockchain signatures in this embodiment consists of the following steps:
[0150] (1) System initialization
[0151] (1-1) The relay chain smart contract selects a large prime number. The specific large prime number selected Similar to Example 1, while selecting those with Two multiplicative cyclic groups of order , and a bilinear mapping , yes One of the generators.
[0152] (1-2) Relay chain smart contracts select collision-resistant hash functions , :
[0153] The steps are the same as in Example 1.
[0154] (1-3) The relay chain smart contract selects legitimate registered nodes to form an authentication group:
[0155] .
[0156] in, Indicates the first A node that needs to be registered. The value can be a finite number of positive integers. This embodiment The value is 10.
[0157] The other steps in this procedure are the same as in Example 1.
[0158] (2) Cross-chain medical user identity registration
[0159] (2-1) Nodes on the medical user application chain exist Random selection -1 order polynomial :
[0160] .
[0161] in, Denotes the coefficients of the polynomial. Values hour, , Values hour, .
[0162] (2-2) node Determine the broadcast intermediate value :
[0163] ,
[0164] in, , Denotes the coefficients of the polynomial. Values hour, , Values hour, .
[0165] (2-3) nodes Calculate function value :
[0166] ,
[0167] Output For other nodes on the medical user application chain ,in, Indicates the first A node that needs to be registered. , This embodiment The value is 10.
[0168] The other steps in this procedure are the same as in Example 1.
[0169] The other steps are the same as in Example 1. This completes the cross-chain identity authentication method for medical users based on blockchain signatures.
[0170] Example 3
[0171] The cross-chain identity authentication method for medical users based on blockchain signatures in this embodiment consists of the following steps:
[0172] (1) System initialization
[0173] (1-1) The relay chain smart contract selects a large prime number. The specific large prime number selected Similar to Example 1, while selecting those with Two multiplicative cyclic groups of order , and a bilinear mapping , yes One of the generators.
[0174] (1-2) Relay chain smart contracts select collision-resistant hash functions , :
[0175] The steps are the same as in Example 1.
[0176] (1-3) The relay chain smart contract selects legitimate registered nodes to form an authentication group:
[0177] .
[0178] in, Indicates the first A node that needs to be registered. The value can be a finite number of positive integers. This embodiment The value is 1000.
[0179] The other steps in this procedure are the same as in Example 1.
[0180] (2) Cross-chain medical user identity registration
[0181] (2-1) Nodes on the medical user application chain exist Random selection -1 order polynomial :
[0182] .
[0183] in, Denotes the coefficients of the polynomial. Values hour, , Values hour, .
[0184] (2-2) node Determine the broadcast intermediate value :
[0185] ,
[0186] in, , Denotes the coefficients of the polynomial. Values hour, , Values hour, .
[0187] (2-3) nodes Calculate function value :
[0188] ,
[0189] Output For other nodes on the medical user application chain ,in, Indicates the first A node that needs to be registered. , This embodiment The value is 1000.
[0190] The other steps in this procedure are the same as in Example 1.
[0191] The other steps are the same as in Example 1. This completes the cross-chain identity authentication method for medical users based on blockchain signatures.
Claims
1.A blockchain signature-based medical user cross-chain identity authentication method, characterized in that Composed of the following steps: (1) System initialization (1-1) The relay chain smart contract selects a large prime number , simultaneously selects two multiplicative cyclic groups of order , and a bilinear map , , is a generator of The anti-collision hash function selected by the relay chain smart contract in (1-2) , : , , ; wherein denotes a finite field; (1-3) Relay chain smart contract selects a legal registration node group to form an authentication group: ; wherein, represents the node that needs to be registered, takes a finite positive integer value; Global parameters of the relay chain smart contract public system in (1-4) : ; (2) Cross-chain medical user identity registration (2-1) Nodes on the medical user application chain In randomly selected -1st degree polynomial : ; wherein denote coefficients of a polynomial, is a finite positive integer; (2-2) Node Determining a broadcast intermediate value : , wherein , denotes the coefficients of the polynomial, takes the value of a finite positive integer; (2-3) Node Computing function values : , Output to other nodes on the chain of medical user applications wherein, denotes the node that needs to be registered, , is a finite positive integer; (2-4) If the following equation holds: , Node Computes its private key : , ; (2-5) Relay chain smart contract computes master private key and system public key : , ; (2-6) Global parameter update system of relay chain smart contract : ; (3) Generate a registration node key (3-1) Node Generating partial private key : , wherein, represents a private key of the node , represents a decentralized identifier of the node ; (3-2) Node Output partial private key And time stamp To medical user application chain A; (3-3) The timestamp of the medical user application chain A is , the following inequality holds: , timestamp valid, wherein, represents a time interval in which a transaction on the blockchain is successful; (3-4) If the following equation holds: , wherein, represents a public key of the node , the medical user application chain A calculates its own private key : ; (4) Cross-chain identity authentication (4-1) A node on the medical user application chain A that has a decentralized identifier Randomly selected , and calculated hash value : , Output hash value And timestamp To the medical user application chain B, initiate identity authentication application; (4-2) The following inequality holds: , Timestamp Valid, medical user application chain B selects random number , , output random number And timestamp To the node With a decentralized identifier on the medical user application chain A ; (4-3) The following inequality holds: , Timestamp Valid, medical user application chain A has a decentralized identifier of the node Calculate hash value and intermediate value : , , Output timestamp and a signature of the form To medical user application chain B: , (4-4) The medical user application chain B authentication node verifies the following equation: , , If both are true, the cross-chain identity authentication passes; otherwise, the identity authentication fails and is disconnected. 2.The blockchain signature-based medical user cross-chain identity authentication method of claim 1, wherein: The (1-3) relay chain selects a legal registration node group to form an authentication group in the step (1) system initialization: ; wherein, represents the number of registered nodes, . 3.The blockchain signature-based medical user cross-chain identity authentication method according to claim 1 or 2, characterized in that: The (1-3) relay chain selects a legal registration node group to form an authentication group in the step (1) system initialization: ; in, Indicates the first The number of registered nodes, where n is 500. 4.The blockchain signature based medical user cross-chain identity authentication method of claim 1, wherein: The step (2) comprises the following steps (2-1) and (2-2): (2-1) registering a node on a medical user application chain of the cross-chain medical user identity; and (2-2) registering a node on a medical user application chain of the cross-chain medical user identity. In Randomly selecting -1 polynomial is: ; wherein denotes the coefficients of the polynomial, . 5.The blockchain signature based medical user cross-chain identity authentication method of claim 1, wherein: The step (2) includes a node (2-2) of cross-chain medical user identity registration Determining a broadcast intermediate value For: , wherein , denotes the coefficients of the polynomial, .