Hotel intelligent reservation and supply chain collaborative management method and system based on block chain
Through the smart contracts and zero-knowledge proof of blockchain technology, combined with encrypted tokens and on-chain evidence identification, the problems of high trust costs and cumbersome payment links in the traditional hotel booking process are solved, the security and automation of hotel booking information are achieved, and the efficiency and coordination of the booking process are improved.
Patent Information
- Application Number
- CN202510536448.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-09-26
AI Technical Summary
The traditional hotel booking process has high trust costs, cumbersome payment procedures, and lacks transparency and automation.
Using blockchain technology, we achieve transparency and automation of booking information through smart contracts and zero-knowledge proof, combine encrypted tokens and on-chain evidence identification to ensure information security, and use a layered hybrid blockchain architecture to manage hotel booking and supply chain data.
It realizes the security of hotel reservation information and the automation of transaction process, improves the efficiency and coordination of the reservation process, prevents forged reservations and illegal transfers, and ensures user privacy and transaction reliability.
Smart Images

Figure CN120706599A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hotel intelligent management, and in particular to a blockchain-based hotel intelligent reservation and supply chain collaborative management method and system. Background Art
[0002] With the booming tourism industry and increasingly fierce competition in the hotel industry, customers are increasingly demanding booking convenience, transparency, and service quality. Traditional hotel booking processes present numerous challenges, such as high trust costs and cumbersome payment procedures. Blockchain technology, with its decentralized, tamper-proof, and transparent nature, can address these issues. In smart booking, leveraging blockchain's smart contract technology can achieve transparent booking information and automated transaction processes. In the supply chain, blockchain enables real-time sharing and traceability of data across all links, improving efficiency and collaboration.
[0003] In view of this, it is necessary to provide a smart booking method that uses the smart contract technology of blockchain to achieve transparency of booking information and automated transaction processes. Summary of the Invention
[0004] To address the high trust costs and cumbersome payment processes in the traditional hotel reservation process, this invention provides a blockchain-based hotel intelligent reservation and supply chain collaborative management method and system, which can achieve the security of hotel reservation information and automated transaction processes, improving efficiency and collaboration. The specific technical solution is as follows:
[0005] This application provides a blockchain-based hotel smart reservation and supply chain collaborative management method, including:
[0006] The first user terminal initiates a reservation request to the hotel server, generating encrypted reservation information including room attributes, time interval, and the first user's decentralized identity;
[0007] After receiving the reservation request, the hotel server generates a dynamic token and a corresponding zero-knowledge proof, calculates the on-chain proof identifier, and writes the on-chain proof identifier and zero-knowledge proof into the reservation block of the first blockchain;
[0008] When the first user terminal initiates a room transfer, the room status corresponding to the on-chain evidence identifier in the first blockchain is verified, and the room status is marked to generate a transfer smart contract address;
[0009] After the second user terminal sends a transfer request to the transfer smart contract address, the first user terminal generates a token transfer certificate. After the transfer smart contract address verifies the token transfer certificate, it uses the second user terminal public key to encrypt the token to obtain a second user encrypted token. The second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain.
[0010] By verifying the supply chain-related logistics node data of the second blockchain and synchronously checking the hotel room inventory status, if both the logistics node data and the inventory status meet the requirements, the room status of the first blockchain is updated to the transferred status, and the supply chain resource lock is released. A transfer completion certificate is generated on the second blockchain and sent to the first user terminal and the second user terminal respectively.
[0011] Preferably, when the first user terminal initiates a room transfer, the room status corresponding to the on-chain evidence identifier in the first blockchain is verified, and the room status is marked to generate a transfer smart contract address, including:
[0012] When the first user terminal initiates a room transfer, a transfer request is generated and the cross-chain atomic operation process is triggered:
[0013] Verify the room status corresponding to the on-chain evidence identifier in the first blockchain through an oracle;
[0014] If the room status is transferable, the room status is marked as locked on the first blockchain, and a transfer smart contract address is generated.
[0015] Preferably, the blockchain-based hotel smart booking and supply chain collaborative management method further includes:
[0016] By deploying a hash time lock contract and setting the transfer operation to be completed within a predetermined block height;
[0017] If the timeout is not completed, the state of the first blockchain is marked as available, and the temporary data in the transfer smart contract address is destroyed.
[0018] Preferably, after the second user terminal sends a transfer request to the transfer smart contract address, the first user terminal generates a token transfer certificate, and after the transfer smart contract address verifies the token transfer certificate, the token is encrypted using the second user terminal public key to obtain a second user encrypted token, and the second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain, including:
[0019] When the second user terminal sends a transfer request to the transfer smart contract address, the transfer request includes the second user's decentralized identity, triggering the following process:
[0020] The first user terminal generates a token transfer certificate;
[0021] After the transfer smart contract address verifies the token transfer proof, the token is encrypted using the second user terminal public key to generate a second user encrypted token, and the second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain.
[0022] Preferably, the first user decentralized identity and the second user decentralized identity are both realized through anonymous credentials, and a temporary decentralized identity is generated for each transfer.
[0023] Preferably, the logistics node data related to the supply chain verified by the second blockchain includes:
[0024] By calling the supply chain smart contract, the real-time availability of the supply chain-related logistics node data of the second blockchain is verified, and the logistics node data includes room cleaning, facility maintenance and material supply.
[0025] Preferably, the blockchain-based hotel smart booking and supply chain collaborative management method further includes:
[0026] When the logistics node data is verified to not meet the real-time feasibility, the room status of the first blockchain is updated to the transfer rejection status, and an early warning event is triggered to the hotel management server.
[0027] Preferably, the blockchain-based hotel smart booking and supply chain collaborative management method further includes:
[0028] If the room transfer process is interrupted, the last valid state can be restored through the off-chain state channel.
[0029] Preferably, the first blockchain and the second blockchain both adopt a layered hybrid architecture: the first blockchain is set as a consortium chain; the second blockchain is set as a hybrid structure of a permission chain and a public chain.
[0030] The present application also provides a blockchain-based hotel intelligent reservation and supply chain collaborative management system, including several user terminals, a hotel server, a first blockchain and a second blockchain, and the system can be used to execute the aforementioned blockchain-based hotel intelligent reservation and supply chain collaborative management method.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] This blockchain-based intelligent hotel reservation and supply chain collaborative management method utilizes zero-knowledge proofs and cryptographic token technology to ensure that the verification process for user identity and room transfer permissions does not leak sensitive information. Combined with on-chain evidence identification, it prevents forged reservations and illegal transfers. By linking smart contracts with an oracle, it enforces synchronized updates on the first and second blockchains, ensuring that transfers only take effect after real-time verification of logistics availability and inventory status, eliminating the risks of resource lock-in and transaction conflicts inherent in traditional solutions. This secures hotel reservation information and automates the transaction process, improving the efficiency and collaboration of the hotel reservation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly describes the drawings required for the specific embodiments or the description of the prior art. Similar elements or parts are generally identified by similar reference numerals throughout the drawings. Elements or parts in the drawings are not necessarily drawn to scale.
[0034] Figure 1 This is a flow chart of the blockchain-based hotel smart reservation and supply chain collaborative management method of the present invention.
[0035] Figure 2 This is a schematic diagram of the blockchain-based hotel intelligent reservation and supply chain collaborative management system of the present invention. DETAILED DESCRIPTION
[0036] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0037] It should be understood that when used in this specification, the terms "include" and "comprising" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0038] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0039] It should be further understood that the term “and / or” used in the description of the present invention refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0040] See the following examples Figure 1 and Figure 2 .
[0041] This application provides a blockchain-based hotel smart reservation and supply chain collaborative management method, including:
[0042] S1. A first user terminal initiates a reservation request to a hotel server, generating encrypted reservation information including room attributes, time interval, and the first user's decentralized identity.
[0043] When a first user (e.g., a traveler) wishes to book a hotel, they send a reservation request to the hotel server via their user terminal (e.g., a mobile app, a computer website, etc.). This request includes room attributes and time interval information, such as room type, check-in and check-out times. Simultaneously, utilizing blockchain's decentralized identity technology, a unique decentralized identity is generated for the first user, incorporated into the reservation information, and encrypted to form encrypted reservation information.
[0044] Encryption ensures information security, preventing tampering and leakage during transmission and storage. Decentralized identity identification can identify users and provide identity basis for hotel reservation management and transfer operations.
[0045] S2. After receiving the reservation request, the hotel server generates a dynamic token and a corresponding zero-knowledge proof, calculates the on-chain evidence identifier, and writes the on-chain evidence identifier and zero-knowledge proof into the reservation block of the first blockchain;
[0046] After receiving the reservation request, the hotel server randomly generates a unique dynamic token to verify the validity and security of the reservation. Simultaneously, using zero-knowledge proof technology, it generates a corresponding zero-knowledge proof to verify the authenticity of the reservation information without revealing the specific reservation information. It then calculates an on-chain proof identifier to store the reservation information on the blockchain. The on-chain proof identifier and zero-knowledge proof are then written to the reservation block of the first blockchain, enabling on-chain storage of the reservation information.
[0047] The combination of dynamic tokens and zero-knowledge proofs ensures the privacy of booking information while enabling stakeholders to verify the validity of reservations, enhancing security and credibility. Storing booking information on the blockchain renders it tamper-proof and allows for easy query and tracing of booking information at any time.
[0048] S3. When the first user terminal initiates a room transfer, the room status corresponding to the on-chain evidence identifier in the first blockchain is verified, the room status is marked, and a transfer smart contract address is generated;
[0049] When a user wishes to transfer a booked room, the system first needs to verify whether the room's current status allows transfers. By querying the corresponding on-chain evidence identifier in the first blockchain, the system obtains detailed room status information, such as whether the room has been occupied or is locked. After confirming that the room is transferable, the system marks the room status to inform other users that the room is transferable. Then, using blockchain smart contract technology, a transfer smart contract address is generated, which serves as the sole entry point for the room transfer transaction.
[0050] By verifying and marking the room status, the standardization of room transfers is ensured, avoiding duplicate or invalid transfers. Generating a transfer smart contract address provides a secure and transparent transaction environment for room transfers, automating and intelligentizing the transfer process and improving transfer efficiency.
[0051] S4. After the second user terminal sends a transfer request to the transfer smart contract address, the first user terminal generates a token transfer certificate. After the transfer smart contract address verifies the token transfer certificate, it encrypts the token using the second user terminal public key to obtain a second user encrypted token. The second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain.
[0052] After viewing the room transfer information, the second user (the guest who wishes to transfer the room) sends a transfer request to the transfer smart contract address through their user terminal. Upon receiving the request, the first user generates a token transfer certificate to prove the legal transfer of the token. Upon receiving the token transfer certificate, the transfer smart contract address verifies the validity of the token transfer certificate. Once verified, the token is encrypted using the second user's public key, resulting in the second user's encrypted token. This token is then bound to the second user's terminal and the binding information is written to the transfer block of the second blockchain, completing the on-chain record of the transfer transaction.
[0053] Through token transfer proof and encryption operations, the security and reliability of token transfers are ensured, preventing the illegal theft and use of tokens. Writing transfer information to a secondary blockchain enhances the immutability and traceability of transfer records, protecting the rights and interests of both parties and providing hotel management with a complete transfer transaction record.
[0054] S5. By verifying the supply chain-related logistics node data on the second blockchain and simultaneously checking the hotel room inventory status, if both the logistics node data and the inventory status meet the requirements, the room status on the first blockchain is updated to the transferred state, the supply chain resource lock is released, and a transfer completion certificate is generated on the second blockchain and sent to the first user terminal and the second user terminal respectively.
[0055] After the room transfer transaction is completed, the relevant supply chain data and hotel room inventory status need to be verified and checked. By verifying the supply chain-related logistics node data on the second blockchain, such as information on the supply and distribution of hotel supplies, the normal operation of the supply chain and the timely delivery of materials are ensured. Simultaneously, the hotel's room inventory status is checked to confirm the actual availability of the room. When both the logistics node data and inventory status meet the requirements, the system automatically updates the room status on the first blockchain to "transferred," releasing the supply chain resources previously locked for the room reservation. A transfer completion certificate is generated on the second blockchain and sent to the first and second user terminals, respectively, as formal notification and proof of the transfer transaction completion.
[0056] By combining supply chain data with hotel booking and transfer business, the collaborative management of hotel business and supply chain is achieved, which improves overall operational efficiency and resource utilization. The generated transfer completion certificate enhances users' trust and recognition of the transaction.
[0057] In this embodiment, both the first blockchain and the second blockchain adopt a layered hybrid architecture: the first blockchain is set as a consortium chain; the second blockchain is set as a hybrid structure of a permission chain and a public chain.
[0058] A consortium blockchain is a permissioned blockchain controlled and managed by a consortium of multiple organizations or institutions. In this embodiment, the first blockchain is configured as a consortium blockchain. The nodes within the consortium chain are comprised of participating hotels, booking platforms, and other relevant parties, each with clearly defined permissions and responsibilities. For example, hotels can update room status and process reservation requests, while booking platforms can verify reservation information and coordinate operations. This consortium blockchain enables participating parties, such as hotels and booking platforms, to share reservation data in a secure and trusted environment, improving collaboration efficiency.
[0059] The hybrid architecture of a permissioned blockchain and a public blockchain combines the characteristics of both. In this embodiment, the second blockchain is responsible for supply chain-related operations. The hybrid architecture is designed to balance data privacy and openness. Sensitive information related to the hotel supply chain, such as supplier trade secrets and internal operational data of logistics companies, is managed and access controlled through a permissioned blockchain, ensuring that only authorized parties can read and write data. Meanwhile, non-sensitive information, such as the overall status of material supply and the real-time status of logistics, can be shared and disseminated through the openness of the public blockchain, allowing more users to access relevant information. This hybrid architecture protects the core business data of all supply chain participants while meeting market demands for information transparency.
[0060] This blockchain-based intelligent hotel reservation and supply chain collaborative management method utilizes zero-knowledge proofs and cryptographic token technology to ensure that the verification process for user identity and room transfer permissions does not leak sensitive information. Combined with on-chain evidence identification, it prevents forged reservations and illegal transfers. By linking smart contracts with an oracle, it enforces synchronized updates on the first and second blockchains, ensuring that transfers only take effect after real-time verification of logistics availability and inventory status, eliminating the risks of resource lock-in and transaction conflicts inherent in traditional solutions. This secures hotel reservation information and automates the transaction process, improving the efficiency and collaboration of the hotel reservation process.
[0061] Specifically, in a preferred embodiment of the present application, when the first user terminal initiates a room transfer, the room status corresponding to the on-chain evidence identifier in the first blockchain is verified, and the room status is marked, and the transfer smart contract address is generated, including:
[0062] When the first user terminal initiates a room transfer, a transfer request is generated and the cross-chain atomic operation process is triggered:
[0063] Verify the room status corresponding to the on-chain evidence identifier in the first blockchain through an oracle;
[0064] If the room status is transferable, the room status is marked as locked on the first blockchain, and a transfer smart contract address is generated.
[0065] Oracles verify room status to ensure transfers are based on accurate room information, preventing invalid or illegal transfers. Lock status marking and the deployment of hashed time-lock contracts provide multi-layered security to prevent asset loss or erroneous transfers. The generated transfer smart contract address provides an execution path and smart contract protection for subsequent transfer transactions.
[0066] Specifically, the blockchain-based hotel smart booking and supply chain collaborative management method also includes:
[0067] By deploying a hash time lock contract and setting the transfer operation to be completed within a predetermined block height;
[0068] If the timeout is not completed, the state of the first blockchain is marked as available, and the temporary data in the transfer smart contract address is destroyed.
[0069] By setting a block height limit, a timeframe is established for transfer operations, improving the efficiency of the entire transfer process. If a transfer times out, the room status is automatically restored to available and the temporary data is destroyed. This prevents invalid or expired transfer data from persisting on the blockchain, saving storage space and helping maintain the efficient operation of the blockchain system.
[0070] Specifically, in a preferred embodiment of the present application, after the second user terminal sends a transfer request to the transfer smart contract address, the first user terminal generates a token transfer certificate. After the transfer smart contract address verifies the token transfer certificate, the token is encrypted using the second user terminal public key to obtain a second user encrypted token. The second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain, including:
[0071] When the second user terminal sends a transfer request to the transfer smart contract address, the transfer request includes the second user's decentralized identity, triggering the following process:
[0072] The first user terminal generates a token transfer certificate;
[0073] After receiving the transfer request from the second user, the first user generates a token transfer certificate through his terminal. The certificate is intended to confirm the legal source of the token and the legitimacy of the transfer process, proving that the token belongs to the first user and that the first user has the right to transfer it to the second user.
[0074] After the transfer smart contract address verifies the token transfer proof, the token is encrypted using the second user terminal public key to generate a second user encrypted token, and the second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain.
[0075] After receiving the request, the transfer smart contract address verifies the token transfer certificate. This verification process includes checking the digital signature of the certificate and verifying that the hash value contained in the certificate matches the original token. Once the verification is successful, the system encrypts the token using the second user's public key to generate a second user encrypted token. This ensures that only the second user's private key can decrypt the token, thereby ensuring the security of the token during transmission and use, and preventing the token from being attacked by a man-in-the-middle or unauthorized access.
[0076] By generating and verifying proof of token transfer, the legitimate origin of the token and the security of the transfer process are ensured, preventing illegal tokens from entering the system. At the same time, the token is encrypted with the public key of the second user, which enhances the security of the token. Only the second user can decrypt and use the token, effectively preventing the risk of token theft and abuse.
[0077] Specifically, the first user decentralized identity and the second user decentralized identity are both realized through anonymous credentials, and a temporary decentralized identity is generated for each transfer.
[0078] Decentralized identity identification achieved through anonymous credentials prevents users from directly exposing their real identities during transactions, reducing the risk of identity leakage and protecting user privacy. Each transfer generates a temporary decentralized identity, enhancing privacy protection and preventing users' transactions from being linked and tracked, allowing users to participate in transactions more anonymously.
[0079] Anonymous credentials and temporary identities allow users to use different identities in different transaction scenarios. Even if a transaction information is leaked, it is difficult to link it to the user's other transaction behaviors, thereby effectively preventing the risk of privacy leakage.
[0080] Specifically, in a preferred embodiment of the present application, the logistics node data related to the supply chain verified by the second blockchain includes:
[0081] By calling the supply chain smart contract, the real-time availability of the supply chain-related logistics node data of the second blockchain is verified, and the logistics node data includes room cleaning, facility maintenance and material supply.
[0082] When verifying supply chain-related logistics node data on the secondary blockchain, the system invokes the supply chain smart contract. This smart contract contains verification logic to check the real-time availability of logistics node data. Logistics node data covers areas such as room cleaning, facility maintenance, and material supply. Automatic verification through smart contracts reduces manual intervention, mitigates the risk of data tampering, and enhances supply chain transparency and credibility.
[0083] Specifically, in a preferred embodiment of the present application, the blockchain-based hotel smart reservation and supply chain collaborative management method further includes:
[0084] When the logistics node data is verified to not meet the real-time feasibility, the room status of the first blockchain is updated to the transfer rejection status, and an early warning event is triggered to the hotel management server.
[0085] For example, if room cleaning isn't completed on time or facility maintenance is delayed, potentially impacting the room's usability and the guest experience, the system immediately updates the room's status to "reject transfer" and sends an alert to the hotel management server. This prevents non-compliant room transfers and prevents supply chain issues from causing decreased customer satisfaction. This early warning mechanism enables hotels to respond quickly to potential issues.
[0086] Specifically, in a preferred embodiment of the present application, the blockchain-based hotel smart reservation and supply chain collaborative management method further includes:
[0087] If the room transfer process is interrupted, the last valid state can be restored through the off-chain state channel.
[0088] If a room transfer is interrupted due to network issues, system failures, or other reasons, the system restores the last valid state through an off-chain state channel. This allows both parties to conduct transactions and status updates quickly and cost-effectively outside the main blockchain. If a transfer is interrupted, the previously recorded valid state information in the off-chain channel can be used to quickly restore the transaction without having to restart the entire transfer process. The use of off-chain state channels allows for the rapid resumption of interrupted transfers, reducing transaction failures and customer dissatisfaction caused by interruptions and ensuring transaction stability.
[0089] The present application also provides a blockchain-based hotel intelligent reservation and supply chain collaborative management system, including several user terminals, a hotel server, a first blockchain and a second blockchain, and the system can be used to execute the aforementioned blockchain-based hotel intelligent reservation and supply chain collaborative management method.
[0090] The blockchain-based hotel intelligent reservation and supply chain collaborative management system connects a first user terminal, a second user terminal, and a hotel server via the internet to enable information exchange and processing. The hotel server manages reservation information and supply chain information via the first and second blockchains, respectively; user terminals communicate with the hotel server via the internet to complete operations such as reservations and transfers.
[0091] Among them, the first user terminal represents the user who initiates the reservation request, such as a traveler who books a hotel room; the second user terminal represents the user who wants to transfer the room reservation, that is, the traveler who receives the transferred room reservation; the Internet serves as the network foundation connecting various components to realize information transmission and communication; the hotel server is used to process the reservation request from the user terminal, generate dynamic tokens and zero-knowledge proofs, calculate the on-chain evidence identification, and write the relevant information into the blockchain; the first blockchain is used to store and manage information related to hotel reservations, such as room reservations, transfers, etc.; the second blockchain is used to store and manage information related to the hotel supply chain, such as logistics node data, material supply, etc.
[0092] The technical effects of this embodiment are the same as those of the blockchain-based hotel smart reservation and supply chain collaborative management method of the embodiment, and will not be repeated here.
[0093] Those skilled in the art will appreciate that the units of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0094] In the embodiments provided by the present invention, it should be understood that the division of units is merely a logical function division, and there may be other division methods in actual implementation, for example, multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored, etc.
[0095] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0096] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-0nly Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program code.
[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the specification of the present invention.
Claims
1. A blockchain-based hotel intelligent reservation and supply chain collaborative management method, characterized in that: include: The first user terminal initiates a reservation request to the hotel server, generating encrypted reservation information including room attributes, time interval, and the first user's decentralized identity; After receiving the reservation request, the hotel server generates a dynamic token and a corresponding zero-knowledge proof, calculates the on-chain proof identifier, and writes the on-chain proof identifier and zero-knowledge proof into the reservation block of the first blockchain; When the first user terminal initiates a room transfer, the room status corresponding to the on-chain evidence identifier in the first blockchain is verified, and the room status is marked to generate a transfer smart contract address; After the second user terminal sends a transfer request to the transfer smart contract address, the first user terminal generates a token transfer certificate. After the transfer smart contract address verifies the token transfer certificate, it uses the second user terminal public key to encrypt the token to obtain a second user encrypted token. The second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain. By verifying the supply chain-related logistics node data of the second blockchain and synchronously checking the hotel room inventory status, if both the logistics node data and the inventory status meet the requirements, the room status of the first blockchain is updated to the transferred status, and the supply chain resource lock is released. A transfer completion certificate is generated on the second blockchain and sent to the first user terminal and the second user terminal respectively.
2. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to claim 1 is characterized in that: When the first user terminal initiates a room transfer, the room status corresponding to the on-chain evidence identifier in the first blockchain is verified, and the room status is marked to generate a transfer smart contract address, including: When the first user terminal initiates a room transfer, a transfer request is generated and the cross-chain atomic operation process is triggered: Verify the room status corresponding to the on-chain evidence identifier in the first blockchain through an oracle; If the room status is transferable, the room status is marked as locked on the first blockchain, and a transfer smart contract address is generated.
3. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to claim 2 is characterized in that: Also includes: By deploying a hash time lock contract and setting the transfer operation to be completed within a predetermined block height; If the timeout is not completed, the state of the first blockchain is marked as available, and the temporary data in the transfer smart contract address is destroyed.
4. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to claim 2 is characterized in that: After the second user terminal sends a transfer request to the transfer smart contract address, the first user terminal generates a token transfer certificate. After the transfer smart contract address verifies the token transfer certificate, the token is encrypted using the second user terminal public key to obtain a second user encrypted token. The second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain, including: When the second user terminal sends a transfer request to the transfer smart contract address, the transfer request includes the second user's decentralized identity, triggering the following process: The first user terminal generates a token transfer certificate; After the transfer smart contract address verifies the token transfer proof, the token is encrypted using the second user terminal public key to generate a second user encrypted token, and the second user encrypted token is bound to the second user terminal and written into the transfer block of the second blockchain.
5. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to claim 4 is characterized in that: The first user decentralized identity and the second user decentralized identity are both realized through anonymous credentials, and a temporary decentralized identity is generated for each transfer.
6. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to claim 1 is characterized in that: The logistics node data related to the supply chain verified by the second blockchain includes: By calling the supply chain smart contract, the real-time availability of the supply chain-related logistics node data of the second blockchain is verified, and the logistics node data includes room cleaning, facility maintenance and material supply.
7. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to claim 6 is characterized in that: Also includes: When the logistics node data is verified to not meet the real-time feasibility, the room status of the first blockchain is updated to the transfer rejection status, and an early warning event is triggered to the hotel management server.
8. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to claim 6 is characterized in that: Also includes: If the room transfer process is interrupted, the last valid state can be restored through the off-chain state channel.
9. The blockchain-based hotel intelligent reservation and supply chain collaborative management method according to any one of claims 1 to 8, characterized in that: Both the first blockchain and the second blockchain adopt a layered hybrid architecture: the first blockchain is set as a consortium chain; the second blockchain is set as a hybrid structure of a permission chain and a public chain.
10. A blockchain-based hotel intelligent reservation and supply chain collaborative management system, characterized by: The system comprises several user terminals, a hotel server, a first blockchain and a second blockchain, and can be used to execute the blockchain-based hotel intelligent reservation and supply chain collaborative management method described in any one of claims 1 to 9.