CN111416832A - File updating method and device, electronic equipment and readable storage medium - Google Patents

File updating method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111416832A
CN111416832A CN201910012899.1A CN201910012899A CN111416832A CN 111416832 A CN111416832 A CN 111416832A CN 201910012899 A CN201910012899 A CN 201910012899A CN 111416832 A CN111416832 A CN 111416832A
Authority
CN
China
Prior art keywords
file
detected
information
abstract value
information abstract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910012899.1A
Other languages
Chinese (zh)
Other versions
CN111416832B (en
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 Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile 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 Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910012899.1A priority Critical patent/CN111416832B/en
Publication of CN111416832A publication Critical patent/CN111416832A/en
Application granted granted Critical
Publication of CN111416832B publication Critical patent/CN111416832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a file updating method and device, electronic equipment and a readable storage medium. The method comprises the following steps: obtaining a first information abstract value of a file to be detected; searching a first information abstract value stored in a block chain distributed account book; searching a second information abstract value which is recorded in the block chain distributed account book and stored in association with the first information abstract value; the second information abstract value is the corresponding information abstract value of the file to be detected after the content is updated; downloading an update file corresponding to the file to be detected according to a storage path which is recorded in the block chain distributed account book and stored in association with the second information abstract value; the first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing. Therefore, the user can acquire the updated file in time through the block chain technology.

Description

File updating method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a file updating method and apparatus, an electronic device, and a readable storage medium.
Background
Currently, a variety of files, such as document files, are distributed on a network. The network user can download these files from the network and read them.
However, when the author of the file updates the content of the file, the network user does not know that the content of the file is updated, so that the network user cannot acquire the updated file in time.
Disclosure of Invention
Embodiments of the present invention provide a file updating method, an apparatus, an electronic device, and a readable storage medium, so that a user can obtain an updated file in time through a block chain technique. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a file updating method, which is applied to a first electronic device, and the method may include:
obtaining a first information abstract value of a file to be detected; the file to be detected is a file obtained by downloading by the first electronic equipment;
searching a first information abstract value stored in a block chain distributed account book;
searching a second information abstract value which is recorded in the block chain distributed account book and stored in association with the first information abstract value; the second information abstract value is the corresponding information abstract value of the file to be detected after the content is updated;
downloading an update file corresponding to the file to be detected according to a storage path which is recorded in the block chain distributed account book and stored in association with the second information abstract value; the first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after an author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing;
and replacing the file to be detected with the updated file.
Optionally, the step of downloading the update file corresponding to the file to be detected according to a storage path recorded in the block chain distributed book and stored in association with the second information digest value may include:
after the second information abstract value is found, prompting a user to update the file to be detected;
and when an updating instruction sent by a user is received, downloading an updating file corresponding to the file to be detected according to a storage path which is recorded in the block chain distributed account book and stored in association with the second information abstract value.
Optionally, the file sharing includes: and locally sharing the update file on the second electronic equipment, or sharing the update file on a preset cloud server.
Optionally, the step of obtaining the first information digest value of the file to be detected may include:
and calculating a first information abstract value of the file content of the file to be detected according to a preset information abstract algorithm.
Optionally, the first information abstract value, the second information abstract value, the update description information for updating the file to be detected and the storage path are stored in the block chain distributed account book in an associated manner;
correspondingly, after the step of replacing the file to be detected with the update file, the method may further include:
obtaining update description information stored in association with the second information abstract value from the block chain distributed account book;
when a display instruction for the update file is detected, the update file and the update description information are displayed.
In a second aspect, an embodiment of the present invention provides a file updating apparatus, which is applied to a first electronic device, and the apparatus may include:
the first obtaining module is used for obtaining a first information abstract value of the file to be detected; the file to be detected is a file obtained by downloading by the first electronic equipment;
the first searching module is used for searching a first information abstract value stored in the block chain distributed account book;
the second searching module is used for searching a second information abstract value which is recorded in the block chain distributed account book and is stored in association with the first information abstract value; the second information abstract value is the corresponding information abstract value of the file to be detected after the content is updated;
the downloading module is used for downloading the update file corresponding to the file to be detected according to the storage path which is recorded in the block chain distributed account book and stored in association with the second information abstract value; the first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after an author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing;
and the replacing module is used for replacing the file to be detected with the updated file.
Optionally, in this embodiment of the present invention, the downloading module may include:
the prompting submodule is used for prompting a user to update the file to be detected after the second information abstract value is found;
and the downloading submodule is used for downloading the updating file corresponding to the file to be detected according to the storage path which is recorded in the block chain distributed account book and is stored in association with the second information abstract value when an updating instruction sent by the user is received.
Optionally, the file sharing may include: and locally sharing the update file on the second electronic equipment, or sharing the update file on a preset cloud server.
Optionally, the first obtaining module may be specifically configured to:
and calculating a first information abstract value of the file content of the file to be detected according to a preset information abstract algorithm.
Optionally, the first information abstract value, the second information abstract value, the update description information for updating the file to be detected and the storage path are stored in the block chain distributed account book in an associated manner; the apparatus may further include:
the second obtaining module is used for obtaining the update description information stored in association with the second information abstract value from the block chain distributed account book after the update file is used for replacing the file to be detected;
and the display module is used for displaying the update file and the update description information when a display instruction for the update file is detected.
In a third aspect, an embodiment of the present invention further provides a first electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, where the readable storage medium is a readable storage medium in a first electronic device, and a computer program is stored in the readable storage medium, and when executed by a processor of the first electronic device, the computer program implements the method steps in any one of the first aspect.
In the embodiment of the invention, the first electronic device can obtain the first information abstract value of the file to be detected. The file to be detected is a file obtained by downloading through the first electronic device. The first electronic device may then look up the first message digest value stored in the blockchain distributed ledger. A second message digest value stored in association with the first message digest value in the blockchain distributed ledger may also be looked up. And the second information abstract value is the information abstract value corresponding to the file to be detected after the content of the file to be detected is updated. And when the second information abstract value can be found, indicating that the file to be detected is updated.
Then, the first electronic device may download the update file corresponding to the file to be detected according to the storage path stored in association with the second information digest value. The first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing. In this way, the first electronic device may detect whether the file to be detected is updated based on the blockchain technique, and may replace the file to be detected with the update file when detecting that the update occurs. Therefore, the user can acquire the updated file in time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a file updating method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a file update apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a first electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a file updating method and apparatus, an electronic device, and a readable storage medium.
The following first describes a file update method provided in an embodiment of the present invention.
The file updating method provided by the embodiment of the invention is applied to the first electronic equipment, the first electronic equipment can be provided with the document reading client, and the document reading client can display the file and update the file.
The first electronic device includes, but is not limited to, a computer and a smart phone. The file in the present embodiment includes, but is not limited to, a document.
Referring to fig. 1, a file updating method provided in an embodiment of the present invention may include the following steps:
s101: obtaining a first information abstract value of a file to be detected; the file to be detected is a file obtained by downloading by the first electronic equipment;
it may be assumed that the user a writes an article about a breeding method of a succulent plant through the document reading client a installed in the second electronic device, and shares the article to the network through the document reading client a. At this time, the document reading client a may calculate an information digest value of the article as a first information digest value and store it locally in the second electronic device. The second electronic device includes, but is not limited to, a computer and a smart phone.
In addition, it may be assumed that the article on the method of growing the succulent plant is downloaded by the user B from the network through the first electronic device. Then, when the detection time is reached, the document reading client b installed on the first electronic device may calculate a first information digest value of the content of the article according to a preset information digest algorithm. Wherein the article is a file to be detected. The document reading client a and the document reading client b can be the same client, and are only installed in different electronic devices.
The predetermined message summarization algorithm includes, but is not limited to: CRC (Cyclic Redundancy Check) Algorithm, SHA (Secure Hash Algorithm) Algorithm, RIPEMD (RACE integrity verification Message Digest) Algorithm, MD4(Message-Digest Algorithm 4, information Digest Algorithm version 4) Algorithm, and MD5(Message-Digest Algorithm version 5) Algorithm.
S102: searching a first information abstract value stored in a block chain distributed account book;
s103: searching a second information abstract value which is recorded in the block chain distributed account book and stored in association with the first information abstract value; the second information abstract value is the corresponding information abstract value of the file to be detected after the content is updated;
s104: downloading an update file corresponding to the file to be detected according to a storage path which is recorded in the block chain distributed account book and stored in association with the second information abstract value; the first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after an author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing;
continuing with the above example, assume that user A finds that the article needs to be completed. Then, after the user a edits the article through the document reading client a to obtain the updated file and starts file sharing, the document reading client a may calculate an information digest value of the file content of the updated file, and use the information digest value as a second information digest value and may store the second information digest value locally on the second electronic device.
Wherein, the file sharing may refer to: the update file is shared locally at the second electronic device. It may also mean: and sharing the update file on a preset cloud server. When the file sharing refers to the local sharing of the update file on the second electronic device, other users can download the update file only through the permission of the sharer user A.
Moreover, the specific setting of the file share determines the storage location, i.e., access location, of the update file. In addition, in the process of opening the file sharing, the update can be set to be read only. In this way, the shared document is not tampered with by others.
After obtaining the second message digest value, the user a may store the first message digest value, the second message digest value, and the storage path association into the blockchain distributed ledger through the document reading client a.
The block chain distributed account book is a distributed database maintained collectively and has the characteristics of decentralization, information non-tamper property and the like. Therefore, the first information abstract value, the second information abstract value and the storage path are stored in the distributed block chain account book in an associated mode, all devices in the block chain can access the stored information, the stored information cannot be tampered by malicious users, and information safety is guaranteed.
In this way, the first electronic device may look up the first message digest value of the article in the blockchain distributed ledger. After finding the first information digest value, the first electronic device may find a second information digest value stored in association with the first information digest value, that is, an information digest value corresponding to the updated file. When the second information abstract value is found, the article is indicated to be updated.
Then, in an implementation manner, the first electronic device may download the update file corresponding to the article according to a storage path recorded in the block chain distributed book and stored in association with the second information digest value, so that automatic update of the file may be implemented.
In another implementation, the first electronic device may also prompt the user B to update the article after finding the second information digest value. Therefore, the user can know that the updated file corresponding to the article exists in time. And when an update instruction sent by the user B is received, the first electronic device may download the update file corresponding to the article according to a storage path recorded in the blockchain distributed book and stored in association with the second information digest value. In this way, the files can be updated according to the needs of the user.
S105: and replacing the file to be detected with the updated file.
After the updated file is downloaded, the file to be detected can be replaced by the updated file. Therefore, the user can acquire the updated file in time.
In this embodiment, the second electronic device may specifically store the first information digest value, the second information digest value, the update description information for updating the file to be detected, and the storage path association in the block chain distributed ledger. The update description information is used for describing which contents of the file to be detected are updated.
In this way, after the first electronic device replaces the file to be detected with the update file, the update description information stored in association with the second information digest value may also be obtained from the blockchain distributed ledger. And, upon detecting a display instruction for the update file, the first electronic device may display the update file and the update description information. Therefore, the user can quickly know which contents of the file to be detected are updated, and the user experience is improved.
In the embodiment of the invention, the first electronic device can obtain the first information abstract value of the file to be detected. The file to be detected is a file obtained by downloading through the first electronic device. The first electronic device may then look up the first message digest value stored in the blockchain distributed ledger. A second message digest value stored in association with the first message digest value in the blockchain distributed ledger may also be looked up. And the second information abstract value is the information abstract value corresponding to the file to be detected after the content of the file to be detected is updated. And when the second information abstract value can be found, indicating that the file to be detected is updated.
Then, the first electronic device may download the update file corresponding to the file to be detected according to the storage path stored in association with the second information digest value. The first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing. In this way, the first electronic device may detect whether the file to be detected is updated based on the blockchain technique, and may replace the file to be detected with the update file when detecting that the update occurs. Therefore, the user can acquire the updated file in time.
In summary, by applying the file updating method provided by the embodiment of the present invention, the user can obtain the updated file in time based on the block chain technology, and the experience of obtaining the updated file by the user is improved.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a file updating apparatus, which is applied to a first electronic device, and referring to fig. 2, the apparatus may include:
a first obtaining module 201, configured to obtain a first information digest value of a file to be detected; the file to be detected is a file obtained by downloading by the first electronic equipment;
the first searching module 202 is configured to search a first information digest value stored in the block chain distributed ledger;
the second searching module 203 is configured to search for a second information digest value stored in association with the first information digest value and recorded in the block chain distributed book; the second information abstract value is the corresponding information abstract value of the file to be detected after the content is updated;
the downloading module 204 is configured to download an update file corresponding to the file to be detected according to a storage path recorded in the block chain distributed book and stored in association with the second information digest value; the first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after an author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing;
and a replacing module 205, configured to replace the file to be detected with the updated file.
By applying the device provided by the embodiment of the invention, the first electronic equipment can obtain the first information abstract value of the file to be detected. The file to be detected is a file obtained by downloading through the first electronic device. The first electronic device may then look up the first message digest value stored in the blockchain distributed ledger. A second message digest value stored in association with the first message digest value in the blockchain distributed ledger may also be looked up. And the second information abstract value is the information abstract value corresponding to the file to be detected after the content of the file to be detected is updated. And when the second information abstract value can be found, indicating that the file to be detected is updated.
Then, the first electronic device may download the update file corresponding to the file to be detected according to the storage path stored in association with the second information digest value. The first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing. In this way, the first electronic device may detect whether the file to be detected is updated based on the blockchain technique, and may replace the file to be detected with the update file when detecting that the update occurs. Therefore, the user can acquire the updated file in time.
Optionally, in an embodiment of the present invention, the downloading module 204 includes:
the prompting submodule is used for prompting a user to update the file to be detected after the second information abstract value is found;
and the downloading submodule is used for downloading the updating file corresponding to the file to be detected according to the storage path which is recorded in the block chain distributed account book and is stored in association with the second information abstract value when an updating instruction sent by the user is received.
Optionally, in an embodiment of the present invention, the file sharing includes: and locally sharing the update file on the second electronic equipment, or sharing the update file on a preset cloud server.
Optionally, in this embodiment of the present invention, the first obtaining module 201 is specifically configured to:
and calculating a first information abstract value of the file content of the file to be detected according to a preset information abstract algorithm.
Optionally, in the embodiment of the present invention, the first information digest value, the second information digest value, the update description information for updating the file to be detected, and the storage path are stored in the block chain distributed ledger in an associated manner; the apparatus may further include:
the second obtaining module is used for obtaining the update description information stored in association with the second information abstract value from the block chain distributed account book after the update file is used for replacing the file to be detected;
and the display module is used for displaying the update file and the update description information when a display instruction for the update file is detected.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a first electronic device, referring to fig. 3, the electronic device includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete communication with each other through the communication bus 304;
a memory 303 for storing a computer program;
the processor 301 is configured to implement the method steps provided by any of the above method embodiments when executing the program stored in the memory.
In the embodiment of the invention, the first electronic device can obtain the first information abstract value of the file to be detected. The file to be detected is a file obtained by downloading through the first electronic device. The first electronic device may then look up the first message digest value stored in the blockchain distributed ledger. A second message digest value stored in association with the first message digest value in the blockchain distributed ledger may also be looked up. And the second information abstract value is the information abstract value corresponding to the file to be detected after the content of the file to be detected is updated. And when the second information abstract value can be found, indicating that the file to be detected is updated.
Then, the first electronic device may download the update file corresponding to the file to be detected according to the storage path stored in association with the second information digest value. The first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing. In this way, the first electronic device may detect whether the file to be detected is updated based on the blockchain technique, and may replace the file to be detected with the update file when detecting that the update occurs. Therefore, the user can acquire the updated file in time.
Corresponding to the above method embodiments, an embodiment of the present invention further provides a readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor of the first electronic device, implements the method steps provided by any of the above method embodiments.
After the computer program stored in the readable storage medium provided by the embodiment of the present invention is executed by the processor of the first electronic device, the first electronic device may obtain the first information digest value of the file to be detected. The file to be detected is a file obtained by downloading through the first electronic device. The first electronic device may then look up the first message digest value stored in the blockchain distributed ledger. A second message digest value stored in association with the first message digest value in the blockchain distributed ledger may also be looked up. And the second information abstract value is the information abstract value corresponding to the file to be detected after the content of the file to be detected is updated. And when the second information abstract value can be found, indicating that the file to be detected is updated.
Then, the first electronic device may download the update file corresponding to the file to be detected according to the storage path stored in association with the second information digest value. The first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing. In this way, the first electronic device may detect whether the file to be detected is updated based on the blockchain technique, and may replace the file to be detected with the update file when detecting that the update occurs. Therefore, the user can acquire the updated file in time.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., from one website site, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) manner to another website site, computer, server, or data center.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device and the readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some parts of the description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A file updating method is applied to a first electronic device, and comprises the following steps:
obtaining a first information abstract value of a file to be detected; the file to be detected is a file obtained by the first electronic device through downloading;
searching the first information abstract value stored in the block chain distributed account book;
searching a second information abstract value which is recorded in the block chain distributed account book and is stored in association with the first information abstract value; the second information abstract value is the corresponding information abstract value of the file to be detected after the content is updated;
downloading an update file corresponding to the file to be detected according to a storage path recorded in the block chain distributed account book and stored in association with the second information abstract value; the first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing;
and replacing the file to be detected with the updated file.
2. The method according to claim 1, wherein the step of downloading the update file corresponding to the file to be detected according to the storage path recorded in the blockchain distributed ledger and stored in association with the second digest information value includes:
after the second information abstract value is found, prompting a user to update the file to be detected;
and when an updating instruction sent by the user is received, downloading an updating file corresponding to the file to be detected according to a storage path which is recorded in the block chain distributed account book and stored in association with the second information abstract value.
3. The method of claim 1, wherein the file sharing comprises: and locally sharing the update file on the second electronic equipment, or sharing the update file on a preset cloud server.
4. The method according to claim 1, wherein the step of obtaining the first information digest value of the file to be detected comprises:
and calculating a first information abstract value of the file content of the file to be detected according to a preset information abstract algorithm.
5. The method according to any one of claims 1 to 4, wherein the first information digest value, the second information digest value, update description information for updating the file to be detected, and the storage path are stored in association in the blockchain distributed ledger;
after the step of replacing the file to be detected with the update file, the method further includes:
obtaining update description information stored in association with the second information abstract value from the block chain distributed book;
when a display instruction for the update file is detected, the update file and the update description information are displayed.
6. A file updating device applied to a first electronic device, the device comprising:
the first obtaining module is used for obtaining a first information abstract value of the file to be detected; the file to be detected is a file obtained by the first electronic device through downloading;
the first searching module is used for searching the first information abstract value stored in the block chain distributed account book;
the second searching module is used for searching a second information abstract value which is recorded in the block chain distributed account book and is stored in association with the first information abstract value; the second information abstract value is the corresponding information abstract value of the file to be detected after the content is updated;
the downloading module is used for downloading the update file corresponding to the file to be detected according to a storage path which is recorded in the block chain distributed account book and stored in association with the second information abstract value; the first information abstract value, the second information abstract value and the storage path are uploaded to the block chain distributed account book by the second electronic device after the author of the file to be detected updates the content of the file to be detected through the second electronic device and starts file sharing;
and the replacing module is used for replacing the file to be detected with the updated file.
7. The apparatus of claim 6, wherein the download module comprises:
the prompting submodule is used for prompting a user to update the file to be detected after the second information abstract value is found;
and the downloading submodule is used for downloading the update file corresponding to the file to be detected according to the storage path which is recorded in the block chain distributed account book and is stored in association with the second information abstract value when the update instruction sent by the user is received.
8. The apparatus of claim 6, wherein the file sharing comprises: and locally sharing the update file on the second electronic equipment, or sharing the update file on a preset cloud server.
9. The apparatus of claim 6, wherein the first obtaining module is specifically configured to:
and calculating a first information abstract value of the file content of the file to be detected according to a preset information abstract algorithm.
10. The apparatus according to any one of claims 6 to 9, wherein the first information digest value, the second information digest value, update description information for updating the file to be detected, and the storage path are stored in association in the blockchain distributed ledger; the device further comprises:
the second obtaining module is used for obtaining the update description information which is stored in association with the second information abstract value from the block chain distributed account book after the update file is used for replacing the file to be detected;
and the display module is used for displaying the update file and the update description information when a display instruction for the update file is detected.
11. The first electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
12. A readable storage medium, characterized in that the readable storage medium is a readable storage medium in a first electronic device, in which a computer program is stored, which computer program, when being executed by a processor of the first electronic device, realizes the method steps of any one of claims 1-5.
CN201910012899.1A 2019-01-07 2019-01-07 File updating method and device, electronic equipment and readable storage medium Active CN111416832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910012899.1A CN111416832B (en) 2019-01-07 2019-01-07 File updating method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910012899.1A CN111416832B (en) 2019-01-07 2019-01-07 File updating method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111416832A true CN111416832A (en) 2020-07-14
CN111416832B CN111416832B (en) 2023-03-24

Family

ID=71492647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910012899.1A Active CN111416832B (en) 2019-01-07 2019-01-07 File updating method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111416832B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140279846A1 (en) * 2013-03-13 2014-09-18 CoralTree Inc. System and method for file sharing and updating
CN107273410A (en) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 Distributed storage based on block chain
CN107342867A (en) * 2017-07-07 2017-11-10 北京牛链科技有限公司 Signature sign test method and apparatus
US20170364701A1 (en) * 2015-06-02 2017-12-21 ALTR Solutions, Inc. Storing differentials of files in a distributed blockchain
CN107704465A (en) * 2016-08-08 2018-02-16 腾讯科技(深圳)有限公司 Static resource update method and static resource management system
WO2018032374A1 (en) * 2016-08-13 2018-02-22 深圳市樊溪电子有限公司 Encrypted storage system for block chain and method using same
CN107832624A (en) * 2017-10-25 2018-03-23 济南浪潮高新科技投资发展有限公司 A kind of visualization signature system and method based on block chain
CN108076057A (en) * 2017-12-14 2018-05-25 北京中星仝创科技有限公司 A kind of data security system and method based on block chain
US20180173719A1 (en) * 2016-12-16 2018-06-21 International Business Machines Corporation Shared document editing in the blockchain
CN108462568A (en) * 2018-02-11 2018-08-28 西安电子科技大学 A kind of secure file storage and sharing method based on block chain
CN109040012A (en) * 2018-06-19 2018-12-18 西安电子科技大学 A kind of data security protecting and sharing method based on block chain and system and application

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140279846A1 (en) * 2013-03-13 2014-09-18 CoralTree Inc. System and method for file sharing and updating
US20170364701A1 (en) * 2015-06-02 2017-12-21 ALTR Solutions, Inc. Storing differentials of files in a distributed blockchain
CN107704465A (en) * 2016-08-08 2018-02-16 腾讯科技(深圳)有限公司 Static resource update method and static resource management system
WO2018032374A1 (en) * 2016-08-13 2018-02-22 深圳市樊溪电子有限公司 Encrypted storage system for block chain and method using same
US20180173719A1 (en) * 2016-12-16 2018-06-21 International Business Machines Corporation Shared document editing in the blockchain
CN107273410A (en) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 Distributed storage based on block chain
CN107342867A (en) * 2017-07-07 2017-11-10 北京牛链科技有限公司 Signature sign test method and apparatus
CN107832624A (en) * 2017-10-25 2018-03-23 济南浪潮高新科技投资发展有限公司 A kind of visualization signature system and method based on block chain
CN108076057A (en) * 2017-12-14 2018-05-25 北京中星仝创科技有限公司 A kind of data security system and method based on block chain
CN108462568A (en) * 2018-02-11 2018-08-28 西安电子科技大学 A kind of secure file storage and sharing method based on block chain
CN109040012A (en) * 2018-06-19 2018-12-18 西安电子科技大学 A kind of data security protecting and sharing method based on block chain and system and application

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JIAXING LI;;JIGANG WU;;LONG CHEN: ""Block-secure: Blockchain based scheme for secure P2P cloud storage"", 《INFORMATION SCIENCES》 *
房卫东等: "区块链的网络安全:威胁与对策", 《信息安全学报》 *
赵哲: ""基于区块链的档案管理系统的研究与设计"", 《中国硕士学位论文全文数据库信息科技辑》 *

Also Published As

Publication number Publication date
CN111416832B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN108446407B (en) Database auditing method and device based on block chain
US10452620B2 (en) Automatic file version verification within electronic mail
US9747297B2 (en) Synchronization of shared folders and files
US9215246B2 (en) Website scanning device and method
US10354082B2 (en) Document state interface
US20140075301A1 (en) Information processing apparatus, control method, and recording medium
US20100106784A1 (en) Electronic device with automatic software update function and method thereof
WO2016016734A1 (en) Managing web browser cache for offline browsing
CN111031110A (en) File uploading method and device, electronic equipment and storage medium
US8875099B2 (en) Managing symbolic links in documentation
US9621596B2 (en) Mobile application deployment for distributed computing environments
CN105824827A (en) File path storage and local file visiting method and apparatus
GB2507037A (en) Software application discovery using variable frequency file system scanning
CN109902269A (en) A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
CN111782728A (en) Data synchronization method, device, electronic equipment and medium
US20170147603A1 (en) System, method and program product for managing mobile device operation
CN111752797B (en) Terminal log processing method and device, terminal and storage medium
CN109976828B (en) Method and device for configuring file
CN116304458B (en) Method, device, equipment and medium for web page real-time notification update
CN111416832B (en) File updating method and device, electronic equipment and readable storage medium
CN114201370B (en) Webpage file monitoring method and system
CN112583761B (en) Management method and device of security entity, computer equipment and storage medium
CN112433741B (en) Page processing method, device and system, electronic equipment and storage medium
CN114416641A (en) File data processing method and device, electronic equipment and storage medium
US9984074B2 (en) Information processing apparatus and non-transitory computer readable 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
GR01 Patent grant
GR01 Patent grant