A method for interaction between a digital currency wallet and a digital currency server

By establishing a communication channel between the digital currency wallet and the digital currency server and using the target key to encrypt the transaction record, the problems of inconvenient operation and low security in the prior art are solved, and simple resource interaction and high security are achieved. Digital currency trading process.

CN112712354BActive Publication Date: 2024-12-17SHENZHEN EXCELSECU DATA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010540937.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-15
Publication Date
2024-12-17
Estimated Expiration
2040-06-15

AI Technical Summary

Technical Problem

In the prior art, digital currency wallets require terminal application software to control transaction processes and servers to be inconvenient, development and maintenance costs are high, and terminal environment security is low.

Method used

By connecting the network hotspot shared by the terminal, establishing a communication channel with the digital currency server, sending transaction records and receiving transaction results, encrypting the transaction records using the target key, generating verification code information, and setting the target digital currency to the available status if the transaction is successful, set the target digital currency to be used. , otherwise the transaction failure prompt message will be output.

Benefits of technology

It simplifies the interaction between digital currency wallets and digital currency servers, reduces development and maintenance costs, and improves the security of the terminal environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112712354B_ABST
    Figure CN112712354B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of computer technology, and provides an interactive method between a digital currency wallet and a digital currency server, including: connecting to a network hotspot shared by a terminal; establishing a communication channel with the digital currency server through the network hotspot; sending transaction records to the digital currency server through the communication channel; receiving the transaction result returned by the digital currency server according to the transaction record; if the transaction result is a successful transaction, setting the target digital currency corresponding to the transaction record to an available state, otherwise, outputting a transaction failure prompt message. The above method does not require the device to be controlled by the terminal application software, and the digital currency wallet and the digital currency server can interact with resources, which is easy to operate, simple to develop and maintain, and more secure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular to an interaction method between a digital currency wallet and a digital currency server. Background Art

[0002] Due to the high cost and difficulty in supervision of paper money, the digitalization of currency has become a development trend. For example, the Printing Science and Technology Research Institute of the People's Bank of China has disclosed a series of patent technologies related to the digitalization of currency, including the CN107230070A digital currency system. However, in the prior art, when conducting digital currency transactions, digital currency wallets require terminal application software to control the transaction process with the server, which is inconvenient to operate, requires costs to develop and maintain application software, and has low terminal environment security. Summary of the invention

[0003] The embodiment of the present application provides an interaction method between a digital currency wallet and a digital currency server, which can solve the problems in the prior art that the digital currency wallet requires terminal application software to control the transaction process with the server, which is inconvenient to operate, requires costs for developing and maintaining application software, and has low terminal environment security.

[0004] In a first aspect, an embodiment of the present application provides a method for interacting between a digital currency wallet and a digital currency server, including:

[0005] Connect to the network hotspot shared by the terminal;

[0006] Establishing a communication channel with the digital currency server through the network hotspot;

[0007] Sending the transaction record to the digital currency server via the communication channel;

[0008] Receiving a transaction result returned by the digital currency server according to the transaction record;

[0009] If the transaction result is a successful transaction, the target digital currency corresponding to the transaction record is set to an available state; otherwise, a transaction failure prompt message is output.

[0010] Furthermore, sending the transaction record to the digital currency server through the communication channel includes:

[0011] The transaction record is encrypted based on the target key to obtain an encrypted transaction record, and verification code information corresponding to the encrypted transaction record is generated; the target key is a session key generated through negotiation with the digital currency server based on a preset server public key;

[0012] The encrypted transaction record and its corresponding verification code information are sent to the digital currency server through the communication channel.

[0013] Furthermore, if the transaction result is a successful transaction, the target digital currency corresponding to the transaction record is set to an available state, otherwise, a transaction failure prompt message is output, including:

[0014] When receiving the transaction result returned by the digital currency server indicating that the verification code information has been verified and the encrypted transaction record has been verified, setting the target digital currency corresponding to the transaction record to an available state, otherwise, outputting a transaction failure prompt message.

[0015] Furthermore, before sending the transaction record to the digital currency server through the communication channel, the method further includes:

[0016] Setting the transaction mode to a payment mode, and matching a digital currency wallet for payment based on the transaction mode;

[0017] When a target digital currency wallet is detected, a transaction request is sent to the target digital currency wallet; the transaction mode of the target digital currency wallet is a payment mode that matches the payment mode;

[0018] Receive a transaction record sent by the target digital currency wallet.

[0019] Furthermore, if the transaction result is a successful transaction, then the target digital currency corresponding to the transaction record is set to an available state, otherwise, after outputting a transaction failure prompt message, it also includes:

[0020] Obtaining digital currency category information and corresponding numbers included in the original digital currency, digital currency category information included in the target digital currency, and corresponding numbers of each digital currency category information;

[0021] Based on the digital currency category information included in the original digital currency and the number corresponding to each of the digital currency category information, the digital currency category information included in the target digital currency and the number corresponding to each of the digital currency category information, determine the digital currency category information included in the currently available digital currency and the number corresponding to each of the digital currency category information;

[0022] Push and display the number of currently available digital currencies, the digital currency category information included in the currently available digital currencies, and the number corresponding to each of the digital currency category information.

[0023] In a second aspect, an embodiment of the present application provides a digital currency wallet, including:

[0024] A connection unit, used to connect to a network hotspot shared by a terminal;

[0025] A first processing unit, configured to establish a communication channel with the digital currency server through the network hotspot;

[0026] A sending unit, used for sending the transaction record to the digital currency server through the communication channel;

[0027] A receiving unit, configured to receive a transaction result returned by the digital currency server according to the transaction record;

[0028] The second processing unit is used to set the target digital currency corresponding to the transaction record to an available state if the transaction result is a successful transaction, otherwise, output a transaction failure prompt message.

[0029] Furthermore, the sending unit is specifically used for:

[0030] The transaction record is encrypted based on the target key to obtain an encrypted transaction record, and verification code information corresponding to the encrypted transaction record is generated; the target key is a session key generated through negotiation with the digital currency server based on a preset server public key;

[0031] The encrypted transaction record and its corresponding verification code information are sent to the digital currency server through the communication channel.

[0032] Furthermore, the second processing unit is specifically configured to:

[0033] When receiving the transaction result returned by the digital currency server indicating that the verification code information has been verified and the encrypted transaction record has been verified, setting the target digital currency corresponding to the transaction record to an available state, otherwise, outputting a transaction failure prompt message.

[0034] Furthermore, the digital currency wallet further includes:

[0035] A third processing unit, configured to set the transaction mode to a payment mode, and match a digital currency wallet for payment based on the transaction mode;

[0036] The fourth processing unit is used to send a transaction request to the target digital currency wallet when a target digital currency wallet is detected; the transaction mode of the target digital currency wallet is a payment mode that matches the payment mode;

[0037] The fifth processing unit is used to receive the transaction record sent by the target digital currency wallet.

[0038] Furthermore, the digital currency wallet further includes:

[0039] An acquisition unit, used to acquire the digital currency category information and the corresponding number included in the original digital currency, the digital currency category information included in the target digital currency and the corresponding number of each digital currency category information;

[0040] a determining unit, configured to determine the digital currency category information included in the currently available digital currency and the number corresponding to each of the digital currency category information based on the digital currency category information included in the original digital currency and the number corresponding to each of the digital currency category information, the digital currency category information included in the target digital currency and the number corresponding to each of the digital currency category information;

[0041] The push unit is used to push and display the number of currently available digital currencies, the digital currency category information included in the currently available digital currencies, and the number corresponding to each of the digital currency category information.

[0042] In a third aspect, an embodiment of the present application provides a digital currency wallet, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for interaction between the digital currency wallet and the digital currency server as described in the first aspect above is implemented.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for interaction between a digital currency wallet and a digital currency server as described in the first aspect above is implemented.

[0044] In the embodiment of the present application, the network hotspot shared by the terminal is connected; a communication channel is established with the digital currency server through the network hotspot; the transaction record is sent to the digital currency server through the communication channel; the transaction result returned by the digital currency server according to the transaction record is received; if the transaction result is a successful transaction, the target digital currency corresponding to the transaction record is set to an available state, otherwise, a transaction failure prompt message is output. The above method does not require the device to be controlled by the terminal application software, and the digital currency wallet and the digital currency server can interact with resources, which is easy to operate, simple to develop and maintain, and more secure. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0046] Figure 1 It is a schematic flow chart of a method for interaction between a digital currency wallet and a digital currency server provided in the first embodiment of the present application;

[0047] Figure 2 It is a schematic flow chart of the refinement of S103 in the method for interaction between a digital currency wallet and a digital currency server provided in the first embodiment of the present application;

[0048] Figure 3 is a schematic flow chart of another method for interacting between a digital currency wallet and a digital currency server provided in the second embodiment of the present application;

[0049] Figure 4 is a schematic flow chart of another method for interacting between a digital currency wallet and a digital currency server provided in the third embodiment of the present application;

[0050] Figure 5 is a schematic diagram of a digital currency wallet provided in the fourth embodiment of the present application;

[0051] Figure 6 This is a schematic diagram of a digital currency wallet provided in the fifth embodiment of the present application. DETAILED DESCRIPTION

[0052] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0053] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0054] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0055] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0056] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0057] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0058] See also Figure 1 , Figure 1 1 is a schematic flow chart of a method for interacting between a digital currency wallet and a digital currency server provided in the first embodiment of the present application. The method for interacting between a digital currency wallet and a digital currency server provided in the embodiment of the present application is applied to a digital currency wallet. Figure 1 The interactive method between the digital currency wallet and the digital currency server may include:

[0059] S101: Connect to the network hotspot shared by the terminal.

[0060] The terminal has a wireless site function. The terminal can be used as a wireless router to broadcast the wireless network to the outside, which can realize network resource sharing and network hotspot sharing. The terminal shares the network hotspot, and the digital currency wallet connects to the network hotspot shared by the terminal.

[0061] S102: Establishing a communication channel with the digital currency server through the network hotspot.

[0062] The digital currency wallet establishes a communication channel with the digital currency server through a network hotspot. The communication channel is the path for data transmission.

[0063] S103: Sending the transaction record to the digital currency server through the communication channel.

[0064] The digital currency wallet obtains a transaction record, which is the transaction information generated when the digital currency wallet conducts a transaction. The transaction record may include the amount of the digital currency wallet transaction, the transaction object of the digital currency wallet transaction, the transaction time or transaction status, etc. The digital currency wallet sends the transaction record to the digital currency server through a communication channel to notify the digital currency server to verify the transaction record. When the digital currency server receives the transaction record, the digital currency server verifies the transaction record and returns the verification result to the digital currency wallet.

[0065] Further, S103 may include S1031-S1032, such as Figure 2 As shown, S1031 to S1032 are as follows:

[0066] S1031: Encrypt the transaction record based on the target key to obtain an encrypted transaction record, and generate verification code information corresponding to the encrypted transaction record; the target key is a session key generated by negotiation with the digital currency server based on a preset server public key.

[0067] The digital currency wallet uses the target key to encrypt the transaction record to obtain the encrypted transaction record and its verification code, where the key is a parameter that is input in the algorithm for converting plain text to cipher text or cipher text to plain text. After the digital currency wallet obtains the transaction record, it encrypts the transaction record based on the target key to obtain the encrypted transaction record, and generates the verification code information corresponding to the encrypted transaction record. In this way, the digital currency wallet and the digital currency server need to use the same or symmetric key to encrypt or decrypt the transaction record, which further ensures the security of the transmission of the transaction record and ensures that the transaction record is not tampered with, making the transaction record transmission process more secure.

[0068] In this embodiment, the digital currency wallet negotiates with the digital currency server based on the server public key to generate a session key. The session key is also called a data encryption key or a working key. It is an encryption and decryption key randomly generated to ensure a secure communication session between a user and other computers or between two computers. It can be negotiated between the communicating users. It is generally generated dynamically and only when session data encryption is required. The specific generation method can be based on the public key encryption algorithm. First, the digital currency wallet provides its own certificate to the server, and the digital currency server performs identity authentication. Then, the digital currency wallet encrypts a random number through the public key of the digital currency server and transmits it to the server. Finally, the digital currency server decrypts it through its own private key to obtain the session key. The digital currency wallet encrypts the transaction record based on the target key to obtain an encrypted transaction record, and generates verification code information corresponding to the encrypted transaction record.

[0069] S1032: Send the encrypted transaction record and its corresponding verification code information to the digital currency server through the communication channel.

[0070] The digital currency wallet sends the encrypted transaction record and its corresponding verification code information to the digital currency server through the communication channel to notify the digital currency server to verify the encrypted transaction record. The digital currency server uses a key that is the same as or symmetric to the preset key to decrypt the encrypted transaction record, and verifies whether the verification code meets the preset conditions, and verifies the decrypted transaction record.

[0071] S104: Receive the transaction result returned by the digital currency server according to the transaction record.

[0072] The digital currency wallet receives the transaction result returned by the digital currency server based on the transaction record. The transaction result indicates whether the transaction is successful. The digital currency server verifies the decrypted transaction record and obtains the transaction result. The digital currency server sends the transaction result to the digital currency wallet.

[0073] S105: If the transaction result is a successful transaction, the target digital currency corresponding to the transaction record is set to an available state; otherwise, a transaction failure prompt message is output.

[0074] The digital currency wallet determines the content of the transaction result. If the transaction result is successful, it means that the digital currency server has confirmed the security of this transaction, and then sets the target digital currency corresponding to the transaction record to be available. Otherwise, if the transaction result is a transaction failure, it means that this transaction is illegal or there is a problem with the digital currency server during verification, and outputs a transaction failure prompt message. The transaction record can also be resent to the digital currency server to notify the digital currency server to re-verify.

[0075] Further, based on S1031 to S1032, S105 may include: when the verification code information of the transaction result identification returned by the digital currency server is received and the encrypted transaction record is verified, the target digital currency corresponding to the transaction record is set to an available state, otherwise, a transaction failure prompt message is output. When the digital currency wallet receives the verification code information of the transaction result identification returned by the digital currency server and the encrypted transaction record is verified, it means that the digital currency server has confirmed the security of this transaction, and the target digital currency corresponding to the transaction record is set to an available state. Otherwise, if the verification code information of the transaction result identification fails to be verified, and / or the transaction result is a transaction failure, it means that this transaction is illegal or the digital currency server has a problem during verification, and a transaction failure prompt message is output.

[0076] In the embodiment of the present application, the network hotspot shared by the terminal is connected; a communication channel is established with the digital currency server through the network hotspot; the transaction record is sent to the digital currency server through the communication channel; the transaction result returned by the digital currency server according to the transaction record is received; if the transaction result is a successful transaction, the target digital currency corresponding to the transaction record is set to an available state, otherwise, a transaction failure prompt message is output. The above method does not require the device to be controlled by the terminal application software, and the digital currency wallet and the digital currency server can interact with resources, which is easy to operate, simple to develop and maintain, and more secure.

[0077] See also Figure 3 , Figure 3 It is a schematic flow chart of another method for interaction between a digital currency wallet and a digital currency server provided in the second embodiment of the present application. The method for interaction between a digital currency wallet and a digital currency server provided in the embodiment of the present application is applied to a digital currency wallet. The difference between this embodiment and the first embodiment lies in S203 to S205, wherein S201 to S202 in this embodiment are the same as S101 to S102 in the first embodiment, and S206 to S208 are the same as S103 to S105 in the first embodiment, and S203 to S205 can be executed before S206. Figure 3 As shown, S203 to S205 are specifically as follows:

[0078] S203: Setting the transaction mode to a payment mode, and matching a digital currency wallet for payment based on the transaction mode.

[0079] Digital currency wallets can be used to receive payments or to make payments. The purpose of the digital currency wallet can be determined by setting the transaction mode of the digital currency wallet.

[0080] The data currency wallet sets the transaction mode to the payment mode and matches the digital currency wallet for payment based on the transaction mode. The digital currency wallet matches the data currency wallet for payment corresponding to the digital currency wallet according to the payment mode.

[0081] S204: When a target digital currency wallet is detected, a transaction request is sent to the target digital currency wallet; the transaction mode of the target digital currency wallet is a payment mode that matches the payment mode.

[0082] The digital currency wallet matches the target digital currency wallet, the target digital currency wallet is used for payment, and the transaction mode of the target digital currency wallet is a payment mode that matches the payment mode. When the digital currency wallet detects the target digital currency wallet, it sends a transaction request to the target digital currency wallet. The transaction request includes the device identification of the digital currency wallet and the amount of currency to be traded.

[0083] The target digital currency wallet receives the transaction request, generates a transaction record based on the transaction request, and sends the transaction record to the digital currency wallet.

[0084] S205: Receive the transaction record sent by the target digital currency wallet.

[0085] The digital currency wallet receives the transaction record sent by the target digital currency wallet.

[0086] See also Figure 4 , Figure 4 It is a schematic flow chart of another method for interaction between a digital currency wallet and a digital currency server provided in the third embodiment of the present application. The method for interaction between a digital currency wallet and a digital currency server provided in the embodiment of the present application is applied to a digital currency wallet. The difference between this embodiment and the first embodiment lies in S306 to S308, where S301 to S305 in this embodiment are the same as S101 to S105 in the first embodiment, and S306 to S308 can be executed after S305. Figure 4 As shown, S306 to S308 are specifically as follows:

[0087] S306: Obtain the digital currency category information and the corresponding number included in the original digital currency, the digital currency category information included in the target digital currency and the corresponding number of each digital currency category information.

[0088] The digital currency wallet obtains the digital currency category information and the corresponding number of the original digital currency, the digital currency category information and the corresponding number of each digital currency category information included in the target digital currency. Among them, the original digital currency is the digital currency before the transaction, the digital currency category information and the corresponding number included in the original digital currency, the original digital currency can be divided into many categories, and different categories can correspond to different numbers. For example, the digital currency category information is the denomination of the digital currency, and the current number of available digital currencies is 583. The denomination 100 balance is 400, the denomination 50 balance is 100, the denomination 20 balance is 40, the denomination 10 balance is 20, the denomination 5 balance is 20, and the denomination 1 balance is 3.

[0089] S307: Based on the digital currency category information included in the original digital currency and the number corresponding to each of the digital currency category information, the digital currency category information included in the target digital currency and the number corresponding to each of the digital currency category information, determine the digital currency category information included in the currently available digital currency and the number corresponding to each of the digital currency category information.

[0090] The digital currency wallet determines the digital currency category information and the number corresponding to each digital currency category information included in the currently available digital currency based on the digital currency category information included in the original digital currency and the number corresponding to each digital currency category information, the digital currency category information and the number corresponding to each digital currency category information included in the target digital currency. The digital currency wallet obtains the number of original digital currencies in the digital currency wallet, and the digital currency wallet determines the number of currently available digital currencies, the digital currency category information and the number corresponding to each digital currency included in the currently available digital currency based on the number of original digital currencies and the number of target digital currencies. For example, the number of the first original digital currency is 100, and the number of target digital currencies is 50, then the number of currently available digital currencies is 150.

[0091] S308: Push and display the number of currently available digital currencies, the digital currency category information included in the currently available digital currencies, and the number corresponding to each of the digital currency category information.

[0092] The digital currency wallet pushes and displays the number of currently available digital currencies, the digital currency category information included in the currently available digital currencies, and the number corresponding to each digital currency category information. The digital currency wallet can be triggered by a user button to push and display the number of currently available digital currencies, the digital currency category information included in the currently available digital currencies, and the number corresponding to each digital currency category information.

[0093] See also Figure 5 , Figure 5 Schematic diagram of a digital currency wallet provided in the fourth embodiment of the present application. The units included are used to execute Figure 1 to Figure 4 For details, please refer to the steps in the corresponding embodiment. Figure 1 to Figure 4 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 5 , Digital Currency Wallet 5 includes:

[0094] A connection unit 510, used to connect to a network hotspot shared by a terminal;

[0095] A first processing unit 520, configured to establish a communication channel with the digital currency server via the network hotspot;

[0096] A sending unit 530, configured to send the transaction record to the digital currency server via the communication channel;

[0097] A receiving unit 540 is used to receive a transaction result returned by the digital currency server according to the transaction record;

[0098] The second processing unit 550 is used to set the target digital currency corresponding to the transaction record to an available state if the transaction result is a successful transaction, otherwise, output a transaction failure prompt message.

[0099] Further, the sending unit 530 is specifically configured to:

[0100] The transaction record is encrypted based on the target key to obtain an encrypted transaction record, and verification code information corresponding to the encrypted transaction record is generated; the target key is a session key generated through negotiation with the digital currency server based on a preset server public key;

[0101] The encrypted transaction record and its corresponding verification code information are sent to the digital currency server through the communication channel.

[0102] Further, the second processing unit 550 is specifically configured to:

[0103] When receiving the transaction result returned by the digital currency server indicating that the verification code information has been verified and the encrypted transaction record has been verified, setting the target digital currency corresponding to the transaction record to an available state, otherwise, outputting a transaction failure prompt message.

[0104] Furthermore, the digital currency wallet 5 further includes:

[0105] A third processing unit, configured to set the transaction mode to a payment mode, and match a digital currency wallet for payment based on the transaction mode;

[0106] The fourth processing unit is used to send a transaction request to the target digital currency wallet when a target digital currency wallet is detected; the transaction mode of the target digital currency wallet is a payment mode that matches the payment mode;

[0107] The fifth processing unit is used to receive the transaction record sent by the target digital currency wallet.

[0108] Furthermore, the digital currency wallet 5 further includes:

[0109] An acquisition unit, used to acquire the digital currency category information and the corresponding number included in the original digital currency, the digital currency category information included in the target digital currency and the corresponding number of each digital currency category information;

[0110] a determining unit, configured to determine the digital currency category information included in the currently available digital currency and the number corresponding to each of the digital currency category information based on the digital currency category information included in the original digital currency and the number corresponding to each of the digital currency category information, the digital currency category information included in the target digital currency and the number corresponding to each of the digital currency category information;

[0111] The push unit is used to push and display the number of currently available digital currencies, the digital currency category information included in the currently available digital currencies, and the number corresponding to each of the digital currency category information.

[0112] Figure 6 Schematic diagram of a digital currency wallet provided in the fifth embodiment of the present application. Figure 6 As shown, the digital currency wallet 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a program for a method for interacting with a digital currency wallet and a digital currency server. When the processor 60 executes the computer program 62, the steps in the above-mentioned methods for interacting with a digital currency wallet and a digital currency server are implemented, such as Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5 Functions of modules 510 to 550 are shown.

[0113] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the digital currency wallet 6. For example, the computer program 62 may be divided into a connection unit, a first processing unit, a sending unit, a receiving unit, and a second processing unit, and the specific functions of each unit are as follows:

[0114] A connection unit, used to connect to a network hotspot shared by a terminal;

[0115] A first processing unit, configured to establish a communication channel with the digital currency server through the network hotspot;

[0116] A sending unit, used for sending the transaction record to the digital currency server through the communication channel;

[0117] A receiving unit, configured to receive a transaction result returned by the digital currency server according to the transaction record;

[0118] The second processing unit is used to set the target digital currency corresponding to the transaction record to an available state if the transaction result is a successful transaction, otherwise, output a transaction failure prompt message.

[0119] The digital currency wallet may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the digital currency wallet 6 and does not constitute a limitation of the digital currency wallet 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the resource interaction device may also include input and output devices, network access devices, buses, etc.

[0120] The processor 60 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0121] The memory 61 may be an internal storage unit of the digital currency wallet 6, such as a hard disk or memory of the digital currency wallet 6. The memory 61 may also be an external storage device of the digital currency wallet 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the digital currency wallet 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the digital currency wallet 6. The memory 61 is used to store the computer program and other programs and data required by the digital currency wallet. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0122] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0124] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0125] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0126] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0128] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0129] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0130] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for interaction between a digital currency wallet and a digital currency server, applied to a digital currency wallet, characterized in that: include: Connect to the network hotspot shared by the terminal; Establishing a communication channel with the digital currency server through the network hotspot; Sending the transaction record to the digital currency server via the communication channel; Receiving a transaction result returned by the digital currency server according to the transaction record; If the transaction result is a successful transaction, the target digital currency corresponding to the transaction record is set to an available state; otherwise, a transaction failure prompt message is output, wherein the transaction mode of the digital currency wallet is set for receiving or paying, and the digital currency wallet matches the digital currency wallet corresponding to the digital currency wallet for payment according to the receiving mode; Wherein, sending the transaction record to the digital currency server through the communication channel includes: The transaction record is encrypted based on the target key to obtain an encrypted transaction record, and verification code information corresponding to the encrypted transaction record is generated; the target key is a session key generated through negotiation with the digital currency server based on a preset server public key; Sending the encrypted transaction record and its corresponding verification code information to the digital currency server through the communication channel; If the transaction result is a successful transaction, the target digital currency corresponding to the transaction record is set to an available state; otherwise, a transaction failure prompt message is output, including: When receiving the transaction result returned by the digital currency server indicating that the verification code information has been verified and the encrypted transaction record has been verified, setting the target digital currency corresponding to the transaction record to an available state, otherwise, outputting a transaction failure prompt message.

2. The method for interaction between a digital currency wallet and a digital currency server according to claim 1, characterized in that: Before sending the transaction record to the digital currency server through the communication channel, the method further includes: Setting the transaction mode to a payment mode, and matching a digital currency wallet for payment based on the transaction mode; When a target digital currency wallet is detected, a transaction request is sent to the target digital currency wallet; the transaction mode of the target digital currency wallet is a payment mode that matches the payment mode; Receive a transaction record sent by the target digital currency wallet.

3. The method for interaction between a digital currency wallet and a digital currency server as claimed in claim 1, characterized in that: If the transaction result is a successful transaction, then the target digital currency corresponding to the transaction record is set to an available state, otherwise, after outputting a transaction failure prompt message, the method further includes: Obtaining digital currency category information and corresponding numbers included in the original digital currency, digital currency category information included in the target digital currency, and corresponding numbers of each digital currency category information; Based on the digital currency category information included in the original digital currency and the number corresponding to each of the digital currency category information, the digital currency category information included in the target digital currency and the number corresponding to each of the digital currency category information, determine the digital currency category information included in the currently available digital currency and the number corresponding to each of the digital currency category information; Push and display the number of currently available digital currencies, the digital currency category information included in the currently available digital currencies, and the number corresponding to each of the digital currency category information.

4. A digital currency wallet, characterized in that: include: A connection unit, used to connect to a network hotspot shared by a terminal; A first processing unit, configured to establish a communication channel with the digital currency server through the network hotspot; A sending unit, used for sending the transaction record to the digital currency server through the communication channel; A receiving unit, configured to receive a transaction result returned by the digital currency server according to the transaction record; A second processing unit is used to set the target digital currency corresponding to the transaction record to an available state if the transaction result is a successful transaction, otherwise, output a transaction failure prompt message; Wherein, by setting the transaction mode of the digital currency wallet for receiving or paying, the digital currency wallet matches the digital currency wallet corresponding to the digital currency wallet for payment according to the receiving mode; The sending unit is specifically used for: The transaction record is encrypted based on the target key to obtain an encrypted transaction record, and verification code information corresponding to the encrypted transaction record is generated; the target key is a session key generated through negotiation with the digital currency server based on a preset server public key; Sending the encrypted transaction record and its corresponding verification code information to the digital currency server through the communication channel; The second processing unit is specifically used to: when receiving the transaction result returned by the digital currency server indicating that the verification code information has been verified and the encrypted transaction record has been verified, set the target digital currency corresponding to the transaction record to an available state; otherwise, output a transaction failure prompt message.

5. A digital currency wallet, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.