CN110633252B - Data processing method, device and system based on block chain and electronic equipment - Google Patents

Data processing method, device and system based on block chain and electronic equipment Download PDF

Info

Publication number
CN110633252B
CN110633252B CN201810550841.8A CN201810550841A CN110633252B CN 110633252 B CN110633252 B CN 110633252B CN 201810550841 A CN201810550841 A CN 201810550841A CN 110633252 B CN110633252 B CN 110633252B
Authority
CN
China
Prior art keywords
data
file
block chain
file data
storing
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.)
Active
Application number
CN201810550841.8A
Other languages
Chinese (zh)
Other versions
CN110633252A (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.)
Alibaba China Network Technology Co Ltd
Original Assignee
Alibaba China Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Network Technology Co Ltd filed Critical Alibaba China Network Technology Co Ltd
Priority to CN201810550841.8A priority Critical patent/CN110633252B/en
Publication of CN110633252A publication Critical patent/CN110633252A/en
Application granted granted Critical
Publication of CN110633252B publication Critical patent/CN110633252B/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/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a data processing method, a device and a system based on a block chain and electronic equipment, wherein the method comprises the following steps: acquiring file data needing to be stored and certified based on a block chain and corresponding service records and check codes, wherein the check codes are used for verifying the correctness of the file data; storing the file data in a file repository; storing the service record and the check code into the block chain in an associated manner so as to store the file data; and synchronously broadcasting the data in the block chain. The scheme of the embodiment of the invention can realize the rapid sharing of the data in the block chain in the network.

Description

Data processing method, device and system based on block chain and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, apparatus, system and electronic device based on a block chain.
Background
The commodity tracing is carried out based on the block chain, and in each link (production link, transportation link and selling link) of the commodity, related file data needs to be uploaded to the block chain for storage. For example, the document data may include a quality control certification report of the product, a transportation route of the product, and order information for sale. In the process, because the information of the commodities is provided by different companies (the goods information is provided by a supplier, and the logistics information is provided by a logistics company), the block chain technology is used, so that the information uploaded in each link can be stored, and other people do not have any perception after a certain mechanism falsifies the information, thereby disturbing the normal operation of the whole cooperative company.
However, because of the characteristics of the blockchain technology, all the certified information needs to be synchronized to each processing node in the blockchain network, and the following disadvantages are encountered in practical use:
each processing node needs to locally open up a larger storage space for each block on the block chain to meet the requirement of continuously increased file data, so that the storage cost is increased;
based on the transmission characteristic of large file data in a Peer-to-Peer (P2P) network, bandwidth and network speed become important factors that restrict the consensus of block chains, and if the required network speed or bandwidth is not enough when transmitting data of a certain block, the processing speed of the whole commodity information is affected, thereby affecting the service of upper layer operation.
Disclosure of Invention
The invention provides a data processing method, a device and a system based on a block chain and electronic equipment, which can realize rapid sharing of data in the block chain in a network.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a data processing method based on a block chain is provided, including:
acquiring file data needing to be stored based on a block chain and corresponding service records and check codes, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the business record and the check code in the block chain in an associated manner so as to store the file data;
and synchronously broadcasting the data in the block chain.
In a second aspect, another data processing method based on a block chain is provided, including:
receiving broadcast data of a block chain, wherein the broadcast data comprises a service record or a check code of a data file associated with the service record, and the check code is used for verifying the correctness of the file data;
updating data of a locally stored blockchain based on the broadcast data;
and storing the data file corresponding to the business record in a file repository.
In a third aspect, a data processing apparatus based on a block chain is provided, including:
the data acquisition module is used for acquiring file data needing to be stored and certified based on a block chain and corresponding service records and check codes, and the check codes are used for verifying the correctness of the file data;
the file storage module is used for storing the file data into a file repository;
the data storage module is used for storing the business record and the check code into the block chain in an associated manner so as to store the file data;
and the data broadcasting module is used for synchronously broadcasting the data in the block chain.
In a fourth aspect, another block chain-based data processing apparatus is provided, including:
the data receiving module is used for receiving broadcast data of a block chain, wherein the broadcast data comprises a service record or a check code of a data file associated with the service record, and the check code is used for verifying the correctness of the file data;
the data updating module is used for updating data of the locally stored block chain based on the broadcast data;
and storing the data file corresponding to the business record in a file repository.
In a fifth aspect, a data processing system based on block chains is provided, comprising: the system comprises a plurality of processing nodes arranged in a block chain network, a plurality of clients and a file repository, wherein the clients and the file repository are in interactive connection with the processing nodes and are used for generating file data and corresponding business records;
the processing node is configured to:
acquiring file data needing to be stored and certified based on a block chain and corresponding business records and check codes through the client, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the service record and the check code into the block chain in an associated manner so as to store the file data;
and synchronously broadcasting the data in the block chain.
In a sixth aspect, an electronic device is provided, comprising:
a memory for storing a program;
a processor, coupled to the memory, for executing the program for:
acquiring file data needing to be stored and certified based on a block chain and corresponding service records and check codes, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the service record and the check code into the block chain in an associated manner so as to store the file data;
and synchronously broadcasting the data in the block chain.
In a seventh aspect, another electronic device is provided, including:
a memory for storing a program;
a processor, coupled to the memory, for executing the program for:
receiving broadcast data of a block chain, wherein the broadcast data comprises a service record or a check code of a data file associated with the service record, and the check code is used for verifying the correctness of the file data;
updating data of a locally stored blockchain based on the broadcast data;
and storing the data file corresponding to the business record in a file repository.
The invention provides a data processing method, a device and a system based on a block chain and electronic equipment, which can store business records and check codes corresponding to file data needing to be stored in the block chain in an associated manner when the file data is stored based on the block chain technology, wherein the check codes are used for verifying the correctness of the file data; and storing the file data into a file repository; and synchronously broadcasting and updating the service record and the check code to finish the storage of the file data. When the file data needs to be used, the target file data is verified by using the check code stored in the block chain, and the target file data can be used after the verification is successful. The scheme can avoid the increase of the storage cost of the block chain caused by directly storing the file data in the block chain, and reduce the waste of network transmission resources when the data of the block chain is broadcasted.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a block chain based data processing logic diagram in the prior art;
FIG. 2 is a block chain based data processing logic according to an embodiment of the present invention;
FIG. 3 is a block chain based data processing system architecture diagram according to an embodiment of the present invention;
FIG. 4 is a flowchart of a block chain-based data processing method according to an embodiment of the present invention;
FIG. 5 is a flowchart of a block chain-based data processing method according to an embodiment of the present invention;
fig. 6 is a flow chart of a block chain-based data processing method according to an embodiment of the present invention;
FIG. 7 is a flowchart of a block chain-based data processing method according to a fourth embodiment of the present invention;
FIG. 8 is a flow chart of a block chain-based data processing method according to an embodiment of the present invention;
fig. 9 is a flowchart of a block chain-based data processing method according to a sixth embodiment of the present invention;
FIG. 10 is a block chain-based data processing apparatus according to an embodiment of the present invention;
FIG. 11 is a block chain-based data processing apparatus of the present invention;
FIG. 12 is a block chain-based data processing apparatus according to a third embodiment of the present invention;
FIG. 13 is a block chain-based data processing apparatus according to a fourth embodiment of the present invention;
FIG. 14 is a block chain-based data processing apparatus according to an embodiment of the present invention;
FIG. 15 is a block chain-based data processing apparatus according to an embodiment of the present invention;
FIG. 16 is a first schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 17 is a second schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a block chain-based data processing logic diagram in the prior art. As shown in the figure, a plurality of processing nodes (such as processing node 1, processing node 2 and processing node 3 shown in the figure) are included in a blockchain network, each processing node maintains a blockchain locally, and each processing node keeps the data in the blockchains on each processing node consistent by performing data synchronization on the data of the local blockchains.
The existing data processing logic based on the blockchain is explained by taking the processing node 2 as an execution subject of the current processing logic, and the following steps are carried out:
after receiving the business records and the file data uploaded by the client, the processing node 2 can firstly check the correctness of the business records and the file data, and if the verification is successful, the business records and the file data are respectively stored into a digital account book and a file library of a local block chain as evidence storage data for storage. Then, the processing node 2 shares the data of the local blockchain, for example, the data may be transmitted by means of P2P transmission or broadcast, so as to synchronize the data of the blockchain to other processing nodes (such as the processing node 1 and the processing node 3) in the blockchain network. After other processing nodes receive the data sent by the processing node 2, correctness verification can be performed on the business records and the file data, and if verification is successful, the business records and the file data are stored in a digital account book and a file library of a local block chain as evidence storage data to be stored. In a practical application scenario, the processing nodes in each blockchain network may perform operations as processing node 2.
However, in the processing logic shown in fig. 1, because of the characteristics of the blockchain technology, all the certified information needs to be synchronized to each processing node in the blockchain network, which requires that each processing node needs to locally open a larger storage space for each block on the blockchain to meet the requirement of increasing file data, which increases the storage cost; in addition, based on the characteristics of large file data transmission in a Peer-to-Peer (P2P) network, bandwidth and network speed become important factors that restrict the consensus of block chains, and if the network speed or bandwidth required for transmitting data of a certain block is insufficient, the processing speed of the whole commodity information is affected, thereby affecting the upper-layer operation service.
The technical scheme improves the problems that in the prior art, the storage cost of each processing node is increased due to the fact that file data are directly stored in a block chain to serve as evidence storage data, and data synchronization of the block chain can be completed only by consuming a large amount of transmission resources; storing the file data into a file storage; and synchronously broadcasting the service record and the check code to finish the storage of the file data.
When the file data needs to be used, the target file data is verified by using the check code stored in the block chain, and the target file data can be used after the verification is successful. The scheme can avoid the increase of the storage cost of the block chain caused by directly storing the file data in the block chain, and reduce the waste of network transmission resources when the data of the block chain is broadcasted.
Fig. 2 is a schematic diagram of a data processing logic based on a block chain according to an embodiment of the present invention. As shown in FIG. 2, the processing logic also includes a plurality of processing nodes as shown in FIG. 1. Each processing node also maintains a local block chain locally, and each processing node synchronizes data of the local block chain, so that the data in the block chain on each processing node is consistent.
However, the difference is that the data stored in the block chain on each processing node no longer contains file data, but instead contains a file storage address and a file check code corresponding to the file data. The file data is stored in a public file cluster outside the blockchain network, the public file cluster can be regarded as a public storage platform arranged at the cloud end, a plurality of file storage libraries are arranged on the public file cluster and used for storing the file data based on blockchain storage certificates, and file storage addresses stored in the blockchain point to storage addresses of the file data in the file storage libraries.
The block chain based data processing logic provided in this patent is illustrated with processing node 2 as the execution subject of the current processing logic, as follows:
after receiving the service records and the file data uploaded by the client, the processing node 2 can check the correctness of the service records and the file data, and if the check is successful, the processing node stores the file storage addresses of the service records and the file data in the file storage library and the file verification codes (the file storage addresses and the file verification codes can be collectively called as file records) obtained by calculating the file data through an irreversible algorithm into a digital book of a local block chain as evidence storage data for storage. And simultaneously, storing the file data into the same storage space in the file storage library as the file storage address stored in the block chain. Then, the processing node 2 shares the data of the local blockchain, for example, the data may be transmitted by means of P2P transmission or broadcast, so as to synchronize the data of the blockchain to other processing nodes (such as the processing node 1 and the processing node 3) in the blockchain network. After other processing nodes receive the data sent by the processing node 2, corresponding file data can be obtained in a file storage library according to the file storage address, then the file data is calculated through the same irreversible algorithm, if the calculated check code is the same as the file check code synchronously received from the processing node 2, the content of the file data is determined to be correct, and the synchronously received business record, the file storage address and the file check code are stored in a digital account book of a local block chain as evidence storage data for storage. In a practical application scenario, the processing nodes in each blockchain network may perform operations as processing node 2.
When each processing node needs to use the file data, only the check code stored in the block chain is used for checking the target file data in the file repository, and the target file data can be used after the check is successful.
Based on the schematic diagram of the data processing logic based on the blockchain shown in fig. 2, fig. 3 is a structural diagram of a data processing system based on the blockchain according to an embodiment of the present invention. As shown in fig. 3, the system includes: a plurality of processing nodes (e.g., processing node 1 to processing node n shown in the figure) arranged in the blockchain network, a plurality of clients (e.g., client 1 to client m, which only show the interactive connection relationship between a client and a processing node directly below the client for convenience of description in the figure, and each client can be interactively connected with any processing node in practical application) for generating file data and corresponding service records, and a file repository; the file repository corresponds to the file repository shown in fig. 2, and is used for storing file data.
On each processing node (in fig. 3, the processing node 1 is taken as an example for refinement), a data processing apparatus based on a block chain is provided, and the apparatus includes:
the data acquisition module is used for acquiring file data needing to be stored and certified based on the block chain and corresponding business records and check codes, wherein the check codes are used for verifying the correctness of the file data;
the file storage module is used for storing file data into a file repository;
the data storage module is used for storing the business record and the check code into the block chain in an associated manner so as to store the file data;
and the data broadcasting module is used for synchronously broadcasting the data in the block chain.
For example, the data acquisition module in each processing node may receive file data that needs to be certified based on the blockchain and is uploaded by the client, and the corresponding service record and the check code. Wherein a service record is understood to be record information of a service related to file data. Then, the file storage module stores the received file data into a file repository; and the data storage module stores the service record and the check code into the block chain in an associated manner so as to store the file data. After the processing node writes the locally newly generated evidence storing data into the local block chain, the data in the block chain is synchronously broadcasted through the data broadcasting module, so that other processing nodes in the network update the data of the local block chain, and the data of the block chains on each processing node are kept consistent.
Further, the data acquiring module may specifically include:
the data receiving unit is used for receiving the file data uploaded by the client and the corresponding business records;
and the data calculation unit is used for calculating the file data through an irreversible algorithm to obtain the check code.
Specifically, the data acquisition module can acquire file data and corresponding business records in a manner of direct uploading by a client; the check code of the file data can be obtained by calculating the file data through an irreversible algorithm. Wherein the irreversible algorithm may be a hash algorithm.
Further, the data obtaining module may be further configured to store the file storage address of the file data in the block chain in association with the service record and the check code.
Specifically, in order to facilitate the computing node to quickly find the target file data from the file repository, the file storage address of the file data may be stored in the block chain in a correlated manner while the service record and the check code corresponding to the file data are stored.
Further, the above apparatus may further include:
the data receiving module is used for receiving the broadcast data of the block chain;
and the data updating module is used for updating data of the locally stored block chain based on the broadcast data.
Specifically, each processing node in the blockchain network may also receive data of the blockchain broadcasted by other processing nodes synchronously, and perform data update on the locally stored blockchain based on the broadcasted data, where the data is evidence storage data actively written by the blockchain for the other processing nodes.
Further, the data updating module may specifically include:
the first searching unit is used for searching corresponding file data in a file storage bank if the data of the block chain to be updated contains the service record related to the file data;
the first verification unit is used for verifying the correctness of the searched file data by utilizing a check code associated with the service record;
and the first updating unit is used for updating the broadcast data of the received block chain into the local block chain if the verification is successful.
Specifically, when updating the data of the locally stored blockchain based on the received broadcast data, the data updating module first determines whether the data of the blockchain to be updated relates to file data. The manner of determining whether to refer to the file data includes, but is not limited to, identifying from the business record whether to include the content of the file data (e.g., the name of the file data, etc.). If yes, searching corresponding file data from the file storage (searching can be performed through the name of the file data), and verifying the correctness of the searched file data by using a check code associated with the service record; if the verification is successful, the received broadcast data is valid, and the received broadcast data of the blockchain can be updated to the local blockchain.
Further or alternatively, the data updating module may specifically include:
the second searching unit is used for searching corresponding file data in a file repository according to the file storage address if the data of the block chain to be updated contains the file storage address;
the second verification unit is used for verifying the correctness of the searched file data by utilizing the check code associated with the file storage address;
and the second updating unit is used for updating the received broadcast data of the block chain into the local block chain if the verification is successful.
Specifically, when updating the data of the locally stored blockchain based on the received broadcast data, the data updating module first determines whether the data of the blockchain to be updated relates to file data. The manner of determining whether to refer to the file data includes, but is not limited to, identifying whether to include a file storage address from the broadcast data. If the file data is contained in the file storage library, searching corresponding file data from the file storage library directly according to the file storage address, and verifying the correctness of the searched file data by using a verification code associated with the service record; if the verification is successful, the received broadcast data is valid, and the received broadcast data of the blockchain can be updated to the local blockchain.
In addition, if the received broadcast data contains the verification code, it can also be determined that the data of the block chain to be updated relates to the file data, and only if the process of searching the file data is troublesome, it is necessary to check all the file data in the file repository sequentially through the verification code, so as to determine which of the file data is the file data related to the broadcast data.
Further, the above apparatus may further include:
the file checking module is used for acquiring file data in a file repository and checking the file data based on a checking code corresponding to the file data stored in a local block chain;
the file processing module is used for receiving the file data to realize processing operation based on the file data if the verification is successful; otherwise, the file data is rejected.
Specifically, when the processing node needs to use the file data, only the target file data needs to be acquired from the file repository, and then the verification is performed based on the verification code corresponding to the file data stored in the local block chain. If the verification is successful, the file data is indicated to be not tampered, and the file data can be accepted to realize the processing operation based on the file data; if the verification fails, it indicates that the file data has been tampered with, at which point all processing operations based on the file data should be denied.
The technical solution of the present application is further illustrated by the following examples.
Example one
Based on the above technical idea of data processing based on a blockchain, as shown in fig. 4, it is a flowchart of a data processing method based on a blockchain according to an embodiment of the present invention, and an execution main body of the method is each computing node shown in fig. 3 or a data processing apparatus based on a blockchain disposed in the computing node. As shown in fig. 4, the data processing method based on the blockchain includes the following steps:
s410, file data needing to be stored and certified based on the block chain and corresponding business records and check codes are obtained, and the check codes are used for verifying the correctness of the file data.
Currently, data storage based on the blockchain technology is widely applied to various fields. The data to be stored includes not only the service record, but also the file data related to the service record in most cases. For example, when a block chain is used for commodity traceability information storage, in each link (production link, transportation link, selling link) of a commodity, related file data needs to be uploaded to the block chain for storage. For example, the document data may include a quality control certification report of the product, a transportation route of the product, and order information for sale. In the process, because the information of the commodities is provided by different companies (the commodity information is provided by a supplier, and the logistics information is provided by a logistics company), the block chain technology is used for storing the file data uploaded in each link, so that other people do not have any perception after a certain mechanism tampers the information of the mechanism, and the normal operation of the whole cooperation company is disturbed.
However, due to the characteristics of the blockchain technology, all the certified information needs to be synchronized to each processing node in the blockchain network, so that each processing node needs to locally open up a larger storage space for each block on the blockchain to meet the requirement of continuously increased file data, and the storage cost is increased; and when each processing node broadcasts the data of the block chain, the file data is generally large, so that great pressure is caused to network transmission, and the synchronization efficiency is influenced.
Different from the operation of directly storing file data into a block chain for data storage in the prior art, when data for storage based on the block chain is acquired at each processing node in the scheme, not only are file data and corresponding service records which need to be stored based on the block chain acquired, but also a check code corresponding to the file data is acquired, and the check code is used for verifying the correctness of the file data.
And S420, storing the file data into a file repository.
Different from the prior art, after the processing node acquires the file data, the file data is not stored in the block chain, but is stored in the file repository. The file repository may be a file storage platform (e.g., a cloud-based public file cluster) disposed in a network other than the blockchain network. Each processing node can access the file repository to complete the writing and reading of file data.
And S430, storing the business record and the check code into a block chain in an associated manner so as to store the file data.
And storing the file data into a file repository, and storing the business record and the check code corresponding to the file data into a block chain in an associated manner so as to store the file data.
And S440, synchronously broadcasting the data in the block chain.
After the processing node completes the operation of writing new data into the block chain locally, the newly generated data of the block chain can be synchronously broadcasted, so that other processing nodes in the network synchronously update the data of the block chain, and the data consistency of the block chain on each processing node is ensured. Therefore, when other processing nodes need to acquire the certified file data, the data can be read from the file repository, then the check code corresponding to the file data in the block chain is used for checking the file data, and if the check is successful, the file data can be received for corresponding data processing.
When the block chain technology is used for storing the document data, the service record corresponding to the document data needing to be stored and the check code can be stored in the block chain in an associated manner, wherein the check code is used for verifying the correctness of the document data; and storing the file data into a file repository; and synchronously broadcasting the service record and the check code to finish the storage of the file data. When the file data needs to be used, the target file data is verified by using the check code stored in the block chain, and the target file data can be used after the verification is successful. The scheme can avoid the increase of the storage cost of the block chain caused by directly storing the file data in the block chain, and reduce the waste of network transmission resources when the data of the block chain is broadcasted.
Example two
Fig. 5 is a flowchart of a data processing method based on a block chain according to an embodiment of the present invention. The embodiment further defines the process of acquiring the service record and the check code on the basis of the method shown in fig. 4. As shown in fig. 5, the data processing method based on the blockchain includes the following steps:
and S510, receiving the file data uploaded by the client and the corresponding service record.
Specifically, the processing node may be a server provided in the blockchain network and having a right to perform read/write operations on the blockchain. The servers can acquire file data to be certified based on the block chain and corresponding business records through a client arranged at the front end.
A user can perform information interaction with any processing node through a client, and the process of uploading file data and service records to be stored and certified to the processing node is achieved.
S520, calculating the file data through an irreversible algorithm to obtain a check code.
For example, the file data may be calculated by a hash algorithm, and the obtained hash value is used as a check code for checking the correctness of the file data.
Steps S510 to S520 may be taken as a refinement of step S410 described above.
S530, storing the file data into a file repository.
Step S530 is the same as step S420 described above.
And S540, storing the service record, the check code and the file storage address of the file data into a block chain in an associated manner so as to store the file data.
Step S540 is similar to the above-described step S430.
Specifically, in order to facilitate the computing node to quickly find the target file data from the file repository, the file storage address of the file data may be stored in the block chain in a correlated manner while the service record and the check code corresponding to the file data are stored.
And S550, synchronously broadcasting the data in the block chain.
Step S550 is the same as step S440 described above.
The block chain-based data processing method provided by the invention is based on the method shown in fig. 4, and receives file data uploaded by a client and a corresponding service record; calculating the file data through an irreversible algorithm to obtain a check code, thereby showing a specific mode for acquiring the service record and the check code; meanwhile, the file storage addresses of the file data are stored in the block chain in a correlated mode, so that the target file data can be conveniently and quickly found from the file storage library.
EXAMPLE III
Fig. 6 is a flow chart of a data processing method based on a block chain according to an embodiment of the present invention. This embodiment can be used as a supplement to the method shown in fig. 4, and adds a processing procedure of how to update data of the local blockchain by receiving broadcast data of other processing nodes. As shown in fig. 6, the data processing method based on the blockchain includes the following steps:
s610, receiving broadcast data of the block chain.
The broadcast data of the blockchain may be a processing node that performs writing of blockchain data and broadcasts the blockchain data to the network after locally generating new blockchain data, or may be a processing node that receives the blockchain data broadcast by another node and broadcasts the blockchain data to the network again after locally synchronously storing the received blockchain data.
It should be noted that the data of the broadcasted blockchain may be all data up to the currently generated blockchain, or may be data of a portion of the currently newly generated blockchain.
And S620, updating data of the locally stored block chain based on the broadcast data.
After each processing node in the blockchain network receives the broadcast data of other processing nodes, the broadcast data may be compared with the locally stored data of the blockchain. If the data of the locally stored block chain contains the broadcast data, abandoning the broadcast data; if the data of the local storage block chain does not contain the broadcast data, firstly carrying out correctness verification on the broadcast data, and if the verification is successful, updating the broadcast data into the local storage block chain.
In particular, step S620 may be refined to the method steps as shown in fig. 7, including:
s710, if the data of the block chain to be updated contains the service record related to the file data, searching the corresponding file data in the file repository.
In an actual application scenario, among data of a broadcasted blockchain, only a service record is included in a data portion that may be to be updated relative to data of a local blockchain of a processing node.
However, in most cases, the data of the block chain to be updated may include service records related to file data. For this case, the corresponding file data needs to be searched in the file repository. For example, the corresponding file data may be searched from the file repository according to the identification information, such as the name of the file data, recorded in the service record of the file data.
S720, the correctness of the searched file data is checked by utilizing the check code associated with the service record.
After the specified file data is found from the file repository, the correctness of the found file data can be verified by using the verification code associated with the service record corresponding to the file data in the broadcast data. For example, the current file data is calculated again by adopting the irreversible algorithm which is the same as the verification code obtained, and if the verification code obtained by calculation is the same as the verification code in the broadcast data, the file data is correct; if the calculated verification code is not the same as the verification code in the broadcast data, the file data is incorrect and is probably falsified by others.
S730, if the verification is successful, the received broadcast data of the blockchain is updated to the local blockchain.
And the processing node updates the broadcast data corresponding to the file data successfully verified to a local block chain so as to ensure that the data of the block chain is consistent with the data of the block chains on other processing nodes in the network.
Further or alternatively, step S620 may be further refined to the method steps as shown in fig. 8, including:
s810, if the data of the block chain to be updated contains a file storage address, searching corresponding file data in a file storage library according to the file storage address;
in an actual application scenario, among data of a broadcasted blockchain, only a service record is included in a data portion that may be to be updated relative to data of a local blockchain of a processing node.
However, in most cases, the data of the block chain to be updated may include a service record related to the file data and also include a file storage address corresponding to the file data. For this case, the corresponding file data needs to be searched in the file repository. For example, the corresponding file data may be looked up from the file repository according to the file storage address.
And S820, checking the correctness of the searched file data by using the check code associated with the file storage address.
After the designated file data is found from the file storage library, the correctness of the found file data can be verified by using the verification code associated with the file storage address corresponding to the file data in the broadcast data. For example, the current file data is calculated again by adopting the irreversible algorithm which is the same as the verification code obtained, and if the verification code obtained by calculation is the same as the verification code in the broadcast data, the file data is correct; if the calculated verification code is not the same as the verification code in the broadcast data, the file data is incorrect and is probably falsified by others.
S830, if the verification is successful, the received broadcast data of the blockchain is updated to the local blockchain.
And the processing node updates the broadcast data corresponding to the file data successfully verified to a local block chain so as to ensure that the data of the block chain is consistent with the data of the block chains on other processing nodes in the network.
On the basis of the method shown in fig. 4, the data processing method based on the block chain provided by the invention shows two methods for updating the received broadcast data of the block chain into the local block chain, which are respectively to search the file data according to the service record in the broadcast data, and then update the local block chain data after successfully verifying the file data; and searching file data according to the file storage address in the broadcast data, and updating the local block chain data after successfully verifying the file data. Both methods can save the storage cost of the file data stored locally in the processing node. And can also reduce the waste of network transmission resources by the broadcast data of the block chain.
Example four
Fig. 9 is a flow chart of a data processing method based on a block chain according to a third embodiment of the present invention. This embodiment can be used as a supplement to the method shown in fig. 4, and adds a process of how to obtain the target file data from the file repository. As shown in fig. 9, the data processing method based on block chains includes the following steps:
s910, file data in the file repository is obtained, and verification is performed based on the verification code corresponding to the file data stored in the local block chain.
When the processing node needs to acquire the target file data from the file repository and execute the processing operation based on the target file data, the processing node may acquire the target file data from the file repository first, and then perform verification based on the check code corresponding to the file data stored in the local block chain, so as to ensure that the file data is not tampered during the storage period in the file repository.
S920, if the verification is successful, the file data is accepted to realize the processing operation based on the file data; otherwise, the file data is rejected.
When the verification of the file data by the verification code is successful, the file data is correct and is not tampered, and the processing node can store the file data to the local to realize processing operation based on the file data. When the verification of the file data by the verification code fails, the file data is indicated to have errors and possibly be maliciously tampered, and at the moment, the processing node can directly abandon the file data, stop the processing operation based on the file data and send an alarm to a maintenance mechanism of the file repository.
Based on the method shown in fig. 4, the block chain-based data processing method provided by the present invention specifically describes a process in which each processing node acquires file data from a file repository to implement a processing operation based on the file data. When the file data needs to be acquired for service processing, the file data can be acquired from the file storage library, and whether the file data is used or not is determined after verification is performed by using the verification code of the file data in the block chain. According to the scheme, the certificate storage data (data in the block chain) and the file data are stored in a separated mode, classification management can be well achieved, and meanwhile the maintenance difficulty of the block chain data is reduced.
EXAMPLE five
The data processing method based on the block chain of the embodiment of the invention independently protects the synchronous updating process of the block chain, and comprises the following steps:
s610, receiving broadcast data of the block chain, wherein the broadcast data comprises a service record or a check code of the service record and file data related to the service record, and the check code is used for verifying the correctness of the file data.
In the above process of storing and maintaining the service record and the check code of the file data to be stored based on the blockchain, an important processing procedure is also involved, that is, how to implement the synchronization and update process of the data of the blockchain between the processing nodes.
Specifically, the broadcast data of the blockchain may be a processing node that performs writing of blockchain data, and broadcasts the data of the blockchain to the network after locally generating new blockchain data, or may be a processing node that broadcasts the data of the blockchain to the network again after receiving the blockchain data broadcast by another node and completing local synchronous storage.
It should be noted that the data of the broadcasted blockchain may be all data up to the currently generated blockchain, or may be data of a portion of the currently newly generated blockchain.
The broadcast data received by other processing nodes comprises the service record or the check code of the service record and the file data associated with the service record, and the check code is used for verifying the correctness of the file data.
And storing the file data corresponding to the business records in a file repository.
And S620, updating data of the locally stored block chain based on the broadcast data.
After each processing node in the blockchain network receives the broadcast data of other processing nodes, the broadcast data may be compared with the locally stored data of the blockchain. If the data of the locally stored block chain contains the broadcast data, abandoning the broadcast data; if the data of the local storage block chain does not contain the broadcast data, firstly carrying out correctness verification on the broadcast data, and if the verification is successful, updating the broadcast data into the local storage block chain.
Specifically, step S620 may be refined into the method steps shown in fig. 7 and/or refined into the method steps shown in fig. 8, and details of the corresponding steps are not repeated here.
Further, as a supplementary solution, the method steps shown in fig. 9 may also be executed synchronously to achieve the acquisition of the target file data from the file repository.
EXAMPLE six
As shown in fig. 10, a block chain based data processing apparatus structure diagram one according to an embodiment of the present invention, the block chain based data processing apparatus may be disposed in each processing node shown in fig. 2, and is configured to perform the method steps shown in fig. 4, where the method steps include:
the data acquisition module 101 is configured to acquire file data that needs to be stored based on a block chain and corresponding service records and check codes, where the check codes are used to verify correctness of the file data;
the file storage module 102 is used for storing file data into a file repository;
the data storage module 103 is used for storing the service record and the check code into the block chain in an associated manner so as to store the document data;
and the data broadcasting module 104 is configured to broadcast the data in the block chain synchronously.
Further, as shown in fig. 11, on the basis of the apparatus shown in fig. 10, the data obtaining module 101 may specifically include:
a data receiving unit 111, configured to receive file data uploaded by a client and a corresponding service record;
and the data calculation unit 112 is configured to calculate the file data through an irreversible algorithm to obtain the check code.
Further, the data storage module 103 may be further configured to store a file storage address of the file data in the block chain in association with the service record and the check code.
The device structure shown in fig. 11 may be used to perform the method steps shown in fig. 5.
Further, as shown in fig. 12, on the basis of the above-mentioned device, the device may further include:
a data receiving module 121, configured to receive broadcast data of a block chain;
and a data updating module 122, configured to perform data updating on the locally stored blockchain based on the broadcast data.
Further, as shown in fig. 13, the data updating module 122 may specifically include:
a first searching unit 131, configured to search, if data of a block chain to be updated includes a service record related to file data, corresponding file data in a file repository;
a first verification unit 132, configured to verify correctness of the found file data by using a check code associated with the service record;
a first updating unit 133, configured to update the received broadcast data of the blockchain into the local blockchain if the verification is successful.
Further or alternatively, as shown in fig. 14, the data updating module 122 may specifically include:
the second searching unit 141, if the data of the block chain to be updated includes a file storage address, searches the corresponding file data in the file repository according to the file storage address;
the second verification unit 142, which verifies the correctness of the found file data by using the check code associated with the file storage address;
the second updating unit 143, if the verification is successful, updates the broadcast data of the received blockchain into the local blockchain.
The device structures shown in fig. 12, 13 and 14 may be used to correspondingly perform the method steps shown in fig. 6, 7 and 8.
Further, as shown in fig. 15, on the basis of the above-mentioned device, the device may further include:
the file checking module 151 is configured to obtain file data in a file repository, and perform checking based on a check code corresponding to the file data stored in a local block chain;
a document processing module 152 for accepting the document data to implement a processing operation based on the document data if the verification is successful; otherwise, the file data is rejected.
The device structure shown in fig. 15 may be used to perform the method steps shown in fig. 9.
When the block chain technology is used for storing the document data, the block chain-based data processing device can store the service record corresponding to the document data needing to be stored and the check code into the block chain in an associated manner, wherein the check code is used for verifying the correctness of the document data; and storing the file data into a file repository; and synchronously broadcasting the service record and the check code to finish the storage of the file data. When the file data needs to be used, the target file data is verified by using the check code stored in the block chain, and the target file data can be used after the verification is successful. The scheme can avoid the increase of the storage cost of the block chain caused by directly storing the file data in the block chain, and reduce the waste of network transmission resources when the data of the block chain is broadcasted.
Further, file data uploaded by a client and a corresponding service record are received; calculating the file data through an irreversible algorithm to obtain a check code, thereby showing a specific mode for acquiring the service record and the check code; meanwhile, the file storage addresses of the file data are stored in the block chain in a correlated mode, so that the target file data can be conveniently and quickly searched from the file storage library.
Furthermore, two methods for updating the received broadcast data of the block chain into the local block chain are shown, which are respectively to search the file data according to the service record in the broadcast data, and then to update the local block chain data after the file data is successfully verified; and searching file data according to the file storage address in the broadcast data, and updating the local block chain data after successfully verifying the file data. Both methods can save the storage cost of the file data stored locally in the processing node. And can also reduce the waste of network transmission resources by the broadcast data of the block chain.
Further, a process of each processing node acquiring file data from the file repository to implement a processing operation based on the file data is specifically described. When the file data needs to be acquired for service processing, the file data can be acquired from the file repository, and whether the file data is used or not is determined after the verification is performed by using the verification code of the file data in the block chain. According to the scheme, the certificate storage data (data in the block chain) and the file data are stored in a separated mode, classification management can be well achieved, and meanwhile the maintenance difficulty of the block chain data is reduced.
EXAMPLE seven
An embodiment of the present invention further provides a block chain-based data processing apparatus structure diagram for executing the method steps shown in the fifth embodiment, where the structure diagram includes the apparatus structure shown in fig. 12, that is, the apparatus structure includes:
a data receiving module 121, configured to receive broadcast data of a block chain, where the broadcast data includes a service record or a check code of a file data associated with the service record, and the check code is used to verify correctness of the file data;
a data update module 122, configured to perform data update on the locally stored blockchain based on the broadcast data;
and storing the file data corresponding to the business records in a file repository.
Further, the data update module 122 may specifically include a refinement unit as shown in fig. 13 or fig. 14.
Further, the apparatus shown in this embodiment may also include a module structure as shown in fig. 15.
In addition, an embodiment of the present invention further provides a data processing system based on a block chain, including: the system comprises a plurality of processing nodes arranged in a block chain network, a plurality of clients and a file repository, wherein the clients and the file repository are in interactive connection with the processing nodes and are used for generating file data and corresponding business records; wherein the content of the first and second substances,
the processing node is configured to:
acquiring file data needing to be stored based on a block chain and corresponding service records and check codes through a client, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the business record and the check code into a block chain in an associated manner so as to store the file data;
and synchronously broadcasting the data in the block chain.
Example eight
The sixth embodiment describes the overall architecture of the data processing apparatus based on the blockchain, and the functions of the apparatus can be implemented by an electronic device, as shown in fig. 16, which is a schematic structural diagram of the electronic device according to the embodiment of the present invention, and specifically includes: a memory 161 and a processor 162.
The memory 161 stores programs.
In addition to the above-described programs, the memory 161 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 161 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 162, coupled to the memory 161, for executing programs in the memory 161 to:
acquiring file data needing to be stored and certified based on a block chain and corresponding service records and check codes, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the business record and the check code into the block chain in an associated manner so as to store the file data;
and synchronously broadcasting the data in the block chain.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described again here.
Further, as shown in fig. 16, the electronic device may further include: communication components 163, power components 164, audio components 165, display 166, and other components. Only some of the components are schematically shown in fig. 16, and it is not meant that the electronic device includes only the components shown in fig. 16.
The communication component 163 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 163 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 163 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
And a power supply component 164 that provides power to the various components of the electronic device. The power components 164 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for an electronic device.
Audio component 165 is configured to output and/or input audio signals. For example, audio component 165 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 161 or transmitted via the communication component 163. In some embodiments, audio component 165 further comprises a speaker for outputting audio signals.
The display 166 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Example nine
The seventh embodiment describes the overall architecture of the data processing apparatus based on the block chain, and the functions of the apparatus can be implemented by an electronic device, as shown in fig. 17, which is a schematic structural diagram of the electronic device according to the embodiment of the present invention, and specifically includes: a memory 171 and a processor 172.
The memory 171 stores a program.
In addition to the above programs, the memory 171 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 171 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 172, coupled to the memory 171, for executing programs in the memory 171 to:
receiving broadcast data of a block chain, wherein the broadcast data comprises a service record or a check code of the service record and file data related to the service record, and the check code is used for verifying the correctness of the file data;
updating data of a locally stored blockchain based on the broadcast data;
and storing the file data corresponding to the business record in a file repository.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described again here.
Further, as shown in fig. 17, the electronic device may further include: communication components 173, power components 174, audio components 175, display 176, and the like. Only some of the components are schematically shown in fig. 17, and it is not meant that the electronic device includes only the components shown in fig. 17.
The communication component 173 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 173 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 173 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply component 174 provides power to the various components of the electronic device. The power components 174 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
Audio component 175 is configured to output and/or input audio signals. For example, audio component 175 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 171 or transmitted via the communication component 173. In some embodiments, audio component 175 also includes a speaker for outputting audio signals.
The display 176 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (15)

1. A data processing method based on a block chain is characterized by comprising the following steps:
acquiring file data needing to be stored and certified based on a block chain and corresponding service records and check codes, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the service record and the check code into the block chain in an associated manner so as to store the file data;
synchronously broadcasting the data in the block chain, wherein,
the storing the service record and the check code into the blockchain in an associated manner comprises:
and storing the file storage address of the file data, the service record and the check code into the block chain in an associated manner.
2. The method of claim 1, wherein the obtaining file data and corresponding service record and check code that need to be certified based on a block chain comprises:
receiving the file data uploaded by the client and the corresponding business records;
and calculating the file data through an irreversible algorithm to obtain the check code.
3. The method according to any one of claims 1-2, further comprising:
and receiving broadcast data of the block chain, and updating data of the locally stored block chain based on the broadcast data.
4. The method of claim 3, wherein the data updating the locally stored blockchain based on the broadcast data comprises:
if the data of the block chain to be updated contains the business record related to the file data, searching the corresponding file data in the file repository;
verifying the correctness of the searched file data by using the verification code associated with the service record;
and if the verification is successful, updating the received broadcast data of the block chain into a local block chain.
5. The method of claim 3, wherein the data updating the locally stored blockchain based on the broadcast data comprises:
if the data of the block chain to be updated contains a file storage address, searching corresponding file data in the file storage bank according to the file storage address;
verifying the correctness of the found file data by using a verification code associated with the file storage address;
and if the verification is successful, updating the received broadcast data of the block chain into a local block chain.
6. The method of claim 3, further comprising:
acquiring file data in the file repository, and verifying based on a verification code corresponding to the file data stored in the local block chain;
if the verification is successful, accepting the file data to realize processing operation based on the file data; otherwise, rejecting the file data.
7. A data processing method based on a block chain is characterized by comprising the following steps:
receiving broadcast data of a block chain, wherein the broadcast data comprises service records and check codes of file data related to the service records, file storage addresses of the file data are stored in the block chain in a manner of being related to the service records and the check codes, and the check codes are used for verifying the correctness of the file data;
updating data of a locally stored blockchain based on the broadcast data;
and storing the file data corresponding to the business record in a file repository.
8. The method of claim 7, wherein the data updating the locally stored blockchain based on the broadcast data comprises:
if the data of the block chain to be updated contains the business record related to the file data, searching the corresponding file data in the file repository;
verifying the correctness of the searched file data by using the verification code associated with the service record;
and if the verification is successful, updating the received broadcast data of the block chain into a local block chain.
9. The method of claim 7, wherein the data updating the locally stored blockchain based on the broadcast data comprises:
if the data of the block chain to be updated contains a file storage address, searching corresponding file data in the file storage bank according to the file storage address;
verifying the correctness of the found file data by using a verification code associated with the file storage address;
and if the verification is successful, updating the received broadcast data of the block chain into a local block chain.
10. The method of claim 7, further comprising:
acquiring file data in the file repository, and verifying based on a verification code corresponding to the file data stored in the local block chain;
if the verification is successful, accepting the file data to realize processing operation based on the file data; otherwise, rejecting the file data.
11. A blockchain-based data processing apparatus, comprising:
the data acquisition module is used for acquiring file data needing to be stored and certified based on a block chain and corresponding service records and check codes, and the check codes are used for verifying the correctness of the file data;
the file storage module is used for storing the file data into a file storage;
the data storage module is used for storing the business record and the check code into the block chain in an associated manner so as to store the file data;
a data broadcasting module, configured to broadcast data in the block chain synchronously, wherein,
the data storage module can also be used for storing the file storage address of the file data in the block chain in association with the service record and the check code.
12. A blockchain-based data processing apparatus, comprising:
the data receiving module is used for receiving broadcast data of a block chain, wherein the broadcast data comprises service records and check codes of file data related to the service records, file storage addresses of the file data are stored in the block chain in a manner of being related to the service records and the check codes, and the check codes are used for verifying the correctness of the file data;
the data updating module is used for updating data of the locally stored block chain based on the broadcast data;
and storing the file data corresponding to the business record in a file repository.
13. A blockchain-based data processing system, comprising: the system comprises a plurality of processing nodes arranged in a block chain network, a plurality of clients and a file repository, wherein the clients and the file repository are in interactive connection with the processing nodes and are used for generating file data and corresponding business records;
the processing node is configured to:
acquiring file data needing to be stored and certified based on a block chain and corresponding business records and check codes through the client, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the service record and the check code into the block chain in an associated manner so as to store the file data;
synchronously broadcasting the data in the block chain, wherein,
the storing the service record and the check code into the blockchain in an associated manner comprises:
and storing the file storage address of the file data, the service record and the check code in the block chain in an associated manner.
14. An electronic device, comprising:
a memory for storing a program;
a processor, coupled to the memory, for executing the program for:
acquiring file data needing to be stored and certified based on a block chain and corresponding service records and check codes, wherein the check codes are used for verifying the correctness of the file data;
storing the file data in a file repository;
storing the service record and the check code into the block chain in an associated manner so as to store the file data;
synchronously broadcasting the data in the block chain, wherein,
the storing the service record and the check code into the blockchain in an associated manner comprises:
and storing the file storage address of the file data, the service record and the check code into the block chain in an associated manner.
15. An electronic device, comprising:
a memory for storing a program;
a processor, coupled to the memory, for executing the program for:
receiving broadcast data of a block chain, wherein the broadcast data comprises service records and check codes of file data related to the service records, file storage addresses of the file data are stored in the block chain in a manner of being related to the service records and the check codes, and the check codes are used for verifying the correctness of the file data;
updating data of a locally stored blockchain based on the broadcast data;
and storing the file data corresponding to the business record in a file repository.
CN201810550841.8A 2018-05-31 2018-05-31 Data processing method, device and system based on block chain and electronic equipment Active CN110633252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810550841.8A CN110633252B (en) 2018-05-31 2018-05-31 Data processing method, device and system based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810550841.8A CN110633252B (en) 2018-05-31 2018-05-31 Data processing method, device and system based on block chain and electronic equipment

Publications (2)

Publication Number Publication Date
CN110633252A CN110633252A (en) 2019-12-31
CN110633252B true CN110633252B (en) 2022-12-16

Family

ID=68966181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810550841.8A Active CN110633252B (en) 2018-05-31 2018-05-31 Data processing method, device and system based on block chain and electronic equipment

Country Status (1)

Country Link
CN (1) CN110633252B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581666B (en) * 2020-05-14 2024-02-02 上海深至信息科技有限公司 Ultrasonic data management system and method based on blockchain
CN111784462B (en) * 2020-06-30 2024-03-05 京东科技信息技术有限公司 Transaction processing method, client, processing terminal and system based on blockchain
CN112887154B (en) * 2021-02-05 2022-02-18 广西师范大学 Two-dimensional variable code repeat OCDMA (optical code division multiple Access) system based on block chain and data processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107077557A (en) * 2016-12-29 2017-08-18 深圳前海达闼云端智能科技有限公司 The method and device that software application is issued and verified
CN107944868A (en) * 2017-12-07 2018-04-20 杭州趣链科技有限公司 A kind of electronics deposit system and management method based on block chain intelligence contract

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140408A1 (en) * 2015-11-16 2017-05-18 Bank Of America Corporation Transparent self-managing rewards program using blockchain and smart contracts

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107077557A (en) * 2016-12-29 2017-08-18 深圳前海达闼云端智能科技有限公司 The method and device that software application is issued and verified
CN107944868A (en) * 2017-12-07 2018-04-20 杭州趣链科技有限公司 A kind of electronics deposit system and management method based on block chain intelligence contract

Also Published As

Publication number Publication date
CN110633252A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN109522330B (en) Cloud platform data processing method, device, equipment and medium based on block chain
US20230281037A1 (en) Cross-device task relay method, cloud platform, and non-transitory storage medium
CN110633252B (en) Data processing method, device and system based on block chain and electronic equipment
US11240551B2 (en) Music service with motion video
CN105684384A (en) Generating and providing an authorization indication in relation to a media content item
CN112115217A (en) Data processing method and device for high-precision map, electronic equipment and storage medium
US10880601B1 (en) Dynamically determining audience response to presented content using a video feed
CN103974100A (en) Media data playing method and device
US11232129B2 (en) Method for content synchronization and replacement
US9986409B2 (en) Method and system for discovering and connecting device for streaming connection with a computerized communication device
CN112688793B (en) Data packet obtaining method and device and electronic equipment
CN115081412A (en) Table content processing method, device, equipment and storage medium
CN110633389A (en) Processing method, device and system of block chain data and electronic equipment
CN109428919B (en) Webpage processing request processing method and device and electronic equipment
CN111291017A (en) Mirror image storage and extraction method and device of mirror image warehouse
CN114339442A (en) Multimedia channel configuration method and device, electronic equipment and storage medium
CN113076469A (en) Model construction method, data recommendation method and device
CN114356288A (en) Applet integration method, device, electronic equipment and storage medium
KR20110010085A (en) Method and system for providing contents service using fingerprint data

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

Address after: No. 699, Wangshang Road, Binjiang District, Hangzhou, Zhejiang 310056

Applicant after: Alibaba (China) Network Technology Co.,Ltd.

Address before: Box 847, four, Grand Cayman capital, Cayman Islands, UK

Applicant before: ALIBABA GROUP HOLDING Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant