CN110990346A - File data processing method, device, equipment and storage medium based on block chain - Google Patents

File data processing method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN110990346A
CN110990346A CN201911193374.9A CN201911193374A CN110990346A CN 110990346 A CN110990346 A CN 110990346A CN 201911193374 A CN201911193374 A CN 201911193374A CN 110990346 A CN110990346 A CN 110990346A
Authority
CN
China
Prior art keywords
file
operation data
block chain
target file
chain
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
CN201911193374.9A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201911193374.9A priority Critical patent/CN110990346A/en
Publication of CN110990346A publication Critical patent/CN110990346A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a block chain-based file data processing method, a block chain-based file data processing device, block chain-based equipment and a storage medium. The method is executed by a user node and comprises the following steps: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; and sending an on-chain file updating request comprising the operation data to the blockchain network, wherein the on-chain file updating request is used for instructing the blockchain network to write the operation data into the blockchain. According to the embodiment of the invention, the uplink operation is carried out on the target file on the block chain, the operation data is written into the block chain, and the updated content of the file is stored by using the block chain technology, so that the credibility and the reliability of the updated content of the file are improved, the loss of the operation data is avoided, and the checking of the target files of different versions is supported.

Description

File data processing method, device, equipment and storage medium based on block chain
Technical Field
The present invention relates to a block chain technology, and in particular, to a method, an apparatus, a device, and a storage medium for processing file data based on a block chain.
Background
With the development of the information age, the demand of people for information gradually increases, and different information often needs to be repeatedly added and deleted, so that the problem of storage confusion among files of different versions is easily caused.
In the prior art, a method of manually classifying and storing files is generally adopted, so that information of different versions can be classified. Or storing the file modified each time on the chain by using the block chain so as to distinguish different versions, and searching the corresponding version from the chain when the file of different versions needs to be opened.
However, in the prior art, manual saving of different versions easily causes errors in information storage, and even forgets to save, resulting in information loss or confusion. The modified full files are stored in the block chain, so that the operation data of target files of different versions cannot be checked, and the problem that a user cannot check the operation data conveniently is caused.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for processing file data based on a block chain.
In a first aspect, an embodiment of the present invention provides a method for processing file data based on a block chain, where the method is executed by a user node, and the method includes:
after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file;
and sending an on-chain file updating request comprising the operation data to the blockchain network, wherein the on-chain file updating request is used for instructing the blockchain network to write the operation data into the blockchain.
In a second aspect, an embodiment of the present invention further provides a method for processing file data based on a blockchain, where the method is performed by a node in a blockchain network, and the method includes:
receiving a link file updating request which comprises operation data and is sent by a user node; wherein the operation data is generated by: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; generating an on-chain file update request comprising the operation data;
and writing the operation data into a block chain.
In a third aspect, an embodiment of the present invention further provides a block chain-based file data processing apparatus, configured at a user node, where the apparatus includes:
the operation data acquisition module is used for acquiring the operation data of the target file by the user after determining that the initial version of the target file is stored in the block chain;
and the update request sending module is used for sending an on-chain file update request comprising the operation data to the blockchain network, wherein the on-chain file update request is used for instructing the blockchain network to write the operation data into the blockchain.
In a fourth aspect, an embodiment of the present invention further provides a block chain-based file data processing apparatus, configured at a node in a block chain network, where the apparatus includes:
the updating request receiving module is used for receiving a link file updating request which comprises operation data and is sent by a user node; wherein the operation data is generated by: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; generating an on-chain file update request comprising the operation data;
and the operation data writing module is used for writing the operation data into the block chain.
In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method for processing file data based on a block chain according to any embodiment of the first aspect or the second aspect of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method for processing file data based on a blockchain according to any of the first aspect or the second aspect of the present invention.
In a seventh aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for processing file data based on a blockchain according to any of the first aspect or the second aspect of the present invention.
In an eighth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for processing file data based on a blockchain according to any of the first aspect or the second aspect of the present invention.
According to the embodiment of the invention, the operation data of the target file in the block chain is acquired by the user, the on-chain file updating request of the operation data is sent to the block chain network, and the uplink storage is carried out on the operation data, namely, the updated content of the file is stored by using the block chain technology.
Drawings
Fig. 1 is a schematic flowchart of a block chain-based file data processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a block chain-based file data processing method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a block chain-based file data processing method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating a block chain-based file data processing method according to a fourth embodiment of the present invention;
FIG. 5 is a block diagram of a block chain-based file data processing apparatus according to a fifth embodiment of the present invention;
FIG. 6 is a block diagram of a block chain-based file data processing apparatus according to a sixth embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a computer device in a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of a computer device in an eighth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a block chain-based file data processing method according to an embodiment of the present invention, where the embodiment is applicable to a case of processing file data, and the method can be executed by a block chain-based file data processing apparatus at a user node. As shown in fig. 1, the method specifically includes the following steps:
and step 110, after determining that the initial version of the target file is stored in the block chain, acquiring operation data of the target file by a user.
Before a user operates the initial version of the target file for the first time, the user node needs to determine whether the initial version of the target file is stored in the block chain.
Optionally, an initial on-link query request of the target file is sent to the blockchain network; the initial on-chain query request is used for indicating the block chain network to determine whether an initial version of the target file is stored in the block chain.
Specifically, the user node may send an initial on-chain query request of the target file to the blockchain network, and the blockchain network may receive the initial on-chain query request and may search whether the initial version of the target file exists on the blockchain. If the initial version of the target file already exists, the initial version of the target file can be opened, and the target file is operated. After determining that the initial version of the target file is stored in the block chain, the user node can directly open the target file from the block chain when operating the target file later, so that the user operation is facilitated.
Optionally, if the initial version of the target file is not stored in the block chain, an initial uplink request including the initial version of the target file is sent to the block chain network, where the initial uplink request is used to instruct the block chain network to write the initial version of the target file into the block chain.
Specifically, if the initial version of the target file does not exist in the blockchain, the user node may send an initial uplink request including the initial version of the target file to the blockchain network, and store the initial version of the target file in the blockchain, so that the user can directly open the target file from the blockchain when next operating the target file.
After the target file is opened by a user, the target file is operated, and the user node acquires operation data of the user, wherein the user node can be computer equipment such as a computer, and the operation data comprises at least one item of operation type, operation position and operation text and identification information of the target file. The operation type may be an operation action of the user, such as an operation of adding, deleting, font bolding, and inserting. The operation location may be a location where a user operates on the target file, such as the first segment, first line, or more specifically, the first few words of the target file. The operation content may be an object when the user performs an operation action on the target file, for example, a word "good" is added, or two words "introduction" are bolded, and the "good" and "introduction" are the operation content. The identification information of the target file may be an identification of the target file so as to record the target file targeted by the user operation.
Step 120, sending an on-chain file update request including the operation data to the blockchain network, where the on-chain file update request is used to instruct the blockchain network to write the operation data into the blockchain.
After the user operates the target file, the user node can store the operation data on the chain, so that when the target file is opened later, the user node can check a new version. The user node may send an update request for the on-chain file including the operation data to the blockchain network, and the blockchain network receives the update request for the on-chain file and writes the operation data in the request into the blockchain, that is, the initial version and the operation data of the target file are stored in the blockchain. When the blockchain network stores the operation data, the time stamp can be used as the identifier to record the storage time of the operation data, so that the target files of different versions can be distinguished conveniently, and the changed content of the files is associated with the blockchain information in real time. The function that the block chain technology can not be tampered is utilized, and the operation data is prevented from being damaged.
According to the technical scheme of the embodiment, the target file in the block chain is opened, the target file is operated, the operation data of the user is obtained, and the operation data is stored in the block chain. The updated content of the file is stored by using the blockchain technology, the credibility and the reliability of the updated content of the file can be improved according to the function of the blockchain technology, which cannot be tampered, the loss of operation data is avoided, and the checking of target files of different versions is supported.
Example two
Fig. 2 is a flowchart illustrating a block chain-based file data processing method according to a second embodiment of the present invention, and the present embodiment is further optimized based on the above embodiments, and the method can be executed by a block chain-based file data processing apparatus at a user node. As shown in fig. 2, the method specifically includes the following steps:
step 210, after determining that the initial version of the target file is stored in the block chain, acquiring operation data of the target file by the user.
When a user operates the initial version of the target file for the first time, the user node needs to judge whether the initial version of the target file is stored in the block chain. The first operation by the user is for the initial version of the target file and the subsequent operation is for the version of the target file of the previous operation.
Step 220, sending an on-chain file update request including the operation data to the blockchain network, where the on-chain file update request is used to instruct the blockchain network to write the operation data into the blockchain.
Step 230, when it is detected that the target file is locally reopened, sending an on-chain query request of the target file to the blockchain network, where the on-chain query request is used to instruct the blockchain network to obtain an initial version and operation data of the target file from the blockchain; and generating the latest version of the target file according to the initial version and the operation data of the target file.
Specifically, after the user operates the initial version of the target file for the first time, the user can directly open the version after any previous operation when the user operates or views the target file later. The method comprises the steps that a user node sends a link query request of a target file to a blockchain network, operation data of the target file within preset time can be searched according to a timestamp on the blockchain, the blockchain network obtains an initial version and the operation data of the target file from the blockchain, the operation data within the preset time are edited into the initial version of the target file according to the query request of the user node on the target file, and a new version of the target file is generated. By utilizing the source tracing function of the block chain, a user can select a target file version at a certain time node, for example, the user operates an initial version of a target file in 11 month and 1 day in 2019, operates the version in 11 month and 1 day in 11 month and 2 days in 2019, and selects the time node in 11 month and 2 days to view the latest target file version if the user wants to view the target file of the latest version. By utilizing the property that the block chain can not be tampered, the operation data written into the block chain can not be changed randomly, and the target file is prevented from being damaged.
The method and the device for generating the new version of the target file have the advantages that the operation data of the target file by the user are obtained, the operation data of the user are stored in the block chain, and the operation data of the required version and the initial version of the target file are obtained when the new version of the target file is opened again, so that the new version of the target file is generated. The system management of the target files of different versions is realized, the target files of new versions are generated according to the needs of users, the confusion of files and the loss of operation data are avoided, and the checking of the target files of different versions is supported.
EXAMPLE III
Fig. 3 is a flowchart illustrating a method for processing block-chain-based file data according to a third embodiment of the present invention, where the method is applicable to processing file data and can be executed by a block-chain-based file data processing apparatus of a block-chain network node. As shown in fig. 3, the method specifically includes the following steps:
step 310, receiving a link file updating request which is sent by a user node and comprises operation data; the operation data is generated by the following method: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; an on-chain file update request is generated that includes the operational data.
Optionally, receiving an initial on-chain query request of the target file; the initial on-chain query request is used for indicating the block chain network to determine whether an initial version of the target file is stored in the block chain.
Specifically, the block chain network receives an initial on-chain query request sent by a user node, queries whether an initial version of the target file is stored in the block chain, and if the initial version of the target file exists in the block chain, may open the initial version of the target file for operation.
Optionally, if the initial version of the target file is not stored in the block chain, an initial uplink request including the initial version of the target file is received, where the initial uplink request is used to instruct the block chain network to write the initial version of the target file into the block chain.
Specifically, if the initial version of the target file does not exist in the block chain, the block chain network receives an initial uplink request of a user node for the initial version of the target file, and stores the initial version of the target file in the block chain, so that the block chain can directly open the target file from the block chain when receiving the operation request of the target file again later.
After determining that the initial version of the target file is stored in the blockchain, the blockchain network receives an on-chain file updating request sent by a user node, wherein the on-chain file updating request comprises operation data of the user on the target file. The block chain network acquires operation data of a user on the target file, wherein the operation data comprises at least one item of operation type, operation position and operation text and identification information of the target file. And aiming at the operation data of the user on the target file, the block chain network generates an on-chain file updating request comprising the operation data so as to update the initial version of the target file on the block chain.
And step 320, writing the operation data into the block chain.
The block chain network receives a file update request on a chain sent by a user node, and stores operation data in the file update request on the chain into a block chain, namely the block chain stores an initial version and operation data of a target file. The operation data can be saved by taking the timestamp as the identifier, so that the block chain can search the operation data of the corresponding version according to the timestamp when the target file of the new version is opened. The operation data written in the block chain can utilize the property that the block chain can not be tampered to avoid the operation data from being damaged.
Optionally, the method further includes: when the target file is locally reopened, the block chain network receives an on-chain query request of the target file, wherein the on-chain query request is used for indicating the block chain network to acquire an initial version and operation data of the target file from the block chain; and generating the latest version of the target file according to the initial version and the operation data of the target file.
If the target file is to be reopened, the user node sends an on-chain query request of the target file, the block chain network receives the on-chain query request, and the operation data of the corresponding time node and the initial version of the target file are searched according to the user requirement. For example, the initial version of the target file is stored in the blockchain, the initial version of the target file is changed once, and when the target file of the new version is viewed, the initial version of the target file and operation data performed during the change are opened to generate the target file of the latest version.
According to the embodiment of the invention, the operation data of the target file is stored in the block chain by receiving the on-chain file updating request which is sent by the user node and comprises the operation data, so that the change content of the target file is associated with the block chain, the condition that the target file is lost integrally is avoided, the user can conveniently check the target files of different versions, the credibility and the reliability of the updating content of the file are improved according to the non-falsification function of the block chain technology, the loss of the operation data is also avoided, and the checking of the target files of different versions is supported.
Example four
Fig. 4 is a flowchart illustrating a block chain-based file data processing method according to a fourth embodiment of the present invention, and the present embodiment is further optimized based on the third embodiment. As shown in fig. 4, the method specifically includes the following steps:
step 410, receiving a link file update request including operation data sent by a user node; the operation data is generated by the following method: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; an on-chain file update request is generated that includes the operational data.
Step 420, calling a conflict intelligent contract, and determining whether other unconfirmed on-chain file updating requests which conflict with the on-chain file updating requests exist in the block chain; if not, the operation data is written into the block chain.
The unacknowledged on-chain file update request refers to an on-chain file update request stored in an unacknowledged block of the block chain. The unacknowledged block may be the current block or a predetermined number of blocks before the current block.
After receiving an on-chain file update request including operation data sent by a user node, the blockchain network needs to write the operation data into a blockchain. Before writing the operation data into the blockchain, a conflict intelligence contract may be invoked to determine whether the operation data in the on-chain file update request conflicts with the operation data in the unconfirmed on-chain file update request stored in the blockchain.
The conflict intelligent contract judges whether the operation data of the file updating request on the unconfirmed chain conflicts with the operation data of the file updating request on the current chain in the following mode: if the operating data of the file updating request on the link is not confirmed to be completely consistent with the operating type, the operating position, the operating text and the identification information of the target file in the operating data of the file updating request on the link, the conflict exists; otherwise, it indicates that no conflict exists. For example, if it is not determined that the operation data of the on-chain file update request is to change the first word in the first row of the target file to "pair", and the operation data of the current on-chain file update request is to change the first word in the first row of the target file to "error", it indicates that a conflict occurs. If the conflict between the operation data of the on-chain file updating request and the operation data of the on-chain file updating request is not confirmed, the target file is refused to be changed at least twice; if no conflict is generated, the operation data is written into the block chain and takes effect after a preset time range or after a preset number of blocks are met.
The embodiment of the invention determines whether the update request of the files on the chain conflicts with other update requests of the files on the unconfirmed chain by receiving the update request of the files on the chain which comprises the operation data and is sent by the user node. And if the conflict exists, rejecting all the conflicting on-chain file updating requests, and if the conflict does not exist, writing the operation data in the on-chain file updating requests into the block chain. By utilizing the characteristics of rollback and source tracing of the block chain technology, the updated content of the file is stored, the credibility and the reliability of the updated content of the file are improved, the situations of loss and error modification of operation data are avoided, and the checking of target files of different versions is supported.
EXAMPLE five
Fig. 5 is a block diagram of a block chain-based file data processing apparatus according to a fifth embodiment of the present invention, which is configured at a user node and is capable of executing the block chain-based file data processing methods according to the first and second embodiments of the present invention. As shown in fig. 5, the apparatus specifically includes:
an operation data obtaining module 501, configured to obtain operation data of a target file by a user after determining that an initial version of the target file is stored in a block chain;
an update request sending module 502, configured to send an on-chain file update request including operation data to the blockchain network, where the on-chain file update request is used to instruct the blockchain network to write the operation data into the blockchain.
Optionally, the apparatus further comprises:
an initial on-chain query request sending module, configured to send an initial on-chain query request for a target file to a blockchain network; the initial on-chain query request is used for indicating the block chain network to determine whether an initial version of the target file is stored in the block chain.
Optionally, the initial on-chain query request sending module is specifically configured to:
and if the initial version of the target file is not stored in the block chain, sending an initial uplink request comprising the initial version of the target file to the block chain network, wherein the initial uplink request is used for indicating the block chain network to write the initial version of the target file into the block chain.
Optionally, the apparatus further comprises:
the system comprises an on-chain query request sending module, a block chain network and a block chain management module, wherein the on-chain query request sending module is used for sending an on-chain query request of a target file to the block chain network when detecting that the target file is locally reopened, and the on-chain query request is used for indicating the block chain network to obtain an initial version and operation data of the target file from the block chain; and generating the latest version of the target file according to the initial version and the operation data of the target file.
Optionally, the operation data includes at least one of an operation type, an operation location, and an operation text, and identification information of the target file.
According to the embodiment of the invention, the target file in the block chain is opened, the operation data of the user is acquired, and the operation data is stored in the block chain. The problem that in the prior art, when files are stored in a full amount, the whole files are lost due to misoperation is solved, system management of target files of all versions is achieved, changed contents of the files are associated with block chain information, a user can conveniently check the files, processing efficiency of file data is improved, and manpower and time are saved.
EXAMPLE six
Fig. 6 is a block diagram of a block chain-based file data processing apparatus according to a sixth embodiment of the present invention, which is configured at a block chain network node, and is capable of executing the block chain-based file data processing methods according to the third and fourth embodiments of the present invention, and has functional modules and beneficial effects corresponding to the execution methods. As shown in fig. 6, the apparatus specifically includes:
an update request receiving module 601, configured to receive an update request for an on-link file that includes operation data and is sent by a user node; the operation data is generated by the following method: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; generating an on-chain file update request comprising operational data;
and an operation data writing module 602, configured to write the operation data into the block chain.
Optionally, the operation data writing module 602 is specifically configured to:
calling a conflict intelligent contract, and determining whether other unconfirmed on-chain file updating requests which conflict with the on-chain file updating requests exist in the block chain; if not, the operation data is written into the block chain.
Optionally, the apparatus further comprises:
an initial on-chain query request receiving module, configured to receive an initial on-chain query request for a target file; the initial on-chain query request is used for indicating the block chain network to determine whether an initial version of the target file is stored in the block chain.
Optionally, the initial on-chain query request receiving module is specifically configured to:
if the initial version of the target file is not stored in the block chain, an initial uplink request including the initial version of the target file is received, wherein the initial uplink request is used for instructing a block chain network to write the initial version of the target file into the block chain.
Optionally, the apparatus further comprises:
the system comprises a chain query request receiving module, a block chain network and a block chain searching module, wherein the chain query request receiving module is used for receiving a chain query request of a target file when the target file is locally reopened, and the chain query request is used for indicating the block chain network to acquire an initial version and operation data of the target file from the block chain; and generating the latest version of the target file according to the initial version and the operation data of the target file.
Optionally, the operation data includes at least one of an operation type, an operation location, and an operation text, and identification information of the target file.
According to the embodiment of the invention, the operation data aiming at the target file is stored in the block chain by receiving the on-chain file updating request sent by the user node, so that the change content of the target file is associated with the block chain, the problem of file loss caused by full storage of target files of different versions in the prior art is solved, the user can conveniently check the target files of different versions, the management efficiency of file data is improved, and the manpower and the time are saved.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a computer device according to a seventh embodiment of the present invention. Fig. 7 illustrates a block diagram of an exemplary computer device 700 suitable for use in implementing embodiments one, two, and five of the present invention. The computer device 700 shown in fig. 7 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer device 700 is in the form of a general purpose computing device. The components of the computer device 700 may include, but are not limited to: one or more processors or processing units 701, a system memory 702, and a bus 703 that couples various system components including the system memory 702 and the processing unit 701.
Bus 703 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 700 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 700 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 702 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)704 and/or cache memory 705. The computer device 700 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, the storage system 706 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 703 via one or more data media interfaces. Memory 702 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments one, two, and five of the present invention.
A program/utility 708 having a set (at least one) of program modules 707 may be stored, for example, in memory 702, such program modules 707 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 707 generally perform the functions and/or methods of embodiments one, two, and five described herein.
The computer device 700 may also communicate with one or more external devices 709 (e.g., keyboard, pointing device, display 710, etc.), with one or more devices that enable a user to interact with the computer device 700, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 711. Moreover, computer device 700 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the Internet) via network adapter 712. As shown, the network adapter 712 communicates with the other modules of the computer device 700 over a bus 703. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 701 executes various functional applications and data processing by running a program stored in the system memory 702, for example, implementing the block chain-based file data processing method provided in the first, second, and fifth embodiments of the present invention, including:
after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file;
and sending an on-chain file updating request comprising the operation data to the blockchain network, wherein the on-chain file updating request is used for instructing the blockchain network to write the operation data into the blockchain.
Example eight
Fig. 8 is a schematic structural diagram of a computer device according to an eighth embodiment of the present invention. FIG. 8 illustrates a block diagram of an exemplary computer device 800 suitable for use in implementing embodiments three, four, and six of the present invention. The computer device 800 shown in fig. 8 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention.
As shown in fig. 8, computer device 800 is in the form of a general purpose computing device. The components of computer device 800 may include, but are not limited to: one or more processors or processing units 801, a system memory 802, and a bus 803 that couples various system components including the system memory 802 and the processing unit 801.
Bus 803 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 800 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 800 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 802 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)804 and/or cache memory 805. The computer device 800 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 806 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, and commonly referred to as a "hard drive"). Although not shown in FIG. 8, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 803 by one or more data media interfaces. Memory 802 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments three, four, and six of the present invention.
A program/utility 808 having a set (at least one) of program modules 807 may be stored, for instance, in memory 802, such program modules 807 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 807 generally implement the functions and/or methodologies of embodiments three, four, and six described herein.
The computer device 800 may also communicate with one or more external devices 809 (e.g., keyboard, pointing device, display 810, etc.), with one or more devices that enable a user to interact with the computer device 800, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 800 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 811. Moreover, computer device 800 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the Internet) via network adapter 812. As shown, the network adapter 812 communicates with the other modules of the computer device 800 via the bus 803. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 801 executes various functional applications and data processing by running programs stored in the system memory 802, for example, implements the block chain-based file data processing method provided in the third, fourth, and sixth embodiments of the present invention, including:
receiving a link file updating request which comprises operation data and is sent by a user node; the operation data is generated by the following method: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; generating an on-chain file update request comprising operational data;
the operation data is written into the block chain.
Example nine
An embodiment ninth of the present invention further provides a storage medium containing computer-executable instructions, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements the method for processing file data based on a block chain according to the first, second, fifth, and seventh embodiments of the present invention, where the method includes:
after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file;
and sending an on-chain file updating request comprising the operation data to the blockchain network, wherein the on-chain file updating request is used for instructing the blockchain network to write the operation data into the blockchain.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Example ten
An embodiment tenth of the present invention further provides a storage medium containing computer-executable instructions, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements the method for processing file data based on a block chain according to the third, fourth, sixth, and eighth embodiments of the present invention, including:
receiving a link file updating request which comprises operation data and is sent by a user node; the operation data is generated by the following method: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; generating an on-chain file update request comprising operational data;
the operation data is written into the block chain.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. The file data processing method based on the block chain is characterized by being executed by a user node, and comprises the following steps:
after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file;
and sending an on-chain file updating request comprising the operation data to the blockchain network, wherein the on-chain file updating request is used for instructing the blockchain network to write the operation data into the blockchain.
2. The method of claim 1, further comprising:
sending an initial on-chain query request of a target file to a block chain network; wherein the initial on-chain query request is used to instruct the blockchain network to determine whether an initial version of the target file is stored in the blockchain.
3. The method of claim 2, further comprising, after sending the initial on-chain query request for the target file to the blockchain network:
if the initial version of the target file is not stored in the block chain, an initial uplink request including the initial version of the target file is sent to the block chain network, wherein the initial uplink request is used for indicating the block chain network to write the initial version of the target file into the block chain.
4. The method of claim 1, further comprising:
when detecting that a target file is locally reopened, sending an on-chain query request of the target file to a blockchain network, wherein the on-chain query request is used for indicating the blockchain network to acquire an initial version and operation data of the target file from the blockchain;
and generating the latest version of the target file according to the initial version and the operation data of the target file.
5. The method according to claim 1, wherein the operation data includes at least one of an operation type, an operation location, and an operation text, and identification information of a target file.
6. A method for blockchain-based file data processing, performed by a blockchain network node, the method comprising:
receiving a link file updating request which comprises operation data and is sent by a user node; wherein the operation data is generated by: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; generating an on-chain file update request comprising the operation data;
and writing the operation data into a block chain.
7. The method of claim 6, wherein writing the operation data into a block chain comprises:
calling a conflict intelligent contract, and determining whether other unconfirmed on-chain file updating requests which conflict with the on-chain file updating requests exist in the block chain;
and if not, writing the operation data into the block chain.
8. A block chain-based file data processing apparatus, configured at a user node, the apparatus comprising:
the operation data acquisition module is used for acquiring the operation data of the target file by the user after determining that the initial version of the target file is stored in the block chain;
and the update request sending module is used for sending an on-chain file update request comprising the operation data to the blockchain network, wherein the on-chain file update request is used for instructing the blockchain network to write the operation data into the blockchain.
9. A blockchain-based file data processing apparatus configured to be located at a node in a blockchain network, the apparatus comprising:
the updating request receiving module is used for receiving a link file updating request which comprises operation data and is sent by a user node; wherein the operation data is generated by: after determining that the initial version of the target file is stored in the block chain, acquiring operation data of a user on the target file; generating an on-chain file update request comprising the operation data;
and the operation data writing module is used for writing the operation data into the block chain.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the block chain based file data processing method according to any one of claims 1-5 or 6-7 when executing the program.
11. A storage medium containing computer-executable instructions for performing the method of block chain based file data processing according to any one of claims 1-5 or 6-7 when executed by a computer processor.
CN201911193374.9A 2019-11-28 2019-11-28 File data processing method, device, equipment and storage medium based on block chain Pending CN110990346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911193374.9A CN110990346A (en) 2019-11-28 2019-11-28 File data processing method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911193374.9A CN110990346A (en) 2019-11-28 2019-11-28 File data processing method, device, equipment and storage medium based on block chain

Publications (1)

Publication Number Publication Date
CN110990346A true CN110990346A (en) 2020-04-10

Family

ID=70087787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911193374.9A Pending CN110990346A (en) 2019-11-28 2019-11-28 File data processing method, device, equipment and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN110990346A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709860A (en) * 2020-06-19 2020-09-25 北京海益同展信息科技有限公司 Homote advice processing method, device, equipment and storage medium
CN113158144A (en) * 2021-03-16 2021-07-23 杭州趣链科技有限公司 Method and device for processing work content uplink, computer equipment and storage medium
CN113836586A (en) * 2021-11-26 2021-12-24 北京指掌易科技有限公司 File management method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876610A (en) * 2018-05-31 2018-11-23 深圳市零度智控科技有限公司 Intelligent contract implementation method, user equipment, storage medium and device
CN108920514A (en) * 2018-05-31 2018-11-30 百度在线网络技术(北京)有限公司 A kind of information storage means based on block chain, device, equipment and storage medium
CN109634913A (en) * 2018-12-14 2019-04-16 北京达佳互联信息技术有限公司 Storage method, device and the electronic equipment of document
CN109741162A (en) * 2018-09-03 2019-05-10 上海奥若拉信息科技集团有限公司 The storage of personal collage-credit data, processing, sharing method and system based on block chain
CN109918668A (en) * 2019-03-07 2019-06-21 泰康保险集团股份有限公司 Credit information management method, device, equipment and storage medium based on block chain
US20190279750A1 (en) * 2017-05-24 2019-09-12 Alibaba Group Holding Limited Blockchain-based data processing method and device
CN110362571A (en) * 2019-06-25 2019-10-22 智链万源(北京)数字科技有限公司 Data safety retroactive method and device based on block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190279750A1 (en) * 2017-05-24 2019-09-12 Alibaba Group Holding Limited Blockchain-based data processing method and device
CN108876610A (en) * 2018-05-31 2018-11-23 深圳市零度智控科技有限公司 Intelligent contract implementation method, user equipment, storage medium and device
CN108920514A (en) * 2018-05-31 2018-11-30 百度在线网络技术(北京)有限公司 A kind of information storage means based on block chain, device, equipment and storage medium
CN109741162A (en) * 2018-09-03 2019-05-10 上海奥若拉信息科技集团有限公司 The storage of personal collage-credit data, processing, sharing method and system based on block chain
CN109634913A (en) * 2018-12-14 2019-04-16 北京达佳互联信息技术有限公司 Storage method, device and the electronic equipment of document
CN109918668A (en) * 2019-03-07 2019-06-21 泰康保险集团股份有限公司 Credit information management method, device, equipment and storage medium based on block chain
CN110362571A (en) * 2019-06-25 2019-10-22 智链万源(北京)数字科技有限公司 Data safety retroactive method and device based on block chain

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709860A (en) * 2020-06-19 2020-09-25 北京海益同展信息科技有限公司 Homote advice processing method, device, equipment and storage medium
WO2021253957A1 (en) * 2020-06-19 2021-12-23 京东科技信息技术有限公司 Testament handling method and apparatus, and device and storage medium
CN111709860B (en) * 2020-06-19 2023-09-22 京东科技信息技术有限公司 Method, device, equipment and storage medium for processing heritage
CN113158144A (en) * 2021-03-16 2021-07-23 杭州趣链科技有限公司 Method and device for processing work content uplink, computer equipment and storage medium
CN113158144B (en) * 2021-03-16 2022-08-30 杭州趣链科技有限公司 Method and device for processing work content uplink, computer equipment and storage medium
CN113836586A (en) * 2021-11-26 2021-12-24 北京指掌易科技有限公司 File management method, device, equipment and storage medium
CN113836586B (en) * 2021-11-26 2022-11-22 北京指掌易科技有限公司 File management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107506451B (en) Abnormal information monitoring method and device for data interaction
WO2019148722A1 (en) Electronic device, data migrating and calling method and storage medium
CN109492053B (en) Method and device for accessing data
CN109471851B (en) Data processing method, device, server and storage medium
US9305049B2 (en) Addressing cross-allocated blocks in a file system
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
US7802089B2 (en) Analyzing interpretable code for harm potential
CN110929128A (en) Data crawling method, device, equipment and medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN111818145B (en) File transmission method, device, system, equipment and storage medium
CN113157731A (en) Symbol analysis method, device, equipment and storage medium
CN112579307A (en) Physical lock resource allocation detection method and device and electronic equipment
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN113010208B (en) Version information generation method, device, equipment and storage medium
CN113918437A (en) User behavior data analysis method and device, computer equipment and storage medium
US9064042B2 (en) Instrumenting computer program code by merging template and target code methods
CN112100092B (en) Information caching method, device, equipment and medium
CN110196952B (en) Program code search processing method, device, equipment and storage medium
WO2023151397A1 (en) Application program deployment method and apparatus, device, and medium
CN115080114A (en) Application program transplanting processing method, device and medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN112114811A (en) Compiling method, device and equipment
CN112084114A (en) Method and apparatus for testing an interface
CN111538651A (en) Interface testing method, device, server and storage medium
US8200895B2 (en) File system recognition structure

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
TA01 Transfer of patent application right

Effective date of registration: 20220921

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410