Equipment leasing method and device based on block chain, and computer equipment

Through blockchain technology, identify the information and duration of rental equipment, combine the resource interaction of the target information storage chip, and generate rental settlement requests, solving the problems of low efficiency and accuracy in time-sharing leasing business, and achieving efficient and accurate leasing settlement and information recording.

CN120410696APending Publication Date: 2025-08-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410147836.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In the prior art, the equipment interaction and resource compensation operation of time-sharing leasing business are relatively low, and the efficiency and accuracy of leasing processing cannot be effectively guaranteed.

Method used

Through blockchain technology, we obtain rental service setting messages, identify rental equipment information and duration information, feedback resource interaction information, and when the target information storage chip detects resource interaction, query offline resource storage information, generate rental settlement requests, start the target rental equipment, execute settlement requests through the blockchain network, and complete lease settlement.

Benefits of technology

It improves the processing efficiency and accuracy of the equipment time-sharing leasing process, ensures the traceability and accuracy of the leasing process, reduces dependence on the network, and realizes trustworthy transactions and records.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120410696A_ABST
    Figure CN120410696A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment leasing method and device based on a block chain, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring a leasing service setting message, identifying leasing equipment information and leasing duration information, and feeding back resource interaction information; under the condition that a resource interaction operation of the target information storage chip for the resource interaction information is detected, querying offline resource storage information of the chip so as to carry out resource interaction processing, generating a lease settlement request and starting target lease equipment; and executing the lease settlement request through the block chain network to obtain a lease settlement result. According to the method, the rental service sets the message basis, resource interaction processing of the rental process is completed through operation of the renter on the target information storage chip, a network is not needed, settlement of resource interaction of the rental process and recording of the rental information are completed through the block chain network, and the rental efficiency is improved. The processing efficiency and the processing accuracy of the equipment time-sharing leasing process can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technologies, and particularly to a blockchain-based device leasing method, apparatus, computer device, storage medium, and computer program product. Background Art

[0002] With the development of computer technologies and network technologies, the blockchain technology has emerged. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithms. Essentially, blockchain is a decentralized database, which is a string of data blocks generated by using cryptographic methods. Each data block contains information on a batch of network transactions, which is used to verify the validity (anti-counterfeiting) of the information and generate the next block. Blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer. Currently, blockchain can be applied to the interactive processing of various resource data.

[0003] Currently, for time-sharing leasing services, it is generally necessary to rely on the network to implement relevant authentication processing in the leasing process, and then implement operations such as device interaction and resource settlement in the time-sharing leasing process. However, this operation requires a smart device to perform operations such as scanning codes, and cannot guarantee the efficiency and accuracy of the leasing process. Summary of the Invention

[0004] Based on this, it is necessary to provide a blockchain-based device leasing method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the efficiency and accuracy of leasing processing for the above technical problems.

[0005] In a first aspect, the present application provides a blockchain-based device leasing method, including:

[0006] Obtain a leasing service setting message, and identify the leased device information and leasing duration information in the leasing service setting message;

[0007] Feedback resource interaction information based on the leased device information and the leasing duration information;

[0008] When detecting a resource interaction operation of a target information storage chip for the resource interaction information, query the offline resource storage information of the target information storage chip;

[0009] Perform resource interaction processing based on the resource interaction information and the offline resource storage information to generate a leasing settlement request, and start a target leased device based on the leased device information and the leasing duration information;

[0010] Execute the leasing settlement request through a blockchain network to obtain a leasing settlement result.

[0011] In a second aspect, the present application also provides a device leasing apparatus based on a blockchain, including:

[0012] A message acquisition module, configured to acquire a leasing service setting message and identify leasing device information and leasing duration information in the leasing service setting message;

[0013] An interaction information feedback module, configured to feedback resource interaction information based on the leasing device information and the leasing duration information;

[0014] An operation detection module, configured to query offline resource storage information of the target information storage chip when detecting a resource interaction operation of the target information storage chip for the resource interaction information;

[0015] A device start-up module, configured to perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a leasing settlement request, and start a target leasing device based on the leasing device information and the leasing duration information;

[0016] A leasing settlement module, configured to execute the leasing settlement request through a blockchain network to obtain a leasing settlement result.

[0017] In a third aspect, the present application also provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0018] Acquire a leasing service setting message and identify leasing device information and leasing duration information in the leasing service setting message;

[0019] Feedback resource interaction information based on the leasing device information and the leasing duration information;

[0020] Query offline resource storage information of the target information storage chip when detecting a resource interaction operation of the target information storage chip for the resource interaction information;

[0021] Perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a leasing settlement request, and start a target leasing device based on the leasing device information and the leasing duration information;

[0022] Execute the leasing settlement request through a blockchain network to obtain a leasing settlement result.

[0023] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0024] Obtain a rental service setting message, and identify the rental device information and rental duration information in the rental service setting message;

[0025] Feedback resource interaction information based on the rental device information and the rental duration information;

[0026] When detecting a resource interaction operation of a target information storage chip for the resource interaction information, query the offline resource storage information of the target information storage chip;

[0027] Perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a rental settlement request, and start the target rental device based on the rental device information and the rental duration information;

[0028] Execute the rental settlement request through a blockchain network to obtain a rental settlement result.

[0029] In a fifth aspect, the present application further provides a computer program product, including a computer program, which when executed by a processor implements the following steps:

[0030] Obtain a rental service setting message, and identify the rental device information and rental duration information in the rental service setting message;

[0031] Feedback resource interaction information based on the rental device information and the rental duration information;

[0032] When detecting a resource interaction operation of a target information storage chip for the resource interaction information, query the offline resource storage information of the target information storage chip;

[0033] Perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a rental settlement request, and start the target rental device based on the rental device information and the rental duration information;

[0034] Execute the rental settlement request through a blockchain network to obtain a rental settlement result.

[0035] The above-mentioned blockchain-based device leasing method, device, computer device, storage medium, and computer program product, after obtaining the lease service setting message, first identify the leased device information and lease duration information in the lease service setting message to obtain the specific information of the lease service that the lessee needs to provide, and then feedback resource interaction information based on the leased device information and lease duration information to prompt the lessee to continue the lease process based on the resource interaction processing. Then, in the case of detecting a resource interaction operation of the target information storage chip for the resource interaction information, query the offline resource storage information of the target information storage chip; and perform resource interaction processing based on the resource interaction information and the offline resource storage information to generate a lease settlement request, and start the target leased device based on the leased device information and lease duration information. The lessee can directly perform resource interaction processing through the target information storage chip, start the leased device, and finally execute the lease settlement request through the blockchain network to obtain the lease settlement result, thereby completing the settlement of resource interaction in the blockchain network and recording the corresponding lease process information. This application can feedback the resource interaction information of the lease service to the lessee based on the lease service setting message, complete the resource interaction processing of the lease process through the operation of the lessee on the target information storage chip without relying on the network, and at the same time complete the settlement of resource interaction in the lease process and the recording of lease information through the blockchain network, which can effectively improve the processing efficiency and accuracy of the equipment time-sharing lease process. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0037] Figure 1 It is a schematic structural diagram of a distributed system applied to a blockchain system in an embodiment;

[0038] Figure 2 It is a schematic diagram of a block structure in an embodiment;

[0039] Figure 3 It is a schematic flow diagram of a blockchain-based device leasing method in an embodiment;

[0040] Figure 4 It is a schematic interface diagram of a lease information setting interface in an embodiment;

[0041] Figure 5 It is a schematic interface diagram of a device information display interface in an embodiment;

[0042] Figure 6 It is a structural block diagram of a blockchain node in an embodiment;

[0043] Figure 7 It is a timing flowchart of the device leasing process based on the blockchain in an embodiment;

[0044] Figure 8 It is a schematic flowchart of the device leasing method based on the blockchain in another embodiment;

[0045] Figure 9 It is a structural block diagram of the device leasing device based on the blockchain in an embodiment;

[0046] Figure 10 It is an internal structure diagram of a computer device in an embodiment. Detailed implementation manners

[0047] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In this article, it is necessary to understand the terms involved:

[0049] Blockchain: Blockchain technology is a distributed ledger technology in the field of information technology. Generally, it consists of consensus, transaction blocks and state data storage, cryptographic identity security, etc. Since the ledger is distributedly stored and the blocks are consensus-based, it has characteristics such as immutability, traceability, and co-maintenance.

[0050] Smart contract: A smart contract is a computer protocol designed to spread, verify or execute a contract in an information-based manner. Smart contracts allow for trusted transactions without a third party, and these transactions are traceable and irreversible.

[0051] Resource interaction pool: The blockchain resource interaction pool refers to a buffer area for storing resource interaction data that has not been packaged into blocks in the blockchain network. The resource interactions in the resource interaction pool need to be verified before being packaged into the blockchain. That is, the execution process of the resource interactions in the resource interaction pool is as follows: verify resource interaction information -> call the smart contract to execute resource interaction -> package a new block -> broadcast the new block.

[0052] The system involved in the embodiments of the present application can be a distributed system formed by connecting a client and multiple nodes (any form of computing device connected to the network, such as a server, user terminal) through network communication.

[0053] Taking the distributed system as a blockchain system as an example, seeFigure 1 , Figure 1 FIG. Figure 1 is an alternative structural schematic diagram of the distributed system 100 provided by an embodiment of the present invention applied to a blockchain system, formed by a plurality of nodes 200 (any form of computing device connected to a network, such as a lease management server, a terminal) and rental terminal devices 300 (devices connected to the nodes, used to provide rental services for users, such as shared bicycles, shared power banks, shared cars, etc.). A peer-to-peer network is formed among the nodes. The peer-to-peer protocol is an application layer protocol running on top of the Transmission Control Protocol (TCP). In a distributed system, any machine such as a server or a terminal can join and become a node. A node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.

[0054] See Figure 1 the functions of each node in the blockchain system shown, and the functions involved include:

[0055] 1) Routing, a basic function of a node, used to support communication between nodes.

[0056] In addition to the routing function, a node may also have the following functions:

[0057] 2) Application, used to be deployed in the blockchain, implement specific services according to actual business requirements, record data related to the implemented functions to form record data, carry a digital signature in the record data to indicate the source of the task data, and send the record data to other nodes in the blockchain system. When other nodes verify the source and integrity of the record data successfully, they add the record data to a temporary block.

[0058] For example, the services implemented by the application include:

[0059] 2.1) Wallet, used to provide a function for resource interaction, including initiating resource interaction (that is, sending the resource interaction record of the current resource interaction to other nodes in the blockchain system. After other nodes verify successfully, as a response to acknowledging the validity of the resource interaction, they deposit the record data of the resource interaction into the temporary block of the blockchain; of course, the wallet also supports querying the remaining resource amount in the resource address;

[0060] 2.2) Shared ledger, used to provide functions such as storage, query, and modification of account data, send the record data of operations on the account data to other nodes in the blockchain system. After other nodes verify the validity, as a response to acknowledging the validity of the account data, they deposit the record data into the temporary block and can also send a confirmation to the node that initiated the operation.

[0061] 2.3) Smart contract, a computerized protocol that can execute the terms of a contract, implemented by code deployed on a shared ledger for execution when certain conditions are met. According to actual business requirements, the code is used to complete automated resource interactions, such as querying the logistics status of the goods purchased by the buyer and transferring the corresponding resources of the buyer to the merchant's address after the buyer signs for the goods. Of course, smart contracts are not limited to executing contracts for resource interactions, but can also execute contracts for processing received information.

[0062] 3) Blockchain, which includes a series of blocks (Block) connected in sequence according to the chronological order of generation. Once a new block is added to the blockchain, it will not be removed again. The block records the record data submitted by nodes in the blockchain system.

[0063] See Figure 2 , Figure 2 is an optional schematic diagram of the block structure provided by the embodiments of the present invention. Each block includes the hash value of the resource interaction record stored in this block (the hash value of this block) and the hash value of the previous block. The blocks are connected through hash values to form a blockchain. In addition, the block may also include information such as the timestamp when the block is generated. Blockchain, essentially a decentralized database, is a string of data blocks associated using cryptographic methods. Each data block contains relevant information for verifying the validity of its information (anti-counterfeiting) and generating the next block.

[0064] This application is applicable to resource data processing based on the above blockchain network and can be implemented through the blockchain node 200 as shown in Figure 1 . The blockchain node 200 is specifically a lease management server. First, the user can generate a corresponding lease service setting message by operating the node 200 or the lease terminal device 300. The blockchain node 200 will obtain this lease service setting message and then identify the lease device information and lease duration information in the lease service setting message. Based on the lease device information and lease duration information, it feedbacks resource interaction information. In the case of detecting a resource interaction operation of the target information storage chip for the resource interaction information, it queries the offline resource storage information of the target information storage chip. Based on the resource interaction information and the offline resource storage information, it performs resource interaction processing, generates a lease settlement request, and starts the target lease device based on the lease device information and lease duration information. It executes the lease settlement request through the blockchain network to obtain the lease settlement result.

[0065] In an exemplary embodiment, as shown in Figure 3 , a blockchain-based device lease method is provided. This method is applied to Figure 1For the blockchain node 200 in it, taking the blockchain node 200 as a lease management server for description, the following steps 302 to step 310 are included. Among them:

[0066] Step 302, obtain a lease service setting message, and identify the leased equipment information and lease duration information in the lease service setting message.

[0067] Among them, the lease service setting message refers to a message generated based on the lease service required by the target object, and can be generated by the terminal device or the lease terminal device 300 that operates as the lease management server of the blockchain node 200 by the target object. Specifically, the target object can set the leased equipment information and the lease duration information. The leased equipment information among them refers to information such as the type and number of the leased equipment required by the target object. The lease duration information is the duration information that the target object hopes to lease the equipment. For example, for shared bicycles that provide lease services, the target object can select information such as the bicycle number and usage duration on the terminal device at the shared service point. Or operate the terminal device on the shared bicycle to set information such as the usage duration to be used. After the target object submits and confirms, these information will generate corresponding lease service setting messages and be sent to the blockchain node 200 for corresponding lease service processing. The leased equipment can specifically be shared bicycles, shared power banks, shared cars, and rocking cars, etc.

[0068] Exemplarily, when the target object leases equipment, the terminal device of the blockchain node 200 or the rental terminal device 300 can be directly operated to submit the corresponding rental service requirement. Then, the blockchain node 200 can directly obtain the rental service setting message from the operation of the target object or obtain the rental service setting message from the rental terminal device 300, and identify the rental equipment information and rental duration information in the rental service setting message to provide the corresponding rental server. In one embodiment, the blockchain node 200 can be specifically set at a fixed rental service providing point. The corresponding terminal device thereof includes a human-computer interaction module, and the rental equipment and rental duration that can be selected are provided on the human-computer interaction module. When the target object needs rental service, the required rental equipment and rental duration can be selected through the human-computer interaction module, so as to generate the corresponding rental service setting message and submit it to the blockchain node 200. Then, the blockchain node 200 can identify the rental equipment information and rental duration information based on the message submitted by the target object. In another embodiment, the rental terminal device 300 includes a human-computer interaction module, and the rental duration that can be selected is provided on the human-computer interaction module. When the target object needs rental service, the required rental duration can be selected through the human-computer interaction module. Then, the rental terminal device 300 can generate the corresponding rental service setting message and submit it to the blockchain node 200. The blockchain node 200 can identify the rental equipment information and rental duration information based on the rental terminal device 300 that sends the message and the specific content in the message.

[0069] Step 304: Feedback resource interaction information based on the rental equipment information and rental duration information.

[0070] Among them, the resource interaction message refers to the interaction message used for service authentication and resource data processing during the rental service process. The target object can perform operations such as resource transfer based on the resource interaction message, so as to complete the rental service authentication process. The resource interaction message contains data such as the resource quantity information and rental authentication information of the rental service required by the target object.

[0071] Exemplarily, after the blockchain node 200 identifies the leased device information and the lease duration information in the lease service setup message, it can determine the resource interaction volume information of the leased service required by the target object based on the leased device information and the lease duration information. Then, it can generate corresponding resource interaction information based on the determined resource interaction volume, and display the resource interaction information to the user through the terminal device of the blockchain node 200 or the lease terminal device 300, which can be specifically fed back through information such as screen display or voice. In one embodiment, the resource interaction volume information can be determined according to the device model in the leased device information and the lease duration information. A resource interaction volume table corresponding to different device models and durations is pre-stored in the blockchain node 200. After the leased device information and the lease duration information are determined, the relevant information on the resource interaction volume required for the lease service can be determined by looking up the table.

[0072] Step 306, in the case of detecting a resource interaction operation of the target information storage chip for the resource interaction information, query the offline resource storage information of the target information storage chip.

[0073] Among them, the target information storage chip refers to a chip that can store resource information offline. The target object can store the corresponding resource data offline in the target information storage chip, and then when resource interaction is required, the resource interaction processing operation can be realized through the target information storage chip. The resource interaction operation refers to an operation of performing resource transfer processing by operating the target information storage chip, such as placing the target information storage chip at the hardware scanning position of the front-end device. The offline resource storage information refers to the information on the existing resource volume in the target information storage chip.

[0074] Exemplarily, after generating and feedbacking resource interaction information, the target object can, based on the resource interaction information, implement resource interaction processing for the leasing process through the target information storage chip. The resource interaction information specifically includes a resource interaction prompt statement for prompting the target object to perform resource interaction operations. The target object can, under the prompt of the resource interaction information, operate the target information storage chip to perform resource interaction operations for the resource leasing service process. When the blockchain node 200 detects a resource interaction operation of the target information storage chip for the resource interaction information, it can directly query the offline resource storage information of the target information storage chip, and thus determine whether to perform corresponding resource transfer operations. In one embodiment, the target information storage chip can be specifically disposed in a hardware wallet, and the target object can implement resource interaction processing for the leasing process through the hardware wallet. The target object can, according to the prompt of the resource interaction information, place the hardware wallet at the hardware scanning position of the terminal device of the blockchain node 200 or the leasing terminal device 300. After the blockchain node 200 detects the hardware wallet, it can confirm that it has detected the resource interaction operation of the target information storage chip for the resource interaction information, and query the offline resource storage information in the hardware wallet.

[0075] Step 308, perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a lease settlement request, and start the target leased device based on the leased device information and the lease duration information.

[0076] Among them, resource interaction processing refers to a resource transfer processing process of transferring the data resources stored offline in the target information storage chip according to the resource interaction amount in the resource interaction information. The lease settlement request refers to a request for transmitting various relevant data of the leasing process to the blockchain network to implement lease service records and resource transfer settlement processing.

[0077] Exemplarily, after querying the offline resource storage information of the target information storage chip, the blockchain node 200 can perform resource interaction processing based on the resource interaction information and the offline resource storage information. At this time, it is necessary to first confirm whether the offline resource storage information in the target information storage chip meets the requirement of the interaction resource amount in the resource interaction information. When it is met, resource interaction processing can be executed, and when it is not met, a corresponding interaction failure prompt message can be feedbacked. After performing the resource interaction processing, a corresponding lease settlement request can be further generated to synchronize the information of the lease service to the blockchain network. At the same time, the resource settlement processing flow after resource interaction is completed. When generating the lease settlement request, the target leased device can also be started according to the leased device information, such as unlocking the target leased device or starting the switch of the target leased device, and setting information such as the working duration of the target leased device. The target object can then operate the target leased device to start the lease.

[0078] Step 310: Execute the lease settlement request through the blockchain network to obtain the lease settlement result.

[0079] The lease settlement result refers to the result data of the lease process finally recorded in the blockchain network, including lease record information such as the lease start timestamp, leased equipment information, and lease market information involved in the lease process, as well as resource transfer information during the lease process.

[0080] Exemplarily, after completing the resource data interaction and obtaining the resource data interaction result, the resource data interaction result and the record data of the lease process can also be saved to the block of the blockchain network through the blockchain network, so as to realize the data record of the equipment lease process and ensure the traceability of the equipment lease process. In order to perform data recording, a lease settlement request can be generated according to the result of the resource interaction processing, and then the request is uploaded to the blockchain network. The corresponding lease settlement processing is carried out through the smart contract of the blockchain network to complete the processing such as lease process accounting and lease information recording, and generate the corresponding record block. During the execution of the resource data clearing request, the blockchain node 200 needs to first upload the lease settlement request to the blockchain network. At this stage, the authentication process of the blockchain node 200 needs to be completed first, and after the authentication is completed, the lease settlement request is saved to the resource interaction pool of the blockchain network. Then, in the resource interaction pool, the lease settlement request can be batch-cleared through the smart contract of the lease settlement process to obtain the corresponding result and save it to the next block of the blockchain, completing the record of the resource interaction processing process.

[0081] The above blockchain-based device leasing method, after obtaining the lease service setting message, first identifies the leased device information and lease duration information in the lease service setting message to obtain the specific information of the lease service that the lessee needs to provide. Then, based on the leased device information and lease duration information, it feeds back resource interaction information to prompt the lessee to continue the lease process based on the resource interaction processing. Then, in the case of detecting a resource interaction operation of the target information storage chip for the resource interaction information, it queries the offline resource storage information of the target information storage chip; and based on the resource interaction information and the offline resource storage information, it performs resource interaction processing, generates a lease settlement request, and starts the target leased device based on the leased device information and lease duration information. The lessee can directly perform resource interaction processing through the target information storage chip, start the leased device, and finally execute the lease settlement request through the blockchain network to obtain the lease settlement result, thereby completing the settlement of resource interaction in the blockchain network and recording the corresponding lease process information. This application can, based on the lease service setting message, feed back resource interaction information of the lease service to the lessee, and complete the resource interaction processing of the lease process through the operation of the lessee on the target information storage chip without relying on the network. At the same time, through the blockchain network, it completes the settlement of resource interaction in the lease process and the recording of lease information, which can effectively improve the processing efficiency and accuracy of the equipment time-sharing lease process.

[0082] This application provides lease services through blockchain technology, which can provide time-sharing lease services for target objects in an offline situation and improve the scenario expandability of time-sharing leasing. At the same time, through blockchain technology, it completes the resource transfer settlement in the lease process and the update record of lease information, which can effectively ensure the accuracy and efficiency of the lease settlement process. At the same time, the smart contract of the blockchain allows for trusted transactions without a third party, and these transactions are traceable and irreversible. Therefore, when executing the smart contract, it can ensure the efficiency and accuracy of the clearing process of the lease payment process and the accuracy of the lease information record.

[0083] In an exemplary embodiment, step 304 includes: looking up the device status information of the target leased device based on the leased device information; generating device status display information according to the device status information, and feeding back the device status display information; when receiving a device confirmation message for the device status display information, feeding back resource interaction information based on the leased device information and lease duration information.

[0084] Among them, the device status of the leased device is specifically used to display the relevant information of the leased device, which can be displayed according to the specific type of the leased device. For example, when the leased device is a shared car, information such as the driving mileage, remaining battery power, and car model of the shared car can be displayed. When the leased device is a shared power bank, information such as the interface model and remaining battery power of the power bank can be displayed.

[0085] Exemplarily, when the target object triggers a rental service setting message and selects a rental device and a rental duration, in order to enable the target object to have a deeper understanding of the status of the selected rental device. The device status information of the target rental device can be found according to the rental device information selected by the target object, and then the device status display information is generated based on the real-time device status, and the device status display information is displayed to the target object. If the target object still needs to rent the device after confirming the device status, a corresponding device confirmation message can be submitted for the device status display information. When the blockchain node of the rental management receives the device confirmation message for the device status display information, it feeds back resource interaction information based on the rental device information and the rental duration information. In one embodiment, the solution of the present application is applicable to the rental service of shared cars. The target object can go to the rental service point to rent a shared car. A rental management server serving as a blockchain node is set in the rental service point. After the target object completes identity authentication, as Figure 4 shown, the target object can first select the car number to be rented on the human-computer interaction interface of the rental management server and set the rental duration. Then the rental management server will find the car status of the rental car selected by the target object according to this information and display the car status on the human-computer interaction interface, as Figure 5 shown. After the target object confirms the car status through the display information on the human-computer interaction interface, it can choose whether to rent. The rental management server will feed back resource interaction information based on the rental device information and the rental duration information after receiving the confirmation information submitted by the target object. In this embodiment, by identifying and feeding back the device status, it helps the target object who needs to rent the device to understand the specific status of the device, which can effectively improve the information interaction efficiency in the rental service process, thereby improving the device rental management efficiency.

[0086] In an exemplary embodiment, the method further includes: sending a renewal reminder message to the target rental device based on the rental duration information; pushing renewal interaction information to the target rental device when receiving a renewal feedback message based on the renewal reminder message; generating a renewal settlement request and a renewal processing instruction based on the renewal interaction information when detecting a resource interaction operation for the renewal interaction information; issuing the renewal processing instruction to the target rental device, and executing the renewal settlement request through the blockchain network to obtain a renewal settlement result.

[0087] Among them, the renewal reminder message is used to remind the target object that the leased device is about to reach the corresponding lease time limit, so as to remind the target object to handle the renewal. The renewal feedback message refers to the confirmation information feedback by the target object when it hopes to renew the lease. The renewal interaction information refers to the information used for resource interaction during the renewal process. The target object can perform resource interaction processing based on the renewal interaction information, so as to realize the renewal processing of the leased device. The renewal settlement request refers to the request for settlement in the blockchain network during the renewal process, and the renewal processing instruction is the instruction information sent to the target leased device, which is used to instruct the leased device to continue to provide the corresponding lease service.

[0088] Exemplarily, in the process of lease processing, when approaching the lease time point specified by the lease duration information, the target object can be notified in advance whether to renew the lease, so as to avoid the sudden shutdown of the leased device. For example, 10 minutes or 5 minutes before the lease service stops, a renewal reminder message can be sent to the target leased device. If the target object confirms that it needs to renew the lease, based on the renewal reminder message, the renewal duration can be selected, and a renewal feedback message can be submitted to the lease management server acting as a blockchain node. When the lease management server receives the renewal feedback message based on the renewal reminder message, it pushes the renewal interaction information to the target leased device. The target object can perform resource interaction processing for the entire renewal process based on the renewal interaction information. This interaction process can still be realized through the target information storage chip. The lease management server can generate a renewal settlement request and a renewal processing instruction based on the renewal interaction information when detecting a resource interaction operation for the renewal interaction information. The renewal processing instruction among them is sent to the target leased device, which is used to instruct the target leased device to update the lease duration information in the device, continue to provide the lease service, and execute the renewal settlement request through the blockchain network to obtain the renewal settlement result. In this embodiment, by using the renewal reminder message to prompt the target object to perform the interaction processing and settlement processing of the renewal process, the renewal efficiency of the lease service process can be effectively improved, thereby improving the equipment lease management efficiency.

[0089] In an exemplary embodiment, in the case of receiving the renewal feedback message based on the renewal reminder message, feeding back the renewal interaction information to the target leased device includes: in the case of receiving the renewal feedback message based on the renewal reminder message, generating a resource interaction graphic code corresponding to the target leased device based on the leased device information; pushing the renewal interaction information including the resource interaction graphic code to the target leased device; in the case of detecting a resource interaction operation for the renewal interaction information, generating a renewal settlement request and a renewal processing instruction based on the renewal interaction information includes: in the case of detecting a resource interaction operation for the renewal interaction information based on the resource interaction graphic code, generating a renewal settlement request and a renewal processing instruction based on the renewal interaction information.

[0090] Exemplarily, the resource interaction graphic code refers to the information of graphic codes such as barcodes or QR codes used to implement resource interaction processing. When renewing the lease, sometimes the leased device cannot support offline resource interaction based on the target information storage chip. Therefore, in the lease renewal process, in addition to performing offline resource interaction processing through the resource information stored in the target information storage chip, resource interaction processing can also be performed through the resource interaction graphic code. The target object can scan the resource interaction graphic code through the corresponding terminal device to perform resource interaction processing during the lease renewal process, improving the resource interaction efficiency. In one embodiment, the solution of the present application is applicable to the management of rental devices for shared power banks. When the battery power of the mobile device carried by the target object is insufficient, the rental process of the shared power bank can be directly completed in an offline state through the target information storage chip, so as to charge the mobile device with insufficient battery power. When the rental time limit specified by the rental duration information is reached, if the target object wishes to continue renting, the corresponding resource interaction image code can be fed back to the shared power bank. At this time, the target object can directly scan the resource interaction graphic code on the shared power bank through the mobile device to perform resource interaction processing during the lease renewal process. In this embodiment, by using the resource interaction graphic code as the voucher information for resource interaction, the resource interaction processing during the lease renewal process can be completed in the case where the rental device is not suitable for offline resource interaction authentication, thereby effectively improving the scenario expandability of device rental.

[0091] In an exemplary embodiment, step 306 includes: when detecting a resource interaction operation for the lease renewal interaction information, generating a lease renewal settlement request and a lease renewal processing instruction based on the lease renewal interaction information, including: when detecting a resource interaction operation for the lease renewal interaction information, querying the lease record information of the target rental device in the blockchain network; generating the lease renewal record information of the target rental device based on the lease record information and the lease renewal interaction information; generating a lease renewal settlement request and a lease renewal processing instruction based on the lease renewal record information.

[0092] Exemplarily, the equipment renewal process and the equipment leasing process are interrelated. Therefore, during the equipment renewal process, if it is confirmed that the target object wishes to renew the equipment and resource interaction operations for the renewal process are carried out, the lease record information of the target leased equipment can be queried in the blockchain network. Then, based on the lease record information and combined with information such as the renewal duration selected by the target object in the renewal interaction information, the renewal record information of the target leased equipment is generated, and a renewal settlement request and a renewal processing instruction are generated based on the renewal record information. Thus, the association between the leasing process and the renewal process is effectively realized to achieve the record processing of the complete leasing process. In this embodiment, by querying the lease record information of the target leased equipment to complete the information record processing of the renewal process, the efficiency and accuracy of the information record of the renewal process can be effectively improved, thereby ensuring the accuracy of the lease information record and further improving the efficiency of the subsequent lease information query process.

[0093] In an exemplary embodiment, step 308 includes: uploading the lease settlement request to the resource interaction pool of the blockchain network; when the block generation condition is met, calling the lease settlement contract through the blockchain network to execute the lease settlement request in the resource interaction pool to obtain the lease settlement result.

[0094] Exemplarily, for the specific process of lease settlement processing, after the resource transfer process is completed, the lease settlement request can be uploaded to the resource interaction pool of the blockchain network, and then the resource data settlement processing of these lease settlement requests is completed in the resource interaction pool, and the corresponding lease information is recorded at the same time. For the lease settlement requests in the resource interaction pool, when the block generation condition is met, the blockchain nodes will read out all the requests in the resource interaction pool at one time, and perform corresponding resource interaction settlement and lease information recording and other processing on the lease settlement requests among them. In one embodiment, the block generation can be triggered periodically, for example, the block generation process is triggered at a certain time interval. In another embodiment, the block generation can be triggered according to the request volume of the resource interaction pool. When the resource volume threshold is reached, the block generation can be directly triggered. After the block generation is triggered, the lease settlement contract can be called through the blockchain network to execute the lease settlement request in the resource interaction pool to obtain the lease settlement result. Thus, the efficiency and accuracy of the block generation process are ensured. In this embodiment, by using the resource interaction pool to store the lease settlement requests for resource interaction settlement and lease record of the leasing process, the efficiency and accuracy of the lease settlement process can be effectively ensured.

[0095] In an exemplary embodiment, the method further includes: generating a next block of the blockchain network based on the lease settlement result; sending the next block to each block node of the blockchain network for consensus processing to obtain a consensus result; performing a consensus verification process based on the consensus result; and when the consensus verification process passes, performing a storage process on the next block.

[0096] Among them, the consensus process is a way to process newly generated blocks through a consensus mechanism. As a data structure that stores data in chronological order, the blockchain can support different consensus mechanisms. The consensus mechanism is an important component of blockchain technology. The goal of the blockchain consensus mechanism is to enable all honest nodes to maintain a consistent view of the blockchain, while satisfying two properties: Consistency. The prefix parts of the blockchains saved by all honest nodes are exactly the same. Validity. Information released by a certain honest node will eventually be recorded in the blockchains of all other honest nodes.

[0097] Exemplarily, when the request is processed and the next block is generated, in order to store the newly generated block in the blockchain, it is necessary for the nodes on the blockchain to complete the consensus process for the newly generated block. At this time, the next block is sent to each block node of the blockchain network for consensus processing to obtain the consensus result of each block node for the newly generated next block. After obtaining the consensus results feedback by each block node, a consensus verification process can be performed based on the consensus results; if the consensus verification process passes, the next block can be stored to update the blockchain. If the consensus verification fails, information indicating the failure of the consensus verification is directly feedback. In this embodiment, the generated next block is verified through consensus verification, so as to save the data of the equipment leasing process to the blockchain, form a complete data processing chain, and ensure the traceability of the equipment leasing process.

[0098] In an exemplary embodiment, generating a next block of the blockchain network based on the lease settlement result includes: performing a hash transformation process on the lease settlement result through a hash algorithm to generate a digital digest of the lease settlement result; and performing a signature process on the digital digest based on a pre-stored signature key to generate a next block of the blockchain network.

[0099] Among them, the hash algorithm, i.e., the Hash algorithm, can transform an input of any length into an output of a fixed length through the hash algorithm, and this output is the hash value. Simply put, it is a function that compresses a message of any length into a message digest of a certain fixed length. Each block in the blockchain contains a unique hash value, which is generated by hashing the content of the block, including its transactions, metadata (such as timestamps), and the hash of the previous block. This unique hash value can serve as the fingerprint of the block, making its content easy to identify and verify. The digital digest is the hash data obtained after performing a hash operation on the block data. The pre-stored signature key is the private key of the blockchain corresponding to the lease device management server that is currently a blockchain node, and is used for other blockchain nodes to perform consensus authentication on the newly generated block.

[0100] Exemplarily, during the block generation process, in order for other blocks to complete the consensus and verification of the newly generated block, during the block generation process, a hash transformation process can be performed on all lease settlement results within the block to obtain a digital digest of a fixed length. Then, based on the data digest, the pre-stored signature key of the current lease device management server is added to sign the digital digest. Thereby generating the next block of the blockchain network, and the newly generated block will be sent to each node in the blockchain for consensus processing. Other blockchain nodes can authenticate and perform consensus processing on the newly generated block by decoding the digest to restore the key. In this embodiment, by performing the summary and consensus processing of the lease settlement results, a new block is generated, which can effectively ensure the security of the process of generating the newly generated block. The management process of lease devices involves data transmission and exchange, and traditional management methods are vulnerable to hacker attacks, resulting in the lease devices being tampered with or information being stolen. And this application uses blockchain technology to implement lease management, adopting distributed data storage and encryption algorithms, which can effectively protect the security of lease device data. At the same time, each blockchain node can have its own private key, and node identity authentication and data transmission are carried out through the blockchain, thereby realizing the secure management of downstream lease devices.

[0101] In one embodiment, the detailed structure of the blockchain node for implementing blockchain-based device leasing in this application can be referred to as shown in FIG. 6, including:

[0102] The network module, that is, the module for the blockchain node to interact with other blockchain nodes in the blockchain network; the network module exposes a unified port externally to provide an access method. It can implement the functions of requesting to go on-chain and data query. Requesting to go on-chain can transmit the resource interaction settlement request to the module of the blockchain network. Data query refers to querying the data in the blockchain based on the query statement sent by the user and providing feedback. The network module can also communicate with the lease device and send instructions to the lease device to complete the management of the lease device.

[0103] Authentication module, a module for a blockchain node to verify the permissions of requests. It includes a signature verification module, which is a module for a blockchain node to verify the signature of a request. It also includes a permission verification module, which is a module for a blockchain node to judge the permissions of the requester's identity, that is, whether there is permission to perform a request operation.

[0104] Resource interaction pool module, a module for caching various requests and executing them.

[0105] Smart contract execution module, which is used to execute various smart contracts in the blockchain network. For example, the module can call the lease settlement contract to execute the lease settlement request in the resource interaction pool. And when the block generation conditions are met, it can call the resource interaction contract through the blockchain network to execute the resource interaction request in the resource interaction pool to obtain the resource interaction settlement result. That is, data processing is carried out by executing smart contracts.

[0106] Block generation module, a module for generating a new block after executing all requests in the current block.

[0107] Consensus module, a module for a blockchain node to conduct a consensus vote.

[0108] Storage module, a module for a blockchain node to store blockchain data. It includes a state database, which is a database for storing the latest variable states. It also includes a block ledger, which is a text file for storing blocks.

[0109] Leased equipment management module, which is used to generate various instructions for leased equipment management and send the instructions to the specified leased equipment through the network module.

[0110] Human-computer interaction module, which is used to provide a human-computer interaction interface. The target object can submit a lease service setting message through the human-computer interaction module to start the lease process.

[0111] In an exemplary embodiment, the method further includes: when receiving a device return message fed back by a leased device that has been returned within the area, extracting the leased device information in the device return message; querying the lease record information of the leased device that has been returned in the blockchain network; updating the lease record information based on the timestamp information in the device return message to generate a return settlement request; and executing the return settlement request through the blockchain network to obtain a return settlement result.

[0112] Wherein, the device return message refers to the result message fed back by the leased device that has been returned to the lease management server, indicating the end of the lease process, and the timestamp information therein is the specific timestamp of the device return.

[0113] Exemplarily, for the lease return process, when the lease term expires or the leased equipment is not needed temporarily, the target object can return the leased equipment through a return operation. After the target object completes the return process of the leased equipment, the returned leased equipment can send an equipment return message to the lease management server. The equipment management server can then extract the leased equipment information in the equipment return message, and then query the lease record information related to the returned leased equipment in the blockchain network based on the leased equipment information. Then, based on the lease record information, update the lease record information through the timestamp information in the equipment return message, generate a return settlement request, record the record information of the equipment return into the blockchain network through the return settlement request, execute the return settlement request through the blockchain network to obtain a return settlement result, and complete the entire processing flow from equipment leasing to equipment return. In one embodiment, for equipment with strong mobility, such as cars for time-sharing leasing, the mobility of these equipment makes the blockchain nodes corresponding to the leasing process and the return process different. In this case, the blockchain node of the return process can be different from that of the leasing process. At this time, the blockchain node of the return process can, according to the timestamp information and leased equipment information fed back by the leased equipment, search for relevant lease information in the blockchain, and then generate a return settlement request based on the found lease information, and then record the entire equipment leasing process by uploading the return settlement request to the blockchain. In this embodiment, through the record search and record update processing of the equipment return process, the follow-up effect of the leased equipment management process on the leased equipment can be effectively guaranteed, thereby effectively improving the management efficiency of the leased equipment.

[0114] In an exemplary embodiment, the method further includes: obtaining a lease record query request; invoking a record query smart contract based on the lease record query request, and querying the lease settlement result corresponding to the lease record query request in the blockchain network through the record query smart contract; generating and feeding back equipment lease record information based on the lease settlement result.

[0115] The lease record query request refers to an information query request made by the management personnel of the leased equipment to the lease management server acting as a blockchain node. Through the lease record query request, various lease records of a specified leased equipment within a specified time period can be queried in the record information of the blockchain network, including lease time, lease location, return timestamp, return location, etc., which can effectively trace the leasing process and thus complete the follow-up processing of the leased equipment.

[0116] Exemplarily, the management personnel of the leased equipment can also complete the information query process of the leased equipment through the lease management server. Since all kinds of information in the equipment leasing process are stored in the blocks of the blockchain network, when the equipment is damaged by humans or other situations occur, the information restoration process of the equipment leasing process can be completed through the recorded information in the blockchain network. At this time, the management personnel can specify the leased equipment and time period to be queried, and submit the corresponding lease record query request to the lease management server. The lease management server can then call the record query smart contract based on the lease record query request. Through the record query smart contract, the lease settlement result corresponding to the lease record query request is queried in the blockchain network, and then the corresponding lease record information is obtained from the lease settlement result, and the lease record information is fed back to the management personnel. The management personnel can further understand the equipment leasing situation based on data such as the lease record information. In the traditional management of leased equipment, information such as the operating status and data exchange of the leased equipment can usually only be viewed and controlled by the management agency or platform. By using blockchain technology, the transparency of leased equipment management can be achieved. The operating status and data exchange of each leased equipment will be recorded on the blockchain, and all participants can view and verify this information. This transparency can improve the fairness and credibility of leased equipment management and reduce improper operations of the management agency. In this embodiment, by generating and feeding back the lease record information through the lease record query request, the traceability and retrievability of the lease record can be effectively ensured.

[0117] In an exemplary embodiment, the method further includes: obtaining a node connection establishment request sent by a blockchain node; and feeding back network address information and port information to the blockchain node based on the node connection establishment request to establish a blockchain network connection with the blockchain node.

[0118] Among them, the node connection establishment request refers to a communication request sent by a newly added blockchain node to the original nodes in the blockchain network, which is used to request the original nodes to establish a connection with the new node. The network address information and port information are the information of the current blockchain node, and the newly added blockchain node can connect to the current blockchain node based on the network address information and port information.

[0119] Exemplarily, in the scenario of equipment leasing, the number of leasing equipment management servers may change due to reasons such as business expansion, and the number of blockchain nodes will also change accordingly. In this case, the original blockchain nodes need to establish connections with the new nodes to increase the number of blockchain nodes. Therefore, when a new blockchain node is connected to the blockchain network, the newly added blockchain node can send a node connection establishment request to the original nodes in the blockchain network. After receiving the node connection establishment request, these original nodes will verify the request. After the verification is completed, based on the node connection establishment request, they will feedback network address information and port information to the newly added blockchain node, and the newly added blockchain node can establish a blockchain network connection according to the network address information and port information. In one embodiment, the blockchain network for leasing equipment management can be implemented through a consortium blockchain. The providers of leased equipment can all join the management process of the blockchain as participants in the consortium blockchain. During the blockchain settlement process, the lease information corresponding to the leased equipment provided by each of these participants can be searched in the blockchain, and then the settlement service corresponding to the provider can be completed based on this lease information. Through the blockchain management method, equipment providers can all join the supervision of the lease settlement system as participants in the consortium blockchain, realizing the transparency of leased equipment management. The operating status, lease list, and data exchange of each leased equipment will be recorded on the blockchain, and all participants can view and verify this information. Through the blockchain network, the decentralized management of leased equipment can be achieved. In traditional leased equipment management, a centralized management institution or platform is usually required to perform tasks such as registration, authentication, and maintenance of leased equipment. However, centralized management has problems of single-point failure and security risks. By using blockchain technology, decentralized leased equipment management can be achieved. Each leased equipment can become a part of the blockchain network and independently participate in management and verification, thereby improving the stability and security of the system. In addition, by implementing the management of leased equipment through the automated execution of smart contracts in the blockchain network, the management efficiency can be greatly improved. In addition, blockchain technology can also enable direct communication and collaboration between leased management devices, further enhancing the efficiency of the entire leased management system. In this embodiment, by using the node connection establishment request to complete the verification and connection of the newly added node, the scalability of the entire blockchain network can be effectively improved, thereby improving the scalability and processing efficiency of the leased equipment management process.

[0120] The present application also provides an application scenario, which applies the above-mentioned blockchain-based equipment leasing method. Specifically, the application of the blockchain-based equipment leasing method in this application scenario is as follows:

[0121] When a user hopes to lease a shared car, they can go to the car rental service point and submit a corresponding rental request at the rental service point. The sequence diagram of the rental process can be referred toFigure 7 As shown, first, the user can complete the identity authentication process on the rental management server at the rental service point through methods such as face or fingerprint. After the identity authentication is completed, the rental service point can also authenticate the user's driving qualification based on the result of the identity authentication. After all the authentications are completed, the user can select the car number and rental duration that they hope to rent on the human-computer interaction interface of the rental management server to generate a rental service setting message. After the rental management server obtains the generated rental service setting message, it will first identify the rental device information and rental duration information in the rental service setting message, and based on the rental device information, search for the device status information of the target rental device; generate device status display information according to the device status information, and feedback the device status display information. The user can confirm the car status based on the device status display information. After the confirmation is completed, the user can further feedback a device confirmation message on the operation interface. When the rental management server receives the device confirmation message for the device status display information, it can feedback resource interaction information based on the rental device information and rental duration information. The user can, according to the prompt of the resource interaction information, perform a resource interaction operation at the specified interaction location through a hardware wallet containing the target information storage chip. When the rental management server detects a resource interaction operation of the target information storage chip for the resource interaction information, it queries the offline resource storage information of the target information storage chip. When the offline resource storage information meets the interaction requirements, it returns a confirmation message to the user, and after the user's confirmation is completed, it performs resource interaction processing based on the resource interaction information and the offline resource storage information, generates a rental settlement request, and starts the shared car specified by the user based on the rental device information and rental duration information. The user can operate the shared car when the startup of the shared car is completed. At the same time, the rental management server will execute the rental settlement request through the blockchain network, obtain the rental settlement result, and save the generated rental settlement result to the blockchain network.

[0122] In addition, shared car rentals also include renewal and return processes. Regarding renewal, as the lease expiration date approaches, the rental management server will preemptively send a renewal reminder message to the target rental device. Users can confirm renewal by operating the shared car's onboard terminal in response to the renewal reminder message. Upon confirmation, the onboard terminal will send a renewal confirmation message back to the rental management server. Upon receiving a renewal feedback message based on the renewal reminder message, the rental management server will push renewal interaction information to the shared car. Users can complete the renewal process based on the renewal interaction information. Upon detecting resource interaction operations related to the renewal interaction information, the rental management server will generate a renewal settlement request and renewal processing instructions based on the renewal interaction information. The renewal processing instructions will be sent to the shared car, and the renewal settlement request will be executed via the blockchain network, resulting in a renewal settlement result. The renewal interaction information can be implemented as a QR code, and users can scan the QR code on the onboard terminal to perform resource interaction processing during the renewal process.

[0123] As for the shared car return process, users can drive the shared car to the designated stop within the set rental period to complete the return of the shared car. After the shared car is returned, the shared car's onboard terminal will send a device return message to the rental management server in the current area. After receiving the device return message, the rental management server in the current area will update the rental record information based on the timestamp information in the device return message and generate a return settlement request. The return settlement request is executed through the blockchain network to obtain the return settlement result, completing the update process of the shared car rental record in the blockchain.

[0124] In one embodiment, the complete process of blockchain-based equipment leasing of this application can be referred to Figure 8 Shown, including:

[0125] Step 801: Obtain a rental service setting message, and identify the rental equipment information and rental duration information in the rental service setting message. Step 803: Based on the rental equipment information, search for the device status information of the target rental equipment. Step 805: Generate device status display information according to the device status information, and feedback the device status display information. Step 807: When receiving a device confirmation message for the device status display information, feedback resource interaction information based on the rental equipment information and rental duration information. Step 809: In the case of detecting a resource interaction operation of the target information storage chip for the resource interaction information, query the offline resource storage information of the target information storage chip. Step 811: Perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a rental settlement request, and start the target rental equipment based on the rental equipment information and rental duration information. Step 813: Execute the rental settlement request through the blockchain network to obtain a rental settlement result. Step 815: Send a renewal reminder message to the target rental equipment based on the rental duration information. Step 817: When receiving a renewal feedback message based on the renewal reminder message, push renewal interaction information to the target rental equipment. Step 819: In the case of detecting a resource interaction operation for the renewal interaction information, generate a renewal settlement request and a renewal processing instruction based on the renewal interaction information. Step 821: Send the renewal processing instruction to the target rental equipment, and execute the renewal settlement request through the blockchain network to obtain a renewal settlement result. Step 823: When receiving a device return message feedback by a rented device that has been returned within the area, extract the rental equipment information in the device return message. Step 825: Query the rental record information of the returned rental equipment in the blockchain network. Step 827: Update the rental record information based on the timestamp information in the device return message to generate a return settlement request. Step 829: Execute the return settlement request through the blockchain network to obtain a return settlement result.

[0126] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, these steps do not necessarily need to be executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages do not necessarily need to be executed at the same time, but can be executed at different times. The execution order of these steps or stages does not necessarily need to be sequential, but can be executed alternately or alternately with at least some of the steps or stages in other steps or other steps.

[0127] Based on the same inventive concept, an embodiment of the present application further provides a blockchain-based device leasing apparatus for implementing the above-mentioned blockchain-based device leasing method. The solution provided by this apparatus for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the following blockchain-based device leasing apparatus can refer to the limitations on the blockchain-based device leasing method in the above text, and will not be repeated here.

[0128] In an exemplary embodiment, as Figure 9 shown, a blockchain-based device leasing apparatus is provided, including:

[0129] A message acquisition module 902, configured to acquire a lease service setting message and identify lease device information and lease duration information in the lease service setting message.

[0130] An interaction information feedback module 904, configured to feedback resource interaction information based on the lease device information and the lease duration information.

[0131] An operation detection module 906, configured to query the offline resource storage information of the target information storage chip when detecting a resource interaction operation of the target information storage chip for the resource interaction information.

[0132] A device startup module 908, configured to perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a lease settlement request, and start the target lease device based on the lease device information and the lease duration information.

[0133] A lease settlement module 910, configured to execute the lease settlement request through the blockchain network to obtain a lease settlement result.

[0134] In one embodiment, the interaction information feedback module 904 is specifically configured to: find the device status information of the target lease device based on the lease device information; generate device status display information according to the device status information and feedback the device status display information; when receiving a device confirmation message for the device status display information, feedback the resource interaction information based on the lease device information and the lease duration information.

[0135] In one embodiment, it further includes a renewal processing module, configured to: send a renewal prompt message to the target lease device based on the lease duration information; when receiving a renewal feedback message based on the renewal prompt message, push renewal interaction information to the target lease device; when detecting a resource interaction operation for the renewal interaction information, generate a renewal settlement request and a renewal processing instruction based on the renewal interaction information; issue the renewal processing instruction to the target lease device, and execute the renewal settlement request through the blockchain network to obtain a renewal settlement result.

[0136] In one embodiment, the renewal processing module is specifically configured to: when receiving a renewal feedback message based on a renewal prompt message, generate a resource interaction graphic code corresponding to the target rental device based on the rental device information; push the renewal interaction information including the resource interaction graphic code to the target rental device; when detecting a resource interaction operation for the renewal interaction information based on the resource interaction graphic code, generate a renewal settlement request and a renewal processing instruction based on the renewal interaction information.

[0137] In one embodiment, the renewal processing module is specifically configured to: when detecting a resource interaction operation for the renewal interaction information, query the rental record information of the target rental device in the blockchain network; generate the renewal record information of the target rental device based on the rental record information and the renewal interaction information; generate a renewal settlement request and a renewal processing instruction based on the renewal record information.

[0138] In one embodiment, the rental settlement module 910 is specifically configured to: upload the rental settlement request to the resource interaction pool of the blockchain network; when the block generation condition is met, call the rental settlement contract through the blockchain network to execute the rental settlement request in the resource interaction pool to obtain the rental settlement result.

[0139] In one embodiment, it further includes a block generation module, configured to: generate the next block of the blockchain network based on the rental settlement result; send the next block to each block node of the blockchain network for consensus processing to obtain a consensus result; perform a consensus verification process based on the consensus result; when the consensus verification process passes, perform a storage process on the next block.

[0140] In one embodiment, the block generation module is specifically configured to: perform a hash transformation process on the rental settlement result through a hash algorithm to generate a digital digest of the rental settlement result; perform a signature process on the digital digest based on a pre-stored signature key to generate the next block of the blockchain network.

[0141] In one embodiment, it further includes a return record module, configured to: when receiving a device return message fed back by a rental device that has been returned within the area, extract the rental device information in the device return message; query the rental record information of the returned rental device in the blockchain network; update the rental record information based on the timestamp information in the device return message to generate a return settlement request; execute the return settlement request through the blockchain network to obtain a return settlement result.

[0142] In one embodiment, it further includes a record query module, configured to: obtain a rental record query request; call a record query smart contract based on the rental record query request, and through the record query smart contract, query the rental settlement result corresponding to the rental record query request in the blockchain network; generate and feedback device rental record information based on the rental settlement result.

[0143] In one embodiment, it further includes a node authentication module, which is used to: obtain a node connection establishment request sent by a blockchain node; and feedback network address information and port information to the blockchain node based on the node connection establishment request to establish a blockchain network connection with the blockchain node.

[0144] Each module in the above-mentioned blockchain-based device leasing device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in the form of hardware or independent of it, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0145] In an exemplary embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 10 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to resource data processing in the blockchain. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a blockchain-based device leasing method.

[0146] Those skilled in the art can understand that Figure 10 the structure shown in

[0147] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0148] In one embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, it implements the steps in the above-mentioned method embodiments.

[0149] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in the foregoing method embodiments.

[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.

[0151] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0152] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0153] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A device leasing method based on blockchain, characterized in that, The method includes: Obtaining a rental service setting message, and identifying rental device information and rental duration information in the rental service setting message; Feedbacking resource interaction information based on the rental device information and the rental duration information; When detecting a resource interaction operation of a target information storage chip for the resource interaction information, querying the offline resource storage information of the target information storage chip; Performing resource interaction processing based on the resource interaction information and the offline resource storage information to generate a rental settlement request, and starting a target rental device based on the rental device information and the rental duration information; Executing the rental settlement request through a blockchain network to obtain a rental settlement result.

2. The method according to claim 1, characterized in that The feedbacking resource interaction information based on the rental device information and the rental duration information includes: Searching for device status information of a target rental device based on the rental device information; Generating device status display information according to the device status information, and feedbacking the device status display information; When receiving a device confirmation message for the device status display information, feedbacking resource interaction information based on the rental device information and the rental duration information.

3. The method according to claim 1, characterized in that, The method further includes: Sending a renewal reminder message to the target rental device based on the rental duration information; When receiving a renewal feedback message based on the renewal reminder message, pushing renewal interaction information to the target rental device; When detecting a resource interaction operation for the renewal interaction information, generating a renewal settlement request and a renewal processing instruction based on the renewal interaction information; Issuing the renewal processing instruction to the target rental device, and executing the renewal settlement request through the blockchain network to obtain a renewal settlement result.

4. The method according to claim 3, characterized in that The feedbacking renewal interaction information to the target rental device when receiving a renewal feedback message based on the renewal reminder message includes: When receiving a renewal feedback message based on the renewal reminder message, generating a resource interaction graphic code corresponding to the target rental device based on the rental device information; Pushing the renewal interaction information including the resource interaction graphic code to the target rental device; The generating a renewal settlement request and a renewal processing instruction based on the renewal interaction information when detecting a resource interaction operation for the renewal interaction information includes: When detecting a resource interaction operation for the renewal interaction information based on the resource interaction graphic code, generating a renewal settlement request and a renewal processing instruction based on the renewal interaction information.

5. The method according to claim 4, wherein The generating a renewal settlement request and a renewal processing instruction based on the renewal interaction information when detecting a resource interaction operation for the renewal interaction information includes: When detecting a resource interaction operation for the renewal interaction information, querying the rental record information of the target rental device in the blockchain network; Generating renewal record information of the target rental device based on the rental record information and the renewal interaction information; Generating a renewal settlement request and a renewal processing instruction based on the renewal record information.

6. The method according to claim 1, wherein Performing the lease settlement request through the blockchain network to obtain a lease settlement result includes: Uploading the lease settlement request to the resource interaction pool of the blockchain network; When the block generation condition is met, invoking a lease settlement contract through the blockchain network to execute the lease settlement request in the resource interaction pool to obtain a lease settlement result.

7. The method according to claim 6, characterized in that, The method further includes: Generating a next block of the blockchain network based on the lease settlement result; Sending the next block to each block node of the blockchain network for consensus processing to obtain a consensus result; Performing consensus verification processing based on the consensus result; When the consensus verification processing passes, performing storage processing on the next block.

8. The method according to claim 7, wherein The generating the next block of the blockchain network based on the lease settlement result includes: Performing a hash transformation process on the lease settlement result through a hash algorithm to generate a digital digest of the lease settlement result; Signing the digital digest based on a pre-stored signature key to generate the next block of the blockchain network.

9. The method according to claim 1, characterized in that, The method further includes: When receiving a device return message feedback by a leased device that has been returned within a region, extracting the leased device information in the device return message; Querying the lease record information of the returned leased device in the blockchain network; Updating the lease record information based on the timestamp information in the device return message to generate a return settlement request; Performing the return settlement request through the blockchain network to obtain a return settlement result.

10. The method according to claim 1, characterized in that, The method further includes: Obtaining a lease record query request; Invoking a record query smart contract based on the lease record query request, and through the record query smart contract, querying the lease settlement result corresponding to the lease record query request in the blockchain network; Generating and feeding back device lease record information based on the lease settlement result.

11. The method according to any one of claims 1 to 10, characterized in that, [[ID=2,0]]The method further includes: [[ID=2,1]]Obtaining a node connection establishment request sent by a blockchain node; [[ID=2,2]]Feeding back network address information and port information to the blockchain node based on the node connection establishment request to establish a blockchain network connection with the blockchain node.

12. A blockchain-based device leasing device, characterized in that, [[ID=2,3]]The device includes: [[ID=2,4]]A message acquisition module, configured to acquire a lease service setting message and identify the leased device information and lease duration information in the lease service setting message; [[ID=2,5]]An interaction information feedback module, configured to feedback resource interaction information based on the leased device information and the lease duration information; [[ID=2,6]]An operation detection module, configured to query the offline resource storage information of the target information storage chip when detecting a resource interaction operation of the target information storage chip for the resource interaction information; [[ID=2,7]]A device startup module, configured to perform resource interaction processing based on the resource interaction information and the offline resource storage information, generate a lease settlement request, and start a target leased device based on the leased device information and the lease duration information; [[ID=2,8]]A lease settlement module, configured to perform the lease settlement request through a blockchain network to obtain a lease settlement result.

13. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, [[ID=2,9]]When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 11.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 11.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 11.

Citation Information

Cited By

  • Return bin access detection system and method, rental cabinet and medium

    CN120877422A