The invention relates to the technical field of artificial intelligence and block chain, and discloses a method for realizing a home lodging management system based on a block chain, which includes aregistration module, a login module, an information adding module, an identification detection module, an information checking and comparing module, a query module, a POW/POS consensus mechanism module, a SHA operation module, a Hash value, a block chain module, a home lodging management system and a room door lock. The output end of the registration module is electrically connected with the inputend of the information addition module, and the output end of the information addition module is electrically connected with the input end of the identification and detection module. The invention utilizes the decentralization technology in the block chain technology, According to the non-tampering and non-forgery technical characteristics of the block chain, through the compulsory identificationauthentication of the Internet lock authentication of identity information, to ensure the real name system to stay in the lodging, so that the information is more secure and reliable, so as to createa more convenient, fast, safe and efficient lodging management system.