Double privacy protection access control method and system based on block chain
By introducing a dual privacy protection access control method based on blockchain in cloud storage technology, using blockchain ledgers and smart contracts to verify access rights, the problem of limited blockchain storage capabilities and threats to data by malicious cloud storage providers is solved. , realizes efficient, secure storage and access control of data.
Patent Information
- Application Number
- CN202411166448.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing cloud storage technology, the blockchain's storage capacity is limited and blocks cannot be deleted, which increases the pressure of block storage data when ensuring data integrity, and there is damage and loss of user data by malicious cloud storage providers. , tampering and other issues, and third-party audits are not completely credible.
Using a dual privacy protection access control method based on blockchain, the system public key, master key and plus are generated by building a system model containing entities. Decrypt the key, encrypt and decrypt the data, and reduce hash collisions through hash functions and salt values, and use smart contracts to verify access rights to ensure data security and traceability.
Optimize the blockchain storage solution, reduce the pressure on block storage data, prevent external malicious attacks, ensure the integrity and traceability of data, and only users with authorized attribute matching can access data, improving data security and users The correctness of identity.
Smart Images

Figure CN119046964A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information security, and in particular relates to a double privacy protection access control method and system based on blockchain. Background Art
[0002] With the rapid development of Internet technology, the amount of global data has shown explosive growth. Local storage of user data can no longer meet the storage needs of the existing data volume. The storage and calculation of massive data has become an urgent problem that needs to be solved.
[0003] Cloud storage technology is popular among users due to its large capacity, flexible storage methods, fast computing and convenient access, and has gradually replaced local storage. However, in existing cloud storage technology, there are problems such as malicious cloud storage providers causing damage, loss, and tampering of stored data. The introduction of third-party auditing agencies for data verification is not completely reliable, and they may cooperate with malicious cloud storage providers to deceive users, thereby stealing user data and causing user losses.
[0004] The blockchain structure has the characteristics of decentralization, immutability, and traceability. It is currently widely used in the financial field. Users can ensure the immutability of data by encrypting and uploading data to the blockchain for storage. However, in the existing technology, the storage capacity of the blockchain is limited, and no blocks can be deleted. Therefore, how to reduce the pressure of block storage data while ensuring data integrity using the blockchain is an urgent problem to be solved. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a dual privacy protection access control method and system based on blockchain, which is implemented through the following technical solutions: A double privacy protection access control method based on blockchain, comprising: Based on the blockchain structure, a system model including entities is constructed, and basic parameters of the system model are defined; Based on the basic parameters, generate a system public key, a system master key and an encryption and decryption key; Register the identity of the data accessor and generate the data accessor's private key after the identity registration is completed; The data owner uses the system public key and encryption and decryption keys to encrypt the data file, generate a ciphertext file and upload it to the cloud storage server; After the data accessor passes the identity authentication and attribute verification, the data file is decrypted and accessed using the encryption and decryption key.
[0006] Furthermore, the construction system model includes: data owner, data accessor, blockchain ledger, cloud storage server, key generation verification center and identity verification center; The basic parameters include: a mapping function, a hash function and a Lagrange interpolation function.
[0007] Furthermore, the data owner is the user who provides the data; The data accessor is a user who wants to access the data stored on the cloud server by the data owner; The blockchain ledger is a data sharing platform with the characteristics of decentralization, traceability, and non-tamperability, and has smart contracts inside; The cloud storage server is a data storage platform; The key generation center is a trusted key distribution platform that uses the SM4 block cipher algorithm; The identity verification center is a trusted identity verification platform; The mapping function, including, the set mapping function needs to satisfy bilinearity, non-degeneracy and computability.
[0008] Furthermore, the system public key and the system master key are generated by inputting the basic parameters into the key generation center, and the system public key format is: ; in, and The order is The multiplicative cyclic group of is the generator of the multiplicative cyclic group, is a random number, is a hash function, is a bilinear mapping function, is the system public key; The system master key format is: ; in, is the system master key; The encryption and decryption keys are generated by the key generation center, and the key format is: ; in, encryption key, is the decryption key.
[0009] Furthermore, the data accessor identity registration should first verify whether the data accessor is credible at the identity verification center. After being confirmed as credible, the identity verification center will generate an identity ID and send it to the data accessor and the blockchain account book; The generating of the data accessor private key includes: when the data accessor satisfies the identity ID, the data owner generates the data accessor private key in the key generation center and sends it to the data accessor, and the format of the private key is: ; in, Represents the authentication ID, is a random number, S is the attribute set of the data owner, is the attribute in the data owner's own attribute set S, represents the number of attributes in the set S, Indicates the number of attributes in the attribute set S, and the number of random numbers used to calculate the corresponding and ; Furthermore, the data owner encrypts the data file using the encryption and decryption key and uploads it to the cloud storage server, including: The data owner uses the encryption and decryption key to encrypt the data file to be uploaded to generate a ciphertext file, and adds a salt value to the ciphertext file to generate a hash string; The data owner matches the encrypted file path stored on the cloud storage server with the hash string through a distributed hash table; The data owner generates a hash ciphertext using a system public key, a hash string and an attribute access structure; After obtaining the hash ciphertext, the data owner puts the hash ciphertext on the chain, and uploads the decryption key, distributed hash table, permission-based attribute set and hash ciphertext to the blockchain account book for subsequent verification.
[0010] Furthermore, the access structure indicates that when data is encrypted by attributes, data accessors with which attributes can decrypt the ciphertext are specified; The hash string ciphertext can only be decrypted when the attribute set possessed by the data accessor satisfies the access structure. ; The generating of hash ciphertext includes: constructing an access control tree based on the access structure, and constructing a hash string ciphertext through the constructed access control tree, the formula is:
[0011] in, is a function, indicating is a leaf node in the access control tree T and is related to The attributes are then associated with each other and hashed again. is a polynomial, is a hash string, For the access control tree.
[0012] Furthermore, the polynomial is confirmed by the root node of the access control tree, and the polynomial is:
[0013] Among them, s is a random number and serves as a hidden secret value; Then, for each node in the access control tree, the polynomial corresponding to each node is calculated from top to bottom. The formula is: = .
[0014] Furthermore, after passing identity authentication and attribute verification, the data accessor uses the encryption and decryption key to decrypt and access the data file, including: The data accessor sends the identity ID to the blockchain account book for identity verification; when the identity ID verification is successful, attribute verification is performed; If the attributes in the identity ID and the data accessor's private key are successfully verified, the root node hidden secret value is restored and the root node is calculated. The result is expressed as: ; After the root node secret value is restored, the hash ciphertext is decrypted to obtain the hash string plaintext. The process is as follows: ; After obtaining the plain text of the hash string, the data accessor enters it into the blockchain account book to verify whether the information is correct; After verifying that the plaintext information of the hash string is correct, the path of the ciphertext file on the cloud storage server is found in the distributed hash table through the hash value, the corresponding ciphertext file is obtained, and the ciphertext file is decrypted with the decryption key to obtain the plaintext data; The method of restoring the root node secret value and calculating the root node uses a recursive algorithm to traverse from bottom to top.
[0015] A dual privacy protection access control system based on blockchain, comprising: a data owner module, a data accessor module, a cloud storage server module, a blockchain account module, a key generation center module and an identity authentication center module, characterized in that: The data owner module provides the required data and uploads the encrypted data to the cloud storage server for storage; generates a user private key for the data accessor based on its own attribute set for attribute authority control, and uploads the decryption key, distributed hash table, and attribute set based on authority to the blockchain ledger module; The data access module obtains a trusted identity through the identity authentication center and receives the user private key transmitted by the data owner to perform identity and attribute dual authority verification; The blockchain ledger module has a smart contract inside, which is used to execute the data accessor authority proof and put the executed transaction records on the chain; The cloud storage server module provides storage resources and computing power for users, and stores user encrypted data files; The key generation center module distributes the generated trusted key pair to each system module; The identity verification center confirms the identity of the data accessor, provides an identity proof ID after successful verification, and sends the identity ID to the data owner module and the blockchain ledger module for subsequent verification.
[0016] Compared with the prior art, the present invention has the following advantages: 1. This invention proposes a dual privacy protection access control method based on blockchain, optimizes the traditional blockchain solution, introduces the on-chain-off-chain storage structure to improve the overall system model, and reduces the pressure of blockchain data storage. By uploading the hash string corresponding to the stored data to the chain, using the national standard SM4 encryption algorithm to encrypt and decrypt the data file, and storing the corresponding encrypted data file on the cloud server, data integrity and data traceability are guaranteed.
[0017] 2. In order to prevent multiple hash collisions when generating hash strings for encrypted data files, a salt value + data file concatenation structure is used to generate hashes to reduce hash collisions.
[0018] 3. Use a dual privacy protection solution to register identity credentials for access users through the identity authentication center to prevent external malicious attackers from anonymously attacking the system; at the same time, use a user attribute-based access control solution for authorized users to ensure that only access users with corresponding attributes granted by the data owner can access the corresponding stored data files, ensuring the correctness of the user identity.
[0019] 4. For the attribute-based access control scheme set for internal users, the attribute encryption method uses an access tree storage structure to store attributes, and uses Lagrange interpolation to calculate attribute eigenvalues to implement attribute-based encryption and decryption operations.
[0020] 5. Introduce the smart contract program of blockchain to verify the data access process of access users through smart contracts to ensure data security, program feasibility, and public results.
[0021] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A flowchart of a dual privacy access control method based on blockchain of the present invention is shown.
[0024] Figure 2 A model diagram of a dual privacy access control system based on blockchain of the present invention is shown. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0026] like Figure 1 As shown, a dual privacy protection access control method based on blockchain includes: S1. Based on the blockchain structure, a system model including entities is constructed and basic parameters of the system model are defined.
[0027] S1.1, the system model includes: data owner, data accessor, blockchain ledger, cloud storage server, key generation verification center and identity verification center; Optionally, the data owner is the user who provides the data; The data accessor is a user who wants to access the data stored on the cloud server by the data owner; The blockchain ledger is a data sharing platform with the characteristics of decentralization, traceability, and non-tamperability, and has smart contracts inside; The cloud storage server provides users with a large amount of storage resources and more efficient computing power to store user encrypted data files; The key generation center is a trusted key distribution platform that uses the SM4 block cipher algorithm; The identity verification center is a trusted identity verification platform.
[0028] S1.2. Based on the system model, define basic parameters.
[0029] Optionally, the basic parameters include a bilinear mapping function, a hash function and a Lagrange interpolation; Optionally, the bilinear mapping function definition includes: assuming that the mapping function is If the mapping : Can meet the following conditions: Bilinear: and , both satisfy .
[0030] Non-degenerate: ,make , where 1 is The unit element of .
[0031] Computability: , there is an effective algorithm to calculate .
[0032] Mapping is a bilinear mapping; otherwise, the mapping e is not a bilinear mapping.
[0033] in and They are respectively prime numbers of order The multiplicative cyclic group of yes The generator of .
[0034] The hash function defines the function , which means that the function can map any attribute value represented by a string to a random group element.
[0035] The Lagrange interpolation is defined as follows:
[0036] S2. Generate system public key, system master key and encryption / decryption key based on the basic parameters S2.1. The key generation center generates a system public key and a system master key by taking the defined basic parameters as input. The system public key format is:
[0037] The system master key format is:
[0038] Optionally, the basic parameter selection order is The multiplicative cyclic group of and , the generator of this multiplicative cyclic group is , define random numbers , define the hash function .
[0039] S2.2. The data owner generates encryption and decryption keys through the key generation center. The key format is:
[0040] Among them is encryption key, is the decryption key.
[0041] S3. Register the identity of the data accessor and generate the data accessor's private key after the identity registration is completed.
[0042] S3.1. The data accessor sends a registration request to the identity authentication center. After receiving the request, the center confirms whether the data accessor is trustworthy based on the previous integrity record. After confirming that the data accessor is a trustworthy user, an identity authentication ID is generated for the data accessor and returned, and the identity ID is sent to the data owner and the blockchain ledger.
[0043] S3.2. When the data accessor meets the identity ID, the data owner generates a data accessor private key for the data accessor through its own attribute set S, system public key, system master key and identity ID. The private key format is:
[0044] in, Represents the authentication ID, is a random number, is the attribute in the attribute set S of the data owner itself, represents the number of attributes in the set S, Indicates the number of attributes in the attribute set S, and the number of random numbers used to calculate the corresponding and .
[0045] S3.3. After the data owner generates the data accessor private key, it is sent to the corresponding data accessor.
[0046] S4. The data owner uses the system public key and encryption and decryption keys to encrypt the data file, generate a ciphertext file and upload it to the cloud storage server; S4.1. The data owner generates an encryption key from the key generation center and encrypts the uploaded data file F to generate a ciphertext file. , for the ciphertext file Reduce hash collisions by adding salt values to generate hash strings .
[0047] S4.2. The data owner sends the encrypted file Upload to the cloud storage server and use the distributed hash table (Hash-Table) to hash the string Ciphertext files stored on cloud storage servers Path to correspond.
[0048] S4.3. The data owner uses the system public key and hash string Generate hash ciphertext with attribute access structure A , the steps include: S4.3.1. Build access control tree T based on access structure A, and for each node in the access control tree Choose a corresponding polynomial .
[0049] Optionally, for the polynomial The confirmation is made by the root node Calculate from top to bottom, for nodes in the access control tree , let the polynomial The order of For Node Threshold ,Right now: .
[0050] S4.3.2. Selecting random numbers As the hidden secret value, from the root node of the access control tree T Start by setting the root node The polynomial is: , and then calculate the polynomial corresponding to each node in the access control tree from top to bottom: = .
[0051] S4.3.3, let N be the set of all nodes in the access control tree T, and the hash ciphertext constructed by the access control tree is: .
[0052] in, is a function, indicating is a leaf node in the access control tree T and is related to The attributes are then associated with each other and hashed again.
[0053] Optionally, the hashed ciphertext can be decrypted only if the set of attributes possessed by the data accessor satisfies the access structure A. .
[0054] Optionally, the access structure A indicates that when data is encrypted by attributes, data accessors with which attributes are able to decrypt the ciphertext file are specified.
[0055] S4.4. After obtaining the hash ciphertext, the data owner will upload the hash ciphertext to the chain, and upload the decryption key, distributed hash table, permission-based attribute set and hash ciphertext to the blockchain ledger for subsequent verification.
[0056] S5. After the data accessor passes identity authentication and attribute authentication, the data file is decrypted and accessed using the encryption and decryption key.
[0057] S5.1. When a data accessor wants to obtain a data file stored on a cloud server by a data owner, the data accessor sends the identity ID to the blockchain account book for identity authentication.
[0058] S5.2. When the identity ID verification is successful, proving that the data accessor is not an external attacking user, the attribute verification is continued; when the attribute value in the data accessor's private key satisfies the access policy in the ciphertext, the secret value s hidden in the root node R is restored, and the root node is calculated. The result is expressed as:
[0059] in, .
[0060] Optionally, restoring the secret value s and calculating the root node includes: (1) Let the node be x, and x is a leaf node. ; a. When , then the calculation formula is:
[0061] in, and are the elements used in the encryption process, Is an attribute The corresponding hash value.
[0062] b. When , it means that the attribute is not in the attribute set corresponding to the data owner's key and the plaintext decryption operation cannot be performed.
[0063] (2) Let the node be x, and x is a non-leaf node. Then take all the child nodes y of node x and use , and the final storage result is , the calculation formula is:
[0064] in, For an arbitrary size Child nodes of The collection of Satisfy the user attribute private key; .
[0065] S5.3. After the root node secret value is restored, the hash ciphertext Decrypt to get the hash string plaintext , the process is:
[0066] S5.4. The data accessor obtains the plaintext hash string After that, the plaintext string is entered into the blockchain ledger. After verifying that the plaintext information of the blockchain ledger string is correct, the decryption key and the distributed hash table are sent to the data accessor. The data accessor uses the hash value to find the path where the encrypted data file is stored on the cloud server in the distributed hash table, obtains the corresponding ciphertext file, and decrypts the ciphertext file using the decryption key, and finally obtains the plaintext data stored on the cloud server by the data owner.
[0067] In summary, the data of the present invention uses an on-chain-off-chain approach to store data.
[0068] First, the key generation center generates a system public key and a system master key for the entire system and distributes them to system entities. The data accessor sends a registration identity request to the authentication center. After confirming that the identity of the data accessor is credible, the authentication center returns the data accessor's identity ID as an authentication credential and uploads the data accessor's identity ID to the smart contract for subsequent verification; at the same time, the authentication center sends the data accessor's identity ID to the data owner. The data owner generates a user private key based on the data accessor through the attribute set S, and sends the private key to the data accessor as an attribute access credential.
[0069] Secondly, the data owner encrypts the data file through SM4, and generates a hash string for the encrypted file by adding a salt value to prevent hash collision, and stores it in a distributed hash table so that the hash string corresponds one-to-one with the corresponding encrypted data file.
[0070] Then, the data owner encrypts the hash value through the system public key and the attribute-based access mechanism to generate a hash ciphertext, and then the data owner uploads the hash ciphertext to the chain, and the SM4 encrypted data file is stored in the cloud server. The data owner uploads the SM4 decryption key, distributed hash table, and permission-based attribute set to the smart contract for subsequent verification.
[0071] When a data accessor wants to obtain information stored on the cloud server by the data owner, he first uploads his identity ID to the smart contract, and the smart contract executes relevant procedures. After confirming that his identity is correct, the data accessor uploads the hash ciphertext stored on the blockchain, his own private key, and the system public key as parameters to the smart contract, and the smart contract executes relevant procedures. If the data accessor meets the attribute access rights set by the data owner, the hash plaintext is obtained, and the SM4 decryption key is sent to the data accessor. The data accessor uses the hash value to find the path where the encrypted data file is stored on the cloud server, obtains the corresponding ciphertext file, and decrypts the file using the SM4 decryption key, and finally obtains the data plaintext stored on the cloud server by the data owner.
[0072] like Figure 2 As shown, a dual privacy protection access control system based on blockchain includes: a data owner module (Do), a data accessor module (Du), a cloud storage server module (CSP), a blockchain ledger module (BlockchainLedger), a key generation center module (KGC) and an authentication center module (AC).
[0073] The data owner module (Do) provides the required data, and uploads the data to the cloud storage server after encrypting it through SM4, generates a corresponding hash value, and stores it in the form of a distributed hash table; generates a user private key for the data accessor based on its own attribute set for attribute authority control, and uploads the SM4 decryption key, distributed hash table, and attribute set based on authority to the smart contract for subsequent verification; The data access module (Du) obtains a trusted identity through the identity authentication center and receives the user private key transmitted by the data owner to perform identity and attribute dual authority verification; The blockchain ledger module has a smart contract inside, which is used to execute the data accessor authority proof and put the executed transaction records on the chain to achieve data traceability; The cloud storage server module (CSP) provides users with a large amount of storage resources and more efficient computing power to store user encrypted data files; The key generation center module (KGC) distributes the generated trusted key pair to each system element; The authentication center (AC) confirms the identity of the data accessor, provides an identity proof ID after successful verification, and sends the identity ID to the data owner and the blockchain for subsequent verification.
[0074] The above description and the accompanying drawings fully illustrate the embodiments of the present invention so that those skilled in the art can practice them. Other embodiments may include structural and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The embodiments of the present invention are not limited to the structures described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A dual privacy protection access control method based on blockchain, characterized in that: The control method comprises: Based on the blockchain structure, a system model including entities is constructed, and basic parameters of the system model are defined; Based on the basic parameters, generate a system public key, a system master key and an encryption and decryption key; Register the identity of the data accessor and generate the data accessor's private key after the identity registration is completed; The data owner uses the system public key and encryption and decryption keys to encrypt the data file, generate a ciphertext file and upload it to the cloud storage server; After the data accessor passes the identity authentication and attribute verification, the data file is decrypted and accessed using the encryption and decryption key.
2. According to the blockchain-based dual privacy protection access control method of claim 1, it is characterized in that: The system model is constructed, including: data owner, data accessor, blockchain ledger, cloud storage server, key generation verification center and identity verification center; The basic parameters include: a mapping function, a hash function and a Lagrange interpolation function.
3. According to claim 2, the dual privacy protection access control method based on blockchain is characterized in that: The data owner is the user who provides the data; The data accessor is a user who wants to access the data stored on the cloud server by the data owner; The blockchain ledger is a data sharing platform with the characteristics of decentralization, traceability, and non-tamperability, and has smart contracts inside; The cloud storage server is a data storage platform; The key generation center is a trusted key distribution platform that uses the SM4 block cipher algorithm; The identity verification center is a trusted identity verification platform; The mapping function, including, the set mapping function needs to satisfy bilinearity, non-degeneracy and computability.
4. According to the blockchain-based dual privacy protection access control method of claim 1, it is characterized in that: The generating of the system public key, the system master key and the encryption and decryption key comprises: The system public key and system master key are generated by inputting the basic parameters into the key generation center. The system public key format is: ; in, and The order is The multiplicative cyclic group of is the generator of the multiplicative cyclic group, is a random number, is a hash function, is a bilinear mapping function, is the system public key; The system master key format is: ; in, is the system master key; The encryption and decryption keys are generated by the key generation center, and the key format is: ; in, encryption key, is the decryption key.
5. According to the blockchain-based dual privacy protection access control method of claim 1, it is characterized in that: The data accessor is registered, and after the identity registration is completed, a data accessor private key is generated. include, The data accessor identity registration should first verify whether the data accessor is trustworthy at the identity verification center. After confirmation, the identity verification center will generate an identity ID and send it to the data accessor and the blockchain account book; The generating of the data accessor private key includes: when the data accessor satisfies the identity ID, the data owner generates the data accessor private key in the key generation center and sends it to the data accessor, and the format of the private key is: ; in, Represents the authentication ID, is a random number, S is the attribute set of the data owner, is the attribute in the data owner's own attribute set S, represents the number of attributes in the set S, Indicates the number of attributes in the attribute set S, and the number of random numbers used to calculate the corresponding and .
6. The double privacy protection access control method based on blockchain according to claim 1 is characterized in that: The data owner encrypts the data file using the encryption and decryption key and uploads it to the cloud storage server, including: The data owner uses the encryption and decryption key to encrypt the data file to be uploaded to generate a ciphertext file, and adds a salt value to the ciphertext file to generate a hash string; The data owner matches the encrypted file path stored on the cloud storage server with the hash string through a distributed hash table; The data owner generates a hash ciphertext using a system public key, a hash string and an attribute access structure; After obtaining the hash ciphertext, the data owner puts the hash ciphertext on the chain, and uploads the decryption key, distributed hash table, permission-based attribute set and hash ciphertext to the blockchain account book for subsequent verification.
7. The double privacy protection access control method based on blockchain according to claim 6 is characterized in that: The attribute access structure indicates that when data is attribute encrypted, it specifies which attributes the data accessor has to be able to decrypt the ciphertext; The hash string ciphertext can only be decrypted when the attribute set possessed by the data accessor satisfies the access structure. ; The generating of hash ciphertext includes: constructing an access control tree based on the access structure, and constructing a hash string ciphertext through the constructed access control tree, the formula is: in, is a function, indicating is a leaf node in the access control tree T and is related to The attributes are then associated with each other and hashed again. is a polynomial, is a hash string, For the access control tree.
8. The double protection access control method based on blockchain according to claim 7 is characterized in that: The polynomial is confirmed by the root node of the access control tree, and the polynomial is: Among them, s is a random number and serves as a hidden secret value; Then, for each node in the access control tree, the polynomial corresponding to each node is calculated from top to bottom. The formula is: = 。 9. The double privacy protection access control method based on blockchain according to claim 1 is characterized in that: After passing identity authentication and attribute authentication, the data accessor uses the encryption and decryption key to decrypt and access the data file, including: The data accessor sends the identity ID to the blockchain account book for identity verification; when the identity ID verification is successful, attribute verification is performed; If the attributes in the identity ID and the data accessor's private key are successfully verified, the root node hidden secret value is restored and the root node is calculated. The result is expressed as: ; After the root node secret value is restored, the hash ciphertext is decrypted to obtain the hash string plaintext. The process is as follows: ; After obtaining the plain text of the hash string, the data accessor enters it into the blockchain account book to verify whether the information is correct; After verifying that the plaintext information of the hash string is correct, the path of the ciphertext file on the cloud storage server is found in the distributed hash table through the hash value, the corresponding ciphertext file is obtained, and the ciphertext file is decrypted with the decryption key to obtain the plaintext data; The method of restoring the root node secret value and calculating the root node uses a recursive algorithm to traverse from bottom to top.
10. A dual privacy protection access control system based on blockchain, comprising: The data owner module, the data accessor module, the cloud storage server module, the blockchain account module, the key generation center module and the identity authentication center module are characterized by: The data owner module provides the required data and uploads the encrypted data to the cloud storage server for storage; generates a user private key for the data accessor based on its own attribute set for attribute authority control, and uploads the decryption key, distributed hash table, and attribute set based on authority to the blockchain ledger module; The data access module obtains a trusted identity through the identity authentication center and receives the user private key transmitted by the data owner to perform identity and attribute dual authority verification; The blockchain ledger module has a smart contract inside, which is used to execute the data accessor authority proof and put the executed transaction records on the chain; The cloud storage server module provides storage resources and computing power for users, and stores user encrypted data files; The key generation center module distributes the generated trusted key pair to each system module; The identity verification center confirms the identity of the data accessor, provides an identity proof ID after successful verification, and sends the identity ID to the data owner module and the blockchain ledger module for subsequent verification.
Citation Information
Patent Citations
Multi-cloud CP-ABE access control method based on block chain
CN111130757A
Electronic medical record fine-grained access control and ciphertext searchable method based on block chain
CN112365945A
Multi-authorization attribute-based verifiable encryption method based on block chain
CN114143094A
Fine-grained cloud data access control method fusing time and position attributes
CN114239062A
Block chain data encryption method and system, and block chain data decryption method, device and equipment
CN114244838A
Cited By
Business and financial integrated intelligent control and analysis management system
CN120632921A
File hierarchical ciphertext strategy attribute-based encryption method and system and electronic equipment
CN121711196A
