CN110401631A - System upgrade information acquisition method, device, storage medium and block chain node - Google Patents

System upgrade information acquisition method, device, storage medium and block chain node Download PDF

Info

Publication number
CN110401631A
CN110401631A CN201910532806.8A CN201910532806A CN110401631A CN 110401631 A CN110401631 A CN 110401631A CN 201910532806 A CN201910532806 A CN 201910532806A CN 110401631 A CN110401631 A CN 110401631A
Authority
CN
China
Prior art keywords
block chain
upgrade information
target object
block
chain node
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
CN201910532806.8A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910532806.8A priority Critical patent/CN110401631A/en
Publication of CN110401631A publication Critical patent/CN110401631A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The application provides a kind of system upgrade information acquisition method, device, storage medium and block chain node, is applied to block chain technical field.When the method includes: that the first block chain node listens to system upgrade, the target object mark of the gray scale publication of newest upgrade information and input is obtained;The first block chain node encrypts the newest upgrade information using target object mark, obtains encryption data;Block chain is added after the encryption data is packaged into block in the first block chain node, so that the second block chain node where the block chain indicates the user of the system when the block is added downloads the block.The embodiment of the present application improves the efficiency that newest upgrade information obtains.

Description

System upgrade information acquisition method, device, storage medium and block chain node
Technical field
This application involves block chain technical fields, specifically, this application involves a kind of system upgrade information acquisition method, Device, storage medium and block chain node.
Background technique
In order to improve the performance of system, technical staff needs constantly to carry out the service of system or resource perfect.With regard to mesh For preceding Industry, service or resource if some system will open to the outside world, in order to guarantee the use of user, it is desirable to provide Document or supporting paper describe the service or resource of opening, that is to say description upgrade information.But current this kind of mode Have the following deficiencies: that user needs to download newest upgrading by linking up or logging on to appointed place by modes such as account passwords Information, efficiency are lower.
Summary of the invention
The application is directed to the shortcomings that existing way, propose a kind of system upgrade information acquisition method, device, storage medium and Block chain node, to improve the efficiency that newest upgrade information obtains.
Embodiments herein provides a kind of system upgrade information acquisition method according to first aspect, comprising:
When first block chain node listens to system upgrade, the target of the gray scale publication of newest upgrade information and input is obtained Object identity;
The first block chain node encrypts the newest upgrade information using target object mark, obtains Encryption data;
Block chain is added after the encryption data is packaged into block in the first block chain node, so that the block chain The second block chain node where indicating the user of the system when the block is added downloads the block.
In one embodiment, the first block chain node is identified using the target object and is believed the newest upgrading Breath is encrypted, and encryption data is obtained, comprising:
If the target object mark only one, Hash calculation is carried out to the newest upgrade information, acquisition is described most The cryptographic Hash of new upgrade information;
The cryptographic Hash of the newest upgrade information is encrypted using target object mark, obtains encryption data.
In one embodiment, the first block chain node is identified using the target object and is believed the newest upgrading Breath is encrypted, and encryption data is obtained, comprising:
If the target object be identified with it is multiple, will the newest upgrading letter according to the number that the target object identifies Breath is split as multiple portions;
Establish the one-to-one relationship of each target object mark and various pieces;
According to the corresponding relationship, each target object mark is respectively adopted, corresponding part is encrypted, obtain each The secret value of a part;
The secret value of various pieces is combined according to the sequence of fractionation, generates the encryption data.
In one embodiment, the first block chain node is identified using the target object and is believed the newest upgrading Breath is encrypted, and encryption data is obtained, comprising:
If the target object be identified with it is multiple, according to default selection rule respectively from each target object mark in choose Partial character;
The partial character of selection is combined into new mark according to setting sequence;
The newest upgrade information is encrypted using the new mark, obtains encryption data.
Embodiments herein additionally provides a kind of system upgrade information acquisition method according to the second aspect, comprising:
The update notification of the upgrade information for the system that second block chain node reception area block chain is sent when block is added;Institute Stating block includes encryption data, and the target object mark that the encryption data is issued by gray scale believes the newest upgrading of the system Encryption for information obtains;
The second block chain node downloads the block from the block chain;
The second block chain node determines the target object mark;
The second block chain node is decrypted the encryption data of the block according to target object mark, obtains Obtain the newest upgrade information.
Embodiments herein additionally provides a kind of system upgrade information acquisition method according in terms of third, comprising:
When first block chain node listens to system upgrade, the target of the gray scale publication of newest upgrade information and input is obtained Object identity;
The first block chain node encrypts the newest upgrade information using target object mark, obtains Encryption data;
Block chain is added after the encryption data is packaged into block in the first block chain node;
The block chain sends the upgrade information of system to the second block chain node where the user of the system Update notification;
When the second block chain node receives the update notification, the block is downloaded from the block chain;
The second block chain node determines the target object mark;
The second block chain node is decrypted the encryption data of the block according to target object mark, obtains Obtain the newest upgrade information.
Embodiments herein additionally provides a kind of system upgrade information acquisition device according to the 4th aspect, comprising:
Data acquisition module when for listening to system upgrade, obtains the gray scale publication of newest upgrade information and input Target object mark;
Encrypting module is encrypted for being encrypted using target object mark to the newest upgrade information Data;
Packetization module, for block chain to be added after the encryption data is packaged into block, so that the block chain is in institute It states the second block chain node where indicating the user of the system when block is added and downloads the block.
Embodiments herein additionally provides a kind of system upgrade information acquisition device according to the 5th aspect, comprising:
Update notification receiving module, the update of the upgrade information for receiving the system that block chain is sent when block is added Notice;The block includes encryption data, and the target object that the encryption data is issued by gray scale is identified to the system most New upgrade information encrypts to obtain;
Block download module, for downloading the block from the block chain;
Target object identifies determining module, for determining the target object mark;
Deciphering module obtains institute for the encryption data of the block to be decrypted according to target object mark State newest upgrade information.
Embodiments herein additionally provides a kind of computer readable storage medium, stores thereon according to the 6th aspect There is computer program, which realizes system upgrade information acquisition method described in above-mentioned any one when being executed by processor.
Embodiments herein additionally provides a kind of block chain node, the block chain node packet according to the 7th aspect It includes:
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 processing Device realizes system upgrade information acquisition method described in above-mentioned any one.
Above-mentioned system upgrade information acquisition method, device, storage medium and block chain node, uses block chain technology support Guard system opening service or resource, that is to say upgrade information, after system upgrade, with regard to synchronized update upgrade information and should Upgrade information is packaged the cost that modification document and communication is reduced into chain, and any variation of upgrade information can notify in time User, user can intuitively see the service and its resource opened to the outside world after this upgrading by downloading corresponding block List and its variation no longer need to download newest upgrade information to appointed place by way of linking up or account password logs in, The newest upgrade information acquisition modes of simple type identifier are provided to user, therefore improve the effect that newest upgrade information obtains Rate.
The additional aspect of the application and advantage will be set forth in part in the description, these will become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 for system upgrade information acquisition method institute provided by the present application application hardware environment schematic diagram;
Fig. 2 is the schematic diagram of the system upgrade information acquisition method of the application one embodiment;
Fig. 3 is the schematic diagram of the system upgrade information acquisition device of the application one embodiment;
Fig. 4 is the schematic diagram of the system upgrade information acquisition method of another embodiment of the application;
Fig. 5 is the schematic diagram of the system upgrade information acquisition device of another embodiment of the application;
Fig. 6 is the schematic diagram of the system upgrade information acquisition method of another embodiment of the application;
Fig. 7 is the schematic diagram of the block chain node of the application one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the application, and cannot be construed to the limitation to the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in the application fields.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
System upgrade information acquisition method provided by the embodiments of the present application can be applied to as shown in Figure 1 by the first block In the hardware environment that chain node 110, the second block chain node 120 and block chain are constituted.Block chain is a distributed account book, It is a kind of decentralization, go trust by way of collective safeguard an authentic data library technical solution.Here " distribution " It is not only presented as the distributed storage of data, is also embodied in the distributed recording (being safeguarded jointly by system participant) of data. It is commonly referred " node ", refers to computer in block chain, including mobile phone, mine machine, desktop computer and block chain node etc..Often One equipment can act as a node, and each node allows to obtain a complete database copy.One is based between node Common recognition mechanism is covered, safeguards entire block chain jointly by competing to calculate.The people for operating a node can be common wallet and use Family, miner and more personal synergics.Modified upgrade information is packaged into area in system upgrade by the first block chain node 110 Block simultaneously uploads to block chain, and the second block chain node 120 where block chain to system user sends update notification, the secondth area Block chain node downloads corresponding block after receiving update notification from block chain, to improve what newest upgrade information obtained Efficiency.
First below from the angle of the first block chain node, to system upgrade information acquisition method provided by the present application It describes in detail with the specific embodiment of device.
As shown in Fig. 2, the schematic diagram of the system upgrade information acquisition method for an embodiment, this method comprises:
When S210, the first block chain node listen to system upgrade, the gray scale publication of newest upgrade information and input is obtained Target object mark.
If participating in block chain it is necessary to possess a block chain node.A resource support is made using block chain technology Pipe platform.Terminal where all systems and the terminal where the user of system are registered to this platform as block chain node In.The user of system refers to the object using the system.Whether the first block chain node monitoring system upgrades, and such as upgrades, Obtain newest upgrade information.
The operation rule of block chain is that open and clear, all data information is also disclosed, therefore upgrade information is all It is visible to all nodes.If the open service of system external or resource are just for part user, in order to effectively avoid other User sees the upgrade information of this upgrading, optionally, it is also necessary to the target object mark for obtaining gray scale publication, after being used for Continuous data encryption.Gray scale, which is issued, to be referred between black and white, a kind of published method that can be seamlessly transitted.It on it can be into Row A/B testing allows a part of user to continue to use product characteristic A, a part of user starts to use product characteristic B, if with Family is to what no opposing views of B, then gradually expanded scope, all moves to all users to come above B.Gray scale publication can be with The stabilization for guaranteeing total system, can find, adjustment problem when initial gray, to guarantee its disturbance degree.Target pair As referring to allowing the object using the upgrade information.Target object mark can be configured according to actual needs, for example, mesh Marking object identity can be mobile phone or computer type, and device version, signal channel and/or system version are Android or apple Fruit etc..
S220, the first block chain node add the newest upgrade information using target object mark It is close, obtain encryption data.
In order to effectively avoid other users from seeing the upgrade information of this upgrading, identified using target object to most new liter Grade information is encrypted, and the mode specifically encrypted can be that target object is identified to the mode as key to newest upgrade information Encrypt, etc..
Block chain is added after the encryption data is packaged into block in S230, the first block chain node, so that described The second block chain node where block chain indicates the user of the system when the block is added downloads the block.
In the application, block is a kind of data structure for recording upgrade information.Each block is by block head and block main body Composition, block main body are responsible for recording the upgrade information of this upgrading, and most of function of block chain is all realized by block head.When being When system upgrading, newest upgrade information can be packaged into block automatically and be incorporated to chain by the block chain node where the system.In block chain It can store in the mark of the user of the system, after block chain finds user, send upgrade information to these users Update notification.Alternatively, due to subsequent also needing that encryption data is decrypted using target object mark, so block chain is also Can be to all node broadcasts update notifications, if it is the target object of gray scale publication, then available correct target object It identifies and decrypts, otherwise fail to decrypt correctly.User is participated in block chain in a manner of block chain node, then rising every time When grade information has update, update notification can be received.Block chain node where user directly downloads newest block, so that it may Get the newest upgrade information in block.
The present embodiment uses block chain technical trusteeship system external open service or resource, that is to say upgrade information, is being After system upgrading, the cost that modification document and communication is reduced into chain is packaged with regard to synchronized update upgrade information and by the upgrade information, Any variation of upgrade information can notify user, user that can intuitively see this by downloading corresponding block in time The list and its variation of the service and its resource opened to the outside world after secondary upgrading, no longer need to by link up or account password log in Mode downloads newest upgrade information to appointed place, provides the newest upgrade information acquisition modes of simple type identifier to user, Therefore the efficiency that newest upgrade information obtains is improved.
In one embodiment, the first block chain node is identified using the target object and is believed the newest upgrading Breath encrypted, obtain encryption data, comprising: if the target object mark only one, to the newest upgrade information into Row Hash calculation obtains the cryptographic Hash of the newest upgrade information;The newest upgrading is believed using target object mark The cryptographic Hash of breath is encrypted, and encryption data is obtained.In the present embodiment, the cryptographic Hash of newest upgrade information is first calculated, is then adopted The cryptographic Hash is encrypted with target object mark, further improves the safety of newest upgrade information.
In view of target object mark may have it is multiple, in order to more preferably realize the safety of newest upgrade information in the case of this kind Property, in another embodiment, the first block chain node is identified using the target object to the newest upgrade information It is encrypted, obtains encryption data, comprising:
If S2201, the target object be identified with it is multiple, according to the target object identify number, will be described newest Upgrade information is split as multiple portions.
When being split to newest upgrade information, target object be identified with it is N number of, just according to the fractionation of setting sequentially by newest upgrading Information splits into N number of part, and the byte number of N number of part can be identical, can not also be identical, wherein N is the positive integer greater than 1. Fractionation sequence can be configured according to actual needs.For example, according to the total bytes of newest upgrade information and needing to split Quantity determine the byte number of every part, then according to the byte number of every part, fractionation sequence can be from top to bottom or from Under up split, be also possible to carry out splitting from left to right or from right to left, etc..In another example according to newest upgrading The quantity that the total line number and needs of information are split determines the line number of every part, then according to the line number of every part, fractionation sequence It can be and carry out splitting from top to bottom or from the bottom up, etc..
By taking target object mark includes two parts of system version and equipment development quotient as an example, need nearest upgrade information It is split as two parts, it is assumed that total line number of newest upgrade information is 8 rows, it is determined that the line number for going out every part is 4, then first reads 4 row byte above using the byte of 4 rows above as first part, then reads following 4 row byte, and the byte of following 4 row is made For the second part.
S2202, the one-to-one relationship for establishing each target object mark and various pieces.
One-to-one relationship refers to a target object mark uniquely corresponding part.The foundation of one-to-one relationship It can be configured according to actual needs.
S2203, according to the corresponding relationship, each target object mark is respectively adopted, corresponding part is encrypted, Obtain the secret value of various pieces.
In encryption, each respective corresponding part of target object mark is determined according to corresponding relationship, it then will be every A target object mark respectively encrypts corresponding part, so that it may obtain the secret value of each part.
S2204, the secret value of various pieces is combined according to the sequence of fractionation, generates the encryption data.
In step S2201, using certain sequence when being split to newest upgrade information, for example, by newest upgrade information It is split according to from sequence of the left side after, then in step S2204, according to the sequence of the fractionation to the secret values of various pieces It is combined, for example, the secret value of various pieces is combined to after, the data after combination are encryption data.
In another embodiment, the first block chain node is identified using the target object to the newest upgrading Information is encrypted, and encryption data is obtained, comprising:
If S220a, the target object be identified with it is multiple, according to default selection rule respectively from each target object identify Middle selected part character.
Default selection rule can be configured according to actual needs, such as be chosen respectively from each target object mark Preceding several characters perhaps choose intermediate several characters or choose several characters etc. below.
S220b, the partial character of selection is combined into new mark according to setting sequence.
Setting sequence can be according to actual needs self-setting, the partial character that will be chosen from each target object mark It is combined according to setting sequence, generates new mark.For example, target object mark includes: ABC, DEF, GHI, successively choose A, D and G, and successively combined according to sequencing, obtain new mark ADG.
S220c, the newest upgrade information is encrypted using the new mark, obtains encryption data.
Newest upgrade information is encrypted using new mark, so that it may obtain encryption data.
It should be understood that the application is not defined the mode of encryption, user can also be in other manners It is encrypted, for example, newest upgrading data are divided into several parts, Hash calculation is carried out to each part, is obtained each Partial cryptographic Hash combines the cryptographic Hash of each part in a certain order, is then identified using target object to the group Conjunction is encrypted, and encryption data is obtained.
Based on the same inventive concept, the application also provides a kind of system upgrade information acquisition device, right with reference to the accompanying drawing The specific embodiment of the application device describes in detail.
As shown in figure 3, the schematic diagram of the system upgrade information acquisition device for an embodiment, the device include:
Data acquisition module 310 when for listening to system upgrade, obtains the gray scale publication of newest upgrade information and input Target object mark;
Encrypting module 320 is added for being encrypted using target object mark to the newest upgrade information Ciphertext data;
Packetization module 330, for block chain to be added after the encryption data is packaged into block, so that the block chain exists The the second block chain node block indicates the user of the system when being added where downloads the block.
In one embodiment, encrypting module 320 includes:
Cryptographic Hash obtaining unit, for the target object mark only one when, to the newest upgrade information into Row Hash calculation obtains the cryptographic Hash of the newest upgrade information;
Encryption unit, for being encrypted using target object mark to the cryptographic Hash of the newest upgrade information, Obtain encryption data.
In another embodiment, encrypting module 320 includes:
Split cells, for according to the number that the target object identifies, inciting somebody to action when the target object is identified with multiple The newest upgrade information is split as multiple portions;
Correspondence relationship establishing unit, for establishing the one-to-one relationship of each target object mark and various pieces;
Encryption unit, for according to the corresponding relationship, be respectively adopted each target object mark to corresponding part into Row encryption, obtains the secret value of various pieces;
Assembled unit generates the encryption number for the secret value of various pieces to be combined according to the sequence of fractionation According to.
In another embodiment, encrypting module 320 includes:
Character selection unit, for when the target object is identified with multiple, according to default selection rule respectively from each Selected part character in a target object mark;
Assembled unit, for the partial character of selection to be combined into new mark according to setting sequence;
Encryption unit obtains encryption data for encrypting using the new mark to the newest upgrade information.
Other technical characteristics of above system upgrade information acquisition device and the skill of above system upgrade information acquisition methods Art feature is identical, and it will not be described here.
Below from the angle of the second block chain node, to the application another kind system upgrade information acquisition method and dress The specific embodiment set is described in detail.
As shown in figure 4, the schematic diagram of the system upgrade information acquisition method for an embodiment, this method comprises:
The update of the upgrade information for the system that S410, the second block chain node reception area block chain are sent when block is added is logical Know;The block includes encryption data, and the target object that the encryption data is issued by gray scale is identified to the newest of the system Upgrade information encrypts to obtain.
A resource hosted platform is made using block chain technology.All systems and user infuse as block chain node For volume into this platform, the block chain node where system is the first block chain node, the block chain link where the user of system Point is the second block chain node.When first block chain node listens to system upgrade, identified using target object to described newest Upgrade information is encrypted, and encryption data is obtained, and block chain is added after the encryption data is packaged into block.It can in block chain To be stored in the mark of the user of the system.After block chain finds user, to the second block where these users The update notification of chain node transmission upgrade information.
S420, the second block chain node download the block from the block chain.
S430, the second block chain node determine the target object mark.
The update notification that block chain is sent generally comprises the prompt information of the target object mark of instruction gray scale publication, such as Prompt information is that target object is identified as a certain system version number etc., can after the second block chain node download area block of user Corresponding mark is obtained with the prompt information that indicates according to update notification, such as when to be that target object is identified as a certain for prompt information When system version, the second block chain node is obtained from the system version number of body.
S440, the second block chain node solve the encryption data of the block according to target object mark It is close, obtain the newest upgrade information.
User directly downloads newest block, and required thing is all inside.Since newest upgrade information is with gray scale side Formula is issued, after user's node downloads the block, it is also necessary to be identified according to the target object of acquisition, such as type etc. is right Newest upgrade information is decrypted in the block of downloading, obtains the newest upgrade information in block, and thus, it is possible to intuitively see this The list and its variation of the service and its resource opened to the outside world after secondary upgrading.
When in view of there is multiple target object mark encryptions, the update notification that block chain is sent also needs to include target object The encryption rule of mark, after the second block chain node download area block, according to the prompt information and encryption rule of target object mark Prompt information obtain corresponding mark, and the mode of decryption is determined according to the encryption rule, according to the mark and decryption of acquisition Mode block is decrypted, obtain block in newest upgrade information.
The present embodiment uses block chain technical trusteeship system external open service or resource, that is to say upgrade information, is being After system upgrading, the cost that modification document and communication is reduced into chain is packaged with regard to synchronized update upgrade information and by the upgrade information, Any variation of upgrade information can notify user, user that can intuitively see this by downloading corresponding block in time The list and its variation of the service and its resource opened to the outside world after secondary upgrading, no longer need to by link up or account password log in Mode downloads newest upgrade information to appointed place, provides the newest upgrade information acquisition modes of simple type identifier to user, Therefore the efficiency that newest upgrade information obtains is improved.
For the mode that the first block chain node encrypts newest upgrade information, the second block chain node of the application is also needed Corresponding decryption is carried out, is introduced separately below.
In one embodiment, if encryption data encrypts the cryptographic Hash of newest upgrade information by target object mark It arrives, then the second block chain node first uses target object mark that block is decrypted, and obtains the Kazakhstan of newest upgrade information Uncommon value, then carries out Hash decryption to the cryptographic Hash of newest upgrade information, obtains newest upgrade information.
In another embodiment, if encryption data is composed of the secret value of various pieces according to the sequence of fractionation, The second block chain link point splits encryption data according to the sequence of preset fractionation, obtains the encryption of various pieces Each target pair is respectively adopted according to the one-to-one relationship of each target object mark and various pieces that pre-establish in value As mark the secret value of corresponding part is decrypted, obtain various pieces, then according to the sequence of fractionation to various pieces into Row combination, obtains newest upgrade information.
In another embodiment, if encryption data encrypts newest upgrade information by new mark, the secondth area The prompt information that block chain node is identified according to target object, and the setting sequence of the character selection rule indicated and character combination New mark is generated, then encryption data is decrypted using the new mark generated again, obtains newest upgrade information.
In view of gray scale is issued just for part user, which downloads as block chain node and decrypts most new liter After grade information, it is easy to steal the upgrade information by other block chain nodes, therefore, obtain newest upgrade information and correctly install Afterwards, it needs newest upgrade information from user's knot removal, to guarantee the safety of upgrade information.
Each transaction in block chain all passes through cryptography method and connects with two neighboring block, therefore can trace back to The previous and present life of any transaction.Therefore, it is needing to check old version, is understanding when changing train of thought, user is to block chain Request is checked in transmission, is checked comprising old version information in request, after block chain checks that corresponding block is found in request according to this, The block is pushed to user.
Based on the same inventive concept, the application also provides a kind of system upgrade information acquisition device, below with reference to device pair The specific embodiment of the application describes in detail.
As shown in figure 5, the schematic diagram of the system upgrade information acquisition device for an embodiment, the device include:
Update notification receiving module 510, for receiving the upgrade information of system that block chain is sent when block is added Update notification;The block includes encryption data, and the target object that the encryption data is issued by gray scale is identified to the system Newest upgrade information encrypt to obtain;
Block download module 520, for downloading the block from the block chain;
Target object identifies determining module 530, for determining the target object mark;
Deciphering module 540 is obtained for the encryption data of the block to be decrypted according to target object mark The newest upgrade information.
In one embodiment, if encryption data encrypts the cryptographic Hash of newest upgrade information by target object mark It arrives, then the deciphering module 540 is first decrypted block using target object mark, obtains the Hash of newest upgrade information Then value carries out Hash decryption to the cryptographic Hash of newest upgrade information, obtains newest upgrade information.
In another embodiment, if encryption data is composed of the secret value of various pieces according to the sequence of fractionation, The deciphering module 540 splits encryption data according to the sequence of preset fractionation, obtains the secret value of various pieces, root According to the one-to-one relationship of each target object mark and various pieces that pre-establish, each target object mark is respectively adopted The secret value of corresponding part is decrypted, various pieces is obtained, then various pieces is combined according to the sequence of fractionation, Obtain newest upgrade information.
In another embodiment, if encryption data encrypts newest upgrade information by new mark, mould is decrypted The prompt information that block 540 is identified according to target object, and the setting sequence life of the character selection rule indicated and character combination Then the mark of Cheng Xin is again decrypted encryption data using the new mark generated, obtains newest upgrade information.
Other technical characteristics of above system upgrade information acquisition device and the skill of above system upgrade information acquisition methods Art feature is identical, and it will not be described here.
Below again from the angle of system, to a kind of specific embodiment of system upgrade information acquisition method of the application It is described in detail.
As shown in fig. 6, the schematic diagram of the system upgrade information acquisition method for an embodiment, this method comprises:
When S610, the first block chain node listen to system upgrade, the gray scale publication of newest upgrade information and input is obtained Target object mark;
S620, the first block chain node add the newest upgrade information using target object mark It is close, obtain encryption data;
Block chain is added after the encryption data is packaged into block in S630, the first block chain node;
S640, the block chain send the upgrading letter of system to the second block chain node where the user of the system The update notification of breath;
When S650, the second block chain node receive the update notification, the area is downloaded from the block chain Block;
S660, the second block chain node determine the target object mark;
S670, the second block chain node solve the encryption data of the block according to target object mark It is close, obtain the newest upgrade information.
Other technical characteristics of above system upgrade information acquisition methods with it is above-mentioned from the first block chain node describe be It unites the technical characteristics of upgrade information acquisition methods, and the system upgrade information acquisition method described from the second block chain node Technical characteristic is identical, and it will not be described here.
The embodiment of the present application also provides a kind of computer readable storage medium, is stored thereon with computer program, the program System upgrade information acquisition method described in above-mentioned any one is realized when being executed by processor.Wherein, the storage medium packet It includes but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random AcceSS Memory, immediately memory), EPROM (EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card Or light card.It is, storage medium includes the form storage or transmission information by equipment (for example, computer) can read Any medium.It can be read-only memory, disk or CD etc..
The embodiment of the present application also provides a kind of block chain node, and the block chain node includes:
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 processing Device realizes system upgrade information acquisition method described in above-mentioned any one.
Fig. 7 is the structural schematic diagram of the application block chain node, including processor 720, storage device 730, input unit The devices such as 740 and display unit 750.It will be understood by those skilled in the art that the structure devices shown in Fig. 7 are not constituted to institute There is the restriction of block chain node, may include than illustrating more or fewer components, or the certain components of combination.Storage device 730 can be used for storing application program 710 and each functional module, and processor 720 runs the application journey for being stored in storage device 730 Sequence 710, thereby executing the various function application and data processing of equipment.Storage device 730 can be built-in storage or external memory Reservoir, or including both built-in storage and external memory.Built-in storage may include read-only memory, programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory or random storage Device.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Storage device disclosed in the present application includes but not It is limited to the storage device of these types.Storage device 730 disclosed in the present application is only used as example rather than as restriction.
Input unit 740 is used to receive the input of signal, and receive newest upgrade information etc..Input unit 740 can wrap Include touch panel and other input equipments.Touch panel collects touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel or near touch panel), and according to The preset corresponding attachment device of driven by program;Other input equipments can include but is not limited to physical keyboard, function key One of (such as broadcasting control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.Display unit 750 It can be used for showing the information of user's input or be supplied to the information of user and the various menus of computer equipment.Display unit 750 can be used the forms such as liquid crystal display, Organic Light Emitting Diode.Processor 720 is the control centre of computer equipment, is utilized The various pieces of various interfaces and the entire computer of connection, by running or executing the software being stored in storage device 730 Program and/or module, and the data being stored in storage device are called, perform various functions and handle data.
In one embodiment, block chain node includes one or more processors 720, and one or more storage dresses 730 are set, one or more application program 710, wherein one or more of application programs 710 are stored in storage device 730 In and be configured as being executed by one or more of processors 720, one or more of application programs 710 are configured to hold System upgrade information acquisition method described in row above embodiments.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
It should be understood that can be integrated in a processing module in each functional unit in each embodiment of the application, It can be physically existed alone, can also be integrated in two or more units in a module with each unit.It is above-mentioned integrated Module both can take the form of hardware realization, can also be realized in the form of software function module.
The above is only some embodiments of the application, it is noted that for the ordinary skill people of the art For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered It is considered as the protection scope of the application.

Claims (10)

1. a kind of system upgrade information acquisition method characterized by comprising
When first block chain node listens to system upgrade, the target object of the gray scale publication of newest upgrade information and input is obtained Mark;
The first block chain node encrypts the newest upgrade information using target object mark, is encrypted Data;
Block chain is added after the encryption data is packaged into block in the first block chain node, so that the block chain is in institute It states the second block chain node where indicating the user of the system when block is added and downloads the block.
2. system according to claim 1 upgrade information acquisition methods, which is characterized in that the first block chain node is adopted The newest upgrade information is encrypted with target object mark, obtains encryption data, comprising:
If the target object mark only one carries out Hash calculation to the newest upgrade information, obtains the most new liter The cryptographic Hash of grade information;
The cryptographic Hash of the newest upgrade information is encrypted using target object mark, obtains encryption data.
3. system according to claim 1 upgrade information acquisition methods, which is characterized in that the first block chain node is adopted The newest upgrade information is encrypted with target object mark, obtains encryption data, comprising:
If the target object be identified with it is multiple, according to the target object identify number, the newest upgrade information is torn open It is divided into multiple portions;
Establish the one-to-one relationship of each target object mark and various pieces;
According to the corresponding relationship, each target object mark is respectively adopted, corresponding part is encrypted, obtain each portion The secret value divided;
The secret value of various pieces is combined according to the sequence of fractionation, generates the encryption data.
4. system according to claim 1 upgrade information acquisition methods, which is characterized in that the first block chain node is adopted The newest upgrade information is encrypted with target object mark, obtains encryption data, comprising:
If the target object be identified with it is multiple, according to default selection rule respectively from each target object mark in selected part Character;
The partial character of selection is combined into new mark according to setting sequence;
The newest upgrade information is encrypted using the new mark, obtains encryption data.
5. a kind of system upgrade information acquisition method characterized by comprising
The update notification of the upgrade information for the system that second block chain node reception area block chain is sent when block is added;The area Block includes encryption data, and the target object mark that the encryption data is issued by gray scale adds the newest upgrade information of the system It is close to obtain;
The second block chain node downloads the block from the block chain;
The second block chain node determines the target object mark;
The second block chain node is decrypted the encryption data of the block according to target object mark, obtains institute State newest upgrade information.
6. a kind of system upgrade information acquisition method characterized by comprising
When first block chain node listens to system upgrade, the target object of the gray scale publication of newest upgrade information and input is obtained Mark;
The first block chain node encrypts the newest upgrade information using target object mark, is encrypted Data;
Block chain is added after the encryption data is packaged into block in the first block chain node;
The block chain sends the update of the upgrade information of system to the second block chain node where the user of the system Notice;
When the second block chain node receives the update notification, the block is downloaded from the block chain;
The second block chain node determines the target object mark;
The second block chain node is decrypted the encryption data of the block according to target object mark, obtains institute State newest upgrade information.
7. a kind of system upgrade information acquisition device characterized by comprising
Data acquisition module when for listening to system upgrade, obtains the target of the gray scale publication of newest upgrade information and input Object identity;
Encrypting module obtains encryption data for encrypting using target object mark to the newest upgrade information;
Packetization module, for block chain to be added after the encryption data is packaged into block, so that the block chain is in the area The second block chain node block indicates the user of the system when being added where downloads the block.
8. a kind of system upgrade information acquisition device characterized by comprising
Update notification receiving module is logical for receiving the update of upgrade information for the system that block chain is sent when block is added Know;The block includes encryption data, and the target object that the encryption data is issued by gray scale is identified to the newest of the system Upgrade information encrypts to obtain;
Block download module, for downloading the block from the block chain;
Target object identifies determining module, for determining the target object mark;
Deciphering module, for the encryption data of the block to be decrypted according to target object mark, acquisition is described most New upgrade information.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The system upgrade information acquisition method as described in any one of claim 1 to 6 is realized when row.
10. a kind of block chain node, which is characterized in that the block chain node includes:
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 system upgrade information acquisition method as described in any one of claim 1 to 5.
CN201910532806.8A 2019-06-19 2019-06-19 System upgrade information acquisition method, device, storage medium and block chain node Pending CN110401631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910532806.8A CN110401631A (en) 2019-06-19 2019-06-19 System upgrade information acquisition method, device, storage medium and block chain node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910532806.8A CN110401631A (en) 2019-06-19 2019-06-19 System upgrade information acquisition method, device, storage medium and block chain node

Publications (1)

Publication Number Publication Date
CN110401631A true CN110401631A (en) 2019-11-01

Family

ID=68324212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910532806.8A Pending CN110401631A (en) 2019-06-19 2019-06-19 System upgrade information acquisition method, device, storage medium and block chain node

Country Status (1)

Country Link
CN (1) CN110401631A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127024A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Tax administration contract updating system, method, device, equipment and medium
CN113254974A (en) * 2021-06-11 2021-08-13 山东广鹏信息科技有限公司 Information security encryption method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778285A (en) * 2016-12-09 2017-05-31 美的智慧家居科技有限公司 For method, the device upgraded to equipment
CN106850597A (en) * 2017-01-18 2017-06-13 北京云知科技有限公司 A kind of distributed cryptographic method and system
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN107707584A (en) * 2016-08-08 2018-02-16 腾讯科技(深圳)有限公司 One kind applies loading method, terminal and Platform Server
CN108881312A (en) * 2018-08-24 2018-11-23 北京京东尚科信息技术有限公司 Intelligent contract upgrade method, system and relevant device and storage medium
CN109587146A (en) * 2018-12-11 2019-04-05 北京奇虎科技有限公司 Method for managing object and system based on block chain
CN109711174A (en) * 2018-11-30 2019-05-03 深圳灵图慧视科技有限公司 Data capture method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707584A (en) * 2016-08-08 2018-02-16 腾讯科技(深圳)有限公司 One kind applies loading method, terminal and Platform Server
CN106778285A (en) * 2016-12-09 2017-05-31 美的智慧家居科技有限公司 For method, the device upgraded to equipment
CN106850597A (en) * 2017-01-18 2017-06-13 北京云知科技有限公司 A kind of distributed cryptographic method and system
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN108881312A (en) * 2018-08-24 2018-11-23 北京京东尚科信息技术有限公司 Intelligent contract upgrade method, system and relevant device and storage medium
CN109711174A (en) * 2018-11-30 2019-05-03 深圳灵图慧视科技有限公司 Data capture method, device, equipment and storage medium
CN109587146A (en) * 2018-12-11 2019-04-05 北京奇虎科技有限公司 Method for managing object and system based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127024A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Tax administration contract updating system, method, device, equipment and medium
CN113254974A (en) * 2021-06-11 2021-08-13 山东广鹏信息科技有限公司 Information security encryption method and device

Similar Documents

Publication Publication Date Title
CN109214168A (en) Firmware upgrade method and device
CN110138744A (en) Replace method, apparatus, system, computer equipment and the storage medium of communicating number
CN107666479A (en) Information encrypting and decrypting method, apparatus, computer equipment and storage medium
CN101258505A (en) Secure software updates
US20070100762A1 (en) Secure license key method and system
CN102668503A (en) Secure kerberized access of encrypted file system
CN101189617A (en) Electronic device, update server device, key update device
CN112788012B (en) Log file encryption method and device, storage medium and electronic equipment
CN103853943B (en) program protection method and device
CN103067174A (en) Digital signature method and system completed in mobile operating system
CN110401631A (en) System upgrade information acquisition method, device, storage medium and block chain node
CN105162588A (en) Media file encryption/decryption methods and device
CN114041134A (en) System and method for block chain based secure storage
CN111464297A (en) Transaction processing method and device based on block chain, electronic equipment and medium
CN109255246A (en) Interface parameters encryption method, device, computer equipment and storage medium
CA2565508C (en) Secure license key method and system
CN115220597A (en) Data acquisition method, device, terminal, server and readable storage medium
CN117240625A (en) Tamper-resistant data processing method and device and electronic equipment
CN110392042A (en) System environments resource allocation information acquisition methods, device and block chain node
CN110414269B (en) Processing method, related device, storage medium and system of application installation package
CN109977692B (en) Data processing method and device, storage medium and electronic equipment
CN109274656A (en) Interface parameters decryption method, device, computer equipment and storage medium
CN111131284B (en) Information verification method and device, electronic equipment and computer readable storage medium
CN113726768A (en) Data transmission method and device, electronic equipment and readable storage medium
CN113836538A (en) Data model processing method, device, server and storage medium

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191101