CN115222526A - Method and terminal for managing transaction times of digital currency and currency management device - Google Patents
Method and terminal for managing transaction times of digital currency and currency management device Download PDFInfo
- Publication number
- CN115222526A CN115222526A CN202110414579.6A CN202110414579A CN115222526A CN 115222526 A CN115222526 A CN 115222526A CN 202110414579 A CN202110414579 A CN 202110414579A CN 115222526 A CN115222526 A CN 115222526A
- Authority
- CN
- China
- Prior art keywords
- digital
- digital currency
- transaction
- currency
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000009795 derivation Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Development Economics (AREA)
- Computer Security & Cryptography (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a method and a terminal for managing the transaction times of digital money and a money management device, and relates to the technical field of computers. One embodiment of the method comprises: receiving a transaction request indicating digital currency to be transacted and a number of transacted times for the digital currency, an attribute of the digital currency including a transaction number threshold; and determining whether the number of traded times is less than the threshold number of traded times, and if so, trading according to the digital currency. This embodiment improves the security of off-line transactions with digital currency.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method, a terminal and a currency management device for managing the transaction times of digital currency.
Background
In the era of digital economy, digital currency is increasingly concerned by banks and consumers in various countries due to its characteristics of low cost, convenience and the like.
When a consumer conducts a transaction by using digital currency, real-time online may not be guaranteed, for example, when the consumers of both transaction parties are in a network-free state, both transaction parties may not be kept online. In this case, the two parties of the transaction can only perform the offline transaction, and in the process of the offline transaction, how to ensure the security of the transaction is crucial.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a terminal and a currency management device for managing the number of times of digital currency transactions, which can improve the security of offline transactions through digital currency.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of managing the number of transactions of digital money.
The method for managing the transaction times of the digital currency of the embodiment of the invention is applied to a first digital currency terminal and comprises the following steps: receiving a transaction request indicating digital currency to be transacted and a number of transacted times for the digital currency, an attribute of the digital currency comprising a transaction number threshold;
and determining whether the number of traded times is less than the threshold number of traded times, and if so, trading according to the digital currency.
Optionally, after the transaction according to the digital currency, further comprising:
incrementing the number of traded times of the digital currency.
Optionally, the number of traded times is recorded in the digital currency.
Optionally, the method further comprises:
and when the number of times of transaction is not less than the threshold value of the number of times of transaction, rejecting the transaction corresponding to the transaction request.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided a method of managing the number of transactions of digital money.
The method for managing the number of times of digital currency transactions, which is provided by the embodiment of the invention, is applied to a currency management device and comprises the following steps: receiving a digital currency generation request sent by a second digital currency terminal, wherein the currency generation request indicates the denomination of the requested digital currency and user information corresponding to the second digital currency terminal;
determining a transaction number threshold of the digital currency according to the user information;
and generating digital currency corresponding to the user information and the denomination according to the transaction number threshold value, and informing the second digital currency terminal of the digital currency.
Optionally, the digital money generation request further indicates terminal information of the second digital money terminal; and determining the transaction time threshold of the digital currency according to the user information and the terminal information.
Optionally, the method further comprises:
setting the number of times of traded of the digital currency to 0, and recording the number of times of traded in the digital currency.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a first digital money terminal managing the number of transactions of digital money.
The first digital money terminal for managing the number of times of digital money transactions according to an embodiment of the present invention includes: a first receiving module and a transaction module; wherein,
the first receiving module is used for receiving a transaction request, the transaction request indicates digital currency to be transacted and the transacted times of the digital currency, and the attribute of the digital currency comprises a transaction time threshold value;
and the transaction module is used for determining whether the number of times of transaction is less than a transaction number threshold value, and if so, performing transaction according to the digital currency.
Optionally, the transaction module is further configured to increment a number of times the digital currency has been traded after conducting a transaction in accordance with the digital currency.
Optionally, the number of traded times is recorded in the digital currency.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a money management device that manages the number of times of digital money transactions.
The money management device for managing the number of times of digital money transactions according to an embodiment of the present invention includes: the currency generation module is used for generating currency; wherein,
the second receiving module is used for receiving a digital currency generation request sent by a second digital currency terminal, wherein the digital currency generation request indicates the denomination of the requested digital currency and user information corresponding to the second digital currency terminal;
the determining module is used for determining the transaction time threshold of the digital currency according to the user information;
and the currency generating module is used for generating digital currency corresponding to the user information and the denomination according to the transaction number threshold value and informing the second digital currency terminal of the digital currency.
Optionally, the digital money generation request further indicates terminal information of the second digital money terminal;
the determining module is used for determining the transaction time threshold of the digital currency according to the user information and the terminal information.
Optionally, the currency generation module is further configured to set a number of times of traded of the digital currency to 0, and record the number of times of traded in the digital currency.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a system for managing the number of transactions of digital money.
The system for managing the transaction times of the digital currency comprises the following components: any one of the above-described first digital money terminal and money management apparatus.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic device for managing the number of transactions of digital money.
An electronic device for managing transaction times of digital money according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of managing a number of digital money transactions of an embodiment of the present invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium.
A computer-readable storage medium of an embodiment of the present invention has stored thereon a computer program that, when executed by a processor, implements a method of managing the number of transactions of digital money of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: when the first digital money terminal receives the transaction request, it may determine whether the number of times the digital money has been transacted is smaller than a transaction number threshold value, which is determined by the money management apparatus that derives the digital money when the digital money is derived, based on the number of times the digital money has been transacted indicated in the transaction request and a transaction number threshold value included in the attribute of the digital money. When the number of times of trading of the digital currency is smaller than the threshold value of the number of times of trading, the first digital currency terminal conducts trading according to the digital currency. Therefore, the safety of off-line transaction is guaranteed by controlling the transaction times of the digital currency in the transaction process.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of main steps of a method for managing the number of transactions of digital money according to an embodiment of the present invention when applied to a first digital money terminal;
fig. 2 is a schematic diagram of main steps of another method for managing the number of transactions of digital money according to an embodiment of the present invention when applied to a first digital money terminal;
FIG. 3 is a diagram illustrating the main steps of a method for managing the number of digital money transactions applied to a money management apparatus according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating the main steps of a method of managing the number of transactions of digital currency, in accordance with an embodiment of the present invention;
fig. 5 is a schematic diagram of main modules of a first digital money terminal managing the number of transactions of digital money according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the main modules of a money management apparatus for managing the number of transactions of digital money according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of the major modules of a system for managing the number of digital currency transactions, according to an embodiment of the present invention;
FIG. 8 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 9 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features of the embodiments may be combined with each other without conflict.
Fig. 1 is a schematic diagram of the main steps of a method of managing the number of transactions of digital money according to an embodiment of the present invention.
As shown in fig. 1, when the method for managing transaction times of digital money according to the embodiment of the present invention is applied to the first digital money terminal, the method mainly includes the following steps:
step S101: receiving a transaction request indicating a digital currency to be transacted and a number of transacted times for the digital currency, an attribute of the digital currency including a transaction number threshold.
The transaction request can be sent by the second digital currency terminal (the payer of the digital currency), and the transaction request can be directly sent to the first digital currency terminal by the second digital currency terminal, and can also be determined by the first digital currency terminal when the second digital currency terminal carries out transaction.
The transaction number threshold of the digital currency may be included in the digital currency, and the specific value thereof may be written in the fields of the digital currency in a clear text form or may be written in the fields of the digital currency in a non-clear text form (e.g., a default value). The transaction number threshold is set by the money management apparatus that derives the digital money at the time of initial derivation of the digital money. The money management device may determine the transaction count threshold value of the digital money based on terminal information of a terminal that transmits the digital money generation request and/or user information corresponding to the digital money generation request. For example, the terminal information may be terminal hardware information, such as a chip model number. For example, the newer the chip model and the larger the terminal memory capacity are, the larger the transaction number threshold corresponding thereto is. For another example, the more the available balance of the account corresponding to the user information is, the larger the threshold of the transaction times corresponding to the user information is.
Step S102: and determining whether the number of traded times is less than the threshold number of traded times, and if so, trading according to the digital currency.
The number of times of transaction may be recorded in the digital money, and the initial value of the number of times of transaction is 0, that is, when the digital money has just been exported from the money management apparatus without being transacted, the value of the field corresponding to the number of times of transaction in the digital money is 0. When the first digital currency terminal conducts transaction according to the digital currency, the field corresponding to the number of times of transaction can be assigned in an increasing mode. The transacted digital currency can be written into the digital currency by the currency management device when being exported, or fields corresponding to the transacted times can be added in the transacted digital currency by the first digital currency terminal during transaction by adopting a corresponding logic algorithm, and the fields corresponding to the transacted times are assigned in an increasing mode.
Before the transaction is carried out, the first digital currency terminal needs to verify whether the number of times of the transaction of the digital currency is smaller than a transaction number threshold value, if the number of times of the transaction is smaller than the transaction number threshold value, the transaction is carried out according to the digital currency, and when the number of times of the transaction of the digital currency is not smaller than the transaction number threshold value, the first digital currency terminal rejects the transaction corresponding to the transaction request and can return the result of rejecting the transaction to the second digital currency terminal which extracts the transaction request. Therefore, the safety of the first digital currency terminal and the second digital currency terminal in the off-line transaction process is ensured by limiting the transaction times of the digital currency.
According to the above embodiments, when the method for managing the number of times of digital money transactions provided by the embodiments of the present invention is applied to the first digital money terminal, the method mainly includes the following steps:
step S201: receiving a transaction request indicating a digital currency to be transacted and a number of transacted times for the digital currency, an attribute of the digital currency including a transaction number threshold.
Step S202: and judging whether the number of times of transaction is smaller than a transaction number threshold value, if so, executing step S203, otherwise, executing step S204.
Step S203: and carrying out transaction according to the digital currency, increasing the number of times of transaction of the digital currency and ending the current process.
Step S204: and rejecting the transaction corresponding to the transaction request.
A method of managing transaction times of digital money according to an embodiment of the present invention may be seen in that when a transaction request is received by a first digital money terminal, it may be determined whether a number of times that digital money has been transacted is less than a transaction time threshold value according to a number of times that digital money indicated in the transaction request has been transacted and a transaction time threshold value included in an attribute of the digital money, the transaction time threshold value being determined by a money management apparatus that derives the digital money when the digital money is derived. When the number of times of trading of the digital currency is smaller than the threshold value of the number of times of trading, the first digital currency terminal conducts trading according to the digital currency. Therefore, the safety of off-line transaction is guaranteed by controlling the transaction times of the digital currency in the transaction process.
Fig. 3 is a diagram illustrating the main steps of a method for managing the number of transactions of digital money according to an embodiment of the present invention.
As shown in fig. 3, the method for managing the transaction count of digital money according to the embodiment of the present invention, when applied to a money management apparatus, mainly comprises the following steps:
step S301: and receiving a digital currency generation request sent by a second digital currency terminal, wherein the currency generation request indicates the denomination of the requested digital currency and user information corresponding to the second digital currency terminal.
Since one piece of digital money can be transacted several times, the second digital money terminal may be a terminal transacting with the first digital money terminal, or may be only a terminal for exporting digital money. For example, after the digital currency is exported from the second digital currency terminal, a transaction may be first conducted with the third digital currency terminal based on the digital currency, and then the third digital currency terminal may continue to conduct transactions with the first digital currency terminal based on the digital currency. In the embodiment of the present invention, for convenience of description, a transaction between the second digital money terminal and the first digital money terminal is taken as an example.
The user of the second digital money terminal may send a digital money generation request indicating the denomination of the requested digital money and user information corresponding to the digital money terminal to the money management apparatus through the second digital money terminal according to the derivation demand of the digital money. For example, when the user has to derive digital money of 10 denominations, the denomination indicated by the digital money generation request is 10, and the user information may be registration information of the second digital money terminal, and it is understood that the user information has been recorded in the money management apparatus in advance, so that the money management apparatus can generate digital money corresponding to the user information in accordance with the digital money generation request.
Step S302: and determining a transaction number threshold of the digital currency according to the user information.
The money management device may determine the transaction count threshold value of the digital money based on terminal information of a terminal that transmits the digital money generation request and/or user information corresponding to the digital money generation request. For example, the terminal information may be terminal hardware information, such as a chip model number. For example, the newer the chip model and the larger the terminal memory capacity are, the larger the transaction number threshold corresponding thereto is. For another example, the more the available balance of the account corresponding to the user information is, the larger the threshold of the transaction times corresponding to the user information is.
Step S303: and generating digital currency corresponding to the user information and the denomination according to the transaction number threshold value, and informing the second digital currency terminal of the digital currency.
After generating the requested digital money, the money management apparatus may directly notify the digital money terminal of the generated digital money, and the contents of the digital money may include: the digital currency unique identifier (e.g., a crown number), the identification of the currency management device, and the signature of the currency management device, as well as a transaction count threshold for the digital currency. In addition, when the digital money is generated, the money management apparatus may also record the number of times the digital money has been traded in the digital money, the initial value of the number of times traded being 0, that is, the value of the field in the digital money corresponding to the number of times traded being 0 when the digital money has just been exported from the money management apparatus without being traded. When the number of times the digital currency has been traded is also recorded in the digital currency, the contents of the digital currency include: the digital currency unique identification (e.g., a crown number), the identification of the currency management device and the signature of the currency management device, the transaction count threshold for the digital currency, and the number of times the digital currency has been transacted.
According to the above embodiment, when the first digital money terminal performs an offline transaction with the second digital money terminal, as shown in fig. 4, a method for managing the number of digital money transactions according to an embodiment of the present invention may include the following steps:
step S401: the money management device receives a digital money generation request transmitted from a second digital money terminal, the money generation request indicating a denomination of the requested digital money, user information corresponding to the second digital money terminal, and terminal information of the second digital money terminal.
Step S402: the money management device determines a transaction number threshold of digital money based on the user information and the terminal information.
Step S403: the money management device generates digital money corresponding to the user information and the denomination according to the transaction number threshold.
Step S404: the money management means notifies the second digital money terminal of the digital money.
Step S405: the second digital currency terminal sends a transaction request to the first digital currency terminal, the transaction request indicating the digital currency to be transacted and the number of times the digital currency has been transacted.
Step S406: the first digital money terminal determines whether the number of traded times is less than the threshold number of traded times, and performs step S407 and step S408 when the number of traded times is less than the threshold number of traded times, otherwise performs step S409.
Step S407: and the first digital currency terminal carries out off-line transaction with the second digital currency terminal according to the digital currency.
Step S408: the first digital money terminal increments the number of times the digital money has been traded.
Step S409: the first digital currency terminal refuses to conduct a transaction corresponding to the transaction request with the second digital currency terminal.
Fig. 5 is a schematic diagram of main blocks of a first digital money terminal managing the number of transactions of digital money according to an embodiment of the present invention.
As shown in fig. 5, a first digital money terminal 500 for managing the number of transactions of digital money according to an embodiment of the present invention includes: a first receiving module 501 and a transaction module 502; wherein,
the first receiving module 501 is configured to receive a transaction request, where the transaction request indicates digital money to be transacted and the number of transacted times of the digital money, and the attribute of the digital money includes a transaction number threshold;
the transaction module 502 is configured to determine whether the number of traded times is less than a threshold number of traded times, and if so, perform a transaction according to the digital currency.
In an embodiment of the present invention, the transaction module 502 is further configured to increment the number of times the digital currency has been traded after conducting a transaction according to the digital currency.
In one embodiment of the invention, the number of traded times is recorded in the digital currency.
According to the first digital money terminal for managing the transaction number of the digital money according to the embodiment of the invention, it can be seen that when the first digital money terminal receives the transaction request, it is determined whether the number of times of transaction of the digital money is smaller than the transaction number threshold value according to the number of times of transaction of the digital money indicated in the transaction request and the transaction number threshold value included in the attribute of the digital money, and the transaction number threshold value is determined by the money management apparatus which derives the digital money when the digital money is derived. When the number of times of trading of the digital currency is smaller than the threshold value of the number of times of trading, the first digital currency terminal conducts trading according to the digital currency. Therefore, the safety of off-line transaction is guaranteed by controlling the transaction times of the digital currency in the transaction process.
FIG. 6 is a schematic diagram of the main modules of a money management apparatus for managing the number of transactions of digital money according to an embodiment of the present invention.
As shown in fig. 6, a money management apparatus 600 for managing the number of digital money transactions according to an embodiment of the present invention includes: a second receiving module 601, a determining module 602, and a money generating module 603; wherein,
the second receiving module 601 is configured to receive a digital currency generation request sent by a second digital currency terminal 604, where the digital currency generation request indicates a denomination of the requested digital currency and user information corresponding to the second digital currency terminal 604;
the determining module 602 is configured to determine a transaction number threshold of the digital currency according to the user information;
the currency generating module 603 is configured to generate digital currency corresponding to the user information and the denomination according to the transaction number threshold, and notify the second digital currency terminal 604 of the digital currency.
In one embodiment of the present invention, the digital money generation request further indicates terminal information of the second digital money terminal; the determining module 602 is configured to determine a transaction number threshold of the digital currency according to the user information and the terminal information.
In an embodiment of the present invention, the currency generating module 603 is further configured to set the number of times of traded digital currency to 0, and record the number of times of traded digital currency in the digital currency.
Fig. 7 is a schematic diagram of main blocks of a system for managing the number of digital money transactions according to an embodiment of the present invention.
As shown in fig. 7, a system 700 for managing the number of transactions of digital money according to an embodiment of the present invention includes: the first digital money terminal 500 provided in any of the above embodiments and the money management apparatus 600 provided in any of the above embodiments. The method for managing the transaction count of digital money by using the system for transaction count of digital money is shown in fig. 4, and will not be described herein.
Fig. 8 illustrates an exemplary system architecture 800 for a method of managing digital currency transactions or a system for managing digital currency transactions to which embodiments of the present invention may be applied.
As shown in fig. 8, the system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. The network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and a server 805. Network 804 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 801, 802, 803 to interact with a server 805 over a network 804 to receive or send messages or the like. The terminal devices 801, 802, 803 may have various communication client applications installed thereon, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like.
The terminal devices 801, 802, 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 805 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 801, 802, 803. The background management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 8 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 9, shown is a block diagram of a computer system 900 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU) 901 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the system 900 are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The above-described functions defined in the system of the present invention are executed when the computer program is executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present invention, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures 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 the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a first receiving module and a transaction module. Where the names of these modules do not in some cases constitute a limitation on the module itself, for example, the first receiving module may also be described as the "module receiving the transaction request".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving a transaction request indicating digital currency to be transacted and a number of transacted times for the digital currency, an attribute of the digital currency comprising a transaction number threshold; determining whether the number of traded times is less than the threshold number of traded times, and if so, conducting a transaction according to the digital currency.
According to the technical scheme of the embodiment of the invention, when the first digital currency terminal receives the transaction request, whether the number of times of the digital currency that has been transacted is smaller than the transaction number threshold can be determined according to the number of times of the digital currency that is indicated in the transaction request and the transaction number threshold that is included in the attribute of the digital currency, and the transaction number threshold is determined by the currency management device that derives the digital currency when the digital currency is derived. When the number of times of trading of the digital currency is smaller than the threshold value of the number of times of trading, the first digital currency terminal conducts trading according to the digital currency. Therefore, the safety of off-line transaction is guaranteed by controlling the transaction times of the digital currency in the transaction process.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (16)
1. A method for managing the number of transactions of digital money, applied to a first digital money terminal, includes:
receiving a transaction request indicating digital currency to be transacted and a number of transacted times for the digital currency, an attribute of the digital currency comprising a transaction number threshold;
and determining whether the number of traded times is less than the threshold number of traded times, and if so, trading according to the digital currency.
2. The method of claim 1, further comprising, after said conducting a transaction in accordance with said digital currency:
incrementing the number of traded times of the digital currency.
3. The method of claim 1,
the number of traded times is recorded in the digital currency.
4. The method of claim 1, further comprising:
and when the number of times of transaction is not less than the threshold value of the number of times of transaction, rejecting the transaction corresponding to the transaction request.
5. A method for managing the number of transactions of digital money, applied to a money management apparatus, comprising:
receiving a digital currency generation request sent by a second digital currency terminal, wherein the currency generation request indicates the denomination of the requested digital currency and user information corresponding to the second digital currency terminal;
determining a transaction number threshold of the digital currency according to the user information;
and generating digital currency corresponding to the user information and the denomination according to the transaction number threshold value, and informing the second digital currency terminal of the digital currency.
6. The method according to claim 5, wherein the digital money generation request further indicates terminal information of the second digital money terminal;
and determining the transaction time threshold of the digital currency according to the user information and the terminal information.
7. The method of claim 5, further comprising:
setting the number of times of transacting the digital money to 0, and recording the number of times of transacting in the digital money.
8. A first digital money terminal for managing the number of transactions of digital money, comprising: a first receiving module and a transaction module; wherein,
the first receiving module is used for receiving a transaction request, the transaction request indicates digital currency to be transacted and the transacted times of the digital currency, and the attribute of the digital currency comprises a transaction time threshold value;
and the transaction module is used for determining whether the number of times of transaction is less than a transaction number threshold value, and if so, performing transaction according to the digital currency.
9. The first digital money terminal according to claim 8,
the transaction module is further configured to increment the number of times the digital currency has been traded after conducting a transaction in accordance with the digital currency.
10. The first digital money terminal according to claim 8,
the number of traded times is recorded in the digital currency.
11. A money management apparatus that manages the number of times of digital money transactions, comprising: the currency generation module is used for generating currency; wherein,
the second receiving module is used for receiving a digital currency generation request sent by a second digital currency terminal, and the digital currency generation request indicates the denomination of the requested digital currency and user information corresponding to the second digital currency terminal;
the determining module is used for determining a transaction number threshold value of the digital currency according to the user information;
and the currency generating module is used for generating digital currency corresponding to the user information and the denomination according to the transaction number threshold value and informing the second digital currency terminal of the digital currency.
12. The money management apparatus according to claim 11, wherein the digital money generation request further indicates terminal information of the second digital money terminal;
the determining module is used for determining the transaction time threshold of the digital currency according to the user information and the terminal information.
13. The money management apparatus according to claim 11,
the currency generation module is further configured to set the number of times of traded digital currency to 0, and record the number of times of traded digital currency in the digital currency.
14. A system for managing transactions in digital currency, comprising: a first digital money terminal according to any one of claims 8 to 10 and a money management apparatus according to any one of claims 11 to 13.
15. An electronic device for managing a number of transactions in digital currency, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4 or 5-7.
16. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-4 or 5-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110414579.6A CN115222526A (en) | 2021-04-16 | 2021-04-16 | Method and terminal for managing transaction times of digital currency and currency management device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110414579.6A CN115222526A (en) | 2021-04-16 | 2021-04-16 | Method and terminal for managing transaction times of digital currency and currency management device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115222526A true CN115222526A (en) | 2022-10-21 |
Family
ID=83605058
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110414579.6A Pending CN115222526A (en) | 2021-04-16 | 2021-04-16 | Method and terminal for managing transaction times of digital currency and currency management device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115222526A (en) |
-
2021
- 2021-04-16 CN CN202110414579.6A patent/CN115222526A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10742582B2 (en) | Launching a client application based on a message | |
TWI737818B (en) | Business processing method and device | |
CN112184154A (en) | Business approval method and device | |
CN108073429B (en) | Payment mode configuration method, device, equipment and storage medium | |
CN110706093A (en) | Accounting processing method and device | |
EP4358000A1 (en) | Digital currency-based payment method, platform, terminal, and payment system | |
WO2018219185A1 (en) | Resource processing method and device, server and terminal device | |
CN111881329A (en) | Account balance management method and system | |
CN111857888A (en) | Transaction processing method and device | |
CN112132674A (en) | Transaction processing method and device | |
CN112686528B (en) | Method, device, server and medium for distributing customer service resources | |
CN112884181A (en) | Quota information processing method and device | |
CN112241915A (en) | Loan product generation method and device | |
CN110610365A (en) | Method and device for identifying transaction request | |
CN110223179A (en) | The data processing method of fund, device, system, medium | |
CN110865797A (en) | Method and device for processing dynamic attributes of services | |
CN107528822A (en) | A kind of business performs method and device | |
CN112948138A (en) | Method and device for processing message | |
CN110751467A (en) | Digital currency generation method and system | |
CN115222526A (en) | Method and terminal for managing transaction times of digital currency and currency management device | |
CN111526184B (en) | Business auditing method and device | |
CN110781523B (en) | Method and apparatus for processing information | |
CN112968876A (en) | Content sharing method and device, electronic equipment and storage medium | |
CN112819619A (en) | Transaction processing method and device | |
CN111127006A (en) | Transaction processing method and system based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |