CN109872136A - Upgrading method and system for isolated digital wallet, cold wallet and hot wallet - Google Patents
Upgrading method and system for isolated digital wallet, cold wallet and hot wallet Download PDFInfo
- Publication number
- CN109872136A CN109872136A CN201910023544.2A CN201910023544A CN109872136A CN 109872136 A CN109872136 A CN 109872136A CN 201910023544 A CN201910023544 A CN 201910023544A CN 109872136 A CN109872136 A CN 109872136A
- Authority
- CN
- China
- Prior art keywords
- file
- encryption
- value
- upgrade file
- upgrade
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention discloses an upgrading method and system for an isolated digital wallet, a cold wallet and a hot wallet, wherein the method comprises the following steps: the background server encrypts and encapsulates the upgrade package file to generate an encrypted upgrade file and an MD5 value; the hot wallet downloads the encrypted upgrade file from a background server and acquires the MD5 value, the consistency of the encrypted upgrade file is verified, and the encrypted upgrade file and the MD5 value are stored if the verification is passed; and the cold wallet receives the encrypted upgrade file and the MD5 value sent by the hot wallet through near field induction communication, analyzes and decrypts the encrypted upgrade file, and uses the upgrade packet file for upgrading after the verification is passed. The invention can quickly and conveniently upgrade the software of the cold wallet for managing the digital currency and simultaneously ensure the safety in the upgrading process.
Description
Technical field
The present invention relates to digital wallet technical field more particularly to a kind of upgrade methods of digital wallet, system, cold of being isolated
Wallet and hot money packet.
Background technique
The benefit of digital cash includes improving efficiency, reducing cost, enhancing financial security etc..
With the legal digital cash trial operation that Central Bank is issued based on block chain technology, the safety management of digital cash at
It is paid close attention to a little in industry.More and more people manage digital cash, but present non-networked using the cold wallet of non-networked at present
Cold wallet generally there are following problems:
Most of cold wallet software of non-networked can not update, and do not allow wallet to accomplish good scalability, can not meet number
The requirement of word currency development.
There is the cold wallet of fraction non-networked to support to support software upgrading by way of being inserted into SD card, this mode exists
Following problem:
User's operation is extremely inconvenient: needing user to download upgrade package manually to SD card, it is cold that SD card is then inserted into non-networked
Wallet upgrades.
It is on the rack complete: in the above operating process, having too many loophole that can be utilized by hacker, virus is implanted to SD
Card, is then implanted in non-networked wallet, to obtain user's purse transaction key, steals its digital cash.
Therefore, there are also to be developed for the prior art.
Summary of the invention
Place in view of above-mentioned deficiencies of the prior art, it is an object of the invention to propose a kind of upgrading that digital wallet is isolated
Method, system, cold wallet and hot money packet, it is intended to the cold wallet of management digital cash be enabled fast and easily to carry out software liter
Grade, while guaranteeing the safety in escalation process.
To achieve the above object, this invention takes following technical schemes:
It is a kind of be isolated digital wallet upgrade method, wherein applied to the cold wallet of non-networked, the hot money packet of networking and after
The system of platform server composition, the upgrade method include the following steps:
S10, background server carry out encryption encapsulation to upgrading APMB package and generate encryption upgrade file and MD5 value;
S20, hot money packet downloads the encryption upgrade file from background server and obtains the MD5 value, and rises to encryption
Grade file carries out consistency checking, is verified, and saves encryption upgrade file and MD5 value;
S30, cold wallet pass through the encryption upgrade file and MD5 value that near-field sensing communications reception hot money packet is sent, and
And parsing and decryption verification are executed to the encryption upgrade file, upgraded after being verified using the upgrading APMB package.
Wherein, the background server encrypt encapsulating and include the following steps: to upgrading APMB package
Upgrading APMB package is used symmetric encipherment algorithm to generate initial encryption upgrade file and synchronize and generates initial add by S11
Close upgrade file MD5 value;
S12 obtains upgrade package file size value and initial encryption upgrade file sizes values;
Upgrade package file size value and initial encryption upgrade file sizes values are inserted into initial add with fixed length byte by S13
The file header position of close upgrade file generates encryption upgrade file.
Wherein, described to be inserted into upgrade package file size value and initial encryption upgrade file sizes values just with fixed length byte
The file header position of beginning encryption upgrade file generates encryption upgrade file and specifically includes: by the initial encryption of fixed byte length
Upgrade file sizes values are fixed the file header position that byte length upgrade package file size value is inserted into initial encryption upgrade file
It sets, synthesizes encryption upgrade file.
Wherein, the hot money packet downloads encryption upgrade file from background server and obtains the MD5 value, upgrades to encryption
File carries out verifying and includes the following steps:
S21 is big by upgrade package file size value and initial encryption upgrade file from file header position by encryption upgrade file
The fixed length byte of small value is cut, and cutting header file and cutting encryption upgrade file are formed;
S22, from the cutting head file acquisition initial encryption upgrade file sizes values;
S23, the initial encryption upgrade file sizes values and cutting encryption upgrade file size, and verify initial add
The MD5 value of close upgrade file and the MD5 value of cutting encryption upgrade file;
S24 returns to successfully if file size and MD5 value are completely the same and saves encryption upgrade file and MD5 value, no
Then return to failure.
Wherein, the cold wallet passes through the encryption upgrade file and MD5 that near-field sensing communications reception hot money packet is sent
Value, and parsing and decryption verification are executed to the encryption upgrade file, include the following steps:
S31 is big by upgrade package file size value and initial encryption upgrade file from file header position by encryption upgrade file
The fixed length byte of small value is cut, and cutting header file and cutting encryption upgrade file are formed;
S32, from the cutting head file acquisition initial encryption upgrade file sizes values and upgrade package file size value;
S33, the initial encryption upgrade file sizes values and cutting encryption upgrade file size, and verify initial add
The MD5 value of close upgrade file and the MD5 value of cutting encryption upgrade file;
S34, using the decrypted private key of symmetric encipherment algorithm come Xie Miwen if file size and MD5 value are completely the same
Part, and compare upgrade package file size after upgrade package file size value and decryption;
Upgrading APMB package after decryption is placed into the software that installation directory completes cold wallet if completely the same by S35
Upgrading is updated, received encryption upgrade file is deleted if inconsistent.
The present invention also proposes a kind of upgrade-system that digital wallet is isolated, wherein
The hot money packet and background server of cold wallet, networking including non-networked, cold wallet and hot money packet are provided with closely
Field induction module is communicated for cold wallet with the near-field sensing of hot money packet, and hot money packet is connect with background server;
The background server is used to carry out encryption encapsulation to upgrading APMB package to generate encryption upgrade file and MD5 value;
The hot money packet is used to download the encryption upgrade file and the acquisition MD5 value from background server, and to adding
Close upgrade file carries out consistency checking, is verified, and saves encryption upgrade file and MD5 value;
The cold wallet is used for the encryption upgrade file and MD5 sent by near-field sensing communications reception hot money packet
Value, and parsing and decryption verification are executed to the encryption upgrade file, it is carried out after being verified using the upgrading APMB package
Upgrading.
The present invention also proposes a kind of cold wallet, wherein the cold wallet includes the first main control module and the first main control module
First near-field sensing module of connection, the first near-field sensing module receive the encryption upgrade file and MD5 that hot money packet is sent
Value, first main control module execute parsing and decryption verification to the encryption upgrade file, and the liter is used after being verified
Grade APMB package is upgraded.
The present invention also proposes a kind of hot money packet, wherein the hot money packet includes the second main control module and the second main control module
The communication module of connection and the second near-field sensing module, the communication module connect hot money packet access network and background server
It connects, download the encryption upgrade file from background server and obtains the MD5 value;
Second main control module carries out consistency to the encryption upgrade file and MD5 value downloaded from background server and tests
Card;
The second near-field sensing module is used to send encryption upgrade file and MD5 value after being verified to cold wallet.
Upgrade method, system, cold wallet and the hot money packet of isolation digital wallet of the invention, by adding background server
Encryption upgrade file and MD5 value after sealing dress are downloaded to hot money packet, and hot money packet is communicated by near-field sensing after verifying and sent out
Send to cold wallet, cold wallet executes parsing and decryption verification to encryption upgrade file, after being verified using upgrading APMB package into
Row upgrading, in this way, cold wallet is to be in the state that do not network, carries out isolation upgrading by near-field sensing, ensure that cold wallet
Safety, meanwhile, upgrading APMB package ensure that the safety of upgrade file, so that the software liter of cold wallet by encryption encapsulation
Grade is easy to operate and safe.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the upgrade-system composition schematic diagram of present invention isolation digital wallet;
Fig. 2 is the upgrade method first embodiment flow diagram of present invention isolation digital wallet;
Fig. 3 is the flow diagram of upgrade package file encryption of the present invention encapsulation;
Fig. 4 is the flow diagram that hot money packet of the present invention carries out consistency checking to encryption upgrade file;
Fig. 5 is that the encryption upgrade file of the cold wallet of the present invention executes the flow diagram of parsing and decryption verification;
Fig. 6 is the composition schematic diagram of the cold wallet first embodiment of the present invention;
Fig. 7 is the composition schematic diagram of hot money packet first embodiment of the present invention;
Description of symbols:
100- system, the cold wallet of 40-, the first main control module of 41-, 42- the first near-field sensing module, 50- hot money packet, 51-
Second main control module, 52- communication module, 53- the second near-field sensing module, 60- background server.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is the composition figure that the upgrade-system of digital wallet is isolated.
The upgrade-system 100 of isolation digital wallet of the invention includes the hot money packet 50 of the cold wallet 40 of non-networked, networking
With background server 60, cold wallet 40 is provided with near-field sensing module for cold wallet 40 and hot money packet 50 with hot money packet 50
Near-field sensing communication, hot money packet 50 are connect with background server 60.
The background server 60 is used to carry out encryption encapsulation to upgrading APMB package to generate encryption upgrade file and MD5 value;
The hot money packet 50 is used for the 60 loads encryption upgrade file under background server and obtains the MD5 value, and
Consistency checking is carried out to encryption upgrade file, is verified, saves encryption upgrade file and MD5 value;
The cold wallet 40 be used for by near-field sensing communications reception hot money packet 50 send the encryption upgrade file and
MD5 value, and to the encryption upgrade file execute parsing and decryption verification, after being verified using the upgrading APMB package into
Row upgrading.
The upgrade-system 100 that digital wallet is isolated in the embodiment of the present invention is close due to passing through between cold wallet 40 and hot money packet 50
Induction module transmits upgrade package file data, and cold wallet 40 is to be in the state that do not network, i.e., cold wallet 40 not with outside
Network connection, this mode ensure that the separation of cold wallet 40 with hot money packet 50, it is ensured that digital cash key not with Internet contact,
It had not only been able to satisfy the demand of cold 40 software upgrading of wallet in this way, but also can ensure the safety of digital cash.
The embodiment of the present invention also proposes a kind of upgrade method that digital wallet is isolated, cold wallet, connection applied to non-networked
The system 100 of hot money packet and the background server composition of net, as shown in Fig. 2, the liter of digital wallet is isolated for the embodiment of the present invention
The process of grade method, includes the following steps:
S10,60 pairs of upgrading APMB packages of background server carry out encryption encapsulation and generate encryption upgrade file and MD5 value;
S20, hot money packet 50 download the encryption upgrade file from background server 60 and obtain the MD5 value, and to adding
Close upgrade file carries out consistency checking, is verified, and saves encryption upgrade file and MD5 value;
S30, cold wallet 40 pass through the encryption upgrade file and MD5 that near-field sensing communications reception hot money packet 50 is sent
Value, and parsing and decryption verification are executed to the encryption upgrade file, it is carried out after being verified using the upgrading APMB package
Upgrading.
In the upgrade method of the isolation digital wallet of the embodiment of the present invention, since upgrading APMB package is by background server
Encryption encapsulation, is all encrypted state in the transmission process to hot money packet, cold wallet, and file is prevented to be tampered implantation virus wood
Horse etc. ensure that the safety of upgrade file.Meanwhile cold wallet is to be in the state that do not network, be by with hot money packet 50
Near-field sensing carries out isolation upgrading, ensure that digital cash counts not with Internet contact to ensure that in cold wallet in cold wallet
The safety of word currency.That is the upgrade method of the isolation digital wallet of the embodiment of the present invention operates the software upgrading of cold wallet
Convenient and safety.
Specifically, as shown in figure 3,60 pairs of upgrading APMB packages of background server carry out encryption encapsulation include the following steps:
Upgrading APMB package is used symmetric encipherment algorithm to generate initial encryption upgrade file and synchronize and generates initial add by S11
Close upgrade file MD5 value;
S12 obtains upgrade package file size value and initial encryption upgrade file sizes values;
Upgrade package file size value and initial encryption upgrade file sizes values are inserted into initial add with fixed length byte by S13
The file header position of close upgrade file generates encryption upgrade file.
The upgrade package file size value and initial encryption upgrade file size of fixed length byte are inserted into encryption upgrade file
Value is in order to subsequent verifying.
As an embodiment, the encryption encapsulation that the present invention upgrades APMB package is as follows:
Upgrading APMB package is generated into initial encryption upgrade file (.bsg) using symmetric encipherment algorithm and synchronous generation is initial
Encrypt upgrade file (.bsg) MD5 value;
Upgrade package file size value is obtained, UpdateFileSize is denoted as, it is big to obtain initial encryption upgrade file (.bsg)
Small value, is denoted as DecryptFileSize;
By upgrade package file size value UpdateFileSize and initial encryption upgrade file sizes values
DecryptFileSize is inserted into the file header position of initial encryption upgrade file (.bsg) with fixed length byte, generates new add
Close upgrade file (.BSG).Fixed length byte in the embodiment of the present invention can be 2 bytes or each big for each sizes values
Small value is 4 bytes etc..UpdateFileSize, DecryptFileSize are in the position of encryption upgrade file (.BSG) file header
Set can be UpdateFileSize in preceding DecryptFileSize in rear or UpdateFileSize rear
DecryptFileSize is preceding.
Preferably, the embodiment of the present invention is by upgrade package file size value and initial encryption upgrade file sizes values with fixed-length word
Section is inserted into the file header position of initial encryption upgrade file, generates encryption upgrade file and specifically includes: by fixed byte length
Initial encryption upgrade file sizes values be fixed byte length upgrade package file size value and be inserted into initial encryption upgrade file
File header position, synthesize encryption upgrade file.
I.e. by upgrade package file size value UpdateFileSize and initial encryption upgrade file (.bsg) sizes values
DecryptFileSize is respectively written to the file header position of .bsg file by the specific format of fixed byte length, is generated new
Encrypt upgrade file .BSG, i.e. fixed byte length (DecryptFileSize)+fixed byte length (UpdateFileSize)
+ .bsg file synthesis is new file .BSG.
As shown in figure 4, the hot money packet 50 of the embodiment of the present invention downloads encryption upgrade file and acquisition from background server 60
The MD5 value carries out verifying to encryption upgrade file and includes the following steps:
S21 is big by upgrade package file size value and initial encryption upgrade file from file header position by encryption upgrade file
The fixed length byte of small value is cut, and cutting header file and cutting encryption upgrade file are formed;
In the present embodiment can will encryption upgrade file .BSG from file header position by upgrade package file size value
The fixed length byte of UpdateFileSize and initial encryption upgrade file sizes values DecryptFileSize are cut, and are formed
Cut header file .hbsg1 and cutting encryption upgrade file .bsg1.
S22, from the cutting head file acquisition initial encryption upgrade file sizes values;
Initial encryption upgrade file sizes values are obtained from the cutting header file .hbsg1 in the present embodiment
DecryptFileSize。
S23, the initial encryption upgrade file sizes values and cutting encryption upgrade file size, and verify initial add
The MD5 value of close upgrade file and the MD5 value of cutting encryption upgrade file;
In the present embodiment, compares initial encryption upgrade file .bsg sizes values DecryptFileSize and cutting encryption rises
Grade file .bsg1 size, and verify the MD5 value of initial encryption upgrade file .bsg and the MD5 of cutting encryption upgrade file .bsg1
Value.
S24 is returned successfully if file size and MD5 value are completely the same and is saved encryption upgrade file .BSG and MD5
Otherwise value returns to failure.
In the present embodiment, if initial encryption upgrade file .bsg sizes values DecryptFileSize and cutting encryption rise
Grade file .bsg1's is equal in magnitude, and the MD5 value of initial encryption upgrade file .bsg and cutting encrypt upgrade file .bsg1's
MD5 value is also equal, then returns to successfully and save the encryption upgrade file .BSG of the downloading of background server 60 and from background server
The 60 MD5 values taken are obtained, failure is otherwise returned.
Hot money of embodiment of the present invention packet 50, which carries out verifying to the downloading encryption upgrade file of background server 60, ensure that from rear
The safety of the downloading upgrading APMB package of platform server 60.
As shown in figure 5, cold wallet 40 passes through the institute that near-field sensing communications reception hot money packet 50 is sent in the embodiment of the present invention
Encryption upgrade file and MD5 value are stated, and parsing and decryption verification are executed to the encryption upgrade file, is included the following steps:
S31 is big by upgrade package file size value and initial encryption upgrade file from file header position by encryption upgrade file
The fixed length byte of small value is cut, and cutting header file and cutting encryption upgrade file are formed;
S32, from the cutting head file acquisition initial encryption upgrade file sizes values and upgrade package file size value;
S33, the initial encryption upgrade file sizes values and cutting encryption upgrade file size, and verify initial add
The MD5 value of close upgrade file and the MD5 value of cutting encryption upgrade file;
S34, using the decrypted private key of symmetric encipherment algorithm come Xie Miwen if file size and MD5 value are completely the same
Part, and compare upgrade package file size after upgrade package file size value and decryption;
Upgrading APMB package after decryption is placed into the software that installation directory completes cold wallet if completely the same by S35
Upgrading is updated, received encryption upgrade file is deleted if inconsistent.
As an embodiment, the present invention 40 pairs of encryption upgrade files of cold wallet execute parsing and decryption verification is as follows:
In the present embodiment cold wallet 40 will encryption upgrade file .BSG from file header position by upgrade package file size value
The fixed length byte of UpdateFileSize and initial encryption upgrade file sizes values DecryptFileSize are cut, and are formed
Cut header file .hbsg2 and cutting encryption upgrade file .bsg2;
Initial encryption upgrade file sizes values DecryptFileSize and upgrading are obtained from the cutting header file .hbsg2
APMB package sizes values UpdateFileSize;
Compare initial encryption upgrade file .bsg sizes values DecryptFileSize and cutting encryption upgrade file again
.bsg2 size, and verify the MD5 value of initial encryption upgrade file .bsg and the MD5 value of cutting encryption upgrade file .bsg2.
If initial encryption upgrade file .bsg sizes values DecryptFileSize and cutting encryption upgrade file .bsg2
It is equal in magnitude, and the MD5 value of initial encryption upgrade file .bsg and cutting encryption upgrade file .bsg2 MD5 value it is also equal,
Then cold wallet 40 decrypts file using the decrypted private key of symmetric encipherment algorithm, and compares upgrade package file size value
UpdateFileSize and upgrade package file size after decryption;
It will if upgrade package file size after upgrade package file size value UpdateFileSize and decryption is completely the same
Upgrading APMB package after decryption is placed into the software upgrading upgrading that installation directory completes cold wallet, deletes and is received if inconsistent
The encryption upgrade file .BSG arrived.
Cold wallet 40 tests hot money packet 50 by the encryption upgrade file that near-field sensing is sent in the embodiment of the present invention
Card can guarantee the safety of upgrading APMB package transmission process between hot money packet 50 and cold wallet 40.
With continued reference to FIG. 6, the embodiment of the present invention also individually proposes that a kind of cold wallet 40, cold wallet 40 include the first master control
Module 41, the first near-field sensing module 42 connecting with the first main control module 41, the first near-field sensing module 42 receive heat
The encryption upgrade file and MD5 value, first main control module 41 that wallet 50 is sent execute parsing to the encryption upgrade file
And decryption verification, upgraded after being verified using the upgrading APMB package.The cold wallet 40 of the embodiment and above-mentioned implementation
The cold wallet 40 of example description is identical, therefore no longer repeats one by one.
With continued reference to FIG. 7, the embodiment of the present invention also individually proposes that a kind of hot money packet 50, hot money packet 50 include the second master control
Module 51, the communication module 52 connecting with the second main control module 51 and the second near-field sensing module 53, the communication module 51 will
Hot money packet 50 accesses network and connect with background server 60, downloads the encryption upgrade file from background server 60 and obtains institute
State MD5 value;Second main control module 51 carries out consistency to the encryption upgrade file and MD5 value downloaded from background server 60
Verifying;The second near-field sensing module 53 is used to send encryption upgrade file and MD5 value after being verified to cold wallet 40.
The hot money packet 50 of the embodiment is identical as the hot money packet 50 that above-described embodiment describes, therefore no longer repeats one by one.
Cold wallet 40 of the invention further includes memory, processor and storage in the memory and is configured as by institute
The computer program of processor execution is stated, the program of the upgrade method of digital wallet is such as isolated, the processor executes the meter
When calculation machine program, above-mentioned method is realized.
Hot money packet 50 of the invention further includes memory, processor and storage in the memory and is configured as by institute
The computer program of processor execution is stated, the program of the upgrade method of digital wallet is such as isolated, the processor executes the meter
When calculation machine program, above-mentioned method is realized.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the asynchronous message processing terminal equipment.
The cold wallet 40, hot money packet 50 may include, but are not limited to processor, memory.Those skilled in the art can be with
Understanding, above-mentioned component is only the example of cold wallet 40, hot money packet 50, the restriction to cold wallet 40, hot money packet 50 is not constituted,
May include perhaps combine certain components or different components than above-mentioned more or fewer components, such as cold wallet 40,
Hot money packet 50 can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is control centre, utilizes the various pieces of various interfaces and connection whole equipment.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of equipment.The memory can mainly include storing program area and storage data area, wherein storing program area can deposit
Application program (such as sound-playing function, image player function etc.) needed for storing up operating system, at least one function etc.;Storage
Data field can be stored according to using created data (such as audio data, phone directory etc.) etc..In addition, memory may include
High-speed random access memory can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent storage
Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), extremely
A few disk memory, flush memory device or other volatile solid-state parts.
The present invention also proposes a kind of computer readable storage medium, and calculating is stored in the computer readable storage medium
Machine program, the computer program, which is performed, realizes above-mentioned method.
If the integrated module/unit of the upgrade method of isolation digital wallet of the invention is in the form of SFU software functional unit
Realize and when sold or used as an independent product, can store in a computer readable storage medium.The present invention
Computer readable storage medium specific embodiment and the above-mentioned basic phase of each embodiment of digital cash management method that wallet is isolated
Together, details are not described herein.
It should be noted that embodiments described above is only schematical, wherein described be used as separate part description
Unit may or may not be physically separated, component shown as a unit may or may not be
Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, embodiment provided by the invention is attached
In figure, the connection relationship between module indicates there is communication connection between them, specifically can be implemented as one or more communication
Bus or signal wire.Those of ordinary skill in the art can understand and implement without creative efforts.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this
Under the inventive concept of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/use indirectly
It is included in other related technical areas in scope of patent protection of the invention.
Claims (8)
1. a kind of upgrade method that digital wallet is isolated, which is characterized in that applied to the cold wallet of non-networked, the hot money packet of networking
And the system of background server composition, the upgrade method include the following steps:
S10, background server carry out encryption encapsulation to upgrading APMB package and generate encryption upgrade file and MD5 value;
S20, hot money packet download the encryption upgrade file from background server and obtain the MD5 value, and to encryption upgrading text
Part carries out consistency checking, is verified, and saves encryption upgrade file and MD5 value;
S30, cold wallet pass through the encryption upgrade file and MD5 value that near-field sensing communications reception hot money packet is sent, and right
The encryption upgrade file executes parsing and decryption verification, is upgraded after being verified using the upgrading APMB package.
2. the method according to claim 1, wherein the background server carries out encryption envelope to upgrading APMB package
Dress includes the following steps:
Upgrading APMB package is generated initial encryption upgrade file and synchronous generation initial encryption liter using symmetric encipherment algorithm by S11
Grade file MD5 value;
S12 obtains upgrade package file size value and initial encryption upgrade file sizes values;
Upgrade package file size value and initial encryption upgrade file sizes values are inserted into initial encryption liter with fixed length byte by S13
The file header position of grade file generates encryption upgrade file.
3. according to the method described in claim 2, it is characterized in that, described upgrade upgrade package file size value and initial encryption
File size value is inserted into the file header position of initial encryption upgrade file with fixed length byte, generates encryption upgrade file and specifically wraps
It includes: the initial encryption upgrade file sizes values of fixed byte length being fixed byte length upgrade package file size value and are inserted into
The file header position of initial encryption upgrade file, synthesizes encryption upgrade file.
4. according to the method described in claim 2, it is characterized in that, the hot money packet downloads encryption upgrading text from background server
Part and the acquisition MD5 value, carry out verifying to encryption upgrade file and include the following steps:
S21, will encryption upgrade file from file header position by upgrade package file size value and initial encryption upgrade file sizes values
Fixed length byte cut, formed cutting header file and cutting encryption upgrade file;
S22, from the cutting head file acquisition initial encryption upgrade file sizes values;
S23, the initial encryption upgrade file sizes values and cutting encryption upgrade file size, and verify initial encryption liter
The MD5 value of grade file and the MD5 value of cutting encryption upgrade file;
S24 returns to successfully and is saved if file size and MD5 value are completely the same encryption upgrade file and MD5 value, otherwise returns
Return failure.
5. according to the method described in claim 4, it is characterized in that, the cold wallet passes through near-field sensing communications reception hot money packet
The encryption upgrade file and MD5 value sent, and parsing and decryption verification are executed to the encryption upgrade file, including such as
Lower step:
S31, will encryption upgrade file from file header position by upgrade package file size value and initial encryption upgrade file sizes values
Fixed length byte cut, formed cutting header file and cutting encryption upgrade file;
S32, from the cutting head file acquisition initial encryption upgrade file sizes values and upgrade package file size value;
S33, the initial encryption upgrade file sizes values and cutting encryption upgrade file size, and verify initial encryption liter
The MD5 value of grade file and the MD5 value of cutting encryption upgrade file;
S34 decrypts file using the decrypted private key of symmetric encipherment algorithm if file size and MD5 value are completely the same, and
Upgrade package file size after comparing upgrade package file size value and decrypting;
Upgrading APMB package after decryption is placed into the software upgrading that installation directory completes cold wallet if completely the same by S35
Received encryption upgrade file is deleted in upgrading if inconsistent.
6. a kind of upgrade-system that digital wallet is isolated, which is characterized in that
The hot money packet and background server of cold wallet, networking including non-networked, cold wallet and hot money packet are provided near field sense
Module is answered to communicate for cold wallet with the near-field sensing of hot money packet, hot money packet is connect with background server;
The background server is used to carry out encryption encapsulation to upgrading APMB package to generate encryption upgrade file and MD5 value;
The hot money packet is used to download the encryption upgrade file from background server and obtains the MD5 value, and rises to encryption
Grade file carries out consistency checking, is verified, and saves encryption upgrade file and MD5 value;
The encryption upgrade file and MD5 value that the cold wallet is used to send by near-field sensing communications reception hot money packet, and
And parsing and decryption verification are executed to the encryption upgrade file, upgraded after being verified using the upgrading APMB package.
7. a kind of cold wallet, which is characterized in that the cold wallet include the first main control module, connect with the first main control module
One near-field sensing module, the first near-field sensing module receive the encryption upgrade file and MD5 value that hot money packet is sent, and described the
One main control module to the encryption upgrade file execute parsing and decryption verification, after being verified using the upgrading APMB package into
Row upgrading.
8. a kind of hot money packet, which is characterized in that the hot money packet include the second main control module, connect with the second main control module it is logical
Believe module and the second near-field sensing module, hot money packet access network is connect by the communication module with background server, from backstage
Server downloads the encryption upgrade file and obtains the MD5 value;
Second main control module carries out consistency checking to the encryption upgrade file and MD5 value downloaded from background server;
The second near-field sensing module is used to send encryption upgrade file and MD5 value after being verified to cold wallet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910023544.2A CN109872136B (en) | 2019-01-10 | 2019-01-10 | Upgrading method and system for isolated digital wallet, cold wallet and hot wallet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910023544.2A CN109872136B (en) | 2019-01-10 | 2019-01-10 | Upgrading method and system for isolated digital wallet, cold wallet and hot wallet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109872136A true CN109872136A (en) | 2019-06-11 |
CN109872136B CN109872136B (en) | 2021-08-03 |
Family
ID=66917669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910023544.2A Active CN109872136B (en) | 2019-01-10 | 2019-01-10 | Upgrading method and system for isolated digital wallet, cold wallet and hot wallet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109872136B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113132088A (en) * | 2019-12-30 | 2021-07-16 | 中移(上海)信息通信科技有限公司 | Digital currency management system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108241517A (en) * | 2018-02-23 | 2018-07-03 | 武汉斗鱼网络科技有限公司 | A kind of method for upgrading software, client and electronic equipment |
CN108304722A (en) * | 2017-12-21 | 2018-07-20 | 广州小鹏汽车科技有限公司 | A kind of software installation packet and its generation method, upgrade method and system |
CN108762788A (en) * | 2018-05-31 | 2018-11-06 | 四川斐讯信息技术有限公司 | A kind of embedded device firmware encrypting method and system based on server |
CN108762791A (en) * | 2018-06-07 | 2018-11-06 | 深圳市元征科技股份有限公司 | Firmware upgrade method and device |
CN108876355A (en) * | 2018-06-28 | 2018-11-23 | 链报有限公司 | A kind of digital cash wallet payment systems and digital cash wallet method of payment |
CN108898381A (en) * | 2018-06-28 | 2018-11-27 | 链报有限公司 | A kind of digital cash wallet payment systems and digital cash wallet method of payment |
-
2019
- 2019-01-10 CN CN201910023544.2A patent/CN109872136B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304722A (en) * | 2017-12-21 | 2018-07-20 | 广州小鹏汽车科技有限公司 | A kind of software installation packet and its generation method, upgrade method and system |
CN108241517A (en) * | 2018-02-23 | 2018-07-03 | 武汉斗鱼网络科技有限公司 | A kind of method for upgrading software, client and electronic equipment |
CN108762788A (en) * | 2018-05-31 | 2018-11-06 | 四川斐讯信息技术有限公司 | A kind of embedded device firmware encrypting method and system based on server |
CN108762791A (en) * | 2018-06-07 | 2018-11-06 | 深圳市元征科技股份有限公司 | Firmware upgrade method and device |
CN108876355A (en) * | 2018-06-28 | 2018-11-23 | 链报有限公司 | A kind of digital cash wallet payment systems and digital cash wallet method of payment |
CN108898381A (en) * | 2018-06-28 | 2018-11-27 | 链报有限公司 | A kind of digital cash wallet payment systems and digital cash wallet method of payment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113132088A (en) * | 2019-12-30 | 2021-07-16 | 中移(上海)信息通信科技有限公司 | Digital currency management system |
Also Published As
Publication number | Publication date |
---|---|
CN109872136B (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683747B (en) | Resource obtaining, distributing and downloading method, device, equipment and storage medium | |
CN107463838B (en) | Method for safety monitoring, device, system and storage medium based on SGX | |
EP1688859B1 (en) | Application authentification system | |
CN101093594B (en) | IC card, service data process system and method based on the IC card | |
US20050137889A1 (en) | Remotely binding data to a user device | |
CN109474606A (en) | Document transmission method, device, computer equipment and storage medium | |
US20080189695A1 (en) | Updating of Data Instructions | |
WO2020258847A1 (en) | Method and apparatus for cross-chain transmission of authenticable message based on processing module | |
WO2015042981A1 (en) | Encryption and decryption processing method, apparatus and device | |
KR20080065661A (en) | A method for controlling access to file systems, related system, sim card and computer program product for use therein | |
CN108229142B (en) | Method and device for upgrading wallet based on digital currency wallet terminal | |
CN111476573B (en) | Account data processing method, device, equipment and storage medium | |
CN108847926A (en) | A kind of client secure detection method, device and client device | |
WO2019071650A1 (en) | Method for upgrading application in security element and related device | |
US20220224546A1 (en) | Software integrity protection method and apparatus, and software integrity verification method and apparatus | |
CN103516524A (en) | Security authentication method and system | |
EP4300398A1 (en) | Smart contract-based data processing method and apparatus, electronic device, computer-readable storage medium, and computer program product | |
CN112733178A (en) | Cross-chain trust method, device, equipment and medium based on digital certificate authentication | |
CN113132459B (en) | Distributed storage method, system, storage medium, information data processing terminal | |
CN112069535B (en) | Dual-system safety intelligent terminal architecture based on access partition physical isolation | |
CN109872136A (en) | Upgrading method and system for isolated digital wallet, cold wallet and hot wallet | |
CN100581106C (en) | Systems and methods for efficiently clustering objects based on access patterns | |
CN109697194A (en) | A kind of file service method and system based on micro services | |
RU2408071C2 (en) | Protected data loading and storage in data processing device | |
CN112311528A (en) | Data secure transmission method based on state cryptographic algorithm |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220426 Address after: 518000 A1105, building 10, Shenzhen Bay science and technology ecological park, No. 10, Gaoxin South ninth Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong Patentee after: Shenzhen Zhongcheng Product Technology Co.,Ltd. Address before: 518000 802, block a, Yuanzheng Chuangye building, No. 19, Langshan Road, Nanshan District, Shenzhen, Guangdong Patentee before: SHENZHEN BANKLEDGER TECHNOLOGY CO.,LTD. |