A multi-chain user role management and verification method based on blockchain
By expanding the dyeing fields and UTXO model of the blockchain, it solves the problem of user anonymity and no authority control in the traditional blockchain, realizes multi-chain user role management and verification, provides decentralized authority control and traceability, and meets the needs of Meets the consistency requirements for user role management and data sharing.
Patent Information
- Application Number
- CN202110771874.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-07-08
AI Technical Summary
Users in traditional blockchains and consortium chains are anonymous and have no permission control, and cannot effectively manage and supervise user behavior and data permissions, resulting in the inability to differentiate user roles and control permissions.
By expanding the dyeing fields of the blockchain, introducing user role management and verification methods, using the UTXO model to store role information, and using the blockchain role management module for permission allocation and verification, multi-chain user role setting, verification and management are realized.
It realizes decentralized user role management and permission control, traces the addition and modification of user roles, and provides a consistent user role verification basis for decentralized role control and data sharing.
Smart Images

Figure CN113553575B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of regional chain technology, and specifically to a multi-chain user role management and verification method based on blockchain. Background Art
[0002] UTXO (Unspent Transaction Outputs) is an unspent transaction output, which is a core concept in the generation and verification of Bitcoin transactions. Transactions form a set of chain structures, and all legal Bitcoin transactions can be traced back to the output of one or more previous transactions. The source of these chains is mining rewards, and the end is the current unspent transaction output.
[0003] In traditional blockchains and consortium chains, all users are anonymous and have no permission control. Anyone can join and exit at any time. Anyone can access the blockchain and obtain all the data on the blockchain at will. Users have no role distinction, and it is impossible to effectively control and supervise user behavior and data permissions. Summary of the invention
[0004] 1. Technical issues to be solved
[0005] In view of the deficiencies in the prior art, the present invention provides a multi-chain user role management and verification method based on blockchain, which solves the problems of traditional blockchains and alliance chains, in which all users are anonymous and have no authority control, anyone can join and exit at any time, anyone can access the blockchain at will and obtain all the data on the blockchain, users have no role distinction, and users' behavior and data permissions cannot be effectively controlled and supervised.
[0006] (II) Technical solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: a multi-chain user role management and verification method based on blockchain, comprising the following steps:
[0008] Step 1: Includes the extension of blockchain coloring fields;
[0009] Step 2: Blockchain Agreement;
[0010] Step 3: User initialization;
[0011] Step 4: Add roles to users;
[0012] Step 5: Cancel the user's role;
[0013] Step 6: Query the user's permissions;
[0014] Step 7: Permission verification.
[0015] Preferably, the blockchain of the dyed field refers to a blockchain based on UTXO and extended with the dyed field, which is referred to as BLOCK_CHECK here;
[0016] a. Multi-chain refers to all blockchains that use BLOCK_CHECK as the user role setting, verification and management center;
[0017] b. A user refers to an address in a blockchain among multiple chains; each user has a blockchain address (ADDR_USER) in BLOCK_CHECK, and a user can have multiple roles; in the UTXO model, roles are stored in the dyeing data of UTXO. A UTXO can store a role definition value in the dyeing data with a face value of 1. The verification and management module (MOD_CHECK) is responsible for the user's role allocation and cancellation, so that a user can obtain one or more UTXOs with role dyeing information.
[0018] Preferably, the agreement of the blockchain in step 2 depends on the blockchain role management module (ROLE_PERMISSION_MOD). The blockchain using this method needs to pre-define the permissions used in its blockchain in the basic coloring data of the blockchain role management module (ROLE_PERMISSION_MOD); the role is added in ROLE_PERMISSION_MOD and the corresponding permissions are set.
[0019] Preferably, the steps of querying the user's authority in step 6 are as follows:
[0020] One of the multi-chain blockchains (BLOCK_ANY) submits a query role application to the verification management center (CHECK_CENTER), with the accompanying information: BLOCK_ANY, USER_A.
[0021] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK is ADDR_1 according to BLOCK_ANY and USER_A, and finds out all the colored UTXOs owned by the address, obtains the role information (LIST_ROLE_A), and pulls the detailed role information from the blockchain role management module (ROLE_PERMISSION_MOD), merges it and returns it to BLOCK_ANY.
[0022] Preferably, the permission verification operation steps in step seven are specifically as follows:
[0023] a. A blockchain (BLOCK_ANY) in the multi-chain submits a role query application to the verification management center (CHECK_CENTER), with the following information: BLOCK_ANY, USER_A, LIST_COL_A (authority list, COL_A is the authority coloring information agreed upon by the role authority management center);
[0024] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A);
[0025] c. MOD_CHECK submits a permission verification request to the blockchain role management module (ROLE_PERMISSION_MOD). The submitted information is: LIST_ROLE_A, LIST_COL_A. The return value is LIST_COL_B, the permission that the address already has. MOD_CHECK returns LIST_COL_B to BLOCK_ANY.
[0026] Preferably, the initialization operation steps of the user in step three are as follows: a blockchain (BLOCK_ANY) in the multi-chain submits an initialization application for user A's blockchain address (USER_A) to the verification management center (CHECK_CENTER), CHECK_CENTER verifies the identity information of BLOCK_ANY (the verification step is not within the scope of description in this article), creates a blockchain address ADDR_1, and the verification and management module (MOD_CHECK) records BLOCK_ANY, USER_A and ADDR_1 as a corresponding relationship, and keeps the key of address ADDR_1.
[0027] Preferably, the steps of adding a role to a user in step 4 are as follows:
[0028] a. A blockchain (BLOCK_ANY) in the multi-chain pulls a role information list from the verification management center (CHECK_CENTER), then pulls the role information of user A (USER_A) (LIST_ROLE_A, see step 6 for details), selects role B (ROLE_B) not included in the user, and submits an authorization application to CHECK_CENTER, with the accompanying information: BLOCK_ANY, USER_A, LIST_ROLE_B (list of roles after selection);
[0029] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXO owned by the address, and obtains the role information (LIST_ROLE_A); the difference between the data LIST_ROLE_B submitted in this step and LIST_ROLE_A is ROLE_B (the cancelled role is explained in step 5), and a UTXO with ROLE_B coloring information is issued to ADDR_1 through the colored coin issuance center (the coin issuance center based on the UTXO blockchain), with a face value of 1.
[0030] Preferably, the steps of canceling the user's role in step 5 are as follows:
[0031] a. A blockchain (BLOCK_ANY) in the multi-chain pulls a role information list from the verification management center (CHECK_CENTER), then pulls the role information (LIST_ROLE_A) of user A (USER_A), deselects role A (ROLE_A) included in the user, and submits an authorization application to CHECK_CENTER with the following information: BLOCK_ANY, USER_A, LIST_ROLE_C (role list after deselection);
[0032] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A); the difference between LIST_ROLE_A and the data LIST_ROLE_C submitted in this step is ROLE_A (the added role is explained in step 4), and spends all the face value 1 of the single UTXO containing the ROLE_A coloring information.
[0033] (III) Beneficial effects
[0034] The present invention provides a multi-chain user role management and verification method based on blockchain. It has the following beneficial effects:
[0035] (1) The multi-chain user role management and verification method based on blockchain, when it is necessary to add a user, pull the role information list from the verification management center (CHECK_CENTER) through a blockchain (BLOCK_ANY) in the multi-chain, then pull the role information of user A (USER_A), select role B (ROLE_B) not included in the user, and submit an authorization application to CHECK_CENTER. The verification and management module (MOD_CHECK) queries the user's address in BLOCK_CHECK according to BLOCK_ANY, USER_A finds that the user's address is ADDR_1, and queries all the colored UTXOs owned by the address. After obtaining the role information (LIST_ROLE_A), the colored coin issuance center (the coin issuance center based on the UTXO blockchain) issues a UTXO with ROLE_B colored information to ADDR_1, with a face value of 1. Thus, through decentralized multi-chain user role management, the role addition and modification of blockchain users can be traced.
[0036] (2) In the multi-chain user role management and verification method based on blockchain, after a blockchain (BLOCK_ANY) in the multi-chain submits a role query application to the verification management center (CHECK_CENTER), the verification and management module (MOD_CHECK) queries the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY and USER_A, queries all the colored UTXOs owned by the address, obtains the role information (LIST_ROLE_A), and then pulls the detailed role information from the blockchain role management module (ROLE_PERMISSION_MOD), merges it and returns it to BLOCK_ANY, thereby realizing the extraction and display functions of blockchain data and providing a decentralized role control basis.
[0037] (3) In the multi-chain user role management and verification method based on blockchain, after a blockchain (BLOCK_ANY) in the multi-chain submits a role query application to the verification management center (CHECK_CENTER), the verification and management module (MOD_CHECK) queries the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY and USER_A, and queries all the colored UTXOs owned by the address to obtain the role information (LIST_ROLE_A). MOD_CHECK then submits a permission verification request to the blockchain role management module (ROLE_PERMISSION_MOD), and the return value obtained is the permission LIST_COL_B that the address has; MOD_CHECK returns LIST_COL_B to BLOCK_ANY, thereby providing a decentralized consistent user role verification basis for multi-chain data sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a flowchart for initializing multi-chain users;
[0039] Figure 2 It is a flowchart for adding roles to users;
[0040] Figure 3 It is a flowchart of multi-chain user permission verification. DETAILED DESCRIPTION
[0041] 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.
[0042] See also Figure 1-3 The present invention provides a technical solution: a multi-chain user role management and verification method based on blockchain, comprising the following steps:
[0043] Step 1: Includes the extension of blockchain coloring fields;
[0044] Step 2: Blockchain Agreement;
[0045] Step 3: User initialization;
[0046] Step 4: Add roles to users;
[0047] Step 5: Cancel the user's role;
[0048] Step 6: Query the user's permissions;
[0049] Step 7: Permission verification.
[0050] In this embodiment, the blockchain of the dyed field refers to a blockchain based on UTXO and extended with the dyed field, which is referred to as BLOCK_CHECK here;
[0051] a. Multi-chain refers to all blockchains that use BLOCK_CHECK as the user role setting, verification and management center;
[0052] b. A user refers to an address in a blockchain among multiple chains; each user has a blockchain address (ADDR_USER) in BLOCK_CHECK, and a user can have multiple roles; in the UTXO model, roles are stored in the dyeing data of UTXO. A UTXO can store a role definition value in the dyeing data with a face value of 1. The verification and management module (MOD_CHECK) is responsible for the user's role allocation and cancellation, so that a user can obtain one or more UTXOs with role dyeing information.
[0053] In this embodiment, the agreement of the blockchain in step 2 depends on the blockchain role management module (ROLE_PERMISSION_MOD). The blockchain using this method needs to pre-define the permissions used in its blockchain in the basic coloring data of the blockchain role management module (ROLE_PERMISSION_MOD); the role is added in ROLE_PERMISSION_MOD and the corresponding permissions are set.
[0054] In this embodiment, the steps for querying the user's permissions in step 6 are as follows:
[0055] a. A blockchain (BLOCK_ANY) in the multi-chain submits a role query application to the verification management center (CHECK_CENTER), with the accompanying information: BLOCK_ANY, USER_A;
[0056] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY and USER_A, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A). It then pulls the detailed role information from the blockchain role management module (ROLE_PERMISSION_MOD), merges it, and returns it to BLOCK_ANY.
[0057] In this embodiment, the permission verification operation steps in step seven are specifically as follows:
[0058] a. A blockchain (BLOCK_ANY) in the multi-chain submits a role query application to the verification management center (CHECK_CENTER), with the following information: BLOCK_ANY, USER_A, LIST_COL_A (authority list, COL_A is the authority coloring information agreed upon by the role authority management center);
[0059] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A);
[0060] c. MOD_CHECK submits a permission verification request to the blockchain role management module (ROLE_PERMISSION_MOD). The submitted information is: LIST_ROLE_A, LIST_COL_A. The return value is LIST_COL_B, the permission that the address already has. MOD_CHECK returns LIST_COL_B to BLOCK_ANY.
[0061] In this embodiment, the user initialization operation steps in step three are as follows: a blockchain (BLOCK_ANY) in the multi-chain submits an initialization application for user A's blockchain address (USER_A) to the verification management center (CHECK_CENTER), CHECK_CENTER verifies the identity information of BLOCK_ANY (the verification step is not within the scope of this article), creates a blockchain address ADDR_1, and the verification and management module (MOD_CHECK) records BLOCK_ANY, USER_A and ADDR_1 as a corresponding relationship, and keeps the key of address ADDR_1.
[0062] In this embodiment, the steps for adding a role to a user in step 4 are as follows:
[0063] a. A blockchain (BLOCK_ANY) in the multi-chain pulls a role information list from the verification management center (CHECK_CENTER), then pulls the role information of user A (USER_A) (LIST_ROLE_A, see step 6 for details), selects role B (ROLE_B) not included in the user, and submits an authorization application to CHECK_CENTER, with the accompanying information: BLOCK_ANY, USER_A, LIST_ROLE_B (list of roles after selection);
[0064] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXO owned by the address, and obtains the role information (LIST_ROLE_A); the difference between the data LIST_ROLE_B submitted in this step and LIST_ROLE_A is ROLE_B (the cancelled role is explained in step 5), and a UTXO with ROLE_B coloring information is issued to ADDR_1 through the colored coin issuance center (the coin issuance center based on the UTXO blockchain), with a face value of 1.
[0065] In this embodiment, the operation steps for canceling the user's role in step 5 are as follows:
[0066] a. A blockchain (BLOCK_ANY) in the multi-chain pulls a role information list from the verification management center (CHECK_CENTER), then pulls the role information (LIST_ROLE_A) of user A (USER_A), deselects role A (ROLE_A) included in the user, and submits an authorization application to CHECK_CENTER with the following information: BLOCK_ANY, USER_A, LIST_ROLE_C (role list after deselection);
[0067] b. The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A); the difference between LIST_ROLE_A and the data LIST_ROLE_C submitted in this step is ROLE_A (the added role is explained in step 4), and spends all the face value 1 of the single UTXO containing the ROLE_A coloring information.
[0068] When it is necessary to add a user, a role information list is pulled from the verification management center (CHECK_CENTER) through a blockchain (BLOCK_ANY) in the multi-chain, and then the role information of user A (USER_A) is pulled, and role B (ROLE_B) not included in the user is selected, and an authorization application is submitted to CHECK_CENTER. After a blockchain (BLOCK_ANY) in the multi-chain submits a role query application to the verification management center (CHECK_CENTER), the verification and management module (MOD_CHECK) queries the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY and USER_A, and queries all the colored UTXOs owned by the address to obtain the role information (LIST_ROLE_A). MOD_CHECK then submits a permission verification request to the blockchain role management module (ROLE_PERMISSION_MOD), and the return value is the permission LIST_COL_B that the address already has; MOD_CHECK returns LIST_COL_B to BLOCK_ANY, and a blockchain ( BLOCK_ANY) submits a role query application to the verification management center (CHECK_CENTER). The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK is ADDR_1 based on BLOCK_ANY and USER_A, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A). It then pulls the detailed role information from the blockchain role management module (ROLE_PERMISSION_MOD), merges it, and returns it to BLOCK_ANY. ,The verification and management module (MOD_CHECK) queries the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, queries all the colored UTXO owned by the address, and obtains the role information (LIST_ROLE_A). Then, through the colored coin issuance center (the coin issuance center based on the UTXO blockchain), a UTXO with ROLE_B coloring information is issued to ADDR_1, with a face value of 1. In this way, through decentralized multi-chain user role management, the role addition and modification of blockchain users can be traced.
[0069] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions. The sentence "includes an element defined by ... does not exclude the existence of other identical elements in the process, method, article or device including the element".
[0070] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A multi-chain user role management and verification method based on blockchain, characterized by: The following steps are involved: Step 1: Includes the extension of blockchain coloring fields; The blockchain of the dyed field refers to a blockchain based on UTXO and extended with the dyed field, which is called BLOCK_CHECK here; Multichain refers to all blockchains that use BLOCK_CHECK as the user role setting, verification and management center; A user refers to an address in a blockchain among multiple chains; each user has a blockchain address (ADDR_USER) in BLOCK_CHECK, and a user can have multiple roles; in the UTXO model, roles are stored in the dyed data of UTXO, and a UTXO can store a role definition value in the dyed data with a face value of 1. The verification and management module (MOD_CHECK) is responsible for the user's role allocation and cancellation, so that a user can obtain one or more UTXOs with role dyeing information; Step 2: Blockchain Agreement; The agreement of the blockchain in step 2 depends on the blockchain role management module (ROLE_PERMISSION_MOD). The blockchain using this method needs to pre-define the permissions used in the blockchain in the basic coloring data of the blockchain role management module (ROLE_PERMISSION_MOD); the role is added in ROLE_PERMISSION_MOD and the corresponding permissions are set; Step 3: User initialization; Step 4: Add roles to users; The specific steps for adding a role to a user in step 4 are as follows: One blockchain (BLOCK_ANY) in the multi-chain pulls a role information list from the verification management center (CHECK_CENTER), then pulls the role information (LIST_ROLE_A) of user A (USER_A), selects role B (ROLE_B) that is not included in the user, and submits an authorization application to CHECK_CENTER, with the attached information: BLOCK_ANY, USER_A, LIST_ROLE_B selected role list; The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A); the difference between the data LIST_ROLE_B submitted in this step and LIST_ROLE_A is ROLE_B, and a UTXO with ROLE_B coloring information is issued to ADDR_1 through the coloring coin issuance center, with a face value of 1; Step 5: Cancel the user's role; The specific steps for canceling the user's role in step 5 are as follows: One blockchain (BLOCK_ANY) in the multi-chain pulls the role information list from the verification management center (CHECK_CENTER), then pulls the role information (LIST_ROLE_A) of user A (USER_A), deselects role A (ROLE_A) included in the user, and submits an authorization application to CHECK_CENTER, with the attached information: BLOCK_ANY, USER_A, LIST_ROLE_C, the role list after deselection; The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A); the difference between LIST_ROLE_A and the data LIST_ROLE_C submitted in this step is ROLE_A, and spends all the face value 1 of the single UTXO containing the ROLE_A coloring information; Step 6: Query the user's permissions; The specific steps for querying the user's permissions in step 6 are as follows: One of the multi-chain blockchains (BLOCK_ANY) submits a role query application to the verification management center (CHECK_CENTER), with the following information: BLOCK_ANY, USER_A; The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK is ADDR_1 based on BLOCK_ANY and USER_A, and finds out all the colored UTXOs owned by the address, and obtains the role information (LIST_ROLE_A). It then pulls the detailed role information from the blockchain role management module (ROLE_PERMISSION_MOD), merges it, and returns it to BLOCK_ANY. Step 7: Permission verification; The specific steps of the permission verification operation in step 7 are as follows: A blockchain (BLOCK_ANY) in the multi-chain submits a role query application to the verification management center (CHECK_CENTER), with the following information: BLOCK_ANY, USER_A, LIST_COL_A; LIST_COL_A is the permission list, and COL_A is the permission coloring information agreed upon by the role permission management center; The verification and management module (MOD_CHECK) finds out the user's address in BLOCK_CHECK as ADDR_1 based on BLOCK_ANY and USER_A, and finds out all the colored UTXOs owned by the address and obtains the role information (LIST_ROLE_A). MOD_CHECK submits a permission verification request to the blockchain role management module (ROLE_PERMISSION_MOD), and the submitted information is: LIST_ROLE_A, LIST_COL_A. The return value is the permission LIST_COL_B that the address already has; MOD_CHECK returns LIST_COL_B to BLOCK_ANY.
2. According to claim 1, a multi-chain user role management and verification method based on blockchain is characterized in that: The initialization operation steps of the user in step 3 are as follows: a blockchain (BLOCK_ANY) in the multi-chain submits an initialization application for the blockchain address of user A (USER_A) to the verification management center (CHECK_CENTER), CHECK_CENTER verifies the identity information of BLOCK_ANY, creates a blockchain address ADDR_1, and the verification and management module (MOD_CHECK) records BLOCK_ANY, USER_A and ADDR_1 as a corresponding relationship, and keeps the key of address ADDR_1.
Citation Information
Patent Citations
Method and system for authority management based on blockchain
CN108229962A
Asset transaction system access control method and system based on a block chain
CN109872238A
Role access control system and method based on block chain smart contract
CN110348202A
Role and authority management method based on block chain
CN113010878A
Genetic data in transactions
GB201913142D0
