Digital currency hardware wallet transaction system based on Bluetooth technology
Through the combination of Bluetooth technology and security chips, wireless communication and distance verification between the hardware wallet and the receiving device are realized, solving the problems of distance verification and transaction confirmation of hardware wallets in public transportation and other scenarios in the prior art, and improving security and convenience, and adapt to complex environmental changes.
Patent Information
- Application Number
- CN202411471136.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-10-22
AI Technical Summary
Existing hardware wallets require wired connections during use, which adds complexity and security risks, and cannot effectively conduct distance verification and transaction confirmation in specific scenarios such as public transportation.
Using a digital currency hardware wallet trading system based on Bluetooth technology, wireless communication and distance calculation are realized through Bluetooth modules and security chips, and distance verification is carried out in combination with phase ranging and round trip time methods, supporting inbound, outbound, pre-acceptance and payment result processing .
It improves transaction security and convenience of use, expands application scenarios, especially suitable for public transportation and other scenarios, and adapts to environmental changes through dynamic adjustment algorithms to ensure the stability and reliability of the system.
Smart Images

Figure CN118982428A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of radio wave ranging, and in particular, relates to a digital currency hardware wallet transaction system based on Bluetooth technology. Background Art
[0002] As an emerging payment method, digital currency has gradually been accepted and applied by people. Compared with traditional paper money and coins, digital currency has many advantages, such as convenient operation, no need for third-party intermediaries, and transparent transaction records. Therefore, digital currency has been widely promoted and used in application scenarios such as finance and e-commerce. In order to ensure the security of digital currency transactions, it is common to use hardware wallets. Hardware wallets are physical devices specifically used to store and manage digital currencies. They can provide users with more reliable private key management and transaction signature functions.
[0003] However, existing hardware wallets also have some problems and challenges in use. First, they usually need to interact with transaction terminals through wired connections, which not only increases the complexity of use, but also may bring security risks. In addition, in some specific scenarios, such as public transportation, hardware wallets also need to verify the distance and confirm transactions with the acceptance device, and the existing wired connection method cannot meet this demand well. Summary of the invention
[0004] In view of this, the present invention provides a digital currency hardware wallet transaction system based on Bluetooth technology, which can solve the technical problem that the existing wired connection method cannot well meet the hardware wallet's need for distance verification and transaction confirmation with the acceptance device.
[0005] The present invention is achieved in that: The present invention provides a digital currency hardware wallet transaction system based on Bluetooth technology, comprising: Digital currency hard wallet transaction management backend system, digital currency Bluetooth hard wallet acceptance terminal and digital currency Bluetooth hard wallet; The digital currency hard wallet transaction management backend system is used to receive transaction requests, perform verification processing and generate transaction results; The digital currency Bluetooth hard wallet receiving end includes a security chip and a Bluetooth module, wherein the security chip is used to store key information of the digital currency, and the Bluetooth module is used to realize wireless communication; the digital currency Bluetooth hard wallet receiving end is also provided with a Bluetooth ranging program for sending long-distance detection information to find a connectable Bluetooth device within the first distance range; the Bluetooth ranging program combines the phase ranging method and the round-trip time method to measure the distance between the receiving end and the hardware wallet; The digital currency Bluetooth hard wallet includes a main control CPU module, a digital encryption module, a power supply module, a digital currency storage module, and a Bluetooth module; The currency hard wallet transaction management background system also includes an entry pre-acceptance step, an entry acceptance step, an exit pre-acceptance step, an exit acceptance step, and a payment result processing step.
[0006] On the basis of the above technical solution, the digital currency hardware wallet transaction system based on Bluetooth technology of the present invention can also be improved as follows: The specific steps of the station entry pre-acceptance step are: When the entry acceptance terminal detects the hard wallet for the first time, if it is determined that the distance between the hard wallet and the acceptance device is less than the first distance and greater than the second distance, a wallet validity verification request is sent; The hard wallet returns the request data, and the acceptance terminal determines the validity; After the validity check is passed, the acceptance terminal sends a pre-acceptance request, reads the application ID list in the hard wallet, and determines whether the public transportation application is included; The hard wallet returns the application ID and application signature, and the acceptance terminal determines whether the program is a legitimate public transportation application; If it is a legitimate public transportation application, further determine whether the hardware wallet has abnormal travel information; If there is no abnormal travel information, continue to determine whether the hardware wallet is a blacklist wallet; If it is not a blacklist wallet, the acceptance terminal will issue pre-acceptance information for this trip. The information contains the unique number of this trip and is signed using the acceptance terminal certificate.
[0007] Furthermore, the specific steps of the station entry acceptance step are: When the entry acceptance terminal detects that the distance of the hard wallet is less than the second distance, the pre-acceptance information of the hard wallet is read; If there is no pre-acceptance information in the hard wallet, pre-acceptance will be carried out according to the pre-acceptance steps for entering the station; If the hard wallet has pre-acceptance information, the pre-acceptance information signature verification is performed; If the verification is successful, the content of the pre-acceptance information is determined; If the pre-accepted information is verified to be correct, the gate will be opened directly and the entry information will be written into the hard wallet; If the pre-acceptance information signature verification fails or the pre-acceptance information verification is incorrect, pre-acceptance will be carried out according to the pre-acceptance steps for entry. After the acceptance is completed, the gate will be opened and the entry information will be written into the hard wallet.
[0008] Furthermore, the specific steps of the outbound pre-acceptance step are: When the outbound acceptance terminal detects the hard wallet for the first time, if it is determined that the distance between the hard wallet and the acceptance device is less than the first distance and greater than the second distance, the entry information in the hard wallet is read; If there is entry information, the trip fee is calculated based on the entry information and the current exit; If there is no entry information, no operation will be performed; After writing the fee information, the hard wallet locks the corresponding amount of funds from the hard wallet digital currency storage module according to the travel fee information, and uses the hard wallet certificate private key to sign the payment funds to create the ticket payment asset.
[0009] Furthermore, the specific steps of the outbound acceptance step are: When the outbound acceptance terminal detects the hard wallet for the first time, if it is determined that the distance between the hard wallet and the acceptance device is less than the second distance, it is determined whether the ticket payment asset has been generated in the hard wallet; If there is a ticket payment asset, the payment request is sent to the hard wallet; The hard wallet sends the fund information to the acceptance terminal; The acceptance end submits the ticket payment assets to the digital currency hard wallet transaction management backend system; After completing the asset signature verification and fund validity verification, the management backend system returns the payment result to the acceptance end.
[0010] Furthermore, the specific steps of the payment result processing step are: If the payment is successful, the acceptance end will release the payment and write the result back to the hard wallet, set the status of the ticket payment asset to paid, and cancel the funds locked when creating the ticket payment asset; If the management backend system returns that the transaction failed, the acceptance end will not open the gate, and the acceptance end system will prompt the passenger through the host computer that the ticket payment failed.
[0011] Furthermore, the Bluetooth ranging program specifically performs the following steps: S11, sending a detection signal to surrounding Bluetooth devices; S12, receiving a response signal returned by the Bluetooth device; S13, calculating the difference between the detection signal sending time and the response signal receiving time to obtain the round-trip time; S14, measuring the phase of the response signal; S15, preliminarily estimating the distance according to the round-trip time; S16, performing distance correction according to the phase; S17. Output the final distance measurement result.
[0012] Furthermore, the step of determining the first distance specifically includes: S21, when the system is initialized, the distance interval is set to 0 meters to 20 meters, divided into 200 equally spaced sub-intervals; S22, executing the Bluetooth ranging procedure for each sub-interval, and recording the signal strength and ranging success rate; S23. Establish dynamic programming array , indicating the front The optimal signal quality score of each sub-interval; S24. Define signal quality score function ,in and is the weight coefficient; S25, recursive calculation ,in is an adjustable parameter, indicating the number of historical intervals considered; S26, Backtracking Array, determine the optimal combination of continuous subintervals; S27, calculating the weighted center value of the optimal sub-interval combination as a candidate value of the first distance; S28. Perform a refined search near the candidate value to determine the final first distance value, and repeat steps S22 to S28 every 12 hours.
[0013] Furthermore, the step of determining the second distance specifically includes: S31, when the system is initialized, the distance interval is set to 0 cm to 20 cm, divided into 100 equally spaced sub-intervals; S32, performing high-precision Bluetooth ranging for each sub-interval and recording the ranging success rate; S33. Establish dynamic programming array , indicating the front The optimal ranging success rate of sub-intervals; S34, recursive calculation ; S35, Backtracking Array, determine the optimal combination of continuous subintervals; S36, calculating the center value of the optimal sub-interval combination as a candidate value of the second distance; S37, performing a refined search near the candidate value to determine a final second distance value; S38. Repeat steps S32 to S37 every 6 hours to dynamically adjust the second distance value to adapt to environmental changes.
[0014] Among them, the key information specifically includes digital currency private key, user identity authentication information, transaction signature key, encrypted communication key, hardware wallet unique identifier, digital currency balance information, transaction history record hash value, security chip firmware version information, digital certificate information, and key derivation parameters.
[0015] The digital currency hard wallet transaction management backend system is specifically a centralized management platform, including transaction processing function, secure storage function, and communication interface function. Each function is described in detail as follows: The transaction processing function is used to receive transaction requests, verify user identities, check transaction legitimacy, transfer funds, record transaction information and generate transaction results; The secure storage function is used to store sensitive information such as user transaction records and balances, and take security measures to prevent information leakage; The communication interface function is used to provide a communication interface with the digital currency Bluetooth hard wallet acceptance terminal to achieve two-way transmission of data and reception and transmission of instructions; The digital currency Bluetooth hard wallet acceptance terminal is specifically a hardware device that supports Bluetooth communication, including secure storage function, Bluetooth communication function, and distance measurement function. Each function is described in detail as follows: The secure storage function is used to store key information of digital currency, such as private keys, and uses encryption algorithms to encrypt the stored data to ensure the confidentiality of the information; The Bluetooth communication function is used to realize the wireless communication of the Bluetooth digital currency hard wallet, ensure the stability and security of the Bluetooth connection, and prevent the communication from being eavesdropped or interfered; The ranging function is used to measure the distance between the hardware wallet and supports the phase ranging method and the round-trip time method.
[0016] In addition, another step of determining the first distance is provided, which specifically includes: When the system is initialized, the default value of the first distance is set to 10 meters; Receive the distance measurement result output by the Bluetooth distance measurement program; Take the arithmetic average of 10 consecutive distance measurement results to get the average distance value; comparing the average distance value with a preset threshold; If the average distance value is less than 11 meters and greater than 9 meters, the default value of the first distance remains unchanged; If the average distance value is less than or equal to 9 meters or greater than or equal to 11 meters, the first distance value is dynamically adjusted according to the actual use environment and device performance; storing the adjusted first distance value into the system configuration; Steps S22 to S27 are repeated every 24 hours to continuously optimize the first distance value.
[0017] In addition, another step of determining the second distance is provided, which specifically includes: When the system is initialized, the default value of the second distance is set to 10 cm; Receive high-precision distance measurement results output by the Bluetooth distance measurement program; Take a weighted average of 20 consecutive high-precision ranging results, giving a higher weight to the five most recent measurement results; comparing the weighted average distance value with a preset threshold; If the weighted average distance value is between 9 cm and 11 cm, the default value of the second distance remains unchanged; If the weighted average distance value is less than 9 cm or greater than 11 cm, the second distance value is fine-tuned according to the actual transaction scenario and user interaction requirements; Updating the adjusted second distance value to the system parameter; Steps S32 to S37 are repeated every 12 hours to ensure the accuracy and applicability of the second distance value.
[0018] By default, the first distance is 10 meters and the second distance is 10 centimeters.
[0019] Compared with the prior art, the beneficial effects of the digital currency hardware wallet transaction system based on Bluetooth technology provided by the present invention are: 1. Improve transaction security. The system uses Bluetooth communication to avoid the potential safety hazards of wired connections. At the same time, by introducing a distance verification mechanism, it ensures that both parties to the transaction are within a close range, further improving the security of the transaction.
[0020] 2. Enhanced convenience. Based on Bluetooth wireless communication, users do not need to perform cumbersome wired connection operations, which greatly improves the user experience. At the same time, the system also supports automated pre-acceptance and outbound processing procedures, further simplifying the user's operation steps.
[0021] 3. Expanded application scenarios. Traditional hardware wallets are mostly used for personal daily management, while the system of the present invention specifically solves the needs in specific scenarios such as public transportation, and can provide users with more extensive application support.
[0022] 4. Adapt to environmental changes. The system uses a dynamic adjustment algorithm that can automatically optimize key parameters, such as distance thresholds, according to changes in the actual environment, ensuring stable and reliable performance even in complex environments.
[0023] In general, the present invention makes full use of the advantages of Bluetooth technology and greatly improves the user experience while ensuring transaction security. It solves the technical problem that the existing wired connection method cannot well meet the needs of hardware wallets and also requires distance verification and transaction confirmation with the acceptance device. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A diagram showing the composition of a digital currency hardware wallet transaction system based on Bluetooth technology provided by the present invention; Figure 2 A flowchart of the steps executed for the Bluetooth ranging program; Figure 3 It is the curve of dynamic programming value changing with distance; Figure 4 The curves of ranging success rate and dynamic planning value changing with distance; Figure 5 It is the optimal distance value change curve within a day; Figure 6 This is a structural diagram of a digital currency hardware wallet transaction system based on Bluetooth technology provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0026] like Figure 1 and Figure 6 As shown, it is a composition diagram of a digital currency hardware wallet transaction system based on Bluetooth technology provided by the present invention. The method comprises the following steps: Among them, it includes: Digital currency hard wallet transaction management backend system, digital currency Bluetooth hard wallet acceptance terminal and digital currency Bluetooth hard wallet; The digital currency hard wallet transaction management backend system is used to receive transaction requests, perform verification processing and generate transaction results; The digital currency Bluetooth hard wallet receiving end includes a security chip and a Bluetooth module, wherein the security chip is used to store key information of the digital currency, and the Bluetooth module is used to realize wireless communication; the digital currency Bluetooth hard wallet receiving end is also provided with a Bluetooth ranging program for sending long-distance detection information to find a connectable Bluetooth device within the first distance range; the Bluetooth ranging program combines the phase ranging method and the round-trip time method to measure the distance between the receiving end and the hardware wallet; The digital currency Bluetooth hard wallet includes a main control CPU module, a digital encryption module, a power supply module, a digital currency storage module, and a Bluetooth module; The currency hard wallet transaction management background system also includes an entry pre-acceptance step, an entry acceptance step, an exit pre-acceptance step, an exit acceptance step, and a payment result processing step.
[0027] As the hub of the entire system, the digital currency hard wallet transaction management backend system undertakes key transaction processing functions. Among them, the transaction processing function is used to receive transaction requests from the digital currency Bluetooth hard wallet acceptance terminal, first verify the legitimacy of the request and the user's identity, and then check the legitimacy of the transaction, such as whether the balance is sufficient, whether the transaction is repeated, etc. After the verification is passed, the management backend system will be responsible for transferring funds from the user's account to the corresponding recipient's account and recording the detailed information of this transaction. Finally, the management backend system will feedback the transaction results to the digital currency Bluetooth hard wallet acceptance terminal.
[0028] In order to ensure the security of users' transaction information, the management backend system is also equipped with a secure storage function. This function is responsible for securely storing users' transaction records, account balances and other sensitive information, and adopts encryption, backup and other measures to prevent information leakage.
[0029] In addition, the management backend system also provides a communication interface with the digital currency Bluetooth hard wallet acceptance terminal. Through this interface, the digital currency Bluetooth hard wallet acceptance terminal can send transaction requests to the management backend system, and the management backend system can also feedback the transaction results to the acceptance terminal. This communication interface ensures the two-way transmission of data and the reception and sending of instructions.
[0030] The specific implementation of the digital currency Bluetooth hard wallet acceptance terminal is as follows: The digital currency Bluetooth hard wallet acceptance terminal is a hardware device that supports Bluetooth communication. Its core functions include secure storage, Bluetooth communication and ranging functions.
[0031] The secure storage function is responsible for storing key information of digital currency, such as private keys, user identity authentication information, transaction signature keys, etc. In order to ensure the confidentiality of this information, the acceptance end uses encryption algorithms to encrypt the stored data.
[0032] The Bluetooth communication function is used to achieve wireless communication between the acceptance terminal and the digital currency Bluetooth hard wallet. This function ensures the stability and security of the Bluetooth connection and prevents eavesdropping or interference during the communication process.
[0033] The distance measurement function is used to measure the distance between the acceptance terminal and the hard wallet. It supports two distance measurement methods: phase distance measurement and round-trip time distance measurement. Phase distance measurement estimates the distance by measuring the phase change of the signal, and round-trip time distance measurement calculates the distance by measuring the round-trip time of the signal. Combining these two methods can improve the accuracy and stability of distance measurement.
[0034] The specific implementation of the digital currency Bluetooth hard wallet is as follows: The digital currency Bluetooth hard wallet is one of the core components of the entire system. It consists of the main control CPU module, digital encryption module, power supply module, digital currency storage module and Bluetooth module.
[0035] The main control CPU module is responsible for the operation and control of the entire hard wallet. The digital encryption module is responsible for encrypting and decrypting key information to ensure the security of information. The power supply module provides the required power for the hard wallet. The digital currency storage module is used to store key data such as the user's digital currency balance and transaction records. The Bluetooth module realizes wireless communication between the hard wallet and external devices.
[0036] The specific implementation of steps S11-S17 is as follows: S11. Send detection signals to surrounding Bluetooth devices The acceptance end first sends a detection signal to the surrounding Bluetooth devices to actively detect whether there are any connectable Bluetooth hard wallet devices around.
[0037] S12, receiving the response signal returned by the Bluetooth device After receiving the detection signal, the nearby Bluetooth devices will return a response signal. The receiving end receives these response signals.
[0038] S13, calculate the difference between the detection signal sending time and the response signal receiving time to obtain the round-trip time The receiving end records the sending time of the detection signal and the receiving time of the response signal, calculates the time difference between the two, and obtains the round-trip time of the signal.
[0039] S14. Measure the phase of the response signal In addition, the receiving end also measures the phase change of the response signal.
[0040] S15: Preliminary distance estimation based on the round trip time Based on the round-trip time of the signal, the receiving end can preliminarily estimate the distance between it and the Bluetooth device.
[0041] S16, performing distance correction according to the phase Combined with the phase change information of the response signal, the receiving end can correct and optimize the preliminary estimated distance.
[0042] S17, output the final distance measurement result In steps S11-S17, the receiving end uses the round-trip time of the Bluetooth signal and phase change To estimate the distance between devices Among them, the round trip time and distance Proportional relationship, phase change Also with distance The two methods can be combined to improve the accuracy of distance measurement. After the above steps, the receiving end finally obtains the accurate distance measurement result between the receiving end and the Bluetooth device.
[0043] The specific implementation of steps S21-S28 is as follows: S21. When the system is initialized, the distance interval is set to 0 meters to 20 meters, divided into 200 equally spaced sub-intervals. When the system is initialized, the ranging range is first set to 0 meters to 20 meters, and the range is evenly divided into 200 sub-intervals.
[0044] S22. Execute the Bluetooth distance measurement procedure for each sub-interval and record the signal strength and distance measurement success rate Then, Bluetooth ranging is performed in each sub-interval, and the signal strength and ranging success rate are recorded.
[0045] S23. Establish dynamic programming array , indicating the front The optimal signal quality score of the sub-intervals Based on the above ranging data, establish a dynamic programming array ,in Before The optimal signal quality score in the subinterval.
[0046] S24. Define signal quality score function ,in and is the weight coefficient In order to comprehensively consider the two factors of signal strength and ranging success rate, a signal quality score function is defined ,in and is an adjustable weight coefficient.
[0047] S25, recursive calculation ,in is an adjustable parameter, indicating the number of historical intervals considered Then recursively calculate it through dynamic programming ,in It is an adjustable parameter, which indicates the number of historical subintervals considered.
[0048] S26, Backtracking Array, determine the optimal combination of consecutive subintervals By backtracking Array, you can find the combination of consecutive sub-intervals with the highest signal quality score.
[0049] S27. Calculate the weighted center value of the optimal sub-interval combination as the candidate value of the first distance The weighted center values of these optimal subintervals are used as candidate values of the first distance.
[0050] S28, perform a refined search near the candidate value to determine the final first distance value, and repeat steps S22 to S27 every 12 hours Finally, a refined search is performed near the candidate value to determine the final first distance value. This process is repeated every 12 hours to adapt to the dynamic changes of the environment.
[0051] In steps S21-S28, the receiving end uses a dynamic programming method to determine the first distance First, divide the ranging range into multiple sub-intervals and record the signal strength for each sub-interval. and ranging success rate . Then construct a dynamic programming array To indicate before The optimal signal quality score of the sub-intervals is calculated by recursion. And backtrack to get the optimal sub-interval combination, and finally calculate the weighted center value As a candidate value of the first distance. This method can adapt to changes in the environment.
[0052] The specific implementation of steps S31-S38 is as follows: S31. When the system is initialized, the distance interval is set to 0 cm to 20 cm and divided into 100 equally spaced sub-intervals. When the system is initialized, the ranging range is first set to 0 cm to 20 cm, and the range is evenly divided into 100 sub-intervals.
[0053] S32. Perform high-precision Bluetooth distance measurement on each sub-interval and record the distance measurement success rate Then, high-precision Bluetooth ranging is performed in each sub-interval, and the ranging success rate is recorded.
[0054] S33. Establish dynamic programming array , indicating the front The optimal distance measurement success rate of sub-intervals Based on the above ranging data, establish a dynamic programming array ,in Before The optimal ranging success rate in the sub-interval.
[0055] S34, recursive calculation ; Then recursively calculate it through dynamic programming .
[0056] S35, Backtracking Array, determine the optimal combination of consecutive subintervals By backtracking Array, you can find the continuous sub-interval combination with the highest ranging success rate.
[0057] S36. Calculate the center value of the optimal sub-interval combination as a candidate value for the second distance The center values of these optimal subintervals are used as candidate values of the second distance.
[0058] S37: Perform a refined search near the candidate value to determine the final second distance value Finally, a refined search is performed near the candidate value to determine the final second distance value.
[0059] S38. Repeat steps S32 to S37 every 6 hours to dynamically adjust the second distance value to adapt to environmental changes.
[0060] This process is repeated every 6 hours to adapt to the dynamic changes in the environment.
[0061] In steps S31-S38, the receiving end uses a similar dynamic programming method to determine the second distance The difference is that only the ranging success rate is considered here. The signal strength is not considered. The center value of the optimal sub-interval combination is obtained by dynamic programming calculation As a candidate value of the second distance. Similarly, this process is repeated every 6 hours to adapt to environmental changes.
[0062] Specifically, the principle of the present invention is: the digital currency hardware wallet transaction system based on Bluetooth technology proposed by the present invention is mainly composed of three core components: a digital currency hardware wallet transaction management background system, a digital currency Bluetooth hardware wallet acceptance terminal, and a digital currency Bluetooth hardware wallet. These three components interact through Bluetooth wireless communication and jointly complete the entire transaction process.
[0063] Among them, the digital currency hard wallet transaction management backend system undertakes key functions such as transaction processing, secure storage and communication interface. When receiving a transaction request from the acceptance end, the management backend system will first verify the legitimacy of the request and the user's identity to ensure transaction compliance. Subsequently, it is responsible for completing operations such as fund transfer and transaction record storage, and finally feedbacks the transaction results to the acceptance end. In order to protect user privacy, the management backend system also adopts security measures such as encryption.
[0064] As the contact point of the transaction, the digital currency Bluetooth hard wallet acceptance terminal has secure storage, Bluetooth communication and distance measurement functions. It is responsible for establishing a Bluetooth connection with the user's digital currency Bluetooth hard wallet and confirming whether the two parties are within a close range based on the distance measurement results. After the verification is passed, the acceptance terminal sends the transaction request to the management backend system for processing. This Bluetooth-based connection method not only improves the security of the transaction, but also simplifies the user's operation process.
[0065] The digital currency Bluetooth hard wallet is the core carrier of the entire system. It has built-in key components such as the main control CPU, encryption module, storage module, etc., which can provide users with functions such as secure storage of digital currency and transaction signature. At the same time, the hard wallet also integrates a Bluetooth module, which can communicate wirelessly with the acceptance end and cooperate with its ranging function to complete close-range verification.
[0066] In order to achieve accurate distance measurement, the present invention designs an innovative ranging algorithm at the receiving end. The algorithm combines the phase ranging method and the round-trip time ranging method, and adaptively determines the optimal ranging parameters, such as the first distance and the second distance, through dynamic programming. This adaptive mechanism can maintain stable and reliable ranging performance under complex environmental conditions.
[0067] In summary, the digital currency hardware wallet transaction system based on Bluetooth technology proposed in this invention makes full use of the advantages of Bluetooth communication and makes innovative design and implementation in terms of transaction security, ease of use and adaptability to application scenarios. Its core lies in the cooperation between the three components and the innovative ranging algorithm, providing users with a safer and more efficient digital currency management solution.
[0068] In order to better understand and implement the present invention, three specific application scenario embodiments of the present invention are provided below.
[0069] Example 1: Digital currency hardware wallet transaction for public transportation 1. Implementation Background Urban public transportation systems are an important part of people's daily travel. In order to facilitate passengers to enter and exit stations, buses, etc., most public transportation systems have adopted electronic ticketing systems. Traditional electronic ticketing systems are usually based on contact or contactless IC card technology, requiring passengers to swipe their cards through gates when entering and exiting stations. This method not only increases the number of operation steps for passengers, but also easily causes congestion.
[0070] With the rapid development of digital currency technology, its application in the field of public transportation has become a new possibility. Compared with traditional electronic ticketing, public transportation payment methods based on digital currency have the advantages of convenient operation and payment security. However, how to effectively combine digital currency technology in public transportation scenarios and ensure the security and reliability of transactions is still an urgent problem to be solved.
[0071] Based on this, this embodiment will apply the digital currency hardware wallet transaction system based on Bluetooth technology proposed by the present invention to carry out specific practice in public transportation scenarios. Through the innovative design of the system, the safe and efficient application of digital currency in public transportation payment is realized.
[0072] 2. System Architecture The digital currency hardware wallet transaction system used in this embodiment mainly includes the following three core components: 1. Digital currency hard wallet transaction management backend system The system is located in the data center of the bus operator and is responsible for receiving transaction requests from various bus stops, performing identity verification, fund transfer and other processing, and feeding back transaction results to the front-end device. At the same time, it is also responsible for the secure storage of user sensitive data such as transaction records and account balances.
[0073] 2. Digital currency Bluetooth hard wallet acceptance terminal The device is installed on the gate or ticket checking device at each bus stop and plays the role of the transaction front end. It connects wirelessly with the user's digital currency hard wallet through the Bluetooth module and uses the built-in distance measurement function to confirm whether the two parties are within a close range. After the verification is passed, the acceptance end sends the transaction request to the management backend system for processing.
[0074] 3. Digital currency Bluetooth hard wallet This is a digital currency storage device that users carry with them. It has built-in key components such as CPU, encryption module, storage module, etc., and can provide users with core functions such as private key management and transaction signature. At the same time, the hard wallet also integrates a Bluetooth module, which can communicate wirelessly and verify distance with the acceptance equipment at the bus station.
[0075] 3. Specific implementation process This embodiment mainly involves five steps, namely, entry pre-acceptance, entry acceptance, exit pre-acceptance, exit acceptance, and payment result processing, as follows: 1. Pre-acceptance of entry When a user enters a bus station with a digital currency Bluetooth hard wallet, it is detected by the acceptance terminal for the first time. The acceptance terminal first determines whether the distance between the hard wallet and itself is between 10 meters and 15 meters. If it is, it sends a validity verification request.
[0076] After receiving the request, the hard wallet returns the corresponding data, and the acceptance end verifies it. After the verification is passed, the acceptance end sends a pre-acceptance request, reads the application ID list in the hard wallet, and determines whether the public transportation application is included. If the application exists and there is no abnormal travel record, and the hard wallet is not on the blacklist, the acceptance end issues the pre-acceptance information for this trip, which contains a unique number and is signed with its own certificate.
[0077] 2. Station acceptance When the user brings the hard wallet close to the gate, the acceptance terminal detects that the distance between the two is less than 5 cm. At this time, the acceptance terminal reads the pre-acceptance information in the hard wallet and performs signature verification.
[0078] If the verification is successful, the gate will be opened directly and the entry information will be written into the hard wallet. If the pre-acceptance information verification fails or does not exist, the entry pre-acceptance process will be repeated.
[0079] 3. Pre-acceptance of outbound When the user is about to leave the bus station, the exit acceptance terminal detects the hard wallet for the first time. The acceptance terminal determines that the hard wallet is between 10 meters and 15 meters away from itself, and then reads the entry information recorded in the hard wallet, and calculates the trip fee based on this.
[0080] The fee information is written into the hard wallet, the corresponding digital currency funds are locked inside the hard wallet, and the private key of its own certificate is used to sign to generate a ticket payment asset.
[0081] 4. Outbound acceptance When the user brings the hard wallet close to the exit gate, the acceptance terminal detects that the distance between the two is less than 5 cm. At this time, the acceptance terminal determines whether the ticket payment asset has been generated in the hard wallet.
[0082] If the asset exists, the acceptor sends the payment request to the hard wallet, and the hard wallet returns the fund information. The acceptor then submits the payment asset to the management backend system for processing.
[0083] 5. Payment result processing After receiving the payment request, the management backend system first verifies the signature of the asset and the validity of the funds.
[0084] If the verification is successful, the payment result will be returned to the accepting end, which will release the payment and write the result into the hard wallet, while canceling the previously locked funds.
[0085] If the payment fails, the acceptance end will not open the gate, and the passenger will be notified of the payment failure through the host computer.
[0086] IV. Innovation of key technologies In this embodiment, the key innovations of the digital currency hardware wallet transaction system are mainly reflected in the following aspects: 1. Bluetooth communication and distance verification: The system uses Bluetooth as the communication method between the user's hard wallet and the acceptance device, avoiding the potential security risks caused by wired connections. At the same time, it also introduces innovative algorithms based on phase ranging and round-trip time ranging, which can accurately confirm whether the two parties are trading within a close range. These technical means effectively improve the security of the entire transaction process.
[0087] 2. Automated pre-acceptance and exit processing: In the entry and exit stages, the system realizes the functions of pre-acceptance and automatic exit. Users do not need to perform cumbersome operation steps, and the hard wallet can automatically complete the identity verification, fee calculation and other processes, which greatly improves the user experience.
[0088] 3. Dynamically adjusted threshold parameters: To cope with complex public transportation scenarios, the system uses a dynamic adjustment algorithm that can automatically optimize key parameters such as the first distance and the second distance according to actual environmental changes. This adaptive mechanism ensures that the system can maintain stable and reliable performance in different scenarios.
[0089] In general, this embodiment gives full play to the innovative advantages of the present invention, successfully realizes the safe and efficient application of digital currency hardware wallets in the field of public transportation, and provides a new solution for urban smart travel.
[0090] Example 2: Digital currency hardware wallet transaction based on hotel scenario 1. Implementation Background In recent years, with the rapid development of mobile payment technology, more and more hotels have begun to try to apply digital currency to payment scenarios for guests. Compared with traditional cash or credit card payment methods, payment based on digital currency has the advantages of convenient operation and high security. However, in a complex environment like a hotel, how to ensure the security and reliability of digital currency transactions is still a key issue for hotel operators.
[0091] This embodiment will apply the digital currency hardware wallet transaction system based on Bluetooth technology proposed by the present invention to carry out specific practice in the hotel scenario. Through the innovative design of the system, the safe and efficient application of digital currency in hotel payment is realized, providing a new payment solution for hotels.
[0092] 2. System Architecture The digital currency hardware wallet transaction system used in this embodiment mainly includes the following three core components: 1. Digital currency hard wallet transaction management backend system The system is located in the hotel's internal IT center and is responsible for receiving transaction requests from the front desk, performing identity authentication, fund transfer, and other processing, and feeding back transaction results to the front desk equipment. At the same time, it is also responsible for the secure storage of user sensitive data such as transaction records and account balances.
[0093] 2. Digital currency Bluetooth hard wallet acceptance terminal The device is installed on the checkout device at the hotel front desk and plays the role of the transaction front end. It connects wirelessly with the guest's digital currency hard wallet through the Bluetooth module and uses the built-in distance measurement function to confirm whether the two parties are within close range. After the verification is passed, the acceptance end sends the transaction request to the management backend system for processing.
[0094] 3. Digital currency Bluetooth hard wallet This is a digital currency storage device that guests carry with them. It has built-in key components such as CPU, encryption module, storage module, etc., and can provide users with core functions such as private key management and transaction signature. At the same time, the hard wallet also integrates a Bluetooth module, which can communicate wirelessly and verify distance with the acceptance device at the hotel front desk.
[0095] 3. Specific implementation process This embodiment mainly involves five steps, namely, check-in pre-acceptance, check-in acceptance, check-out pre-acceptance, check-out acceptance, and payment result processing, which are as follows: 1. Check-in pre-acceptance When a guest enters the hotel lobby with a digital currency Bluetooth hard wallet, it is detected by the front desk acceptance device for the first time. The acceptance terminal first determines whether the distance between the hard wallet and itself is between 10 meters and 15 meters. If it is, it sends a validity verification request.
[0096] After receiving the request, the hard wallet returns the corresponding data, and the acceptance end verifies it. After the verification is passed, the acceptance end sends a pre-acceptance request, reads the application ID list in the hard wallet, and determines whether the hotel accommodation application is included. If the application exists and there is no abnormal accommodation record, and the hard wallet is not on the blacklist, the acceptance end issues the pre-acceptance information for this stay, which contains a unique number and is signed with its own certificate.
[0097] 2. Check-in acceptance When the guest brings the hard wallet close to the front desk checkout device, the acceptance terminal detects that the distance between the two is less than 5 cm. At this time, the acceptance terminal reads the pre-acceptance information in the hard wallet and performs signature verification.
[0098] If the verification is successful, the check-in procedure is completed and the check-in information is written into the hard wallet. If the pre-acceptance information verification fails or does not exist, the check-in pre-acceptance process is repeated.
[0099] 3. Check-out pre-acceptance When the guest is ready to check out, the front desk reception terminal detects his hard wallet for the first time. The reception terminal determines that the hard wallet is between 10 meters and 15 meters away from itself, and then reads the check-in information recorded in the hard wallet and calculates the accommodation fee based on it.
[0100] The fee information is written into the hard wallet, the corresponding digital currency funds are locked inside the hard wallet, and the private key of its own certificate is used to sign to generate an asset for accommodation fee payment.
[0101] 4. Check-out acceptance When the guest brings the hard wallet close to the front desk checkout device, the acceptance terminal detects that the distance between the two is less than 5 cm. At this time, the acceptance terminal determines whether the accommodation fee payment asset has been generated in the hard wallet.
[0102] If the asset exists, the acceptor sends the payment request to the hard wallet, and the hard wallet returns the fund information. The acceptor then submits the payment asset to the management backend system for processing.
[0103] 5. Payment result processing After receiving the payment request, the management backend system first verifies the signature of the asset and the validity of the funds.
[0104] If the verification is successful, the payment result will be returned to the acceptance end, which will complete the check-out procedure and write the result to the hard wallet, while canceling the previously locked funds.
[0105] If the payment fails, the acceptance end will not process the check-out and will inform the guest of the payment failure through the front desk system.
[0106] IV. Innovation of key technologies In this embodiment, the key innovations of the digital currency hardware wallet transaction system are mainly reflected in the following aspects: 1. Bluetooth communication and distance verification: The system uses Bluetooth as the communication method between the user's hard wallet and the acceptance device, avoiding the potential security risks caused by wired connections. At the same time, it also introduces innovative algorithms based on phase ranging and round-trip time ranging, which can accurately confirm whether the two parties are trading within a close range. These technical means effectively improve the security of the entire transaction process.
[0107] 2. Automated pre-acceptance and check-out process: During the check-in and check-out process, the system realizes the functions of pre-acceptance and automatic check-out. Guests do not need to go through tedious operation steps, and the hard wallet can automatically complete the identity verification, fee calculation and other processes, which greatly improves the user experience.
[0108] 3. Dynamically adjusted threshold parameters: To cope with complex hotel scenarios, the system uses a dynamic adjustment algorithm that can automatically optimize key parameters such as the first distance and the second distance according to actual environmental changes. This adaptive mechanism ensures that the system can maintain stable and reliable performance in different scenarios.
[0109] Embodiment 3: Specific embodiment of Bluetooth ranging program The specific implementation scenario of this embodiment is applied in the entry and exit system of a certain city station. The average daily passenger flow of the station is about 150,000 people, and the passenger flow per hour during peak hours can reach 20,000 people.
[0110] The first is the specific implementation of the Bluetooth distance measurement program. The system uses the BLE5.1 protocol and works in the 2.4GHz frequency band. The distance measurement program is executed in the following steps: S11: Send a detection signal. The system sends a detection signal every 100ms, the signal power is 0dBm, and the modulation method is GFSK.
[0111] S12: Receive response signal. The system sets a 200μs receiving window and waits for the target device’s response.
[0112] S13: Calculate the round-trip time. The system records the sending timestamp t1 and the receiving timestamp t2, and calculates the round-trip time Δt=t2-t1.
[0113] S14: Measure the phase of the response signal. The system uses an I / Q demodulator to measure the phase φ of the received signal.
[0114] S15: Preliminary distance estimation: Calculate the preliminary distance according to the formula d=c·Δt / 2 (c is the speed of light).
[0115] S16: Distance correction. Use the phase information φ to make precise corrections, the correction amount Δd = λ·φ / (4π) (λ is the signal wavelength).
[0116] S17: Output the result: Final distance = initial distance + correction amount.
[0117] In actual application, the system continuously performs 10 distance measurements for each target device and takes the median as the final result to reduce the error. Tests show that the distance measurement accuracy of this method can reach ±20cm within a range of 10 meters.
[0118] Next, we will explain in detail the process of determining the first distance. The system performs adaptive adjustment every 12 hours to adapt to environmental changes. The specific steps are as follows: S21: The system divides the range of 0-20 meters into 200 sub-intervals, and the length of each sub-interval is 10 cm.
[0119] S22: Perform 100 ranging measurements for each sub-interval, and record the average signal strength (RSSI) and ranging success rate. The test results are shown in Table 1 below (only part of the data is shown): Table 1 Ranging data table Interval number Distance range(m) Average RSSI(dBm) Ranging success rate (%) 1 0.00-0.10 -35 99.8 2 0.10-0.20 -38 99.5 … … … … 100 9.90-10.00 -75 92.3 101 10.00-10.10 -76 91.8 … … … … 200 19.90-20.00 -95 65.2 S23-S24: Establish a dynamic programming array and define the signal quality score function. The system sets α=0.6, β=0.4, k=5.
[0120] S25: Recursively calculate the dp array. To intuitively demonstrate the calculation process, the following is a curve showing the dp value changing with the interval, as shown in Figure 3 As shown in the figure, it can be seen that the DP value remains at a high level in the range of 0-10 meters, and then begins to decline significantly. This shows that about 10 meters may be a suitable first distance threshold.
[0121] S26-S27: Backtrack the dp array and determine that the optimal sub-interval combination is 0-10.5 meters. Calculate the weighted center value to obtain the candidate first distance of 9.8 meters.
[0122] S28: Perform a refined search near 9.8 meters with a step size of 0.1 meters, and finally determine that the first distance is 10.0 meters.
[0123] For the determination of the second distance, the system performs adaptive adjustment every 6 hours. The specific steps are as follows: S31: Divide the range of 0-20 cm into 100 sub-intervals, and the length of each sub-interval is 2 mm.
[0124] S32: Perform 500 high-precision distance measurements for each sub-interval and record the distance measurement success rate. Some test results are shown in Table 2 below: Table 2 Part of the test data Interval number Distance range (cm) Ranging success rate (%) 1 0.00-0.20 99.9 2 0.20-0.40 99.8 … … … 50 9.80-10.00 98.5 51 10.00-10.20 98.2 … … … 100 19.80-20.00 95.6 S33-S34: Establish a dynamic programming array and perform recursive calculations. To intuitively demonstrate the calculation process, the following is a curve showing the variation of the ranging success rate and the dynamic programming value with distance, as shown in Figure 4 As shown in the figure, the trend of the ranging success rate and dynamic programming value changing with the distance is shown. It can be observed that at about 10 cm, the DP value begins to show an obvious turning point, which provides an important reference for us to choose the second distance.
[0125] S35-S36: Backtrack the dp array and determine that the optimal sub-interval combination is 0-10.2 cm. Calculate the center value to obtain the candidate second distance of 9.9 cm.
[0126] S37: Perform a refined search near 9.9 cm with a step size of 1 mm, and finally determine the second distance to be 10.0 cm.
[0127] S38: The system repeats the above steps every 6 hours to dynamically adjust the second distance value. During the one-week observation period, the second distance changes between 9.8 cm and 10.2 cm, showing good stability.
[0128] To further verify the system performance, we conducted a one-month field test at Anjiazhuang Station. During the test period, we processed about 4.5 million transactions, with an average transaction time of 1.2 seconds, which greatly improved the efficiency of entering and leaving the station. The system's misjudgment rate (mistaking illegal devices for legal devices or vice versa) was less than 0.01%, which is much better than the traditional card swiping system.
[0129] During the test, the researchers also discovered a phenomenon: the optimal first distance and second distance in different time periods are slightly different. In order to better understand this phenomenon, a curve of the optimal distance value changes within a day was drawn, as shown in the figure below: Figure 5 shown.
[0130] This chart shows the changing trends of the first distance and the second distance within 24 hours. We can observe that both distance values show slight periodic fluctuations. The fluctuation of the first distance is larger, reaching the peak value during the morning and evening peak hours (7-9 am and 17-19 pm), which may be due to the increased signal interference caused by the increased density of people. In contrast, the fluctuation of the second distance is smaller, showing better stability.
[0131] Based on this finding, we further optimized the system and introduced a time-based dynamic adjustment mechanism. Specifically, the system will automatically fine-tune the values of the first distance and the second distance according to the current time period to adapt to environmental changes in different time periods. For example, during peak hours in the morning and evening, the system will slightly increase the value of the first distance (about 0.2 meters) to reduce the misjudgment rate; and when there are few passengers in the middle of the night, the system will slightly reduce the value of the first distance (about 0.1 meters) to improve the response speed.
[0132] This dynamic adjustment mechanism enables the system to maintain optimal performance at different times. After optimization, the average transaction time of the system was further shortened to 1.1 seconds, and the misjudgment rate was reduced to 0.005%.
[0133] In actual applications, we also noticed that weather factors have a certain impact on system performance. In order to quantify this impact, we collected weather data and system performance data within a month and conducted a correlation analysis. The results are shown in Table 3 below: Table 3 Correlation between the first distance and the second distance and weather Weather Type Sample days Average transaction time (seconds) False positive rate (%) Optimal first distance (m) Optimal second distance (cm) sunny 15 1.08 0.004 9.9 10.0 partly cloudy 8 1.12 0.005 10.0 10.1 rain 5 1.18 0.007 10.2 10.2 Foggy Day 2 1.25 0.009 10.4 10.3 From the data, we can see that weather does have a certain impact on system performance. On rainy and foggy days, due to the increase of water molecules in the air, the propagation characteristics of Bluetooth signals will change, causing the system to increase the optimal distance value to maintain performance. Based on this discovery, we further improved the system's adaptive mechanism and added weather factors into consideration.
[0134] Specifically, the system will obtain the current weather information in real time and adjust the reference values of the first distance and the second distance according to the preset parameters. For example, in foggy weather, the system will automatically increase the reference value of the first distance by 0.4 meters and the reference value of the second distance by 0.3 centimeters. Then, the system will still execute the aforementioned adaptive algorithm, but will make fine adjustments based on the adjusted reference value.
[0135] This dynamic adjustment mechanism that takes weather factors into account further improves the robustness of the system. After the introduction of this mechanism, the average transaction time of the system can be kept within 1.2 seconds even in bad weather conditions, and the misjudgment rate is always less than 0.01%.
[0136] In summary, the digital currency hardware wallet transaction system based on Bluetooth technology of the present invention performs well in the practical application of Example 3. Through accurate distance measurement and adaptive threshold adjustment, the system can greatly improve transaction efficiency while ensuring security. The introduction of the dynamic adjustment mechanism enables the system to adapt to different time periods and different weather conditions, maintaining stable and efficient performance.
[0137] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A digital currency hardware wallet transaction system based on Bluetooth technology, characterized in that: include: Digital currency hard wallet transaction management backend system, digital currency Bluetooth hard wallet acceptance terminal and digital currency Bluetooth hard wallet; The digital currency hard wallet transaction management backend system is used to receive transaction requests, perform verification processing and generate transaction results; The digital currency Bluetooth hard wallet receiving end includes a security chip and a Bluetooth module, wherein the security chip is used to store key information of the digital currency, and the Bluetooth module is used to realize wireless communication; the digital currency Bluetooth hard wallet receiving end is also provided with a Bluetooth ranging program for sending long-distance detection information to find a connectable Bluetooth device within the first distance range; the Bluetooth ranging program combines the phase ranging method and the round-trip time method to measure the distance between the receiving end and the hardware wallet; The digital currency Bluetooth hard wallet includes a main control CPU module, a digital encryption module, a power supply module, a digital currency storage module, and a Bluetooth module; The currency hard wallet transaction management background system also includes an entry pre-acceptance step, an entry acceptance step, an exit pre-acceptance step, an exit acceptance step, and a payment result processing step.
2. According to the digital currency hardware wallet transaction system based on Bluetooth technology in claim 1, it is characterized in that: The specific steps of the station entry pre-acceptance step are: When the entry acceptance terminal detects the hard wallet for the first time, if it is determined that the distance between the hard wallet and the acceptance device is less than the first distance and greater than the second distance, a wallet validity verification request is sent; The hard wallet returns the request data, and the acceptance terminal determines the validity; After the validity check is passed, the acceptance terminal sends a pre-acceptance request, reads the application ID list in the hard wallet, and determines whether the public transportation application is included; The hard wallet returns the application ID and application signature, and the acceptance terminal determines whether the program is a legitimate public transportation application; If it is a legitimate public transportation application, further determine whether the hardware wallet has abnormal travel information; If there is no abnormal travel information, continue to determine whether the hardware wallet is a blacklist wallet; If it is not a blacklist wallet, the acceptance terminal will issue pre-acceptance information for this trip. The information contains the unique number of this trip and is signed using the acceptance terminal certificate.
3. According to claim 2, a digital currency hardware wallet transaction system based on Bluetooth technology is characterized in that: The specific steps of the station acceptance procedure are: When the entry acceptance terminal detects that the distance of the hard wallet is less than the second distance, the pre-acceptance information of the hard wallet is read; If there is no pre-acceptance information in the hard wallet, pre-acceptance will be carried out according to the pre-acceptance steps for entering the station; If the hard wallet has pre-acceptance information, the pre-acceptance information signature verification is performed; If the verification is successful, the content of the pre-acceptance information is determined; If the pre-accepted information is verified to be correct, the gate will be opened directly and the entry information will be written into the hard wallet; If the pre-acceptance information signature verification fails or the pre-acceptance information verification is incorrect, pre-acceptance will be carried out according to the pre-acceptance steps for entry. After the acceptance is completed, the gate will be opened and the entry information will be written into the hard wallet.
4. According to claim 3, a digital currency hardware wallet transaction system based on Bluetooth technology is characterized in that: The specific steps of the outbound pre-acceptance step are: When the outbound acceptance terminal detects the hard wallet for the first time, if it is determined that the distance between the hard wallet and the acceptance device is less than the first distance and greater than the second distance, the entry information in the hard wallet is read; If there is entry information, the trip fee is calculated based on the entry information and the current exit; If there is no entry information, no operation will be performed; After writing the fee information, the hard wallet locks the corresponding amount of funds from the hard wallet digital currency storage module according to the travel fee information, and uses the hard wallet certificate private key to sign the payment funds to create the ticket payment asset.
5. According to claim 4, a digital currency hardware wallet transaction system based on Bluetooth technology is characterized in that: The specific steps of the outbound acceptance step are: When the outbound acceptance terminal detects the hard wallet for the first time, if it is determined that the distance between the hard wallet and the acceptance device is less than the second distance, it is determined whether the ticket payment asset has been generated in the hard wallet; If there is a ticket payment asset, the payment request is sent to the hard wallet; The hard wallet sends the fund information to the acceptance terminal; The acceptance end submits the ticket payment assets to the digital currency hard wallet transaction management backend system; After completing the asset signature verification and fund validity verification, the management backend system returns the payment result to the acceptance end.
6. A digital currency hardware wallet transaction system based on Bluetooth technology according to claim 5, characterized in that: The specific steps of the payment result processing step are: If the payment is successful, the acceptance end will release the payment and write the result back to the hard wallet, set the status of the ticket payment asset to paid, and cancel the funds locked when creating the ticket payment asset; If the management backend system returns that the transaction failed, the acceptance end will not open the gate, and the acceptance end system will prompt the passenger through the host computer that the ticket payment failed.
7. A digital currency hardware wallet transaction system based on Bluetooth technology according to claim 6, characterized in that: The Bluetooth distance measurement program specifically performs the following steps: S11, sending a detection signal to surrounding Bluetooth devices; S12, receiving a response signal returned by the Bluetooth device; S13, calculating the difference between the detection signal sending time and the response signal receiving time to obtain the round-trip time; S14, measuring the phase of the response signal; S15, preliminarily estimating the distance according to the round-trip time; S16, performing distance correction according to the phase; S17. Output the final distance measurement result.
8. A digital currency hardware wallet transaction system based on Bluetooth technology according to claim 7, characterized in that: The step of determining the first distance specifically includes: S21, when the system is initialized, the distance interval is set to 0 meters to 20 meters, divided into 200 equally spaced sub-intervals; S22, executing the Bluetooth ranging procedure for each sub-interval, and recording the signal strength and ranging success rate; S23. Establish dynamic programming array , indicating the front The optimal signal quality score of the sub-intervals; S24. Define signal quality score function ,in and is the weight coefficient; S25, recursive calculation ,in is an adjustable parameter, indicating the number of historical intervals considered; S26, Backtracking Array, determine the optimal combination of continuous subintervals; S27, calculating the weighted center value of the optimal sub-interval combination as a candidate value of the first distance; S28. Perform a refined search near the candidate value to determine the final first distance value, and repeat steps S22 to S28 every 12 hours.
9. A digital currency hardware wallet transaction system based on Bluetooth technology according to claim 8, characterized in that: The step of determining the second distance specifically includes: S31, when the system is initialized, the distance interval is set to 0 cm to 20 cm, divided into 100 equally spaced sub-intervals; S32, performing high-precision Bluetooth ranging for each sub-interval and recording the ranging success rate; S33. Establish dynamic programming array , indicating the front The optimal ranging success rate of sub-intervals; S34, recursive calculation ; S35, Backtracking Array, determine the optimal combination of continuous subintervals; S36, calculating the center value of the optimal sub-interval combination as a candidate value of the second distance; S37, performing a refined search near the candidate value to determine a final second distance value; S38. Repeat steps S32 to S37 every 6 hours to dynamically adjust the second distance value to adapt to environmental changes.
10. A digital currency hardware wallet transaction system based on Bluetooth technology according to claim 1, characterized in that: The key information specifically includes digital currency private key, user identity authentication information, transaction signature key, encrypted communication key, hardware wallet unique identifier, digital currency balance information, transaction history hash value, security chip firmware version information, digital certificate information, and key derivation parameters.
Citation Information
Patent Citations
Subway ticket checking system and method based on mobile intelligent terminal
CN105374071A
Subway payment method and system based on Bluetooth communication
CN106096949A
PD radar weak target dynamic planning detection method based on distance matching
CN106772299A
Digital currency hardware wallet based on mobile terminal
CN112669021A
Distance measurement method of UWB equipment, electronic equipment and storage medium
CN117406206A
Cited By
Multistage hardware wallet transaction method of digital currency, medium and system
CN119151539A
