CN109408085A - Upgrade method, device, system and the storage medium of hardware wallet - Google Patents

Upgrade method, device, system and the storage medium of hardware wallet Download PDF

Info

Publication number
CN109408085A
CN109408085A CN201811135382.3A CN201811135382A CN109408085A CN 109408085 A CN109408085 A CN 109408085A CN 201811135382 A CN201811135382 A CN 201811135382A CN 109408085 A CN109408085 A CN 109408085A
Authority
CN
China
Prior art keywords
hardware wallet
firmware updating
bundling
updating packet
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811135382.3A
Other languages
Chinese (zh)
Inventor
唐毅
周利宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Harmony Software Co Ltd
Original Assignee
Shanghai Harmony Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Harmony Software Co Ltd filed Critical Shanghai Harmony Software Co Ltd
Priority to CN201811135382.3A priority Critical patent/CN109408085A/en
Publication of CN109408085A publication Critical patent/CN109408085A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Health & Medical Sciences (AREA)
  • Virology (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses upgrade method, device, system and the storage mediums of a kind of hardware wallet, the two dimensional code shown in the hardware wallet acquisition terminal equipment, two dimensional code is parsed to obtain bundling subdata, and bundling subdata is merged into firmware updating packet to complete the upgrading of hardware wallet.The transmission of firmware updating packet is carried out using the scanning and parsing of two dimensional code, it realizes and firmware updating packet needed for the upgrading of hardware wallet is transferred on hardware wallet, so that during firmware updating packet transmission, the infection of hardware wallet is avoided to wooden horse or virus or hacker attack hardware wallet, to strengthen the security protection rank of hardware wallet.

Description

Upgrade method, device, system and the storage medium of hardware wallet
Technical field
The present invention relates to digital asset field more particularly to a kind of upgrade method, device, system and the storages of hardware wallet Medium.
Background technique
Hardware wallet, which refers to, is individually stored in digital asset private key in one chip, is isolated with internet, plug and play. The support that new token wallet must be just updated when hardware wallet needs to store new digital asset, needs to hardware wallet Carry out system upgrade.Existing upgraded in offline mode is that the insertion of hardware wallet has downloaded the computer of firmware updating packet or with aobvious Show that the packaged type terminal device of function, hardware wallet could complete the upgrading of system.This implementation, due to hardware wallet Have the insert action of the packaged type terminal device with computer or with display function will lead to hardware wallet can infect computer or Wooden horse or virus on packaged type terminal device with display function, such upgraded in offline mode can give the safety of hardware wallet Bring hidden danger, it is easy to by hacker attack and lose private key, cause damages to vast digital asset holder.Therefore, How to improve the class of safety protection of digital asset be in the prior art urgent need to resolve the technical issues of.
Summary of the invention
The main purpose of the present invention is to provide upgrade method, device, system and the storage medium of a kind of hardware wallet, purports In the technical problem for solving hardware wallet upgrading safety.
To achieve the above object, the present invention provides a kind of upgrade method of hardware wallet, the upgrading side of the hardware wallet Method the following steps are included:
The hardware wallet acquires the multiple two dimensional codes shown on the terminal device, and carries out to the multiple two dimensional code Parsing, to obtain multiple bundling subdatas;
The hardware wallet merges the multiple bundling subdata, to obtain firmware updating packet;
The hardware wallet installs the firmware updating packet, completes upgrading.
Optionally, the step of hardware wallet installs the firmware updating packet, completes upgrading include:
After the hardware wallet is decrypted firmware updating packet by the first public key corresponding with first private key, obtain Firmware updating packet after to decryption, wherein first private key of the firmware updating coating terminal device is encrypted;
The hardware wallet installs the firmware updating packet after the decryption, completes upgrading.
The present invention also provides a kind of upgrade methods of hardware wallet, are applied to terminal device, the upgrading of the hardware wallet Method the following steps are included:
The terminal device obtains firmware updating packet, and the firmware updating packet is carried out bundling, obtains multiple bundling Data;
The terminal device generates multiple two dimensional codes according to the multiple bundling subdata is corresponding, and by multiple two dimensions Code is shown.
Optionally, the step of terminal device acquisition firmware updating packet includes:
The terminal device obtains the firmware updating packet, and is added by the first private key to the firmware updating packet It is close, wherein first private key is corresponding with the first public key, and first public key is for decrypting firmware updating packet.
Optionally, the terminal device obtains the step of firmware updating packet further include:
The terminal device downloads firmware updating packet from server, wherein the firmware updating is coated with the server In the first private key encrypted, first private key is corresponding with the first public key, and first public key is for decrypting firmware updating Packet.
In addition, to achieve the above object, the present invention also provides a kind of hardware wallet update device, the hardware wallet upgrading Device includes terminal device and hardware wallet, and the hardware wallet includes memory, processor and is stored in the memory Hardware wallet upgrade procedure that is upper and can running on the processor, wherein the hardware wallet upgrade procedure is by the place The step of reason device realizes the upgrade method of hardware wallet as described above when executing.
In addition, to achieve the above object, the present invention also provides a kind of hardware wallet upgrade-system, the hardware wallet upgrading System includes the terminal device, the hardware wallet and hardware wallet upgrade procedure, and the hardware wallet upgrade procedure is by institute The step of realizing the upgrade method of hardware wallet as described above when stating terminal device and hardware wallet execution.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Hardware wallet upgrade-system is stored on storage medium, the hardware wallet upgrade-system realizes institute as above when being executed by processor The step of upgrade method for the hardware wallet stated.
Based on the technical problem of wallet upgrading safety, the present invention proposes upgrade method, device, the system of a kind of hardware wallet And storage medium, the system of the hardware wallet use Ubuntu system, the relevant task of all systems is equal in Ubuntu system It is its a big characteristic that Sudo instruction, which need to be used, and this mode is than traditional side for being managed work with administrator account Formula is safer, user program be mounted in Ubuntu system be mounted on Windows, Android, on single-chip microcontroller compared with, Safety is higher, so that the hardware wallet is avoided by hacker attack;Described device includes for packaging encryption to firmware updating The first private key acted on and the first public key for decrypting and verifying to firmware updating packet, by firmware updating packet bundling at bundling number Two dimensional code is generated accordingly and by the bundling data, the encryption upgrading of hardware wallet is transmitted using the scanning and parsing of two dimensional code Firmware packet, using the characteristic of two dimensional code visual recognition, firmware updating packet needed for realizing the upgrading of hardware wallet is transferred to hardware money It wraps, so that avoiding the infection of hardware wallet during firmware updating packet transmission and being attacked to wooden horse or virus or hacker Hardware wallet is hit, to strengthen the security protection rank of hardware wallet.
Detailed description of the invention
Fig. 1 is the frame diagram for the hardware wallet upgraded in offline device that solution of the first embodiment of the present invention is related to;
Fig. 2 is the frame diagram for the data bundling module that the first and second embodiments scheme of the present invention is related to;
Fig. 3 is the upgrade method flow chart for the hardware wallet that solution of the first embodiment of the present invention is related to.
Fig. 4 is the frame diagram for the hardware wallet upgraded in offline device that second embodiment of the invention scheme is related to;
Fig. 5 is the upgrade method flow chart for the hardware wallet that second embodiment of the invention scheme is related to.
Fig. 6 is the upgrade method flow chart for the hardware wallet that third embodiment of the invention scheme is related to.
Fig. 7 is the upgrade method flow chart for the hardware wallet that fourth embodiment of the invention scheme is related to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Embodiment one
As shown in Figure 1, Fig. 1 is the frame diagram for the hardware wallet upgraded in offline device that this embodiment scheme is related to.
Hardware wallet upgraded in offline device described in the present embodiment includes server, the packaged type terminal with display function Equipment and hardware wallet.
In the present embodiment, the server mainly provides data management, data sharing, data and system maintenance and concurrently controls System etc., specifically, the server is for firmware updating packet needed for the upgrading of storage hardware wallet.The server and with display Communication link is established between the packaged type terminal device of function, it is therefore preferable to radio communication system, the radio communication Mode be preferably WIFI, 4G and 5G.Packaged type terminal device in the present embodiment with display function is for installing APP User program, user download firmware updating packet, the band display function by operating the APP user program from server Packaged type terminal device can be PC, be also possible to smart phone, tablet computer, E-book reader, portable computer, Wearable device etc..
In the present embodiment, APP on packaged type terminal device of the user's operation with display function obtains hardware wallet liter Download address of the firmware updating packet in the server, is downloaded from server by way of radio communication needed for grade After firmware updating packet, the firmware updating packet is transferred to by hardware wallet by image recognition technology, the hardware wallet receives To the firmware updating packet, the firmware updating packet is installed, to complete the upgraded in offline operation of hardware wallet.Described image is known Other technology is preferably two dimensional code identification technology.
Further, for hardware wallet by hacker attack, the hardware wallet in the present embodiment can be based on Ubuntu in order to prevent System is run, and can also be run in other systems in specific implementation.Ubuntu is an open source based on desktop application GNU/Linux operating system, Ubuntu are widely used in PC, cloud computing and all Intelligent internet of things equipment. It is its a big characteristic that the relevant task of all systems, which is both needed to instruct using Sudo, in Ubuntu system, and this mode is than traditional Safer in such a way that administrator account is managed work, user program is mounted in Ubuntu system and is mounted on It is compared on Windows, Android, single-chip microcontroller, safety is higher.Hardware wallet based on Ubuntu system can reach work The stability of industry rank is realized 20 days and is not crashed and do not restart.
Further, also comprising the first private for packaging encryption effect to firmware updating on server described in the present embodiment Key;The first public key decrypted and verified for the firmware updating packet is stored in hardware wallet.
Further, the present embodiment also includes the second public key and the second private key, and second public key on hardware wallet for signing The sign test of name transaction, signature of second private key for digital asset transaction on hardware wallet, the second private key are stored in hardware On wallet, second public key is set as readily available by internet, is not construed as limiting in the present embodiment with regard to its storage address.
It further include data bundling module on the packaged type terminal device with display function in the present embodiment, it is described Data bundling module be used for mode is downloaded by wireless communication from server firmware updating packet bundling into bundling data and It is converted into the two dimensional code comprising bundling data.
It further, further include acquisition module, parsing module and data combiners block on hardware wallet described in the present embodiment. The acquisition module is for acquiring the two dimensional code comprising bundling data;The parsing module is parsed into pair for parsing two dimensional code The bundling data answered;The data combiners block is used to the bundling data being merged into firmware updating packet.
In the present embodiment, APP on packaged type terminal device of the user's operation with display function passes through radio communication Mode from server download firmware updating packet after, the data bundling module is by the firmware updating packet bundling at bundling number According to be converted into the two dimensional code comprising bundling data, the acquisition module on hardware wallet is by two dimensional code identification technology to acquire The two dimensional code comprising bundling data is stated, the parsing module collects the two dimensional code comprising bundling data according to acquisition module, will The two dimensional code is parsed into corresponding bundling data, the bundling data that the data combiners block is parsed according to the parsing module The bundling data are merged into firmware updating packet.
Specifically, as shown in Fig. 2, the data bundling module includes data bundling unit and two dimensional code generation unit, institute Data bundling unit is stated at bundling data, the two dimensional code generation unit to be by the bundling by the firmware updating packet bundling Data generate QR code code, and QR full name Quick Response Code, compared with other two-dimensional bar codes, it has information capacity Greatly, high reliablity, can indicate Chinese character and image kinds of words information, the advantages that security and antiforge purpose is strong.Two dimension of the present invention The bundling data are generated QR code code by code generation unit, the two dimension using QR code as transmission firmware updating bag data Code carrier.
Wherein, the data bundling unit is by the firmware updating packet bundling at bundling data, the bundling data format For binary file, there are three the reason of bundling data are binary file: first, binary file, which compares, saves space, than Such as store the data of Real*4: 3.1415927, text file needs 9 bytes, store respectively: 3.1 415927 this 9 A ASCII value, and binary file only needs 4 bytes (DB 0F 49 40);Second, the data of calculating are participated in all in memory It is to be stored with binary system is unformatted, therefore, using binary storage to file with regard to faster.If being stored as text text Part then needs the process of a conversion.When data volume is very big, the two just has apparent velocity contrast;Third, one A little more accurate data, not will cause the loss of significance bit using binary storage.
In the present embodiment, the first private key encrypts the firmware updating packet on server, therefore the firmware updating The reliable and safe of its data is protected during coating downloads to the packaged type terminal device with display function; Similarly, encrypted firmware updating packet is generated two dimension by the data bundling module on the packaged type terminal device with display function Code and the two dimensional code are merged by the acquisition module acquisition on hardware wallet, parsing module parsing, data combiners block, firmly The first public key on part wallet is decrypted and verifies to the firmware updating packet for completing to merge, and so ensure that the upgrading Firmware bag data it is reliable and safe.The infection of hardware wallet is avoided to wooden horse or virus and hacker attack hardware wallet, thus Strengthen the security protection rank of hardware wallet.
What the maximum data capacity of one two dimensional code was usually fixed, the maximum data capacity of the QR code code is 1167 bytes.The size of firmware updating packet needed for the upgrading of hardware wallet described in the present embodiment is likely to be greater than one two Code is tieed up, if the size of the firmware updating packet is greater than a two dimensional code, the two dimensional code generation unit can be by the upgrading The data that firmware packet completes bundling generate more than two two dimensional codes.In order to guarantee to form the multiple two dimensional codes of firmware updating packet Integrality, i.e., packet loss, the two dimensional code generation unit do not set the two dimensional code generated in the packaged type terminal with display function It stores, arrange, show according to specific naming method in equipment.For example, firmware updating packet generates 100 two dimensional codes, institute The storage of two dimensional code is stated, arranges, be shown as 100-001,100-002,100-N, 100-100.In this way, acquisition module is in two dimensional code Acquisition and parsing operating process in, the leakage detection for enhancing two dimensional code is filled a vacancy and error correcting capability.
Firmware updating packet bundling is completed and after being converted into two dimensional code, the transmission of the firmware updating packet be exactly include upgrading The transmission of the two dimensional code of firmware packet bundling data, the transmission are actually the work of acquisition module and parsing module, this implementation Acquisition module described in example is specifically camera.Since the scanning of two dimensional code, identification are the prior arts, the present embodiment is not chatted It states.
Further, as shown in figure 3, the present embodiment also proposes the upgrade method of a hardware wallet, specific steps are as follows:
The first private key on server using rivest, shamir, adelman to firmware updating packet needed for the upgrading of hardware wallet into Row encryption;
Packaged type terminal device with display function and server establish a communications link connection relationship and to be shown in band APP user program is installed on the packaged type terminal device of function;
With operating downloading of the firmware updating packet in the server needed for APP user program obtains the upgrading of hardware wallet The firmware updating packet encrypted is downloaded to the packaged type with display function from server by way of radio communication by location On terminal device;The mode of the radio communication is preferably WIFI, 4G and 5G;
Bundling operation is carried out to the firmware updating packet downloaded, by the firmware updating packet bundling at bundling data, will be divided Volume data split into n bundling subdata, and n is greater than or equal to 2, and the data value of each bundling subdata is not more than two dimensional code capacity Threshold value;
N two dimensional code is generated, each two dimensional code is encoded to obtain by a bundling subdata in n two dimensional code;
The n two dimensional code is successively shown on the packaged type terminal device with display function;
Scan the n two dimensional code shown on the packaged type terminal device with display function;
The collected n two dimensional code is parsed, n bundling subdata is parsed into;
The n bundling subdata is merged into firmware updating packet;
The first public key on hardware wallet using rivest, shamir, adelman to the firmware updating packet merged be decrypted with Verifying;
Firmware updating packet is installed on hardware wallet, completes upgrading.
It is avoided infection during upgraded in offline based on hardware wallet virus or wooden horse or by the attack of hacker, this implementation Example proposes the upgrade method of hardware wallet based on Ubuntu system a kind of, in the present embodiment, the reason of using Ubuntu system There are three: first, Ubuntu are the open source GNU/Linux operating system based on desktop application, and Ubuntu is widely applied In PC, cloud computing and all Intelligent internet of things equipment;The relevant task of all systems in second, Ubuntu system Being both needed to instruct using Sudo is its a big characteristic, and this mode is managed work than traditional with administrator account Mode is safer, user program be mounted in Ubuntu system be mounted on Windows, Android, on single-chip microcontroller compared with, Its safety is higher;Third, the hardware wallet based on Ubuntu system reach the other stability of technical grade, do not crash within 20 days and not Restart.In the present embodiment, hardware wallet needs to download firmware updating packet and completes upgrading, in order to which the safety for improving digital asset is anti- Shield, hardware wallet do not take the mode of operation for being inserted into the computer or mobile terminal of having downloaded firmware updating packet again.Band display function The packaged type terminal device of energy downloads from a server the firmware updating packet encrypted using rivest, shamir, adelman, data point For roll unit by firmware updating packet bundling at n bundling subdata, the n bundling subdata is generated n by two dimensional code generation unit A two dimensional code, then shown in the packaged type terminal device with display function, the acquisition module on hardware wallet scans n described Two dimensional code, then parsing module parses the n two dimensional code scanned, is parsed into n bundling subdata, data combiners block The n bundling subdata is merged into the firmware updating packet, the first public key on hardware wallet is solid to the upgrading merged Part packet is decrypted and verifies, and firmware updating packet is installed on hardware wallet, is finally completed upgrading.Thus it is guaranteed that hardware money Wrap safety during upgraded in offline.
Upgraded in offline technical problem based on hardware wallet proposes the upgrade method and system of a kind of hardware wallet, described System includes: server, the packaged type terminal device with display function, hardware wallet, and it is solid that the server is stored with upgrading Part packet and the first private key for packaging encryption effect to firmware updating, on the packaged type terminal device with display function It is provided with data bundling module and for obtaining the downloading from firmware updating packet needed for the upgrading of hardware wallet in the server The APP user program of address, it is described include the first public key and the second private key hardware wallet on be provided with acquisition module, parsing Module and data combiners block.The present invention is it is further proposed that a kind of upgraded in offline method of hardware wallet, the method utilize The characteristic of two dimensional code visual recognition realizes the required firmware updating packet of hardware wallet upgrading from the movable termination with display function In be transferred on hardware wallet, during firmware updating packet transmission, avoid the infection of hardware wallet to wooden horse or virus With hacker attack hardware wallet, to strengthen the security protection rank of hardware wallet.
Embodiment two
As shown in figure 4, Fig. 4 is the frame diagram for the hardware wallet upgraded in offline device that this embodiment scheme is related to.
Hardware wallet upgraded in offline device described in the present embodiment includes internet terminal equipment and hardware wallet.
Firmware updating packet needed for internet terminal equipment described in the present embodiment is used to store the hardware wallet upgrading, Further, the internet terminal equipment band display screen.The internet terminal equipment includes data bundling module, the data Bundling module is at bundling data and being converted into the two dimensional code comprising bundling data for the firmware updating packet bundling.
Further, also comprising for packaging encryption effect to firmware updating on internet terminal equipment described in the present embodiment The first private key, for the firmware updating packet decrypt and verify the first public key be stored in hardware wallet.
Further, for hardware wallet by hacker attack, the hardware wallet in the present embodiment can be based on Ubuntu in order to prevent System is run, and can also be run in other systems in specific implementation.Ubuntu is an open source based on desktop application GNU/Linux operating system, Ubuntu are widely used in PC, cloud computing and all Intelligent internet of things equipment. It is its a big characteristic that the relevant task of all systems, which is both needed to instruct using Sudo, in Ubuntu system, and this mode is than traditional Safer in such a way that administrator account is managed work, user program is mounted in Ubuntu system and is mounted on It is compared on Windows, Android, single-chip microcontroller, safety is higher.Hardware wallet based on Ubuntu system reaches technical grade Other stability does not crash and does not restart for 20 days.
Further, the present embodiment also includes the second public key and the second private key, and second public key on hardware wallet for signing The sign test of name transaction, signature of second private key for digital asset transaction on hardware wallet, the second private key are stored in hardware On wallet, second public key is set as readily available by internet, is not construed as limiting in the present embodiment with regard to its storage address.
It wherein, further include acquisition module, parsing module and data combiners block on hardware wallet described in the present embodiment.Institute Acquisition module is stated for acquiring the two dimensional code comprising bundling data;The parsing module is parsed into correspondence for parsing two dimensional code Bundling data;The data combiners block is used to the bundling data being merged into firmware updating packet.
Specifically, as shown in Fig. 2, the data bundling module includes data bundling unit and two dimensional code generation unit, institute Data bundling unit is stated at bundling data, the two dimensional code generation unit to be by the bundling by the firmware updating packet bundling Data generate QR code code, and QR full name Quick Response Code, compared with other two-dimensional bar codes, it has information capacity Greatly, high reliablity, can indicate Chinese character and image kinds of words information, the advantages that security and antiforge purpose is strong.Two dimension of the present invention The bundling data are generated QR code code by code generation unit, the two dimension using QR code as transmission firmware updating bag data Code carrier.
Wherein, the data bundling unit is by the firmware updating packet bundling at bundling data, the bundling data format For binary file, there are three the reason of bundling data are binary file: first, binary file, which compares, saves space, than Such as store the data of Real*4: 3.1415927, text file needs 9 bytes, store respectively: 3.1 415927 this 9 A ASCII value, and binary file only needs 4 bytes (DB 0F 49 40);Second, the data of calculating are participated in all in memory It is to be stored with binary system is unformatted, therefore, using binary storage to file with regard to faster.If being stored as text text Part then needs the process of a conversion.When data volume is very big, the two just has apparent velocity contrast;Third, one A little more accurate data, not will cause the loss of significance bit using binary storage.
The preferably QR code code of two dimensional code described in the present embodiment, the maximum data capacity of a two dimensional code are usually solid Fixed, the maximum data capacity of the QR code code is 1167 bytes.Needed for the upgrading of hardware wallet described in the present embodiment The size of firmware updating packet is likely to be greater than two dimensional code, if the slight of the firmware updating packet is greater than a two dimension Code, the firmware updating packet for completing data bundling can be generated more than two two dimensional codes by the two dimensional code generation unit, in this way, being Guarantee the integrality of the two dimensional code of composition firmware updating packet, i.e. not packet loss, the two dimensional code generation unit setting generate two Dimension code is stored according to specific naming method on the packaged type terminal device with display function, arranges, is shown.Example Such as, firmware updating packet generates 100 two dimensional codes, and the storage of the two dimensional code arranges, is shown as 100-001,100-002,100- N,100-100.Such acquisition module in the operating process of acquisition and the parsing of two dimensional code, fill a vacancy by the leakage detection for enhancing two dimensional code And error correcting capability.
Firmware updating packet bundling is completed and after being converted into two dimensional code, the transmission of the firmware updating packet be exactly include upgrading The transmission of the two dimensional code of firmware packet bundling data, the transmission are actually the work of acquisition module and parsing module, this implementation Acquisition module described in example is specifically camera.Since the scanning of two dimensional code, identification are the prior arts, the present embodiment is not chatted It states.
Further, as shown in figure 5, the present embodiment also proposes the upgrade method of a hardware wallet, specific steps are as follows:
First private key encrypts firmware updating packet needed for the upgrading of hardware wallet using rivest, shamir, adelman;
Bundling operation is carried out to the firmware updating packet, the firmware updating packet bundling at bundling data and described will be divided Volume data split into n bundling subdata, and n is greater than or equal to 2, and the data value of each bundling subdata is not more than two dimensional code capacity Threshold value;
N two dimensional code is generated, each two dimensional code is encoded to obtain by a bundling subdata in n two dimensional code;
The n two dimensional code is shown on internet terminal equipment;
The n two dimensional code shown on scanning internet terminal equipment;
The collected n two dimensional code is parsed, n bundling subdata is parsed into;
The n bundling subdata for completing parsing is merged into firmware updating packet;
The first public key on hardware wallet is decrypted and verifies to the firmware updating packet merged;
Firmware updating packet of the installation by decryption and verifying on hardware wallet, completes upgrading.
The present embodiment must just update the support of new token wallet when hardware wallet needs to store new digital asset, It needs to carry out system upgrade to hardware wallet, and the system upgrade of hardware wallet just needs to download firmware updating packet, in order to prevent Hardware wallet infects wooden horse or virus or the attack by hacker, and hardware wallet is not taken to be inserted into again is stored with hardware wallet liter The computer of firmware updating packet needed for grade or the mode of operation of internet terminal.The present embodiment proposes that a kind of hardware wallet rises offline Stage arrangement, the hardware wallet are based on Ubuntu system.There are three the reason of Ubuntu system: first, Ubuntu It is the open source GNU/Linux operating system based on desktop application, Ubuntu is widely used in PC, cloud computing, And all Intelligent internet of things equipment;The relevant task of all systems, which is both needed to instruct using Sudo, in second, Ubuntu system is The big characteristic of its one, this mode is than traditional safer, user in such a way that administrator account is managed work Program be mounted in Ubuntu system be mounted on Windows, Android, on single-chip microcontroller compared with, safety is higher;Third, Hardware wallet based on Ubuntu system reaches the other stability of technical grade, does not crash within 20 days and does not restart.
The upgraded in offline technical problem of hardware wallet based on Ubuntu system, the present invention propose that a kind of hardware wallet is offline Update device, the system comprises: internet terminal equipment, hardware wallet.The internet terminal equipment is stored with hardware money Firmware updating packet needed for packet upgrading and the first private key for packaging encryption effect to the firmware updating, the internet are whole End equipment includes data bundling module, and encrypted firmware updating packet is generated two dimensional code by the data bundling module, and described two It ties up code and the firmware updating packet is merged by the acquisition module acquisition on hardware wallet, parsing module parsing, data combiners block, firmly The first public key on part wallet is decrypted and is verified to the firmware updating packet.Also further a kind of proposition is based on the present embodiment The upgrade method of the hardware wallet of Ubuntu system, the method will use rivest, shamir, adelman to encrypt by the first private key Firmware updating packet carries out bundling operation, and the firmware updating packet bundling passes through at n two dimensional code, hardware wallet to the n two The encryption firmware updating packet is transmitted in the scanning and parsing for tieing up code, and the first public key on hardware wallet is to being transferred to hardware wallet On the firmware updating packet decryption and verifying.
In the present embodiment, the first private key encrypts the firmware updating packet on internet terminal equipment, data bundling Encrypted firmware updating packet is generated two dimensional code by module, and the two dimensional code is by acquisition module acquisition, the parsing on hardware wallet Module parsing, data combiners block merge the firmware updating packet, and the first public key on hardware wallet is to the firmware updating packet Decryption and verifying.Hardware wallet upgraded in offline device described in the present embodiment based on Ubuntu system is visually known using two dimensional code Other characteristic, firmware updating packet needed for realizing the upgrading of hardware wallet from being transferred in internet terminal equipment on hardware wallet, During the firmware updating packet transmission, avoids hardware wallet and infects to wooden horse or virus and hacker attack hardware wallet, To strengthen the security protection rank of hardware wallet.
Embodiment three
On the basis of technical solution based on embodiment one, the present embodiment is it is further proposed that by the firmware updating packet bundling At n two dimensional code be merged into dynamic two-dimension code image or two dimensional code video, the data format of the dynamic picture is WebP Format, GIF format or APNG format, the data format of video are MP4,3GP, WMV, AVI, RM, RMVB etc..Based on this, Two dimensional code merging module, the two dimensional code merging module are further provided on the mobile terminal device with display function For by the firmware updating packet bundling at n two dimensional code be merged into dynamic two-dimension code image or two dimensional code video.
Therefore, as shown in fig. 6, the present embodiment is it is further proposed that a kind of upgrade method of hardware wallet, specific step is such as Under:
The first private key on server encrypts firmware updating packet needed for the upgrading of hardware wallet;
Packaged type terminal device with display function and server establish a communications link connection relationship and to be shown in band APP user program is installed on the packaged type terminal device of function;
With operating downloading of the firmware updating packet in the server needed for APP user program obtains the upgrading of hardware wallet The firmware updating packet encrypted is downloaded to the packaged type with display function from server by way of radio communication by location On terminal device;The mode of the radio communication is preferably WIFI, 4G and 5G;
Bundling operation is carried out to the firmware updating packet downloaded, by the firmware updating packet bundling at bundling data, will be divided Volume data split into n bundling subdata, and n is greater than or equal to 2, and the data value of each bundling subdata is not more than two dimensional code capacity Threshold value;
N two dimensional code is generated, each two dimensional code is encoded to obtain by a bundling subdata in n two dimensional code;
The n two dimensional code is generated into dynamic two-dimension code image or two dimensional code video;
The dynamic two-dimension code image or two dimensional code video are shown on the packaged type terminal device with display function;
The dynamic two-dimension code image or two dimensional code video shown on the packaged type terminal device of scanning strip display function;
The collected n two dimensional code is successively parsed, n bundling subdata is parsed into;
The n bundling subdata is merged into firmware updating packet;
The first public key on hardware wallet is decrypted and verifies to the firmware updating packet merged;
Firmware updating packet is installed on hardware wallet, completes upgrading.
Example IV
On the basis of technical solution based on embodiment two, the present embodiment is it is further proposed that by the firmware updating packet bundling At n two dimensional code be merged into dynamic two-dimension code image or two dimensional code video, the data format of the dynamic picture is WebP Format, GIF format or APNG format, the data format of video are MP4,3GP, WMV, AVI, RM, RMVB etc..Based on this, Two dimensional code merging module is further provided on the internet terminal equipment with display function, the two dimensional code merges mould Block be used for by the firmware updating packet bundling at n two dimensional code be merged into dynamic two-dimension code image or two dimensional code video.
Therefore, as shown in fig. 7, the present embodiment is it is further proposed that a kind of upgrade method of hardware wallet, specific step is such as Under:
First private key encrypts firmware updating packet needed for the upgrading of hardware wallet using rivest, shamir, adelman;
Bundling operation is carried out to the firmware updating packet, the firmware updating packet bundling at bundling data and described will be divided Volume data split into n bundling subdata, and n is greater than or equal to 2, and the data value of each bundling subdata is not more than two dimensional code capacity Threshold value;
N two dimensional code is generated, each two dimensional code is encoded to obtain by a bundling subdata in n two dimensional code;
The n two dimensional code is generated into dynamic two-dimension code image or two dimensional code video;
The dynamic two-dimension code image or two dimensional code video are shown on the internet terminal equipment with display function;
The dynamic two-dimension code image or two dimensional code video shown on the internet terminal equipment of scanning strip display function;
The collected n two dimensional code is successively parsed, n bundling subdata is parsed into;
The n bundling subdata for completing parsing is merged into firmware updating packet;
The first public key on hardware wallet is decrypted and verifies to the firmware updating packet merged;
Firmware updating packet of the installation by decryption and verifying on hardware wallet, completes upgrading.
Integrated embodiment three and example IV, by the firmware updating packet bundling at n two dimensional code be merged into dynamically On the one hand two-dimension code image or two dimensional code video avoid packet loss phenomenon of two dimensional code during acquisition, in addition a side Face improves the transmission rate of the firmware updating packet, helps to improve speed of the hardware wallet in upgraded in offline.
Integrated embodiment one, two, three, four, the invention discloses a kind of hardware wallet upgraded in offline device, the hardware money The system of packet uses Ubuntu system, and it is its one that the relevant task of all systems, which is both needed to instruct using Sudo, in Ubuntu system Big characteristic, this mode is than traditional safer, user program peace in such a way that administrator account is managed work In Ubuntu system be mounted on Windows, Android, on single-chip microcontroller compared with, safety is higher, so that described hard Part wallet is avoided by hacker attack;The system comprises for firmware updating package encryption effect the first private key and for pair First public key of firmware updating packet decryption and verifying, firmware updating packet bundling is raw at bundling data and by the bundling data At two dimensional code, the encryption firmware updating packet of hardware wallet is transmitted using the scanning and parsing of two dimensional code, it is visual using two dimensional code The characteristic of identification, firmware updating packet needed for realizing the upgrading of hardware wallet are transferred on hardware wallet, so that solid in the upgrading During part packet transmits, the infection of hardware wallet is avoided to wooden horse or virus or hacker attack hardware wallet, to strengthen The security protection rank of hardware wallet.
In addition, to achieve the above object, the present invention also provides a kind of hardware wallet upgrade-system, hardware wallet upgrade-systems Including terminal device, hardware wallet and hardware wallet upgrade procedure, hardware wallet upgrade procedure is by terminal device and hardware wallet The step of upgrade method of hardware wallet as above is realized when execution.
Furthermore the embodiment of the present invention also proposes a kind of computer readable storage medium, is stored thereon with hardware wallet upgrading system System, the storage medium can be such as ROM (Read-Only Memory, read-only memory)/RAM (Random Access Memory, random access memory), magnetic disk, at least one of CD, the computer readable storage medium includes several fingers It enables and using so that the equipment (can be automobile, mobile phone, computer, server or television set etc.) with processor is held The upgrade method of the hardware wallet of each embodiment of the row present invention.
It is understood that in the description of this specification, reference term " embodiment ", " another embodiment ", " other The description of embodiment " or " first embodiment~N embodiment " etc. means specific spy described in conjunction with this embodiment or example Sign, structure, material or feature are included at least one embodiment or example of the invention.In the present specification, to above-mentioned The schematic representation of term may not refer to the same embodiment or example.Moreover, the specific features of description, structure, material Or feature can be combined in any suitable manner in any one or more of the embodiments or examples.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of upgrade method of hardware wallet, which comprises the following steps:
The hardware wallet acquires the multiple two dimensional codes shown on the terminal device, and solves to the multiple two dimensional code Analysis, to obtain multiple bundling subdatas;
The hardware wallet merges the multiple bundling subdata, to obtain firmware updating packet;
The hardware wallet installs the firmware updating packet, completes upgrading.
2. the upgrade method of hardware wallet as described in claim 1, which is characterized in that the hardware wallet installs the upgrading Firmware packet, complete upgrading the step of include:
After the hardware wallet is decrypted firmware updating packet by the first public key corresponding with first private key, solved Firmware updating packet after close, wherein first private key of the firmware updating coating terminal device is encrypted;
The hardware wallet installs the firmware updating packet after the decryption, completes upgrading.
3. a kind of upgrade method of hardware wallet is applied to terminal device, which comprises the following steps:
The terminal device obtains firmware updating packet, and the firmware updating packet is carried out bundling, obtains multiple bundling subdatas;
The terminal device generates multiple two dimensional codes according to the multiple bundling subdata is corresponding, and by multiple two dimensional codes into Row display.
4. the upgrade method of hardware wallet as claimed in claim 3, which is characterized in that the terminal device obtains firmware updating The step of packet includes:
The terminal device obtains the firmware updating packet, and is encrypted by the first private key to the firmware updating packet, In, first private key is corresponding with the first public key, and first public key is for decrypting firmware updating packet.
5. the upgrade method of hardware wallet as claimed in claim 3, which is characterized in that the terminal device obtains firmware updating The step of packet further include:
The terminal device downloads firmware updating packet from server, wherein the firmware updating is coated in the server First private key is encrypted, and first private key is corresponding with the first public key, and first public key is for decrypting firmware updating packet.
6. a kind of hardware wallet update device, which is characterized in that the hardware wallet update device includes terminal device and hardware Wallet, the hardware wallet include memory, processor and are stored on the memory and can transport on the processor Capable hardware wallet upgrade procedure, wherein realize when the hardware wallet upgrade procedure is executed by the processor as right is wanted Described in asking any one of 1 to 5 the step of the upgrade method of hardware wallet.
7. a kind of hardware wallet upgrade-system, which is characterized in that the hardware wallet upgrade-system includes the terminal device, institute Hardware wallet and hardware wallet upgrade procedure are stated, is realized when the hardware wallet upgrade procedure is executed by the hardware wallet as follows Step:
The hardware wallet acquires the multiple two dimensional codes shown on the terminal device, and solves to the multiple two dimensional code Analysis, to obtain multiple bundling subdatas;
The hardware wallet merges the multiple bundling subdata, to obtain firmware updating packet;
The hardware wallet installs the firmware updating packet, completes upgrading.
8. hardware wallet upgrade-system as claimed in claim 7, which is characterized in that the hardware wallet upgrade procedure is described Terminal device realizes following steps when executing:
The terminal device obtains firmware updating packet, and the firmware updating packet is carried out bundling, obtains multiple bundling subdatas;
The terminal device generates multiple two dimensional codes according to the multiple bundling subdata is corresponding, and by multiple two dimensional codes into Row display.
9. hardware wallet upgrade-system as claimed in claim 8, which is characterized in that the hardware wallet upgrade procedure is described Terminal device realizes following steps when executing:
The terminal device downloads firmware updating packet from server, wherein the firmware updating is coated in the server First private key is encrypted, and first private key is corresponding with the first public key, and first public key is for decrypting firmware updating packet.
10. a kind of computer readable storage medium, which is characterized in that be stored with hardware money on the computer readable storage medium Packet upgrade-system is realized as described in any one of claims 1 to 5 when the hardware wallet upgrade-system is executed by processor The step of upgrade method of hardware wallet.
CN201811135382.3A 2018-09-27 2018-09-27 Upgrade method, device, system and the storage medium of hardware wallet Pending CN109408085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811135382.3A CN109408085A (en) 2018-09-27 2018-09-27 Upgrade method, device, system and the storage medium of hardware wallet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811135382.3A CN109408085A (en) 2018-09-27 2018-09-27 Upgrade method, device, system and the storage medium of hardware wallet

Publications (1)

Publication Number Publication Date
CN109408085A true CN109408085A (en) 2019-03-01

Family

ID=65466407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811135382.3A Pending CN109408085A (en) 2018-09-27 2018-09-27 Upgrade method, device, system and the storage medium of hardware wallet

Country Status (1)

Country Link
CN (1) CN109408085A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552497A (en) * 2020-05-12 2020-08-18 飞天诚信科技股份有限公司 Firmware updating method and system for hardware wallet
CN112732288A (en) * 2020-12-11 2021-04-30 北京握奇智能科技有限公司 Method and device for upgrading application of digital currency hardware wallet

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902342A (en) * 2014-04-16 2014-07-02 北京大学工学院南京研究院 System updating and upgrading method and system in enclosed environment
CN106210493A (en) * 2015-04-30 2016-12-07 深圳迈瑞生物医疗电子股份有限公司 Mobile AKU, move the DR machine of detector extended method and acquisition
CN106775835A (en) * 2016-11-28 2017-05-31 广东欧珀移动通信有限公司 Obtain method, server and the terminal of upgrade file
CN108196867A (en) * 2018-03-08 2018-06-22 深圳市文鼎创数据科技有限公司 Device for upgrading firmware, equipment and its firmware upgrade method of equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902342A (en) * 2014-04-16 2014-07-02 北京大学工学院南京研究院 System updating and upgrading method and system in enclosed environment
CN106210493A (en) * 2015-04-30 2016-12-07 深圳迈瑞生物医疗电子股份有限公司 Mobile AKU, move the DR machine of detector extended method and acquisition
CN106775835A (en) * 2016-11-28 2017-05-31 广东欧珀移动通信有限公司 Obtain method, server and the terminal of upgrade file
CN108196867A (en) * 2018-03-08 2018-06-22 深圳市文鼎创数据科技有限公司 Device for upgrading firmware, equipment and its firmware upgrade method of equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552497A (en) * 2020-05-12 2020-08-18 飞天诚信科技股份有限公司 Firmware updating method and system for hardware wallet
CN112732288A (en) * 2020-12-11 2021-04-30 北京握奇智能科技有限公司 Method and device for upgrading application of digital currency hardware wallet
CN112732288B (en) * 2020-12-11 2024-05-28 北京握奇智能科技有限公司 Method and device for upgrading digital currency hardware wallet application

Similar Documents

Publication Publication Date Title
CN107682159B (en) Trusted application management method and trusted application management system of intelligent terminal
CN104852925B (en) Mobile intelligent terminal anti-data-leakage secure storage, backup method
CN108566381A (en) A kind of security upgrading method, device, server, equipment and medium
CN113364760A (en) Data encryption processing method and device, computer equipment and storage medium
CN106899571B (en) Information interaction method and device
CN111143869B (en) Application package processing method and device, electronic equipment and storage medium
CN111131278A (en) Data processing method and device, computer storage medium and electronic equipment
CN106056017B (en) Smart card COS encryption downloading system
CN110166489B (en) Data transmission method, system, equipment and computer medium in Internet of things
CN111131416A (en) Business service providing method and device, storage medium and electronic device
CN106897761A (en) A kind of two-dimensional code generation method and device
CN105101169A (en) Method and apparatus of information processing by trusted execution environment, terminal and SIM card
CN102523095A (en) User digital certificate remote update method with intelligent card protection function
CN107092816A (en) A kind of Android application programs reinforcement means
CN101917700B (en) Method for using service application and user identification module
CN111934873A (en) Bidding file encryption and decryption method and device
CN112199622A (en) Page jump method, system and storage medium
CN113190877A (en) Model loading method and device, readable storage medium and electronic equipment
CN115795513A (en) File encryption method, file decryption method, file encryption device, file decryption device and equipment
CN107026730B (en) Data processing method, device and system
CN109408085A (en) Upgrade method, device, system and the storage medium of hardware wallet
CN115150821A (en) Offline package transmission and storage method and device
CN115242413A (en) Internet of things equipment firmware safety upgrading method and device, electronic equipment and medium
CN109995534B (en) Method and device for carrying out security authentication on application program
CN111400771A (en) Target partition checking method and device, storage medium and computer equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301

RJ01 Rejection of invention patent application after publication