Intelligent community space access authority automatic management system based on block chain
By introducing blockchain technology and smart contracts into the community access control system, a decentralized access rights management system is constructed, which solves the problems of untimely update of permissions and low security in traditional access control systems, and achieves efficient and transparent access rights. Management ensures data security and management efficiency.
Patent Information
- Application Number
- CN202411134111.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-09-17
AI Technical Summary
Traditional access control methods such as physical keys or cards cannot meet the needs of modern security management. The existing electronic access control system has problems such as untimely permission updates, easy forgery, easy data tampering, low audit efficiency, and insufficient transparency.
Adopt a blockchain-based smart community space access rights automatic management system, including the blockchain network layer, smart contract layer and application layer. Access control data is stored and verified through the decentralized network of the blockchain, and smart contracts realize the automation of permissions. Management, providing user interface and system operation interface for application, approval and query of permissions.
The security and credibility of access permission data are ensured through the non-tampering characteristics of the blockchain, automatic review of permission applications is realized, manual intervention is reduced, management efficiency is improved, and security and transparency are improved.
Smart Images

Figure CN118659871A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of community security systems, and specifically relates to an automated management system for access rights to smart community spaces based on blockchain. Background Art
[0002] The entrance and exit of the community can be controlled by door card recognition or face recognition. Door card recognition has the timeliness of the door response when entering and exiting the community, while face recognition has the security and portability of entering the community, which can effectively avoid the phenomenon of being unable to enter the door after losing the door card; in addition, there are some access control management systems in the prior art that automatically open and close doors through infrared sensors. This system can accurately control the opening and closing of the door according to the distance of the person, but while providing the convenience of opening and closing the door, it will also cause illegal intrusion by people outside the community, and the security is relatively low. With the development of smart communities, spatial access rights management has become increasingly important.
[0003] Traditional community space access rights management exists. With the development of smart communities, traditional access control methods such as physical keys or cards can no longer meet the needs of modern security management. Existing electronic access control systems mostly use centralized databases and manual review methods, which have problems such as untimely permission updates, easy forgery, easy data tampering, low review efficiency, and lack of transparency. Summary of the invention
[0004] The purpose of the present invention is to provide an automated management system for access rights of smart community spaces based on blockchain, aiming to solve the problem that access control methods such as physical keys or cards in the prior art can no longer meet the needs of modern security management. Existing electronic access control systems mostly use centralized databases and manual review methods, which have problems such as untimely permission updates, easy forgery, easy data tampering, low review efficiency, and insufficient transparency.
[0005] To achieve the above object, the present invention provides the following technical solutions: A blockchain-based automated management system for access rights of smart community spaces, including an intelligent access control device. The system also includes a blockchain network layer, a smart contract layer, and an application layer. The blockchain network layer is used to build a decentralized blockchain network for storing and verifying access control data. The smart contract layer is used to design smart contracts to achieve automated management of access control rights. The application layer provides a user interface and a system operation interface for application, approval, and query of access control rights.
[0006] As a preferred solution of the present invention, the blockchain network layer is provided with: Consensus module, which is used to implement the consensus mechanism in the network; Network communication module, which is used for communication and data transmission between nodes; A data storage module that stores transaction records and status data on the blockchain; Encryption module, which is used for data encryption and decryption to ensure data security; The authentication module is used to verify the node identity; The permission management module is used to manage the access rights of nodes and distinguish the operation permissions of different roles; A transaction verification module, which is used to verify the validity of the transaction; and The block generation module is used to package transactions into blocks and add them to the blockchain.
[0007] As a preferred solution of the present invention, the smart contract layer is provided with: Smart contract deployment module, which is used to deploy smart contract code to the blockchain network; Smart contract execution module, which is used to execute smart contract code, process transactions and logic; A state management module, which is used to manage the state changes of smart contracts; and The event log module is used to record events during the execution of smart contracts.
[0008] As a preferred solution of the present invention, the application layer is provided with: A user interface module, which is used to provide a user operation interface; Administrator interface module, which is used for administrator operation interface; Access control interface module, which is used to communicate with intelligent access control equipment and send instructions; A permission request processing module, which is used to process user permission requests; The access record management module is used to record and manage the user's access records. The calculation formula is: , Where: Let the number of access records be is the time period, is the average access record growth rate; Notification and alarm module, which is used to send notification and alarm information; and The data analysis and reporting module is used to analyze access data and generate decision-making reports.
[0009] As a preferred solution of the present invention, in the consensus module, the consensus module adopts a consensus algorithm to ensure that all nodes in the network reach a consensus on transactions and data. The consensus algorithm is one or more combinations of PoW, PoS and DPoS, and the nodes determine the generation of new blocks through algorithm competition.
[0010] As a preferred solution of the present invention, the encryption module comprises the following steps when applied: Step A1, data generation: the user or system generates the data to be encrypted; Step A2, key generation: the system generates a pair of public and private keys for each user; Step A3, encryption process: digitally sign the data using the private key and encrypt the data using the public key; Step A4, data transmission: the encrypted data is transmitted in the network; Step A5, decryption verification: The receiver uses the sender's public key to decrypt the data and uses the sender's public key to verify the validity of the digital signature.
[0011] As a preferred solution of the present invention, the encryption process and the decryption verification adopt an asymmetric encryption algorithm, and the specific algorithm is as follows: Encryption process, = e mod n; Decryption verification, = e mod n; In the formula, is plain text, is the ciphertext, e and d are the exponents of the public and private keys, and n is the modulus.
[0012] As a preferred solution of the present invention, after the user submits a permission request, the permission request processing module in the application layer sends the request to the smart contract to verify the user's request. The verification steps are as follows: Step B1: The user submits a permission request through the user interface of the application layer; Step B2, generating a transaction, the permission request processing module converts the user's request into a blockchain transaction; Step B3, signing the transaction, the user signs the transaction using his private key; Step B4, sending the transaction, the permission request processing module broadcasts the signed transaction to the blockchain network, and the nodes in the network include the transaction in the block and prepare for verification; Step B5, smart contract verification, the verifier mines the block and adds it to the blockchain, and the smart contract code is triggered and executed.
[0013] As a preferred solution of the present invention, the signature formula is: Signature=Sign(Hash(Transaction),PrivateKey).
[0014] As a preferred solution of the present invention, in step B4, if the smart contract verification fails, the smart contract will reject the request, record the reason for the failure through the event log module, and store the failure record log.
[0015] Compared with the prior art, the present invention has the following beneficial effects: In this solution, the immutable nature of blockchain is utilized to ensure the security and credibility of access permission data, and smart contracts are used to automate the review of permission applications, thereby reducing manual intervention and improving management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 This is a system block diagram of an automated management system for access rights to smart community spaces based on blockchain in the present invention; Figure 2 It is a module block diagram at the blockchain network layer in the present invention; Figure 3 It is a module block diagram at the smart contract layer in the present invention; Figure 4 This is a module block diagram at the application layer in the present invention. DETAILED DESCRIPTION
[0017] 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.
[0018] See also Figure 1-Figure 4 , the present invention provides the following technical solutions: A blockchain-based automated management system for access rights of smart community spaces, including intelligent access control devices. The system also includes a blockchain network layer, a smart contract layer, and an application layer. The blockchain network layer is used to build a decentralized blockchain network for storing and verifying access control data, and for designing smart contracts to achieve automated management of access control rights. The application layer provides a user interface and a system operation interface for application, approval, and query of access control rights.
[0019] In a specific embodiment of the present invention, the blockchain network layer is used to build a decentralized blockchain network for storing and verifying access control data. The smart contract layer can design smart contracts to realize automated management of access control rights. The application layer can provide a user interface and a system operation interface for application, approval and query of access control rights. When applying, the access control management smart contract is first deployed in the blockchain network. Community residents register accounts through the system, submit identity authentication information, and enter biometric features. The biometric features can be fingerprints or facial features. The system administrator reviews the identity of the residents and assigns access control rights to them. Residents initiate access control requests through mobile devices or access control terminals. The smart contract automatically verifies the requester's authority and controls the switch of the access control device based on whether the verification is passed. The decentralization and immutability of blockchain technology are used in the present invention to ensure the authenticity and security of access control data. Access control right verification is automatically executed through smart contracts to reduce human intervention and improve management efficiency. The smart access control device includes a surveillance camera, an access control switch and a controller, which facilitates auditing and tracing through real-time monitoring and recording functions.
[0020] Specifically, the blockchain network layer is set up with: The consensus module is used to implement the consensus mechanism in the network. It is responsible for maintaining the consensus mechanism in the blockchain network and ensuring that all nodes have consistent recognition of transactions and data. The consensus module uses a consensus algorithm to ensure that all nodes in the network reach a consensus on transactions and data. The consensus algorithm is one or more combinations of PoW, PoS and DPoS. Nodes decide the generation of new blocks through algorithm competition.
[0021] Network communication module, which is used for communication and data transmission between nodes, adopts P2P network protocol. After the node joins the network, it exchanges data by broadcasting and receiving messages; The data storage module stores transaction records and status data on the blockchain, and uses distributed ledger technology to permanently store data in the form of blocks on the node; The encryption module is used for data encryption and decryption. It uses public and private keys to encrypt and decrypt data, and uses hash functions to ensure data integrity and practically guarantee data security. The authentication module is used to verify the identity of nodes and prevent unauthorized nodes from joining the network. It uses digital certificates or other authentication mechanisms. Nodes need to provide valid credentials to join the network. The permission management module is used to manage the access rights of nodes, distinguish the operation rights of different roles, define permission policies, assign permissions to different roles, and the nodes perform corresponding operations according to the permissions; Transaction verification module, which is used to verify the validity of transactions, including signature, balance and permission checks, checking the transaction signature, sender balance, permissions, etc., to ensure that the transaction complies with the rules; The block generation module is used to package transactions into blocks and add them to the blockchain, create new blocks and add them to the blockchain, collect transactions through nodes, create block headers, and add blocks to the chain through a consensus algorithm.
[0022] Specifically, the smart contract layer is set up with: Smart contract deployment module, which is used to deploy smart contract code to the blockchain network. By writing smart contract code, it is deployed to the network through the blockchain client; Smart contract execution module, which is used to execute smart contract code, process transactions and logic. When used, the user or system triggers the smart contract function, and the smart contract automatically executes the predefined logic; A state management module, which is used to manage and track the state changes of smart contracts. After the smart contract is executed, the contract state is updated and stored on the blockchain; and The event log module is used to record events during the execution of smart contracts. Smart contracts emit events during execution, and the events are recorded on the blockchain and can be queried.
[0023] Specifically, the application layer is configured with: The user interface module is used to provide a user operation interface through which users can register, log in, apply for permissions, etc. Administrator interface module, which is used for administrator operation interface, administrator login interface, reviewing user information, and allocating and adjusting permissions; The access control interface module is used to communicate with the smart access control device and send instructions. The access control interface module receives instructions from the smart contract and controls the switch of the access control device. The permission request processing module is used to process user permission requests. When a user submits a permission request, the module sends the request to the smart contract for verification; The access record management module is used to record and manage the user's access records. When an access event occurs, the module records the detailed information and stores it on the blockchain. The calculation formula is: , Where: Let the number of access records be is the time period, is the average access record growth rate; The system first needs to collect the number of access records at the initial time point This is achieved through the immutable data records on the blockchain. At the same time, the system needs to continuously monitor and record the number of access records in each time period and calculate the average access record growth rate. At the end of each preset time period, the system calculates the average access record growth rate within that period based on the collected data. , calculated by comparing the number of access records in the current cycle with the number of access records in the previous cycle, and the system uses the calculated average access record growth rate and preset future time periods , through the formula Predict the number of access records at a future point in time ,Based on the prediction results, the system can automatically adjust the access permission management ,strategy, resource allocation plan, and security management measures.
[0024] When this system is applied, the system is allowed to be based on historical data (the number of initial access records and average access record growth rate ) to predict a future time period The number of access records within This predictive capability plans resources and adjusts security measures in advance, optimizes user experience, and improves planning resources by predicting future visits, reducing resource investment to reduce costs. By comparing the growth rate of visit records in different time periods, different regions or different user groups, managers can evaluate the effectiveness of community policies, facility layouts, event arrangements, etc., and make adjustments and optimizations accordingly.
[0025] Notification and alarm module, which is used to send notification and alarm information. When the system detects a specific event, it notifies relevant people through email, SMS, etc., so that emergencies can be handled in a timely manner; and The data analysis and reporting module is used to analyze access data and generate decision reports, regularly analyze access records on the blockchain, and generate statistical reports for management reference.
[0026] Specifically, in the consensus module, the consensus module uses a consensus algorithm to ensure that all nodes in the network reach a consensus on transactions and data. The consensus algorithm is one or more combinations of PoW, PoS, and DPoS. Nodes decide the generation of new blocks through algorithm competition.
[0027] Specifically, the encryption module application includes the following steps: Step A1, data generation: the user or system generates data that needs to be encrypted, such as transaction information, identity verification information, etc. Step A2, key generation: the system generates a pair of public and private keys for each user; Step A3, encryption process: Use the private key to digitally sign the data, the signature formula is: Signature = Sign (Hash (Transaction), PrivateKey), and use the public key to encrypt the data; Step A4, data transmission: the encrypted data is transmitted in the network; Step A5, decryption verification: The receiver uses the sender's public key to decrypt the data and uses the sender's public key to verify the validity of the digital signature.
[0028] The encryption module uses symmetric encryption algorithms (such as AES), asymmetric encryption algorithms (such as RSA, ECDSA) and hash algorithms (such as SHA-256) for encryption. Symmetric encryption algorithms (such as AES) are used to encrypt data, asymmetric encryption algorithms are used for key exchange and digital signatures, and hash algorithms are used to generate data summaries. Specifically, the encryption process and decryption verification use an asymmetric encryption algorithm, the specific algorithm is as follows: Encryption process, = e mod n; Decryption verification, = e mod n; In the formula, is plain text, is the ciphertext, e and d are the exponents of the public and private keys, and n is the modulus; Using a symmetric encryption algorithm, the calculation formula is as follows: Encryption: C=AES_ENC(P,K), Decryption: P=AES_DEC(C,K), Among them, C is the ciphertext, P is the plaintext, and K is the key; Using the hash function algorithm, the calculation formula is as follows: H=SHA-256(M) where H is the hash value and M is the message; In this embodiment: encryption is used to ensure the confidentiality of data during transmission and storage, a hash function is used to ensure that the data has not been tampered with, a digital signature is used to verify the identity of the data sender, an asymmetric encryption algorithm ensures the secure exchange of keys, and a symmetric encryption algorithm uses the AES algorithm to encrypt user data (such as access control permission information). The encrypted data can be securely stored and transmitted on the blockchain. In the asymmetric encryption algorithm, the user generates an RSA key pair, the private key is kept confidential, and the public key is made public. The user uses the private key to digitally sign the transaction to verify the identity, and the system uses the user's public key to verify the validity of the signature; in the hash function, the transaction data is hashed with SHA-256 to generate a fixed-length summary, and the hash value is used to verify the integrity of the data and that it has not been tampered with.
[0029] Specifically, after the user submits a permission request, the permission request processing module in the application layer sends the request to the smart contract to verify the user's request. The verification steps are as follows: Step B1, the user submits a permission request through the user interface of the application layer, such as requesting access to a specific area or door access; Step B2, generating a transaction. The permission request processing module converts the user's request into a blockchain transaction. The transaction contains the user's identity information, the requested permission type, the requested timestamp, etc.; Step B3, Sign the transaction. The user signs the transaction with his private key to ensure the authenticity and non-repudiation of the transaction. The signature formula is: Signature = Sign (Hash (Transaction), PrivateKey); Step B4, sending the transaction, the permission request processing module broadcasts the signed transaction to the blockchain network, and the nodes in the network include the transaction in the block and prepare for verification; Step B5, smart contract verification, the verifier mines the block and adds it to the blockchain, the smart contract code is triggered and executed, and the smart contract checks the signature of the transaction, the user's permission status, and the validity of the request.
[0030] In this embodiment: the permission request processing module submits the request by calling the function of the smart contract, and the calling method is usually to send a transaction to the address of the smart contract. In step B4, if the smart contract verification fails, the smart contract will reject the request and record the reason for the failure through the event log module, and store the failure record log. The system will notify the user of the verification failure and may provide the reason for the failure. The user can take corresponding measures accordingly, such as resubmitting the request or contacting the administrator. The system may trigger a security audit process to check whether there are security vulnerabilities or malicious behavior.
[0031] In the present invention, the blockchain network layer constructs a distributed ledger based on the blockchain, stores all data related to access rights, ensures the immutability and transparency of the data, and is deployed on the blockchain to define and execute the business logic of access rights management, such as permission application, review, authorization, etc. Blockchain technology is used to generate a unique identity for each resident, and bind it to the account on the blockchain to achieve identity security verification. Permission application and review module: residents submit access rights applications through the system, and the smart contract automatically reviews the application according to preset rules, and records the review results on the blockchain. Access control module: combined with the Internet of Things technology, the access control system, cameras and other equipment in the community are integrated, and the access rights of the equipment are controlled according to the permission information on the blockchain.
[0032] The system in the present invention is composed of a blockchain network layer, a smart contract layer and an application layer, wherein the blockchain network layer can provide a decentralized, tamper-proof data storage and transmission platform, ensure the transparency and traceability of all transaction records and status data, adopt a consensus algorithm to maintain the consistency and security of the network, protect the security and privacy of data transmission through an encryption module, and use a network communication module to achieve data synchronization and broadcasting between nodes; it not only improves the security of data storage, but also prevents data from being tampered with. Through a decentralized structure, it reduces the risk of single point failures and enhances the transparency and trust of the system; the smart contract layer executes business logic, automatically processes permission requests and verifications, ensures the transparency and tamper-proofness of permission allocation and changes, deploys smart contracts to encode permission logic and rules, and processes permission requests through smart contract function calls The smart contract layer realizes the automation of permission management, reduces human errors and delays, and improves the auditability of the system and reduces the operating costs of the system through the transparent execution of smart contracts. The application layer can provide an interface for users and administrators to interact with the system, process user input and system output, and realize functions such as access control. Through the user interface module, users can submit permission requests, query access records, etc. The administrator interface module allows administrators to review permissions, assign permissions and monitor system status. The access control interface module connects with smart access control devices to execute door opening or closing commands, which not only improves the user experience, but also allows users to easily manage their permissions and access records. Administrators can efficiently manage permissions and respond to permission requests in a timely manner. By connecting with physical devices, the access control system is automated and intelligent. When the three layers are combined, the decentralization and immutability of blockchain, the automated execution of smart contracts, and the user interface and device control of the application layer ensure the security of the entire system. All system operations are transparently recorded on the blockchain, which enhances the trust between users and administrators. Smart contracts automatically handle permission requests, reducing management costs and increasing processing speed. The system design allows for easy expansion and maintenance, adapting to the increase and decrease of community size and technological advances. The user interface of the application layer simplifies the user's operation process and improves ease of use. Through the collaborative work of these three levels, the blockchain-based community access control automation management system not only ensures security and transparency, but also provides an efficient and convenient user experience, bringing better improvements to community security management.
[0033] Finally, it should be noted that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A blockchain-based automated management system for access rights to smart community spaces, including smart access control devices, It is characterized in that The system also includes a blockchain network layer, a smart contract layer and an application layer. The blockchain network layer is used to build a decentralized blockchain network for storing and verifying access control data. The smart contract layer is used to design smart contracts to achieve automated management of access control permissions. The application layer provides a user interface and a system operation interface for application, approval and query of access control permissions.
2. According to claim 1, a blockchain-based smart community space access rights automation management system, It is characterized in that The blockchain network layer is provided with: Consensus module, which is used to implement the consensus mechanism in the network; Network communication module, which is used for communication and data transmission between nodes; A data storage module that stores transaction records and status data on the blockchain; Encryption module, which is used for data encryption and decryption to ensure data security; The authentication module is used to verify the node identity; The permission management module is used to manage the access rights of nodes and distinguish the operation permissions of different roles; A transaction verification module, which is used to verify the validity of the transaction; and The block generation module is used to package transactions into blocks and add them to the blockchain.
3. According to claim 1, a blockchain-based smart community space access rights automation management system, It is characterized in that The smart contract layer is provided with: Smart contract deployment module, which is used to deploy smart contract code to the blockchain network; Smart contract execution module, which is used to execute smart contract code, process transactions and logic; A state management module, which is used to manage the state changes of smart contracts; and The event log module is used to record events during the execution of smart contracts.
4. According to claim 1, a blockchain-based smart community space access rights automation management system, It is characterized in that The application layer is provided with: A user interface module, which is used to provide a user operation interface; Administrator interface module, which is used for administrator operation interface; Access control interface module, which is used to communicate with intelligent access control equipment and send instructions; A permission request processing module, which is used to process user permission requests; The access record management module is used to record and manage the user's access records. The calculation formula is: , Where: Let the number of access records be is the time period, is the average access record growth rate; Notification and alarm module, which is used to send notification and alarm information; and The data analysis and reporting module is used to analyze access data and generate decision-making reports.
5. According to claim 2, a blockchain-based smart community space access rights automation management system, It is characterized in that In the consensus module, the consensus module adopts a consensus algorithm to ensure that all nodes in the network reach a consensus on transactions and data. The consensus algorithm is one or more combinations of PoW, PoS and DPoS. The nodes determine the generation of new blocks through algorithm competition.
6. According to claim 2, a blockchain-based smart community space access rights automation management system, It is characterized in that The encryption module comprises the following steps when used: Step A1, data generation: the user or system generates the data to be encrypted; Step A2, key generation: the system generates a pair of public and private keys for each user; Step A3, encryption process: digitally sign the data using the private key and encrypt the data using the public key; Step A4, data transmission: the encrypted data is transmitted in the network; Step A5, decryption verification: The receiver uses the sender's public key to decrypt the data and uses the sender's public key to verify the validity of the digital signature.
7. According to claim 6, a blockchain-based smart community space access rights automation management system, It is characterized in that The encryption process and the decryption verification adopt an asymmetric encryption algorithm, and the specific algorithm is as follows: Encryption process, C= e mod n; Decryption verification, M= e mod n; Where M is the plaintext, C is the ciphertext, e and d are the exponents of the public and private keys, and n is the modulus.
8. According to claim 7, a blockchain-based smart community space access rights automation management system, It is characterized in that After the user submits a permission request, the permission request processing module in the application layer sends the request to the smart contract to verify the user's request. The verification steps are as follows: Step B1: The user submits a permission request through the user interface of the application layer; Step B2, generating a transaction, the permission request processing module converts the user's request into a blockchain transaction; Step B3, signing the transaction, the user signs the transaction using his private key; Step B4, sending the transaction, the permission request processing module broadcasts the signed transaction to the blockchain network, and the nodes in the network include the transaction in the block and prepare for verification; Step B5, smart contract verification, the verifier mines the block and adds it to the blockchain, and the smart contract code is triggered and executed.
9. According to claim 8, a blockchain-based smart community space access rights automation management system, It is characterized in that The signature formula is: Signature=Sign(Hash(Transaction),PrivateKey).
10. According to claim 9, a blockchain-based smart community space access rights automation management system, It is characterized in that In step B4, if the smart contract verification fails, the smart contract will reject the request, record the reason for the failure through the event log module, and store the failure record log.
Citation Information
Patent Citations
Block chain-based intelligent home control method and block chain-based intelligent home control system
CN107942718A
Intelligent door access control apparatus based on blockchain technology
CN109493468A
Construction equipment authority management method and system
CN111970302A
Cited By
Government affair data sharing and security evidence storage system based on block chain
CN120408583A
Government data sharing and secure evidence storage system based on blockchain
CN120408583B
