Using method of digital currency red envelope and related device

By querying parent-child relationships and restriction information in the wallet list, cross-wallet use of digital currency red envelopes is enabled, solving the problem of limited red envelope usage and improving its versatility and popularity.

CN121581870APending Publication Date: 2026-02-27AGRICULTURAL BANK OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511772990.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-28
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

Digital currency red envelopes can only be used in the wallet that received the red envelope, lacking universality and limiting their scope of use and popularity.

Method used

By querying other wallets with parent-child relationships in the wallet list, and based on the wallet type and hardware medium restrictions of the digital currency red packet, the wallets that can use the red packet are determined and the funds are deducted, thus enabling the cross-wallet use of the red packet.

Benefits of technology

This has improved the universality and accessibility of digital currency red envelopes, enabling more users to use them and expanding their application scope.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121581870A_ABST
    Figure CN121581870A_ABST
Patent Text Reader

Abstract

The invention discloses a digital currency red envelope using method and a related device, other wallets having a mother-child relationship with a wallet to be used by a consumer in the current consumption can be inquired according to the wallet, whether each wallet contains a digital currency red envelope or not is inquired, and if yes, the digital currency red envelope is used by the consumer. And if yes, determining a wallet capable of using the digital currency red envelope from the wallet list at least according to wallet type limitation information of the digital currency red envelope, and deducting money from the digital currency red envelope in the wallet capable of using the digital currency red envelope based on the consumption amount in the consumption order. According to the invention, cross-wallet use of the red envelope is realized, and the universality of the digital currency red envelope is improved. By improving the universality of the digital currency red envelope, more users can use the digital currency red envelope, and the universality of the digital currency red envelope is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of digital currency technology, and in particular to a method for using digital currency red envelopes and related devices. Background Technology

[0002] Digital currency refers to legal tender in digital form issued by national or regional monetary authorities. Digital currency red envelopes are essentially a special form of digital currency, usually distributed to specific groups in the form of red envelopes, and used based on certain rules and time limits, aiming to encourage people to experience and use digital currency for consumption.

[0003] Currently, once a digital currency red envelope is distributed by the system, the wallet that receives the red envelope belongs to that wallet, and by default, only that wallet can use the red envelope. Specifically, when a user uses the aforementioned wallet to make a purchase, the system will first check if that wallet has any red envelopes received. If no red envelopes are found, the red envelope will be rejected; only if red envelopes are found can the user make the purchase. Summary of the Invention

[0004] In view of the above problems, this application provides a method and related apparatus for using digital currency red envelopes to improve their versatility. The specific solution is as follows:

[0005] The first aspect of this application provides a method for using digital currency red envelopes, including:

[0006] Receive a request to make a purchase using digital currency, and generate a purchase order based on the request;

[0007] The ID of the wallet to be used by the consumer in this transaction is determined based on the transaction order.

[0008] Based on the ID, query other wallets that have a parent-child relationship with the wallet to be used, and obtain a wallet list, the wallet list including the ID of the wallet to be used and the IDs of each of the other wallets;

[0009] Check whether each wallet in the wallet list contains digital currency red packets. If it does, then at least determine from the wallet list which wallets can use the digital currency red packets based on the wallet type restriction information of the digital currency red packets.

[0010] The digital currency red packet in the wallet that can use the digital currency red packet is deducted based on the consumption amount in the consumption order, and at least the red packet deduction details are provided as a response to the request.

[0011] In one possible implementation, determining the wallets that can use the digital currency red envelopes from the wallet list based at least on the wallet type restriction information of the digital currency red envelopes includes:

[0012] Based on the wallet type restriction information and hardware wallet medium restriction information of the digital currency red packet, wallets that can use the digital currency red packet are determined from the wallet list.

[0013] In one possible implementation, the wallet type restriction information includes: a plurality of first identifiers with an order, wherein the order of at least some of the first identifiers corresponds one-to-one with the wallet type;

[0014] The step of determining, from the wallet list, wallets that can use the digital currency red envelope based at least on the wallet type restriction information of the digital currency red envelope includes:

[0015] Iterate through each wallet in the wallet list, and determine whether to identify the currently iterated wallet as one of the wallets that can use the digital currency red envelope based on the first identifier in the corresponding sorting position of the wallet type restriction information according to the type of the currently iterated wallet.

[0016] In one possible implementation, the wallet type restriction information includes: a plurality of first identifiers with a sort order, wherein the sorting position of at least some of the first identifiers corresponds one-to-one with the wallet type; the hard wallet medium restriction information includes: a plurality of second identifiers with a sort order, wherein the sorting position of at least some of the second identifiers corresponds one-to-one with the wallet type.

[0017] The step of determining, from the wallet list, wallets that can use the digital currency red envelope based at least on the wallet type restriction information of the digital currency red envelope includes:

[0018] Iterate through each wallet in the wallet list, and determine whether to identify the currently traversed wallet as one of the wallets that can use the digital currency red envelope based on the first identifier of the type of the currently traversed wallet in the corresponding sorting position of the wallet type restriction information and the second identifier of the medium of the currently traversed wallet in the corresponding sorting position of the hardware wallet medium restriction information.

[0019] One possible implementation also includes:

[0020] Obtain the red packet configuration information entered by the user in the red packet activity configuration interface, and generate the wallet type restriction information based on the red packet configuration information.

[0021] A second aspect of this application provides a device for using digital currency red envelopes, comprising:

[0022] An order generation unit is used to receive requests for consumption using digital currency and generate consumption orders based on the requests.

[0023] The ID determination unit is used to determine the ID of the wallet to be used by the consumer in this consumption based on the consumption order;

[0024] The list determination unit is used to query other wallets that have a parent-child relationship with the wallet based on the ID, and obtain a wallet list, wherein the wallet list includes the ID of the wallet to be used and the IDs of each of the other wallets;

[0025] The red envelope query unit is used to query whether each wallet in the wallet list contains digital currency red envelopes. If it does, the red envelope confirmation unit is triggered.

[0026] The red packet determination unit is used to determine, from the wallet list, a wallet that can use the digital currency red packet, at least based on the wallet type restriction information of the digital currency red packet;

[0027] The deduction unit is used to deduct the digital currency red packet from the wallet that can use the digital currency red packet based on the consumption amount in the consumption order, and at least provide the red packet deduction details as a response to the request.

[0028] In one possible implementation, the red envelope determining unit is specifically used to: determine from the wallet list which wallets can use the digital currency red envelopes based on the wallet type restriction information and hardware wallet medium restriction information of the digital currency red envelopes.

[0029] A third aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the method of using digital currency red envelopes described in the first aspect or any implementation thereof.

[0030] A fourth aspect of this application provides an electronic device, including at least one processor and a memory connected to the processor, wherein:

[0031] The memory is used to store computer programs;

[0032] The processor is used to execute the computer program so that the electronic device can implement the method of using digital currency red envelopes as described in the first aspect or any implementation thereof.

[0033] The fifth aspect of this application provides a computer storage medium carrying one or more computer programs, which, when executed by an electronic device, enable the electronic device to use a digital currency red envelope method as described in the first aspect or any implementation thereof.

[0034] By employing the above technical solution, the method and related apparatus for using digital currency red envelopes provided in this application can query other wallets with a parent-child relationship based on the wallet used by the consumer in this transaction, and query whether each wallet contains digital currency red envelopes. If so, the wallet that can use the digital currency red envelope is determined from the wallet list based at least on the wallet type restriction information of the digital currency red envelope, and then the digital currency red envelope in the wallet that can use the digital currency red envelope is deducted based on the consumption amount in the consumption order. This invention realizes the cross-wallet use of red envelopes and improves the universality of digital currency red envelopes. By improving the universality of digital currency red envelopes, this application can enable more users to use digital currency red envelopes and improve their popularity. Attached Figure Description

[0035] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0036] Figure 1 A schematic diagram of a system architecture is provided for this application;

[0037] Figure 2 A flowchart illustrating a method for using digital currency red envelopes provided in this application;

[0038] Figure 3 This application provides a schematic diagram of a red envelope configuration interface;

[0039] Figure 4 A flowchart illustrating the multi-terminal interaction for digital currency consumption provided in this application;

[0040] Figure 5 A schematic diagram of a device for using digital currency red envelopes provided in this application;

[0041] Figure 6 A schematic diagram of an electronic device provided in this application. Detailed Implementation

[0042] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0043] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0044] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0045] See Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 can provide the methods provided in the embodiments of this application to one or more terminals.

[0046] The terminal 100 can be equipped with an application that supports digital currency consumption. The application and webpage can provide an interface on which users can select the goods or services they want to purchase and choose to pay using digital currency or digital currency red envelopes. The terminal 100 can obtain information related to the consumption based on the user's operation and send it to the server 200. The server 200 can obtain the processing result based on the received information and return the processing result to the terminal 100.

[0047] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the above information on its own (for example, a hardware wallet can make consumption in a network-free state without the need for server intervention), without the need for server cooperation. This application embodiment is not limited to this.

[0048] The following description Figure 1 The product form of the mid-terminal 100;

[0049] The terminal 100 in this application embodiment can be a mobile phone, tablet computer, wearable device, vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc., and this application embodiment does not impose any restrictions on it.

[0050] Terminal 100 may include a radio frequency unit, memory, input unit, display unit, camera (optional), audio circuitry (optional), speaker (optional), microphone (optional), headphone jack (optional), processor, external interface, power supply, and other components. Those skilled in the art will understand that the above-mentioned components are merely examples and do not constitute a limitation on the terminal or multifunctional device; it may include more or fewer components, or a combination of certain components, or different components.

[0051] The input unit can be used to receive input numeric or character information, and to generate key signal inputs related to user settings and function control of the portable multi-functional device. Specifically, the input unit may include a touchscreen (optional) and / or other input devices. Other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.

[0052] Among them, the input device can receive input data, etc.

[0053] The display unit can be used to display information input by the user or information provided to the user, various menus of the terminal, interactive interfaces, file display, and / or playback of any multimedia file. In the embodiments of this application, the display unit can be used to display interfaces related to consumption, processing results, etc.

[0054] The memory can be used to store software code related to the usage method of digital currency red envelopes, the processor can execute the steps of the usage method of digital currency red envelopes, and can also schedule other units (such as the above-mentioned input unit and display unit) to achieve the corresponding functions.

[0055] This radio frequency unit (optional) can be used to receive and send signals during information transmission or calls.

[0056] In this embodiment of the application, the radio frequency unit can send data to the server 200 and receive the processing results sent by the server 200.

[0057] It should be understood that this radio frequency unit is optional and can be replaced with other communication interfaces, such as a network port.

[0058] Terminal 100 also includes a power source (such as a battery) for supplying power to the various components.

[0059] Terminal 100 also includes an external interface, which can be a standard Micro USB interface or a multi-pin connector, which can be used to connect terminal 100 to other devices for communication or to connect a charger to charge terminal 100.

[0060] Server 200 includes a bus, a processor, a communication interface, and memory. The processor, memory, and communication interface communicate with each other via the bus.

[0061] The memory can be used to store software code related to how to use digital currency red envelopes, and the processor can execute the steps of how to use digital currency red envelopes on the chip, and can also schedule other units to achieve corresponding functions.

[0062] The following is a detailed description of how to use the digital currency red envelope according to an embodiment of this application, with reference to the accompanying drawings.

[0063] Reference Figure 2 , Figure 2 This application provides a flowchart illustrating a method for using digital currency red envelopes, as shown in the embodiments. Figure 2 As shown in the embodiment of this application, a method for using digital currency red envelopes may include steps 201 to 207, which are described in detail below.

[0064] 201. Receive a request to use digital currency for consumption, and generate a consumption order based on the request.

[0065] First, let me explain some of the technical terms used in this application:

[0066] Personal soft wallet: A type of wallet for digital currency, mainly existing in the form of payment apps or other software, and is a tool for storing digital currency.

[0067] Hardware wallet: A digital wallet that stores digital currency through a security chip built into the hardware device and provides payment services to customers through specific hardware carriers such as IC cards, terminal terminals, SIM cards, wearable devices, and IoT devices. It exists in physical form and is similar to a bank card or wearable device.

[0068] Hardware wallet media: refers to the physical hardware type used to store digital currency. Common hardware includes IC cards, SIM cards, wearable devices such as wristbands or watches, and mobile terminals.

[0069] Quasi-account hard wallet: This is a type of hard wallet issued by an operating institution. The wallet itself has a balance, and its associated parent wallet can change. The wallet's funds come from deposits into the parent wallet and can also be withdrawn to the parent wallet. This type of wallet is characterized by anonymity and has independent limits and balances.

[0070] Account hardware wallet: This is a type of hardware wallet that only allows binding a real-name personal wallet as the parent wallet. The account hardware wallet has no balance, and the payment is made using the balance of the bound personal wallet. It is often used in scenarios where the mobile phone is out of power.

[0071] Binding Relationship: A personal wallet must be opened before a hardware wallet can exist. Subsequent hardware wallets depend on the existence of the personal wallet. That is, a hardware wallet is a child wallet of a personal wallet, and the personal wallet is called the parent wallet of the hardware wallet. This relationship is called a binding relationship. A personal wallet can be bound to multiple hardware wallets. For example, a personal wallet can be bound to a quasi-account hardware wallet and an account hardware wallet. There is a binding relationship between the personal wallet and the quasi-account hardware wallet, and between the personal wallet and the account hardware wallet, but there is no binding relationship between the quasi-account hardware wallet and the account hardware wallet.

[0072] Red Packet Campaign: A marketing campaign created to boost digital currency payment consumption, used to distribute and manage red packets to users based on the campaign.

[0073] Red Packet Available Wallet List: A list of wallets that can use a specific red packet. The list identifies which types of wallets can use the red packet, including information such as wallet number, wallet type, and wallet media type.

[0074] Users can make consumptions through their terminals, such as purchasing goods or services. When a user chooses to pay using digital currency, the terminal can then process the application. Figure 2 The device using the method described sends a request to make a purchase using digital currency. This request may carry various information related to the purchase, such as payer identifier, payee identifier, amount, currency, payment method, request sending time, and product ID. Step 201 of this application can generate a purchase order based on this request. This purchase order may include at least one of the following information: payer identifier, payee identifier, amount, currency, payment method, order generation time, and product ID.

[0075] The above payment methods can be personal soft wallets, account hard wallets, quasi-account hard wallets, or other payment methods.

[0076] 202. Determine the wallet ID that the consumer will use in this transaction based on the transaction order.

[0077] If a user chooses to use one of the following for consumption: personal soft wallet, account hard wallet, or quasi-account hard wallet, this application can find the wallet that the payer has selected in this transaction based on the payer identifier carried in the consumption order. If found, the ID of the wallet that the consumer will use in this consumption can be obtained.

[0078] 203. Query other wallets that have a parent-child relationship with the wallet based on the ID, and obtain a list of wallets. The list of wallets includes the ID of the wallet to be used and the IDs of each other wallet.

[0079] Currently, cryptocurrency red envelopes can only be used by the wallet that received the red envelope. However, wallets with a parent-child relationship belong to the same user. Therefore, if the aforementioned red envelopes could be used across wallets, it would greatly increase the convenience and accessibility of cryptocurrency red envelopes. Therefore, step 203 of this application queries other wallets with a parent-child relationship based on the ID of the wallet to be used in this transaction, and obtains a wallet list. In this way, subsequent steps of this application can make the red envelopes usable across all wallets in the wallet list.

[0080] 204. Check if each wallet in the wallet list contains digital currency red packets. If it does, proceed to step 205.

[0081] Specifically, step 204 of this application can sequentially query each wallet in the wallet list to see if it contains cryptocurrency red packets. If at least two wallets contain cryptocurrency red packets, one of the wallets can be selected to proceed to steps 205 and 206. In some cases, if cryptocurrency red packets allow more than one red packet to be used in a single transaction, one wallet is first selected to proceed to steps 205 and 206. If the amount of the red packets in that wallet is less than the transaction amount, another wallet is selected to proceed to steps 205 and 206, and so on.

[0082] If none of the wallets in the wallet list contain cryptocurrency red envelopes, then proceed to step 207.

[0083] 205. At least determine from the wallet list which wallets can use digital currency red packets based on the wallet type restriction information for digital currency red packets.

[0084] Wallet type restriction information is set by the issuer before a digital currency red packet is distributed, specifying the types of wallets that can use the red packet. For example, the wallet type restriction information may state that the red packet can only be used by the account's hardware wallet.

[0085] Of course, the issuer can also set more restrictions, such as the validity period of the red envelope, restrictions on the type of goods, and restrictions on the order amount (e.g., the order amount must not be less than a certain amount). If the red envelope has the above restrictions, this application will determine whether the current consumption meets each of the above restrictions. If it does, the subsequent steps will be executed. If it does not meet the restrictions, the wallet to be used for this consumption will be deducted based on the consumption amount in the consumption order, and at least the wallet deduction details will be provided as a response to the request.

[0086] Step 205 can determine all wallets that can use digital currency red envelopes from the wallet list based on the wallet type restriction information. For example, the wallet list includes three types: personal soft wallets, quasi-account hard wallets, and account hard wallets. If the wallet type restriction information states that personal soft wallets, quasi-account hard wallets, and account hard wallets can all use red envelopes, then step 205 can determine all three types of wallets as wallets that can use digital currency red envelopes.

[0087] Optionally, the wallet type restriction information includes: multiple first identifiers with a sort order, wherein at least some of the first identifiers are sorted in a one-to-one correspondence with the wallet type;

[0088] Step 205 may specifically include:

[0089] Iterate through each wallet in the wallet list, and determine whether to identify the currently iterated wallet as one of the wallets that can use digital currency red envelopes based on the first identifier of the corresponding sorting position in the wallet type restriction information.

[0090] This application can restrict the way red envelopes are used by using multiple ordered first identifiers. The first identifier can have multiple values. In an optional implementation, the first identifier can be 0, 1, or 2. Each value can represent a different way the red envelope is used. For example, 0 indicates that the red envelope cannot be used by the wallet it belongs to (simply put: not usable if claimed by the user), 1 indicates that the red envelope can be used by the wallet it belongs to and wallets linked to it (simply put: shared if claimed by the user), and 2 indicates that the red envelope can only be used by the wallet it belongs to (simply put: for personal use only). Optionally, the first three digits of the first identifier correspond one-to-one with a personal soft wallet, a quasi-account hard wallet, and an account hard wallet, respectively. For example, the first identifier in the first position corresponds to a personal soft wallet, the second identifier in the first position corresponds to a quasi-account hard wallet, and the third identifier in the first position corresponds to an account hard wallet. In this way, this application can determine the usage of the red envelope in a personal soft wallet based on the first identifier in the wallet type restriction information, determine the usage in a quasi-account hard wallet based on the second identifier, and determine the usage in an account hard wallet based on the third identifier. For example, if the wallet type restriction information is 221111111111111111111, then based on the first three digits 221, it can be determined that red envelopes of this type in a personal soft wallet can only be used by that personal soft wallet, red envelopes in a quasi-account hard wallet can only be used by that quasi-account hard wallet, and red envelopes in an account hard wallet can be used by the account hard wallet and personal soft wallets that are bound to the account hard wallet.

[0091] It should be noted that the number of digits in the first identifier included in the wallet type restriction information can exceed the number of wallet types, in order to leave room for subsequent wallet types. For example, 221111111111111111111 is 20 digits.

[0092] 206. Deduct the amount from the digital currency red packet in the wallet that can use digital currency red packets based on the consumption amount in the consumption order, and at least provide the red packet deduction details as a response to the request.

[0093] If the amount in the red envelope is less than the consumption amount, then the wallet used for this consumption will be deducted again, so that the sum of the deduction from the wallet and the deduction from the red envelope equals the consumption amount. After deducting the money from the wallet, the wallet deduction details will also be provided as a response to the request.

[0094] 207. Deduct the amount from the wallet to be used in this consumption based on the consumption amount in the consumption order, and at least provide the wallet deduction details as a response to the request.

[0095] The method for using digital currency red envelopes provided in this invention allows for querying other wallets with a parent-child relationship to the wallet used by the consumer in this transaction, and checking whether each wallet contains digital currency red envelopes. If so, the method determines, at least based on the wallet type restriction information of the digital currency red envelopes, which wallets can use the digital currency red envelopes from the wallet list. Then, based on the transaction amount in the order, the digital currency red envelopes in the wallets that can use the digital currency red envelopes are deducted. This invention enables cross-wallet use of red envelopes, improving the universality of digital currency red envelopes. By improving the universality of digital currency red envelopes, this application allows more users to use digital currency red envelopes, increasing their popularity.

[0096] exist Figure 2 Based on the method shown, in another embodiment of this application, determining the wallets that can use digital currency red envelopes from the wallet list based at least on the wallet type restriction information for digital currency red envelopes may include:

[0097] Based on the wallet type restrictions and hardware medium restrictions for digital currency red packets, wallets that can use digital currency red packets are identified from the wallet list.

[0098] The hardware wallet media restriction information is a pre-set restriction information on the hardware wallet media that can use the red envelope. For example, a SIM card cannot use the red envelope, but an IC card can.

[0099] The difference between wallet type restriction information and hardware wallet medium restriction information lies in how the red envelope can be used by the wallet, such as: self-claimed and used, unusable after self-claiming, or shared after self-claiming. Hardware wallet medium restriction information is used to restrict the hardware wallet medium that can use the red envelope.

[0100] By using two different types of the aforementioned restrictions, this application can achieve diverse and personalized settings for the rules governing the use of red envelopes.

[0101] Optionally, in another method of using digital currency red envelopes provided in this embodiment of the invention, the wallet type restriction information includes: a plurality of first identifiers with sorting, wherein the sorting position of at least some of the first identifiers corresponds one-to-one with the wallet type; the hard wallet medium restriction information includes: a plurality of second identifiers with sorting, wherein the sorting position of at least some of the second identifiers corresponds one-to-one with the wallet type.

[0102] The wallets that can use digital currency red packets, as determined from the wallet list based on the wallet type restriction information for digital currency red packets, may include:

[0103] Iterate through each wallet in the wallet list, and determine whether to identify the currently iterated wallet as one of the wallets that can use digital currency red envelopes based on the first identifier of the wallet type in the wallet type restriction information and the second identifier of the medium of the currently iterated wallet in the hardware wallet medium restriction information.

[0104] Similar to wallet type restriction information, hardware wallet media restriction information can also restrict the use of red envelopes by various types of wallets through multiple ordered second identifiers. The second identifier can have multiple values. In one optional embodiment, the second identifier can be 0 or 1. Each value can represent a different media restriction. For example, 0 indicates that the wallet of that media cannot use the included red envelopes, and 1 indicates that the wallet of that media can use the included red envelopes. Optionally, the order of each second identifier can correspond to different hardware wallet media. For example, the second identifier with the first position corresponds to a SIM card, the second identifier with the second position corresponds to an IC card, the third identifier with a mobile terminal, and the fourth identifier with a wearable device. Thus, this application can determine whether each hardware wallet media can use the red envelope based on the ordered second identifiers in the hardware wallet media restriction information. For example, if the hardware wallet media restriction information is 00111111111111111111, then based on the first four digits 0011, it can be determined that SIM cards and IC cards cannot use the red envelope, while mobile terminals, wearable devices, and other hardware wallet media can use the red envelope.

[0105] It should be noted that the number of digits in the second identifier included in the hardware wallet media restriction information can exceed the number of hardware wallet media types, in order to leave room for subsequent hardware wallet media types. For example, 20 digits.

[0106] Optionally, another method for using digital currency red envelopes provided in this embodiment of the invention may further include:

[0107] Obtain the red packet configuration information entered by the user in the red packet activity configuration interface, and generate wallet type restriction information based on the red packet configuration information.

[0108] like Figure 3 As shown, Figure 3 This is a schematic diagram of a red envelope configuration interface. Users can enter the activity code, activity name, start time, end time, wallet type restrictions, and hardware wallet media restrictions on this interface. This application can generate wallet type restriction information based on the red envelope configuration information entered by the user on this interface. Of course, it can also generate hardware wallet media restriction information.

[0109] Figure 4 This illustrates the process of completing a digital currency transaction through multi-device interaction. For example... Figure 4 As shown, the consumer transaction terminal initiates a consumption request. The order processing module generates an order based on this request, then determines the ID of the wallet to be used by the consumer in this consumption based on the consumption order, and sends this ID to the processing module. The processing module stores the relationships between wallets. Based on the ID, the processing module queries other wallets with parent-child relationships with the wallet and obtains a wallet list. The processing module checks whether each wallet in the wallet list contains digital currency red packets. If so, it determines the wallets that can use digital currency red packets based on the wallet type restrictions for digital currency red packets. The processing module sends the wallets that can use digital currency red packets to the order processing module. The order processing module generates a consumption deduction request and sends it to the service processing module. The service processing module verifies the validity of the red packet. If it passes, it checks whether the red packet amount is not less than the transaction amount. If it is not less, it deducts the digital currency red packet from the wallets that can use digital currency red packets and records the red packet deduction details. At least the red packet deduction details are sent as a response to the request, and the consumption result response is sent to the consumer transaction terminal through the order processing module. If the amount in the red envelope is less than the transaction amount, the red envelope amount will be deducted first and the details will be recorded. Then, the wallet amount will be deducted and the details will be recorded. These two details will be used as the consumption result response to the request. The consumption result response will be sent to the consumption transaction terminal through the order processing module.

[0110] The above describes a method for using digital currency red envelopes provided by embodiments of this application. The following describes the apparatus for performing the above method for using digital currency red envelopes.

[0111] Please see Figure 5 , Figure 5 This is a schematic diagram of a device for using digital currency red envelopes, provided as an embodiment of this application. Figure 5 As shown, the device may include:

[0112] The order generation unit 501 is used to obtain a request to make a purchase using digital currency and generate a purchase order based on the request.

[0113] ID determination unit 502 is used to determine the ID of the wallet to be used by the consumer in this consumption based on the consumption order;

[0114] The list determination unit 503 is used to query other wallets that have a parent-child relationship with the wallet based on the ID, and obtain a wallet list, wherein the wallet list includes the ID of the wallet to be used and the IDs of each of the other wallets;

[0115] The red envelope query unit 504 is used to query whether each wallet in the wallet list contains digital currency red envelopes. If it does, the red envelope confirmation unit is triggered.

[0116] Red packet determination unit 505 is used to determine, from the wallet list, a wallet that can use the digital currency red packet, at least based on the wallet type restriction information of the digital currency red packet;

[0117] The deduction unit 506 is used to deduct the digital currency red packet from the wallet that can use the digital currency red packet based on the consumption amount in the consumption order, and at least provide the red packet deduction details as a response to the request.

[0118] Optionally, the red envelope determining unit is specifically used to: determine from the wallet list which wallets can use the digital currency red envelopes based on the wallet type restriction information and hardware wallet medium restriction information of the digital currency red envelopes.

[0119] This application also provides an electronic device in its embodiments. (See reference...) Figure 6 The diagram illustrates a structural schematic of an electronic device suitable for implementing the digital currency red envelope usage method in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0120] like Figure 6As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. When the electronic device is powered on, the RAM 603 also stores various programs and data required for the operation of the electronic device. The processing unit 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0121] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, memory cards, hard drives, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0122] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the digital currency red envelope usage methods provided in this application.

[0123] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the digital currency red envelope usage methods provided in this application.

[0124] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0125] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0126] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0127] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A method for using digital currency red envelopes, characterized in that, include: Receive a request to make a purchase using digital currency, and generate a purchase order based on the request; The ID of the wallet to be used by the consumer in this transaction is determined based on the transaction order. Based on the ID, query other wallets that have a parent-child relationship with the wallet to be used, and obtain a wallet list, the wallet list including the ID of the wallet to be used and the IDs of each of the other wallets; Check whether each wallet in the wallet list contains digital currency red packets. If it does, then at least determine from the wallet list which wallets can use the digital currency red packets based on the wallet type restriction information of the digital currency red packets. The digital currency red packet in the wallet that can use the digital currency red packet is deducted based on the consumption amount in the consumption order, and at least the red packet deduction details are provided as a response to the request.

2. The method of using digital currency red envelopes according to claim 1, characterized in that, The step of determining, from the wallet list, wallets that can use the digital currency red envelope based at least on the wallet type restriction information of the digital currency red envelope includes: Based on the wallet type restriction information and hardware wallet medium restriction information of the digital currency red packet, wallets that can use the digital currency red packet are determined from the wallet list.

3. The method of using digital currency red envelopes according to claim 1, characterized in that, The wallet type restriction information includes: multiple first identifiers with sorting, and at least some of the first identifiers have a sorting position that corresponds one-to-one with the wallet type; The step of determining, from the wallet list, wallets that can use the digital currency red envelope based at least on the wallet type restriction information of the digital currency red envelope includes: Iterate through each wallet in the wallet list, and determine whether to identify the currently iterated wallet as one of the wallets that can use the digital currency red envelope based on the first identifier in the corresponding sorting position of the wallet type restriction information according to the type of the currently iterated wallet.

4. The method of using digital currency red envelopes according to claim 2, characterized in that, The wallet type restriction information includes: a plurality of first identifiers with sorting, wherein the sorting position of at least some of the first identifiers corresponds one-to-one with the wallet type; the hard wallet medium restriction information includes: a plurality of second identifiers with sorting, wherein the sorting position of at least some of the second identifiers corresponds one-to-one with the wallet type. The step of determining, from the wallet list, wallets that can use the digital currency red envelope based at least on the wallet type restriction information of the digital currency red envelope includes: Iterate through each wallet in the wallet list, and determine whether to identify the currently traversed wallet as one of the wallets that can use the digital currency red envelope based on the first identifier of the type of the currently traversed wallet in the corresponding sorting position of the wallet type restriction information and the second identifier of the medium of the currently traversed wallet in the corresponding sorting position of the hardware wallet medium restriction information.

5. The method of using digital currency red envelopes according to claim 1, characterized in that, Also includes: Obtain the red packet configuration information entered by the user in the red packet activity configuration interface, and generate the wallet type restriction information based on the red packet configuration information.

6. A device for using digital currency red envelopes, characterized in that, include: An order generation unit is used to receive requests for consumption using digital currency and generate consumption orders based on the requests. The ID determination unit is used to determine the ID of the wallet to be used by the consumer in this consumption based on the consumption order; The list determination unit is used to query other wallets that have a parent-child relationship with the wallet based on the ID, and obtain a wallet list, wherein the wallet list includes the ID of the wallet to be used and the IDs of each of the other wallets; The red envelope query unit is used to query whether each wallet in the wallet list contains digital currency red envelopes. If it does, the red envelope confirmation unit is triggered. The red packet determination unit is used to determine, from the wallet list, a wallet that can use the digital currency red packet, at least based on the wallet type restriction information of the digital currency red packet; The deduction unit is used to deduct the digital currency red packet from the wallet that can use the digital currency red packet based on the consumption amount in the consumption order, and at least provide the red packet deduction details as a response to the request.

7. The device for using digital currency red envelopes according to claim 6, characterized in that, The red envelope determination unit is specifically used to: determine from the wallet list which wallets can use the digital currency red envelopes based on the wallet type restriction information and hardware wallet medium restriction information of the digital currency red envelopes.

8. A computer program product, characterized in that, It includes computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the method of using digital currency red envelopes as described in any one of claims 1 to 5.

9. An electronic device, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program to enable the electronic device to implement the method of using digital currency red envelopes as described in any one of claims 1 to 5.

10. A computer storage medium, characterized in that, The storage medium carries one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the method of using digital currency red envelopes as described in any one of claims 1 to 5.