Identifier analysis performance improvement method based on block chain
By introducing blockchain-based DID encoding and sub-chain division mechanisms in the industrial Internet identity resolution system, the problems of multiple codes and data islands are solved, and centralized management and efficient analysis of data throughout the life cycle of the same identification object are realized, which significantly improves the Identification resolution performance.
Patent Information
- Application Number
- CN202411415680.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-10-11
AI Technical Summary
There are problems of multiple codes and data islands in the existing industrial Internet identification resolution system, which leads to the same identification object being assigned different encodings at different stages, and the lack of identification and coding collaboration mechanism between upstream and downstream enterprises, making it difficult to achieve the concentration of data throughout the life cycle. Management and efficient analysis.
By introducing a blockchain-based identification parsing performance improvement method, the DID encoding structure and sub-chain division mechanism are adopted to ensure that the identification data of the same object is stored on the same sub-chain, and a unified cross-enterprise encoding mechanism is established to realize one thing and one code. At the same time, through identification metadata management and the use of data templates, the identification data registration and analysis process is standardized to improve the identification resolution performance.
It effectively solves the problems of multiple codes and data islands, realizes centralized management and efficient analysis of data throughout the life cycle of the same identification object, significantly reducing the time-consuming process in the identification resolution process.
Smart Images

Figure CN119416269A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain and industrial Internet technology, and in particular to a method for improving identity resolution performance based on blockchain. Background Art
[0002] Industrial Internet identification registration and resolution must rely on identification resolution software. Identification data is registered to the enterprise node through the identification registration process, and downstream enterprises / users obtain corresponding data from the enterprise node through the recursive resolution process. Usually, there is a one-to-one correspondence between identification resolution enterprise nodes and enterprises, and multiple enterprises generally do not share enterprise nodes (except for multiple enterprises under the same group).
[0003] The traditional identification resolution system generally agrees on the identification coding structure first. When each enterprise registers the identification, it uses random, self-increment and other methods to assign codes to the objects in combination with its own standards. This behavior ensures the uniqueness of the codes within the system. However, due to the lack of a cross-industry chain / supply chain identification coding coordination mechanism, the problem of "one object with multiple codes" is very likely to occur during the circulation of objects between upstream and downstream enterprises. In actual scenarios, the objects of identification (such as industrial products) generate a large amount of data during the production, warehousing, transportation, sales, installation and delivery, operation, maintenance, and scrapping stages. The data at different stages may be collected by different enterprises / organizations and registered on their own enterprise nodes. Objects with the same identification are assigned different codes during the identification registration process. The situation where the data of objects with the same identification at different stages are assigned different codes and stored on different nodes exacerbates the problem of data islands.
[0004] Specifically, during the production, installation, delivery, and operation stages, the same product is assigned different codes at different stages, and there is no direct correlation between the codes. This situation leads to greater data coding mapping difficulties when implementing full life cycle data management for products, and downstream companies / organizations in the industrial chain / supply chain are unable to obtain all upstream codes.
[0005] For example, the existing SparkChain Network proposes to build an identification resolution protocol for industrial Internet and Internet of Things scenarios based on the distributed identifier DID specification and the SparkChain Network layered architecture to achieve one-to-one traceability, such as Figure 1 The specific process is described as follows:
[0006] The BID of a product is did:bid:eivUgqQFfYeu97ABf6sGm3WFtVXHZB2. Its full life cycle data includes product factory information (stored in subchain 1, the corresponding subchain BID code is did:bid:1234:eivUgqQFfYeu97ABf6sGm3WFtVXHZB2), logistics information (stored in subchain 2, the corresponding subchain BID code is did:bid:abcd:eivUgqQFfYeu97ABf6sGm3WFtVXHZB2), and sales information (stored in subchain 3, the corresponding BID code is did:bid:3758:eivUgqQFfYeu97ABf6sGm3WFtVXHZB2). There is a certain correlation between the BID codes of the identification information on the three subchains (except for the different subchain numbers, everything else is exactly the same). When tracing one object with one code, the main chain resolution service is called through the did:bid:eivUgqQFfYeu97ABf6sGm3WFtVXHZB2 code to obtain the resolution service addresses of all sub-chains that store the object identifier, and then the sub-chain BID code is used to call the resolution service of each sub-chain in turn to obtain the full life cycle data of the product object and realize one object with one code traceability.
[0007] The above-mentioned Spark Chain Network BID access solves the problem of product coding consistency during product circulation between upstream and downstream enterprises through distributed digital identity, but its main-subchain layered architecture adopts a sub-chain segmentation method based on industry and region. Objectively, the identification data of the same product is still distributed on different sub-chains. The identification resolution process in its one-to-one traceability scenario requires access to multiple industry / regional sub-chains to obtain the product's full life cycle data. Considering the natural deficiencies of blockchain technology in data access performance, the performance of the Spark Chain Network BID identification in obtaining product full life cycle data cannot support actual industrial application scenarios. Summary of the invention
[0008] The purpose of the present invention is to address the above-mentioned problems in the existing technology and propose a method for improving the identity resolution performance based on blockchain.
[0009] The purpose of the present invention can be achieved by the following technical solutions: A method for improving the performance of identity resolution based on blockchain, characterized in that it includes the following steps:
[0010] A. Logo Registration
[0011] S1. Establishing the object identity:
[0012] According to the DID encoding structure:
[0013] did:rsv: <ac-id> : <method-specific-id>
[0014] Among them, did:rsv is a fixed prefix; <ac-id>Number the subchain, which consists of 4 letters or numbers. For the main chain, <ac-id>Fields can be omitted; <method-specific-id>Encode the suffix for did;
[0015] Object coding is performed to identify the identity of objects between upstream and downstream enterprises with DID; when the object identity is generated, the following calculation formula is used:
[0016] <method-specific-id>=base58(ripemd160(sha256(<target public key>)))
[0017] Distribute public and private key pairs and agree on consistent DID encoding generation rules;
[0018] S2. Build a sub-chain division mechanism:
[0019] by <method-specific-id>For input, introduce <method-specific-id>arrive <ac-id>The calculation function calc produces the sub-chain number, and its calculation formula is as follows:
[0020] <ac-id>=calc( <method-specific-id>)
[0021] Among them, calc is <method-specific-id>arrive <ac-id>The calculation function of
[0022] S3, build identification metadata and data template:
[0023] At least construct identification metadata and data templates from the perspective of attribute name, value type, value range, and number of attributes, and divide each data template into template_id;
[0024] S4. Build access control mechanism based on data template and signature mechanism:
[0025] 1) DID document data structure
[0026] DID identification data follows the w3c DIDDocument specification, and adds a new field extension based on the w3c DIDDocument specification;
[0027] 2) DID-based identification registration process and signature scheme
[0028] (1) The enterprise selects a data template for identifying object data;
[0029] (2) Based on the data template, collect object data and generate identification data;
[0030] (3) Generate a signature for the identification data according to the signature rules;
[0031] (4) After receiving the DID and identification data, the blockchain node calculates the subchain number through the aforementioned subchain division mechanism; when the identification data is stored in the corresponding subchain, it first checks whether the data template is occupied by other enterprises, and uses the unoccupied data template;
[0032] (5) Obtain the issuer of the corresponding template from templates in the extension structure, and obtain the enterprise public key from the blockchain through the issuer did code. Use the public key to verify the signature in the received identification data. If the verification passes, enter the did document update process, otherwise it prompts that the identification registration failed;
[0033] (6) Update the newly received identification data to the extension corresponding part of the product object's did document. For the data template used for the first time, update the mapping relationship between the data template and the issuer under templates at the same time;
[0034] B. Identity resolution
[0035] S1. Build an identity resolution mechanism and develop an identity resolution interface
[0036] 1) Based on the ac_id generation algorithm in the aforementioned sub-chain division mechanism, build a DID-based routing resolution service and develop an identity resolution interface;
[0037] 2) Analysis method
[0038] (1) Accurately locate the subchain where the object identification data is located through DID coding, and obtain the full amount of data of the object throughout its life cycle;
[0039] (2) Filter the returned data by template_id and return the key data required by the user.
[0040] Preferably, in step A, S2, the calc calculation method includes:
[0041] 1) Interception <method-specific-id>part of the <ac-id>; The specific interception method is: build a total of N sub-chains, and the sub-chain numbering structure is ac0 <method-specific-id-slice>,in <method-specific-id-slice>yes <method-specific-id>The first character is a lowercase letter or number;
[0042] 2) <method-specific-id>Through mathematical operations, it is used to generate <ac-id>The specific mathematical operation is: build a total of N sub-chains, and the sub-chain numbering structure is ac0 <method-specific-id-mod>,in <method-specific-id-mod>for <method-specific-id>The result of adding the ASCII codes of all letters modulo N.
[0043] Preferably, in steps A and S3, after the data template is generated, it is uniquely indexed by template_id, there is a one-to-one correspondence between the data template and template_id, and there is a one-to-many relationship between the identified object and the data template; template_id is generated by any of a self-incrementing number and a fixed-length random string.
[0044] 4. The method for improving the performance of identity resolution based on blockchain as claimed in claim 1, characterized in that in steps A, S4, 2), and (3), the signature rules are as follows:
[0045] a. Sort the data to be signed according to the rules:
[0046] The object data to be sorted is converted into UTF-16 byte units according to the attribute key value, and the first byte of the byte unit is simply compared for ascending sorting; if the first bytes are the same, the subsequent bytes are compared until values of different sizes are generated for ascending sorting; if the sub-object is complex structure data, the sub-object needs to be recursively sorted in the same way; if the sub-object is array type data, the array elements must not be changed;
[0047] b. Remove the spaces between JSON symbols and compress the sorted data to form the byte data to be signed;
[0048] c. Use the private key to sign the byte data to be signed;
[0049] d. Perform Base58 encoding on the signature data to generate signature data.
[0050] Preferably, in steps A, S4, 2) and (4), the upstream enterprise is set as the manufacturing enterprise, which identifies the inherent characteristic data of the target product and forms its own characteristic data template; the downstream enterprise is set as the transportation enterprise, which identifies the transportation management data of the target product and forms a transportation management data template; the transportation management data template does not interfere with or modify its own characteristic data template.
[0051] Preferably, in steps B, S1, 2), when the client parses the request data carrying the DID identifier but without the data template id, the identification data of all data templates of the object, that is, the full life cycle data of the object, is returned; when the client parses the request data carrying the data template template_id and the DID identifier, specific identification data is returned.
[0052] Compared with the existing technology, this blockchain-based identification resolution performance improvement method has the following beneficial effects:
[0053] 1. The present invention eliminates the existing mechanism of dividing subchains based on artificial factors such as industry / region, and instead distinguishes subchains based on object DID identifiers, builds cross-enterprise unified coding, and realizes one object one code. Under the premise of one object one code, it ensures that the identification data of the same object is stored on the same subchain, effectively reducing the number of times the blockchain is accessed during the identification resolution process and improving the identification resolution performance.
[0054] 2. The present invention introduces an identification metadata management mechanism during identification registration, builds an identification data template through identification metadata, and realizes the standardization of data during identification registration through the data template.
[0055] In short, this technical solution solves the problems that are common in the existing industrial Internet identification resolution system, such as multiple codes for one object and separate storage of identification data between upstream and downstream enterprises. It ensures the centralized and unified management of data throughout the life cycle of the same identification object, realizes efficient identification resolution, and greatly reduces the time spent on identification resolution in the one-object-one-code traceability scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 This is a flow chart of the existing technology Spark Chain Network to achieve one-to-one traceability.
[0057] Figure 2 This is a schematic diagram of the identification data registration process of the present invention.
[0058] Figure 3 This is the identification resolution process based on did encoding and template template_id of the present invention. DETAILED DESCRIPTION
[0059] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.
[0060] The following technical terms are commonly used in the technical field of Internet identity registration and resolution:
[0061] Blockchain: It is a decentralized distributed ledger that is stored in a block chain, cannot be tampered with, and is secure and reliable.
[0062] Main chain: It is the core of the blockchain network. It is an officially launched, independent blockchain network that carries the main transaction and data processing tasks. It contains the most important transaction records and block data in the blockchain network and is the most important and complete part of the blockchain ecosystem.
[0063] Subchain: It is a blockchain built on the underlying main chain, which can be regarded as a branch or extension of the main chain. The subchain has independent blocks and transaction records, but at the same time maintains a certain connection with the main chain.
[0064] Identification registration and resolution: In the field of industrial Internet, each entity or data object is assigned a unique, unalterable identification code. During identification registration, the identification registration system associates and stores the unique identification code with the attribute data of the object entity; during identification resolution, the attribute data of the object entity is obtained from the identification resolution system through the unique identification code.
[0065] Distributed digital identity: refers to storing the user's identity information on the blockchain and protecting the user's privacy and security through encryption algorithms. Each user has a unique identity that can be used in different applications and networks to achieve cross-platform and cross-application identity authentication and management.
[0066] like Figure 1 As shown, a method for improving identity resolution performance based on blockchain includes the following steps:
[0067] A. Logo Registration
[0068] S1. Establishing the object identity:
[0069] According to the DID encoding structure:
[0070] did:rsv: <ac-id> : <method-specific-id>
[0071] Among them, did:rsv is a fixed prefix; <ac-id>Number the subchain, which consists of 4 letters or numbers. For the main chain, <ac-id>Fields can be omitted; <method-specific-id>Encode the suffix for did;
[0072] Object coding is performed to identify the identity of objects between upstream and downstream enterprises with DID; when the object identity is generated, the following calculation formula is used:
[0073] <method-specific-id>=base58(ripemd160(sha256(<target public key>)))
[0074] Distribute public and private key pairs and agree on consistent DID encoding generation rules; the consistency of DID encoding generation rules ensures the consistency of identity identification during the flow of objects between upstream and downstream enterprises in the industrial chain / supply chain.
[0075] S2. Build a sub-chain division mechanism:
[0076] by <method-specific-id>For input, introduce <method-specific-id>arrive <ac-id>The calculation function calc produces the sub-chain number, and its calculation formula is as follows:
[0077] <ac-id>=calc( <method-specific-id>)
[0078] Among them, calc is <method-specific-id>arrive <ac-id>The calculation function of
[0079] In step A, S2, the calc calculation method includes but is not limited to:
[0080] 1) Interception <method-specific-id>part of the <ac-id>; The specific interception method is: a total of N (36) sub-chains are built, and the sub-chain numbering structure is ac0 <method-specific-id-slice>,in <method-specific-id-slice>yes <method-specific-id>The first character of a lowercase letter or number; further specified as a did <method-specific-id>A string of numbers starting with a (or A). <method-specific-id-slice>The value of is a, <method-specific-id>If it is a part of the data captured above, then the location where the did is stored should be ac0a.
[0081] 2) <method-specific-id>Through mathematical operations, it is used to generate <ac-id>The specific mathematical operation is: build a total of N (10) sub-chains, and the sub-chain numbering structure is ac0 <method-specific-id-mod>,in <method-specific-id-mod>for <method-specific-id>The result of adding the ASCII codes of all letters modulo N(10).
[0082] S3, build identification metadata and data template:
[0083] At least construct identification metadata and data templates from the perspectives of attribute name, value type, value range, and number of attributes, and divide each data template into template_id; uniquely index the data template through template_id to achieve the uniformity of the identification data of the same object. The construction process of the data template is the process of abstracting the description object. The specific abstraction process is existing technology, so it will not be explained in detail here.
[0084] In steps A and S3, after the data template is generated, it is uniquely indexed by template_id. There is a one-to-one correspondence between the data template and template_id, and a one-to-many relationship between the identified object and the data template; template_id is generated by any of a self-incrementing number and a fixed-length random string (such as uuid).
[0085] Taking mobile phones as an example, the attributes of mobile phones in the manufacturing stage generally include brand, product number, model, body size, body memory, running memory, screen size, camera pixels, battery capacity, etc. The data template corresponding to the mobile phone can be described as a set of the above attribute data.
[0086] S4. Build access control mechanism based on data template and signature mechanism:
[0087] 1) DID document data structure
[0088] DID identification data follows the w3c DIDDocument specification. For details on the data structure and its meaning, please refer to https: / / www.w3.org / ns / did / v1. The w3c DIDDocument specification specifies the structure and composition of the document field. The w3c DIDDocument specification is an existing technology, so it will not be expanded in detail. Based on the w3c DIDDocument specification, a new field extension is added to store object identification data, template list and other information, and parse related data; the field extension is a common technical means in this field, so it will not be expanded in detail.
[0089] like Figure 2 As shown in the figure, 2) DID-based identification registration process and signature scheme
[0090] (1) The enterprise selects a data template for identifying object data;
[0091] (2) Based on the data template, collect object data and generate identification data;
[0092] (3) Generate a signature for the identification data according to the signature rules;
[0093] In step A, S4, 2), (3), the signature rules are as follows:
[0094] a. Sort the data to be signed according to the rules:
[0095] The object data to be sorted is converted into UTF-16 byte units according to the attribute key value, and the first byte of the byte unit is simply compared for ascending sorting; if the first bytes are the same, the subsequent bytes are compared until values of different sizes are generated for ascending sorting; if the sub-object is complex structure data, the sub-object needs to be recursively sorted in the same way; if the sub-object is array type data, the array elements must not be changed;
[0096] b. Remove the spaces between JSON symbols and compress the sorted data to form the byte data to be signed (UTF-8 character set);
[0097] c. Use the private key to sign the byte data to be signed;
[0098] d. Perform Base58 encoding on the signature data to generate signature data.
[0099] (4) After receiving the DID and identification data, the blockchain node calculates the subchain number through the aforementioned subchain division mechanism; when the identification data is stored in the corresponding subchain, it first checks whether the data template is occupied by other enterprises, and uses the unoccupied data template;
[0100] In steps A, S4, 2), and (4), the upstream enterprise is set as the production enterprise, which identifies the inherent characteristic data of the target product and forms its own characteristic data template; the downstream enterprise is set as the transportation enterprise, which identifies the transportation management data of the target product and forms a transportation management data template; the transportation management data template does not interfere with or modify its own characteristic data template.
[0101] Taking mobile phones as an example, the upstream manufacturer selects template T1 to write the color, model and other information of the mobile phone. The downstream logistics company only needs to select the logistics-related data template T2 to write the logistics information. That is, the downstream logistics company cannot select template T1 and cannot modify the color, model and other information of the mobile phone.
[0102] (5) Obtain the issuer of the corresponding template from templates in the extension structure, and obtain the enterprise public key from the blockchain through the issuer did code. Use the public key to verify the signature in the received identification data. If the verification passes, enter the did document update process, otherwise it prompts that the identification registration failed;
[0103] (6) Update the newly received identification data to the extension corresponding part of the product object's did document. For the data template used for the first time, update the mapping relationship between the data template and the issuer under templates at the same time;
[0104] w3c DIDDocument is essentially a large json structure. Extension is actually adding a key to json. The identification data mentioned above is the data generated by the product object after standardization based on the data template. This part of data accurately describes the key information of the product object at a certain stage. DID identification data is more of a combination of the above identification data and DID, which is the data formed after being stored in the did document structure.
[0105] B. Identity resolution
[0106] like Figure 3 As shown, S1, build an identity resolution mechanism and develop an identity resolution interface
[0107] 1) Based on the ac_id generation algorithm in the aforementioned sub-chain division mechanism, a DID-based routing resolution service is constructed, and an identity resolution interface is developed; the development of the identity resolution interface is an existing technology, so it will not be described in detail here.
[0108] 2) Analysis method
[0109] (1) Accurately locate the subchain where the object identification data is located through DID coding, and obtain the full amount of data of the object throughout its life cycle;
[0110] (2) Filter the returned data by template_id and return the key data required by the user.
[0111] In step B, S1, 2), when the client parses the request data carrying the DID identifier but no data template id, the identification data of all data templates of the object, that is, the full life cycle data of the object, is returned; when the client parses the request data carrying the data template template_id and the DID identifier, specific identification data is returned.
[0112] The present invention solves the problem of cracking the separate storage of the same object identification data between upstream and downstream enterprises in the industrial chain / industry chain, so as to improve the parsing performance of the full life cycle identification.
[0113] The essential feature of this invention is to eliminate the existing mechanism of dividing sub-chains based on artificial factors such as industry / region, and build a new mechanism based on object DID identifier to distinguish sub-chains. At the same time, it combines digital templates, digital signatures and other technologies to build an anti-tampering mechanism for authorized access to identification data between upstream and downstream enterprises, including:
[0114] 1. On the basis of the existing master-child chain hierarchical architecture, a new identification data storage mechanism is built to realize the centralized and unified storage of the same object identification data;
[0115] 2. Build a distributed digital identity authorization and access control mechanism when registering identification data of different enterprises to prevent identification data from being tampered with.
[0116] The specific embodiments described herein are merely examples of the spirit of the present invention. A person skilled in the art of the present invention may make various modifications or supplements to the specific embodiments described or replace them in a similar manner, but will not deviate from the spirit of the present invention or exceed the defined scope. Although the present invention is described and described in detail in the drawings and the foregoing description, such descriptions and descriptions are considered to be illustrative or exemplary rather than restrictive. It should be understood that within the scope of the following claims, changes and modifications may be made by a person of ordinary skill. Specifically, the present invention encompasses other embodiments having any combination of features from the above-mentioned different embodiments. With respect to the use of the expression "generally" or "substantially", this patent application should be understood to disclose that these features and values are also fully satisfied, i.e., there is no aforementioned characterization as "generally" or "substantially".
[0117] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. < / ac-id> < / ac-id>
Claims
1. A method for improving identity resolution performance based on blockchain, characterized in that: The following steps are involved: A. Logo Registration S1. Establishing the object identity: According to the DID encoding structure: did:rsv: <ac-id> : <method-specific-id>< / method-specific-id> < / ac-id> Among them, did:rsv is a fixed prefix; <ac-id>Number the subchain, which consists of 4 letters or numbers. For the main chain, <ac-id>Fields can be omitted; <method-specific-id> Encode the suffix for did; Object coding is performed to identify the identity of objects between upstream and downstream enterprises with DID; when the object identity is generated, the following calculation formula is used: <method-specific-id> =base58(ripemd160(sha256(<target public key>))) Distribute public and private key pairs and agree on consistent DID encoding generation rules; S2. Build a sub-chain division mechanism: by <method-specific-id>For input, introduce <method-specific-id>arrive <ac-id> The calculation function calc produces the sub-chain number, and its calculation formula is as follows: <ac-id>=calc( <method-specific-id> )< / method-specific-id> Among them, calc is <method-specific-id>arrive <ac-id> The calculation function of S3, build identification metadata and data template: At least construct identification metadata and data templates from the perspective of attribute name, value type, value range, and number of attributes, and divide each data template into template_id; S4. Build access control mechanism based on data template and signature mechanism: 1) DID document data structure DID identification data follows the w3c DIDDocument specification, and adds a new field extension based on the w3c DIDDocument specification; 2) DID-based identification registration process and signature scheme (1) The enterprise selects a data template for the identification object; (2) Based on the data template, collect object data and generate identification data; (3) Generate a signature for the identification data according to the signature rules; (4) After receiving the DID and identification data, the blockchain node calculates the subchain number through the aforementioned subchain division mechanism; when the identification data is stored in the corresponding subchain, it first checks whether the data template is occupied by other enterprises, and uses the unoccupied data template; (5) Obtain the issuer of the corresponding template from templates in the extension structure, and obtain the enterprise public key from the blockchain through the issuer did code. Use the public key to verify the signature in the received identification data. If the verification passes, enter the did document update process, otherwise it prompts that the identification registration failed; (6) Update the newly received identification data to the extension corresponding part of the product object's did document. For the data template used for the first time, update the mapping relationship between the data template and the issuer under templates at the same time; B. Identity resolution S1. Build an identity resolution mechanism and develop an identity resolution interface 1) Based on the ac_id generation algorithm in the aforementioned sub-chain division mechanism, build a DID-based routing resolution service and develop an identity resolution interface; 2) Analysis method (1) Accurately locate the subchain where the object identification data is located through DID coding, and obtain the full amount of data of the object throughout its life cycle; (2) Filter the returned data by template_id and return the key data required by the user.
2. The method for improving the performance of identity resolution based on blockchain as claimed in claim 1, characterized in that: In step A, S2, the calc calculation method includes: 1) Interception <method-specific-id>part of the <ac-id>; The specific interception method is: build a total of N sub-chains, and the sub-chain numbering structure is ac0 <method-specific-id-slice>,in <method-specific-id-slice>yes <method-specific-id> The first character is a lowercase letter or number; 2) <method-specific-id>Through mathematical operations, it is used to generate <ac-id>The specific mathematical operation is: build a total of N sub-chains, and the sub-chain numbering structure is ac0 <method-specific-id-mod>,in <method-specific-id-mod>for <method-specific-id> The result of adding the ASCII codes of all letters modulo N.
3. The method for improving the performance of identity resolution based on blockchain as claimed in claim 1, characterized in that: In steps A and S3, after the data template is generated, it is uniquely indexed by template_id. There is a one-to-one correspondence between the data template and template_id, and a one-to-many relationship between the identified object and the data template; template_id is generated by any of a self-incrementing number and a fixed-length random string.
4. The method for improving the performance of identity resolution based on blockchain as claimed in claim 1, characterized in that: In step A, S4, 2), (3), the signature rules are as follows: a. Sort the data to be signed according to the rules: The object data to be sorted is converted into UTF-16 byte units according to the attribute key value, and the first byte of the byte unit is simply compared for ascending sorting; if the first bytes are the same, the subsequent bytes are compared until values of different sizes are generated for ascending sorting; if the sub-object is complex structure data, the sub-object needs to be recursively sorted in the same way; if the sub-object is array type data, the array elements must not be changed; b. Remove the spaces between JSON symbols and compress the sorted data to form the byte data to be signed; c. Use the private key to sign the byte data to be signed; d. Base58 encode the signature data to generate signature data.
5. The method for improving the performance of identity resolution based on blockchain as claimed in claim 1, characterized in that: In steps A, S4, 2), and (4), the upstream enterprise is set as the production enterprise, which identifies the inherent characteristic data of the target product and forms its own characteristic data template; the downstream enterprise is set as the transportation enterprise, which identifies the transportation management data of the target product and forms a transportation management data template; the transportation management data template does not interfere with or modify its own characteristic data template.
6. The method for improving the performance of identity resolution based on blockchain according to claim 1, characterized in that: In step B, S1, 2), when the client parses the request data carrying the DID identifier but no data template id, the identification data of all data templates of the object, that is, the full life cycle data of the object, is returned; when the client parses the request data carrying the data template template_id and the DID identifier, specific identification data is returned.
Citation Information
Patent Citations
Industrial Internet data asset right confirmation and transaction method and platform
CN111581292A
Trusted access control method based on decentration identification and related device
CN115865515A
Judicial data sharing method and system based on distributed identity identification and main and sub-chains
CN116561790A
Digital identity management method and device
CN117056981A
Industrial internet heterogeneous identifier analysis method based on block chain
CN117201450A
Cited By
Decentralized trusted exchange control method for data on enterprise supply chain
CN121603308A