CN112712354A - Interaction method of digital currency wallet and digital currency server - Google Patents

Interaction method of digital currency wallet and digital currency server Download PDF

Info

Publication number
CN112712354A
CN112712354A CN202010540937.3A CN202010540937A CN112712354A CN 112712354 A CN112712354 A CN 112712354A CN 202010540937 A CN202010540937 A CN 202010540937A CN 112712354 A CN112712354 A CN 112712354A
Authority
CN
China
Prior art keywords
digital currency
transaction
digital
server
wallet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010540937.3A
Other languages
Chinese (zh)
Inventor
陈柳章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Excelsecu Data Technology Co Ltd
Original Assignee
Shenzhen Excelsecu Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Excelsecu Data Technology Co Ltd filed Critical Shenzhen Excelsecu Data Technology Co Ltd
Priority to CN202010540937.3A priority Critical patent/CN112712354A/en
Publication of CN112712354A publication Critical patent/CN112712354A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The application is applicable to the technical field of computers, and provides an interaction method of a digital currency wallet and a digital currency server, which comprises the following steps: connecting network hotspots shared by terminals; establishing a communication channel with the digital currency server through the network hotspot; sending a transaction record to the digital currency server over the communication channel; receiving a transaction result returned by the digital currency server according to the transaction record; and if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, outputting transaction failure prompt information. According to the method, the equipment does not need to be controlled through terminal application software, the digital currency wallet and the digital currency server can perform resource interaction, and the method is simple and convenient to operate, simple to develop and maintain and higher in safety.

Description

Interaction method of digital currency wallet and digital currency server
Technical Field
The application belongs to the technical field of computers, and particularly relates to an interaction method of a digital currency wallet and a digital currency server.
Background
Due to the problems of high cost, difficult supervision and the like of paper money, the digitization of the currency becomes a development trend, for example, the national institute of bank printing science and technology discloses a series of currency digitization related patent technologies including the CN107230070A digital currency system. However, when data money transaction is performed in the prior art, the digital money wallet needs terminal application software to control the transaction flow with the server, so that the operation is inconvenient, the cost is needed for developing and maintaining the application software, and the security of the terminal environment is low.
Disclosure of Invention
The embodiment of the application provides an interaction method of a digital currency wallet and a digital currency server, and the method can solve the problems that in the prior art, the digital currency wallet needs terminal application software to control a transaction flow with the server, the operation is inconvenient, the cost is needed for developing and maintaining the application software, and the terminal environment safety is low.
In a first aspect, an embodiment of the present application provides an interaction method for a digital money wallet and a digital money server, including:
connecting network hotspots shared by terminals;
establishing a communication channel with the digital currency server through the network hotspot;
sending a transaction record to the digital currency server over the communication channel;
receiving a transaction result returned by the digital currency server according to the transaction record;
and if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, outputting transaction failure prompt information.
Further, said sending a transaction record to said digital money server over said communication channel, comprising:
encrypting the transaction record based on a target key to obtain an encrypted transaction record, and generating 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;
and sending the encrypted transaction record and the corresponding verification code information to the digital currency server through the communication channel.
Further, if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, outputting a transaction failure prompt message, which includes:
and when the verification code information of the transaction result returned by the digital currency server is received and the verification is passed, and the encrypted transaction record is verified, setting the target digital currency corresponding to the transaction record to be in an available state, and otherwise, outputting transaction failure prompt information.
Further, before said sending the transaction record to the digital money server over the communication channel, further comprising:
setting a transaction mode to a cash collection mode and matching a digital currency wallet for payment based on the transaction mode;
sending a transaction request to a target digital currency wallet when the target digital currency wallet is detected; the transaction mode of the target digital currency wallet is a payment mode matched with the collection mode;
receiving a transaction record sent by the target digital currency wallet.
Further, if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, after outputting a transaction failure prompt message, the method further includes:
acquiring digital currency type information and corresponding number of the digital currency included in original digital currency, digital currency type information included in the target digital currency and corresponding number of each digital currency type information;
determining the digital currency type information included in the currently available digital currency and the number corresponding to each digital currency type information based on the digital currency type information included in the original digital currency and the number corresponding to each digital currency type information, the digital currency type information included in the target digital currency and the number corresponding to each digital currency type information;
and pushing and displaying the number of the 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.
In a second aspect, embodiments of the present application provide a digital money wallet, including:
the connection unit is used for connecting the network hotspots shared by the terminals;
a first processing unit for establishing a communication channel with the digital money server through the network hotspot;
a sending unit for sending a transaction record to the digital money server through the communication channel;
the receiving unit is used for receiving a transaction result returned by the digital currency server according to the transaction record;
and the second processing unit is used for setting the target digital currency corresponding to the transaction record to be in an available state if the transaction result is that the transaction is successful, and otherwise, outputting transaction failure prompt information.
Further, the sending unit is specifically configured to:
encrypting the transaction record based on a target key to obtain an encrypted transaction record, and generating 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;
and sending the encrypted transaction record and the corresponding verification code information to the digital currency server through the communication channel.
Further, the second processing unit is specifically configured to:
and when the verification code information of the transaction result returned by the digital currency server is received and the verification is passed, and the encrypted transaction record is verified, setting the target digital currency corresponding to the transaction record to be in an available state, and otherwise, outputting transaction failure prompt information.
Further, the digital money wallet further comprises:
a third processing unit for setting a transaction mode to a money receiving mode and matching a digital money wallet for payment based on the transaction mode;
a fourth processing unit for sending a transaction request to a target digital money wallet when the target digital money wallet is detected; the transaction mode of the target digital currency wallet is a payment mode matched with the collection mode;
a fifth processing unit for receiving transaction records sent by the target digital currency wallet.
Further, the digital money wallet further comprises:
an acquisition unit configured to acquire digital currency type information and a number corresponding thereto included in original digital currency, digital currency type information and a number corresponding to each of the digital currency type information included in the target digital currency;
a determining unit, configured to determine digital currency type information included in the currently available digital currency and a number corresponding to each piece of digital currency type information, based on digital currency type information included in the original digital currency and a number corresponding to each piece of digital currency type information, digital currency type information included in the target digital currency and a number corresponding to each piece of digital currency type information;
and the pushing unit is used for pushing and displaying the number of the currently available digital currencies, the digital currency type information included in the currently available digital currencies and the number corresponding to each digital currency type information.
In a third aspect, embodiments of the present application provide a digital money wallet comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor when executing the computer program implementing the method of interacting a digital money wallet with a digital money server as described in the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method of interacting a digital money wallet with a digital money server as described above in the first aspect.
In the embodiment of the application, a network hotspot shared by terminals is connected; establishing a communication channel with the digital currency server through the network hotspot; sending a transaction record to the digital currency server over the communication channel; receiving a transaction result returned by the digital currency server according to the transaction record; and if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, outputting transaction failure prompt information. According to the method, the equipment does not need to be controlled through terminal application software, the digital currency wallet and the digital currency server can perform resource interaction, and the method is simple and convenient to operate, simple to develop and maintain and higher in safety.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a method of interaction of a digital money wallet with a digital money server provided in a first embodiment of the present application;
fig. 2 is a schematic flowchart of S103 refinement in a method of interaction of a digital money wallet with a digital money server provided in a first embodiment of the present application;
figure 3 is a schematic flow chart diagram of another method of interaction of a digital money wallet with a digital money server as provided in the second embodiment of the present application;
figure 4 is a schematic flow chart diagram of another method of interaction of a digital money wallet with a digital money server as provided in a third embodiment of the present application;
figure 5 is a schematic diagram of a digital currency wallet provided in a fourth embodiment of the present application;
figure 6 is a schematic diagram of a digital currency wallet provided in a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a schematic flow chart of an interaction method of a digital money wallet and a digital money server according to a first embodiment of the present application. The method for interacting the digital currency wallet and the digital currency server provided by the embodiment of the application is applied to the digital currency wallet. The method of interaction of the digital money wallet with the digital money server as shown in fig. 1 may include:
s101: and connecting the network hotspots shared by the terminals.
The terminal has the function of a wireless station, can be used as a wireless router, broadcasts a wireless network outwards, and can realize network resource sharing and network hotspot sharing. The terminal shares the network hotspot, and the digital currency wallet is connected with the network hotspot shared by the terminal.
S102: establishing a communication channel with the digital currency server through the network hotspot.
The digital money wallet establishes a communication channel with the digital money server through the network hotspot, and the communication channel is a data transmission path.
S103: sending a transaction record to the digital currency server over the communication channel.
The digital money wallet obtains transaction records, and the transaction records are transaction information generated when the digital money wallet conducts transactions. The transaction record may include the amount of the digital money wallet transaction, the transaction object of the digital money wallet transaction, the transaction time or transaction status, and so forth. The digital money wallet sends the transaction record to the digital money server over a communication channel to inform the digital money server to validate the transaction record. Wherein when the digital currency server receives the transaction record, the digital currency server verifies the transaction record and returns a verification result to the digital currency wallet.
Further, S103 may include S1031 to S1032, as shown in fig. 2, S1031 to S1032 are specifically as follows:
s1031: encrypting the transaction record based on a target key to obtain an encrypted transaction record, and generating 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.
The digital currency wallet encrypts the transaction record by using a target key to obtain the encrypted transaction record and the verification code thereof, wherein the key is a parameter which is input in an algorithm for converting a plaintext into a ciphertext or converting the ciphertext into the plaintext. After the digital currency wallet obtains the transaction record, the transaction record is encrypted based on the target secret key to obtain an encrypted transaction record, and verification code information corresponding to the encrypted transaction record is generated. Therefore, the digital currency wallet and the digital currency server need to use the same or symmetrical secret keys to encrypt or decrypt the transaction records, the transmission safety of the transaction records is further ensured, and the transaction records are prevented from being tampered, so that the process of transmitting the transaction records is safer.
In this embodiment, the digital money wallet negotiates with the digital money server based on the server public key to generate a session key, also referred to as a data encryption key or work key, which is an encryption and decryption key randomly generated to ensure a secure communication session between the user and another computer or between two computers, and which may be negotiated between communicating users. It is typically generated dynamically only when encryption of session data is required. The specific generation mode can be based on a public key encryption algorithm, firstly, the digital currency wallet provides a certificate of the digital currency wallet to the server, the digital currency server performs identity authentication, then the digital currency wallet encrypts a random number through a public key of the digital currency server and transmits the random number to the server, and finally, the digital currency server performs decryption through a private key of the digital currency server to obtain a 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.
S1032: and sending the encrypted transaction record and the corresponding verification code information to the digital currency server through the communication channel.
The digital currency wallet sends the encrypted transaction record and the corresponding verification code information to the digital currency server through a communication channel to inform the digital currency server to verify the encrypted transaction record. The digital currency server decrypts the encrypted transaction record by using a key which is the same as or symmetrical to the preset key, verifies whether the verification code meets the preset condition, and verifies the decrypted transaction record.
S104: and receiving a transaction result returned by the digital currency server according to the transaction record.
The digital currency wallet receives the transaction result returned by the digital currency server according to the transaction record. The transaction result identifies whether the transaction is successful or not, the digital currency server verifies the decrypted transaction record to obtain a transaction result, and the digital currency server sends the transaction result to the digital currency wallet.
S105: and if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, outputting transaction failure prompt information.
And the digital currency wallet judges the content of the transaction result, and if the transaction result is successful, the digital currency server confirms the security of the transaction, and sets the target digital currency corresponding to the transaction record to be in an available state. Otherwise, if the transaction result is transaction failure, the transaction is illegal or the digital currency server has a problem during verification, the transaction failure prompt information is output, and the transaction record can be sent to the digital currency server again to inform the digital currency server of carrying out verification again.
Further, on the basis of S1031 to S1032, S105 may include: and when the verification code information of the transaction result returned by the digital currency server is received and the verification is passed, and the encrypted transaction record is verified, setting the target digital currency corresponding to the transaction record to be in an available state, and otherwise, outputting transaction failure prompt information. When the digital currency wallet receives that the verification of the transaction result identification verification code information returned by the digital currency server passes and the verification of the encrypted transaction record passes, the digital currency wallet shows that the digital currency server confirms the security of the transaction, and sets the target digital currency corresponding to the transaction record to be in an available state, otherwise, if the verification of the transaction result identification verification code information fails and/or the transaction result is the transaction failure, the digital currency wallet shows that the transaction is illegal or the digital currency server has a problem during verification, and transaction failure prompt information is output.
In the embodiment of the application, a network hotspot shared by terminals is connected; establishing a communication channel with the digital currency server through the network hotspot; sending a transaction record to the digital currency server over the communication channel; receiving a transaction result returned by the digital currency server according to the transaction record; and if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, outputting transaction failure prompt information. According to the method, the equipment does not need to be controlled through terminal application software, the digital currency wallet and the digital currency server can perform resource interaction, and the method is simple and convenient to operate, simple to develop and maintain and higher in safety.
Referring to fig. 3, fig. 3 is a schematic flow chart of another method of interaction of a digital money wallet with a digital money server according to a second embodiment of the present application. The method for interacting the digital currency wallet and the digital currency server provided by the embodiment of the application is applied to the digital currency wallet. The present embodiment differs from the first embodiment in S203 to S205, where S201 to S202 in the present embodiment are the same as S101 to S102 in the first embodiment, S206 to S208 are the same as S103 to S105 in the first embodiment, and S203 to S205 may be executed before S206. As shown in fig. 3, S203 to S205 are specifically as follows:
s203: the transaction mode is set to a collect mode and a digital currency wallet for payment is matched based on the transaction mode.
The digital money wallet can be used for collecting money and paying money, and the purpose of the digital money wallet can be determined by setting a transaction mode of the digital money wallet.
The data currency wallet sets the transaction pattern to a cash collection pattern and matches the digital currency wallet for payment based on the transaction pattern. And the digital money wallet is matched with a data money wallet which is corresponding to the digital money wallet and is used for payment according to the collection mode.
S204: sending a transaction request to a target digital currency wallet when the target digital currency wallet is detected; the transaction pattern of the target digital currency wallet is a payment pattern matching the collection pattern.
The digital currency wallet matches a target digital currency wallet for payment, the transaction pattern of the target digital currency wallet being a payment pattern matching the collection pattern. When the digital currency wallet detects a target digital currency wallet, a transaction request is sent 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 transacted.
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.
S205: receiving a transaction record sent by the target digital currency wallet.
The digital currency wallet receives transaction records sent by the target digital currency wallet.
Referring to fig. 4, fig. 4 is a schematic flow chart of another method of interaction of a digital money wallet with a digital money server according to a third embodiment of the present application. The method for interacting the digital currency wallet and the digital currency server provided by the embodiment of the application is applied to the digital currency wallet. The present embodiment differs from the first embodiment in S306 to S308, wherein S301 to S305 in the present embodiment are the same as S101 to S105 in the first embodiment, and S306 to S308 may be executed after S305. As shown in fig. 4, S306 to S308 are specifically as follows:
s306: acquiring digital currency type information and corresponding number of the digital currency included in original digital currency, digital currency type information included in the target digital currency and corresponding number of each digital currency type information.
The digital currency wallet acquires digital currency type information and the corresponding number of the digital currency included in original digital currency, digital currency type information included in target digital currency and the corresponding number of each piece of digital currency type information. The original digital currency is digital currency which is not before transaction, the original digital currency includes digital currency category information and corresponding number, the original digital currency can be divided into a plurality of categories, different categories can correspond to different numbers, for example, the digital currency category information is the denomination of the digital currency, and the number of the currently available digital currency is 583. Denomination 100 balance 400, denomination 50 balance 100, denomination 20 balance 40, denomination 10 balance 20, denomination 5 balance 20, denomination 1 balance 3.
S307: and determining the digital currency type information included in the currently available digital currency and the number corresponding to each digital currency type information based on the digital currency type information included in the original digital currency and the number corresponding to each digital currency type information, the digital currency type information included in the target digital currency and the number corresponding to each digital currency type information.
The digital currency wallet determines the digital currency type information included in the currently available digital currency and the number corresponding to each digital currency type information based on the digital currency type information included in the original digital currency and the number corresponding to each digital currency type information, the digital currency type information included in the target digital currency and the number corresponding to each digital currency type information. The digital money wallet acquires the number of original digital money in the digital money wallet, and the digital money wallet determines the number of currently available digital money, digital money category information included in the currently available digital money, and a corresponding number thereof, based on the number of original digital money and the number of target digital money. For example, if the number of the first original digital currency is 100 and the number of the target digital currency is 50, the number of the currently available digital currencies is 150.
S308: and pushing and displaying the number of the 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 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 to push and display the number of the currently available digital currencies, the digital currency type information included in the currently available digital currencies and the number corresponding to each digital currency type information through the key pressing of the user.
Referring to fig. 5, fig. 5 is a schematic diagram of a digital money wallet provided in a fourth embodiment of the present application. The units included are used to perform the steps in the embodiments corresponding to fig. 1-4. Please refer to the related description of the embodiments corresponding to fig. 1 to 4. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 5, the digital money wallet 5 includes:
a connection unit 510, configured to connect a network hotspot shared by terminals;
a first processing unit 520 for establishing a communication channel with the digital money server through the network hotspot;
a transmitting unit 530 for transmitting the transaction record to the digital money server through the communication channel;
a receiving unit 540, configured to receive a transaction result returned by the digital currency server according to the transaction record;
and a second processing unit 550, configured to set the target digital currency corresponding to the transaction record to be in an available state if the transaction result is a transaction success, and otherwise, output a transaction failure prompt message.
Further, the sending unit 530 is specifically configured to:
encrypting the transaction record based on a target key to obtain an encrypted transaction record, and generating 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;
and sending the encrypted transaction record and the corresponding verification code information to the digital currency server through the communication channel.
Further, the second processing unit 550 is specifically configured to:
and when the verification code information of the transaction result returned by the digital currency server is received and the verification is passed, and the encrypted transaction record is verified, setting the target digital currency corresponding to the transaction record to be in an available state, and otherwise, outputting transaction failure prompt information.
Further, the digital money wallet 5 further includes:
a third processing unit for setting a transaction mode to a money receiving mode and matching a digital money wallet for payment based on the transaction mode;
a fourth processing unit for sending a transaction request to a target digital money wallet when the target digital money wallet is detected; the transaction mode of the target digital currency wallet is a payment mode matched with the collection mode;
a fifth processing unit for receiving transaction records sent by the target digital currency wallet.
Further, the digital money wallet 5 further includes:
an acquisition unit configured to acquire digital currency type information and a number corresponding thereto included in original digital currency, digital currency type information and a number corresponding to each of the digital currency type information included in the target digital currency;
a determining unit, configured to determine digital currency type information included in the currently available digital currency and a number corresponding to each piece of digital currency type information, based on digital currency type information included in the original digital currency and a number corresponding to each piece of digital currency type information, digital currency type information included in the target digital currency and a number corresponding to each piece of digital currency type information;
and the pushing unit is used for pushing and displaying the number of the currently available digital currencies, the digital currency type information included in the currently available digital currencies and the number corresponding to each digital currency type information.
Figure 6 is a schematic diagram of a digital currency wallet provided in a fifth embodiment of the present application. As shown in fig. 6, the digital money wallet 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and operable on said processor 60, such as a digital money wallet and digital money server interaction method program. The processor 60, when executing the computer program 62, implements the steps in the various digital money wallet-digital money server interaction method embodiments described above, such as steps S101 to S105 shown in figure 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 510 to 550 shown in fig. 5.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions that describe the execution of the computer program 62 in the digital money wallet 6. For example, the computer program 62 may be divided into a connection unit, a first processing unit, a transmission unit, a reception unit, and a second processing unit, and each unit has the following specific functions:
the connection unit is used for connecting the network hotspots shared by the terminals;
a first processing unit for establishing a communication channel with the digital money server through the network hotspot;
a sending unit for sending a transaction record to the digital money server through the communication channel;
the receiving unit is used for receiving a transaction result returned by the digital currency server according to the transaction record;
and the second processing unit is used for setting the target digital currency corresponding to the transaction record to be in an available state if the transaction result is that the transaction is successful, and otherwise, outputting transaction failure prompt information.
The digital money wallet may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that figure 6 is merely an example of a digital money wallet 6 and does not constitute a limitation of a digital money wallet 6 and may include more or less components than shown, or some components in combination, or different components, for example the resource interaction device may also include input output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the digital money wallet 6, such as a hard disk or an internal memory of the digital money wallet 6. The memory 61 may also be an external storage device of the Digital money wallet 6, such as a plug-in hard disk provided on the Digital money wallet 6, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 61 may also include both an internal storage unit of the digital money wallet 6 and an external storage device. The memory 61 is used to store the computer program and other programs and data required by the digital money wallet. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of interacting a digital currency wallet with a digital currency server, comprising:
connecting network hotspots shared by terminals;
establishing a communication channel with the digital currency server through the network hotspot;
sending a transaction record to the digital currency server over the communication channel;
receiving a transaction result returned by the digital currency server according to the transaction record;
and if the transaction result is that the transaction is successful, setting the target digital currency corresponding to the transaction record to be in an available state, otherwise, outputting transaction failure prompt information.
2. The method of claim 1, wherein said sending a transaction record to said digital money server over said communication channel comprises:
encrypting the transaction record based on a target key to obtain an encrypted transaction record, and generating 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;
and sending the encrypted transaction record and the corresponding verification code information to the digital currency server through the communication channel.
3. The method for interaction between a digital money wallet and a digital money server as claimed in claim 2, wherein if the transaction result is a successful transaction, the target digital money corresponding to the transaction record is set to be available, otherwise, a transaction failure prompt message is output, comprising:
and when the verification code information of the transaction result returned by the digital currency server is received and the verification is passed, and the encrypted transaction record is verified, setting the target digital currency corresponding to the transaction record to be in an available state, and otherwise, outputting transaction failure prompt information.
4. A digital money wallet interacting with a digital money server according to any one of claims 1-3, further comprising, prior to said sending of transaction records to said digital money server over said communication channel:
setting a transaction mode to a cash collection mode and matching a digital currency wallet for payment based on the transaction mode;
sending a transaction request to a target digital currency wallet when the target digital currency wallet is detected; the transaction mode of the target digital currency wallet is a payment mode matched with the collection mode;
receiving a transaction record sent by the target digital currency wallet.
5. The method for interaction between a digital money wallet and a digital money server according to any one of claims 1 to 3, wherein after the step of setting the target digital money corresponding to the transaction record to an available state if the transaction result is a transaction success, and otherwise, outputting a transaction failure prompt message, the method further comprises the steps of:
acquiring digital currency type information and corresponding number of the digital currency included in original digital currency, digital currency type information included in the target digital currency and corresponding number of each digital currency type information;
determining the digital currency type information included in the currently available digital currency and the number corresponding to each digital currency type information based on the digital currency type information included in the original digital currency and the number corresponding to each digital currency type information, the digital currency type information included in the target digital currency and the number corresponding to each digital currency type information;
and pushing and displaying the number of the 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.
6. A digital currency wallet, comprising:
the connection unit is used for connecting the network hotspots shared by the terminals;
a first processing unit for establishing a communication channel with the digital money server through the network hotspot;
a sending unit for sending a transaction record to the digital money server through the communication channel;
the receiving unit is used for receiving a transaction result returned by the digital currency server according to the transaction record;
and the second processing unit is used for setting the target digital currency corresponding to the transaction record to be in an available state if the transaction result is that the transaction is successful, and otherwise, outputting transaction failure prompt information.
7. The digital money wallet of claim 6, wherein the sending unit is specifically configured to:
encrypting the transaction record based on a target key to obtain an encrypted transaction record, and generating 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;
and sending the encrypted transaction record and the corresponding verification code information to the digital currency server through the communication channel.
8. The digital money wallet of claim 7, wherein the second processing unit is specifically configured to:
and when the verification code information of the transaction result returned by the digital currency server is received and the verification is passed, and the encrypted transaction record is verified, setting the target digital currency corresponding to the transaction record to be in an available state, and otherwise, outputting transaction failure prompt information.
9. A digital money wallet comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the method of any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202010540937.3A 2020-06-15 2020-06-15 Interaction method of digital currency wallet and digital currency server Pending CN112712354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010540937.3A CN112712354A (en) 2020-06-15 2020-06-15 Interaction method of digital currency wallet and digital currency server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010540937.3A CN112712354A (en) 2020-06-15 2020-06-15 Interaction method of digital currency wallet and digital currency server

Publications (1)

Publication Number Publication Date
CN112712354A true CN112712354A (en) 2021-04-27

Family

ID=75541230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010540937.3A Pending CN112712354A (en) 2020-06-15 2020-06-15 Interaction method of digital currency wallet and digital currency server

Country Status (1)

Country Link
CN (1) CN112712354A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113706138A (en) * 2021-10-28 2021-11-26 深圳市深圳通有限公司 Payment method, device, equipment and storage medium based on digital currency hard wallet
CN115456802A (en) * 2022-09-22 2022-12-09 中航信移动科技有限公司 Insurance event processing system based on digital currency

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182875A (en) * 2014-08-22 2014-12-03 齐亚斌 Payment method and payment system
CN107230050A (en) * 2016-03-25 2017-10-03 中国人民银行印制科学技术研究所 The method and system of digital cash payment is carried out based on viewable numbers currency chip card
CN109035636A (en) * 2018-06-04 2018-12-18 阿里巴巴集团控股有限公司 A kind of Cash collecting equipment, a kind of cashing method and device
CN110766397A (en) * 2019-10-21 2020-02-07 深圳市丰鑫科技服务有限公司 Near-field payment method based on data identification model
CN110766383A (en) * 2018-07-27 2020-02-07 中城智慧科技有限公司 Digital wallet supporting anonymous or real-name offline transaction and use method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182875A (en) * 2014-08-22 2014-12-03 齐亚斌 Payment method and payment system
CN107230050A (en) * 2016-03-25 2017-10-03 中国人民银行印制科学技术研究所 The method and system of digital cash payment is carried out based on viewable numbers currency chip card
CN109035636A (en) * 2018-06-04 2018-12-18 阿里巴巴集团控股有限公司 A kind of Cash collecting equipment, a kind of cashing method and device
CN110766383A (en) * 2018-07-27 2020-02-07 中城智慧科技有限公司 Digital wallet supporting anonymous or real-name offline transaction and use method
CN110766397A (en) * 2019-10-21 2020-02-07 深圳市丰鑫科技服务有限公司 Near-field payment method based on data identification model

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113706138A (en) * 2021-10-28 2021-11-26 深圳市深圳通有限公司 Payment method, device, equipment and storage medium based on digital currency hard wallet
CN115456802A (en) * 2022-09-22 2022-12-09 中航信移动科技有限公司 Insurance event processing system based on digital currency
CN115456802B (en) * 2022-09-22 2024-01-26 中航信移动科技有限公司 Insurance event processing system based on digital currency

Similar Documents

Publication Publication Date Title
CN100534043C (en) A method, system and computer program product for secure ticketing in a communications device
CN101300808B (en) Method and arrangement for secure autentication
CN107609866B (en) Electronic payment and electronic cash collection method and device based on virtual currency
CN107358441B (en) Payment verification method and system, mobile device and security authentication device
US20100153273A1 (en) Systems for performing transactions at a point-of-sale terminal using mutating identifiers
CN112055019B (en) Method for establishing communication channel and user terminal
EP1277301A2 (en) Method for transmitting payment information between a terminal and a third equipement
US20070074027A1 (en) Methods of verifying, signing, encrypting, and decrypting data and file
KR101385429B1 (en) Method for authenticating individual of electronic contract using nfc, authentication server and terminal for performing the method
CN103942896A (en) System for money withdrawing without card on ATM
CA2355928C (en) Method and system for implementing a digital signature
CN102694780A (en) Digital signature authentication method, payment method containing the same and payment system
CN105162607A (en) Authentication method and system of payment bill voucher
WO2022078367A1 (en) Payment secret key encryption and decryption method, payment authentication method, and terminal device
CN103457729A (en) Safety equipment, service terminal and encryption method
CN112712354A (en) Interaction method of digital currency wallet and digital currency server
CN106656955A (en) Communication method and system and user terminal
CN113988828A (en) Payment method, payment system and security chip of digital currency
JPH1065652A (en) System and method for communication secrecy information
CN114584355A (en) Security authentication method, device and system for digital currency transaction
CN112041897B (en) Control method, ticketing rule server, ticket checking rule server and device
JP2002542545A (en) Communication system and method for efficiently performing electronic transactions in a mobile communication network
KR20180089951A (en) Method and system for processing transaction of electronic cash
US8607047B2 (en) Mobile system, service system, and service providing method to securely transmit private information for use in service
JP4148465B2 (en) Electronic value distribution system and electronic value distribution method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination