CN108829436A - Hot restorative procedure, device, system, electronic equipment and computer-readable medium - Google Patents

Hot restorative procedure, device, system, electronic equipment and computer-readable medium Download PDF

Info

Publication number
CN108829436A
CN108829436A CN201810634933.4A CN201810634933A CN108829436A CN 108829436 A CN108829436 A CN 108829436A CN 201810634933 A CN201810634933 A CN 201810634933A CN 108829436 A CN108829436 A CN 108829436A
Authority
CN
China
Prior art keywords
information
block
hot repair
multiplexed code
hot
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
CN201810634933.4A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810634933.4A priority Critical patent/CN108829436A/en
Publication of CN108829436A publication Critical patent/CN108829436A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This disclosure relates to a kind of hot restorative procedure, device, system, electronic equipment and computer-readable medium.It is related to computer information processing field, this method includes:Obtain hot repair multiplexed code and relevant information;The hot repair multiplexed code and relevant information are packaged, packaging information is generated;Packaging information is generated into block information by digital signature;And the block information is disclosed in block catenary system to provide hot repair and service again.Hot restorative procedure, device, system, electronic equipment and the computer-readable medium of the disclosure, can guarantee the safety of heat deployment code, guarantee the safety of users' mobile end.

Description

Hot restorative procedure, device, system, electronic equipment and computer-readable medium
Technical field
This disclosure relates to computer information processing field, in particular to a kind of hot restorative procedure, device, system, electricity Sub- equipment and computer-readable medium.
Background technique
It is continuous universal with mobile phone, cell phone client become user's online do shopping, obtain information, the master of communication exchange etc. Mode is wanted, but cell phone client inevitably will appear logic error and need emergency repair.In one online app such as There is mistake in fruit, even a very small mistake, there may be risk if updating not in time, to timely update App must be repacked after being published to application market, allow user to download again, be greatly lowered user experience in this way. It is vicious directly to replace that code hot-fixing generally downloads faultless code from the Internet by the interface being previously set Code, the multiple method of hot repair realize simple, better user experience.Code hot-fixing is that one kind can remove user from and go to apply Market downloading client directly replaces the emergency repair technology of the What You See Is What You Get of multiplexed code to be repaired.
In the prior art, it is as follows to carry out the multiple method of hot repair:Client request server-side issues hot repair to be replaced and answers generation Code, may be, for example, javascript code, and client is by the way that be converted into the javascript code of server-side can be by client Hold identification client's end instruction, so as to by the hot repair multiplexed code of server-side in client local replacement problem code.Ordinary circumstance Under, server-side code issues code and can utilize https (Hyper Text Transfer Protocol over Secure Socket Layer) and signature algorithm code is encrypted and is signed.
But hot repair multiplexed code in the prior art is easy intercepted during transmission and distorts, and leads to client Even mobile phone is attacked by malicious code.Therefore, it is necessary to a kind of new hot restorative procedure, device, system, electronic equipment and computers Readable medium.
Above- mentioned information are only used for reinforcing the understanding to the background of the disclosure, therefore it disclosed in the background technology part It may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
In view of this, the disclosure provides a kind of hot restorative procedure, device, system, electronic equipment and computer-readable medium, The safety that can guarantee heat deployment code guarantees the safety of users' mobile end.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the one side of the disclosure, a kind of hot restorative procedure is proposed, this method includes:Obtain hot repair multiplexed code and correlation Information;The hot repair multiplexed code and relevant information are packaged, packaging information is generated;Packaging information is raw by digital signature At block information;And the block information is disclosed in block catenary system to provide hot repair and service again.
In a kind of exemplary embodiment of the disclosure, further include:By block chain common recognition algorithm, by the block information The block catenary system is written.
In a kind of exemplary embodiment of the disclosure, relevant information includes version number, and the hot repair is answered generation by timestamp Code and relevant information be packaged including:The hot repair multiplexed code and version number, timestamp are packaged.
In a kind of exemplary embodiment of the disclosure, the hot repair multiplexed code and relevant information are packaged, generated Packaging information includes:The hot repair multiplexed code and relevant information are encapsulated as JS object numbered musical notation data structure;Determine that block chain is handed over Easy content is to generate the packaging information.
In a kind of exemplary embodiment of the disclosure, the hot repair multiplexed code and relevant information are packaged, generated Packaging information further includes:The packaging information is stored into the leaf node of Merck tree, to generate packaging information.
In a kind of exemplary embodiment of the disclosure, the block information is disclosed in block catenary system to mention Heat supply reparation service includes:The block information is disclosed in block catenary system to mention by intelligence and about RPC interface Heat supply reparation service.
According to the one side of the disclosure, a kind of hot restorative procedure is proposed, this method includes:By obtaining area in block catenary system Block message includes hot repair multiplexed code and relevant information in the block information;Local data verification is carried out to the block information; And the block information is parsed after verification passes through and is answered with carrying out hot repair.
In a kind of exemplary embodiment of the disclosure, carrying out local data verification to the block information includes:According to Local digital signature carries out data check to the block information.
In a kind of exemplary embodiment of the disclosure, relevant information includes version number, and timestamp solves after verification passes through The block information is analysed to carry out hot repair includes again:Parse the block information;Hot repair multiplexed code is determined according to the version number; And hot repair is carried out according to the hot repair multiplexed code and is answered.
According to the one side of the disclosure, propose that a kind of hot repair apparatus for coating, the device include:Information module, for obtaining heat Repair code and relevant information;Package module generates encapsulation letter for the hot repair multiplexed code and relevant information to be packaged Breath;Signature blocks, for packaging information to be generated block information by digital signature;And open module, it is used for the area Block message is disclosed in block catenary system to provide hot repair and service again.
According to the one side of the disclosure, propose that a kind of hot repair apparatus for coating, the device include:Receiving module, for by block Block information is obtained in catenary system, includes hot repair multiplexed code and relevant information in the block information;Correction verification module, for institute It states block information and carries out local data verification;And parsing module, for parsed after verification passes through the block information with into Row hot repair is multiple.
According to the one side of the disclosure, a kind of hot repair complex system is proposed, which includes:Server-side, for obtaining hot repair Multiplexed code and relevant information;The hot repair multiplexed code and relevant information are packaged, packaging information is generated;Packaging information is passed through It crosses digital signature and generates block information;And the block information is disclosed in block catenary system to provide hot repair and take again Business;And client, for including hot repair multiplexed code and phase in the block information by obtaining block information in block catenary system Close information;Local data verification is carried out to the block information;And the block information is parsed after verification passes through to carry out Hot repair is multiple.
According to the one side of the disclosure, a kind of electronic equipment is proposed, which includes:One or more processors; Storage device, for storing one or more programs;When one or more programs are executed by one or more processors, so that one A or multiple processors realize such as methodology above.
According to the one side of the disclosure, it proposes a kind of computer-readable medium, is stored thereon with computer program, the program Method as mentioned in the above is realized when being executed by processor.
According to hot restorative procedure, device, system, electronic equipment and the computer-readable medium of the disclosure, it can guarantee heat The safety for disposing code, guarantees the safety of users' mobile end.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
Its example embodiment is described in detail by referring to accompanying drawing, above and other target, feature and the advantage of the disclosure will It becomes more fully apparent.Drawings discussed below is only some embodiments of the present disclosure, for the ordinary skill of this field For personnel, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the system block diagram of a kind of hot restorative procedure and device shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of hot restorative procedure shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the hot restorative procedure shown according to another exemplary embodiment.
Fig. 4 is a kind of block diagram of hot repair apparatus for coating shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the hot repair apparatus for coating shown according to another exemplary embodiment.
Fig. 6 is a kind of block diagram of the hot repair complex system shown according to another exemplary embodiment.
Fig. 7 is a kind of flow chart of the hot restorative procedure shown according to another exemplary embodiment.
Fig. 8 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Fig. 9 is that a kind of computer readable storage medium schematic diagram is shown according to an exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will be comprehensively and complete It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to embodiment of the disclosure.However, It will be appreciated by persons skilled in the art that can with technical solution of the disclosure without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy all aspects of this disclosure.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
It should be understood that although herein various assemblies may be described using term first, second, third, etc., these groups Part should not be limited by these terms.These terms are to distinguish a component and another component.Therefore, first group be discussed herein below Part can be described as the second component without departing from the teaching of disclosure concept.As used herein, term " and/or " include associated All combinations for listing any of project and one or more.
It will be understood by those skilled in the art that attached drawing is the schematic diagram of example embodiment, module or process in attached drawing Necessary to not necessarily implementing the disclosure, therefore it cannot be used for the protection scope of the limitation disclosure.
Fig. 1 is the system block diagram of a kind of hot restorative procedure and device shown according to an exemplary embodiment.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 101,102,103 The application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as utilize terminal device 101,102,103 to user The app class application browsed provides the back-stage management server supported.Back-stage management server can come from user terminal with App is analyzed and processed using relevant request, and processing result is fed back to terminal device;Back-stage management server can be with App is provided and applies relevant code service, updated code is sent to terminal device.
Server 105 can for example obtain hot repair multiplexed code and relevant information;The hot repair for example can be answered generation by server 105 Code and relevant information are packaged, and generate packaging information;Packaging information can be generated block letter by digital signature by server 105 Breath;Server 105 can be for example disclosed the block information in block catenary system to provide hot repair and service again.
Terminal device 101,102,103 can wrap in the block information for example by obtaining block information in block catenary system Include hot repair multiplexed code and relevant information;Terminal device 101,102,103 for example can carry out local data school to the block information It tests;It is multiple to carry out hot repair that terminal device 101,102,103 can also for example parse the block information after verification passes through.
It should be noted that hot restorative procedure provided by the embodiment of the present disclosure can be by server 105 or terminal device 101, it 102,103 executes, correspondingly, hot repair apparatus for coating can be set in server 105 or terminal device 101,102,103. And the server-side for being supplied to user app application is normally in terminal device 101,102,103.
Fig. 2 is a kind of flow chart of hot restorative procedure shown according to an exemplary embodiment.Hot restorative procedure 20 is at least Including step S202 to S208.Hot restorative procedure 20 in Fig. 2 can be applicable to server-side.
As shown in Fig. 2, obtaining hot repair multiplexed code and relevant information in S202.Wherein, relevant information includes version number, Timestamp.As described above, hot repair multiplexed code may be, for example, the multiple code of the relevant pending hot repair of application software, version number's tool Body can be the Release parameter of client to be repaired, corresponding to different client releases, can for example provide different to be repaired Code.
In S204, the hot repair multiplexed code and relevant information are packaged, generate packaging information.It can be for example including: The hot repair multiplexed code and version number, timestamp are packaged.
In one embodiment, the hot repair multiplexed code and relevant information are packaged, generating packaging information includes:It will The hot repair multiplexed code and relevant information are encapsulated as JS object numbered musical notation (JSON) data structure;Determine block chain transaction content with life At the packaging information.
Wherein, JSON (JavaScript Object Notation) is a kind of data interchange format of lightweight, is used The text formatting of programming language is totally independent of to store and indicate data.In JS language, all are all objects.Therefore, appoint The type what is supported can be indicated by JSON, such as character string, number, object, array etc..But object and array are More special and common two types.
Wherein block chain transaction content (transaction) refers to the once-through operation in block chain, leads to account book state It is primary to change, such as one record of addition.In the present embodiment, block for example can be determined by setting transaction content Chain transaction content.
In one embodiment, the hot repair multiplexed code and relevant information are packaged, generating packaging information further includes: The packaging information is stored into the leaf node of Merck tree, to generate packaging information.Merck tree (Merkle Tree), usually Also referred to as Hash Tree is the one tree for storing hash value.The leaf of Merkle tree is data block (for example, in the present embodiment Packaging information) hash value.Nonleaf node is its hash for corresponding to child node series strings.
When transmitted data on network, A receives the file of B being transmitted through, and the file for needing to acknowledge receipt of is either with or without damage. Simplest method is that the hash result of file is first received file to A, A before transmitting file and calculates a Hash again then by B Relatively it is known that whether there is or not damages for file with the Hash received.But when file is very big, a file declustering is generally required very More data blocks are respectively transmitted, this when can first download a Hash list (hash list) before downloading data, this The cryptographic Hash of the corresponding data block of a list each single item.A root hash can be calculated after splicing to this hash list.It is real In the application of border, as long as ensuring to obtain correct root hash from a believable channel, so that it may ensure to download correct file.But Be traverse all data blocks hash list cost it is bigger, can only fetching portion node Hash.Pass through merkle tree The mode for storing hash list can be to avoid problem above.
In the present embodiment, in block chain, each block has a merkle tree, and there are each areas for cryptographic Hash The head of block is connected to block body by this root value, and being exactly in block body includes a large amount of transaction content, and transaction is originally Body has the cryptographic Hash of oneself to carry out unique identification oneself.
In S206, packaging information is generated into block information by digital signature.Digital signature (also known as public key digital label Name, Electronic Signature) it is a kind of similar common physical signature write on paper, but used the technology in public key encryption field real It is existing, the method for identifying digital information.Digital signature is related to the tools such as public key, private key and wallet, and there are two effects for it:One Prove that message is strictly to be signed and issued by information sender, second is that determining the integrality of message.Digital signature technology It is the private key encryption by summary info with sender, sends recipient to together with original text.Recipient only uses the public affairs of sender Key could decrypt encrypted summary info, then a summary info be generated to the original text received with HASH function, with decryption Summary info comparison.If identical, illustrate that the information received is completely, not modified in transmission process, otherwise Illustrate that information is modified, therefore digital signature is able to verify that the integrality of information.
The rudimentary algorithm of digital signature can be for example including:Symmetric encipherment algorithm, rivest, shamir, adelman, the application is not with this It is limited.
In S208, the block information is disclosed in block catenary system to provide hot repair and service again.In this public affairs In a kind of exemplary embodiment opened, the block information is disclosed in block catenary system to provide hot repair and answer services package It includes:The block information is disclosed in block catenary system to provide hot repair and service again by intelligence and about RPC interface.
In one embodiment, further include:By block chain common recognition algorithm, the block chain is written into the block information System.Wherein, common recognition algorithm is the ballot by special joint, the in a short period of time verifying and confirmation of complete swap. In the present embodiment, data structure of the block chain as a kind of storing data in chronological order, can support different common recognition mechanism.
Knowing together algorithm can be for example including:POW (Proof of Work, work prove), POS (Proof of Stake, stock Warrant is bright), DPOS (Delegated Proof of Stake appoints equity to prove), PBFT (Practical Byzantine Fault Tolerance, practical Byzantine failure tolerance algorithm).In one embodiment, the application is by DPOS heat deployment code It is cured on block chain with relevant information.
In one embodiment, it can also for example be inquired by hot repair multiplexed code of the block catenary system to publication.It utilizes The trackability of block chain technology, background management system can conveniently check the update resume of code
According to the hot restorative procedure of the disclosure, characteristic processing can not be distorted with block chain technology using intelligent contract is programmable Hot repair multiplexed code, and hot repair multiplexed code is published in block catenary system to provide hot repair multiple mode, it can guarantee heat deployment The safety of code guarantees the safety of users' mobile end.
It will be clearly understood that the present disclosure describes how to form and use particular example, but the principle of the disclosure is not limited to These exemplary any details.On the contrary, the introduction based on disclosure disclosure, these principles can be applied to many other Embodiment.
Fig. 3 is a kind of flow chart of hot restorative procedure shown according to an exemplary embodiment.Hot restorative procedure 30 is at least Including step S302 to S306.Hot restorative procedure 30 in Fig. 3 can be applicable to client.
As shown in figure 3, by obtaining block information in block catenary system, including hot repair in the block information in S302 Multiplexed code and relevant information.
In S304, local data verification is carried out to the block information.It can be for example, according to local digital signature to described Block information carries out data check.As described above, digital signature technology is the private key encryption by summary info with sender, with Original text sends recipient to together.Recipient only uses the public key of sender that could decrypt encrypted summary info, in this reality It applies in example, local digital signature is digital signature corresponding with block catenary system.
In S306, it is multiple to carry out hot repair that the block information is parsed after verification passes through.Wherein, relevant information includes version This number, timestamp, parse the block information after verification passes through to carry out hot repair includes again:Parse the block information;Root Hot repair multiplexed code is determined according to the version number;And hot repair is carried out according to the hot repair multiplexed code and is answered.
According to the hot restorative procedure of the disclosure, code to be repaired is obtained by block catenary system, can guarantee heat deployment The safety of code guarantees the safety of users' mobile end.
It will be appreciated by those skilled in the art that realizing that all or part of the steps of above-described embodiment is implemented as being executed by CPU Computer program.When the computer program is executed by CPU, above-mentioned function defined by the above method that the disclosure provides is executed Energy.The program can store in a kind of computer readable storage medium, which can be read-only memory, magnetic Disk or CD etc..
Further, it should be noted that above-mentioned attached drawing is only the place according to included by the method for disclosure exemplary embodiment Reason schematically illustrates, rather than limits purpose.It can be readily appreciated that above-mentioned processing shown in the drawings is not indicated or is limited at these The time sequencing of reason.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of hot repair apparatus for coating shown according to an exemplary embodiment.Hot repair apparatus for coating 40 includes:Letter Cease module 402, package module 404, signature blocks 406, and open module 408.
Information module 402 is for obtaining hot repair multiplexed code and relevant information;Wherein, relevant information includes version number, time Stamp.
Package module 404 generates packaging information for the hot repair multiplexed code and relevant information to be packaged;It can be such as Including:The hot repair multiplexed code and relevant information are encapsulated as JS object numbered musical notation (JSON) data structure;Determine that block chain is traded Content is to generate the packaging information.
Signature blocks 406 are used to packaging information generating block information by digital signature;The rudimentary algorithm of digital signature It can be for example including:Symmetric encipherment algorithm, rivest, shamir, adelman, the application are not limited.
Open module 408 in block catenary system for being disclosed the block information to provide hot repair and service again. The block information disclosed to service includes again to provide hot repair in block catenary system:Pass through intelligence and about RPC interface The block information is disclosed in block catenary system to provide hot repair and service again.
According to the hot repair apparatus for coating of the disclosure, characteristic processing can not be distorted with block chain technology using intelligent contract is programmable Hot repair multiplexed code, and hot repair multiplexed code is published in block catenary system to provide hot repair multiple mode, it can guarantee heat deployment The safety of code guarantees the safety of users' mobile end.
Fig. 5 is a kind of block diagram of the hot repair apparatus for coating shown according to another exemplary embodiment.Hot repair apparatus for coating 50 includes: Receiving module 502, correction verification module 504 and parsing module 506.
Receiving module 502 is used for by obtaining block information in block catenary system, includes that generation is answered in hot repair in the block information Code and relevant information.
Correction verification module 504 is used to carry out local data verification to the block information;It can be for example, according to local digital signature Data check is carried out to the block information.
It is multiple that parsing module 506 carries out hot repair for parsing the block information after verification passes through.Wherein, relevant information Including version number, timestamp, parse the block information after verification passes through to carry out hot repair includes again:Parse the block letter Breath;Hot repair multiplexed code is determined according to the version number;And hot repair is carried out according to the hot repair multiplexed code and is answered.
According to the hot repair apparatus for coating of the disclosure, code to be repaired is obtained by block catenary system, can guarantee heat deployment The safety of code guarantees the safety of users' mobile end.
Fig. 6 is a kind of block diagram of the hot repair complex system shown according to another exemplary embodiment.Hot repair complex system 60 includes: Server-side 602 and mobile terminal 604.
Server-side 602 is for obtaining hot repair multiplexed code and relevant information;The hot repair multiplexed code and relevant information are carried out Encapsulation generates packaging information;Packaging information is generated into block information by digital signature;And by the block information in block It is disclosed in catenary system to provide hot repair and service again;It wherein, may include heat deployment code release module 6022 in server-side 602 With check module 6024 and node module 6026
Mobile terminal 604 is used for by obtaining block information in block catenary system, includes hot repair multiplexed code in the block information And relevant information;Local data verification is carried out to the block information;And parsed after verification passes through the block information with It is multiple to carry out hot repair.Wherein, mobile terminal 604 may include node module 6042,
Fig. 7 is a kind of flow chart of hot restorative procedure shown according to an exemplary embodiment.It is described below by means of Fig. 6 The processing step of hot repair complex system, hot restorative procedure 70 include at least step S702 to S708.
As shown in fig. 7,602 heat of server-side needs the code of heat deployment according to version publication in S702, server-side is called The issuing interface of intelligent contract node encapsulation transmits three parameters (heat deployment code, version number, timestamp).
It wherein, may include heat deployment code release module 6022 and checking module 6024 in server-side 602:Issue heat deployment On code to block chain and check the block code statistical data issued.Call server-side intelligence contract node package interface SendCode (heat deployment code content parameter, client release parameter, time parameter) is published to code in block chain network.
It can also be for example, the symbol lookup function for calling the node module 6026 of server-side intelligence contract to encapsulate QueryCodeList () checks the block code issued.
In S704, the node module 6026 of intelligent contract obtains request and code is published to block chain in server-side 602 On network.
Wherein, node module 6026 is packaged for interface sendCode (the heat deployment code content of publication heat deployment code Parameter, client release parameter, time parameter) it is assembled into JSON data structure, then transaction content is set, and will It is stored into Merkle tree lowermost end leaf node.Then it is published in block chain network after signature.Wherein, it closes About code only allows contract publisher to issue code, and the node module 6026 of intelligent contract also has block data more new function concurrently.
In S706, the intelligent contract node 6026 in server-side 602 and the intelligent contract node 6042 in mobile terminal 604 Prove that mechanism is cured to heat deployment code and relevant information on block chain using DPOS commission equity.
In S708, the node module 6042 of the intelligent contract in mobile terminal 604 updates newest block information to locally.Its In, mobile terminal intelligence contract node 6042 and server-side intelligence contract node 6026 are reciprocity in P2P network.Only two The division of labor of node is different.Mobile terminal intelligence contract node 6042 only obtains all update code block datas to client, and Do not have release code to the function in block chain network.
In S710, the parsing module 6044 for block data parsing in mobile terminal 604 carries out local block first Data check, then parse block chain information, find matching mobile terminal version code and execution.Mobile terminal intelligence contract Node 6042 can store after having updated data into mobile terminal 604, and parsing module 6044 reads mobile terminal local data according to label Name carries out the verification of data integrity.
In S712, mobile terminal 604 executes hot repair multiplexed code and initializes.
According to the hot repair complex system of the disclosure, parsed by mobile terminal integrated intelligent contract node module and block data Module obtains server-side intelligence contract node and is issued to the heat deployment code on block chain, can guarantee the peace of heat deployment code Full property and trackability.
Fig. 8 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
The electronic equipment 200 of this embodiment according to the disclosure is described referring to Fig. 8.The electronics that Fig. 8 is shown Equipment 200 is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 8, electronic equipment 200 is showed in the form of universal computing device.The component of electronic equipment 200 can wrap It includes but is not limited to:At least one processing unit 210, at least one storage unit 220, (including the storage of the different system components of connection Unit 220 and processing unit 210) bus 230, display unit 240 etc..
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 210 Row, so that the processing unit 210 executes described in this specification above-mentioned electronic prescription circulation processing method part according to this The step of disclosing various illustrative embodiments.For example, the processing unit 210 can be executed as in Fig. 2, Fig. 3 and Fig. 7 Shown step.
The storage unit 220 may include the readable medium of volatile memory cell form, such as random access memory Unit (RAM) 2201 and/or cache memory unit 2202 can further include read-only memory unit (ROM) 2203.
The storage unit 220 can also include program/practical work with one group of (at least one) program module 2205 Tool 2204, such program module 2205 include but is not limited to:Operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
Bus 230 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 200 can also be with one or more external equipments 300 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 200 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 200 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 250.Also, electronic equipment 200 can be with By network adapter 260 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.Network adapter 260 can be communicated by bus 230 with other modules of electronic equipment 200.It should Understand, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 200, including but unlimited In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server or network equipment etc.) executes the above method according to disclosure embodiment.
Fig. 9 schematically shows a kind of computer readable storage medium schematic diagram in disclosure exemplary embodiment.
Refering to what is shown in Fig. 9, describing the program product for realizing the above method according to embodiment of the present disclosure 400, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, the program product of the disclosure is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more conducting wires, read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer readable storage medium may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing Readable medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the disclosure operation program Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by one When the equipment executes, so that the computer-readable medium implements function such as:Obtain hot repair multiplexed code and relevant information;It will be described Hot repair multiplexed code and relevant information are packaged, and generate packaging information;Packaging information is generated into block information by digital signature; And the block information is disclosed in block catenary system to provide hot repair and service again.
It will be appreciated by those skilled in the art that above-mentioned each module can be distributed in device according to the description of embodiment, it can also Uniquely it is different from one or more devices of the present embodiment with carrying out corresponding change.The module of above-described embodiment can be merged into One module, can also be further split into multiple submodule.
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, mobile terminal or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
It is particularly shown and described the exemplary embodiment of the disclosure above.It should be appreciated that the present disclosure is not limited to Detailed construction, set-up mode or implementation method described herein;On the contrary, disclosure intention covers included in appended claims Various modifications and equivalence setting in spirit and scope.
In addition, structure shown by this specification Figure of description, ratio, size etc., only to cooperate specification institute Disclosure, for skilled in the art realises that be not limited to the enforceable qualifications of the disclosure with reading, therefore Do not have technical essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the disclosure Under the technical effect and achieved purpose that can be generated, it should all still fall in technology contents disclosed in the disclosure and obtain and can cover In the range of.Meanwhile cited such as "upper" in this specification, " first ", " second " and " one " term, be also only and be convenient for Narration is illustrated, rather than to limit the enforceable range of the disclosure, relativeness is altered or modified, without substantive change Under technology contents, when being also considered as the enforceable scope of the disclosure.

Claims (14)

1. a kind of hot restorative procedure, which is characterized in that including:
Obtain hot repair multiplexed code and relevant information;
The hot repair multiplexed code and relevant information are packaged, packaging information is generated;
Packaging information is generated into block information by digital signature;And
The block information is disclosed in block catenary system to provide hot repair and service again.
2. the method as described in claim 1, which is characterized in that further include:
By block chain common recognition algorithm, the block catenary system is written into the block information.
3. the method as described in claim 1, which is characterized in that relevant information includes version number, timestamp,
By the hot repair multiplexed code and relevant information be packaged including:
The hot repair multiplexed code and version number, timestamp are packaged.
4. the method as described in claim 1, which is characterized in that the hot repair multiplexed code and relevant information are packaged, it is raw Include at packaging information:
The hot repair multiplexed code and relevant information are encapsulated as JS object numbered musical notation data structure;
Block chain transaction content is determined to generate the packaging information.
5. the method as described in claim 1, which is characterized in that the hot repair multiplexed code and relevant information are packaged, it is raw Further include at packaging information:
The packaging information is stored into the leaf node of Merck tree, to generate packaging information.
6. the method as described in claim 1, which is characterized in that the block information is disclosed in block catenary system with There is provided hot repair, service includes again:
The block information is disclosed in block catenary system to provide hot repair and service again by intelligence and about RPC interface.
7. a kind of hot restorative procedure, which is characterized in that including:
It include hot repair multiplexed code and relevant information in the block information by obtaining block information in block catenary system;
Local data verification is carried out to the block information;And
It is multiple to carry out hot repair that the block information is parsed after verification passes through.
8. the method for claim 7, which is characterized in that carrying out local data verification to the block information includes:
Data check is carried out to the block information according to local digital signature.
9. the method for claim 7, which is characterized in that relevant information includes version number, timestamp,
The block information is parsed after verification passes through to carry out hot repair includes again:
Parse the block information;
Hot repair multiplexed code is determined according to the version number;And
It is multiple that hot repair is carried out according to the hot repair multiplexed code.
10. a kind of hot repair apparatus for coating, which is characterized in that including:
Information module, for obtaining hot repair multiplexed code and relevant information;
Package module generates packaging information for the hot repair multiplexed code and relevant information to be packaged;
Signature blocks, for packaging information to be generated block information by digital signature;And
Open module, for being disclosed the block information in block catenary system to provide hot repair and service again.
11. a kind of hot repair apparatus for coating, which is characterized in that including:
Receiving module, for including hot repair multiplexed code and phase in the block information by obtaining block information in block catenary system Close information;
Correction verification module, for carrying out local data verification to the block information;And
It is multiple to carry out hot repair for parsing the block information after verification passes through for parsing module.
12. a kind of hot repair complex system, which is characterized in that including:
Server-side, for obtaining hot repair multiplexed code and relevant information;The hot repair multiplexed code and relevant information are packaged, it is raw At packaging information;Packaging information is generated into block information by digital signature;And by the block information in block catenary system In disclosed to provide hot repair and service again;And
Client, for including hot repair multiplexed code and correlation in the block information by obtaining block information in block catenary system Information;Local data verification is carried out to the block information;And the block information is parsed after verification passes through to carry out heat It repairs.
13. a kind of electronic equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-6 or 7-9.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-6 or 7-9 is realized when row.
CN201810634933.4A 2018-06-15 2018-06-15 Hot restorative procedure, device, system, electronic equipment and computer-readable medium Pending CN108829436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810634933.4A CN108829436A (en) 2018-06-15 2018-06-15 Hot restorative procedure, device, system, electronic equipment and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810634933.4A CN108829436A (en) 2018-06-15 2018-06-15 Hot restorative procedure, device, system, electronic equipment and computer-readable medium

Publications (1)

Publication Number Publication Date
CN108829436A true CN108829436A (en) 2018-11-16

Family

ID=64142476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810634933.4A Pending CN108829436A (en) 2018-06-15 2018-06-15 Hot restorative procedure, device, system, electronic equipment and computer-readable medium

Country Status (1)

Country Link
CN (1) CN108829436A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297666A (en) * 2019-06-21 2019-10-01 百度在线网络技术(北京)有限公司 Hot restorative procedure, device, system and storage medium
CN113050925A (en) * 2021-03-19 2021-06-29 中国工商银行股份有限公司 Intelligent contract repairing method and device for block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506146A (en) * 2016-10-26 2017-03-15 北京瑞卓喜投科技发展有限公司 Based on the Transaction Information method of calibration of block chain technology, apparatus and system
CN106778343A (en) * 2016-12-12 2017-05-31 武汉优聘科技有限公司 It is a kind of that the data sharing method of private data is related to based on block chain
CN106991165A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and the electronic equipment of processing financial data based on block chain
CN107122477A (en) * 2017-05-02 2017-09-01 成都中远信电子科技有限公司 A kind of block chain storage system
CN107508812A (en) * 2017-08-29 2017-12-22 广东工业大学 A kind of industry control network date storage method, call method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506146A (en) * 2016-10-26 2017-03-15 北京瑞卓喜投科技发展有限公司 Based on the Transaction Information method of calibration of block chain technology, apparatus and system
CN106778343A (en) * 2016-12-12 2017-05-31 武汉优聘科技有限公司 It is a kind of that the data sharing method of private data is related to based on block chain
CN106991165A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and the electronic equipment of processing financial data based on block chain
CN107122477A (en) * 2017-05-02 2017-09-01 成都中远信电子科技有限公司 A kind of block chain storage system
CN107508812A (en) * 2017-08-29 2017-12-22 广东工业大学 A kind of industry control network date storage method, call method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297666A (en) * 2019-06-21 2019-10-01 百度在线网络技术(北京)有限公司 Hot restorative procedure, device, system and storage medium
CN113050925A (en) * 2021-03-19 2021-06-29 中国工商银行股份有限公司 Intelligent contract repairing method and device for block chain
CN113050925B (en) * 2021-03-19 2024-02-13 中国工商银行股份有限公司 Block chain intelligent contract repairing method and device

Similar Documents

Publication Publication Date Title
AU2014238282B2 (en) Systems and methods for cryptographic security as a service
CN108305170A (en) External service access method, system, equipment and storage medium based on block chain
CN108540459A (en) Data storage method, device, system, electronic equipment and computer-readable medium
CN110493007A (en) A kind of Information Authentication method, apparatus, equipment and storage medium based on block chain
US11151582B2 (en) Smart logistics management using blockchain
CN107408135A (en) For carrying out the database server and client of query processing to encryption data
CN109670803A (en) Method, apparatus, medium and the electronic equipment tested before online trading
US20240020392A1 (en) Enabling reliable communications between computing instances
CN108537047B (en) Method and device for generating information based on block chain
CN111433797A (en) Block chain equipment control system and method based on composite key
CN109145632A (en) For generating the method and device of traceable file
CN110225032B (en) Business data transaction method and equipment
CN109814889B (en) Method and apparatus for updating source code base
CN109040055A (en) The method for realizing Web secure access using domestic password
CN114500093B (en) Safe interaction method and system for message information
CN109767200A (en) A kind of electric paying method, device, system and storage medium
US10909264B2 (en) Personal data providing system, personal data providing method, and information processing apparatus
CN112308236A (en) Method, device, electronic equipment and storage medium for processing user request
CN110535631A (en) Method, system, equipment and the storage medium of edge calculations node data transmission
CN108829436A (en) Hot restorative procedure, device, system, electronic equipment and computer-readable medium
US20200043016A1 (en) Network node for processing measurement data
CN110060046A (en) A kind of transaction processing method, device, system, equipment and storage medium
KR20230080677A (en) High-speed blockchain system and method for processing an information using the same
Satybaldy et al. A taxonomy of challenges for self-sovereign identity systems
CN109951565B (en) Data transmission method, device, medium and electronic equipment of supply chain management system

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: 20181116

RJ01 Rejection of invention patent application after publication