Multi-party collaborative authority delegation method and system based on ring signature
Through a multi-party collaborative authority delegation method based on ring signature, anonymous voting smart contracts and blockchain are used to solve the problems of fairness and operational risks in permission hierarchy allocation, automatic delegation and privacy protection are achieved, and the possibility of human intervention is reduced.
Patent Information
- Application Number
- CN202110937690.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-08-16
AI Technical Summary
In the prior art, the method of allocating permissions at the authority level cannot guarantee fairness and rationality under complex circumstances, and there is operational risk, and there is a high possibility of human intervention in the centralized authority management method.
Adopt a multi-party collaborative authority delegation method based on ring signatures, identity verification, anonymous voting and automatic authority delegation through anonymous voting smart contracts, and use blockchain to record permission allocation to ensure the anonymity and fairness of voting, and reduce the possibility of human intervention. sex.
It improves the enthusiasm and fairness of users' voting, realizes automatic delegation of permissions, reduces human intervention, protects user privacy, and improves centralized permission management methods.
Smart Images

Figure CN113794565B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ring signatures, and in particular to a multi-party collaborative authority delegation method and system based on ring signatures. Background Art
[0002] At present, in the field of permission control, the most commonly used model is the Role-Based Access Control (RBAC) model. The RBAC model realizes the logical separation of users and permissions by introducing the concept of roles, thereby supporting the separation of responsibilities between technical personnel and business personnel. Users obtain permissions by obtaining roles, thereby realizing user permission management and control, or solving the problem of unreasonable permission allocation methods for systems with complex hierarchical structures in the existing technology based on user attribute information.
[0003] A method and device for allocating permissions are disclosed in a patent document with publication number CN109981552A, which are used to solve the problem of unreasonable methods for allocating permissions to systems with complex hierarchical structures in the prior art; the permission allocation method provided in the embodiment of the present application is applied to a management system containing multi-level management users, including: when a login request is received, determining the management level of the logged-in user in the management system; determining the management area set and management agency set corresponding to the logged-in user according to the management level of the logged-in user and the established correspondence between management users at all levels and management area sets and management agency sets; receiving a request for a newly created user, the request carrying attribute information of the newly created user, the attribute information at least including management agency, management area and permission description information; allocating permissions to the newly created user according to the attribute information of the newly created user and the management agency set and management area set corresponding to the logged-in user.
[0004] A multi-party data sharing method for protecting the privacy of a data source is disclosed in a patent document with announcement number CN107453865B. Several participants are connected to a blockchain and share data, including the following steps: S1: all participants generate a public-private key pair; S2: all participants publish the public key corresponding to their own identity, and all participants record all published public keys; S3: the data source first generates a ring signature based on all public keys, the private key of the data source, and the data to be sent, and then writes the data and the ring signature into the blockchain with a one-time private key; S4: other participants first read the data and the ring signature, and then verify the ring signature based on the public key, data, and the ring signature. If the verification result is legal, the data is used, otherwise the data is not used.
[0005] With respect to the above-mentioned related technologies, the inventor believes that although the above-mentioned method of allocating authority based on the authority hierarchy can solve the problem of authority allocation in the case of complex authority hierarchy, it cannot guarantee the fairness and rationality of human allocation, and has certain operational risks during the execution process. Therefore, it is necessary to propose a technical solution to improve the above-mentioned technical problems. Summary of the invention
[0006] In view of the defects in the prior art, the purpose of the present invention is to provide a multi-party collaborative authority delegation method and module based on ring signature.
[0007] According to a multi-party collaborative authority delegation method based on ring signature provided by the present invention, the method comprises the following steps:
[0008] Step S1: The system user generates a pair of public and private keys on the local client;
[0009] Step S2: The anonymous voting smart contract is written into four parts: identity verification, anonymous voting, voting verification, and automatic delegation of authority. After the writing is completed, it is deployed to the blockchain network, and an interface F for external unified calling of the smart contract is provided;
[0010] Step S3: System user Ui uses ring signature to vote anonymously;
[0011] Step S4: The voting smart contract counts the votes and determines whether the end condition has been met. If the end condition has not been met, the voting continues;
[0012] Step S5: After the voting is completed, the smart contract automatically delegates the authority and records it on the blockchain.
[0013] Preferably, the public and private keys in step S1 include a public key PKi and a private key SKi, and the public and private keys come from different public key systems.
[0014] Preferably, step S2 comprises the following steps:
[0015] Step S2.1: Design identity verification to verify the legitimacy of the voting identity and the legitimacy of the interface. If one of them is illegal, it will return illegal. If both are legal, continue voting;
[0016] Step S2.2: Design anonymous voting, and system users use ring signatures to vote anonymously;
[0017] Step S2.3: Design voting verification, use voting message m and signature R to verify the legitimacy of the vote, if R is the ring signature of m, mark "True" and proceed to step S2.4, otherwise mark "False" and exit the voting;
[0018] Step S2.4: Design automatic delegation of authority and freely set the authority delegation execution value, which is 2 / 3 of the total number of system users. If the limited votes exceed the authority delegation execution value, the authority will be assigned to the user with the highest number of votes and recorded on the blockchain network.
[0019] Preferably, step S3 comprises the following steps:
[0020] Step S3.1: System user Ui calls the voting interface F, and the system verifies the legality of Ui's voting identity and the legality of the interface. If one of them is illegal, it returns illegal. If both are legal, voting can continue;
[0021] Step S3.2: System user Ui generates a signature R for voting message m using private key Ski and public keys L = {PK1, PK2, ..., PKn} of n system users;
[0022] Step S3.3: Verify the legitimacy of Ui’s vote. If R is the ring signature of m, mark it as “True”; otherwise, mark it as “False” and return to step S3.1.
[0023] Preferably, step S4 comprises the following steps:
[0024] Step S4.1: Obtain the total number of votes cast in the previous round and the details of the current round of votes, and calculate the total number of votes cast in this round;
[0025] Step S4.2: Determine whether the number of votes exceeds the valid setting value. If so, the voting ends and the process goes to step S5 to assign permissions to users with high vote counts and record them on the blockchain network. Otherwise, the voting continues and the process returns to step S3.
[0026] The present invention also provides a multi-party collaborative authority delegation system based on ring signature, the system comprising the following modules:
[0027] Module M1: The system user generates a pair of public and private keys on the local client;
[0028] Module M2: The anonymous voting smart contract is written into four parts: identity verification, anonymous voting, voting verification, and automatic delegation of permissions. After writing, it is deployed to the blockchain network and provides an interface F for external unified calls to the smart contract;
[0029] Module M3: System user Ui uses ring signature to vote anonymously;
[0030] Module M4: The voting smart contract counts the votes and determines whether the end condition has been met. If the end condition has not been met, the voting continues;
[0031] Module M5: After the voting is completed, the smart contract automatically delegates the authority and records it on the blockchain.
[0032] Preferably, the public and private keys in the module M1 include a public key PKi and a private key SKi, and the public and private keys come from different public key systems.
[0033] Preferably, the module M2 includes the following modules:
[0034] Module M2.1: Design identity verification to verify the legitimacy of the voting identity and the legitimacy of the interface. If one of them is illegal, it will return illegal. If both are legal, continue voting.
[0035] Module M2.2: Design anonymous voting, and system users use ring signatures to vote anonymously;
[0036] Module M2.3: Design voting verification, use voting message m and signature R to verify the legitimacy of the vote. If R is the ring signature of m, mark "True" and proceed to module M2.4. Otherwise, mark "False" and exit the voting.
[0037] Module M2.4: Design automatic delegation of authority, freely set the authority delegation execution value, 2 / 3 of the total number of system users. If the limited votes exceed the authority delegation execution value, the authority will be assigned to the user with the highest number of votes and recorded on the blockchain network.
[0038] Preferably, the module M3 includes the following modules:
[0039] Module M3.1: System user Ui calls voting interface F, and the system verifies the legitimacy of Ui's voting identity and the legitimacy of the interface. If one of them is illegal, it returns illegal. If both are legal, voting can continue;
[0040] Module M3.2: System user Ui generates a signature R for voting message m using private key Ski and public keys L = {PK1, PK2, …, PKn} of n system users;
[0041] Module M3.3: Verify the legitimacy of Ui’s vote. If R is the ring signature of m, mark it as “True”, otherwise mark it as “False” and return to module M3.1.
[0042] Preferably, the module M4 includes the following modules:
[0043] Module M4.1: Get the total number of votes cast in the previous round and the details of the current round, and calculate the total number of votes cast in this round;
[0044] Module M4.2: Determine whether the voting exceeds the valid setting value. If so, the voting ends and enters module M5 to assign permissions to users with high votes and record them on the blockchain network. Otherwise, continue voting and return to module M3.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] 1. The present invention solves the anonymity problem of voting by adopting the ring signature method, and improves the enthusiasm and fairness of user voting;
[0047] 2. The present invention uses smart contract to delegate authority, which completes the automatic delegation of authority and solves the problem of human intervention in the traditional authority delegation process;
[0048] 3. The present invention uses ring signatures to protect the privacy of voting users, and uses smart contracts to automatically trigger smart contracts to directly delegate account permissions. Under the premise of protecting user privacy, the possibility of human intervention in authority delegation is minimized, thereby improving the current centralized authority management method. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0050] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0051] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0052] The present invention provides a multi-party collaborative authority delegation method based on ring signature, comprising the following steps:
[0053] Step S1: Each system user generates a pair of public and private keys on the local client, including a public key PKi and a private key SKi, which can come from different public key systems.
[0054] Step S2: The anonymous voting smart contract is written into four parts: identity verification, anonymous voting and voting verification, and automatic delegation of authority. After writing, it is deployed to the blockchain network and provides an interface F for external unified calling of the smart contract; Step S2.1: Design identity verification to verify the legality of the voting identity and the legality of the interface. If one of them is illegal, it returns illegal. If both are legal, voting can continue; Step S2.2: Design anonymous voting. System users use ring signatures to vote anonymously; Step S2.3: Design voting verification. Use the voting message m and signature R to verify the legality of the vote. If R is the ring signature of m, mark "True" and continue to step S2.4, otherwise mark "False" and exit voting; Step S2.4: Design automatic delegation of authority. The authority delegation execution value can be freely set, such as 2 / 3 of the total number of system users. If the valid votes exceed 2 / 3 of the total number of system users, the authority will be allocated to the user with a high number of votes and recorded on the blockchain network.
[0055] Step S3: System user Ui uses ring signature to vote anonymously; Step S3.1: System user Ui calls voting interface F, the system verifies the legitimacy of Ui's voting identity and the legitimacy of the interface, if one of them is illegal, it returns illegal, if both are legal, voting can continue; Step S3.2: System user Ui uses private key Ski and public keys L = {PK1, PK2, ..., PKn} of n system users to generate a signature R for voting message m; Step S3.3: Verify the legitimacy of Ui's vote, if R is the ring signature of m, mark "True", otherwise mark "False", and return to step S3.1.
[0056] Step S4: The voting smart contract counts the votes and determines whether the end condition is met. If the end condition is not met, the voting continues; Step S4.1: Get the total number of votes in the previous time and the details of this vote, and calculate the total number of votes for this time; Step S4.2: Determine whether it exceeds the valid setting value of the vote. If it exceeds, the voting ends and enters step S5 to allocate permissions to users with high votes and record them on the blockchain network. Otherwise, continue voting and return to step S3.
[0057] Step S5: After the voting is completed, the smart contract automatically delegates the authority and records it on the blockchain.
[0058] The present invention also provides a multi-party collaborative authority delegation system based on ring signature, comprising the following modules:
[0059] Module M1: The system user generates a pair of public and private keys on the local client; the public and private keys include a public key PKi and a private key SKi, and the public and private keys come from different public key systems.
[0060] Module M2: The anonymous voting smart contract is written into four parts: identity verification, anonymous voting, voting verification and automatic delegation of authority. After writing, it is deployed to the blockchain network and provides an interface F for external unified calling of the smart contract; Module M2.1: Design identity verification to verify the legitimacy of the voting identity and the legitimacy of the interface. If one of them is illegal, it returns illegal. If both are legal, continue voting; Module M2.2: Design anonymous voting. System users use ring signatures to vote anonymously; Module M2.3: Design voting verification. Use voting message m and signature R to verify the legitimacy of the vote. If R is the ring signature of m, mark "True" and continue to module M2.4, otherwise mark "False" and exit voting; Module M2.4: Design automatic delegation of authority. Freely set the authority delegation execution value, 2 / 3 of the total number of system users. If the limited vote exceeds the authority delegation execution value, the authority will be allocated to the user with a high number of votes and recorded on the blockchain network.
[0061] Module M3: System user Ui uses ring signature to vote anonymously; Module M3.1: System user Ui calls voting interface F, and the system verifies the legitimacy of Ui’s voting identity and the legitimacy of the interface. If one of them is illegal, it returns illegal, and if both are legal, voting can continue; Module M3.2: System user Ui uses private key Ski and public keys L = {PK1, PK2, …, PKn} of n system users to generate a signature R for voting message m; Module M3.3: Verify the legitimacy of Ui’s vote, if R is the ring signature of m, mark it “True”, otherwise mark it “False” and return to module M3.1.
[0062] Module M4: The voting smart contract counts the votes and determines whether the end condition is met. If the end condition is not met, the voting continues; Module M4.1: Get the total number of votes in the previous time and the details of this vote, and calculate the total number of votes for this time; Module M4.2: Determine whether the voting exceeds the valid setting value. If so, the voting ends and enters module M5 to assign permissions to users with high votes and record them on the blockchain network. Otherwise, the voting continues and returns to module M3.
[0063] Module M5: After the voting is completed, the smart contract automatically delegates the authority and records it on the blockchain.
[0064] The present invention solves the anonymity problem of voting by adopting a ring signature method, thereby improving the enthusiasm and fairness of user voting; by adopting a smart contract to delegate authority, the automatic delegation of authority is completed, thereby solving the problem of human intervention in the traditional authority delegation process.
[0065] Ring signatures are used to protect the privacy of voting users, and smart contracts are used to automatically trigger smart contracts to directly delegate account permissions. Under the premise of protecting user privacy, the possibility of human intervention in authority delegation is minimized, improving the current centralized authority management method.
[0066] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0067] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A multi-party collaborative authority delegation method based on ring signature, characterized in that: The method comprises the following steps: Step S1: The system user generates a pair of public and private keys on the local client; Step S2: The anonymous voting smart contract is written into four parts: identity verification, anonymous voting, voting verification, and automatic delegation of authority. After the writing is completed, it is deployed to the blockchain network, and an interface F for external unified calling of the smart contract is provided; Step S3: System user Ui uses ring signature to vote anonymously; Step S4: The voting smart contract counts the votes and determines whether the end condition is met. If the end condition is not met, the voting continues; Step S5: After the voting is completed, the smart contract automatically delegates the authority and records it on the blockchain; The public and private keys in step S1 include a public key PKi and a private key SKi, and the public and private keys come from different public key systems; The step S2 comprises the following steps: Step S2.1: Design identity verification to verify the legitimacy of the voting identity and the legitimacy of the interface. If one of them is illegal, it will return illegal. If both are legal, continue voting; Step S2.2: Design anonymous voting, and system users use ring signatures to vote anonymously; Step S2.3: Design voting verification, use voting message m and signature R to verify the legitimacy of the vote, if R is the ring signature of m, mark "True" and proceed to step S2.4, otherwise mark "False" and exit the voting; Step S2.4: Design automatic delegation of authority, freely set the authority delegation execution value, 2 / 3 of the total number of system users. If the limited vote exceeds the authority delegation execution value, the authority will be assigned to the user with the highest number of votes and recorded on the blockchain network; The step S3 comprises the following steps: Step S3.1: System user Ui calls the voting interface F, and the system verifies the legality of Ui's voting identity and the legality of the interface. If one of them is illegal, it returns illegal. If both are legal, voting can continue; Step S3.2: System user Ui generates a signature R for voting message m using private key Ski and public keys L = {PK1, PK2, ..., PKn} of n system users; Step S3.3: Verify the legitimacy of Ui’s vote. If R is the ring signature of m, mark it as “True”, otherwise mark it as “False” and return to step S3.
1. The step S4 comprises the following steps: Step S4.1: Obtain the total number of votes cast in the previous round and the details of the current round of votes, and calculate the total number of votes cast in this round; Step S4.2: Determine whether the number of votes exceeds the valid setting value. If so, the voting ends and the process goes to step S5 to assign permissions to users with high vote counts and record them on the blockchain network. Otherwise, the voting continues and the process returns to step S3.
2. A multi-party collaborative authority delegation system based on ring signature, characterized in that: The system includes the following modules: Module M1: The system user generates a pair of public and private keys on the local client; Module M2: The anonymous voting smart contract is written into four parts: identity verification, anonymous voting, voting verification, and automatic delegation of permissions. After writing, it is deployed to the blockchain network and provides an interface F for external unified calls to the smart contract; Module M3: System user Ui uses ring signature to vote anonymously; Module M4: The voting smart contract counts the votes and determines whether the end condition has been met. If the end condition has not been met, the voting continues; Module M5: After the voting is completed, the smart contract automatically delegates the authority and records it on the blockchain; The public and private keys in the module M1 include a public key PKi and a private key SKi, and the public and private keys come from different public key systems; The module M2 includes the following modules: Module M2.1: Design identity verification to verify the legitimacy of the voting identity and the legitimacy of the interface. If one of them is illegal, it will return illegal. If both are legal, continue voting. Module M2.2: Design anonymous voting, and system users use ring signatures to vote anonymously; Module M2.3: Design voting verification, use voting message m and signature R to verify the legitimacy of the vote. If R is the ring signature of m, mark "True" and proceed to module M2.
4. Otherwise, mark "False" and exit the voting. Module M2.4: Design automatic delegation of authority, freely set the authority delegation execution value, 2 / 3 of the total number of system users. If the limited vote exceeds the authority delegation execution value, the authority will be assigned to the user with the highest number of votes and recorded on the blockchain network; The module M3 includes the following modules: Module M3.1: System user Ui calls voting interface F, and the system verifies the legitimacy of Ui's voting identity and the legitimacy of the interface. If one of them is illegal, it returns illegal. If both are legal, voting can continue; Module M3.2: System user Ui generates a signature R for voting message m using private key Ski and public keys L = {PK1, PK2, …, PKn} of n system users; Module M3.3: Verify the legitimacy of Ui’s vote. If R is the ring signature of m, mark it as “True”, otherwise mark it as “False” and return to module M3.
1. The module M4 includes the following modules: Module M4.1: Get the total number of votes cast in the previous round and the details of the current round, and calculate the total number of votes cast in this round; Module M4.2: Determine whether the voting exceeds the valid setting value. If so, the voting ends and enters module M5 to assign permissions to users with high votes and record them on the blockchain network. Otherwise, continue voting and return to module M3.
