Offline electronic currency collection method and device
By establishing a wireless connection with the device in the electronic currency collection method and device, the security control module establishes a wireless connection with the device, verifying and processing electronic currency information, the offline problem of electronic currency collection is solved, and the user's convenient and secure electronic currency collection is achieved.
Patent Information
- Application Number
- CN201910383677.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-09
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2039-05-09
AI Technical Summary
The existing electronic transaction methods cannot be applied to the collection of electronic currencies, resulting in the inability to realize the collection of offline electronic currencies.
Provide an offline electronic currency collection method and device, establish a wireless connection with the device through a security control module, receive wallet information, perform verification operations, verify the legality of account information and electronic currency, and collect payment after verification is passed. Generate transaction records, and finally confirm online with the background and update the electronic currency.
The offline collection of electronic money is realized, and users can complete collection through a hardware wallet, which is convenient and guarantees security.
Smart Images

Figure CN111915282B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic currency transaction, and in particular to an offline electronic currency collection method and device. Background Art
[0002] With the development of the Internet, electronic transactions have become more and more popular. There are many forms of electronic transactions, such as bank transfers, WeChat payments, and Alipay payments. However, the above payment methods all require both parties or one party to be online to complete the transaction. Based on account transfers, it is necessary to connect to the bank backend to complete the transaction.
[0003] However, with the development of electronic currency, the above-mentioned electronic transaction method cannot be applied to the collection of electronic currency. Therefore, providing a method for collecting electronic currency has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present invention aims to solve one of the problems.
[0005] The main purpose of the present invention is to provide an offline electronic currency collection method;
[0006] Another object of the present invention is to provide an offline electronic money collection device.
[0007] To achieve the above object, the technical solution of the present invention is specifically implemented as follows:
[0008] On the one hand, the present invention provides an offline electronic currency collection method, comprising: a security control module controls a communication module to establish a wireless connection with a first device; the security control module receives wallet information through the communication module, wherein the wallet information includes: offline account information of the first device, an available balance of the first device and electronic currency of the first device, and the electronic currency of the first device includes at least the following fields: currency face value, owner identification and issuer signature; the security control module performs a verification operation and the verification is passed, wherein the verification operation includes: verifying whether the offline account information of the first device is included in the offline transaction blacklist stored in the file storage module, and verifying whether the electronic currency of the first device is legal, and verifying whether the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; the verification includes: verifying that the offline account information of the first device is not included in the offline transaction blacklist stored in the file storage module, and verifying that the electronic currency of the first device is legal, and verifying that the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; the security control module performs a verification operation and the verification is passed. After the verification is passed, the control module sends the collection information to the first device, wherein the collection information at least includes its own offline account information obtained from the file storage module; the security control module receives the first transaction data through the communication module, wherein the first transaction data is generated after the first device verifies that its own offline account information is not included in the offline transaction blacklist stored in the first device, wherein the first transaction data at least includes the first transaction information and the first signature information obtained by digitally signing the first transaction information, and the first transaction information at least includes: the first device offline account information, its own offline account information, the first transaction time and the first transaction amount; the security control module verifies the first signature information according to the first transaction information and the public key of the first device, if the verification is passed, the control file storage module sets the current in-transit balance to the first balance, and the control storage module stores the first transaction record, wherein the first transaction record includes: the first transaction data, and the first balance is the balance obtained by adding the first transaction amount to the original in-transit balance.
[0009] The method further includes: the security control module is connected to the background through the communication module, and the first transaction record, the first balance and the original offline balance are sent to the background. After the background confirms that the first transaction record, the first balance and the original offline balance are correct, the new electronic currency issued by the background is received, and the file storage module is controlled to store the new electronic currency, all the electronic currencies stored in the file storage module are deleted, the current in-transit balance is set to 0, and the current offline balance is set to the face value of the new electronic currency, wherein the face value of the new electronic currency is equal to the sum of the first balance and the original offline balance.
[0010] Among them, the available balance of the first device includes: the offline balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device.
[0011] Among them, the available balance of the first device includes: the offline balance of the first device and the in-transit balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device and the in-transit electronic currency of the first device; the wallet information also includes: a second transaction record; wherein the second transaction record includes: second transaction data, the second transaction data at least includes: the second transaction information and the second signature information obtained by the second device signing the second transaction information, the second transaction information includes: the offline account information of the second device, the offline account information of the first device, the second transaction time and the second transaction amount; the security control module performs a verification operation and also includes: the security control module verifies the second signature information using the public key of the second device; the security control module verification also includes: the security control module verifies the second signature information using the public key of the second device.
[0012] The first transaction information also includes: a second transaction record.
[0013] The payment information also includes: a first transaction amount, wherein the first transaction amount is received by the security control module through the keyboard module.
[0014] On the other hand, the present invention provides an offline electronic currency collection device, comprising: a security control module, a communication module and a file storage module; wherein: the security control module is used to control the communication module to establish a wireless connection with a first device; wallet information is received through the communication module, wherein the wallet information includes: offline account information of the first device, available balance of the first device and electronic currency of the first device, and the electronic currency of the first device includes at least the following fields: currency face value, owner identification and issuer signature; the security control module is also used to perform a verification operation and pass the verification, wherein the verification operation includes: verifying whether the offline account information of the first device is included in the offline transaction blacklist stored in the file storage module, and verifying whether the electronic currency of the first device is legal, and verifying whether the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; passing the verification includes: verifying that the offline account information of the first device is not included in the offline transaction blacklist stored in the file storage module, and verifying that the electronic currency of the first device is legal, and verifying that the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device. the total face value of the electronic currency of the first device; after the verification is passed, the payment information is sent to the first device, wherein the payment information at least includes the offline account information obtained from the file storage module; the security control module is also used to receive the first transaction data through the communication module, wherein the first transaction data is generated after the first device verifies that its offline account information is not included in the offline transaction blacklist stored in the first device, wherein the first transaction data at least includes the first transaction information and the first signature information obtained by digitally signing the first transaction information, and the first transaction information at least includes: the offline account information of the first device, the offline account information of the first device, the first transaction time and the first transaction amount; the first signature information is verified according to the first transaction information and the public key of the first device, if the verification is passed, the file storage module is controlled to set the current in-transit balance to the first balance, and the storage module is controlled to store the first transaction record, wherein the first transaction record includes: the first transaction data, and the first balance is the balance obtained by adding the first transaction amount to the original in-transit balance.
[0015] Among them, the security control module is also used to connect to the background through the communication module, send the first transaction record, the first balance and the original offline balance to the background, and after the background confirms that the first transaction record, the first balance and the original offline balance are correct, receive the new electronic currency issued by the background, and control the file storage module to store the new electronic currency, delete all the electronic currencies stored in the file storage module, set the current in-transit balance to 0, and set the current offline balance to the face value of the new electronic currency, wherein the face value of the new electronic currency is equal to the sum of the first balance and the original offline balance.
[0016] Among them, the available balance of the first device includes: the offline balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device.
[0017] Among them, the available balance of the first device includes: the offline balance of the first device and the in-transit balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device and the in-transit electronic currency of the first device; the wallet information also includes: a second transaction record; wherein the second transaction record includes: second transaction data, the second transaction data at least includes: the second transaction information and the second signature information obtained by the second device signing the second transaction information, the second transaction information includes: the offline account information of the second device, the offline account information of the first device, the second transaction time and the second transaction amount; the security control module is also used to use the public key of the second device to verify the second signature information; use the public key of the second device to verify the second signature information.
[0018] The first transaction information also includes: a second transaction record.
[0019] The device further includes: a keyboard module; the payment information also includes: a first transaction amount; the keyboard module is used to receive the first transaction amount and send it to the security control module.
[0020] It can be seen from the technical solution provided by the present invention that the offline electronic currency collection method and device provided by the embodiment of the present invention realizes an offline electronic currency collection method. The user only needs to use his own hardware wallet to perform a tap operation to complete the offline electronic currency collection, which makes the user's operation convenient while ensuring the security of the offline electronic currency collection. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0022] Figure 1 A flow chart of an offline electronic money collection method provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of the structure of an offline electronic money receiving device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.
[0025] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance, quantity or position.
[0026] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0027] The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0028] Figure 1 A flowchart of an offline electronic money collection method provided by an embodiment of the present invention is shown. Figure 1 The offline electronic money collection method provided by the embodiment of the present invention includes:
[0029] S101, the security control module controls the communication module to establish a wireless connection with the first device.
[0030] Specifically, in the embodiment of the present invention, the subject that executes the offline electronic money collection method provided in the embodiment of the present invention is a payee device. Of course, the subject can also serve as a payee device at the same time.
[0031] In an embodiment of the present invention, the subject that executes the offline electronic currency collection method provided by the embodiment of the present invention (hereinafter referred to as the offline electronic currency collection device) can be various types of collection terminals such as hardware wallets, smart phones, POS machines, etc., among which the hardware wallet can be a carrier of legal digital currency (electronic currency), a payment tool based on the digital currency circulation system, and can store digital currency value codes and user identity authentication information. It is a hardware product with a unique identifiable number, including but not limited to card wallets, special-shaped wallets, SIM cards, bracelets, etc.
[0032] The offline electronic money receiving device provided in the embodiment of the present invention can establish a wireless connection with the first device to perform the electronic money receiving operation. The electronic money receiving operation through the wireless connection can be convenient for users to use, so that users can operate remotely when receiving money, thereby improving the user experience. Of course, in actual applications, the offline electronic money receiving device can also establish a wired connection with the first device. In the embodiment of the present invention, only the offline electronic money receiving device and the first device are used as an example to illustrate the wireless connection.
[0033] The wireless connection established between the offline electronic money receiving device provided in the embodiment of the present invention and the first device can be NFC connection, Bluetooth connection, WIFI, infrared and the like, which is not specifically limited in the present invention. As an optional implementation of the embodiment of the present invention, the security control module controls the communication module to establish a wireless connection with the first device, including: the security control module controls the communication module to establish an NFC connection with the first device; the security control module controls the communication module to transmit Bluetooth pairing information through the NFC connection; the security control module controls the communication module to establish a Bluetooth connection with the first device using the Bluetooth pairing information. In the application, the user can perform a touch operation between the offline electronic money receiving device and the first device, that is, the Bluetooth pairing information can be transmitted through the NFC connection, and then the offline electronic money receiving device can be separated from the first device, avoiding the problem that the user can only collect money at close range when using the offline electronic money receiving device and the first device, thereby improving the user experience. By transmitting the Bluetooth pairing information through the NFC connection, the device to be connected can be quickly found, the speed of the Bluetooth connection can be improved, and the problem of slow speed caused by Bluetooth broadcasting each information and searching for the other party for pairing in the traditional Bluetooth connection can be avoided, and the problem of the device to be connected being connected to other Bluetooth devices but unable to connect to the device can be further avoided.
[0034] In order to ensure the transaction security between the offline electronic money receiving device and the first device, as an optional implementation of the embodiment of the present invention, after the security control module controls the communication module to establish a Bluetooth connection with the first device using the Bluetooth pairing information, before the security control module receives the wallet information through the communication module, the offline electronic money receiving method provided by the embodiment of the present invention also includes: the security control module uses the Bluetooth connection to perform mutual authentication with the first device. The authentication method may include, but is not limited to, verifying the other party's certificate, verifying the other party's identification, etc. This authentication method can adopt an existing authentication method, which will not be repeated here.
[0035] S102, the security control module receives wallet information through the communication module, wherein the wallet information includes: first device offline account information, first device available balance and first device electronic currency, and the first device electronic currency includes at least the following fields: currency face value, owner identification and issuer signature.
[0036] Specifically, the offline electronic money receiving device performing offline payment collection means that the offline electronic money receiving device is used independently and is not connected to the background.
[0037] Wallet information refers to the relevant information stored in the first device, which may include but is not limited to the electronic currency of the first device, the offline account information of the user of the first device, the available balance of the first device, etc. As a further optional method for practical application, the wallet information may also include the following: user information of the user of the first device, the digital certificate, key and transaction information of the first device, etc.
[0038] As an optional implementation of an embodiment of the present invention, the first device electronic currency may include the electronic currency exchanged by the first device user from the issuer (i.e., the first device offline electronic currency); or the first device electronic currency may include the electronic currency exchanged by the first device user from the issuer (i.e., the first device offline electronic currency) and the electronic currency paid to the first device by others (i.e., the first device in-transit electronic currency).
[0039] As an optional implementation of the embodiment of the present invention, the available balance of the first device includes: the offline balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device. Among them, the offline balance of the first device is equal to the face value of the electronic currency exchanged by the user of the first device from the issuer. For example, after the user of the first device exchanges the electronic currency from the People's Bank of China, the offline balance of the first device is set to the face value of the electronic currency. The offline balance of the first device can also be less than the face value of the electronic currency exchanged by the user of the first device from the issuer. For example, after the user of the first device exchanges the electronic currency from the People's Bank of China, he has paid one or more transactions. For the embodiment of the present invention, since the first device is in an offline state, after paying one or more transactions, the offline balance of the first device needs to deduct the amount paid, but the electronic currency exchanged from the People's Bank of China is not deleted. At this time, the offline balance is less than the face value of the electronic currency exchanged from the People's Bank of China.
[0040] As an optional implementation of an embodiment of the present invention, the available balance of the first device includes: the offline balance of the first device and the in-transit balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device and the in-transit electronic currency of the first device. When the first device is used as a receiving device, in an offline state, the in-transit balance of the first device is the amount paid to the first device by other payment devices. When the first device is used as a payment device, if the offline balance of the first device is insufficient to pay the transaction amount, the in-transit balance of the first device can be used for payment, and the corresponding amount can be deducted from the in-transit balance of the first device. Of course, the in-transit balance of the first device can also be set to be unavailable, in which case the user can be prompted that the offline balance of the first device is insufficient. The in-transit balance of the first device can be set to be available or unavailable according to actual needs.
[0041] In an embodiment of the present invention, the first device does not delete the electronic currency stored in it after sending the wallet information to the offline electronic currency receiving device. This is because the first device is in an offline state and cannot perform background calculations. Therefore, only the value of the available balance of the first device is changed, and the electronic currency stored in the first device is not deleted, thereby avoiding the problem of deleting the electronic currency and causing the remaining amount of the electronic currency to be unavailable.
[0042] The first device electronic currency mentioned in the embodiment of the present invention may also be called digital currency, which is a currency in data form issued by the central bank. The first device electronic currency in the present invention includes at least the currency face value, owner identification and issuer signature.
[0043] Among them, the first device offline electronic currency may include only one electronic currency, the face value of the first device offline electronic currency is a face value equal to the amount to be exchanged determined according to the exchange requirements, or the first device offline electronic currency includes one or more electronic currencies, the face value of the one or more electronic currencies is the same as the face value of existing paper currency.
[0044] When the first device offline electronic currency includes only one electronic currency, for example, the People's Bank of China issues an electronic currency corresponding to the amount to be exchanged according to the amount that the user needs to exchange, for example, XX needs to exchange 153 yuan of electronic currency, and the face value of the electronic currency exchanged by the People's Bank of China for XX is 153 yuan. When the first device offline electronic currency includes only one electronic currency with an uncertain face value, the amount of data storage is reduced, and the amount of data transmitted during each transaction can also be reduced, and the problem of change can also be avoided.
[0045] When the first device offline electronic currency includes one or more electronic currencies, the first device offline electronic currency can refer to the existing paper currency system and be one or more different fixed-denomination currencies, such as 1 yuan, 10 yuan, 20 yuan, 50 yuan and 100 yuan, etc. For example, XX needs to exchange 153 yuan of electronic currency, and the electronic currency exchanged by the People's Bank of China for XX can include one 100 yuan, one 50 yuan and three 1 yuan, or three 50 yuan and three 1 yuan, etc., which can be exchanged according to specific actual needs. When the first device offline electronic currency is a plurality of different fixed-denomination currencies, it can be used in common with the existing currency system.
[0046] The electronic currency in transit of the first device is the electronic currency paid by other payment devices to the first device. The electronic currency of other payment devices can also be constructed by referring to the two methods of offline electronic currency of the first device mentioned above, which will not be repeated here.
[0047] The owner ID is used to indicate the electronic currency exchanged by the People's Bank of China for the user corresponding to the owner ID, indicating the source of the electronic currency.
[0048] The issuer's signature can be the signature data obtained by signing the electronic currency with the private key of the People's Bank of China, which is used to prove the legitimacy of the electronic currency.
[0049] Of course, as an embodiment of the present invention, the data format of electronic currency that can be used for implementation is as shown in Table 1 below:
[0050]
[0051]
[0052] Table 1
[0053] S103, the security control module performs a verification operation and the verification passes, wherein the verification operation includes: verifying whether the offline account information of the first device is included in the offline transaction blacklist stored in the file storage module, and verifying whether the electronic currency of the first device is legal, and verifying whether the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; the verification passes include: verifying that the offline account information of the first device is not included in the offline transaction blacklist stored in the file storage module, and verifying that the electronic currency of the first device is legal, and verifying that the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device.
[0054] Specifically, the file storage module of the offline electronic money receiving device stores an offline transaction blacklist, which is a list of devices that are defined as illegal users after the background finds problems after the offline transaction devices are online and cleared. Each time the offline electronic money receiving device is online, the background will update the offline transaction blacklist for it. After the offline electronic money receiving device updates the offline transaction blacklist, it uses the file storage module to store the offline transaction blacklist. The offline electronic money receiving device ensures that the first device is a safe device by verifying that the first device is not in the offline transaction blacklist.
[0055] The offline electronic currency collection device verifies the legality of the electronic currency, which can ensure that the first device does have legal electronic currency and ensure the security of subsequent transactions. As an optional implementation of an embodiment of the present invention, the security control module verifies the legality of the electronic currency of the first device, including: the security control module obtains the issuer's public key, uses the issuer's public key to verify the issuer's signature of the electronic currency of the first device, and verifies the owner's identification. If the verification of the issuer's signature passes and the verification of the owner's identification passes, it is determined that the electronic currency of the first device is legal. By verifying the issuer's signature, it is determined that the electronic currency of the first device is indeed legal currency issued by the People's Bank of China, and by verifying the owner's identification, it is determined that the electronic currency of the first device is indeed legal electronic currency exchanged for a user of the legal first device.
[0056] The offline electronic currency payment receiving apparatus verifies that the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device, thereby determining that the first device is operating normally and has not been illegally attacked, thereby ensuring that the first device transacting with the offline electronic currency payment receiving apparatus is a secure device.
[0057] S104, after verification, the security control module sends the payment information to the first device, wherein the payment information at least includes its own offline account information obtained from the file storage module.
[0058] Specifically, after the offline electronic money receiving device has passed all verifications, the receiving information will be sent to the first device, and the receiving information includes its own offline account information, so as to notify the first device to pay the offline electronic money receiving device.
[0059] As an optional implementation of the embodiment of the present invention, the first transaction amount may be carried in the payment information and sent to the offline electronic money payment device so that the first device learns the transaction amount.
[0060] As an optional implementation of the embodiment of the present invention, the first transaction amount is received by the security control module through the keyboard module.
[0061] S105, the security control module receives the first transaction data through the communication module, wherein the first transaction data is generated after the first device verifies that its own offline account information is not included in the offline transaction blacklist stored in the first device, wherein the first transaction data at least includes the first transaction information and the first signature information obtained by digitally signing the first transaction information, and the first transaction information at least includes: the offline account information of the first device, its own offline account information, the first transaction time and the first transaction amount.
[0062] Specifically, the first device also stores an offline transaction blacklist, which is a list of devices that are defined as illegal users by the background after the first device is online for settlement. Each time the first device is online, the background will update the offline transaction blacklist for it. After the first device updates the offline transaction blacklist, it stores the offline transaction blacklist. The first device verifies that the offline electronic currency collection device is not in the offline transaction blacklist to ensure that the offline electronic currency payment device is a safe device.
[0063] After the first device ensures the safety of the offline electronic money receiving device, it will send the first transaction data to the offline electronic money receiving device to complete the collection of the offline electronic money receiving device. The first device signs the first transaction information to ensure the non-repudiation of the first transaction information. The first device offline account information and its own offline account information are used to identify the transaction parties, the first transaction time is used to identify the time of the transaction, and the first transaction amount is the amount of this transaction. For each transaction, the transaction information will include the above content to determine the uniqueness of each transaction.
[0064] As an optional implementation of an embodiment of the present invention, if the first transaction amount is not included in the payment information, the first device also needs to obtain the first transaction amount before the first device digitally signs the first transaction information, wherein the method of obtaining the first transaction amount includes: the first device receives the first transaction amount through a keyboard module.
[0065] As an optional implementation of the embodiment of the present invention, before the first device digitally signs the first transaction information, the first device may also determine whether the first transaction amount is less than or equal to the available balance of the first device. Thus, the first device may determine whether it has the ability to pay for the transaction.
[0066] S106, the security control module verifies the first signature information according to the first transaction information and the public key of the first device. If the verification passes, the control file storage module sets the current in-transit balance to the first balance, and controls the storage module to store the first transaction record, wherein the first transaction record includes: the first transaction data, and the first balance is the balance obtained by adding the first transaction amount to the original in-transit balance.
[0067] Specifically, after receiving the first transaction data sent by the first device, the security control module of the offline electronic money receiving device records the transaction and adds the first transaction amount corresponding to the transaction to the in-transit balance in the file storage module of the offline electronic money receiving device. The offline electronic money receiving device also verifies the first signature information to ensure that the first transaction information is authentic and valid, and the transaction is indeed recognized by the first device.
[0068] As an optional implementation of the embodiment of the present invention, the in-transit balance of the offline electronic money receiving device may be used for subsequent offline payments or may not be used for subsequent offline payments, which may be set according to actual needs. In the case where the in-transit balance of the offline electronic money receiving device can be used for subsequent offline payments, the offline electronic money receiving device also needs to store the first device electronic money to prove the payment ability of the offline electronic money receiving device.
[0069] As an optional implementation of an embodiment of the present invention, the offline electronic currency collection method provided by the embodiment of the present invention also includes: the security control module is connected to the background through the communication module, and the first transaction record, the first balance and the original offline balance are sent to the background. After the background confirms that the first transaction record, the first balance and the original offline balance are correct, the new electronic currency issued by the background is received, and the file storage module is controlled to store the new electronic currency, all electronic currencies stored in the file storage module are deleted, the current in-transit balance is set to 0, and the current offline balance is set to the face value of the new electronic currency, wherein the face value of the new electronic currency is equal to the sum of the first balance and the original offline balance.
[0070] Specifically, the offline electronic money receiving device can perform online settlement. Online means that the offline electronic money receiving device directly establishes a connection with the background through the network, or establishes a connection with the background through other devices (such as computers, mobile phones, etc.), which is not limited in the present invention. In the case of online settlement of the offline electronic money receiving device, the background needs to re-exchange new electronic currency for the offline electronic money receiving device. The face value of the new electronic currency is the sum of the offline balance of the offline electronic money receiving device and the current in-transit balance. The current in-transit balance of the offline electronic money receiving device is set to 0, and the current offline balance is set to the face value of the new electronic currency. It is ensured that after online settlement, the electronic currency of the offline electronic money receiving device corresponds to its available balance, avoiding the problem of unavailable balance.
[0071] It can be seen that the offline electronic currency collection method provided by the embodiment of the present invention realizes an offline electronic currency collection method. The user only needs to use his own hardware wallet to perform a tap operation to complete the offline electronic currency collection, which makes the user's operation convenient while ensuring the security of the offline electronic currency collection.
[0072] As an optional implementation manner of an embodiment of the present invention, the available balance of the first device includes: the offline balance of the first device and the in-transit balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device and the in-transit electronic currency of the first device; the wallet information also includes: a second transaction record; wherein the second transaction record includes: second transaction data, the second transaction data at least includes: the second transaction information and the second signature information obtained by the second device signing the second transaction information, the second transaction information includes: the offline account information of the second device, the offline account information of the first device, the second transaction time and the second transaction amount; the security control module performs a verification operation and also includes: the security control module verifies the second signature information using the public key of the second device; the security control module verification also includes: the security control module verifies the second signature information using the public key of the second device.
[0073] Specifically, when the first device sends the wallet information to the offline electronic money receiving device, it carries the transaction record of the first device and the second device. At the same time, the first device also sends the electronic money received from the second device and the in-transit balance of the first device to the offline electronic money receiving device, so that the offline electronic money receiving device can verify whether the transaction record of the first device and the second device is correct, and verify the payment ability of the first device. The offline electronic money receiving device also verifies the second signature information in the second transaction record, thereby ensuring that the second transaction record is authentic and valid, that is, the transaction record is indeed recognized by the second device.
[0074] As an optional implementation of the embodiment of the present invention, the first transaction information also includes: a second transaction record. When the first device signs the first transaction information, it uses the second transaction record as part of the first transaction information, thereby ensuring that the second transaction record is authentic and valid, that is, the transaction record is indeed recognized by the first device.
[0075] Figure 2 The offline electronic money receiving device provided by the embodiment of the present invention is shown. The device adopts the offline electronic money receiving method. The structure of the offline electronic money receiving device is briefly described below. For other matters not covered, please refer to the relevant description of the offline electronic money receiving method. Figure 2 The offline electronic money receiving device provided by the embodiment of the present invention comprises: a security control module, a communication module and a file storage module; wherein:
[0076] A security control module, configured to control the communication module to establish a wireless connection with the first device; receiving wallet information through the communication module, wherein the wallet information includes: offline account information of the first device, available balance of the first device, and electronic currency of the first device, and the electronic currency of the first device includes at least the following fields: currency denomination, owner identification, and issuer signature;
[0077] The security control module is further used to perform a verification operation, wherein the verification operation includes: verifying whether the offline account information of the first device is included in the offline transaction blacklist stored in the file storage module, and verifying whether the electronic currency of the first device is legal, and verifying whether the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; the verification is passed, wherein the verification is passed includes: verifying that the offline account information of the first device is not included in the offline transaction blacklist stored in the file storage module, and verifying that the electronic currency of the first device is legal, and verifying that the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; after the verification is passed, sending the collection information to the first device, wherein the collection information at least includes its own offline account information obtained from the file storage module;
[0078] The security control module is also used to receive first transaction data through the communication module, wherein the first transaction data is generated after the first device verifies that its own offline account information is not included in the offline transaction blacklist stored in the first device, wherein the first transaction data at least includes the first transaction information and the first signature information obtained by digitally signing the first transaction information, and the first transaction information at least includes: the offline account information of the first device, its own offline account information, the first transaction time and the first transaction amount; the first signature information is verified according to the first transaction information and the public key of the first device, if the verification is passed, the control file storage module sets the current in-transit balance to the first balance, and the control storage module stores the first transaction record, wherein the first transaction record includes: the first transaction data, and the first balance is the balance obtained by adding the first transaction amount to the original in-transit balance.
[0079] As an optional implementation of an embodiment of the present invention, the security control module is also used to connect to the background through the communication module, send the first transaction record, the first balance and the original offline balance to the background, and after the background confirms that the first transaction record, the first balance and the original offline balance are correct, receive the new electronic currency issued by the background, control the file storage module to store the new electronic currency, delete all the electronic currencies stored in the file storage module, set the current in-transit balance to 0, and set the current offline balance to the face value of the new electronic currency, wherein the face value of the new electronic currency is equal to the sum of the first balance and the original offline balance.
[0080] As an optional implementation of the embodiment of the present invention, the available balance of the first device includes: the offline balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device.
[0081] As an optional implementation of an embodiment of the present invention, the available balance of the first device includes: the offline balance of the first device and the in-transit balance of the first device; the electronic currency of the first device includes: the offline electronic currency of the first device and the in-transit electronic currency of the first device; the wallet information also includes: a second transaction record; wherein the second transaction record includes: second transaction data, the second transaction data at least includes: the second transaction information and the second signature information obtained by the second device signing the second transaction information, the second transaction information includes: the offline account information of the second device, the offline account information of the first device, the second transaction time and the second transaction amount; the security control module is also used to use the public key of the second device to verify the second signature information; the second signature information is verified and passed using the public key of the second device.
[0082] As an optional implementation manner of the embodiment of the present invention, the first transaction information also includes: a second transaction record.
[0083] As an optional implementation of the embodiment of the present invention, the offline electronic currency collection device provided in the embodiment of the present invention also includes: a keyboard module; the collection information also includes: a first transaction amount; the keyboard module is used to receive the first transaction amount and send it to the security control module.
[0084] As an optional implementation of an embodiment of the present invention, the electronic currency of the first device also includes: an issuer signature; the security control module verifies the legitimacy of the electronic currency of the first device in the following manner: the security control module is specifically used to obtain the issuer public key, and use the issuer public key to verify the issuer signature of the electronic currency of the first device, and verify the owner identification. If the verification of the issuer signature passes and the verification of the owner identification passes, it is determined that the electronic currency of the first device is legal.
[0085] As an optional implementation manner of an embodiment of the present invention, the security control module controls the communication module to establish a wireless connection with the first device in the following manner: the security control module is specifically used to control the communication module to establish an NFC connection with the first device; the communication module is controlled to transmit Bluetooth pairing information through the NFC connection; the communication module is controlled to use the Bluetooth pairing information to establish a Bluetooth connection with the first device.
[0086] As an optional implementation of an embodiment of the present invention, the security control module is also used to perform mutual authentication with the first device using the Bluetooth connection before receiving the wallet information through the communication module after controlling the communication module to establish a Bluetooth connection with the first device using the Bluetooth pairing information.
[0087] It can be seen that the offline electronic currency collection device provided by the embodiment of the present invention realizes an offline electronic currency collection method. The user only needs to use his own hardware wallet to perform a tap operation to complete the offline electronic currency collection, which makes the user's operation convenient while ensuring the security of the offline electronic currency collection.
[0088] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0089] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0090] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0091] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0092] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0093] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0094] Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. Those skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and purpose of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An offline electronic money collection method, characterized in that: include: The security control module controls the communication module to establish a wireless connection with the first device; The security control module receives wallet information through the communication module, wherein the wallet information includes: first device offline account information, first device available balance and first device electronic currency, and the first device electronic currency includes at least the following fields: currency denomination, owner identification and issuer signature; The security control module performs a verification operation and the verification is passed, wherein the verification operation includes: verifying whether the offline account information of the first device is included in the offline transaction blacklist stored in the file storage module, and verifying whether the electronic currency of the first device is legal, and verifying whether the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; the verification passing includes: verifying that the offline account information of the first device is not included in the offline transaction blacklist stored in the file storage module, and verifying that the electronic currency of the first device is legal, and verifying that the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; After verification, the security control module sends the payment information to the first device, wherein the payment information at least includes the offline account information obtained from the file storage module; The security control module receives first transaction data through the communication module, wherein the first transaction data is generated after the first device verifies that the offline account information of the first device is not included in the offline transaction blacklist stored in the first device, wherein the first transaction data at least includes first transaction information and first signature information obtained by digitally signing the first transaction information, and the first transaction information at least includes: the offline account information of the first device, the offline account information of the first device, the first transaction time and the first transaction amount; The security control module verifies the first signature information according to the first transaction information and the public key of the first device. If the verification is successful, the security control module controls the file storage module to set the current in-transit balance to the first balance, and controls the storage module to store a first transaction record, wherein the first transaction record includes: the first transaction data, and the first balance is the balance obtained by adding the first transaction amount to the original in-transit balance; The security control module is connected to the background through the communication module, and sends the first transaction record, the first balance and the original offline balance to the background. After the background confirms that the first transaction record, the first balance and the original offline balance are correct, it receives the new electronic currency issued by the background, controls the file storage module to store the new electronic currency, deletes all the electronic currencies stored in the file storage module, sets the current in-transit balance to 0, and sets the current offline balance to the face value of the new electronic currency, wherein the face value of the new electronic currency is equal to the sum of the first balance and the original offline balance.
2. The method according to claim 1, characterized in that: The available balance of the first device includes: the offline balance of the first device; The first device electronic currency includes: first device offline electronic currency.
3. The method according to claim 1, characterized in that The available balance of the first device includes: an offline balance of the first device and an in-transit balance of the first device; The first device electronic money includes: first device offline electronic money and first device in-transit electronic money; The wallet information also includes: a second transaction record; wherein the second transaction record includes: second transaction data, the second transaction data at least includes: the second transaction information and the second signature information obtained by the second device signing the second transaction information, the second transaction information includes: the second device offline account information, the first device offline account information, the second transaction time and the second transaction amount; The security control module performing the verification operation further includes: the security control module using the public key of the second device to verify the second signature information; The security control module verification also includes: the security control module using the public key of the second device to verify the second signature information.
4. The method according to claim 3, characterized in that The first transaction information also includes: the second transaction record.
5. The method according to claim 1, characterized in that The payment information also includes: the first transaction amount, wherein the first transaction amount is received by the security control module through the keyboard module.
6. An offline electronic money receiving device, characterized in that: include: Security control module, communication module and file storage module; wherein: The security control module is used to control the communication module to establish a wireless connection with the first device; receive wallet information through the communication module, wherein the wallet information includes: offline account information of the first device, available balance of the first device and electronic currency of the first device, and the electronic currency of the first device includes at least the following fields: currency denomination, owner identification and issuer signature; The security control module is further used to perform a verification operation and pass the verification, wherein the verification operation includes: verifying whether the offline account information of the first device is included in the offline transaction blacklist stored in the file storage module, and verifying whether the electronic currency of the first device is legal, and verifying whether the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; the verification includes: verifying that the offline account information of the first device is not included in the offline transaction blacklist stored in the file storage module, and verifying that the electronic currency of the first device is legal, and verifying that the available balance of the first device is less than or equal to the total face value of the electronic currency of the first device; after the verification is passed, sending the collection information to the first device, wherein the collection information at least includes its own offline account information obtained from the file storage module; The security control module is further used to receive first transaction data through the communication module, wherein the first transaction data is generated after the first device verifies that the offline account information of the first device is not included in the offline transaction blacklist stored in the first device, wherein the first transaction data at least includes the first transaction information and the first signature information obtained by digitally signing the first transaction information, and the first transaction information at least includes: the offline account information of the first device, the offline account information of the first device, the first transaction time and the first transaction amount; the first signature information is verified according to the first transaction information and the public key of the first device, and if the verification is passed, the file storage module is controlled to set the current in-transit balance to the first balance, and the storage module is controlled to store the first transaction record, wherein the first transaction record includes: the first transaction data, and the first balance is the balance obtained by adding the first transaction amount to the original in-transit balance; The security control module is also used to connect to the background through the communication module, send the first transaction record, the first balance and the original offline balance to the background, and after the background confirms that the first transaction record, the first balance and the original offline balance are correct, receive the new electronic currency issued by the background, control the file storage module to store the new electronic currency, delete all the electronic currencies stored in the file storage module, set the current in-transit balance to 0, and set the current offline balance to the face value of the new electronic currency, wherein the face value of the new electronic currency is equal to the sum of the first balance and the original offline balance.
7. The device according to claim 6, characterized in that The available balance of the first device includes: the offline balance of the first device; The first device electronic currency includes: first device offline electronic currency.
8. The device according to claim 6, characterized in that The available balance of the first device includes: an offline balance of the first device and an in-transit balance of the first device; The first device electronic money includes: first device offline electronic money and first device in-transit electronic money; The wallet information also includes: a second transaction record; wherein the second transaction record includes: second transaction data, the second transaction data at least includes: the second transaction information and the second signature information obtained by the second device signing the second transaction information, the second transaction information includes: the second device offline account information, the first device offline account information, the second transaction time and the second transaction amount; The security control module is further used to verify the second signature information using the public key of the second device; and verify the second signature information using the public key of the second device.
9. The device according to claim 8, characterized in that The first transaction information also includes: the second transaction record.
10. The device according to claim 6, characterized in that Also includes: Keyboard module; The payment information also includes: the first transaction amount; The keyboard module is used to receive the first transaction amount and send it to the security control module.
Citation Information
Patent Citations
Offline payment method based on digital currency, terminal and agent delivery device
CN109493016A