CN111127004B - Method and device for backup mnemonic based on smart card - Google Patents
Method and device for backup mnemonic based on smart card Download PDFInfo
- Publication number
- CN111127004B CN111127004B CN201911406247.2A CN201911406247A CN111127004B CN 111127004 B CN111127004 B CN 111127004B CN 201911406247 A CN201911406247 A CN 201911406247A CN 111127004 B CN111127004 B CN 111127004B
- Authority
- CN
- China
- Prior art keywords
- mnemonic
- backup
- smart card
- user
- user password
- 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.)
- Active
Links
- 230000001343 mnemonic effect Effects 0.000 title claims abstract description 394
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000012795 verification Methods 0.000 claims abstract description 75
- 238000011084 recovery Methods 0.000 claims abstract description 19
- 230000008676 import Effects 0.000 claims abstract description 16
- 238000012545 processing Methods 0.000 claims description 18
- 230000005856 abnormality Effects 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 9
- 238000012790 confirmation Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000001172 regenerating effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000009486 mnemonic function Effects 0.000 description 1
- 230000009501 mnemonic process Effects 0.000 description 1
- 201000009240 nasopharyngitis Diseases 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/36—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
- G06Q20/367—Payment 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/3674—Payment 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/34—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3226—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/56—Financial cryptography, e.g. electronic payment or e-cash
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Abstract
The invention provides a method and a device for backup mnemonics based on a smart card, wherein the method comprises the following steps: the cold wallet receives a wallet creation instruction to generate a mnemonic; receiving a backup instruction and connecting the backup instruction to the smart card to generate a user password writing interface; setting a user password and a frequency threshold, and writing the user password and the frequency threshold into the smart card together with the mnemonic; generating a mnemonic check code and sending the mnemonic check code to the smart card; the intelligent card generates a verification check code, and when the verification check code is consistent with the verification check code of the mnemonic word, the input password and the threshold value of times are backed up; when the comparison is inconsistent and the backup times of the smart card are smaller than or equal to the preset backup times, the mnemonic word is reexplained; the cold wallet receives a wallet importing instruction and generates a password verification interface; receiving a user password and sending the user password to the smart card; when the user password is consistent with the input password by comparison, the smart card generates a reading instruction of the mnemonic word and sends the reading instruction to the cold wallet; the cold wallet reads and imports the mnemonic recovery wallet. The invention can simply, safely and reliably backup the mnemonic.
Description
Technical Field
The invention relates to the technical field of smart cards, in particular to a method and a device for backup mnemonics based on a smart card.
Background
Blockchain is a system formed gradually based on the architecture concepts of P2P network technology, encryption technology, time stamp technology, blockchain technology and the like. The block chain technology is increasingly paid attention to, and blocks are one by one storage unit and record all communication information of all block nodes within a certain time.
Blockchain technology is based on decentralization and trust through interaction of different participants, with ownership of their accounts being determined by digital keys, encrypted digital addresses, and digital signatures. The digital key is not actually stored in the network but is stored after being generated by the user in a file called wallet or simple database. The digital key stored in the user's wallet is completely independent of the encrypted digital protocol, and can be generated and managed by the user's wallet program without reference to the blockchain or access network. Keys implement many features including decentralised trust and control ownership authentication and cryptographic proof-based security models.
The generation method of the blockchain wallet comprises the following steps: generating a mnemonic, and generating a private key of a deterministic wallet according to the mnemonic; a public key may be generated from the private key; generating a wallet address from the public key; once the mnemonic is determined, the generated wallet is provided with control rights; security of mnemonics can be seen to be of particular and importance in blockchain technology.
In the existing blockchain technology, the current key backup has the following defects: when the wallet is created through handwriting mnemonic backup, a user needs to be prompted to record the characteristics of each mnemonic accurately and without errors in sequence, and the wallet is complex in operation, not easy to store and easy to lose; and when the mnemonic and the private key are backed up to the intelligent card SIM at the same time, the SIM is used when signing each time, the risk of losing the SIM is high, and the blockchain account is easy to lose.
The traditional mnemonic paper storage or artificial memory mode makes the operation of the user for backing up the mnemonic cumbersome, has low reliability and safety from the aspects of physical safety and information safety, and increases the risk of losing blockchain wallets and assets for the user.
Therefore, how to provide a backup mnemonic scheme with simple operation, safety, reliability and low risk is a technical problem to be solved in the field.
Disclosure of Invention
The invention aims to provide a method and a device for backing up mnemonics based on a smart card, which solve the technical problems of complicated operation, low safety and reliability and high risk of account loss of a user backing up mnemonics in the prior art.
In particular, the invention provides a method for backing up mnemonics based on a smart card, which comprises the following steps:
receiving a wallet creation instruction, and generating a mnemonic according to a preset mnemonic generation strategy;
receiving a backup instruction for backing up the mnemonic to the smart card, generating a user password writing interface and displaying;
setting a user password and a frequency threshold through the user password writing interface, and writing the user password and the frequency threshold into the smart card corresponding to the mnemonic word;
and generating a mnemonic check code according to the mnemonic security policy, and sending the mnemonic check code to the smart card for verification, and if the verification is successful, completing the mnemonic backup.
Optionally, the method further includes:
receiving a wallet importing instruction, generating a user password writing interface and displaying; receiving a user password and sending the user password to the intelligent card for verification;
receiving a message that the smart card is successfully verified;
and reading and importing the mnemonic recovery wallet from the intelligent card according to the verification success message.
Optionally, the method further includes:
if the user password verification fails and the remaining input times of the user password input do not exceed the time threshold range, re-inputting the user password;
if the user password verification fails and the remaining input times of the user password input exceeds the threshold range of times, the intelligent card is automatically locked, and the information of the automatic locking of the intelligent card is received and displayed.
Optionally, the method further includes: when the backup times of the smart card are larger than the preset backup times and/or abnormality with the smart card is detected, or when a user actively selects handwriting record mnemonics, a mnemonic display interface is generated and displayed;
after the user finishes recording the mnemonic, selecting to display the mnemonic again to confirm whether the recorded mnemonic is correct; or automatically checking the correctness of the mnemonic by the user inputting the recorded mnemonic.
Optionally, the method further includes: if the backup instruction for backing up the mnemonic to the intelligent card is not received within a certain time, generating and displaying a mnemonic display interface;
after the user finishes recording the mnemonic, selecting to display the mnemonic again to confirm whether the recording is correct; or automatically checking whether the recorded mnemonic is correct by the user inputting the recorded mnemonic.
On the other hand, the invention also provides a device for backing up the mnemonic based on the smart card, which is connected with the smart card in a wired or wireless way; comprising the following steps: the system comprises a wallet creation module, a mnemonic backup instruction receiving module, a mnemonic backup writing module and a mnemonic backup verification module; wherein,,
the wallet creation module is connected with the mnemonic backup instruction receiving module, receives a wallet creation instruction and generates mnemonics according to a preset mnemonic generation strategy;
the mnemonic backup instruction receiving module is connected with the wallet creating module and the mnemonic backup writing module, receives the backup instruction for backing up the mnemonic to the smart card, generates a user password writing interface and displays the user password writing interface;
the mnemonic backup writing module is connected with the mnemonic backup instruction receiving module and the mnemonic backup verification module, receives the set user password and the number threshold value, and writes the mnemonic corresponding to the mnemonic into the smart card;
and the mnemonic backup verification module is connected with the mnemonic writing module, generates a mnemonic verification code according to a mnemonic security policy and sends the mnemonic verification code to the smart card for verification, and if the verification is successful, the mnemonic backup is completed.
Optionally, the apparatus further includes: the mnemonic verification and import module is connected with the mnemonic backup verification module, receives a wallet importing instruction, generates a user password writing interface and displays the user password writing interface; receiving a user password and sending the user password to the smart card;
receiving a message that the smart card is successfully verified;
and reading and importing the mnemonic recovery wallet from the intelligent card according to the verification success message.
Optionally, the mnemonic verification import module is further configured to:
if the user password verification fails and the remaining input times of the user password input do not exceed the time threshold range, re-inputting the user password;
if the user password verification fails and the remaining input times of the user password input exceeds the threshold range of times, the intelligent card is automatically locked, and the information of the automatic locking of the intelligent card is received and displayed.
Optionally, the apparatus further includes: a handwriting input backup module comprising: handwriting input backup judging unit and handwriting input backup processing unit; wherein,,
the handwriting input backup judging unit is connected with the mnemonic backup verification module and the handwriting input backup processing unit, and when the backup times of the smart card are greater than the preset backup times and/or the abnormality of the smart card is detected or the user actively selects handwriting record mnemonic, a mnemonic display interface is generated and displayed;
the handwriting input backup processing unit is used for selecting to display the mnemonic again to confirm whether the recorded mnemonic is correct or not after the user finishes recording the mnemonic; or automatically checking the correctness of the mnemonic by the user inputting the recorded mnemonic.
Optionally, the device is further configured to: if the backup instruction for backing up the mnemonic to the intelligent card is not received within a certain time, generating and displaying a mnemonic display interface;
after the user finishes recording the mnemonic, selecting to display the mnemonic again to confirm whether the recording is correct; or automatically checking whether the recorded mnemonic is correct by the user inputting the recorded mnemonic.
According to the method and the device for the backup mnemonic based on the smart card, the smart card is used as a medium for storing the mnemonic, and the security mechanisms such as the read-write control and the authority control of the cold wallet are added to the smart card by taking the cold wallet as a medium for reading and writing the smart card, so that passwords and reading times are required to be set before the mnemonic is written in the smart card; when the introduction of the mnemonic from the smart card is required, the password can be read after success; if the password is wrong and exceeds the set times, the card is automatically locked and destroyed; the smart card is used as a medium for storing the backup mnemonic, so that the smart card has obvious advantages from the aspects of moisture resistance, theft resistance, loss resistance, storage time and the like compared with paper storage, and leakage of the mnemonic is not involved in the process of the smart card backup mnemonic, so that the security is stronger.
The contact/non-contact interface is added on the basis of a common cold wallet and is used for reading and writing the smart card; in the wallet creating process, the user replaces manual recording of the mnemonic by setting the smart card password, the reading and writing times, the backup mnemonic and other operation steps, and the efficiency and the safety of the backup mnemonic are improved to the greatest extent on the premise that the main stream of the wallet is not changed; when the mnemonic is needed to be imported, the password verification and the mnemonic reading can be carried out through the contact/non-contact interface of the device, and wallet recovery is carried out on the device after the mnemonic is successfully read. The existing safety technical means are fully utilized to replace the traditional ways of mnemonic paper storage or artificial memory, so that the convenience of the backup mnemonic is greatly improved; the reliability and the safety of the backup mnemonics are improved from the aspects of physical safety and information safety, and the risk of losing the blockchain wallet and the assets by the user is reduced.
The above, as well as additional objectives, advantages, and features of the present invention will become apparent to those skilled in the art from the following detailed description of a specific embodiment of the present invention when read in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter by way of example and not by way of limitation with reference to the accompanying drawings. The same reference numbers will be used throughout the drawings to refer to the same or like parts or portions. It will be appreciated by those skilled in the art that the drawings are not necessarily drawn to scale. In the accompanying drawings:
FIG. 1 is a flow diagram of a method for smart card based backup mnemonics in accordance with one embodiment of the present invention;
FIG. 2 is a flow chart of a method for smart card based backup mnemonics in accordance with a second embodiment of the present invention;
FIG. 3 is a flow chart of a method for smart card based backup mnemonics in accordance with a third embodiment of the present invention;
FIG. 4 is a flow chart of a method for smart card based backup mnemonics in accordance with a fourth embodiment of the present invention;
FIG. 5 is a flow chart of a method for smart card based backup mnemonics in accordance with a fifth embodiment of the present invention;
FIG. 6 is a flow chart of a mnemonic backup in a smart card based method for backing up mnemonics in accordance with an embodiment of the present invention;
FIG. 7 is a flow chart of mnemonic importation in a smart card backup mnemonic-based method in accordance with an embodiment of the present invention;
FIG. 8 is a schematic diagram of a smart card backup mnemonic-based device according to one embodiment of the present invention;
FIG. 9 is a schematic diagram of a connection between a cold wallet device and a smart card in a smart card backup mnemonic-based apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic structural view of a smart card-based device for backup mnemonics according to a second embodiment of the present invention;
FIG. 11 is a schematic structural view of a smart card-based device for backup mnemonics according to a third embodiment of the present invention;
FIG. 12 is a schematic structural view of a smart card-based device for backup mnemonics according to a fourth embodiment of the present invention;
fig. 13 is a schematic structural view of a smart card-based device for backup of mnemonics according to a fifth embodiment of the present invention.
Detailed Description
As shown in fig. 1, a flow chart of a method for backup help-recording words based on a smart card in this embodiment is shown, and the smart card is widely applied in the finance and social security industries, and the application security of the smart card is undoubted; the mnemonic consists of a plurality of words to form another form of private key, the private key can be generated through the mnemonic, and one mnemonic can generate infinite private keys, so that all wallet addresses under an account can be managed through one mnemonic. Using a smart card as a medium for storing the mnemonic, adding security mechanisms such as read-write control, authority control and the like, and setting a password and reading times before writing the mnemonic; when the mnemonic is required to be read, the password is required to be verified to be successfully read; if the password is wrong and exceeds the set times, the card is automatically destroyed; from the physical perspective, the smart card has obvious advantages compared with paper storage from the aspects of moisture resistance, theft resistance, loss resistance, storage time and the like.
Specifically, the method comprises the following steps:
The user initiates the wallet creation process from the mobile phone APP/computer through USB or Bluetooth, or initiates the wallet creation process from the device side through input devices such as keys/touch screens, and the device side automatically generates mnemonics according to BIP-39 (BIP: bit coin improvement proposal (Bitcoin Improvement Proposals abbreviation)).
The method can be implemented in a cold wallet, and the cold wallet is connected with the intelligent card in a communication way to cooperate with the intelligent card to realize the backup mnemonic function based on the intelligent card. Cold purses are control centers for blockchain cold purses, which refer to encrypted storage technologies by which blockchain digital asset secure storage solutions are provided. The cold wallet integrates the functions of digital currency storage, multiple transaction password setting, latest quotation and information release, hard bifurcation solution providing and the like, and can effectively prevent hackers from stealing. The cold wallet is used for creating wallet, transaction signature, mnemonic backup/import and other functions; after the wallet is established, the wallet is used for storing a wallet key; the system comprises a display unit for displaying mnemonics or transaction information; the device is provided with an input unit, such as a key or a touch screen, and is used for inputting information and other operations by a user; the device is provided with a USB or Bluetooth communication interface, and can communicate with devices such as a mobile phone, a PC and the like; the new mnemonic backup interface supports ISO7816 and/or ISO1443 interface protocol, and can communicate with an external smart card in a contact or non-contact NFC mode for communicating with the backup smart card to backup the mnemonic. The backup smart card supports ISO7816 and/or ISO1443 interface protocols, increases access authority control and frequency limit, and improves mnemonic security.
And 103, the smart card generates a verification check code according to a pre-agreed mnemonic security policy, and returns a backup success message when the verification check code is consistent with the mnemonic check code in comparison. 104, receiving a wallet guiding instruction by the cold wallet, connecting to the smart card, generating a user password writing interface and displaying; and receiving the user password and sending the user password to the smart card for verification.
Optionally, locking is performed when the number of times of user password input reaches or exceeds a threshold value of the number of times of user password input, and a password input exceeding number of times prompt is generated.
And 105, the smart card compares the user password with the password set by the user, and if the user password is consistent with the user password, the smart card feeds back a verification success message to the cold wallet.
And 106, the cold wallet reads and imports the mnemonic recovery wallet from the smart card according to the successfully verified information.
In some alternative embodiments, as shown in fig. 2, a flowchart of a second method for backing up mnemonics based on a smart card in this embodiment, unlike in fig. 1, further includes:
In some alternative embodiments, as shown in fig. 3, a flowchart of a third method for backing up mnemonics based on a smart card in this embodiment, unlike in fig. 1, further includes:
In some alternative embodiments, as shown in fig. 4, a flowchart of a fourth method for backing up mnemonics based on a smart card in this embodiment, unlike in fig. 1, further includes:
and 401, generating and displaying a mnemonic when the backup times of the smart card are larger than the backup times set by the cold Qian Baoyu and/or abnormality with the smart card is detected.
And when the backup times of the smart card are larger than the backup times set by the cold Qian Baoyu and/or communication abnormality with the smart card is detected, generating and displaying the mnemonic for a user to write the mnemonic, wherein the preset backup times are the backup times set by the cold money Bao Duan.
After the user finishes recording the mnemonic, the user can choose to display the mnemonic again for confirming whether the recorded mnemonic is correct or not; or automatically checking the correctness of the mnemonic by the cold wallet equipment through inputting the recorded handwriting mnemonic and verifying the handwriting mnemonic by the user, wherein the verification of the handwriting mnemonic is repeated for the input handwriting mnemonic and is used for verifying the correctness of the handwriting mnemonic input last time.
The backup of the mnemonic is carried out in two ways, namely handwriting backup, namely writing the mnemonic on paper or other carriers for backup; and the second type is smart card backup, namely recording the mnemonic on the smart card, and carrying out the mnemonic backup based on the smart card.
In some alternative embodiments, as shown in fig. 5, a flowchart of a fifth method for backing up mnemonics based on a smart card in this embodiment, unlike in fig. 1, further includes:
Alternatively, it may be further configured that: and after the cold wallet passes the preset time, the cold wallet does not receive a backup instruction for backing up the mnemonic to the intelligent card, and the mnemonic is generated and displayed.
The user handwriting records the mnemonic, and after the recording is completed, the mnemonic can be selected to be displayed again for the user to confirm whether the recorded mnemonic is correct or not; or automatically checking the correctness of the mnemonic by the cold wallet equipment through the recorded mnemonic input by the user, and if the recorded mnemonic is correct, clearing the handwritten mnemonic and verifying the handwritten mnemonic.
In some alternative embodiments, as shown in fig. 6, a flowchart of a method for backing up mnemonic in a smart card-based method for backing up mnemonics according to an application embodiment of the present embodiment, the method includes the following steps:
Optionally, inputting a password according to a screen prompt through input devices such as a key/a touch screen and writing the password into the smart card through a smart card interface; i.e. the password is written to the smart card via the smart card interface ISO7816 or ISO 14443. The user can set the maximum number of verification according to the screen prompt through input devices such as a key/a touch screen and the like, and write the maximum number into the smart card, so that when the user password verification fails and the residual input number of the user password input exceeds the maximum number, the smart card is locked, and the data security of the smart card is ensured.
Before the mnemonic is backed up to the intelligent card, the equipment end establishes connection with the intelligent card in a contact or non-contact mode and then backs up the mnemonic to the intelligent card.
In this embodiment, the conventional handwriting recording and word-assisting process is still maintained, and when the card is damaged or the card cannot be backed up due to uncertain factors such as abnormal communication, the method can be switched to the handwriting recording and word-assisting process, and the automatic backup process can be continued by replacing the card, reinserting the card and the like. In addition, when the user does not select the intelligent card backup mnemonic or the number of times of the intelligent card backup mnemonic is more than N, the handwriting recording mnemonic process is started.
In some alternative embodiments, fig. 7 is a schematic flow chart of a method for implementing a smart card-based backup mnemonic according to this embodiment, where the method includes the following steps:
in step 701, the wallet importing process is initiated through a key or a touch screen, and the wallet importing process is initiated by a user from the equipment end through the key or the touch screen.
The intelligent card importing mnemonic option is handwriting importing mnemonic or intelligent card importing mnemonic, and the option is displayed on the equipment side.
In step 703, when the user selects the handwriting input mnemonic, the mnemonic is input through a key or a touch screen, and the wallet is restored according to the mnemonic confirmed by the user.
When the user selects to import the mnemonic from the smart card, the device prompts the user to connect the smart card, the user inserts the smart card through the smart card interface device or connects with the smart card through other wired/wireless modes, and the card connection state is displayed in real time.
If the mnemonic reading is successful, the wallet is restored according to the read mnemonic; if the mnemonic is not too far connected, the reading fails due to magnetic field interference and the like, the password is input again, and the mnemonic is read. After the wallet is successfully recovered, the mnemonic words are successfully imported from the intelligent card; if the wallet is failed to recover, the operations of inputting the password again, reading the mnemonic and the like are needed.
The two processes are the complete process of the intelligent card backup mnemonic/importing wallet, and the intelligent card backup/importing process is embedded into the wallet creation/recovery process on the basis of reserving the traditional handwriting recording mnemonic, so that the security of the mnemonic is improved, and the convenience of users is greatly improved.
In some alternative embodiments, as shown in fig. 8 and 9, fig. 8 is a schematic structural diagram of a device based on smart card backup mnemonics in this embodiment; fig. 9 is a schematic diagram of a connection between a cold wallet and a smart card in a smart card-based device for backup mnemonic, which may be used to implement the method for backup mnemonic based on a smart card according to the present embodiment. Specifically, the device 800 may be a cold wallet connected to the smart card 806 by a wired or wireless means, including: wallet creation module 801, mnemonic backup instruction receiving module 802, mnemonic backup writing module 803, mnemonic backup verification module 804 and mnemonic verification import module 805.
The wallet creating module 801 is connected to the mnemonic backup instruction receiving module 802, receives a wallet creating instruction, and generates a mnemonic according to a preset mnemonic generating policy.
The mnemonic backup instruction receiving module 802 is connected with the wallet creating module 801 and the mnemonic backup writing module 803, receives a backup instruction for backing up the mnemonic to the smart card, is connected to the smart card, and generates and displays a user password writing interface; and receiving the input password and the frequency threshold, and writing the input password and the frequency threshold into the smart card corresponding to the mnemonic.
The mnemonic backup writing module 803 is connected with the mnemonic backup instruction receiving module 802 and the mnemonic backup verifying module 804, receives the set user input password and the number threshold, and writes the mnemonic corresponding to the mnemonic into the smart card.
The mnemonic backup verification module 804 is connected with the mnemonic backup writing module 803 and the mnemonic verification importing module 805, receives the message that the smart card finishes verification and backs up the mnemonic, the input password and the frequency threshold value, and finishes the mnemonic backup; when receiving the information that the smart card does not complete verification and the backup times are smaller than or equal to the preset backup times, redisplaying the mnemonic words;
the mnemonic verification import module 805 is connected with the mnemonic backup verification module 804, receives the instruction of importing the wallet, generates a user password write interface and displays the user password write interface; receiving a written password and sending the written password to the smart card; receiving a message that the smart card is successful; and reading and importing the mnemonic recovery wallet according to the successfully verified message.
Optionally, the device may further be configured to: if the backup instruction for backing up the mnemonic to the smart card is not received within a certain time, generating and displaying a mnemonic display interface; after the user finishes recording the mnemonic, selecting to display the mnemonic again to confirm whether the record is correct; or automatically checking whether the recorded mnemonic is correct by the user inputting the recorded mnemonic.
In some alternative embodiments, as shown in fig. 10, which is a schematic structural diagram of a second device 1000 based on smart card backup mnemonic in this embodiment, unlike in fig. 8, the mnemonic verification import module 805 includes: the mnemonic import processing unit 1001 and the smart card lock presentation unit 1002.
The mnemonic import processing unit 1001 is connected with the mnemonic backup verification module 804 and the smart card locking display unit 1002, receives a reading instruction of the mnemonic generated by the smart card after the user password verification, reads and imports the mnemonic according to the reading instruction, and is used for recovering the wallet.
And the smart card lock display unit 1002 is connected with the mnemonic word introduction processing unit 1001, and receives and displays a message that the smart card does not finish the user password verification and is automatically locked.
In some alternative embodiments, as shown in fig. 11, which is a schematic structural diagram of a third device 1100 for backup mnemonic based on a smart card in this embodiment, unlike in fig. 8, the mnemonic importing module 805 includes: wallet restoration processing unit 1101 and wallet restoration failure processing unit 1102.
The wallet recovery processing unit 1101 is connected to the mnemonic backup verification module 804 and the wallet recovery failure processing unit 1102, receives a reading instruction of the mnemonic generated by the smart card after the user password verification, reads and imports the mnemonic recovery wallet according to the reading instruction.
The wallet recovery failure processing unit 1102 is connected with the wallet recovery processing unit 1101, and regenerates and displays the password verification interface when the introduction of the mnemonic fails and/or the recovery of the wallet fails.
In some alternative embodiments, as shown in fig. 12, a schematic structural diagram of a fourth device 1200 based on smart card backup mnemonics in this embodiment, unlike in fig. 8, further includes: handwriting input backup module 1201 comprises: handwriting input backup determination section 1202 and handwriting input backup processing section 1203.
The handwriting input backup determination unit 1202 is connected with the mnemonic backup verification module 804 and the handwriting input backup processing unit 1203, and generates and displays a mnemonic display interface when the backup number of the smart card is greater than the preset backup number and/or abnormality with the smart card is detected or the user actively selects the handwriting record mnemonic.
The handwriting input backup processing unit 1203 is connected with the handwriting input backup judging unit 1202, receives handwriting mnemonics input by a user and verifies the handwriting mnemonics, and displays the handwriting mnemonics on a handwriting input interface of the user; when a confirmation instruction for correctly writing the mnemonic is received, the writing mnemonic is cleared and verified. When the handwriting mnemonic is incorrect, generating a prompt message of incorrect mnemonic and displaying, and if the input times of the handwriting mnemonic exceeds the preset maximum input times of the handwriting mnemonic or a confirmation instruction of correct handwriting mnemonic is not received for a certain time, regenerating a handwriting input interface of the user according to a preset mnemonic generating strategy and displaying.
In some alternative embodiments, as shown in fig. 13, which is a schematic structural diagram of a fifth device 1300 based on smart card backup mnemonics in this embodiment, unlike in fig. 8, the wallet creating module 801 includes: the smart card backup mnemonic wallet creation unit 1301 and the handwriting backup mnemonic wallet creation unit 1302.
The smart card backup mnemonic wallet creating unit 1301 is connected to the mnemonic backup instruction receiving module 802, receives a wallet creating instruction, analyzes the wallet creating instruction to obtain a smart card backup mnemonic instruction, and generates and displays a mnemonic according to a preset mnemonic generating strategy.
The handwriting backup mnemonic wallet creation unit 1302 is connected with the smart card backup mnemonic wallet creation unit 1301, analyzes that the wallet creation instruction does not obtain the smart card backup mnemonic instruction, generates a handwriting input interface of the user and displays the handwriting input interface. Receiving handwriting mnemonics input by a user and verifying the handwriting mnemonics, and displaying the handwriting mnemonics on a handwriting input interface of the user; and when a confirmation instruction of the handwriting mnemonic is received, the handwriting mnemonic is cleared and verified.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application. It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.
Claims (8)
1. The device for backing up the mnemonic based on the smart card is characterized by being connected with the smart card in a wired or wireless mode; comprising the following steps: the system comprises a wallet creation module, a mnemonic backup instruction receiving module, a mnemonic backup writing module and a mnemonic backup verification module; wherein,,
the wallet creation module is connected with the mnemonic backup instruction receiving module, receives a wallet creation instruction, and generates and displays mnemonics according to a preset mnemonic generation strategy;
the mnemonic backup instruction receiving module is connected with the wallet creating module and the mnemonic backup writing module, receives the backup instruction for backing up the mnemonic to the smart card, is connected to the smart card, and generates and displays a user password writing interface;
the mnemonic backup writing module is connected with the mnemonic backup instruction receiving module and the mnemonic backup verification module, receives the set user password and the number threshold value, and writes the mnemonic corresponding to the mnemonic into the smart card;
the mnemonic backup verification module is connected with the mnemonic writing module, generates a mnemonic verification code according to a mnemonic security policy and sends the mnemonic verification code to the smart card for verification, and if verification is successful, the mnemonic backup is completed;
further comprises: a handwriting input backup module comprising: handwriting input backup judging unit and handwriting input backup processing unit; wherein,,
the handwriting input backup judging unit is connected with the mnemonic backup verification module and the handwriting input backup processing unit, and when the backup times of the smart card are greater than the preset backup times and/or the smart card is detected to be abnormal, or the user actively selects handwriting recording mnemonic, a mnemonic display interface is generated and displayed for the user to write recording mnemonic;
the handwriting input backup processing unit is used for selecting to display the mnemonic again to confirm whether the recorded mnemonic is correct or not after the user finishes recording the mnemonic; or automatically checking the correctness of the mnemonic by the user inputting the recorded mnemonic.
2. The smart card backup mnemonic-based apparatus as defined in claim 1, further comprising: the mnemonic verification and import module is connected with the mnemonic backup verification module, receives a wallet importing instruction, generates a user password writing interface and displays the user password writing interface; receiving a user password and sending the user password to the smart card;
receiving a message that the smart card is successfully verified;
and reading and importing the mnemonic recovery wallet from the intelligent card according to the verification success message.
3. The smart card backup mnemonic-based apparatus as claimed in claim 2, wherein the mnemonic verification import module is further configured to:
if the user password verification fails and the remaining input times of the user password input do not exceed the time threshold range, re-inputting the user password;
if the user password verification fails and the remaining input times of the user password input exceeds the threshold range of times, the intelligent card is automatically locked, and the information of the automatic locking of the intelligent card is received and displayed.
4. The smart card backup mnemonic-based apparatus of claim 1, further configured to: if the backup instruction for backing up the mnemonic to the intelligent card is not received within a certain time, generating and displaying a mnemonic display interface;
after the user finishes recording the mnemonic, selecting to display the mnemonic again to confirm whether the recording is correct; or automatically checking whether the recorded mnemonic is correct by the user inputting the recorded mnemonic.
5. A method for backup mnemonic based on a smart card, applied to the device based on backup mnemonic of any one of claims 1 to 4, comprising:
receiving a wallet creation instruction, generating and displaying a mnemonic according to a preset mnemonic generation strategy;
receiving a backup instruction for backing up the mnemonic to the intelligent card, connecting the memory to the intelligent card, generating a user password writing interface and displaying the user password writing interface;
setting a user password and a frequency threshold through the user password writing interface, and writing the user password and the frequency threshold into the smart card corresponding to the mnemonic word;
generating a mnemonic check code according to a mnemonic security policy, and sending the mnemonic check code to the smart card for verification, and if the verification is successful, completing the mnemonic backup;
when the backup times of the smart card are larger than the preset backup times and/or abnormality with the smart card is detected, or when a user actively selects handwriting recording mnemonics, a mnemonic display interface is generated and displayed for the user to handwriting recording mnemonics;
after the user finishes recording the mnemonic, selecting to display the mnemonic again to confirm whether the recorded mnemonic is correct; or automatically checking the correctness of the mnemonic by the user inputting the recorded mnemonic.
6. The smart card backup mnemonic-based method as defined in claim 5, further comprising:
receiving a wallet importing instruction, generating a user password writing interface and displaying; receiving a user password and sending the user password to the intelligent card for verification;
receiving a message that the smart card is successfully verified;
and reading and importing the mnemonic recovery wallet from the intelligent card according to the verification success message.
7. The smart card backup mnemonic-based method as defined in claim 6, further comprising:
if the user password verification fails and the remaining input times of the user password input do not exceed the time threshold range, re-inputting the user password;
if the user password verification fails and the remaining input times of the user password input exceeds the threshold range of times, the intelligent card is automatically locked, and the information of the automatic locking of the intelligent card is received and displayed.
8. The smart card backup mnemonic-based method as defined in claim 5, further comprising: if the backup instruction for backing up the mnemonic to the intelligent card is not received within a certain time, generating and displaying a mnemonic display interface;
after the user finishes recording the mnemonic, selecting to display the mnemonic again to confirm whether the recording is correct; or automatically checking whether the recorded mnemonic is correct by the user inputting the recorded mnemonic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911406247.2A CN111127004B (en) | 2019-12-31 | 2019-12-31 | Method and device for backup mnemonic based on smart card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911406247.2A CN111127004B (en) | 2019-12-31 | 2019-12-31 | Method and device for backup mnemonic based on smart card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111127004A CN111127004A (en) | 2020-05-08 |
CN111127004B true CN111127004B (en) | 2023-06-30 |
Family
ID=70506075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911406247.2A Active CN111127004B (en) | 2019-12-31 | 2019-12-31 | Method and device for backup mnemonic based on smart card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111127004B (en) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960907A (en) * | 2017-12-26 | 2019-07-02 | 航天信息股份有限公司 | A kind of method for identifying ID and equipment |
CN109474424B (en) * | 2018-12-17 | 2020-08-18 | 江苏恒宝智能系统技术有限公司 | Block chain account key backup and recovery method and system |
-
2019
- 2019-12-31 CN CN201911406247.2A patent/CN111127004B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111127004A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6062472A (en) | System and method for increasing a value of an electronic payment card including performing a restore transaction in response to interruption of a value increase transaction | |
CN111130602B (en) | Near field communication card data writing system, method, device and medium | |
JP4651212B2 (en) | Portable information storage medium and authentication method thereof | |
CN102930435A (en) | Authentication method and system for mobile payment | |
CN101783039A (en) | Method and terminal for controlling security of financial transactions | |
CN105225359A (en) | Nothing based on Quick Response Code blocks withdraw the money method and finger print identifying server | |
CN113450092A (en) | Block chain network-based article safe and efficient transaction method, system and storage medium | |
CN108681890A (en) | Processing method, processing equipment and the processing system of private information | |
AU2013234799B2 (en) | External log storage in an asset storage and transfer system | |
JP2019074775A (en) | Ic card magnetic data automatic recovery method and automatic transaction device | |
CN100535937C (en) | Method and system for user authentication in a digital communication system | |
CN111967872B (en) | Bank card activation method, device and system | |
CN111127004B (en) | Method and device for backup mnemonic based on smart card | |
US10210512B2 (en) | Transaction count synchronization in payment system | |
CN102176227A (en) | Signing testifying method and auxiliary signing testifying system | |
CN104809810B (en) | A kind of method and device for being used to detect bank's magnetic stripe card copy card | |
CN111127019B (en) | Method, system and device for backing up mnemonic words | |
CN110443595A (en) | For executing the method and system of security data exchange | |
JP7203615B2 (en) | Magnetic stripe auto-repair system | |
WO2017197689A1 (en) | Sim card processing method and apparatus, terminal, and esam chip | |
CN102880819A (en) | Password setting method and system for users outside system and password setting center | |
CN102122332A (en) | Method and system for managing password of electronic signing tool | |
CN104134025A (en) | Mobile terminal locking method and device based on SIM cards and mobile terminal | |
CN111130762B (en) | Key storage and electronic wallet recovery method | |
JPH10143442A (en) | Certificate card and password invalid state recovering 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |