CN108229954A - It is a kind of that coin method and system is deposited based on digital cash wallet - Google Patents

It is a kind of that coin method and system is deposited based on digital cash wallet Download PDF

Info

Publication number
CN108229954A
CN108229954A CN201711470888.5A CN201711470888A CN108229954A CN 108229954 A CN108229954 A CN 108229954A CN 201711470888 A CN201711470888 A CN 201711470888A CN 108229954 A CN108229954 A CN 108229954A
Authority
CN
China
Prior art keywords
coin
digital cash
wallet
deposit
server
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.)
Granted
Application number
CN201711470888.5A
Other languages
Chinese (zh)
Other versions
CN108229954B (en
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.)
Digital Currency Institute of the Peoples Bank of China
Original Assignee
Digital Currency Institute of the Peoples Bank of China
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 Digital Currency Institute of the Peoples Bank of China filed Critical Digital Currency Institute of the Peoples Bank of China
Priority to CN201711470888.5A priority Critical patent/CN108229954B/en
Publication of CN108229954A publication Critical patent/CN108229954A/en
Application granted granted Critical
Publication of CN108229954B publication Critical patent/CN108229954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3674Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes involving authentication
    • 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/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/105Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems involving programming of a portable memory device, e.g. IC cards, "electronic purses"
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3678Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes e-cash details, e.g. blinded, divisible or detecting double spending
    • 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/3825Use of electronic signatures

Abstract

Coin method and system is deposited based on digital cash wallet the invention discloses a kind of, is related to field of computer technology.One specific embodiment of this method includes:Wallet terminal will deposit coin instruction and be sent to digital cash wallet server-side, and digital cash wallet server-side deposits coin transfer request to deposit coin instruction addition digital cash safe deposit box mark generation, sends the request to digital cash distribution registration end;Source coin tandem table is cancelled at digital cash distribution registration end, and transfer result information is sent to digital cash wallet server-side by generation deposit whereabouts coin tandem table;Whereabouts coin tandem table is stored in and keeps accounts to the account of user by digital cash wallet server-side, and generation deposits coin result information and is sent to digital cash wallet terminal;Digital cash wallet terminal display deposits coin result.What the embodiment realized digital cash deposits coin process, and with independence and higher-security, can well be applied in existing financial service and transaction scene.

Description

It is a kind of that coin method and system is deposited based on digital cash wallet
Technical field
The present invention relates to field of computer technology more particularly to a kind of depositing coin method and be based on digital cash wallet System.
Background technology
At present, existing common stored value card and digital wallet are broadly divided into three classes, wherein, the first kind is based on account body The wallet of system, function are the extensions of Account Features, the transaction of transaction, really behind Accounting system that this kind of wallet participates in, Wallet is not practical in itself to store any practical fund or assets, before being intended only as background account system accounting data and function End displaying.Second class wallet is the aggregate ingress presence as bank card or the access of other card medias, and this kind of wallet is card work( The network payment inlet function of multiple cards, is only packaged by the cohesively managed of energy, realizes that single entrance accesses, simplifies user The complexity of more card operations, the function of this wallet, which needs to correspond to, calls the network application function specifically blocked to realize.Third class It using bit coin is representative based on the wallet of the private quasi- digital cash of one kind that block chain technology develops, such wallet master to be If for preserving private key, for carrying out signature transaction to the quasi- digital cash of individual recorded on chain.
In process of the present invention is realized, inventor has found that at least there are the following problems in the prior art:More than three classes wallet Can not all support digital cash issuer issue real digital cash, thus with digital cash issuer do not have system it Between interaction and access mechanism, it is impossible to realize digital cash it is practical storage keeping and circulation etc. functions.Meanwhile more than three classes wallet or Rely on background account system, wallet not independent or wallet secure context Shortcomings or cannot be applied to existing gold very well in itself Melt in service and transaction scene.
Therefore, there is an urgent need for it is a kind of can realize digital cash deposit coin process, and with independence and higher-security with And it can be applied to deposit coin method and system based on digital cash wallet in existing financial service and transaction scene well.
Invention content
In view of this, offer of the embodiment of the present invention is a kind of deposits coin method and system based on digital cash wallet, realizes Digital cash deposits coin process, by the digital cash safe deposit box of the digital cash deposit wallet server-side in wallet terminal, and converts Change wallet interlock account remaining sum fund into, have independence and higher-security, can well be applied to existing financial service and In scene of merchandising.
To achieve the above object, one side according to embodiments of the present invention provides a kind of based on digital cash wallet Deposit coin method, including:
Digital cash wallet terminal will deposit coin command information according to the operational order of user and be sent to digital cash wallet clothes Business end, the coin command information of depositing include:It is stored in source coin tandem table, deposit amount and digital cash wallet server-side mark Know;
Digital cash wallet server-side adds server-side digital cash safe deposit box mark with life for the coin command information of depositing Into depositing coin transfer request, and send the request to digital cash distribution registration end;
Digital cash distribution registration end responds the request, according to digital cash wallet server-side mark and server-side Server-side digital cash safe deposit box described in digital cash safe deposit box identity validation belong to it is described deposit coin instruction as beneficiary Digital cash wallet server-side, is then based on deposit amount and the predefined determining actual transfer amount of money of payment strategy, and according to The actual transfer amount of money cancels the deposit source coin tandem table, and generation deposit whereabouts coin tandem table will include the deposit and go Digital cash wallet server-side is sent to the transfer result information of coin tandem table, the actual transfer amount of money;
The deposit whereabouts coin tandem table is stored in server-side digital cash safe deposit box, and root by digital cash wallet server-side It keeps accounts according to the actual transfer amount of money to the account of the user, and generates the result information that keeps accounts, according to the result letter that keeps accounts Breath and transfer result information generation deposit coin result information to be sent to digital cash wallet terminal;
Digital cash wallet terminal deposits coin result information to user displaying.
Further, the coin command information of depositing further includes:Wallet terminal iidentification and wallet terminal signature, the coin of depositing turn Request is moved to further include:Digital cash wallet server-side is signed, and the transfer result information further includes:Digital cash distribution registration end Signature;
The method further includes:
Digital cash wallet server-side for it is described deposit coin command information add server-side digital cash safe deposit box mark with Before coin transfer request is deposited in generation, digital cash wallet server-side verifies the wallet terminal signature;
Digital cash wallet server-side by the deposit whereabouts coin tandem table deposit server-side digital cash safe deposit box it Before, digital cash wallet server-side determines that the wallet terminal iidentification is associated with wallet mark with the account of the pre-stored user Unanimously;
Registration end is issued according to digital cash wallet server-side mark and server-side digital cash in digital cash Server-side digital cash safe deposit box described in safe deposit box identity validation belongs to the digital cash as beneficiary for depositing coin instruction Before wallet server-side, the method further includes:Digital cash distribution registration end verification digital cash wallet server-side signature and/ Or the wallet terminal signature for depositing coin command information;
Digital cash wallet server-side by the deposit whereabouts coin tandem table deposit server-side digital cash safe deposit box it Before, digital cash wallet server-side verifies digital cash distribution registration end signature, and confirm the actual transfer amount of money with The deposit whereabouts coin tandem table amount of money is consistent.
Further, the transfer result information further includes:Small change whereabouts coin tandem table;
The method further includes:Digital cash distribution registration end generates small change whereabouts coin tandem according to the actual transfer amount of money Table;
Digital cash wallet terminal receives deposit coin result information after, confirm the actual transfer amount of money be equal to cancel deposit Then the difference of the amount of money of source coin tandem table and the amount of money of small change whereabouts coin tandem table is stored in small change whereabouts coin tandem table.
Further, the digital cash wallet terminal includes:Terminal security module and contract function execution module, it is described Digital cash wallet terminal, which according to the operational order of user will deposit coin command information and be sent to digital cash wallet server-side, to be included:
Contract function execution module receives the operational order of user, then deposits coin request according to operational order generation, and This is sent to terminal security module and deposits coin request, and the coin of depositing asks to include:Wallet terminal iidentification and certificate, the account of the user Family information;
Terminal security module shows that this deposits coin request to user, and input by user deposits the coin amount of money and confirmation letter receiving After breath, coin request is deposited to this and is signed, coin request then will be deposited and be sent to contract function execution module;
Contract function execution module verifies the signature of terminal security module, according to depositing the coin amount of money and predefined matching strategy Then matching deposit source coin tandem table deposits coin command information and the coin command information of depositing is sent to terminal peace described in generation Full module;
Terminal security module to user show described in deposit coin command information, and after the confirmation message of user is received, test The wallet terminal iidentification and certificate are demonstrate,proved, is then signed to the coin command information of depositing, coin command information hair is deposited by described Give contract function execution module;
Contract function execution module verifies the signature of terminal security module, and the coin command information of depositing then is sent to institute State digital cash wallet server-side;
It is described to confirm that the actual transfer amount of money is equal to the amount of money of deposit source coin tandem table cancelled and small change whereabouts coin The difference of the amount of money of tandem table, then the step of deposit small change whereabouts coin tandem table is performed by contract function execution module.
Further, digital cash wallet server-side includes:Wallet service module, digital cash nucleus module and account core Core module,
The digital cash wallet server-side verifies that the wallet terminal signature includes:Wallet service module is deposited described in receiving Coin command information verifies the wallet terminal signature;
The coin command information of depositing is sent to digital cash nucleus module by wallet service module;
Digital cash nucleus module verifies the signature of the wallet terminal, and then the coin command information of depositing is signed , and coin transfer request is deposited to generate with certificate for the coin command information addition server-side digital cash safe deposit box mark of depositing, This is deposited into coin transfer request and is sent to digital cash distribution registration end;
The verification digital cash distribution registration end signature, and confirm the actual transfer amount of money and the deposit whereabouts coin The tandem table amount of money is consistent, then by the deposit whereabouts coin tandem table deposit server-side digital cash safe deposit box the step of, be by What digital cash nucleus module performed;
The digital cash wallet server-side keeps accounts the account of the user according to the actual transfer amount of money, and will include The coin result information of depositing of account information is sent to digital cash wallet terminal and includes:
Wallet service module receives the transfer result information of digital cash nucleus module forwarding, and generates and deposit coin including described The request that keeps accounts is sent to account nucleus module by the request that keeps accounts of command information and the actual transfer amount of money;
It is described to determine that the wallet terminal iidentification is associated with wallet mark with the account of the pre-stored user unanimously, then According to the actual transfer amount of money keep accounts the account of the user the step of, performed by account nucleus module;
The digital cash wallet server-side generates the result information that keeps accounts, according to result information and the transfer result information of keeping accounts Generation is deposited coin result information and is included with being sent to digital cash wallet terminal:
Account nucleus module generates the result information that keeps accounts, and the result information that will keep accounts is sent to wallet service module, described The result information that keeps accounts includes:Keep accounts the amount of money, the account that keeps accounts, keep accounts before remaining sum, keep accounts after remaining sum;
Wallet service module keep accounts according to result information and transfer result information generation deposit coin result information, and will deposit Coin result information is sent to digital cash wallet terminal.
To achieve the above object, one side according to embodiments of the present invention provides a kind of based on digital cash wallet Deposit coin system, including:
Digital cash wallet terminal will deposit coin command information for the operational order according to user and be sent to digital cash money Packet server-side, the coin command information of depositing include:It is stored in source coin tandem table, deposit amount and digital cash wallet server-side Mark;
Digital cash wallet server-side, for depositing coin command information addition server-side digital cash safe deposit box mark for described in Coin transfer request is deposited with generation, and sends the request to digital cash distribution registration end;
Digital cash distribution registration end, for responding the request, according to the digital cash wallet server-side mark and Server-side digital cash safe deposit box described in server-side digital cash safe deposit box identity validation belongs to the conduct for depositing coin instruction and receives The digital cash wallet server-side of money side is then based on deposit amount and the predefined determining actual transfer amount of money of payment strategy, And cancelled the deposit source coin tandem table according to the actual transfer amount of money, generation deposit whereabouts coin tandem table will include described It is stored in whereabouts coin tandem table, the transfer result information of the actual transfer amount of money is sent to digital cash wallet server-side;
Digital cash wallet server-side is further used for the deposit whereabouts coin tandem table deposit server-side digital cash Safe deposit box, and kept accounts according to the actual transfer amount of money to the account of the user, and generate the result information that keeps accounts, according to The result information that keeps accounts is generated with transfer result information deposits coin result information to be sent to digital cash wallet terminal;
Digital cash wallet terminal is further used for depositing coin result information to user displaying.
Further, the coin command information of depositing further includes:Wallet terminal iidentification and wallet terminal signature, the coin of depositing turn Request is moved to further include:Digital cash wallet server-side is signed, and the transfer result information further includes:Digital cash distribution registration end Signature;
The digital cash wallet server-side is further used for adding server-side number goods for the coin command information of depositing Coin safe deposit box mark verifies the wallet terminal signature to generate before depositing coin transfer request;
The digital cash wallet server-side is further used for the deposit whereabouts coin tandem table being stored in server-side number Before word currency safe deposit box, determine that the wallet terminal iidentification is associated with wallet mark one with the account of the pre-stored user It causes;
The digital cash distribution registration end is further used for identifying kimonos according to the digital cash wallet server-side Server-side digital cash safe deposit box described in business end digital cash safe deposit box identity validation belongs to as the gathering for depositing coin instruction Before the digital cash wallet server-side of side, verification digital cash wallet server-side signature and/or the coin command information of depositing Wallet terminal is signed;
The digital cash wallet server-side is taken care of by the deposit whereabouts coin tandem table deposit server-side digital cash Before case, digital cash distribution registration end signature is verified, and confirm the actual transfer amount of money and the deposit whereabouts coin The tandem table amount of money is consistent.
Further, the transfer result information further includes:Small change whereabouts coin tandem table;
The digital cash distribution registration end is further used for generating small change whereabouts coin tandem table according to the actual transfer amount of money;
The digital cash wallet terminal is further used for after receiving and depositing coin result information, confirms the actual transfer gold Volume is equal to the difference of the amount of money and the amount of money of small change whereabouts coin tandem table of deposit source coin tandem table cancelled, and is then stored in small change and goes To coin tandem table.
Further, the digital cash wallet terminal includes:Terminal security module and contract function execution module,
Contract function execution module is used to receive the operational order of user, and then depositing coin according to operational order generation please It asks, and sends this to terminal security module and deposit coin request, the coin of depositing asks to include:Wallet terminal iidentification and certificate, the use The account information at family;
Terminal security module be used for user show this deposit coin request, and receive it is input by user deposit the coin amount of money and really After recognizing information, coin request is deposited to this and is signed, coin request then will be deposited and be sent to contract function execution module;
Contract function execution module is further used for verifying the signature of terminal security module, according to depositing the coin amount of money and predefined Matching strategy matching deposit source coin tandem table, then generation described in deposit coin command information and by it is described deposit coin command information hair Give terminal security module;
Terminal security module be further used for user show described in deposit coin command information, and in the confirmation for receiving user After information, the wallet terminal iidentification and certificate are verified, then sign to the coin command information of depositing, the coin of depositing is referred to Information is enabled to be sent to contract function execution module;
Contract function execution module is further used for verifying the signature of terminal security module, then deposits coin instruction letter by described Breath is sent to the digital cash wallet server-side;
Contract function execution module, which is further used for receiving, deposits coin result information, confirms that the actual transfer amount of money is equal to and makees The difference of the amount of money and the amount of money of small change whereabouts coin tandem table of useless deposit source coin tandem table, is then stored in small change whereabouts coin tandem Table.
Further, the digital cash wallet server-side includes:Wallet service module, digital cash nucleus module and account Family nucleus module,
Wallet service module for receive it is described deposit coin command information, verify the wallet terminal signature, then will described in It deposits coin command information and is sent to digital cash nucleus module;
Then digital cash nucleus module is signed the coin command information of depositing for verifying the wallet terminal signature , and coin transfer request is deposited to generate with certificate for the coin command information addition server-side digital cash safe deposit box mark of depositing, This is deposited into coin transfer request and is sent to digital cash distribution registration end;
Digital cash nucleus module is further used for receiving transfer result information, verification digital cash distribution registration end label Name, and confirm that the actual transfer amount of money is consistent with the deposit whereabouts coin tandem table amount of money, then by the deposit whereabouts coin Tandem table is stored in server-side digital cash safe deposit box;
Wallet service module is further used for receiving the transfer result information of digital cash nucleus module forwarding, and generates packet The request that keeps accounts for depositing coin command information and the actual transfer amount of money is included, which is sent to account nucleus module;
Account nucleus module is used to determine that the wallet terminal iidentification and the account of the pre-stored user are associated with wallet Mark is consistent, the account for the user that then kept accounts according to the actual transfer amount of money;
Account nucleus module is further used for generating the result information that keeps accounts, and the result information that will keep accounts is sent to wallet service Module, the result information that keeps accounts include:Keep accounts the amount of money, the account that keeps accounts, keep accounts before remaining sum, keep accounts after remaining sum;
Wallet service module is further used for keeping accounts result information according to and shifting result information generation depositing coin result Information, and coin result information will be deposited and be sent to digital cash wallet terminal.
To achieve the above object, one side according to embodiments of the present invention provides a kind of computer-readable medium, On be stored with computer program, which is characterized in that base provided in an embodiment of the present invention is realized when described program is executed by processor Coin method is deposited in digital cash wallet.
It is provided in an embodiment of the present invention that coin method and system is deposited based on digital cash wallet, it realizes based on digital cash The digital cash of wallet deposits coin process, has higher safety, can be applied to existing financial service and transaction scene well In.Wherein, the friendship between digital cash wallet terminal, digital cash wallet server-side and digital note issuance registration end three Repeatedly signature and verification process are provided with during mutually, to ensure to deposit the safety of coin process, and digital cash wallet terminal Localization safe practice is taken full advantage of with digital cash wallet server-side, effectively raises wallet and server-side digital cash The safety of system and Accounting system.
Further effect adds hereinafter in conjunction with specific embodiment possessed by above-mentioned non-usual optional mode With explanation.
Description of the drawings
Attached drawing does not form inappropriate limitation of the present invention for more fully understanding the present invention.Wherein:
Fig. 1 is the schematic diagram that the embodiment of the present invention provides the main flow for depositing coin method based on digital cash wallet;
Fig. 2 is the master that the embodiment of the present invention provides the digital cash wallet terminal for depositing coin method based on digital cash wallet Want the sequence diagram of flow;
Fig. 3 is that the embodiment of the present invention provides the digital cash wallet server-side for depositing coin method based on digital cash wallet The sequence diagram of main flow;
Fig. 4 is the schematic diagram that the embodiment of the present invention provides the main modular for depositing coin system based on digital cash wallet;
Fig. 5 is that the embodiment of the present invention provides the digital cash wallet terminal for depositing coin system based on digital cash wallet, number Word currency wallet server-side and the schematic diagram at digital cash distribution registration end.
Specific embodiment
It explains below in conjunction with attached drawing to the exemplary embodiment of the present invention, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together For clarity and conciseness, the description to known function and structure is omitted in sample in following description.
Offer of the embodiment of the present invention is a kind of to deposit coin method based on digital cash wallet, and this method passes through digital cash wallet Interaction between terminal, digital cash wallet server-side and digital note issuance registration end three, is realized based on digital cash money The digital cash of packet deposits coin process.Wherein, digital cash wallet terminal provides the related service function of digital cash wallet, number Currency wallet terminal is further included the security function safety-related with digital cash and simultaneously with what can be interacted with user System.
Digital cash wallet server-side (for example, can be bank digital cash manage system) with Accounting system (for example, Bank account system) it integrates, wallet and account exchange ability are provided, the account and wallet of user are managed.It is wherein digital Currency wallet server-side is provided with digital cash safe deposit box, and coin method provided by the invention of depositing is used for realizing user by the number of oneself The process of digital cash deposit digital cash wallet server-side in word currency wallet is stored in the number of digital cash wallet server-side Word currency is saved in the digital cash safe deposit box of digital cash wallet server-side, meanwhile, digital cash wallet server-side is more The account of new user simultaneously informs user, and coin is deposited so as to fulfill digital cash.
Digital cash distribution registration end is the distribution registration unit of digital cash, is responsible for digital cash distribution and recycling, with And the related registration of entire digital cash life cycle.Digital cash wallet service is stored in number currency wallet terminal The digital cash at end need to first be sent to digital cash distribution registration end and be cancelled, and it is new then to issue the generation of registration end by digital cash Digital cash be restored again into digital cash wallet server-side.
As shown in Figure 1, the coin method of depositing provided by the invention based on digital cash wallet includes:Step S101 is to step S105.Wherein, digital cash wallet terminal will deposit coin command information according to the operational order of user and be sent in step S101 Digital cash wallet server-side is deposited coin command information and is included:It is stored in source coin tandem table, deposit amount and digital cash wallet Server-side mark etc..Digital cash wallet server-side mark is deposited for issuing registration end by digital cash in subsequent step Enter the verification of the digital cash safe deposit box of digital cash.Then, in step s 102, digital cash wallet server-side, which receives, deposits coin Digital cash transfer operation is initiated after command information, digital cash wallet server-side adds server-side number to deposit coin command information Currency safe deposit box mark deposits coin transfer request to generate, and sends the request to digital cash distribution registration end.
In step s 103, digital cash distribution registration end respond request takes care of the digital cash for being stored in digital cash Case is verified:According to digital cash wallet server-side mark and server-side digital cash safe deposit box identity validation server-side number Currency safe deposit box belongs to the digital cash wallet server-side as beneficiary for depositing coin instruction, and malice is given to prevent digital cash Third party.After being verified, digital cash distribution registration end group determines practical in deposit amount and predefined payment strategy The amount of money is shifted, and source coin tandem table is stored into according to the actual transfer amount of money and is cancelled, generation deposit whereabouts coin tandem table, and in number Word currency is really weighed is registered and synchronized update accordingly on chain.Then deposit whereabouts coin tandem table, actual transfer gold will be included The transfer result information of volume is sent to digital cash wallet server-side.
In the present invention, predefined payment strategy is configured according to concrete application scene, for example, payment strategy can be with For maximum possible strategy, i.e., if when depositing the coin amount of money and receiving effective digital currency word string amount of money mismatch, the small person of the two is taken, to the greatest extent This delivery operation may be completed, at this point, digital cash distribution registration end is by deposit amount verification deposit source coin tandem table gold Volume takes the small person in the two, as the actual transfer amount of money.Alternatively, payment strategy can be maximum precisely strategy, i.e., if depositing coin The amount of money then judges that this digital cash transfer operation fails and returns more than when receiving the effective digital currency word string list amount of money.
In embodiments of the present invention, after digital cash distribution registration end determines the actual transfer amount of money, when digital cash is issued When registration end receives the effective deposit source coin tandem table amount of money and is more than the actual transfer amount of money, digital cash distribution registration end according to The actual transfer amount of money generates small change whereabouts coin tandem table, sends back to the digital cash wallet terminal of user.
In step S104, digital cash wallet server-side is stored into whereabouts coin tandem table deposit server-side digital cash and protects Bobbin carriage, and kept accounts according to the actual transfer amount of money to the account of user, and generate the result information that keeps accounts, according to the result letter that keeps accounts Breath and transfer result information generation deposit coin result information to be sent to digital cash wallet terminal.Finally, step S105, digital goods Coin wallet terminal deposits coin result according to coin result information is deposited to user's displaying.
It is provided in an embodiment of the present invention that coin method is deposited based on digital cash wallet, it is realized by above-mentioned steps based on number The digital cash of word currency wallet deposits coin process, has higher safety, can be applied to existing financial service and friendship well In easy scene.
In embodiments of the present invention, in order to ensure depositing the safety of coin process, in digital cash wallet terminal, digital cash Repeatedly signature and verification process are additionally provided in interactive process between wallet server-side and digital note issuance registration end three It is as follows.Coin instruction is deposited to further include:Wallet terminal iidentification and wallet terminal signature, deposit coin transfer request and further include:Digital cash money Packet server-side is signed, and transfer result information further includes:Digital cash distribution registration end signature.
Coin command information is deposited to further include:Wallet terminal iidentification and wallet terminal signature.In the present invention, signature refers to data electricity Electronically contained in text, the appended data signature for identifying signer's identity and showing signer's accreditation wherein content, Its process is to handle information to be signed according to special algorithm, exports a data mark that can uniquely confirm the information legitimacy Label, that is, sign.In step S102, digital cash wallet server-side adds server-side digital cash safe deposit box to deposit coin command information For mark to generate before depositing coin transfer request, digital cash wallet server-side need to first verify that the validity of wallet terminal signature, It is sent out with ensuring to deposit coin command information by wallet terminal, prevents malicious third parties from forging this and deposit coin command information.If verification Do not pass through, then do not go on and subsequent deposit coin step.
In step S104, digital cash wallet server-side is stored into the deposit server-side digital cash keeping of whereabouts coin tandem table Before case, digital cash wallet server-side determines that wallet terminal iidentification is associated with wallet mark one with the account of pre-stored user It causes.I.e. digital cash wallet server-side needs first to determine before keeping accounts to account, and the account to keep accounts deposits coin to initiate this The account of the user of the wallet terminal of process.
In step S103, digital cash distribution registration end is according to digital cash wallet server-side mark and server-side number Currency safe deposit box identity validation server-side digital cash safe deposit box belongs to the digital cash wallet as beneficiary for depositing coin instruction Before server-side, digital cash distribution registration end need to first verify digital cash wallet server-side signature and/or deposit coin command information Wallet terminal signature, coin transfer request and deposit the legitimacy of coin command information to ensure to deposit, prevent malicious third parties forge or Modification deposits coin transfer request and deposits coin command information.If verification does not pass through, do not go on and subsequent deposit coin step.
In step S104, digital cash wallet server-side is stored into the deposit server-side digital cash keeping of whereabouts coin tandem table Before case, digital cash wallet server-side need to first verify digital cash distribution registration end signature, and confirm the actual transfer amount of money with It is consistent to be stored in the whereabouts coin tandem table amount of money.It is sent out, prevented by digital cash distribution registration end with ensuring to shift result information Malicious third parties forge the transfer result information.If verification does not pass through or the amount of money is inconsistent, do not go on and subsequent deposit coin Step.
Registration end is issued when digital cash, small change whereabouts coin tandem table is generated according to the actual transfer amount of money, in digital cash money Packet terminal receive with small change whereabouts coin tandem table deposit coin result information after, need to confirm the actual transfer amount of money be equal to cancel depositing Enter the difference of the amount of money of source coin tandem table and the amount of money of small change whereabouts coin tandem table, to ensure deposit amount and change amount just Really, then it is stored in small change whereabouts coin tandem table.
More specifically, in embodiments of the present invention, as shown in Fig. 2, digital cash wallet terminal includes:Terminal security mould Block and contract function execution module.In digital cash wallet terminal, terminal security module and contract function execution module have The different division of labor, contract function execution module are responsible for handling the relevant business of digital cash wallet, and terminal security module is responsible for place Manage security-related operation, such as the binding of key and signature, sign test etc..Digital cash wallet terminal was interacted with user's Journey is had to via terminal security module, to ensure safety.
Step is realized by the interaction between terminal security module and contract function execution module and with interacting for user The process of S101, specially:First, contract function execution module receives the operational order of user, example via terminal security module Such as, the input of user is provided by wallet terminal interactive system wants to deposit the operational order of coin, contract function execution module according to Coin request is deposited in operational order generation, and is sent this to terminal security module and deposited coin request, is deposited coin request and is included:Wallet terminal mark Knowledge and certificate, the account information of user.
Terminal security module shows that this deposits coin request to user, and terminal security module will deposit coin interface by interactive system and show Show to user, such as the input frame that the coin amount of money is deposited in input is provided, current account information etc. is shown to user.User can deposit The coin interface input amount of money simultaneously passes through click and confirms, terminal security module input by user deposits the coin amount of money and confirmation message receiving Afterwards, it deposits coin request to this to be signed with wallet key, then will deposit coin request and be sent to contract function execution module.
Contract function execution module verifies the signature of terminal security module, if verification does not pass through, without subsequent step, If being verified, according to the coin amount of money and predefined matching strategy matching deposit source coin tandem table is deposited, then generation is deposited coin and is referred to Information is enabled, coin command information will be deposited and be sent to terminal security module.It deposits coin command information and includes wallet terminal iidentification and certificate, number Word currency wallet server-side identifies, and is stored in source coin string exception list, deposit amount, the account information that keeps accounts etc..It is being embodied In the process, it can be needed to select matching strategy according to practical application, matching strategy can be carried as contract function execution module The function of confession, is specified by user or system is recommended automatically.For example, when wanting with the maximum digital cash word string of deposit, it is desirable to look for When zero, then minimum coin string list policy can be applied, when it is desirable that change is stored in, then can apply most coin string list policies, when When wishing the digital cash word string of deposit and deposit amount close as possible, using minimum difference strategy.
Terminal security module to user show it is above-mentioned deposit coin command information, and after the confirmation message of user is received, test Wallet terminal iidentification and certificate are demonstrate,proved, then signs to depositing coin command information, coin command information will be deposited and be sent to contract function Execution module.Contract function execution module verifies the signature of terminal security module, will deposit coin command information and is sent to digital cash Wallet server-side.
Digital cash wallet terminal provided in an embodiment of the present invention handles the contract function execution module of digital cash business It is had to the interactive process of user via terminal security module, terminal security module is related to contract function execution module And when depositing the communication of coin process, it will carry out signing-verifying to ensure safety, so as to take full advantage of localization safe practice, Effectively raise the safety of wallet.
In embodiments of the present invention, as shown in figure 3, digital cash wallet server-side includes:Wallet service module, digital goods Coin nucleus module and account nucleus module, in digital cash wallet server-side, wallet service module, digital cash nucleus module There is the different division of labor with account nucleus module, the user oriented wallet terminal of wallet service module provides wallet related service, Digital cash nucleus module is the core of digital cash wallet server-side digital cash business, is responsible for digital cash keeping Case, account nucleus module are responsible for the account of user.
Pass through the interaction between wallet service module and digital cash nucleus module and the friendship with the wallet terminal of user Mutually realize the process of step S102, specially:What wallet service module reception wallet terminal was sent deposits coin command information, and verify Wallet terminal is signed, if verification does not pass through, does not go on follow-up step.Then, wallet service module initiates digital goods Coin transfer operation will deposit coin command information and be sent to digital cash nucleus module, digital cash nucleus module verification wallet terminal Signature, then sign to depositing coin command information, and for deposit coin command information add server-side digital cash safe deposit box mark Know and certificate deposits coin transfer request to generate, this is deposited coin transfer request is sent to digital cash distribution registration end.Digital cash Safe deposit box identifies and certificate registers the validity and legitimacy of end verification digital cash safe deposit box for digital cash distribution, so as to The deposit whereabouts coin tandem table beamed back at digital cash distribution registration end is received by digital cash safe deposit box.
By the interaction between wallet service module, digital cash nucleus module and account nucleus module and with user's The process of step S104 is realized in the interaction of wallet terminal, specially:Digital cash nucleus module receives digital cash distribution registration The transfer result information returned is held, for example, transfer result information can include:Transfering state (success or failure), actual transfer The amount of money, the deposit whereabouts coin string exception list for being transferred to digital cash wallet server-side digital cash safe deposit box and give wallet for change Small change whereabouts coin string exception list of terminal etc..Digital cash nucleus module verification digital cash distribution registration end signature, and really It is consistent with the deposit whereabouts coin tandem table amount of money to recognize the actual transfer amount of money, is then stored into whereabouts coin tandem table deposit server-side number Currency safe deposit box.
After wallet service module deposits coin command information receive that wallet terminal sends, it can be carried out to depositing coin command information It preserves.Wallet service module receives the transfer result information of digital cash nucleus module forwarding, and verification is shifted in result information The transfer amount of money with preserve deposit in coin command information to deposit the coin amount of money consistent, then generation includes depositing coin command information and practical turn The request that keeps accounts of the amount of money is moved, which is sent to account nucleus module.If shift result information in the transfer amount of money with Preserve deposit in coin command information to deposit the coin amount of money inconsistent, then can carry out the respective handlings such as subsequent tune account.
After account nucleus module receives the request that keeps accounts, judge that wallet terminal iidentification and the account of pre-stored user are associated with money Packet identifies whether unanimously, if unanimously, being kept accounts according to the actual transfer amount of money to the account of user, after the completion of keeping accounts, and account Nucleus module generates the result information that keeps accounts, and the result information that will keep accounts is sent to wallet service module, for example, the result information that keeps accounts It can include:Keep accounts the amount of money, the account that keeps accounts, keep accounts before remaining sum, keep accounts after remaining sum etc..
Wallet service module deposits coin result information, and will deposit coin knot according to keep accounts result information and transfer result information generation Fruit information is sent to digital cash wallet terminal.Wherein, since deposit whereabouts coin tandem table has been stored in digital cash wallet service Digital cash safe deposit box is held, the deposit whereabouts coin tandem table is not carried in coin result information so depositing.
Wallet terminal contract function execution module receives this and deposits coin result information, and verifies that digital cash distribution therein is stepped on The amount of money whether note end signature and the verification actual transfer amount of money therein are equal to calcellation deposit source coin tandem table is gone with small change To the difference of the amount of money of coin tandem table.If depositing coin result information does not have small change whereabouts coin tandem table, verify that the actual transfer amount of money is It is no to be equal to the amount of money of deposit source coin tandem table cancelled.Wherein, the amount information of the deposit source coin tandem table of calcellation can be with It is carried by transfer result information, issuing registration end from digital cash is sent to wallet terminal contract function execution module, can also It is stored in wallet terminal contract function execution module in advance by other modes.
If there is no problem for verification, small change whereabouts coin tandem table is stored in wallet terminal by contract function execution module, and is led to Cross wallet terminal interaction system and show that this deposits coin result information to user, for example, by deposit coin interface by transfering state (success or Unsuccessfully), the actual transfer amount of money, deposit whereabouts coin string exception list and the small change whereabouts coin tandem table row for giving wallet terminal for change Table, the amount of money that keeps accounts of account, the account that keeps accounts, keep accounts before remaining sum and remaining sum is shown after keeping accounts, deposited so as to which user be allowed to understand The transaction details of coin.
The embodiment of the present invention also provide it is a kind of coin system is deposited based on digital cash wallet, as shown in figure 4, the system packet It includes:End 403 is registered in digital cash wallet terminal 401, digital cash wallet server-side 402 and digital note issuance.Wherein, it is digital Currency wallet terminal 401 is sent to digital cash wallet server-side for that will deposit coin command information according to the operational order of user, Coin command information is deposited to include:It is stored in source coin tandem table, deposit amount and digital cash wallet server-side mark etc..
Digital cash wallet server-side 402 be used for for deposit coin command information add server-side digital cash safe deposit box mark with Coin transfer request is deposited in generation, and sends the request to digital cash distribution registration end.
Digital cash distribution registration end 403 is for respond request, according to digital cash wallet server-side mark and server-side Digital cash safe deposit box identity validation server-side digital cash safe deposit box belongs to digital cash wallet server-side, is then based on being stored in The amount of money and predefined matching strategy determine the actual transfer amount of money, and are stored into source coin tandem table according to the actual transfer amount of money and make Useless, generation deposit whereabouts coin tandem table sends the transfer result information comprising deposit whereabouts coin tandem table, the actual transfer amount of money Give digital cash wallet server-side.
Digital cash wallet server-side 402 is additionally operable to be stored into the deposit server-side digital cash keeping of whereabouts coin tandem table Case, and kept accounts according to the actual transfer amount of money to the account of user, and generate the result information that keeps accounts, according to the result information that keeps accounts Coin result information is deposited with transfer result information generation to be sent to digital cash wallet terminal.
Digital cash wallet terminal 401 be additionally operable to according to deposit coin result information to user displaying deposit coin result.
In embodiments of the present invention, coin instruction is deposited to further include:Wallet terminal iidentification and wallet terminal signature, depositing coin transfer please It asks and further includes:Digital cash wallet server-side is signed, and transfer result information further includes:Digital cash distribution registration end signature.
Digital cash wallet server-side is further used for adding server-side digital cash safe deposit box to deposit coin command information Mark is to generate before depositing coin transfer request, verification wallet terminal signature.
Digital cash wallet server-side is further used for being stored into whereabouts coin tandem table deposit server-side digital cash guarantor Before bobbin carriage, it is consistent to determine that wallet terminal iidentification is associated with wallet mark with the account of pre-stored user.
Digital cash distribution registration end is further used for according to digital cash wallet server-side mark and server-side number Currency safe deposit box identity validation server-side digital cash safe deposit box belongs to before digital cash wallet server-side, verifies digital cash Wallet server-side is signed and/or the wallet terminal signature for depositing coin command information.
Digital cash wallet server-side is further used for being stored into the deposit server-side digital cash keeping of whereabouts coin tandem table Before case, verification digital cash distribution registration end signature, and confirm the actual transfer amount of money and the deposit whereabouts coin tandem table amount of money one It causes.
In embodiments of the present invention, transfer result information further includes:Small change whereabouts coin tandem table.Digital cash distribution registration End is additionally operable to generate small change whereabouts coin tandem table according to the actual transfer amount of money.Digital cash wallet terminal, which is additionally operable to receive, deposits coin knot After fruit information, confirm that the actual transfer amount of money is equal to the amount of money of the deposit source coin tandem table cancelled and small change whereabouts coin tandem table The difference of the amount of money.
In embodiments of the present invention, as shown in figure 5, digital cash wallet terminal includes:Terminal security module and contract work( It can execution module.Terminal security module is interacted by interactive system with user, acquires the operational order of user, and show to user The information that user's self acknowledging is needed to sign, contract function execution module are used to receive the operation of user by terminal security module Then instruction deposits coin request according to operational order generation, and sends this to terminal security module and deposit coin request, deposit coin request bag It includes:Wallet terminal iidentification and certificate, the account information of user.
Terminal security module is used to show that this is deposited coin and asks, and receive by interactive system to user by interactive system To it is input by user deposit the coin amount of money and confirmation message after, to this deposit coin request sign, then will deposit coin request be sent to conjunction About function execution module.
Contract function execution module is used to verify the signature of terminal security module, according to depositing the coin amount of money and predefined matching Strategy matching is stored in source coin tandem table, and coin command information is deposited in then generation, will be deposited coin command information and is sent to terminal security mould Block.
Terminal security module, which is further used for showing to user, deposits coin command information, and in the confirmation message for receiving user Afterwards, wallet terminal iidentification and certificate are verified, then signs to depositing coin command information, coin command information will be deposited and be sent to contract Function execution module.
Contract function execution module is used to verify the signature of terminal security module, and the coin command information of depositing after signature is sent Give digital cash wallet server-side.
Contract function execution module, which is further used for receiving, deposits coin result information, when there are during small change whereabouts coin tandem table, Confirm that the actual transfer amount of money is equal to the difference of the amount of money and the amount of money of small change whereabouts coin tandem table of deposit source coin tandem table cancelled, Then it is stored in small change whereabouts coin tandem table.
In embodiments of the present invention, digital cash wallet server-side includes:Wallet service module, digital cash nucleus module With account nucleus module.Wallet service module deposits coin command information for receiving, then verification wallet terminal signature will deposit coin and refer to Information is enabled to be sent to digital cash nucleus module.
Digital cash nucleus module is used to verify the signature of wallet terminal, then signs to depositing coin command information, and Coin transfer request is deposited to generate to deposit coin command information addition server-side digital cash safe deposit box mark and certificate, this is deposited coin turns It moves request and is sent to digital cash distribution registration end.
Digital cash nucleus module is further used for receiving transfer result information, verification digital cash distribution registration end label Name, and confirm that the actual transfer amount of money is consistent with the deposit whereabouts coin tandem table amount of money, then it is stored into whereabouts coin tandem table deposit clothes Business end digital cash safe deposit box.
Wallet service module is further used for receiving the transfer result information of digital cash nucleus module forwarding, and generates packet The request that keeps accounts for depositing coin command information and the actual transfer amount of money is included, which is sent to account nucleus module.
Account nucleus module is used to determine that wallet terminal iidentification is associated with wallet mark with the account of pre-stored user unanimously, Then keep accounts the account of user according to the actual transfer amount of money.
Account nucleus module is further used for generating the result information that keeps accounts, and the result information that will keep accounts is sent to wallet service Module, the result information that keeps accounts include:Keep accounts the amount of money, the account that keeps accounts, keep accounts before remaining sum, keep accounts after remaining sum.
Wallet service module is further used for depositing coin result information according to keep accounts result information and transfer result information generation, And coin result information will be deposited and be sent to digital cash wallet terminal.
Above-mentioned specific embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (11)

1. a kind of deposit coin method based on digital cash wallet, which is characterized in that including:
Digital cash wallet terminal will deposit coin command information according to the operational order of user and be sent to digital cash wallet server-side, The coin command information of depositing includes:It is stored in source coin tandem table, deposit amount and digital cash wallet server-side mark;
Digital cash wallet server-side is deposited for the coin command information addition server-side digital cash safe deposit box mark of depositing with generating Coin transfer request, and send the request to digital cash distribution registration end;
Digital cash distribution registration end responds the request, according to digital cash wallet server-side mark and server-side number Server-side digital cash safe deposit box described in currency safe deposit box identity validation belongs to the number as beneficiary for depositing coin instruction Currency wallet server-side is then based on deposit amount and the predefined determining actual transfer amount of money of payment strategy, and according to reality It shifts the amount of money to cancel the deposit source coin tandem table, generation deposit whereabouts coin tandem table will include the deposit whereabouts coin Tandem table, the actual transfer amount of money transfer result information be sent to digital cash wallet server-side;
The deposit whereabouts coin tandem table is stored in server-side digital cash safe deposit box, and according to institute by digital cash wallet server-side State the actual transfer amount of money to keep accounts to the account of the user, and generate and keep accounts result information, according to keep accounts result information and Transfer result information generation deposits coin result information to be sent to digital cash wallet terminal;
Digital cash wallet terminal deposits coin result information to user displaying.
2. according to the method described in claim 1, it is characterized in that, the coin command information of depositing further includes:Wallet terminal iidentification It signs with wallet terminal, the coin transfer request of depositing further includes:Digital cash wallet server-side is signed, the transfer result information It further includes:Digital cash distribution registration end signature;
The method further includes:
It identifies to generate for the coin command information addition server-side digital cash safe deposit box of depositing in digital cash wallet server-side Before depositing coin transfer request, digital cash wallet server-side verifies the wallet terminal signature;
Before digital cash wallet server-side is by the deposit whereabouts coin tandem table deposit server-side digital cash safe deposit box, number It is consistent that word currency wallet server-side determines that the wallet terminal iidentification is associated with wallet mark with the account of the pre-stored user;
Registration end is issued in digital cash to take care of according to digital cash wallet server-side mark and server-side digital cash Server-side digital cash safe deposit box described in case identity validation belongs to the digital cash wallet as beneficiary for depositing coin instruction Before server-side, the method further includes:Digital cash distribution registration end verification digital cash wallet server-side signature and/or institute State the wallet terminal signature for depositing coin command information;
Before digital cash wallet server-side is by the deposit whereabouts coin tandem table deposit server-side digital cash safe deposit box, number Word currency wallet server-side verifies digital cash distribution registration end signature, and confirms that the actual transfer amount of money is deposited with described It is consistent to enter the whereabouts coin tandem table amount of money.
3. according to the method described in claim 2, it is characterized in that, the transfer result information further includes:Small change whereabouts coin string List;
The method further includes:Digital cash distribution registration end generates small change whereabouts coin tandem table according to the actual transfer amount of money;
Digital cash wallet terminal receives deposit coin result information after, confirm the actual transfer amount of money be equal to cancel deposit source Then the difference of the amount of money of coin tandem table and the amount of money of small change whereabouts coin tandem table is stored in small change whereabouts coin tandem table.
4. according to the method described in claim 3, it is characterized in that, the digital cash wallet terminal includes:Terminal security mould Block and contract function execution module, the digital cash wallet terminal will deposit coin command information according to the operational order of user and send Include to digital cash wallet server-side:
Contract function execution module receives the operational order of user, then deposits coin request according to operational order generation, and to end End security module sends this and deposits coin request, and the coin of depositing asks to include:Wallet terminal iidentification and certificate, the account letter of the user Breath;
Terminal security module shows that this deposits coin request to user, and input by user deposits the coin amount of money and confirmation message receiving Afterwards, it deposits coin request to this to sign, then will deposit coin request and be sent to contract function execution module;
Contract function execution module verifies the signature of terminal security module, is matched according to the coin amount of money and predefined matching strategy is deposited Source coin tandem table is stored in, then deposit coin command information described in generation and the coin command information of depositing is sent to terminal security mould Block;
Terminal security module to user show described in deposit coin command information, and after the confirmation message of user is received, verify institute Wallet terminal iidentification and certificate are stated, is then signed to the coin command information of depositing, the coin command information of depositing is sent to Contract function execution module;
Contract function execution module verifies the signature of terminal security module, and the coin command information of depositing then is sent to the number Word currency wallet server-side;
It is described to confirm that the actual transfer amount of money is equal to the amount of money of deposit source coin tandem table cancelled and small change whereabouts coin tandem The difference of the amount of money of table, then the step of deposit small change whereabouts coin tandem table is performed by contract function execution module.
5. according to the method described in claim 3, it is characterized in that, digital cash wallet server-side includes:Wallet service module, Digital cash nucleus module and account nucleus module,
The digital cash wallet server-side verifies that the wallet terminal signature includes:Coin is deposited described in the reception of wallet service module to refer to Information is enabled, verifies the wallet terminal signature;
The coin command information of depositing is sent to digital cash nucleus module by wallet service module;
Digital cash nucleus module verifies the signature of the wallet terminal, then signs to the coin command information of depositing, and Coin transfer request is deposited to generate with certificate for the coin command information addition server-side digital cash safe deposit box mark of depositing, this is deposited Coin transfer request is sent to digital cash distribution registration end;
The verification digital cash distribution registration end signature, and confirm the actual transfer amount of money and the deposit whereabouts coin tandem The table amount of money is consistent, is then stored in the step of whereabouts coin tandem table is stored in server-side digital cash safe deposit box by described, is by number What currency nucleus module performed;
The digital cash wallet server-side keeps accounts the account of the user according to the actual transfer amount of money, and will include account The coin result information of depositing of information is sent to digital cash wallet terminal and includes:
Wallet service module receives the transfer result information of digital cash nucleus module forwarding, and generates and deposit coin instruction including described The request that keeps accounts is sent to account nucleus module by the request that keeps accounts of information and the actual transfer amount of money;
The determining wallet terminal iidentification is associated with wallet mark with the account of the pre-stored user unanimously, then basis The actual transfer amount of money keep accounts the user account the step of, performed by account nucleus module;
The digital cash wallet server-side generates the result information that keeps accounts, according to result information and the transfer result information generation of keeping accounts It deposits coin result information and is included with being sent to digital cash wallet terminal:
Account nucleus module generates the result information that keeps accounts, and the result information that will keep accounts is sent to wallet service module, described to keep accounts Result information includes:Keep accounts the amount of money, the account that keeps accounts, keep accounts before remaining sum, keep accounts after remaining sum;
Wallet service module keep accounts according to result information and transfer result information generation deposit coin result information, and coin knot will be deposited Fruit information is sent to digital cash wallet terminal.
6. a kind of deposit coin system based on digital cash wallet, which is characterized in that including:
Digital cash wallet terminal will deposit coin command information for the operational order according to user and be sent to digital cash wallet clothes Business end, the coin command information of depositing include:It is stored in source coin tandem table, deposit amount and digital cash wallet server-side mark Know;
Digital cash wallet server-side, for depositing coin command information addition server-side digital cash safe deposit box mark for described in life Into depositing coin transfer request, and send the request to digital cash distribution registration end;
Digital cash distribution registration end, for responding the request, identifies and is serviced according to the digital cash wallet server-side Server-side digital cash safe deposit box described in the digital cash safe deposit box identity validation of end belongs to the conduct beneficiary for depositing coin instruction Digital cash wallet server-side, be then based on deposit amount and the predefined determining actual transfer amount of money of payment strategy, and root The deposit source coin tandem table is cancelled according to the actual transfer amount of money, generation deposit whereabouts coin tandem table will include the deposit Whereabouts coin tandem table, the actual transfer amount of money transfer result information be sent to digital cash wallet server-side;
Digital cash wallet server-side is further used for the deposit whereabouts coin tandem table deposit server-side digital cash keeping Case, and being kept accounts according to the actual transfer amount of money to the account of the user, and generate the result information that keeps accounts, according to keeping accounts Result information and transfer result information generation deposit coin result information to be sent to digital cash wallet terminal;
Digital cash wallet terminal is further used for depositing coin result information to user displaying.
7. system according to claim 6, which is characterized in that the coin command information of depositing further includes:Wallet terminal iidentification It signs with wallet terminal, the coin transfer request of depositing further includes:Digital cash wallet server-side is signed, the transfer result information It further includes:Digital cash distribution registration end signature;
The digital cash wallet server-side is further used for adding server-side digital cash guarantor for the coin command information of depositing Bobbin carriage mark verifies the wallet terminal signature to generate before depositing coin transfer request;
The digital cash wallet server-side is further used for the deposit whereabouts coin tandem table being stored in server-side number goods Before coin safe deposit box, it is consistent to determine that the wallet terminal iidentification is associated with wallet mark with the account of the pre-stored user;
The digital cash distribution registration end is further used for according to digital cash wallet server-side mark and server-side Server-side digital cash safe deposit box described in digital cash safe deposit box identity validation belongs to as the beneficiary for depositing coin instruction Before digital cash wallet server-side, verification digital cash wallet server-side signature and/or the wallet for depositing coin command information Terminal is signed;
The digital cash wallet server-side by the deposit whereabouts coin tandem table deposit server-side digital cash safe deposit box it Before, verify digital cash distribution registration end signature, and confirm the actual transfer amount of money and the deposit whereabouts coin tandem The table amount of money is consistent.
8. system according to claim 7, which is characterized in that the transfer result information further includes:Small change whereabouts coin string List;
The digital cash distribution registration end is further used for generating small change whereabouts coin tandem table according to the actual transfer amount of money;
The digital cash wallet terminal is further used for after receiving and depositing coin result information, confirms described actual transfer amount of money etc. In the difference of the amount of money and the amount of money of small change whereabouts coin tandem table of the deposit source coin tandem table of calcellation, it is then stored in small change whereabouts coin Tandem table.
9. system according to claim 8, which is characterized in that the digital cash wallet terminal includes:Terminal security mould Block and contract function execution module,
Contract function execution module is used to receive the operational order of user, then deposits coin request according to operational order generation, and This is sent to terminal security module and deposits coin request, and the coin of depositing asks to include:Wallet terminal iidentification and certificate, the account of the user Family information;
Terminal security module is used to show that this deposits coin request to user, and input by user deposit the coin amount of money and confirmation letter receiving After breath, coin request is deposited to this and is signed, coin request then will be deposited and be sent to contract function execution module;
Contract function execution module is further used for verifying the signature of terminal security module, according to depositing the coin amount of money and predefined Source coin tandem table is stored in strategy matching, then coin command information is deposited described in generation and is sent to the coin command information of depositing Terminal security module;
Terminal security module be further used for user show described in deposit coin command information, and in the confirmation message for receiving user Afterwards, the wallet terminal iidentification and certificate are verified, is then signed to the coin command information of depositing, coin instruction letter is deposited by described Breath is sent to contract function execution module;
Contract function execution module is further used for verifying the signature of terminal security module, then deposits coin command information hair by described Give the digital cash wallet server-side;
Contract function execution module, which is further used for receiving, deposits coin result information, confirms that the actual transfer amount of money is equal to what is cancelled The difference of the amount of money of source coin tandem table and the amount of money of small change whereabouts coin tandem table is stored in, is then stored in small change whereabouts coin tandem table.
10. system according to claim 8, which is characterized in that the digital cash wallet server-side includes:Wallet service Module, digital cash nucleus module and account nucleus module,
Wallet service module for receive it is described deposit coin command information, verify the wallet terminal signature, then deposit coin by described Command information is sent to digital cash nucleus module;
Digital cash nucleus module is used to verify the wallet terminal signature, then signs to the coin command information of depositing, And coin transfer request is deposited to generate with certificate for the coin command information addition server-side digital cash safe deposit box mark of depositing, by this It deposits coin transfer request and is sent to digital cash distribution registration end;
Digital cash nucleus module is further used for receiving transfer result information, and end signature is registered in verification digital cash distribution, and Confirm that the actual transfer amount of money is consistent with the deposit whereabouts coin tandem table amount of money, then by the deposit whereabouts coin tandem table It is stored in server-side digital cash safe deposit box;
Wallet service module is further used for receiving the transfer result information of digital cash nucleus module forwarding, and generates and include institute The request that keeps accounts for depositing coin command information and the actual transfer amount of money is stated, which is sent to account nucleus module;
Account nucleus module is used to determine that the wallet terminal iidentification is associated with wallet mark with the account of the pre-stored user Unanimously, then keep accounts the account of the user according to the actual transfer amount of money;
Account nucleus module is further used for generating the result information that keeps accounts, and the result information that will keep accounts is sent to wallet service mould Block, the result information that keeps accounts include:Keep accounts the amount of money, the account that keeps accounts, keep accounts before remaining sum, keep accounts after remaining sum;
Wallet service module is further used for keeping accounts result information according to and shifting result information generation depositing coin result information, And coin result information will be deposited and be sent to digital cash wallet terminal.
11. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-5 is realized during row.
CN201711470888.5A 2017-12-28 2017-12-28 Coin storage method and system based on digital currency wallet Active CN108229954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711470888.5A CN108229954B (en) 2017-12-28 2017-12-28 Coin storage method and system based on digital currency wallet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711470888.5A CN108229954B (en) 2017-12-28 2017-12-28 Coin storage method and system based on digital currency wallet

Publications (2)

Publication Number Publication Date
CN108229954A true CN108229954A (en) 2018-06-29
CN108229954B CN108229954B (en) 2020-11-03

Family

ID=62645935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711470888.5A Active CN108229954B (en) 2017-12-28 2017-12-28 Coin storage method and system based on digital currency wallet

Country Status (1)

Country Link
CN (1) CN108229954B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242482A (en) * 2018-07-31 2019-01-18 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109636601A (en) * 2018-11-30 2019-04-16 无锡井通网络科技有限公司 Digital asset management system
CN110852730A (en) * 2019-10-23 2020-02-28 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on digital currency and electronic equipment
CN113191869A (en) * 2019-10-31 2021-07-30 中国人民银行数字货币研究所 Digital currency account control method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330692A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 The circulation method and device of digital cash
CN107330784A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 A kind of method and system for exchanging digital cash
CN107358436A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 Method, the system paid by the digital cash wallet of bank account access registrar

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330692A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 The circulation method and device of digital cash
CN107330784A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 A kind of method and system for exchanging digital cash
CN107358436A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 Method, the system paid by the digital cash wallet of bank account access registrar

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242482A (en) * 2018-07-31 2019-01-18 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109636601A (en) * 2018-11-30 2019-04-16 无锡井通网络科技有限公司 Digital asset management system
CN109636601B (en) * 2018-11-30 2023-04-07 无锡井通网络科技有限公司 Digital asset management system
CN110852730A (en) * 2019-10-23 2020-02-28 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on digital currency and electronic equipment
CN110852730B (en) * 2019-10-23 2024-01-26 中国人民银行数字货币研究所 Transaction processing method and device based on digital currency and electronic equipment
CN113191869A (en) * 2019-10-31 2021-07-30 中国人民银行数字货币研究所 Digital currency account control method and device

Also Published As

Publication number Publication date
CN108229954B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US11651352B2 (en) Digital asset distribution by transaction device
DK2526514T3 (en) PROCEDURE, DEVICE AND SYSTEM FOR SECURING PAYMENT DATA BY TRANSMISSION THROUGH OPEN COMMUNICATION NETWORKS
CN103975352B (en) The stored value card that can be supplemented with money safely
CN108701305A (en) Digital asset is converted
US8271392B2 (en) Methods and systems for managing merchant screening
US20170214699A1 (en) System for conversion of an instrument from a non-secured instrument to a secured instrument in a process data network
US11245513B2 (en) System and method for authorizing transactions in an authorized member network
CN108229954A (en) It is a kind of that coin method and system is deposited based on digital cash wallet
WO2017160877A1 (en) Technical architecture supporting tokenized payments
CN107358436A (en) Method, the system paid by the digital cash wallet of bank account access registrar
CN107330691A (en) The method and system that a kind of digital cash wallet is paid
CN107392580A (en) It is a kind of to realize that digital cash exchanges the method and system of deposit based on digital cash
US20170178121A1 (en) System and method for providing instructions to a payment device
CN108133369A (en) A kind of digital cash exchanging method and system
CN107330784A (en) A kind of method and system for exchanging digital cash
CN110245925A (en) Electric paying method, system, device and computer readable storage medium
CN106251145A (en) Electronic fare payment system, electronic payment devices and electric paying method
US20170243202A1 (en) Transferable value or rights token
WO2017106227A1 (en) System and method for using multiple balances with a single payment device
CN108197937A (en) A kind of synchronous method, terminal and the system of digital cash wallet
US11710112B2 (en) Blockchain-based transaction kiosk
CN112037068B (en) Resource transfer method, system, device, computer equipment and storage medium
CN105913253A (en) Trade method and trade system of electronic signature device, and electronic signature device
US20190220848A1 (en) Linked Data Structures
CN103955827A (en) Money withdrawing method based on mobile phone terminal

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
GR01 Patent grant
GR01 Patent grant