A method, apparatus and system for managing a digital currency
Patent Information
- Application Number
- CN202110414585.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2041-04-16
AI Technical Summary
[0053] One embodiment of the above invention has the following advantages or beneficial effects: Since the first client can send one or more first digital currencies belonging to different second currency management devices received during offline or online transactions to the first currency management device to receive the second digital currencies directly generated by the first currency management device based on the first digital currencies, the rapid exchange of the first digital currencies is realized, thereby improving the liquidity and ease of use of digital currencies.
Smart Images

Figure CN115222403B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and system for managing digital currency. Background Technology
[0002] In the digital economy era, digital currencies have attracted increasing attention from banks and consumers around the world due to their low cost and convenience. Using digital currencies for payments is the key to realizing the circulation and application of digital currencies.
[0003] Unlike traditional paper money, digital currencies may belong to different digital currency management institutions, meaning they may be issued by different institutions. Therefore, in actual payment processes, the same user may receive digital currencies from different users, each belonging to a different digital currency management institution. To improve the convenience of using digital currencies for transactions, when a user receives digital currencies from different institutions, it is necessary to convert them into digital currencies issued by the corresponding managing institution, thereby improving the liquidity of the digital currency. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method and system for managing digital currency, which enables rapid exchange of digital currency upon receiving digital currency belonging to different digital currency management institutions on the client side, thereby improving the liquidity of digital currency.
[0005] To achieve the above objectives, according to a first aspect of the present invention, a method for managing digital currency is provided, applied to a first client, comprising:
[0006] Send one or more first digital currencies to the first currency management device corresponding to the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device;
[0007] The first currency management device receives one or more second digital currencies generated based on one or more of the first digital currencies, wherein the sum of the face values of the one or more second digital currencies is equal to the sum of the face values of one or more of the first digital currencies.
[0008] Optionally, the first digital currency is the digital currency received by the first client when conducting an offline transaction.
[0009] To achieve the above objectives, according to a second aspect of the present invention, a method for managing digital currency is provided, applied to a first currency management device, comprising:
[0010] Receive one or more first digital currencies sent by a first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device;
[0011] Based on one or more of the first digital currencies corresponding to the first client, generate one or more second digital currencies for the first client, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client;
[0012] The second digital currency is sent to the first client.
[0013] Optionally, it also includes:
[0014] Before generating one or more second digital currencies for the first client based on one or more of the first digital currencies corresponding to the first client, the first digital currencies are verified so that one or more second digital currencies can be generated for the first client if the verification is successful.
[0015] Optionally, it also includes:
[0016] The first digital currency is sent to the second currency management device to which the first digital currency belongs, so that the second currency management device can verify the first digital currency.
[0017] Optionally, the second currency management device verifies the first digital currency according to one or more of the following:
[0018] The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
[0019] To achieve the above objectives, according to a third aspect of the present invention, a method for managing digital currency is provided, applied to a second currency management device, comprising:
[0020] Receive one or more first digital currencies belonging to the second currency management device, which are different from those sent by the first currency management device;
[0021] The first digital currency is verified, and the verification result is recorded.
[0022] Optionally, the first digital currency may be verified according to one or more of the following:
[0023] The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
[0024] Optionally, verifying the first digital currency based on its face value includes:
[0025] Calculate the sum of one or more of the first digital currency denominations to determine whether the sum of the first digital currency denominations is consistent with the sum of the denominations of digital currencies with the same circulation identifier as the first digital currency recorded by the second currency management device.
[0026] To achieve the above objectives, according to a fourth aspect of the present invention, a first client for digital currency management is provided, comprising: a digital currency sending module and a digital currency receiving module; wherein,
[0027] The digital currency sending module is used to send one or more first digital currencies to the first currency management device corresponding to the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device.
[0028] The digital currency receiving module is used to receive one or more second digital currencies generated by the first currency management device based on one or more first digital currencies, wherein the total face value of the one or more second digital currencies is equal to the total face value of one or more first digital currencies.
[0029] Optionally, the first digital currency is the digital currency received by the first client when conducting an offline transaction.
[0030] To achieve the above objectives, according to a fifth aspect of the present invention, a first currency management device for digital currency management is provided, comprising: a digital currency receiving module, a digital currency generating module, and a digital currency distributing module; wherein,
[0031] The digital currency receiving module is used to receive one or more first digital currencies sent by the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device.
[0032] The digital currency generation module is used to generate one or more second digital currencies for the first client based on one or more first digital currencies corresponding to the first client, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client.
[0033] The digital currency distribution module is used to distribute the second digital currency to the first client.
[0034] Optionally, the digital currency generation module is further used for,
[0035] Before generating one or more second digital currencies for the first client based on one or more of the first digital currencies corresponding to the first client, the first digital currencies are verified so that one or more second digital currencies can be generated for the first client if the verification is successful.
[0036] Optionally, the digital currency distribution module is further used for:
[0037] The first digital currency is sent to the second currency management device to which the first digital currency belongs, and the second currency management device verifies the first digital currency.
[0038] Optionally, the second currency management device verifies the first digital currency according to one or more of the following:
[0039] The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
[0040] To achieve the above objectives, according to a sixth aspect of the present invention, a second currency management device for digital currency management is provided, comprising: a digital currency receiving module and a digital currency verification module; wherein,
[0041] The digital currency receiving module is used to receive one or more first digital currencies belonging to the second currency management device, which are different from those sent by the first currency management device.
[0042] The digital currency verification module is used to verify the first digital currency and record the verification result.
[0043] Optionally, the digital currency verification module is configured to verify the first digital currency according to one or more of the following:
[0044] The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
[0045] Optionally, the digital currency verification module is used to verify the first digital currency according to its face value, including:
[0046] Calculate the sum of one or more of the first digital currency denominations to determine whether the sum of the first digital currency denominations is consistent with the sum of the denominations of digital currencies with the same circulation identifier as the first digital currency recorded by the second currency management device.
[0047] To achieve the above objectives, according to a seventh aspect of the present invention, a management system for digital currency is provided, comprising: a first client, a first currency management device, and a second currency management device; wherein,
[0048] The first client is configured to send one or more first digital currencies to the first currency management device corresponding to the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device; and receive one or more second digital currencies generated by the first currency management device based on one or more first digital currencies, wherein the total face value of the one or more second digital currencies is equal to the total face value of one or more first digital currencies.
[0049] The first currency management device is configured to receive one or more first digital currencies sent by a first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device; generate one or more second digital currencies for the first client based on the one or more first digital currencies corresponding to the first client, wherein the total face value of the one or more second digital currencies is equal to the total face value of the first digital currencies corresponding to the first client; and distribute the second digital currencies to the first client.
[0050] The second currency management device is configured to receive one or more first digital currencies belonging to the second currency management device from a first currency management device that is different from the second currency management device; verify the first digital currencies and record the verification results.
[0051] To achieve the above objectives, according to an eighth aspect of the present invention, an electronic device for managing digital currency is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described above for managing digital currency.
[0052] To achieve the above objectives, according to a ninth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements any of the methods described in the above-described digital currency management methods.
[0053] One embodiment of the above invention has the following advantages or beneficial effects: Since the first client can send one or more first digital currencies belonging to different second currency management devices received during offline or online transactions to the first currency management device to receive the second digital currencies directly generated by the first currency management device based on the first digital currencies, the rapid exchange of the first digital currencies is realized, thereby improving the liquidity and ease of use of digital currencies.
[0054] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0055] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0056] Figure 1 This is a schematic diagram of the main flow of a digital currency management method applied to a first client according to an embodiment of the present invention;
[0057] Figure 2 This is a schematic diagram of the main process of a digital currency management method applied to a first currency management device according to an embodiment of the present invention;
[0058] Figure 3 This is a schematic diagram of the main process of a digital currency management method applied to a second currency management device according to an embodiment of the present invention;
[0059] Figure 4 This is a schematic diagram of the main modules of a first client for digital currency management according to an embodiment of the present invention;
[0060] Figure 5 This is a schematic diagram of the main modules of a first currency management device for digital currency management according to an embodiment of the present invention;
[0061] Figure 6 This is a schematic diagram of the main modules of a second currency management device for digital currency management according to an embodiment of the present invention;
[0062] Figure 7 This is a schematic diagram of the main structure of a management system for digital currency according to an embodiment of the present invention;
[0063] Figure 8This is a schematic diagram of the main flow of a digital currency management method applied to a digital currency management system according to an embodiment of the present invention;
[0064] Figure 9 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;
[0065] Figure 10 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0066] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0067] Figure 1 This is a schematic diagram of the main flow of a digital currency management method applied to a first client according to an embodiment of the present invention, as shown below. Figure 1 As shown, the specific steps that can be included in the management method of this digital currency are as follows:
[0068] Step S101: Send one or more first digital currencies to the first currency management device corresponding to the first client. The first digital currencies belong to one or more second currency management devices that are different from the first currency management device.
[0069] Digital currency refers to currency that can be used to replace paper money in various circulation operations, such as making payments, transferring ownership, or directly transferring digital currency. Specifically, digital currency includes one or more of the following information: a circulation identifier, the identifier of the digital currency management device to which it belongs, and the signature of the digital currency management device. The circulation identifier is a unique identifier (such as a serial number) corresponding to the digital currency. This identifier can be a string, a QR code, a barcode, etc., to facilitate the circulation of the digital currency. The first digital currency belonging to one or more second currency management devices means that the first digital currency was issued by a second currency management device; that is, the first digital currency includes the identifier and signature of the second currency management device.
[0070] In one optional implementation, the first digital currency is the digital currency received by the first client during an offline transaction. It is understood that the first client, used for transactions with other client users, may be online (i.e., connected to the first currency management device) or offline (i.e., disconnected from the first currency management device). In such cases, it is impossible to send one or more received first digital currencies to the first currency management device in real time. Therefore, to ensure timely processing of the first digital currency received by the first client during offline transactions, once the first client is online (i.e., once a communication connection is successfully established with the first currency management device), it sends one or more first digital currencies received during the offline transaction to the first currency management device. This allows the first currency management device to directly generate second digital currency based on the first digital currency and distribute it to the first client, without needing to redeem the first digital currency from the second currency management device to which it belongs. This achieves rapid exchange of digital currency belonging to one or more second currency management devices, improving the liquidity and convenience of transactions.
[0071] In addition, for one or more digital currencies received when the first client is online, the first client can send the received digital currencies to the first currency management device in real time according to the actual situation, or send one or more digital currencies that have been received to the first currency management device periodically or irregularly, such as sending the received digital currencies every 1 hour, 5 hours or 24 hours, so that the first currency management device can process the digital currencies in batches.
[0072] Step S102: Receive one or more second digital currencies generated by the first currency management device based on one or more first digital currencies, wherein the total face value of the one or more second digital currencies is equal to the total face value of one or more first digital currencies.
[0073] In other words, after receiving one or more first digital currencies belonging to one or more second currency management devices different from the first currency management device from the first client, the first currency management device can directly generate a second digital currency belonging to the first currency management device based on the sum of the face values of the first digital currencies, and the face value of the second digital currency is equal to the sum of the face values of the first digital currencies, and then send the second digital currency to the first client; or it can directly generate two or more second digital currencies belonging to the first currency management device based on the sum of the face values of the first digital currencies, and the sum of the face values of the two or more second digital currencies is equal to the sum of the face values of the first digital currencies, and then send the two or more second digital currencies to the first client.
[0074] In this way, the first client can quickly exchange the first digital currency for the first digital currency from the first currency management device without waiting for the first currency management device to transfer the digital currency to the second currency management device to which the first digital currency belongs, thus improving the liquidity and convenience of transactions of the digital currency. Specifically, taking the example of four denominations of the first digital currency sent by the first client, namely 5, 10, 20, and 50, the first currency management device can directly generate a second digital currency with a denomination of 85 and send it to the first client, or it can generate two second digital currencies with denominations of 40 and 45 and send them to the first client, or it can generate three second digital currencies with denominations of 30, 30, and 25 and send them to the first client.
[0075] Based on the above embodiments, since the first client can send one or more first digital currencies belonging to different second currency management devices received during offline or online transactions to the first currency management device, so as to receive the second digital currencies directly generated by the first currency management device based on the first digital currencies, the rapid exchange of the first digital currencies is realized, thereby improving the liquidity and ease of use of digital currencies.
[0076] See Figure 2 Based on the above embodiments, this invention provides a method for managing digital currency applied to a first currency management device. The specific steps of this digital currency management method may include the following:
[0077] Step S201: Receive one or more first digital currencies sent by the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device.
[0078] Step S202: Based on one or more of the first digital currencies corresponding to the first client, generate one or more second digital currencies for the first client. The total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client. Specifically, taking the example of four first digital currencies sent by the first client with face values of 5, 10, 20, and 50, the first currency management device can directly generate a second digital currency with a face value of 85 and send it to the first client. Alternatively, it can generate two second digital currencies with face values of 40 and 45 and send them to the first client, or it can generate three second digital currencies with face values of 30, 30, and 25 and send them to the first client.
[0079] In one optional implementation, the method further includes: verifying the first digital currency before generating the second digital currency for the first client based on the first digital currency corresponding to the first client, so that the second digital currency is generated for the first client if the verification is successful.
[0080] Specifically, the first currency management device can verify the first digital currency based on its circulation identifier or signature information: determining whether the first digital currency or circulation identifier is a legitimate circulation identifier to determine the legality of the digital currency's origin; or, based on the identifier of the currency management device indicated by the first digital currency, determining whether the identifier of the currency management device belongs to a legitimate second currency management device to verify the legality of the digital currency's origin; or, verifying based on the signature of the currency management device included in the first digital currency. For example, if the signature of the currency management device is generated using an asymmetric encryption algorithm, the first currency management device can use the public key of the second currency management device to decrypt the signature of the currency management device in the first digital currency to verify the reliability of the signature information. In this way, both the legality of the first digital currency's origin and the security and reliability of directly generating the second digital currency based on the first digital currency can be guaranteed.
[0081] Step S203: The second digital currency is sent to the first client.
[0082] Based on this, the first client can directly use the second digital currency for transaction payments, thereby improving the liquidity and convenience of digital currency transactions.
[0083] In one optional implementation, the method further includes: sending the first digital currency to the second currency management device to which the first digital currency belongs, so that the second currency management device can verify the first digital currency.
[0084] Understandably, to enable the first client to quickly exchange the first digital currency for the first currency management device, the first currency management device directly generates the second digital currency without verifying its legitimacy with the second currency management device to which it belongs. Therefore, to further ensure the legitimacy of the first digital currency and avoid issues such as double-spending, the first currency management device can send the first digital currency to the second currency management device after its generation for verification. This allows the second currency management device to manage the first digital currency through traceability based on transaction vouchers or transaction information, ensuring the legitimacy and security of digital currency transactions, should verification fail. The transaction voucher indicates one or more of the following: the identifiers of the transacting parties involved in the flow of the first digital currency (such as public keys), the transaction time, and the transaction serial number.
[0085] It is understandable that a first currency management device may correspond to multiple users, and thus can receive one or more first digital currencies sent by first clients of multiple different users. These one or more first digital currencies sent by different users' first clients may belong to the same second currency management device. Therefore, the first currency management device can, based on the actual quantity of first digital currencies received belonging to the same second currency management device, send the first digital currencies to the corresponding second currency management device in real time, periodically, or irregularly, so that the second currency management device can verify the first digital currencies.
[0086] More specifically, the second currency management device verifies the first digital currency based on one or more of the following: the circulation identifier of the first digital currency, the signature information of the first digital currency, the transaction certificate of the first digital currency, and the face value of the first digital currency; wherein, the transaction certificate of the first digital currency indicates the transaction information corresponding to the first digital currency.
[0087] See Figure 3 Based on the above embodiments, this invention provides a method for managing digital currency applied to a second currency management device, which may specifically include the following steps:
[0088] Step S301: Receive one or more first digital currencies belonging to the second currency management device, which are different from those sent by the first currency management device.
[0089] Step S302: Verify the first digital currency and record the verification result.
[0090] In one optional implementation, the second currency management device may verify the first digital currency based on one or more of the following: the circulation identifier of the first digital currency, the signature information of the first digital currency, the transaction certificate of the first digital currency, and the face value of the first digital currency; wherein the transaction certificate of the first digital currency indicates the transaction information corresponding to the first digital currency.
[0091] The verification of the first digital currency based on its face value includes: calculating the sum of the face values of one or more of the first digital currencies to determine whether the sum of the face values of the first digital currencies matches the sum of the face values of digital currencies with the same circulation identifier recorded by the second currency management device. Thus, the second currency management device can determine whether the same digital currency has been spent repeatedly, i.e., double-spending, based on the sum of the face values of the issued digital currencies and the sum of the face values of the received first digital currencies. Based on this, if the second currency management device determines that the first digital currency has been double-spended, it can trace the source of the illegally spent first digital currency for monitoring purposes based on information such as the identifiers (e.g., public keys), transaction time, and transaction serial numbers of the parties involved in the transaction indicated by the transaction certificate of the first digital currency.
[0092] Furthermore, taking the circulation identifier of the first digital currency as an example, the second currency management device can determine whether the circulation identifier of the first digital currency is a circulation identifier already recorded or stored in the digital currency record, thereby determining whether the first digital currency is a digital currency issued by the second currency management device. Alternatively, taking the identifier of the currency management device indicated by the first digital currency as an example, the second currency management device can determine whether the identifier of the currency management device belongs to a legitimate second currency management device, verifying the legality of the digital currency's source. Or, verification can be performed based on the signature of the currency management device included in the first digital currency. Taking the example that the signature of the currency management device is generated using an asymmetric encryption algorithm, the first currency management device can use the public key of the second currency management device to decrypt the signature of the currency management device in the first digital currency to verify the reliability of the signature information. Furthermore, taking the transaction certificate corresponding to the first digital currency as an example, the second currency management device can determine the legality of the digital currency's circulation based on the identifiers (such as public keys), transaction time, and transaction serial number of the two parties involved in the transaction indicated by the transaction certificate.
[0093] See Figure 4 Based on the above embodiments, this embodiment of the invention provides a first client 400 for digital currency management, including: a digital currency sending module 401 and a digital currency receiving module 402; wherein,
[0094] The digital currency sending module 401 is used to send one or more first digital currencies to the first currency management device corresponding to the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device.
[0095] The digital currency receiving module 402 is used to receive one or more second digital currencies generated by the first currency management device based on one or more first digital currencies, wherein the total face value of the one or more second digital currencies is equal to the total face value of one or more first digital currencies.
[0096] In one alternative implementation, the first digital currency is the digital currency received by the first client 400 when conducting an offline transaction.
[0097] See Figure 5 Based on the above embodiments, this invention provides a first currency management device 500 for digital currency management, comprising: a digital currency receiving module 501, a digital currency generating module 502, and a digital currency issuing module 503; wherein,
[0098] The digital currency receiving module 501 is used to receive one or more first digital currencies sent by the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device.
[0099] The digital currency generation module 502 is used to generate one or more second digital currencies for the first client based on one or more first digital currencies corresponding to the first client, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client.
[0100] The digital currency distribution module 503 is used to distribute the second digital currency to the first client.
[0101] In an optional implementation, the digital currency generation module 502 is further configured to:
[0102] Before generating one or more second digital currencies for the first client based on one or more of the first digital currencies corresponding to the first client, the first digital currencies are verified so that one or more second digital currencies can be generated for the first client if the verification is successful.
[0103] In an optional implementation, the digital currency issuance module 503 is further used for,
[0104] The first digital currency is sent to the second currency management device to which the first digital currency belongs, and the second currency management device verifies the first digital currency.
[0105] In one optional implementation, the second currency management device verifies the first digital currency according to one or more of the following:
[0106] The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
[0107] See Figure 6 Based on the above embodiments, this embodiment of the invention provides a second currency management device 600 for digital currency management, including: a digital currency receiving module 601 and a digital currency verification module 602; wherein,
[0108] The digital currency receiving module 601 is used to receive one or more first digital currencies belonging to the second currency management device, which are different from those sent by the first currency management device.
[0109] The digital currency verification module 602 is used to verify the first digital currency and record the verification result.
[0110] In one optional implementation, the digital currency verification module 602 is configured to verify the first digital currency according to one or more of the following:
[0111] The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
[0112] In one optional implementation, the digital currency verification module is used to verify the first digital currency according to its face value, including:
[0113] Calculate the sum of one or more of the first digital currency denominations to determine whether the sum of the first digital currency denominations is consistent with the sum of the denominations of digital currencies with the same circulation identifier as the first digital currency recorded by the second currency management device.
[0114] See Figure 7Based on the above embodiments, this invention provides a management system 700 for digital currency, including: a first client 400, a first currency management device 500, and a second currency management device 600; wherein,
[0115] The first client 400 is configured to send one or more first digital currencies to the first currency management device corresponding to the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device; and receive one or more second digital currencies generated by the first currency management device based on the one or more first digital currencies, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies.
[0116] The first currency management device 500 is configured to receive one or more first digital currencies sent by a first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device; generate one or more second digital currencies for the first client based on the one or more first digital currencies corresponding to the first client, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client; and distribute the second digital currencies to the first client.
[0117] The second currency management device 600 is used to receive one or more first digital currencies belonging to the second currency management device sent by a first currency management device that is different from the second currency management device; to verify the first digital currencies and record the verification results.
[0118] See Figure 8 Based on the above embodiments, this invention provides a digital currency management method applied to a digital currency management system 700, which may specifically include the following steps:
[0119] Step S801: The first client sends one or more first digital currencies to the first currency management device. These first digital currencies belong to one or more second currency management devices that are different from the first currency management device. The first client being online triggers the sending of one or more first digital currencies received during offline transactions to the first currency management device.
[0120] In step S802, the first currency management device receives one or more first digital currencies sent by the first client.
[0121] In step S803, the first currency management device verifies the first digital currency. For example, it verifies the first digital currency based on its circulation identifier, the identifier of the currency management device contained in the first digital currency, and the signature information of the currency management device.
[0122] In step S804, if the first digital currency is verified, the first currency management device generates one or more second digital currencies, the total face value of which is consistent with the total face value of the one or more first digital currencies. That is, the first currency management device can directly generate and distribute the second digital currency corresponding to the first digital currency to the first client without needing to redeem the first digital currency to the second currency management device to which it belongs. This allows the first client to quickly exchange digital currency with the first currency management device, improving the liquidity and transaction convenience of the digital currency.
[0123] In step S805, the first currency management device sends the second digital currency to the first client.
[0124] In step S806, the first currency management device sends the first digital currency to one or more second currency management devices to which the first digital currency belongs.
[0125] In step S807, the second currency management device receives one or more first digital currencies sent by the first currency management device.
[0126] In step S808, the second currency management device verifies the received first digital currency and records the verification result. Specifically, the first digital currency can be verified based on one or more of the following: its circulation identifier, signature information, transaction voucher, face value, and the identifier of the currency management device. Based on this, it is possible to monitor whether the first digital currency has engaged in double-spending or other issues, thereby improving the security and reliability of digital currency transactions.
[0127] Figure 9 An exemplary system architecture 900 for managing digital currency, to which embodiments of the present invention can be applied, is shown.
[0128] like Figure 9 As shown, system architecture 900 may include terminal devices 901, 902, and 903, network 904, and server 905. Network 904 is used as a medium to provide a communication link between terminal devices 901, 902, and 903 and server 905. Network 904 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0129] Users can use terminal devices 901, 902, and 903 to interact with server 905 via network 904 to receive or send transaction information, digital currency payment requests, first digital currency, etc., including but not limited to smartphones, tablets, laptops, and desktop computers.
[0130] Server 905 can be a server that provides various services, such as processing one or more first digital currencies sent by users using terminal devices 901, 902, and 903, and feeding back the processing results, such as second digital currencies, to the terminal devices.
[0131] It should be noted that the digital currency management method applied to the first currency management device provided in the embodiments of the present invention is generally executed by the server 905. Correspondingly, the first currency management device for user digital currency management is generally set in the server 905.
[0132] It should be understood that Figure 9 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0133] The following is for reference. Figure 10 It shows a schematic diagram of the structure of a computer system 1000 suitable for implementing a terminal device of the present invention. Figure 10 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0134] like Figure 10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage section 1008 into a random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the system 1000. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0135] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. A removable medium 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 1010 as needed so that computer programs read from it can be installed into storage section 1008 as needed.
[0136] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs the functions defined in the system of this invention.
[0137] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0139] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, they can be described as: a first currency management device for digital currency management, characterized by comprising: a digital currency receiving module, a digital currency generating module, and a digital currency distributing module. The names of these modules do not necessarily limit the module itself; for example, the digital currency distributing module can also be described as "a module for distributing the second digital currency to the first client."
[0140] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs that, when executed by the device, cause the device to: send one or more first digital currencies to a first currency management device corresponding to a first client, the first digital currencies belonging to one or more second currency management devices different from the first currency management device; and receive one or more second digital currencies generated by the first currency management device based on the one or more first digital currencies, the sum of the face values of the one or more second digital currencies being equal to the sum of the face values of the one or more first digital currencies.
[0141] According to the technical solution of the present invention, since the first client can send one or more first digital currencies belonging to different second currency management devices received during offline or online transactions to the first currency management device, so as to receive one or more second digital currencies directly generated by the first currency management device based on the first digital currencies, the rapid exchange of the first digital currencies is realized, thereby improving the liquidity and ease of use of digital currencies.
[0142] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for managing digital currency, characterized in that, Applied to the first client, including: One or more first digital currencies are sent to the first currency management device corresponding to the first client. The first digital currencies belong to one or more second currency management devices that are different from the first currency management device. The first currency management device verifies the first digital currency and generates a second digital currency if the verification is successful. The first currency management device generates the second digital currency directly without verifying the legality of the first digital currency with the second currency management device to which the first digital currency belongs. The first currency management device receives one or more second digital currencies generated based on one or more first digital currencies, wherein the sum of the face values of the one or more second digital currencies is equal to the sum of the face values of one or more first digital currencies.
2. The method for managing digital currency according to claim 1, characterized in that, The first digital currency is the digital currency received by the first client when conducting an offline transaction.
3. A method for managing digital currency, characterized in that, Applied to a first currency management device, including: Receive one or more first digital currencies sent by a first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device; Based on one or more of the first digital currencies corresponding to the first client, one or more second digital currencies are generated for the first client, and the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client; wherein, the first currency management device generates the second digital currency directly without verifying the legality of the first digital currency to the second currency management device to which the first digital currency belongs. The second digital currency is sent to the first client. Before generating one or more second digital currencies for the first client based on one or more of the first digital currencies corresponding to the first client, the first digital currencies are verified so that one or more second digital currencies can be generated for the first client if the verification is successful.
4. The method for managing digital currency according to claim 3, characterized in that, Also includes: The first digital currency is sent to the second currency management device to which the first digital currency belongs, so that the second currency management device can verify the first digital currency.
5. The method for managing digital currency according to claim 4, characterized in that, The second currency management device verifies the first digital currency based on one or more of the following: The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
6. A method for managing digital currency, characterized in that, Applied to a second currency management device, including: Receive one or more first digital currencies belonging to the second currency management device, which are different from those sent by the first currency management device; Verify the first digital currency and record the verification result; The first digital currency is sent from the first client to the first currency management device as described in claim 1.
7. The method for managing digital currency according to claim 6, characterized in that, The first digital currency can be verified according to one or more of the following: The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
8. The method for managing digital currency according to claim 7, characterized in that, Verification of the first digital currency based on its face value includes: Calculate the sum of one or more of the first digital currency denominations to determine whether the sum of the first digital currency denominations is consistent with the sum of the denominations of digital currencies with the same circulation identifier as the first digital currency recorded by the second currency management device.
9. A first client for digital currency management, characterized in that, include: Digital currency sending module and digital currency receiving module; among which, The digital currency sending module is used to send one or more first digital currencies to a first currency management device corresponding to a first client. The first digital currencies belong to one or more second currency management devices that are different from the first currency management device. The first currency management device verifies the first digital currency and generates a second digital currency if the verification is successful. Alternatively, the first currency management device may generate the second digital currency directly without verifying the legality of the first digital currency with the second currency management device to which it belongs. The digital currency receiving module is used to receive one or more second digital currencies generated by the first currency management device based on one or more first digital currencies, wherein the total face value of the one or more second digital currencies is equal to the total face value of one or more first digital currencies.
10. The first client according to claim 9, characterized in that, The first digital currency is the digital currency received by the first client when conducting an offline transaction.
11. A first currency management device for digital currency management, characterized in that, include: The digital currency receiving module, digital currency generation module, and digital currency distribution module; among them, The digital currency receiving module is used to receive one or more first digital currencies sent by the first client, wherein the first digital currencies belong to one or more second currency management devices that are different from the first currency management device. The digital currency generation module is used to generate one or more second digital currencies for the first client based on one or more first digital currencies corresponding to the first client, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client; wherein the first currency management device generates the second digital currency directly without verifying the legality of the first digital currency to the second currency management device to which the first digital currency belongs. The digital currency distribution module is used to distribute the second digital currency to the first client; The digital currency receiving module is further configured to verify the first digital currency before generating one or more second digital currencies for the first client based on one or more first digital currencies corresponding to the first client, so as to generate one or more second digital currencies for the first client if the verification is successful.
12. The first currency management device according to claim 11, characterized in that, The digital currency distribution module is also used for, The first digital currency is sent to the second currency management device to which the first digital currency belongs, and the second currency management device verifies the first digital currency.
13. The first currency management device according to claim 12, characterized in that, The second currency management device verifies the first digital currency based on one or more of the following: The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
14. A second currency management device for digital currency management, characterized in that, include: Digital currency receiving module, digital currency verification module; among which, The digital currency receiving module is used to receive one or more first digital currencies belonging to the second currency management device, which are different from those sent by the first currency management device; wherein, the first digital currencies are sent to the first currency management device by the first client as described in claim 9; The digital currency verification module is used to verify the first digital currency and record the verification result.
15. The second currency management device according to claim 14, characterized in that, The digital currency verification module is used to verify the first digital currency according to one or more of the following: The first digital currency includes a circulation identifier, signature information, transaction voucher, and face value; wherein the transaction voucher indicates the transaction information corresponding to the first digital currency.
16. The second currency management device according to claim 15, characterized in that, The digital currency verification module is used to verify the first digital currency according to its face value, including: Calculate the sum of one or more of the first digital currency denominations to determine whether the sum of the first digital currency denominations is consistent with the sum of the denominations of digital currencies with the same circulation identifier as the first digital currency recorded by the second currency management device.
17. A management system for digital currency, characterized in that, include: A first client, a first currency management device, and a second currency management device; wherein... The first client is configured to send one or more first digital currencies to the first currency management device corresponding to the first client, wherein the first digital currencies belong to one or more second currency management devices different from the first currency management device; receive one or more second digital currencies generated by the first currency management device based on the one or more first digital currencies, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies; wherein the first currency management device generates the second digital currencies directly without verifying the legality of the first digital currencies with the second currency management device to which the first digital currencies belong; The first currency management device is configured to receive one or more first digital currencies sent by a first client, wherein the first digital currencies belong to one or more second currency management devices different from the first currency management device; generate one or more second digital currencies for the first client based on the one or more first digital currencies corresponding to the first client, wherein the total face value of the one or more second digital currencies is equal to the total face value of the one or more first digital currencies corresponding to the first client; and distribute the second digital currencies to the first client; wherein the first currency management device verifies the first digital currencies, and generates the second digital currencies if the verification is successful. The second currency management device is configured to receive one or more first digital currencies belonging to the second currency management device from a first currency management device that is different from the second currency management device; verify the first digital currencies and record the verification results.
18. An electronic device for managing digital currency, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-8.
19. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-8.
Citation Information
Patent Citations
Method and device for inquiring digital currency detail information
CN108305071A
Asymmetrically encrypted digital currency transaction data processing method and device
CN111311210A
Anti-counterfeiting verification method and system for digital currency offline payment
CN112036847A