CN111460436A - Unstructured data operation method and system based on block chain - Google Patents

Unstructured data operation method and system based on block chain Download PDF

Info

Publication number
CN111460436A
CN111460436A CN202010255693.4A CN202010255693A CN111460436A CN 111460436 A CN111460436 A CN 111460436A CN 202010255693 A CN202010255693 A CN 202010255693A CN 111460436 A CN111460436 A CN 111460436A
Authority
CN
China
Prior art keywords
file
cloud function
function
cloud
data
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
CN202010255693.4A
Other languages
Chinese (zh)
Other versions
CN111460436B (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.)
Guangzhou Bingo Software Co Ltd
Original Assignee
Guangzhou Bingo Software 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 Guangzhou Bingo Software Co Ltd filed Critical Guangzhou Bingo Software Co Ltd
Priority to CN202010255693.4A priority Critical patent/CN111460436B/en
Publication of CN111460436A publication Critical patent/CN111460436A/en
Application granted granted Critical
Publication of CN111460436B publication Critical patent/CN111460436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a block chain-based unstructured data operation method and system. The unstructured data operation method based on the block chain comprises the following steps: when a first cloud function for data operation is triggered, the first cloud function triggers a second cloud function for verification operation; the second cloud function executes the steps of obtaining a source code corresponding to the function name of the first cloud function and calculating a first characteristic value according to the source code; the second cloud function executes a step of acquiring a second characteristic value corresponding to the function name from the blockchain cluster; executing the first cloud function when the first and second eigenvalues are the same. When the first cloud function for data operation is triggered, the second cloud function for verification operation is triggered to verify whether the function name of the first cloud function is correct, so that the reliability of the first cloud function can be confirmed.

Description

Unstructured data operation method and system based on block chain
Technical Field
The invention belongs to the field of data reading and writing based on a block chain, and particularly relates to an unstructured data operation method and system based on the block chain.
Background
The block chain is used as a distributed storage technology, data is stored in nodes in a block form, each node has a complete backup, the nodes participate in block generation together through a consensus mechanism, and the uplink of the blocks ensures that the data cannot be tampered. However, for the non-structural data uplink, the data needs to be disassembled and partitioned, and the data needs to be recombined when being read, so that the computing resources are increased; second, unstructured data storage is very costly, which puts a significant burden on node synchronization.
For unstructured data storage, one current practice is IPFS. The IPFS distributes the data to different nodes for storage respectively by blocking the unstructured data, and finally indexes the unstructured data by generating hash values of the files. However, this storage method is limited by network transmission performance and endorsement node calculation performance, and is inefficient.
In another method, the APP directly stores the unstructured data in the cloud, and uploads the MD5 value of the data to the block chain, and the uncorruptable property of the data is guaranteed through block chain check. This kind of practice has violated the transparent principle of data storage, and APP in the process of the last chain, and the user can influence system reliability through maliciously uploading illegal MD5 value. Moreover, the process of chaining the unstructured data is large in cutting crack, so that the corresponding management of the MD5 verification process of the data and the unstructured storage of the shared storage is difficult to guarantee, and the credibility is low.
Disclosure of Invention
The invention aims to provide a method and a system for operating unstructured data based on a block chain, aiming at improving the reliability of the unstructured data based on the block chain.
Therefore, the invention provides an unstructured data operation method based on a block chain, which comprises the following steps:
when a first cloud function for data operation is triggered, the first cloud function triggers a second cloud function for verification operation;
the second cloud function executes a step of acquiring a source code corresponding to the function name of the first cloud function according to the function name of the first cloud function and calculating a first characteristic value corresponding to the source code according to the source code;
the second cloud function executes a step of acquiring a second characteristic value corresponding to the function name from the blockchain cluster according to the function name of the first cloud function;
executing the first cloud function when the first and second eigenvalues are the same.
Preferably, the first cloud function and the second cloud function are lambda cloud functions.
Preferably, the first characteristic value is an MD5 value corresponding to the source code, and the second characteristic value is an MD5 value corresponding to a function name of the first cloud function stored in the blockchain cluster.
Preferably, the step of triggering the first cloud function for data operation includes:
after an object storage unit stores a file sent by a user terminal, a first cloud function for storing data is triggered by the object storage unit and receives storage information of the file sent by the object storage unit, wherein the storage information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a timestamp of the file;
after executing the first cloud function, further comprising:
and sending storage operation data to the block chain cluster to record the file information and the operation behavior, wherein the storage operation data comprises a keyword formed by a file path and a value corresponding to the keyword formed by the MD5 value of the file, the user information of the file, the user operation behavior at this time and a timestamp.
Preferably, the step of triggering the first cloud function for data operation includes:
after the object storage unit responds to a request for modifying a file sent by a user terminal, a first cloud function for modifying data triggers and receives modification information of the file sent by the object storage unit, wherein the modification information comprises one or more of a path of the file in the object storage unit, an MD5 value of the modified file, user information of the file, user operation behaviors and a time stamp of the file;
after executing the first cloud function, further comprising:
and sending modification operation data to the blockchain cluster to record the information and the operation behaviors of the file, wherein the modification operation data comprises a keyword formed by a file path and a value corresponding to the keyword formed by the MD5 value, the user information, the user operation behavior and the time stamp of the file.
Preferably, the step of triggering the first cloud function for data operation includes:
after the object storage unit responds to a request for reading a file sent by a user terminal, a first cloud function for reading data is triggered and reading information of the file sent by the object storage unit is received, wherein the reading information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a timestamp of the file;
after executing the first cloud function, further comprising:
and sending read operation data to the block chain cluster to record the information and the operation behavior of the file, wherein the read operation data comprises a keyword formed by a file path and a value corresponding to the keyword formed by the MD5 value, the user information, the user operation behavior and the timestamp of the file.
Preferably, after the sending the read operation data to the blockchain cluster, the method further includes:
receiving a file path of a read file and an MD5 value of the file sent by a user terminal, and triggering a third cloud function for verifying the file, wherein the third cloud function triggers a second cloud function for verification operation;
the second cloud function executes a step of acquiring a source code corresponding to the function name of the third cloud function according to the function name of the third cloud function and calculating a third characteristic value corresponding to the source code according to the source code;
the second cloud function executes a step of acquiring a fourth feature value corresponding to the function name from the blockchain cluster according to the function name of the third cloud function;
executing the third cloud function when the third and fourth eigenvalues are the same.
Preferably, executing the third cloud function comprises:
the third cloud function executes a step of acquiring an MD5 value of the file according to the file;
and the third cloud function compares the MD5 value of the file with the MD5 value sent by the receiving user terminal, and if the comparison is the same, the file is determined to be safe.
A blockchain-based unstructured data operating system comprising a cloud function server, the cloud function server comprising a memory for storing a computer program and a processor, the processor when executing the computer program comprising the steps of:
when a first cloud function for data operation is triggered, the first cloud function triggers a second cloud function for verification operation;
the second cloud function executes a step of acquiring a source code corresponding to the function name of the first cloud function according to the function name of the first cloud function and calculating a first characteristic value corresponding to the source code according to the source code;
the second cloud function executes a step of acquiring a second characteristic value corresponding to the function name from the blockchain cluster according to the function name of the first cloud function;
executing the first cloud function when the first and second eigenvalues are the same.
Preferably, the system further comprises an object storage unit, configured to trigger a first cloud function for storing data and send storage information of a file after storing the file sent by the user terminal, where the storage information includes one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file, and a timestamp of the file, or,
modification information of the file, which is used for triggering and sending triggering of the first cloud function of the modification data after responding to a request for modifying the file sent by a user terminal, wherein the modification information comprises one or more of a path of the file in the object storage unit, an MD5 value of the modified file, user information of the file, and a timestamp of the file, or
The file reading method comprises the steps of triggering a first cloud function for reading data and sending reading information of a file after responding to a request for reading the file sent by a user terminal, wherein the reading information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a time stamp of the file.
Compared with the prior art, the unstructured data operation method and system based on the block chain have the advantages that the second cloud function used for verifying operation is triggered when the first cloud function used for data operation is triggered, so that the first characteristic value obtained by the second cloud function through calculation according to the source code obtained according to the function name of the first cloud function is compared with the second characteristic value obtained from the block chain set according to the function name, whether the function name of the first cloud function is correct or not is verified, the reliability of the first cloud function can be confirmed, the first cloud function cannot be illegally tampered, and the first cloud function can be safely and reliably operated.
Further, when the unstructured data is operated (read, stored or modified), a block chain is written into file information and operation behaviors of a user, so that the corresponding management of the file and a corresponding characteristic value is ensured, the data is prevented from being illegally called or maliciously tampered by an external user, and the traceability and the non-tampering of the unstructured data are ensured. After the file is read, the file is verified through a third cloud function for verifying the file, so that the reliability of the file is ensured, and the reliable storage of the file is realized.
Drawings
FIG. 1 is a flow diagram of a method of unstructured data manipulation based on blockchains.
FIG. 2 is a flow chart of a blockchain-based unstructured data storage method.
FIG. 3 is a flow chart of a blockchain-based unstructured data modification method.
FIG. 4 is a flow chart of a method of unstructured data reading based on blockchains.
Detailed Description
The invention will be further explained with reference to the drawings.
For example, in the present embodiment, unstructured data storage of the block chain is implemented by FaaS + S3 object storage, and FaaS uses the lambda cloud function of AWS in the following description. FaaS + S3 object storage is a non-service architecture, realizes the transparency and automation of non-structural data storage, and the lambda cloud function supports flexible management, so that required resources can be automatically allocated and expanded, and the development cost and the operation cost are effectively reduced.
In the FaaS + S3 object storage scheme, a user can directly operate the S3 server to store (read) files, and automatically trigger the lambda cloud function to send related information to the blockchain through the S3 service to ensure the reliability of the system, and at the same time, the lambda cloud function records information of users, content, time and the like of each operation to ensure data traceability. In addition, the MD5 check value of the data is transparently realized through a lambda cloud function, and the illegal MD5 value is prevented from being invaded or maliciously uploaded by a user.
In order to ensure that the lambda cloud function is not illegally tampered, the lambda cloud function is safely and reliably operated, the lambda cloud function needs to be checked every time the lambda cloud function is executed, and the function name of the lambda cloud function and the MD5 need to be stored in a block chain in advance. The S3 object memory stores a correspondence table in which lambda function names and source code paths corresponding to the lambda function names one by one are recorded. The cloud function server may obtain a path of the source code from the correspondence table according to the function name, and then obtain the source code corresponding to the function name according to the path of the source code. Since the cloud function server also checks the source code after acquiring the source code, and the check code is already stored in the block chain, this check operation already ensures the reliability of the source code, so that the source code does not need to be also stored in the block chain, but only stored in the object storage of S3.
The blockchain-based unstructured data manipulation method is used for manipulating unstructured data, including but not limited to reading data, storing data, and modifying data. The blockchain-based unstructured data manipulation method may be executable on a blockchain-based unstructured data manipulation system. The unstructured data operating system comprises a cloud function server and an object storage. The cloud function server comprises a memory for storing a computer program and a processor for executing the block chain based unstructured data manipulation method when executing the computer program.
The object storage unit is used for triggering the first cloud function for storing data and sending storage information of a file after storing the file sent by a user terminal, wherein the storage information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a timestamp of the file, or is used for triggering modification information of the file after responding to a request sent by the user terminal for modifying the file, wherein the modification information comprises one or more of a path of the file in the object storage unit, an MD5 value of the modified file, user information of the file, a timestamp of the file, or is used for triggering the first cloud function for reading data and sending reading information of the file after responding to a request sent by the user terminal for reading the file, wherein the read information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file, and a time stamp of the file.
Example 1
FIG. 1 is a flow diagram of a method of unstructured data manipulation based on blockchains. As shown in fig. 1, the method for operating unstructured data based on a blockchain includes the following steps.
Step 1: the first cloud function for data operation is triggered, and a main body for triggering the first cloud function may be a user terminal or an object storage unit. In the present embodiment, the object storage unit is, for example, an S3 object storage.
Step 2: the first cloud function of the cloud function server triggers a second cloud function for the verification operation. Wherein the first cloud function and the second cloud function are lambda cloud functions. And the cloud function server inquires a path of the corresponding source code according to the function name of the first cloud function from a corresponding table stored in the object memory, and downloads the source code from the cloud according to the path of the source code.
And step 3: the cloud function server executes a second cloud function, inquires a path of a corresponding source code according to the function name of the first cloud function from a corresponding table stored in the object memory, downloads the source code from the cloud according to the path of the source code, and then calculates a first characteristic value corresponding to the source code according to the source code. In this step, the first feature value is an MD5 value calculated according to the source code of the first cloud function.
And 4, step 4: and the cloud function server executes a second cloud function and acquires a second characteristic value corresponding to the function name from the block chain cluster according to the function name. In this step, the first characteristic value is an MD5 value corresponding to the cloud function stored in the blockchain cluster.
And 5: and when the first characteristic value is the same as the second characteristic value, determining that the first cloud function is correct, namely the first cloud function is successfully verified, and executing the first cloud function. The first cloud function may be a plurality of types of cloud functions, and for example, the first cloud function is specifically described below as a cloud function for storing data, a cloud function for modifying data, and a cloud function for reading data.
Example 2
Fig. 2 is a flowchart of a blockchain-based unstructured data storage method, which includes the following steps, as shown in fig. 2.
Step 1: the user terminal stores the file to the object storage unit. In this step, the object storage unit is an S3 object memory.
Step 2: the object storage unit triggers a first cloud function of a cloud function server for storage operation, and sends storage information to the cloud function server, wherein the storage information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file, and a timestamp of the file.
And step 3: a first cloud function for a storage operation is checked. The method specifically comprises the following steps:
1) the first cloud function of the cloud function server triggers a second cloud function for the verification operation. Wherein the first cloud function and the second cloud function are lambda cloud functions.
2) The cloud function server executes a second cloud function, inquires a path of a corresponding source code according to the function name of the first cloud function from a corresponding table stored in the object memory, downloads the source code from the cloud according to the path of the source code, and then calculates a first characteristic value corresponding to the source code according to the source code. In this step, the first feature value is an MD5 value calculated according to the source code of the first cloud function.
3) And the cloud function server executes the step of acquiring a second characteristic value corresponding to the function name from the block chain cluster according to the function name of the second cloud function. In this step, the first characteristic value is an MD5 value corresponding to the cloud function stored in the blockchain cluster.
And 4, step 4: and when the first characteristic value is the same as the second characteristic value, determining that the first cloud function is correct, namely the first cloud function is successfully verified, and executing the first cloud function.
And 5: and sending the storage operation data to the block chain cluster to record the file information and the operation behavior, wherein the storage operation data takes a file path as a key word, and takes the MD5 value, the user information, the user operation behavior and the timestamp of the file as values corresponding to the key word.
Example 3
Fig. 3 is a flowchart of a blockchain-based unstructured data modification method, which includes the following steps, as shown in fig. 3.
Step 1: the user terminal modifies the file to the object modification unit. In this step, the object modification unit is an S3 object modifier.
Step 2: the object modification unit triggers a first cloud function of a cloud function server for modification operation, and sends modification information to the cloud function server, wherein the modification information comprises one or more of a path of the file in the object storage unit, an MD5 value of the modified file, user information of the file, and a timestamp of the file.
And step 3: and triggering a second cloud function used for verifying operation by a first cloud function of the cloud function server, and verifying the first cloud function used for modifying operation. Wherein the first cloud function and the second cloud function are lambda cloud functions. The method specifically comprises the following steps:
1) the cloud function server executes a second cloud function, inquires a path of a corresponding source code according to the function name of the first cloud function from a corresponding table stored in the object memory, downloads the source code from the cloud according to the path of the source code, and then calculates a first characteristic value corresponding to the source code according to the source code. In this step, the first feature value is an MD5 value calculated according to the source code of the first cloud function.
2) And the cloud function server executes the step of acquiring a second characteristic value corresponding to the function name from the block chain cluster according to the function name of the second cloud function. In this step, the first characteristic value is the MD5 value corresponding to the cloud function modified by the blockchain cluster.
And 4, step 4: and when the first characteristic value and the second characteristic value are the same, determining that the first cloud function is correct, namely the first cloud function is successfully verified, and executing the first cloud function for the reading operation.
And 5: and sending the modification operation data to the block chain cluster to record the file information and the operation behavior, wherein the modification operation data comprises a keyword formed by a file path, and a value corresponding to the keyword formed by the MD5 value, the user information, the operation behavior of the current user and the time stamp of the file.
Example 4
FIG. 4 is a flow chart of a method of unstructured data reading based on blockchains. As shown in fig. 4, the method for reading unstructured data based on a blockchain includes the following steps.
Step 1: the user terminal reads the file to the object storage unit. In this step, the object storage unit is an S3 object memory.
Step 2: the object storage unit triggers a first cloud function of a cloud function server for a read operation after responding to a read file request, and sends read information to the cloud function server, wherein the read information comprises one or more of a path of a read file, user information and a timestamp.
And step 3: the first cloud function of the cloud function server triggers a second cloud function for the verification operation. Wherein the first cloud function and the second cloud function are lambda cloud functions. The method specifically comprises the following steps:
1) the cloud function server executes a second cloud function, inquires a path of a corresponding source code according to the function name of the first cloud function from a corresponding table stored in the object memory, downloads the source code from the cloud according to the path of the source code, and then calculates a first characteristic value corresponding to the source code according to the source code. In this step, the first feature value is an MD5 value calculated according to the source code of the first cloud function.
2) And the cloud function server executes the step of acquiring a second characteristic value corresponding to the function name from the block chain cluster according to the function name of the second cloud function. In this step, the first characteristic value is an MD5 value corresponding to the cloud function stored in the blockchain cluster.
And 4, step 4: and when the first characteristic value and the second characteristic value are the same, determining that the first cloud function is correct, namely the first cloud function is successfully verified, and executing the first cloud function for reading operation.
And 5: and the cloud function server sends read operation data to the block chain cluster to record the file information and the operation behavior, wherein the read operation data comprises a keyword (Key) formed by a file path and a Value (Value) corresponding to the keyword formed by the MD5 Value, the user information, the user operation behavior and the timestamp of the file.
The steps realize the safe reading of the file. Steps 1-5 are intended to prevent the document from being tampered with in order to verify the correctness of the document. In some preferred embodiments, after the file is securely read, the following steps may be further included.
Step 6: after the user terminal acquires the file, the user terminal triggers a third cloud function for verification operation of the cloud function server to verify the file, and the user terminal sends the file path and the MD5 value of the file to the cloud function server.
And 7: and triggering the second cloud function for checking operation by the third cloud function of the cloud function server. And the third cloud function and the second cloud function are lambda cloud functions. The method specifically comprises the following steps:
1) and the cloud function server executes the second cloud function, inquires a path of a corresponding source code according to the function name of the third cloud function from a corresponding table stored in the object memory, downloads the source code from the cloud according to the path of the source code, and calculates a third characteristic value corresponding to the source code according to the source code. In this step, the third feature value is an MD5 value calculated according to the source code of the third cloud function.
2) And the cloud function server executes the step of acquiring a fourth characteristic value corresponding to the function name from the block chain cluster according to the function name of the second cloud function. In this step, the fourth characteristic value is an MD5 value corresponding to the cloud function stored in the blockchain cluster.
And 8: and when the third characteristic value is the same as the fourth characteristic value, determining that the third cloud function is correct, namely the third cloud function is successfully verified, executing the third cloud function, sending a verification result to the user terminal by the cloud function server, determining whether the file is correct by the user terminal according to the verification result, and if so, reading the file by the user terminal.
According to the unstructured data operation method and system based on the block chain, when a first cloud function used for data operation is triggered, a second cloud function used for verification operation is triggered, so that the first characteristic value obtained by the second cloud function through calculation according to a source code obtained according to the function name of the first cloud function is compared with the second characteristic value obtained from the block chain set according to the function name, whether the function name of the first cloud function is correct or not is verified, and therefore the reliability of the first cloud function can be confirmed, illegal tampering can be avoided, and the first cloud function can be operated safely and reliably.
Further, when the unstructured data is operated (for example, read, stored or modified), a block chain is written into file information and operation behaviors of a user, so that the corresponding management of the file and a corresponding characteristic value is ensured, the data is prevented from being illegally called or maliciously tampered by an external user, and the traceability and the non-tampering of the unstructured data are ensured. After the file is read, the file is verified through a third cloud function for verifying the file, so that the reliability of the file is ensured, and the reliable storage of the file is realized.
It is to be understood that the present invention is not limited to the above-described embodiments, and that various changes and modifications may be made without departing from the spirit and scope of the invention, and it is intended to cover such changes and modifications as fall within the scope of the appended claims and equivalents thereof.

Claims (10)

1. An unstructured data operation method based on a block chain is characterized by comprising the following steps:
when a first cloud function for data operation is triggered, the first cloud function triggers a second cloud function for verification operation;
the second cloud function executes a step of acquiring a source code corresponding to the function name of the first cloud function according to the function name of the first cloud function and calculating a first characteristic value corresponding to the source code according to the source code;
the second cloud function executes a step of acquiring a second characteristic value corresponding to the function name from the blockchain cluster according to the function name of the first cloud function;
executing the first cloud function when the first and second eigenvalues are the same.
2. The method of claim 1, wherein the method comprises: the first cloud function and the second cloud function are lambda cloud functions.
3. The method of blockchain-based unstructured data manipulation according to claim 2, characterized by: the first characteristic value is an MD5 value corresponding to the source code, and the second characteristic value is an MD5 value corresponding to a function name of the first cloud function and stored in the block chain cluster.
4. The method of claim 3, wherein the method comprises: the step of triggering the first cloud function for data operation comprises:
after an object storage unit stores a file sent by a user terminal, a first cloud function for storing data is triggered by the object storage unit and receives storage information of the file sent by the object storage unit, wherein the storage information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a timestamp of the file;
after the first cloud function is executed, the method further comprises the following steps:
and sending storage operation data to the block chain cluster to record the file information and the operation behavior, wherein the storage operation data comprises a keyword formed by a file path and a value corresponding to the keyword formed by the MD5 value of the file, the user information of the file, the user operation behavior at this time and a timestamp.
5. The method of claim 3, wherein the method comprises: the step of triggering the first cloud function for data operation comprises:
after the object storage unit responds to a request for modifying a file sent by a user terminal, a first cloud function for modifying data triggers and receives modification information of the file sent by the object storage unit, wherein the modification information comprises one or more of a path of the file in the object storage unit, an MD5 value of the modified file, user information of the file and a time stamp of the file;
after the first cloud function is executed, the method further comprises the following steps:
and sending modification operation data to the blockchain cluster to record the information and the operation behaviors of the file, wherein the modification operation data comprises a keyword formed by a file path and a value corresponding to the keyword formed by the MD5 value, the user information, the user operation behavior and the time stamp of the file.
6. The method of claim 3, wherein the method comprises: the step of triggering the first cloud function for data operation comprises:
after the object storage unit responds to a request for reading a file sent by a user terminal, a first cloud function for reading data is triggered and reading information of the file sent by the object storage unit is received, wherein the reading information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a timestamp of the file;
after executing the first cloud function, further comprising:
and sending read operation data to the block chain cluster to record the information and the operation behavior of the file, wherein the read operation data comprises a keyword formed by a file path and a value corresponding to the keyword formed by the MD5 value, the user information, the user operation behavior and the timestamp of the file.
7. The method of blockchain-based unstructured data manipulation according to claim 6, characterized by: after the sending the read operation data to the blockchain cluster, the method further comprises the following steps:
receiving a file path of a read file and an MD5 value of the file sent by a user terminal, and triggering a third cloud function for verifying the file, wherein the third cloud function triggers a second cloud function for verification operation;
the second cloud function executes a step of acquiring a source code corresponding to the function name of the third cloud function according to the function name of the third cloud function and calculating a third characteristic value corresponding to the source code according to the source code;
the second cloud function executes a step of acquiring a fourth feature value corresponding to the function name from the blockchain cluster according to the function name of the third cloud function;
executing the third cloud function when the third and fourth eigenvalues are the same.
8. The method of blockchain-based unstructured data manipulation according to claim 7, characterized by: executing the third cloud function includes:
the third cloud function executes a step of acquiring an MD5 value of the file according to the file;
and the third cloud function compares the MD5 value of the file with the MD5 value sent by the receiving user terminal, and if the comparison is the same, the file is determined to be safe.
9. A blockchain-based unstructured data operating system, comprising: a cloud function server comprising a memory for storing a computer program and a processor, the processor, when executing the computer program, comprising the steps of:
when a first cloud function for data operation is triggered, the first cloud function triggers a second cloud function for verification operation;
the second cloud function executes a step of acquiring a source code corresponding to the function name of the first cloud function according to the function name of the first cloud function and calculating a first characteristic value corresponding to the source code according to the source code;
the second cloud function executes a step of acquiring a second characteristic value corresponding to the function name from the blockchain cluster according to the function name of the first cloud function;
executing the first cloud function when the first and second eigenvalues are the same.
10. The blockchain-based unstructured data operating system of claim 9, wherein: the system further comprises an object storage unit, which is used for triggering a first cloud function for storing data and sending storage information of a file after the file sent by a user terminal is stored, wherein the storage information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a timestamp of the file, or,
modification information of the file, which is used for triggering and sending triggering of the first cloud function of the modification data after responding to a request for modifying the file sent by a user terminal, wherein the modification information comprises one or more of a path of the file in the object storage unit, an MD5 value of the modified file, user information of the file, and a timestamp of the file, or
The file reading method comprises the steps of triggering a first cloud function for reading data and sending reading information of a file after responding to a request for reading the file sent by a user terminal, wherein the reading information comprises one or more of a path of the file in the object storage unit, an MD5 value of the file, user information of the file and a time stamp of the file.
CN202010255693.4A 2020-04-02 2020-04-02 Unstructured data operation method and system based on blockchain Active CN111460436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010255693.4A CN111460436B (en) 2020-04-02 2020-04-02 Unstructured data operation method and system based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010255693.4A CN111460436B (en) 2020-04-02 2020-04-02 Unstructured data operation method and system based on blockchain

Publications (2)

Publication Number Publication Date
CN111460436A true CN111460436A (en) 2020-07-28
CN111460436B CN111460436B (en) 2023-07-28

Family

ID=71684429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010255693.4A Active CN111460436B (en) 2020-04-02 2020-04-02 Unstructured data operation method and system based on blockchain

Country Status (1)

Country Link
CN (1) CN111460436B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961977A (en) * 2021-12-22 2022-01-21 中国电子科技集团公司第二十八研究所 Non-centralized city information interaction system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160335274A1 (en) * 2015-05-14 2016-11-17 Oracle Financial Services Software Limited Facilitating application processes defined using application objects to operate based on structured and unstructured data stores
CN108256353A (en) * 2018-01-11 2018-07-06 武汉斗鱼网络科技有限公司 A kind of data integrity verifying method, apparatus and client
US20190050400A1 (en) * 2017-08-11 2019-02-14 Wipro Limited Method and system for data conversion and data model optimization
US20190057379A1 (en) * 2017-08-21 2019-02-21 American Express Travel Related Services Company, Inc. Systems and methods for data file transfer balancing and control on blockchain
CN109491968A (en) * 2018-11-13 2019-03-19 浙江鲸腾网络科技有限公司 A kind of document handling method, device, equipment and computer readable storage medium
CN109669916A (en) * 2018-12-21 2019-04-23 浪潮软件集团有限公司 A kind of distributed objects storage architecture and platform based on CMSP and KUDU
CN109767190A (en) * 2018-12-29 2019-05-17 中国工商银行股份有限公司 Across mechanism workflow processing method, platform and system based on block chain
CN110138733A (en) * 2019-04-03 2019-08-16 华南理工大学 Object storage system based on block chain is credible to deposit card and access right control method
US20190305957A1 (en) * 2018-04-02 2019-10-03 Ca, Inc. Execution smart contracts configured to establish trustworthiness of code before execution
US20190332781A1 (en) * 2018-04-27 2019-10-31 EMC IP Holding Company LLC Serverless solution for continuous data protection
WO2019233614A1 (en) * 2018-06-07 2019-12-12 Coinfirm Blockchain Lab Sp. Z O.O. A method for registration of data in a blockchain database and a method for verifying data
CN110851449A (en) * 2019-11-11 2020-02-28 云南电网有限责任公司电力科学研究院 Unstructured document management method and device based on block chain technology
WO2020056458A1 (en) * 2018-09-18 2020-03-26 Newsouth Innovations Pty Limited A block chain-based system for multi-party, multistage process verification

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160335274A1 (en) * 2015-05-14 2016-11-17 Oracle Financial Services Software Limited Facilitating application processes defined using application objects to operate based on structured and unstructured data stores
US20190050400A1 (en) * 2017-08-11 2019-02-14 Wipro Limited Method and system for data conversion and data model optimization
US20190057379A1 (en) * 2017-08-21 2019-02-21 American Express Travel Related Services Company, Inc. Systems and methods for data file transfer balancing and control on blockchain
CN108256353A (en) * 2018-01-11 2018-07-06 武汉斗鱼网络科技有限公司 A kind of data integrity verifying method, apparatus and client
US20190305957A1 (en) * 2018-04-02 2019-10-03 Ca, Inc. Execution smart contracts configured to establish trustworthiness of code before execution
US20190332781A1 (en) * 2018-04-27 2019-10-31 EMC IP Holding Company LLC Serverless solution for continuous data protection
WO2019233614A1 (en) * 2018-06-07 2019-12-12 Coinfirm Blockchain Lab Sp. Z O.O. A method for registration of data in a blockchain database and a method for verifying data
WO2020056458A1 (en) * 2018-09-18 2020-03-26 Newsouth Innovations Pty Limited A block chain-based system for multi-party, multistage process verification
US20210288814A1 (en) * 2018-09-18 2021-09-16 Newsouth Innovations Pty Limited A block chain-based system for multi-party, multistage process verification
CN109491968A (en) * 2018-11-13 2019-03-19 浙江鲸腾网络科技有限公司 A kind of document handling method, device, equipment and computer readable storage medium
CN109669916A (en) * 2018-12-21 2019-04-23 浪潮软件集团有限公司 A kind of distributed objects storage architecture and platform based on CMSP and KUDU
CN109767190A (en) * 2018-12-29 2019-05-17 中国工商银行股份有限公司 Across mechanism workflow processing method, platform and system based on block chain
CN110138733A (en) * 2019-04-03 2019-08-16 华南理工大学 Object storage system based on block chain is credible to deposit card and access right control method
CN110851449A (en) * 2019-11-11 2020-02-28 云南电网有限责任公司电力科学研究院 Unstructured document management method and device based on block chain technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961977A (en) * 2021-12-22 2022-01-21 中国电子科技集团公司第二十八研究所 Non-centralized city information interaction system

Also Published As

Publication number Publication date
CN111460436B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US10754989B2 (en) Runtime self-correction for blockchain ledgers
CN108446407B (en) Database auditing method and device based on block chain
CN109831487B (en) Fragmented file verification method and terminal equipment
US7533291B2 (en) System and method for storing a data file backup
US10585762B2 (en) Maintaining files in a retained file system
CN114600420A (en) Pruning entries in a tamper-resistant data storage device
US10862672B2 (en) Witness blocks in blockchain applications
CN112214519B (en) Data query method, device, equipment and readable medium
CN112087530B (en) Method, device, equipment and medium for uploading data to block chain system
CN111897846A (en) Cache data verification method, device, equipment and storage medium
CN111400170A (en) Data permission testing method and device
CN111339551B (en) Data verification method and related device and equipment
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
CN111460436B (en) Unstructured data operation method and system based on blockchain
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN111291001B (en) Method and device for reading computer file, computer system and storage medium
CN114201370B (en) Webpage file monitoring method and system
CN111435323A (en) Information transmission method, device, terminal, server and storage medium
CN109002710A (en) A kind of detection method, device and computer readable storage medium
US20170286195A1 (en) Information object system
CN111079199B (en) Enterprise credit data screenshot tamper-proofing method based on block chain technology
CN113313540B (en) Contract generation method and device, electronic equipment and readable storage medium
US11687656B2 (en) Secure application development using distributed ledgers
Mullen CapsuleDB: A Secure Key-Value Store for the Global Data Plane
CN117149082A (en) Solid state disk data processing method and device, solid state disk and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant