CN112381599A - Shared charger rental system and method based on block chain technology - Google Patents

Shared charger rental system and method based on block chain technology Download PDF

Info

Publication number
CN112381599A
CN112381599A CN202011188727.9A CN202011188727A CN112381599A CN 112381599 A CN112381599 A CN 112381599A CN 202011188727 A CN202011188727 A CN 202011188727A CN 112381599 A CN112381599 A CN 112381599A
Authority
CN
China
Prior art keywords
leasing
shared
information
block chain
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202011188727.9A
Other languages
Chinese (zh)
Inventor
冯贵祖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan Bozhi Yingju Technology Co Ltd
Original Assignee
Foshan Bozhi Yingju Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan Bozhi Yingju Technology Co Ltd filed Critical Foshan Bozhi Yingju Technology Co Ltd
Priority to CN202011188727.9A priority Critical patent/CN112381599A/en
Publication of CN112381599A publication Critical patent/CN112381599A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The invention provides a shared charger baby leasing system based on a block chain technology, which comprises: the reading module is used for reading the leasing information of the shared charge pal; the write-in module is used for writing the leasing data corresponding to the leasing information into the block chain; the search module is used for searching the leasing data corresponding to the shared charger from the block chain; and the calculating module is used for acquiring the block time corresponding to the leasing data and calculating the leasing duration and the leasing cost of the shared charger according to the block time. The method and the device ensure the accuracy and the reliability of the rental time of the shared charge pal by utilizing the characteristics that the data in the block chain cannot be tampered and counterfeited, can timely and accurately obtain the rental time and calculate the rental cost even if the timing system and the local server go down due to faults, and effectively avoid the problem that the data of the server is hacked and tampered. Correspondingly, the invention further provides a shared charger rental method based on the block chain technology.

Description

Shared charger rental system and method based on block chain technology
Technical Field
The invention relates to the technical field of block chains, in particular to a shared charger rental system and a method based on a block chain technology.
Background
The shared charging treasure refers to charging rental equipment provided by an enterprise. In the prior art, the rental time and the charge of the shared charge pal are obtained based on data records of a timing system and a local server, but the shared charge pal rental data is inconsistent with the actual rental situation because the timing system and the local server have fault downtime or data falsification by hackers.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission networks, consensus mechanisms, encryption algorithms and the like. The block chain combines the data blocks in a sequential connection mode according to the time sequence to form a chain data structure, and the distributed account book which is guaranteed in a cryptographic mode and cannot be tampered and forged is guaranteed. Therefore, the block chain technology is applied to the shared charge pal rental, and the problem that in the prior art, due to the fact that the timing system and the local server are in failure and down or hacked and tampered with data, shared charge pal rental data is inconsistent with the actual rental situation can be solved.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a shared charger rental system and a method based on a block chain technology, and the specific technical scheme of the invention is as follows:
a shared power bank rental system based on block chain technology comprises:
the reading module is used for reading the leasing information of the shared charge pal;
the writing module is used for writing the leasing data corresponding to the leasing information into the block chain;
the searching module is used for searching the leasing data corresponding to the shared power bank from the block chain;
and the calculation module is used for acquiring the block time corresponding to the leasing data and calculating the leasing duration and the leasing cost of the shared charger according to the block time.
Optionally, the lease information includes identification information of the shared power bank and identity information of the lease user, which are bound to each other.
Optionally, the rental data is obtained by performing hash algorithm conversion on the rental information.
Accordingly, the invention provides a shared power bank rental method based on a block chain technology, which is applied to the shared power bank rental system.
The shared charger rental method comprises the following steps: reading lease information of a shared charger baby; writing the leasing data corresponding to the leasing information into a block chain; searching leasing data corresponding to the shared charger baby from the block chain; and acquiring block time corresponding to the leasing data, and calculating the leasing time and the leasing cost of the shared charger according to the block time.
Optionally, the lease information includes identification information of the shared power bank and identity information of the lease user, which are bound to each other.
Optionally, the rental data is obtained by performing hash algorithm conversion on the rental information.
Accordingly, the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed, the shared battery charger rental method based on the blockchain technology is implemented.
The beneficial effects obtained by the invention comprise: the license storage of the rental data of the shared charging pal is realized by writing the rental information of the shared charging pal into the block chain. The method comprises the steps of searching lease data corresponding to the shared power bank from a block chain, then obtaining block time corresponding to the lease data, calculating lease duration and lease cost of the shared power bank according to the accurate and credible block time in the blocks, ensuring accuracy and reliability of the lease duration of the shared power bank by utilizing the characteristics that the data in the block chain cannot be tampered and forged, obtaining the lease duration accurately in time even if a timing system and a local server are out of order due to faults, calculating the lease cost, and effectively avoiding the problem that the data of the server is tampered by hackers.
Drawings
The present invention will be further understood from the following description taken in conjunction with the accompanying drawings, the emphasis instead being placed upon illustrating the principles of the embodiments.
Fig. 1 is a schematic overall structure diagram of a shared power bank rental system based on a block chain technology according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a shared power bank rental method based on a blockchain technique according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to embodiments thereof; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Other systems, methods, and/or features of the present embodiments will become apparent to those skilled in the art upon review of the following detailed description. It is intended that all such additional systems, methods, features and advantages be included within this description, be within the scope of the invention, and be protected by the accompanying claims. Additional features of the disclosed embodiments are described in, and will be apparent from, the detailed description that follows.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there is an orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", etc. based on the orientation or positional relationship shown in the drawings, it is only for convenience of describing the present invention and simplifying the description, but it is not intended to indicate or imply that the device or component referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes and are not to be construed as limiting the present patent, and the specific meaning of the terms described above will be understood by those of ordinary skill in the art according to the specific circumstances.
The invention relates to a sharing charger baby leasing system and a method based on a block chain technology, which explain the following embodiments according to the attached drawings:
the first embodiment is as follows:
as shown in fig. 1, a shared power bank rental system based on the blockchain technology includes: the reading module is used for reading the leasing information of the shared charge pal; the writing module is used for writing the leasing data corresponding to the leasing information into the block chain; the searching module is used for searching the leasing data corresponding to the shared power bank from the block chain; and the calculation module is used for acquiring the block time corresponding to the leasing data and calculating the leasing duration and the leasing cost of the shared charger according to the block time.
The leasing information comprises identification information of the shared charging treasure and identity information of the leasing user, wherein the identification information and the identity information are bound with each other. Generally, a shared power bank is placed in a rental cabinet in places such as malls, supermarkets, venues, movie theaters, restaurant restaurants, and office buildings. The shared treasured lease rack that charges includes mechanical part and treater, and the treater realizes the treasured of charging depositing through the action of control mechanical part. The shared precious rack that charges can adopt pop-up formula, also can adopt artifical pull formula, and its specific structure is no longer repeated here.
As a preferred technical solution, the rental data is obtained by converting the rental information through a hash algorithm, that is, the rental data is obtained by mutually binding the identification information of the shared power bank and the identity information of the rental user through a hash algorithm.
Accordingly, the invention provides a shared power bank rental method based on a block chain technology, which is applied to the shared power bank rental system.
As shown in fig. 2, the shared charger rental method includes the following steps:
reading lease information of a shared charger, wherein the lease information comprises identification information of the shared charger and identity information of a lease user which are bound with each other;
writing lease data corresponding to the lease information into a block chain, wherein the lease data can be obtained by one or more times of Hash algorithm conversion of the lease information, or can be obtained by one or more combination conversion of Hash algorithm, elliptic encryption algorithm and RSA encryption algorithm of the lease information;
searching leasing data corresponding to the shared charger baby from the block chain;
and acquiring block time corresponding to the leasing data, and calculating the leasing time and the leasing cost of the shared charger according to the block time.
The license storage of the rental data of the shared charging pal is realized by writing the rental information of the shared charging pal into the block chain. The method comprises the steps of searching lease data corresponding to the shared power bank from a block chain, then obtaining block time corresponding to the lease data, calculating lease duration and lease cost of the shared power bank according to the accurate and credible block time in the blocks, ensuring accuracy and reliability of the lease duration of the shared power bank by utilizing the characteristics that the data in the block chain cannot be tampered and forged, obtaining the lease duration accurately in time even if a timing system and a local server are out of order due to faults, calculating the lease cost, and effectively avoiding the problem that the data of the server is tampered by hackers.
Example two:
as shown in fig. 1, a shared power bank rental system based on a blockchain technology includes a plurality of shared power bank rental cabinets, where the plurality of shared power bank rental cabinets are blockchain nodes in a blockchain network, and the blockchain network includes, but is not limited to, a plurality of blockchain nodes of the shared power bank rental cabinets.
Data sharing can be realized among the nodes of the block chain network. Information intercommunication in the block chain network, information connection can exist between each node in the block chain network, and information transmission can be carried out between the nodes through the information connection. For example, when any node in the blockchain network broadcasts lease information, other nodes in the blockchain network acquire the lease information according to a consensus algorithm, and store the lease information as data in shared data, so that the data stored on all nodes in the blockchain network are consistent.
Each block chain node in the block chain has a node identifier corresponding thereto, and each block chain link point in the block chain may store node identifiers of other nodes in the block chain, so that the generated block is broadcast to other nodes in the block chain according to the node identifiers of other nodes in the following. Each block chain node can maintain a node identification list, and the node name and the node identification are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol ) address and any other information that can be used to identify the blockchain node. Each node in the same blockchain network stores an identical blockchain, the blockchain network is essentially a decentralized database and is a string of data blocks which are generated by correlation through a cryptographic method, and each data block contains information of a batch of network transactions and is used for verifying the validity (anti-counterfeiting) of the information and generating the next blockchain. The block chain is composed of a plurality of blocks, the starting block comprises a block head and a block main body, the block head stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
The shared charger baby leasing cabinet comprises a reading module, a writing module, a searching module and a calculating module.
The reading module is used for reading the leasing information of the shared charging treasure, the writing module is used for writing the leasing data corresponding to the leasing information into a block chain, the searching module is used for searching the leasing data corresponding to the shared charging treasure from the block chain, and the calculating module is used for acquiring the block time corresponding to the leasing data and calculating the leasing duration and the leasing cost of the shared charging treasure according to the block time.
The leasing information comprises identification information of the shared charging treasure and identity information of the leasing user, wherein the identification information is mutually bound, the identification information can be a physical address of the shared charging treasure, a production batch number or the like, and the identity information of the leasing user can be a micro signal or a fingerprint ID or the like of the user. Generally, a shared power bank is placed in a rental cabinet in places such as malls, supermarkets, venues, movie theaters, restaurant restaurants, and office buildings. The shared treasured lease rack that charges includes mechanical part and treater, and the treater realizes the treasured of charging depositing through the action of control mechanical part. The shared precious rack that charges can adopt pop-up formula, also can adopt artifical pull formula, and its specific structure is no longer repeated here.
As a preferred technical solution, the rental data is obtained by converting the rental information through a hash algorithm, that is, the rental data is obtained by mutually binding the identification information of the shared power bank and the identity information of the rental user through a hash algorithm.
In one embodiment, the process of writing a blockchain for a lease message includes: the method comprises the steps that a lease message is used as input data of a block chain, input information is verified, after verification is completed, the input information is stored in a memory pool, and a hash tree used for recording the input information is updated; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET。
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits. When the random number meeting the formula is obtained through calculation, the input data can be correspondingly stored, and a block head and a block main body are generated to obtain the current block. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the block chain network where the newly generated blocks are located according to the node identifications of the other nodes in the block chain network, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed, so that the input data are written in.
Correspondingly, the invention provides a shared charger baby leasing method based on a block chain technology, which is applied to the shared charger baby leasing system and comprises a plurality of shared charger baby leasing cabinets, wherein the plurality of shared charger baby leasing cabinets are block chain nodes in a block chain network.
The shared charger rental method comprises the following steps:
reading lease information of a shared charger baby;
after responding to the block chain network to verify the leasing information, writing the leasing data corresponding to the leasing information into the block chain;
searching leasing data corresponding to the shared charger baby from the block chain;
and acquiring block time corresponding to the leasing data, and calculating the leasing time and the leasing cost of the shared charger according to the block time.
The license storage of the rental data of the shared charging pal is realized by writing the rental information of the shared charging pal into the block chain. The method comprises the steps of searching lease data corresponding to the shared power bank from a block chain, then obtaining block time corresponding to the lease data, calculating lease duration and lease cost of the shared power bank according to the accurate and credible block time in the blocks, ensuring accuracy and reliability of the lease duration of the shared power bank by utilizing the characteristics that the data in the block chain cannot be tampered and forged, obtaining the lease duration accurately in time even if a timing system and a local server are out of order due to faults, calculating the lease cost, and effectively avoiding the problem that the data of the server is tampered by hackers.
Example three:
as shown in fig. 1, a shared power bank rental system based on a blockchain technology includes a plurality of shared power bank rental cabinets, where the plurality of shared power bank rental cabinets are blockchain nodes in a blockchain network, and the blockchain network includes, but is not limited to, a plurality of blockchain nodes of the shared power bank rental cabinets.
Data sharing can be realized among the nodes of the block chain network. Information intercommunication in the block chain network, information connection can exist between each node in the block chain network, and information transmission can be carried out between the nodes through the information connection. For example, when any node in the blockchain network broadcasts lease information, other nodes in the blockchain network acquire the lease information according to a consensus algorithm, and store the lease information as data in shared data, so that the data stored on all nodes in the blockchain network are consistent.
Each block chain node in the block chain has a node identifier corresponding thereto, and each block chain link point in the block chain may store node identifiers of other nodes in the block chain, so that the generated block is broadcast to other nodes in the block chain according to the node identifiers of other nodes in the following. Each block chain node can maintain a node identification list, and the node name and the node identification are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol ) address and any other information that can be used to identify the blockchain node. Each node in the same blockchain network stores an identical blockchain, the blockchain network is essentially a decentralized database and is a string of data blocks which are generated by correlation through a cryptographic method, and each data block contains information of a batch of network transactions and is used for verifying the validity (anti-counterfeiting) of the information and generating the next blockchain. The block chain is composed of a plurality of blocks, the starting block comprises a block head and a block main body, the block head stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
The shared treasured that charges leases rack includes and reads the module, writes into the module, seeks module and calculation module and conversion module.
The reading module is used for reading leasing information of a shared charging treasure, the converting module is used for converting the leasing information into corresponding leasing data through a Hash algorithm, the writing module is used for writing the leasing data corresponding to the leasing information into a block chain, the searching module is used for searching the leasing data corresponding to the shared charging treasure from the block chain, and the calculating module is used for obtaining block time corresponding to the leasing data and calculating the leasing duration and the leasing cost of the shared charging treasure according to the block time.
The leasing information comprises identification information of the shared charging treasure and identity information of the leasing user, wherein the identification information is mutually bound, the identification information can be a physical address of the shared charging treasure, a production batch number or the like, and the identity information of the leasing user can be a micro signal or a fingerprint ID or the like of the user. Generally, a shared power bank is placed in a rental cabinet in places such as malls, supermarkets, venues, movie theaters, restaurant restaurants, and office buildings. The shared treasured lease rack that charges includes mechanical part and treater, and the treater realizes the treasured of charging depositing through the action of control mechanical part. The shared precious rack that charges can adopt pop-up formula, also can adopt artifical pull formula, and its specific structure is no longer repeated here.
As a preferred technical solution, the rental data is obtained by converting the rental information through a hash algorithm, that is, the rental data is obtained by mutually binding the identification information of the shared power bank and the identity information of the rental user through a hash algorithm.
In one embodiment, the process of writing a blockchain for a lease message includes: the method comprises the steps that a lease message is used as input data of a block chain, input information is verified, after verification is completed, the input information is stored in a memory pool, and a hash tree used for recording the input information is updated; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET。
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits. When the random number meeting the formula is obtained through calculation, the input data can be correspondingly stored, and a block head and a block main body are generated to obtain the current block. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the block chain network where the newly generated blocks are located according to the node identifications of the other nodes in the block chain network, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed, so that the input data are written in.
In this embodiment, still provide a sharing treasured that charges, it includes the treasured body that charges, the treasured body that charges includes a GPS orientation module and identification information storage module, and GPS orientation module is used for charging the precious body location, and identification information storage module is used for the shared precious identification information that charges. The reading module in the shared charging treasure rental cabinet can be in communication connection with the identification information storage module through a data line to read identification information, and can also be in communication connection in a wireless mode such as NFC, wifi or ZigBee to read identification information. As a preferred technical solution, in this embodiment, the reading module and the identification information storage module are in communication connection through an NFC manner.
Correspondingly, the invention provides a shared charger baby leasing method based on a block chain technology, which is applied to the shared charger baby leasing system and comprises a plurality of shared charger baby leasing cabinets, wherein the plurality of shared charger baby leasing cabinets are block chain nodes in a block chain network.
The shared charger rental method comprises the following steps:
the first step, the leasing information of the shared charging treasure is read, and the identification information of the shared charging treasure and the identity information of the leasing user which are bound with each other are obtained.
The user can authorize the shared charger baby leasing system background to acquire the WeChat account as the identity information of the leasing user by scanning the two-dimensional code.
And secondly, after responding to the block chain network to verify the leasing information, writing the leasing data corresponding to the leasing information into the block chain.
After the leasing system acquires the identification information of the mutually bound shared charge pal and the identity information of the leasing user, broadcasting the leasing information into the block chain network, waiting for the block chain network to verify the leasing information, and writing the leasing information into the block chain if the block chain network passes the verification. Because the block cochain needs a certain time, after the leasing system acquires the identification information of the shared charging treasure and the identity information of the leasing user, the leasing cabinet can control the action of the mechanical part through the processor, the hardware limitation on the charging treasure is removed, and the user can take out the charging treasure conveniently.
And thirdly, searching the leasing data corresponding to the shared charger from the block chain, namely traversing the block chain to obtain the leasing data of the shared charger bound with the identity information of the leasing user when the shared charger is leased.
And fourthly, acquiring block time corresponding to the leasing data, and calculating the leasing time and the leasing cost of the shared charger according to the block time.
The block time corresponding to the rental data can be obtained by acquiring the timestamp of the block header. The time stamps of the blocks where the leasing information is located twice before and after are obtained, the time stamp of the block where the leasing information is located at the previous time is leasing time, the time stamp of the block where the leasing information is located at the next time is returning time, and the difference between the leasing time and the returning time is calculated to obtain the leasing duration and the leasing cost of the shared charge pal.
After the rental user returns the charger (the charger is reinserted back to the rental cabinet), the rental system detects that the charger is returned in an NFC mode, acquires the current time and takes the current time as the return time.
When the leasing system detects that the leasing user returns the charge pal, the identity information of the shared charge pal and the identity information of the leasing user which are bound with each other can be obtained again, the leasing information is broadcasted to the block chain network, and then the leasing information is linked.
The rental system further comprises a first communication module and a positioning module, the rental system comprises a user terminal, and the shared power bank comprises a second communication module. The user terminal communicates with the shared charging treasure through the second communication module and obtains the real-time position of the charging treasure through the GPS positioning module in the shared charging treasure. The leasing system communicates with the user terminal through the first communication module and acquires the real-time position of the shared charging treasure.
The leasing system obtains the real-time position of the leasing system, compares the real-time position with the real-time position of the shared charger, calculates the distance between the leasing system and the shared charger, and when the distance is smaller than a preset distance threshold range, can return confirmation information to the user terminal to prompt the user to read identification information of the shared charger through the user terminal and authorize the leasing system to obtain identification information of the shared charger and identity information of the leasing user, and then feeds the identification information back to the leasing system through the first communication module. The leasing system acquires the leasing information in advance and broadcasts the leasing information to the block chain network, so that the error of returning time caused by network congestion is avoided.
When the leasing system detects that the user inserts the shared charging treasure back into the cabinet, the current time is obtained, then the block time corresponding to the leasing data which is obtained in advance by the leasing system and broadcasted in the leasing information in the block chain network is obtained, the difference between the current time and the block time is calculated, if the difference between the current time and the block time is smaller than a preset time threshold value, the block time is the returning time, if the difference between the current time and the block time is larger than the preset time threshold value, the current time is the returning time, and finally the leasing system obtains the leasing duration and the leasing cost of the shared charging treasure by calculating the difference between the renting time and the returning time. Therefore, the leasing time and the leasing cost can be calculated better, and the whole leasing system is more intelligent and humanized.
The license storage of the rental data of the shared charging pal is realized by writing the rental information of the shared charging pal into the block chain. The method comprises the steps of searching lease data corresponding to the shared power bank from a block chain, then obtaining block time corresponding to the lease data, calculating lease duration and lease cost of the shared power bank according to the accurate and credible block time in the blocks, ensuring accuracy and reliability of the lease duration of the shared power bank by utilizing the characteristics that the data in the block chain cannot be tampered and forged, obtaining the lease duration accurately in time even if a timing system and a local server are out of order due to faults, calculating the lease cost, and effectively avoiding the problem that the data of the server is tampered by hackers.
Accordingly, the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed, the shared battery charger rental method based on the blockchain technology is implemented.
In summary, the system and method for leasing a shared power bank based on a block chain technology disclosed by the present invention have the following beneficial technical effects: the license storage of the rental data of the shared charging pal is realized by writing the rental information of the shared charging pal into the block chain. The method comprises the steps of searching lease data corresponding to the shared power bank from a block chain, then obtaining block time corresponding to the lease data, calculating lease duration and lease cost of the shared power bank according to the accurate and credible block time in the blocks, ensuring accuracy and reliability of the lease duration of the shared power bank by utilizing the characteristics that the data in the block chain cannot be tampered and forged, obtaining the lease duration accurately in time even if a timing system and a local server are out of order due to faults, calculating the lease cost, and effectively avoiding the problem that the data of the server is tampered by hackers.
Although the invention has been described above with reference to various embodiments, it should be understood that many changes and modifications may be made without departing from the scope of the invention. That is, the methods, systems, and devices discussed above are examples, and various configurations may omit, replace, or add various processes or components as appropriate. For example, in alternative configurations, the methods may be performed in an order different than that described and/or various components may be added, omitted, and/or combined. Moreover, features described with respect to certain configurations may be combined in various other configurations, as different aspects and elements of the configurations may be combined in a similar manner. Further, elements therein may be updated as technology evolves, i.e., many of the elements are examples and do not limit the scope of the disclosure or claims.
Specific details are given in the description to provide a thorough understanding of the exemplary configurations including implementations. However, configurations may be practiced without these specific details, such as well-known circuits, processes, algorithms, structures, and techniques, which have been shown without unnecessary detail in order to avoid obscuring the configurations. This description provides example configurations only, and does not limit the scope, applicability, or configuration of the claims. Rather, the foregoing description of the configurations will provide those skilled in the art with an enabling description for implementing the described techniques. Various changes may be made in the function and arrangement of elements without departing from the spirit or scope of the disclosure.
It is intended that the foregoing detailed description be regarded as illustrative rather than limiting, and that it be understood that it is the following claims, including all equivalents, that are intended to define the spirit and scope of this invention. The above examples are to be construed as merely illustrative and not limitative of the remainder of the disclosure. After reading the description of the invention, the skilled person can make various changes or modifications to the invention, and these equivalent changes and modifications also fall into the scope of the invention defined by the claims.

Claims (7)

1. A shared power bank rental system based on block chain technology is characterized by comprising:
the reading module is used for reading the leasing information of the shared charge pal;
the writing module is used for writing the leasing data corresponding to the leasing information into the block chain;
the searching module is used for searching the leasing data corresponding to the shared power bank from the block chain;
and the calculation module is used for acquiring the block time corresponding to the leasing data and calculating the leasing duration and the leasing cost of the shared charger according to the block time.
2. The system of claim 1, wherein the rental information includes identification information of the shared power bank and identity information of the rental user, which are bound to each other.
3. The system of claim 2, wherein the rental data is obtained by hashing the rental information.
4. A shared charger baby leasing method based on a block chain technology, which is applied to the shared charger baby leasing system of any one of claims 1 to 3, and is characterized in that the shared charger baby leasing method comprises the following steps:
reading lease information of a shared charger baby;
writing the leasing data corresponding to the leasing information into a block chain;
searching leasing data corresponding to the shared charger baby from the block chain;
and acquiring block time corresponding to the leasing data, and calculating the leasing time and the leasing cost of the shared charger according to the block time.
5. The method for leasing the shared power bank based on the blockchain technology as claimed in claim 4, wherein the leasing information includes identification information of the shared power bank and identity information of a leasing user, which are bound to each other.
6. The method for leasing a shared power bank based on a blockchain technology as claimed in claim 5, wherein the leasing data is obtained by performing hash algorithm conversion on the leasing information.
7. A computer-readable storage medium storing a computer program which, when executed, implements the method for shared battery rental based on blockchain technology according to any one of claims 4 to 6.
CN202011188727.9A 2020-10-31 2020-10-31 Shared charger rental system and method based on block chain technology Withdrawn CN112381599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011188727.9A CN112381599A (en) 2020-10-31 2020-10-31 Shared charger rental system and method based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011188727.9A CN112381599A (en) 2020-10-31 2020-10-31 Shared charger rental system and method based on block chain technology

Publications (1)

Publication Number Publication Date
CN112381599A true CN112381599A (en) 2021-02-19

Family

ID=74576294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011188727.9A Withdrawn CN112381599A (en) 2020-10-31 2020-10-31 Shared charger rental system and method based on block chain technology

Country Status (1)

Country Link
CN (1) CN112381599A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113345167A (en) * 2021-04-27 2021-09-03 北京三快在线科技有限公司 Method and device for leasing shared articles in electronic cabinet and electronic equipment
CN113569296A (en) * 2021-09-26 2021-10-29 南京中网卫星通信股份有限公司 Sharing facility safe leasing system based on alliance chain and implementation method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113345167A (en) * 2021-04-27 2021-09-03 北京三快在线科技有限公司 Method and device for leasing shared articles in electronic cabinet and electronic equipment
CN113569296A (en) * 2021-09-26 2021-10-29 南京中网卫星通信股份有限公司 Sharing facility safe leasing system based on alliance chain and implementation method thereof
CN113569296B (en) * 2021-09-26 2021-12-31 南京中网卫星通信股份有限公司 Sharing facility safe leasing system based on alliance chain and implementation method thereof

Similar Documents

Publication Publication Date Title
CN111901121B (en) Cross-blockchain authentication method and device and electronic equipment
CN110784346B (en) Reputation value-based PBFT consensus system and method
CN108881169B (en) Time distribution and synchronization method and system based on block chain and data processing system
CN108681965B (en) Block chain network transaction processing method and device for offline node
CN111010376B (en) Master-slave chain-based Internet of things authentication system and method
CN109327528A (en) A kind of node administration method and device based on block chain
CN111107136A (en) Block chain cross-chain relay method based on IPFS
CN103078741B (en) A kind of RFID bidirectional identification protocol method
CN110784495B (en) Block chain-based discovery and configuration information management method for big data cluster system
US20230316273A1 (en) Data processing method and apparatus, computer device, and storage medium
CN111698315B (en) Data processing method and device for block and computer equipment
CN112037057B (en) Correction method and device for block chain data
CN110035097A (en) Block chain identifies the isomery identification analytic method and system combined with Internet of Things
CN112422341B (en) Fault detection method of block chain network and related equipment
CN112381599A (en) Shared charger rental system and method based on block chain technology
CN110263579A (en) A kind of data processing method, system and relevant device
CN112118239A (en) Block chain consensus method and device, electronic equipment and storage medium
CN109634959A (en) A kind of block index method and block index device
CN111899019A (en) Method and system for cross validation and sharing of blacklist and multiple parties
Fan et al. Secure time synchronization scheme in iot based on blockchain
CN108882230B (en) Call record management method, device and system
CN110868466A (en) Storage method, system and equipment for distributed storage network
CN117010889A (en) Data processing method, device, equipment, medium and product
CN112788114B (en) Cross-chain data exchange method and exchange system
CN109410049A (en) Block chain bookkeeping methods, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210219

WW01 Invention patent application withdrawn after publication