Digital currency-based transaction method, device, medium and electronic equipment
By generating unique transaction identifiers for digital currency transactions and utilizing wireless communication technology, peer-to-peer transactions between the initiator and receiver are realized, solving the problem of complex transaction processes in existing technologies, simplifying the transaction process, and enriching transaction methods.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2026-03-17
AI Technical Summary
In existing technologies, digital currency transactions require the participation of a third party, which complicates the transaction process and makes peer-to-peer payments impossible.
By generating a unique transaction identifier for each transaction and using wireless communication technology to establish a connection with the transaction recipient, point-to-point confirmation and processing between the transaction initiator and the recipient can be achieved.
It simplifies the digital currency transaction process, enables direct transactions between the initiator and the recipient, and enriches the transaction methods and scenarios for digital currencies.
Smart Images

Figure CN115131010B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer application technology, and in particular to a transaction method, apparatus, medium and electronic device based on digital currency. Background Technology
[0002] In daily life, situations involving shared expenses such as meals, gatherings, and travel often occur when two or more parties are making purchases but are settling the bill together. To avoid having one or a few people pay, the cost is usually shared. When settling in cash, after calculating the share each party should bear, they can directly pay their respective amounts to the merchant.
[0003] With the development of mobile payment technology, in most cases of cost-sharing, one consumer pays the entire cost, and the other consumers then transfer their respective shares to the payer. This account-based transaction method requires the participation of a third party, such as a payer or bank, unlike cash payments where the participants and merchants can directly exchange funds. This makes the transaction process complex. Summary of the Invention
[0004] This application provides a digital currency-based transaction method, apparatus, medium, and electronic device, which can simplify the digital currency transaction process.
[0005] In a first aspect, embodiments of this application provide a transaction method based on digital currency, the method comprising:
[0006] Obtain the payment and receipt information set by the transaction initiator for the digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein, the transaction identification number is unique;
[0007] A wireless communication connection is established with at least one transaction recipient, and the transaction identification number is sent to the at least one connected transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient.
[0008] The digital currency transaction is processed based on the payment and receipt information.
[0009] Secondly, embodiments of this application provide a transaction device based on digital currency, the device comprising:
[0010] The transaction identification number generation module is used to obtain the payment and receipt information set by the transaction initiator for the digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein, the transaction identification number is unique;
[0011] A transaction identification number sending module is used to establish a wireless communication connection with at least one transaction recipient and send the transaction identification number to the connected at least one transaction recipient, so that the transaction recipient can display the received transaction identification number, and the transaction recipient can confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient.
[0012] The digital currency transaction processing module is used to process the digital currency transaction based on the payment and receipt information.
[0013] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the digital currency-based transaction method as described in embodiments of this application.
[0014] Fourthly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the digital currency-based transaction method as described in embodiments of this application.
[0015] The technical solution provided in this application embodiment obtains the payment and receipt information set by the transaction initiator for the digital currency transaction, generates a transaction identification number for the digital currency transaction, and displays the transaction identification number; wherein, the transaction identification number is unique; establishes a wireless communication connection with at least one transaction recipient, and sends the transaction identification number to the connected at least one transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient; and processes the digital currency transaction according to the payment and receipt information, thereby realizing point-to-point transactions between the transaction initiator and the transaction recipient, simplifying the digital currency transaction process, and enriching the digital currency transaction methods and scenarios. Attached Figure Description
[0016] Figure 1 This is a flowchart of a digital currency-based transaction method provided in Embodiment 1 of this application;
[0017] Figure 2 This is a flowchart of another digital currency-based transaction method provided in Embodiment 2 of this application;
[0018] Figure 3This is a schematic diagram of the structure of a digital currency-based transaction device provided in Embodiment 3 of this application;
[0019] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of this application. Detailed Implementation
[0020] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present application are shown in the drawings, not the entire structure.
[0021] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processes, many of these steps can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the steps can be rearranged. The process can be terminated when its operation is complete, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc.
[0022] Example 1
[0023] Figure 1 This is a flowchart of a digital currency-based transaction method provided in Embodiment 1 of this application. This embodiment is applicable to situations where multiple parties participate in consumption and share the cost using digital currency. This method can be executed by the digital currency-based transaction device provided in this embodiment. This device can be implemented in software and / or hardware and can be integrated into an electronic device running this system.
[0024] like Figure 1 As shown, the digital currency-based transaction method includes:
[0025] S110. Obtain the payment and receipt information set by the transaction initiator for the digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein, the transaction identification number is unique.
[0026] In this context, the transaction initiator refers to the party that initiates the transaction, which can be either a merchant or a consumer. Digital currency transactions refer to transactions conducted using digital currency, which is the electronic form of money, as opposed to paper currency. Digital currency transactions include both receiving and making payments based on digital currency.
[0027] Specifically, cryptocurrency transactions can be conducted through a wallet. Before a transaction, the initiator needs to set up payment and receipt information for the upcoming transaction using a hardware wallet. The hardware wallet then generates a transaction identifier for the cryptocurrency transaction based on this information. This transaction identifier is displayed to the initiator through the hardware wallet's display module. Each cryptocurrency transaction has a unique identifier, allowing for differentiation between different transactions.
[0028] In an optional embodiment, the payment information includes at least one of the following: total payment amount, number of payments, payment method, and payment conditions; wherein the payment method is a fixed amount or a random amount; and the payment conditions are used to determine whether to refuse payments exceeding the total amount received.
[0029] When the transaction initiator is the recipient, such as a merchant, the total amount of payment and receipt can be determined based on the actual total consumption, while the number of payment and receipt transactions is determined based on the number of consumers participating in the consumption. When the transaction initiator is the payer, such as the party sending red envelopes in a red envelope scenario, the total amount of payment and receipt is the total amount of red envelopes sent. The number of payment and receipt transactions can be determined based on the number of people claiming the red envelopes.
[0030] The total amount of payment and receipt, and the payment method apply to both cases where the cryptocurrency transaction is for receiving payment and cases where the cryptocurrency transaction is for making payment. The payment and receipt conditions apply to cases where the cryptocurrency transaction is for receiving payment. These conditions are used to determine whether to refuse payments or receipts exceeding the total amount to be received. In other words, when the transaction initiator's hardware wallet receives an amount exceeding the preset total amount to be received, whether the hardware wallet continues to receive payments.
[0031] To improve resource utilization and avoid a cryptocurrency transaction from occupying resources for an extended period, in an optional embodiment, when the transaction initiator is the recipient, the payment information also includes a payment time, which enables the transaction recipient to make payment within the payment time.
[0032] If the recipient fails to make payment within the specified time, the cryptocurrency transaction will fail and can be re-initiated after the set time.
[0033] S120. Establish a wireless communication connection with at least one transaction recipient and send the transaction identification number to the connected at least one transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient.
[0034] In this context, the transaction recipient refers to the other party involved in a cryptocurrency transaction; they are the recipients of the cryptocurrency transaction. The transaction recipient can be either a merchant or a consumer. There can only be one transaction initiator in a single cryptocurrency transaction, but there is no limit to the number of transaction recipients. A transaction initiator can connect to multiple transaction recipients simultaneously.
[0035] The transaction initiator establishes a wireless communication connection with at least one transaction recipient and sends the transaction identification number to the connected at least one transaction recipient. Specifically, the transaction initiator opens a channel through the channel management module of the hardware wallet and establishes a communication connection with the transaction recipient's hardware wallet using short-range wireless communication technologies such as NFC (Near Field Communication), Wi-Fi (Wireless Fidelity), or Bluetooth.
[0036] After receiving the transaction identification number, the transaction recipient displays the transaction identification number through the display module of the hardware wallet. The displayed transaction identification number is then compared with the transaction identification number displayed by the transaction initiator to confirm whether the participating digital currency transactions are consistent.
[0037] S130. Process the digital currency transaction based on the payment and receipt information.
[0038] Payment and receipt information includes the basic information required for conducting digital currency transactions, and digital currency transactions are conducted based on this information.
[0039] In an optional embodiment, processing the digital currency transaction based on the payment information includes: when the transaction initiator is the payee and the payment method is a random amount, obtaining the payment amount input by the transaction recipient; and processing the digital currency transaction based on the total payment amount and the payment amount.
[0040] When the transaction initiator is the payee and the payment method is random amount, the payment amount is determined independently by the transaction recipient. In this case, it is necessary to obtain the payment amount entered by the transaction recipient, and calculate the payment amount with the total amount of payments to ensure that the sum of the actual payments made by each transaction recipient matches the total amount of payments. Optionally, if the total amount of payments and the payment amount do not match, further processing is performed based on the payment conditions in the payment information.
[0041] The technical solution provided in this application embodiment obtains the payment and receipt information set by the transaction initiator for the digital currency transaction, generates a transaction identification number for the digital currency transaction, and displays the transaction identification number; wherein, the transaction identification number is unique; establishes a wireless communication connection with at least one transaction recipient, and sends the transaction identification number to the connected at least one transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient; and processes the digital currency transaction according to the payment and receipt information, thereby realizing point-to-point transactions between the transaction initiator and the transaction recipient, simplifying the digital currency transaction process, and enriching the digital currency transaction methods and scenarios.
[0042] Example 2
[0043] Figure 2 This is a flowchart of another digital currency-based transaction method provided in Embodiment 2 of this application. This embodiment further optimizes the above embodiment. Specifically, the optimization involves processing the digital currency transaction based on the payment and receipt information, including: selecting a target transaction recipient from at least one transaction recipient; ensuring that the selected target transaction recipient is unique at any given time; and processing the digital currency transaction between the transaction initiator and the target transaction recipient based on the payment and receipt information.
[0044] like Figure 2 As shown, the digital currency-based transaction method includes:
[0045] S210. Obtain the payment and receipt information set by the transaction initiator for the digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein, the transaction identification number is unique.
[0046] S220. Establish a wireless communication connection with at least one transaction recipient and send the transaction identification number to the connected at least one transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient.
[0047] S230. Select the target transaction recipient from at least one transaction recipient.
[0048] The target transaction recipient refers to the transaction recipient who is currently participating in a digital currency transaction.
[0049] S240, at any given moment, the target transaction recipient is unique.
[0050] To ensure the security of cryptocurrency transactions, only one party can participate in a transaction at any given time: the transaction initiator and the transaction receiver.
[0051] S250. Based on the payment and receipt information, perform digital currency transaction processing between the transaction initiator and the target transaction recipient.
[0052] Based on the payment and receipt information set by the transaction initiator, a digital currency transaction is conducted between the transaction initiator and the target transaction recipient. Specifically, a certain amount of digital currency is transferred from the hard wallet of one party to the hard wallet of the other party.
[0053] In an optional embodiment, selecting a target transaction recipient from at least one transaction recipient includes: adding at least one connected transaction recipient to the transaction connection pool of the transaction initiator; and selecting a target transaction recipient from at least one transaction recipient according to the connection order of the transaction recipients.
[0054] The transaction connection pool stores information about transaction recipients who have already established connections with the transaction initiator. When conducting a cryptocurrency transaction, the recipient with whom an existing connection has been established is directly selected to participate in the transaction. By introducing the transaction connection pool, the process of creating and destroying connections is eliminated, thereby improving the efficiency of cryptocurrency transactions.
[0055] The target transaction recipient is selected from at least one transaction recipient according to the connection order of the transaction recipients. Specifically, the target transaction recipients can be selected sequentially according to the order in which they are connected.
[0056] To improve resource utilization and ensure the security of funds for both parties involved in a cryptocurrency transaction, in one optional embodiment, after processing the cryptocurrency transaction, the method further includes: disconnecting the communication connection with the transaction recipient after the cryptocurrency transaction is terminated. Specifically, after the cryptocurrency transaction is terminated, the transaction initiator closes the channel and terminates the connection through the channel management module of the hardware wallet. The termination of a cryptocurrency transaction includes both normal termination upon completion and termination due to abnormal interruption of the cryptocurrency transaction.
[0057] The technical solution provided in this application obtains the payment and receipt information set by the transaction initiator for the digital currency transaction, generates a transaction identification number for the digital currency transaction, establishes a wireless communication connection with at least one transaction recipient, and sends the transaction identification number to the at least one connected transaction recipient. A target transaction recipient is selected from the at least one transaction recipient, and at any given time, the selected target transaction recipient is unique. Based on the payment and receipt information, the digital currency transaction is processed between the transaction initiator and the target transaction recipient. The technical solution provided in this application ensures that the number of parties participating in the digital currency transaction at any given time—the transaction initiator and the transaction recipient—is only one, guaranteeing the security of the digital currency transaction.
[0058] Example 3
[0059] Figure 3 This application provides a digital currency-based transaction device according to Embodiment 3. This embodiment is applicable to situations where multiple parties participate in consumption and share the cost using digital currency. The device can be implemented by software and / or hardware, configured at the transaction initiator, and integrated into electronic devices such as smart terminals.
[0060] like Figure 3 As shown, the device may include: a transaction identification number generation module 310, a transaction identification number sending module 320, and a digital currency transaction processing module 330.
[0061] The transaction identification number generation module 310 is used to obtain the payment and receipt information set by the transaction initiator for the digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein, the transaction identification number is unique;
[0062] The transaction identification number sending module 320 is used to establish a wireless communication connection with at least one transaction recipient and send the transaction identification number to the connected at least one transaction recipient, so that the transaction recipient can display the received transaction identification number, and the transaction recipient can confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient.
[0063] The digital currency transaction processing module 330 is used to process the digital currency transaction based on the payment and receipt information.
[0064] The technical solution provided in this application embodiment obtains the payment and receipt information set by the transaction initiator for the digital currency transaction, generates a transaction identification number for the digital currency transaction, and displays the transaction identification number; wherein, the transaction identification number is unique; establishes a wireless communication connection with at least one transaction recipient, and sends the transaction identification number to the connected at least one transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient; and processes the digital currency transaction according to the payment and receipt information, thereby realizing point-to-point transactions between the transaction initiator and the transaction recipient, simplifying the digital currency transaction process, and enriching the digital currency transaction methods and scenarios.
[0065] Optionally, the payment information includes at least one of the following: total payment amount, number of payments, payment method, and payment conditions; wherein the payment method is a fixed amount or a random amount; and the payment conditions are used to determine whether to refuse payments exceeding the total amount received.
[0066] Optionally, if the transaction initiator is the payee, the payment information may also include a payment time, which enables the transaction recipient to make payment within the payment time.
[0067] Optionally, the digital currency transaction processing module 330 includes: a payment amount acquisition submodule, used to acquire the payment amount input by the transaction recipient when the transaction initiator is the recipient and the payment method is random amount; and a digital currency transaction processing first submodule, used to process the digital currency transaction based on the total amount of payment and receipt and the payment amount.
[0068] Optionally, the digital currency transaction processing module 330 includes: a target transaction recipient selection submodule, used to select a target transaction recipient from at least one transaction recipient; the selected target transaction recipient is unique at any given time; and a digital currency transaction processing second submodule, used to process digital currency transactions between the transaction initiator and the target transaction recipient based on the payment and receipt information.
[0069] Optionally, the target transaction recipient selection submodule includes: a transaction recipient adding unit, used to add at least one connected transaction recipient to the transaction connection pool of the transaction initiator; and a target transaction recipient selection unit, used to select a target transaction recipient from at least one transaction recipient according to the connection order of the transaction recipients.
[0070] Optionally, the device further includes a communication connection control module, specifically used to disconnect the communication connection with the transaction recipient after processing the digital currency transaction and after the digital currency transaction is terminated.
[0071] The digital currency-based trading device provided in this embodiment of the invention can execute a digital currency-based trading method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing a digital currency-based trading method.
[0072] Example 4
[0073] Embodiment 4 of this application also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a digital currency-based transaction method, the method comprising:
[0074] Obtain the payment and receipt information set by the transaction initiator for the digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein, the transaction identification number is unique;
[0075] A wireless communication connection is established with at least one transaction recipient, and the transaction identification number is sent to the at least one connected transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient.
[0076] The digital currency transaction is processed based on the payment and receipt information.
[0077] Storage medium refers to any type of memory electronic device or storage electronic device. The term "storage medium" is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a computer system in which a program is executed, or it may reside in a different second computer system connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term "storage medium" can include two or more storage media that may reside in different unknowns (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) that can be executed by one or more processors.
[0078] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the digital currency-based transaction operations described above, but can also execute related operations in the digital currency-based transaction methods provided in any embodiment of this application.
[0079] Example 5
[0080] Embodiment 5 of this application provides an electronic device that can integrate the digital currency-based transaction device provided in this application embodiment. The electronic device can be configured within a system or can be a device that performs some or all of the functions within the system. Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of this application. Figure 4 As shown, this embodiment provides an electronic device 400, which includes: one or more processors 420; and a storage device 410 for storing one or more programs. When the one or more programs are executed by the one or more processors 420, the one or more processors 420 implement the digital currency-based transaction method provided in this embodiment, the method including:
[0081] Obtain the payment and receipt information set by the transaction initiator for the digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein, the transaction identification number is unique;
[0082] A wireless communication connection is established with at least one transaction recipient, and the transaction identification number is sent to the at least one connected transaction recipient, so that the transaction recipient displays the received transaction identification number, which is used by the transaction recipient to confirm the digital currency transaction based on the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction recipient.
[0083] The digital currency transaction is processed based on the payment and receipt information.
[0084] Of course, those skilled in the art will understand that the processor 420 also implements the technical solutions of the digital currency-based transaction methods provided in any embodiment of this application.
[0085] Figure 4 The electronic device 400 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0086] like Figure 4 As shown, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of processors 420 in the electronic device can be one or more. Figure 4Taking a processor 420 as an example; the processor 420, storage device 410, input device 430, and output device 440 in the electronic device can be connected via a bus or other means. Figure 4 For example, China and Israel are connected via bus 450.
[0087] Storage device 410, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and module units, such as the program instructions corresponding to the digital currency-based transaction method in the embodiments of this application.
[0088] Storage device 410 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, storage device 410 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, storage device 410 may further include memory remotely located relative to processor 420, which can be connected via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0089] Input device 430 can be used to receive input digital, character, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 440 may include electronic devices such as a display screen and a speaker.
[0090] The digital currency-based transaction devices, media, and electronic devices provided in the above embodiments can execute the digital currency-based transaction methods provided in any embodiment of this application, and have the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in the above embodiments can be found in the digital currency-based transaction methods provided in any embodiment of this application.
[0091] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.
Claims
1. A method of a transaction based on a digital currency, characterized by, The method is executed by a transaction initiator, and is suitable for a case where multiple parties jointly participate in consumption and share consumption by using digital currency. The method comprises the following steps: acquiring payment and receipt information set by the transaction initiator for a digital currency transaction, generating a transaction identification number for the digital currency transaction, and displaying the transaction identification number; wherein the transaction identification number is unique; establishing a wireless communication connection with at least one transaction receiver, and sending the transaction identification number to the connected at least one transaction receiver, so that the transaction receiver displays the received transaction identification number, and the transaction receiver confirms the digital currency transaction according to the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction receiver; processing the digital currency transaction according to the payment and receipt information, including: adding the connected at least one transaction receiver to a transaction connection pool of the transaction initiator; selecting a target transaction receiver from the at least one transaction receiver according to the connection order of the transaction receiver; the selected target transaction receiver is unique at one time; and processing the digital currency transaction between the transaction initiator and the target transaction receiver according to the payment and receipt information.
2. The method of claim 1, wherein, The payment and receipt information includes at least one of a total payment and receipt amount, a payment and receipt number, a payment and receipt mode, and a payment and receipt condition; wherein the payment and receipt mode is a fixed amount or a random amount; and the payment and receipt condition is used to determine whether to reject a payment and receipt that exceeds the total payment and receipt amount.
3. The method of claim 2, wherein, in a case where the transaction initiator is a receiver, the payment and receipt information further includes a receipt time, and the transaction receiver is required to make a payment within the receipt time. Processing the digital currency transaction according to the payment and receipt information includes:
4. The method of claim 2, wherein, in a case where the transaction initiator is a receiver and the payment and receipt mode is a random amount, acquiring a payment amount input by the transaction receiver; and processing the digital currency transaction according to the total payment and receipt amount and the payment amount. After processing the digital currency transaction, the method further comprises:
5. The method of claim 1, wherein, after the digital currency transaction is terminated, the communication connection with the transaction receiver is disconnected. The device is configured in a transaction initiator, and is suitable for a case where multiple parties jointly participate in consumption and share consumption by using digital currency. The device comprises:
6. A digital currency based transaction device, characterized by, a transaction identification number generation module, configured to acquire payment and receipt information set by the transaction initiator for a digital currency transaction, generate a transaction identification number for the digital currency transaction, and display the transaction identification number; wherein the transaction identification number is unique; a transaction identification number sending module, configured to establish a wireless communication connection with at least one transaction receiver, and send the transaction identification number to the connected at least one transaction receiver, so that the transaction receiver displays the received transaction identification number, and the transaction receiver confirms the digital currency transaction according to the transaction identification number displayed by the transaction initiator and the transaction identification number displayed by the transaction receiver; a digital currency transaction processing module, configured to process the digital currency transaction according to the payment and receipt information. The digital currency transaction processing module comprises: a target transaction receiver selection submodule, configured to select a target transaction receiver from at least one transaction receiver; the target transaction receiver selected at one time is unique; a digital currency transaction processing second submodule, configured to perform digital currency transaction processing between the transaction initiator and the target transaction receiver according to the payment and receipt information. The target transaction receiver selection submodule comprises: a transaction receiver adding unit, configured to add at least one connected transaction receiver to a transaction connection pool of the transaction initiator; and a target transaction receiver selection unit, configured to select a target transaction receiver from at least one transaction receiver according to a connection order of the transaction receivers.
7. A computer readable storage medium having stored thereon a computer program, characterized in that The program, when executed by a processor, implements the digital currency-based transaction method according to any one of claims 1-5.
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor, when executing the computer program, implements the digital currency-based transaction method according to any one of claims 1-5.
Citation Information
Patent Citations
Payment apparatus and method
CN104603808A