Data management method, device and system based on blockchain

By using the digest data of complete data in blockchain data management and storing complete data on the server, and verifying the digest of complete data through only some verification nodes, the problem of waste of storage and computing resources of blockchain nodes is solved, and efficient data sharing and verification is achieved.

CN114095515BActive Publication Date: 2025-03-04BOE TECHNOLOGY GROUP CO LTD +1

Patent Information

Application Number
CN202010760397.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-31
Publication Date
2025-03-04
Estimated Expiration
2040-07-31

AI Technical Summary

Technical Problem

Existing blockchain-based data management methods have problems of storage capacity limitations and waste of computing resources during storage and verification, especially in large-scale device data sharing scenarios.

Method used

By generating a summary data of the complete data and writing it to the blockchain, while storing the complete data in the server, the digest of the complete data is verified by only partial verification nodes to reduce the storage and computing burden of the blockchain nodes.

Benefits of technology

It effectively reduces the storage capacity requirements and computing resource consumption of blockchain nodes, improves the accuracy and processing speed of data verification, and ensures the integrity and non-modification of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114095515B_ABST
    Figure CN114095515B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a data management method, device and system based on blockchain. A data management method based on blockchain, applied to a verification node, the method comprising: obtaining transaction data, wherein the transaction data comprises N summary data, the N summary data are respectively generated based on N data associated with the transaction data, N is an integer greater than 1; selecting M summary data to be used for verification from the N summary data, M is an integer less than or equal to N and greater than or equal to 1; obtaining M storage data corresponding to the M summary data respectively; calculating the digest of each of the M storage data, and when the M summary data are respectively the same as the digest of each of the M storage data, writing the transaction data into the blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data management technology, and more specifically, to a blockchain-based data management method, device and system. Background Art

[0002] With the development of the Internet of Things, more and more devices are connected to the Internet of Things system. At present, the common Internet of Things system framework is as follows: Figure 1 As shown in the figure, IoT devices with limited capabilities, such as sensors, are connected to the IoT platform through the IoT gateway. Full-function IoT devices can be connected to the IoT platform directly or through the IoT gateway. The IoT platform centrally manages various devices and provides interfaces for upper-layer IoT applications. IoT applications access device data and control devices through the IoT platform.

[0003] Taking smart manufacturing, one of the application areas of the Internet of Things, as an example, a large number of industrial equipment are connected to the industrial Internet platform directly or through the Internet of Things gateway, reporting data in real time and receiving instructions from the platform. The manufacturing industry is a typical heavy asset enterprise that needs to purchase a large number of equipment, which requires a high level of capital for the enterprise.

[0004] With the development of intelligent manufacturing, the development model of enterprises will also change in the future. Manufacturers do not need to purchase a large number of equipment. They can quickly start production by leasing equipment and pay the usage fee according to the use of the equipment. This leasing model can reduce the company's initial equipment investment and quickly start production. On the other hand, it can reduce the company's equipment maintenance costs.

[0005] In this way, a shared equipment platform can be built, which can "share online" the surplus casting capacity or production lines (production equipment) of some enterprises. After the enterprises in need have made their selections, they can realize order production online, thus solving the problems of overcapacity and idle equipment in some casting enterprises, and insufficient capacity and backlog of orders in some enterprises. This is of great significance to promoting manufacturing enterprises (manufacturers) to accelerate resource optimization and industrial upgrading. Summary of the invention

[0006] According to one aspect of the present disclosure, a data management method based on blockchain is provided, which is applied to a verification node, and the method may include: obtaining transaction data, wherein the transaction data includes N summary data, and the N summary data are respectively generated based on N data associated with the transaction data, where N is an integer greater than 1; selecting M summary data to be used for verification from the N summary data, where M is an integer less than or equal to N and greater than or equal to 1; obtaining M storage data corresponding to the M summary data respectively; calculating the digest of each of the M storage data, and writing the transaction data into the blockchain when the M summary data are respectively the same as the digest of each of the M storage data.

[0007] According to another aspect of the present disclosure, a data management method based on blockchain is also provided, which is applied to multiple verification nodes, and the method includes: obtaining transaction data, wherein the transaction data includes N summary data, and the N summary data are respectively generated based on N data associated with the transaction data, and N is an integer greater than 1; selecting M summary data to be used for verification from the N summary data, and M is an integer less than or equal to N and greater than or equal to 1; wherein the summary data verified by the first type of verification nodes among the multiple verification nodes includes summary data generated based on the shortest piece of data among the M data used to generate the M summary data; obtaining M storage data corresponding to the M summary data respectively; calculating the summary of each of the M storage data, and when the M summary data are respectively the same as the summary of each of the M storage data, writing the transaction data into the blockchain.

[0008] According to another aspect of the present disclosure, a blockchain-based data management method is also provided, which is applied to a usage node, and the method may include: obtaining M summary data among N summary data included in transaction data corresponding to a specific device and / or time period, wherein the N summary data are respectively generated based on N data associated with the transaction data, N is an integer greater than 1, and M is an integer less than or equal to N and greater than or equal to 1; obtaining M storage data corresponding to the M summary data respectively; calculating the digest of each of the M storage data; and when the M summary data are respectively the same as the digest of each of the M storage data, determining that the complete data associated with the transaction data has not been tampered with.

[0009] According to another aspect of the present disclosure, a blockchain-based data management method is also provided, which is applied to an intermediate device, and the method may include: obtaining complete data of at least one sensor device; dividing the complete data of the at least one sensor device into P pieces of data, and generating complete summary data based on the complete data of the at least one sensor device and / or generating P pieces of summary data based on the P pieces of data respectively, where P is an integer greater than 1; storing the P pieces of data and / or the complete data in a data server node; and including the P pieces of summary data and / or N pieces of summary data out of the complete summary data in the transaction data and sending them to a verification node of the blockchain, where N is equal to P or P+1; wherein, when M pieces of summary data out of the N pieces of summary data calculated by the intermediate device are the same as the respective summaries of the M pieces of storage data corresponding to the M pieces of summary data calculated by the verification node, the verification node in the blockchain generates a block of the transaction data and writes it into the blockchain, where M is an integer less than N and greater than or equal to 1.

[0010] According to another aspect of the present disclosure, there is also provided a blockchain-based data management device, comprising: a processor, and a memory on which instructions are stored, and when the instructions are executed, the processor executes the method as described above.

[0011] According to another aspect of the present disclosure, a blockchain-based data management system is also provided, including: at least one sensor device, which is configured to generate complete data; a blockchain network, including: a data server node, which is configured to store the complete data and / or P pieces of data divided from the complete data; a storage node, which is configured to store complete summary data generated based on the complete data and / or at least one summary data generated based on at least one of the P pieces of data divided from the complete data; a verification node, which is configured to execute the method performed at the verification node as described above; a using node, which is configured to execute the method performed at the using node as described above; and an intermediate device, which is configured to execute the method performed at the intermediate device as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to explain the principles of the present disclosure, embodiments of the present disclosure will be described in conjunction with the accompanying drawings. It should be understood that the elements shown in the figures may be implemented as various forms of hardware, software, or a combination thereof. Optionally, these elements are implemented in a combination of hardware and software on one or more appropriately programmed general-purpose computer devices.

[0013] Figure 1 An Internet of Things system framework is shown.

[0014] Figure 2 The interaction process between various subjects in intelligent manufacturing applications is shown.

[0015] Figure 3A-3B A blockchain network according to an embodiment of the present disclosure is shown.

[0016] Figure 4A-4B The working process of the blockchain-based data management system according to an embodiment of the present disclosure is shown.

[0017] Figure 5A A flowchart of a blockchain-based data management method applied to a verification node according to an embodiment of the present disclosure is shown.

[0018] Figure 5B A flowchart of another blockchain-based data management method applied to a verification node according to an embodiment of the present disclosure is shown.

[0019] Figure 6 A flowchart of a blockchain-based data management method applied to a node according to an embodiment of the present disclosure is shown.

[0020] Figure 7 A flowchart of a blockchain-based data management method applied to an intermediate device according to an embodiment of the present disclosure is shown.

[0021] Figure 8 A structural block diagram of a blockchain-based data management device applied to a verification node according to an embodiment of the present disclosure is shown.

[0022] Fig. 9 A structural block diagram of a blockchain-based data management device applied to a node according to an embodiment of the present disclosure is shown.

[0023] Fig.10 A structural block diagram of a blockchain-based data management device applied to an intermediate device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described more fully below with reference to the accompanying drawings, in which embodiments of the present disclosure are shown. However, the present disclosure may be implemented in many different forms, and the present disclosure should not be construed as being limited to the embodiments set forth herein. Throughout the text, similar reference numerals are used to represent similar elements.

[0025] The terms used herein are used only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an", "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that when used herein, the term "comprising" specifies the presence of the claimed features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof.

[0026] Unless otherwise defined, the terms used herein (including technical terms and scientific terms) have the same meanings as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. The terms used herein should be interpreted as having a meaning consistent with their meanings in the context of this specification and in the relevant field, and should not be interpreted in an idealized or overly formal sense, unless specifically defined as such herein. The present disclosure is described below with reference to a block diagram and / or a flow chart showing a method, device (system) and / or computer program product according to an embodiment of the present disclosure. It should be understood that a block and a combination of blocks of a block diagram and / or a flow chart diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor and / or other programmable data processing device of a general-purpose computing device, a special-purpose computing device, so that instructions executed via a computing device processor and / or other programmable data processing device create a method for implementing the function / action specified in a block diagram and / or a flow chart block.

[0027] Accordingly, the present disclosure may also be implemented in hardware and / or software (including firmware, resident software, microcode, etc.). Further, the present disclosure may take the form of a computer program product on a computer-usable or computer-readable storage medium, having a computer-usable or computer-readable program code implemented in the medium, for use by or in conjunction with an instruction execution system. In the context of the present disclosure, a computer-usable or computer-readable medium may be any medium that may contain, store, communicate, transmit, or convey a program for use by or in conjunction with an instruction execution system, device, or apparatus.

[0028] As mentioned above, there is a cooperative relationship between the parties involved in device sharing (such as device providers and manufacturers). Device providers charge manufacturers for using their devices based on factors such as device usage rate, usage volume, and usage time. In order to accurately calculate device usage, device providers are responsible for collecting data related to device usage and charging manufacturers after calculating device usage. The specific interaction process is as follows: Figure 2As shown, the device provider server obtains the data uploaded by the device and calculates the device usage, and the manufacturer server obtains the device usage and pays the data through platform interaction.

[0029] Taking smart manufacturing as an example, the non-business data of the equipment (including usage data) is collected and calculated by the equipment provider server. The manufacturer server pays the fee based on the calculation result of the equipment provider server. If the equipment provider server modifies the data, it will lead to a difference in fees, and the manufacturer server is unaware. In addition, other supply chain companies of the manufacturer also have the need to obtain equipment usage data so that they can prepare stocks in time according to the usage of the equipment. In order to enhance the mutual trust between equipment providers and manufacturers, as well as other supply chain companies, a new mechanism needs to be provided to ensure that the equipment data is accurate and cannot be modified, so as to establish mutual trust between partners.

[0030] As an emerging distributed data storage technology, blockchain technology has the following advantages:

[0031] First, data credibility. Different from traditional distributed databases, blockchain introduces the concept of "everyone keeps accounts". Each participant joins the blockchain through, for example, client applications, and has the right to keep accounts. Everyone can save the latest account book and all historical records. This highly redundant data storage method can improve the transparency of information between subjects who do not trust each other, realize that the account book data cannot be tampered with and leave traces throughout the process, and then promote multi-party information sharing and collaborative operations. Second, the parity of participating subjects. The unified distributed ledger technology of blockchain naturally solves the problem of "business sovereignty", effectively realizes the identity parity, power parity, responsibility parity, and interest parity of each participating subject, and realizes the real-time synchronization of data between all participating subjects, making cooperation more convenient and faster, and improving the enthusiasm of partners.

[0032] That is, blockchain can make business data trustworthy and participants equal, promote information sharing and collaborative operations among multiple parties, and achieve real-time synchronization of data updates among various participants, and ensure that data is accurate and cannot be modified, thereby establishing mutual trust among partners. The participants mentioned in this article can be network nodes in the blockchain network, such as servers, computers, phones, etc. connected through the network. For blockchains of different natures, the way to become a node will also be different.

[0033] However, in the current data management method based on blockchain, in terms of storage, each storage node on the blockchain needs to store complete historical transaction information, but the storage capacity of the node is limited. In addition, when any participant in the blockchain wants to write new data into the blockchain, it involves a verification process. How to improve the processing speed and save computing resources is also an urgent problem to be solved.

[0034] Based on this, the embodiments of the present disclosure provide a blockchain-based data management method, device and system for solving the above technical problems. Data management includes various operations on data, including storing data and obtaining data.

[0035] It should be noted that in some embodiments of the present disclosure, the application of blockchain-based data management technology to the smart manufacturing industry is described as an example. However, those skilled in the art will understand that the blockchain-based data management technology provided by the embodiments of the present disclosure can be applied to any other data sharing scenarios that require increased mutual trust, and the present disclosure does not limit this.

[0036] First, the blockchain network involved in the embodiments of the present disclosure is introduced. Figure 3A-3B A blockchain network according to an embodiment of the present disclosure is shown.

[0037] like Figure 3A As shown in the figure, the blockchain network is a decentralized network, which can also be regarded as a P2P network (Peer-to-Peer). There is no centralized service and hierarchical structure in the blockchain network. Each node based on the consensus mechanism is a peer node, and each node provides network services together. In the blockchain network, nodes can be divided into different types according to the different functions provided by each node. For example, in the EOS public chain, 21 nodes are used as verification nodes, and the remaining nodes are ordinary nodes. In some other blockchains, each node can be used as a verification node. Verification nodes can be selected through competitive voting at regular intervals, and have the authority to verify transactions and add blocks to the blockchain. They can also be regarded as at least part of super nodes and full nodes. In addition, ordinary nodes in the blockchain network do not store ledger data or do not store a complete copy of the ledger, but only provide general computing power support. Super nodes and full nodes are nodes with complete ledger data. They need to occupy memory to synchronize all blockchain data, can independently verify all transactions on the blockchain and update data in real time, and are mainly responsible for the broadcast and verification of blockchain transactions.

[0038] In addition, the blockchain may also include storage nodes that store any data written to the blockchain (for example, the storage node may also be selected from at least a portion of the super nodes that can store complete ledger data), and user nodes that obtain data from the blockchain (the user nodes are ordinary nodes).

[0039] As a more specific application, the following can be used in the intelligent manufacturing industry: Figure 3B The data management system shown is used to manage data.

[0040] As mentioned above, in the smart manufacturing industry, the non-business data of the equipment (including usage data) is collected and calculated by the equipment provider server. The manufacturer server pays fees based on the calculation results of the equipment provider server. If the equipment provider server modifies the data, it will lead to differences in fees, and the manufacturer server is unaware of this. In addition, other supply chain companies of the manufacturer also have the need to obtain equipment usage data so that they can prepare goods in time according to the equipment usage. Therefore, if Figure 3B As shown, the intermediate devices, equipment provider servers, manufacturer servers, and supply chain enterprise servers (not shown) involved in the intelligent manufacturing industry join the blockchain as blockchain nodes, more specifically, as ordinary nodes, and the intermediate devices are also connected to the equipment provider server for communication. The intermediate device can be an industrial gateway between the blockchain network and the device, and a more general term can be an edge device (EDGE), the number of which can be one or more, distributed near each device, with local computing, storage and networking functions, and can quickly process nearby data without returning the data to the data center and cloud service provider. In addition, if the computing processing power of multiple devices is sufficient, the multiple devices can be directly connected to the blockchain without passing through the intermediate device, as a node of the blockchain, thereby omitting the intermediate device. The present disclosure is illustrated by using the case of an intermediate device as an example, but the present disclosure is not limited thereto. In the application scenario of the intelligent manufacturing industry, the equipment provider server can be referred to as a data server node in the blockchain network, and the manufacturer server and the supply chain enterprise server (not shown) can be regarded as using nodes.

[0041] exist Figure 3BIn the embodiment, multiple devices (such as sensor devices) are connected to an intermediate device to report complete device operation data to the intermediate device. The intermediate device communication connection to the device provider server still adopts a centralized architecture mode, that is, multiple devices report complete device operation data to the intermediate devices near them, and (one or more) intermediate devices further report complete device operation data to the device provider server, and the complete device operation data is transmitted between the device and the intermediate device and between the intermediate device and the device provider server. The device provider server, the manufacturer server and the supply chain enterprise server (not shown) transmit information to each other through the blockchain in a decentralized architecture. The device provider server can calculate the usage of the device based on the complete device operation data, and the device provider can charge the manufacturer based on this. The complete device operation data is data associated with the usage of the device.

[0042] In addition, if the processing power of multiple devices is sufficient, the multiple devices can be directly connected to the blockchain without going through an intermediate device.

[0043] As mentioned above, data needs to be shared between equipment providers, manufacturers, and other supply chain companies based on blockchain. However, since the amount of complete equipment operation data is very large, if all of it is to be written into the blockchain for sharing, it will place high requirements on the storage capacity at the nodes of the blockchain network.

[0044] In addition, there are multiple verification nodes in the blockchain, and for some types of blockchains, the number of verification nodes is relatively large. If all verification nodes are used to verify the data to be written and / or to verify the complete data, the overall processing speed of the blockchain will be reduced and the amount of calculation will be increased.

[0045] Based on this, the embodiments of the present disclosure provide a data management method, device and system based on blockchain. In the embodiments of the present disclosure, summary data generated based on complete data is written into the blockchain, and the complete data is stored in the server, or further, only the complete summary data of the complete data or the summary data generated by the partial segmented data segmented from the complete data is verified by at least a part of the verification nodes. Based on this, on the one hand, the storage capacity requirements for the servers of the relevant nodes on the blockchain are reduced, and the unmodifiable characteristics of the blockchain are used to save the complete data and ensure that the complete data has not been modified. On the other hand, the accuracy of the verification is improved and the amount of calculation and computing resources are reduced at the same time, and the processing speed requirements for the servers of the relevant nodes of the blockchain are reduced.

[0046] The following combination Figure 4A-4B To describe the data management system and working process based on blockchain according to the embodiment of the present disclosure. Figure 4AAs shown, the data management system includes: at least one sensor device (hereinafter referred to as the device), which is configured to generate complete data; a blockchain network, including: a data server node, which is configured to store data; a storage node, which is configured to store summary data on the chain; a verification node; a usage node; and an intermediate device (as mentioned above, if the computing processing power of the device is sufficient, the device can be directly connected to the blockchain and the intermediate device can be omitted). In addition, the blockchain network can also include any number of other types of nodes. In addition, in some other embodiments, the data server (such as a device provider server) may not be included as a node in the blockchain network, and each node in the blockchain network can communicate with the data server to obtain the data stored therein.

[0047] Taking the specific application scenario of intelligent manufacturing as an example, the data server node can be the equipment provider server node, and the user node can be the manufacturer data server node and the supply chain enterprise data server node, all of which are ordinary nodes. The verification node and storage node can be selected from a part of the super nodes in the blockchain network, and they can overlap (only this part of the node chain stores the complete ledger data, including all transaction data that has been verified and written into the blockchain).

[0048] First, each node joins the blockchain network (not shown). For example, the intermediate device, device provider server, manufacturer server, and supply chain enterprise server described above join the blockchain network as ordinary nodes, wherein the blockchain network also includes storage nodes and verification nodes (storage nodes and verification nodes are selected from at least a part of super nodes). The device sends a registration request to the intermediate device so that the device can upload data to the intermediate device, and the intermediate device sends a registration request to the data server node so that the intermediate device can upload data to the data server node. After the device generates data, the device sends a first information reporting request to the intermediate device, and the first information reporting request may include complete device operation data (hereinafter referred to as complete data), and may also include device identification (ID) and / or time information. Optionally, the device identification (ID) and / or time information are associated with the generated complete data to indicate the identification and time of the device that generated the complete data.

[0049] In some embodiments, the device sends a first information reporting request to the intermediate device at a predetermined interval. The data reported by a single device can be regarded as a complete data. In this case, the first information reporting request includes a device identification. Alternatively, multiple data reported by a single device in each time period can be regarded as a time-combined complete data. In this case, the first information reporting request includes a device identification and optionally includes time information, which depends on the subsequent method of segmenting the complete data. In addition, multiple data reported by multiple devices in each time period can also be regarded as a device combination complete data (for example, the initial complete data of all devices in the time period from 2 pm to 5 pm and the time period from 8 pm to 11 pm can be combined to obtain two device combination complete data). In this case, the first information reporting request includes time information and optionally includes a device identification of each device of the multiple devices, which depends on the subsequent method of segmenting the complete data. In addition to the first information reporting request, the second information reporting request and the transaction creation request described in detail below selectively carry device identification and / or time information based on similar limitations.

[0050] After the intermediate device extracts the complete data and the device identification and / or time information from the first information reporting request, it performs the following operations: divide the complete data into P pieces of data (i.e., P pieces of divided data), and generate complete summary data based on the complete data and / or generate P pieces of summary data based on the P pieces of data respectively, where P is an integer greater than 1; store the complete data and / or the P pieces of data in a data server node, wherein, in the case where the P pieces of data need to be stored in the data server node, the P pieces of data may be stored in the form of one piece of complete data, or may be stored in a separate form as multiple pieces of storage data (2 to P pieces of storage data), and when the P pieces of data are stored in the form of one complete piece of data, the P pieces of data may be stored in a separate form as multiple pieces of storage data (2 to P pieces of storage data). When the intermediate device stores the P pieces of data in the form of complete data or in the form of storage data of a quantity less than P, when sending P pieces of data to the data server node, the intermediate device also sends segmentation information of the P pieces of data to the data server node, so that the storage data can be segmented in the same way at the data server node to obtain the same P pieces of data (the complete data and / or the P pieces of data may be tampered with at the data server node, but the complete summary data and / or the P pieces of summary data are generated based on the untampered data), and then includes the P pieces of summary data and / or N pieces of summary data in the complete summary data of the complete data in the transaction data and sends them to the verification node of the blockchain, where N is equal to P or P+1.

[0051] More specifically, the operation of storing complete data and / or P pieces of data in a data server node includes: sending a second information reporting request to the data server node; the second information reporting request includes the complete data, P pieces of data, and a device identifier corresponding to a device that generates the complete data and / or time information corresponding to the complete data; receiving an information reporting response from the data server node, the information reporting response including at least the address of the data server node and the storage location of each of the P pieces of data in the data server node. In addition, the operation of including N summary data in the transaction data and sending them to the verification node of the blockchain includes: sending a transaction creation request to the verification node in the blockchain network (for example, packaging the transaction-related data into a block and broadcasting it), the transaction creation request carrying transaction data, the transaction data including the complete summary data of the complete data and / or N summary data out of P summary data (that is, N summary data are included in the transaction data, and N is equal to P or P+1, and the complete data based on which the N summary data are generated and / or at least a part of the P data are also expressed as N data), and the transaction data may also include location information of the N data (location information of the data server node storing the N data and location information of each of the N data in the data server node), a device identifier corresponding to the N data, and / or time information corresponding to the N data.

[0052] In some embodiments, the intermediate device may split the complete data in a sequentially preset ratio. For example, the complete data may be split into five split data in the order of 20%, 20%, 20%, 20%, and 20%, or in the order of 40%, 25%, 20%, 10%, and 5%, and the relevant information of the sequentially preset ratio may be carried in the transaction creation request together with the transaction data and notified (e.g., by broadcasting) to each node in the blockchain.

[0053] In some embodiments, the intermediate device can divide a time-combined complete data of each device (as described above) according to the above-mentioned preset ratio in sequence (i.e., by data volume), or it can also be divided by time based on time information. In addition, the complete data of device operation can be a complete data of multiple devices in each time period, so it can also be divided according to the above-mentioned preset ratio in sequence (i.e., by data volume), divided by device based on device identification, or divided by time period based on time information.

[0054] In some embodiments, the method of generating a summary of data may include a hash operation, that is, it may include performing a hash operation on the data to obtain a hash value, and using the hash value as the summary of the data, so that as long as the data has a slight change, its corresponding hash value will be completely different, and therefore the summary of the data will be completely different. Obviously, other methods of generating a summary of data are also feasible, as long as the summary data can change significantly with slight changes in the data. In addition, in order to enhance security, an encryption process can also be introduced in the process of generating a summary of data, which can use existing encryption technology, so it will not be described in detail here.

[0055] Table 1 gives a schematic description of the data processing process related to the intermediate device when a complete data is divided into two pieces of data, mainly including dividing the received complete data into first data and second data, generating complete summary data of the complete data and first summary data corresponding to the first data, second summary data corresponding to the second data, and sending transaction data including the complete summary data of the complete data, the first summary data, and at least a part of the second summary data to the blockchain network (as shown in Cases 1 to 4 below). In addition, the complete data and / or the divided first data and second data are also sent to the data server node, and as described above, the complete data, the first data, and the second data may be tampered with at the data server node, so that they may no longer be the same as the complete data, the first data, and the second data that were previously used as the basis for calculation at the intermediate device.

[0056]

[0057] After extracting the transaction data from the transaction creation request, the verification node selects M summary data to be used for verification from the N summary data included in the transaction data, where M is an integer less than N and greater than or equal to 1 (for example, based on the sequential preset ratio segmentation information received from the intermediate device, for example, 2 summary data corresponding to the 4th and 5th segmented data are selected), wherein, as described above, the intermediate device generates multiple summary data based on the complete data and the P data segmented from the complete data, and includes N summary data among the multiple summary data in the transaction data and is received by the verification node, and the N data based on which the N summary data are generated are expressed as being associated with the transaction data. The verification node then obtains M storage data corresponding to the M summary data respectively; calculates the digests of the M storage data respectively, and writes the transaction data into the blockchain when each of the M summary data is respectively the same as the digests of the M storage data respectively. More specifically, based on the location information of the M pieces of data used to generate the M pieces of summary data, a data acquisition request is sent to a data server node, the data acquisition request includes the location information, and the M pieces of storage data corresponding to the M pieces of summary data are acquired from the data server node that stores the M pieces of storage data (the location of the M pieces of storage data is the same as the location of the M pieces of data, and if the data has not been tampered with, the M pieces of storage data are the same as the M pieces of data, so in this article, M / P pieces of storage data can sometimes be interchangeable with M / P pieces of data), and the summary of the M pieces of storage data is calculated in the same manner as the intermediate device, and when each of the M pieces of summary data is respectively the same as the summary of the M pieces of storage data, it is determined that the verification is passed, and the transaction data is written into the blockchain.

[0058] In some embodiments, the N pieces of data are 1 complete piece of data and N-1 pieces of segmented data of the complete data, and the M pieces of data based on which M pieces of summary data are generated are 1 complete piece of data and M-1 pieces of segmented data of the complete data, or the M pieces of data are M pieces of segmented data of the complete data; or the N pieces of data are N pieces of segmented data of 1 complete piece of data, and the M pieces of data are M pieces of segmented data of the complete data.

[0059] When the M pieces of data are M pieces of segmented data including complete data or M-1 pieces of segmented data, the verification node only needs to obtain the segmented data and does not need to obtain the complete data. The data volume obtained by the verification node is smaller, thereby reducing the network bandwidth between the verification node and the data server, and also reducing the workload and computing power of the verification node and the data server.

[0060] In addition, as described above, the lengths of the P pieces of data divided from the complete data by the intermediate device may not be equal. Therefore, in order to further reduce the amount of calculation and save computing resources, the shortest piece of summary data among the N pieces of summary data may be used as the M pieces of summary data for verification. The verification process is similar to the process of using the M pieces of summary data for verification described above, and will not be described in detail here.

[0061] There are usually multiple verification nodes. When most of the verification nodes pass the verification, the transaction content is received. For example, the EOS blockchain system stipulates that the transaction content will be written into the blockchain when 2 / 3 of the verification nodes pass the verification. For the Bitcoin blockchain network, since all full-function nodes can participate in the verification, but due to the wide distribution of full-function nodes, it is impossible to achieve the verification of all network verification nodes in a short time, so as long as a certain proportion of verification nodes pass the verification, it will be sufficient. The proportion of verification nodes that pass the verification is set by the blockchain system, and the administrator can set this proportion to adjust the speed of verification.

[0062] Therefore, in another embodiment, verification may be performed in the following manner.

[0063] First, multiple verification nodes obtain transaction data, wherein the transaction data includes N summary data, and the N summary data are generated based on N data associated with the transaction data, respectively, where N is an integer greater than 1. This process is similar to the process described previously and is not described in detail here. Optionally, the multiple verification nodes may include a first type of verification node and a second type of verification node.

[0064] Then, the plurality of verification nodes select M pieces of summary data to be used for verification from the N pieces of summary data, where M is an integer less than or equal to N and greater than or equal to 1, wherein the summary data verified by the first type of verification nodes among the plurality of verification nodes includes summary data generated based on the shortest piece of data among the M pieces of summary data used to generate the M pieces of summary data. For example, two pieces of summary data are selected from the N pieces of summary data for verification, wherein the two pieces of summary data are generated based on two pieces of data, and the first type of verification node verifies the summary data generated based on the shorter piece of data among the two pieces of summary data.

[0065] Next, multiple verification nodes obtain M pieces of storage data corresponding to the M pieces of summary data respectively, and then calculate the digests of the M pieces of storage data respectively, and write the transaction data into the blockchain when the M pieces of summary data are respectively the same as the digests of the M pieces of storage data respectively.

[0066] The above method of obtaining the stored data and calculating the summary of the stored data is similar to that described previously and will not be described in detail here.

[0067] In addition, the M pieces of data may include 1 complete piece of data and M-1 pieces of segmented data of the complete data, so the second type of verification node among the multiple nodes verifies the summary data generated based on the complete data. Alternatively, the M pieces of data include M pieces of segmented data of 1 complete piece of data, and the second type of verification node among the multiple nodes verifies the summary data not verified by the first type of verification node.

[0068] Optionally, the number of the first type of verification nodes is greater than the number of the second type of verification nodes.

[0069] That is to say, only a part of the verification nodes can be used to verify the summary data generated by the segmented data of the complete data, and another part of the verification nodes can be used to verify the complete summary data, and the number of the former is larger. For example, 80% of the verification nodes are used to verify the summary data generated by the segmented data, and 20% of the verification nodes are used to verify the complete summary data. For example, 80% of the verification nodes are used to verify the summary data generated by the shortest segmented data, and 20% of the verification nodes are used to verify the remaining M-1 summary data.

[0070] In this way, it is not necessary for all verification nodes to verify the complete data, but it is still possible to ensure that all M summary data that need to be verified are verified, thereby improving the accuracy of verification, while also reducing the amount of calculation, saving computing resources and increasing processing speed.

[0071] When a user node wishes to obtain transaction data from the blockchain and determine whether the complete data of the device has been tampered with, the following operations can be performed at the user node.

[0072] When the storage node is a super node that is part of the blockchain network, and the complete ledger data, that is, all transaction data, is stored at the super node, and the user node does not store the complete ledger data and thus does not have the transaction data it expects to obtain or does not store any ledger data, the user node needs to obtain the transaction data from the storage node (super node) to further check whether the complete data of the device has been tampered with. Figure 4B The corresponding schematic flow chart is shown in FIG.

[0073] The process of data acquisition may include: acquiring M pieces of summary data from N pieces of summary data included in transaction data corresponding to a specific device and / or time period, wherein the N pieces of summary data are respectively generated based on N pieces of data associated with the transaction data, N is an integer greater than 1, and M is an integer less than or equal to N and greater than or equal to 1; acquiring M pieces of storage data respectively corresponding to the M pieces of summary data; calculating the digest of each of the M pieces of storage data; and when the M pieces of summary data are respectively the same as the digest of each of the M pieces of storage data, determining that the complete data associated with the transaction data has not been tampered with, and optionally acquiring the transaction data from a storage node in the blockchain, and acquiring the N pieces of data associated with the transaction data from a data server node storing the N pieces of data associated with the transaction data. The specific device and / or time period is a device and / or time period for which data is desired to be acquired.

[0074] More specifically, if Figure 4B As shown in , a summary data acquisition request is sent by a using node to a storage node (e.g., a super node) in the blockchain, the summary data acquisition request at least including a device identification and / or time information corresponding to the specific device and / or time period, and a summary data acquisition response is received from the storage node, the summary data acquisition response at least including M summary data out of the N summary data. As mentioned above, each transaction data stored in the storage node may include, in addition to N summary data, location information of N data that generates the N summary data (location information of a data server node storing the N data and location information of each of the N data in the data server node), a device identification corresponding to the N data, and / or time information corresponding to the N data.

[0075] In addition, the summary data acquisition response also includes the address of the data server node storing the N pieces of data and the storage location of the M pieces of stored data in the data server node, so the node uses the above information included in the data acquisition response to acquire the M pieces of stored data from the data server node. Then, the digest of each of the M pieces of stored data is calculated, and when the M pieces of summary data are respectively the same as the digests of each of the M pieces of stored data, it can be determined that the complete data associated with the transaction data has not been tampered with.

[0076] Similar to the previous one, the N pieces of data are 1 complete piece of data and N-1 pieces of segmented data of the complete data, and the M pieces of data based on which the M pieces of summary data are generated are 1 complete piece of data and M-1 pieces of segmented data of the complete data, or the M pieces of data are M pieces of segmented data of the complete data; or the N pieces of data are N pieces of segmented data of 1 complete piece of data, and the M pieces of data are M pieces of segmented data of the complete data.

[0077] When the M pieces of data are M pieces of segmented data or M-1 pieces of segmented data including the complete data, the node only needs to obtain the segmented data and does not need to obtain the complete data. The volume of data obtained by the node is smaller, thereby reducing the network bandwidth between the node and the data server, and also reducing the workload and computing power of the node and the data server.

[0078] In the above-mentioned blockchain-based data management system, by writing summary data generated based on complete data into the blockchain, and storing the complete data (and its segmented P pieces of data) off-chain in the server, or further, only verifying the complete summary data of the complete data or the summary of a part of the complete data through at least a part of the verification nodes, on the one hand, the storage capacity requirements for related nodes on the blockchain are reduced, and the unmodifiable characteristics of the blockchain are used to save the complete data and ensure that the complete data has not been modified. On the other hand, the accuracy of verification is increased, while the amount of calculation and computing resources are reduced, and the processing speed requirements for related nodes on the blockchain are reduced.

[0079] According to another aspect of the present disclosure, a blockchain-based data management method is provided, which is applied to a verification node. Figure 5A-5B The data management method 500A and 500B based on blockchain according to the embodiment of the present disclosure are shown. The method 500A and 500B are used to verify the data to be written into the blockchain, which can be executed at least part of the verification nodes and include the following steps.

[0080] In method 500A, at step 510, transaction data is obtained, wherein the transaction data includes N pieces of summary data, and the N pieces of summary data are respectively generated based on N pieces of data associated with the transaction data, where N is an integer greater than 1.

[0081] Optionally, the N pieces of data are 1 complete piece of data and N-1 pieces of segmented data of the complete data, or the N pieces of data are N pieces of segmented data of the complete data.

[0082] Optionally, in the specific application of the above-mentioned intelligent manufacturing, the N pieces of data can be obtained by segmenting the data uploaded by the device as complete data.

[0083] In step 520 , M pieces of summary data to be used for verification are selected from the N pieces of summary data, where M is an integer less than or equal to N and greater than or equal to 1.

[0084] In step 530, M pieces of stored data respectively corresponding to the M pieces of summary data are obtained.

[0085] Optionally, the M pieces of data are 1 piece of complete data and M-1 pieces of segmented data of the complete data, or the M pieces of data are M pieces of segmented data of the complete data.

[0086] Optionally, at least two of the N pieces of data have different lengths, and the M pieces of summary data include summary data generated based on the piece of data with the shortest length among the N pieces of data. Or, further, M=1.

[0087] Optionally, the transaction data further includes location information of N pieces of data, wherein the M pieces of data can be acquired respectively according to the location information of the M pieces of stored data.

[0088] Optionally, the transaction data also includes a device identifier corresponding to the N pieces of data, and / or time information corresponding to the N pieces of data, and wherein the location information of the N pieces of data includes: location information of a data server node storing the N pieces of data and location information of each of the N pieces of data in the data server node.

[0089] In step 540, a digest of each of the M pieces of stored data is calculated.

[0090] In step 550, when the digests of the M pieces of summary data are identical to the digests of the M pieces of storage data, the transaction data is written into the blockchain.

[0091] Optionally, when all verification nodes or a portion of verification nodes (e.g., more than half, e.g., 80%) determine that the M summary data are identical to the summary of the M data used for verification among the N data, the transaction data is written into the blockchain.

[0092] In addition, when multiple verification nodes verify the data to be written into the blockchain, the operations adopted are as described in the various steps of method 500B.

[0093] In step 5100, transaction data is obtained, wherein the transaction data includes N pieces of summary data, and the N pieces of summary data are respectively generated based on N pieces of data associated with the transaction data, where N is an integer greater than 1.

[0094] In step 5200, M summary data to be used for verification are selected from N summary data, where M is an integer less than or equal to N and greater than or equal to 1; wherein the summary data verified by the first type of verification nodes among the multiple verification nodes includes summary data generated based on the shortest length of the M summary data among the M data generated to generate the M summary data.

[0095] Optionally, the M pieces of data include 1 complete piece of data and M-1 pieces of segmented data of the complete data, and the second type of verification node among the multiple nodes verifies the summary data generated based on the complete data. Alternatively, the M pieces of data include M pieces of segmented data of 1 complete piece of data, and the second type of verification node among the multiple nodes verifies the summary data not verified by the first type of verification node.

[0096] Optionally, the number of the first type of verification nodes is greater than the number of the second type of verification nodes.

[0097] In step 5300, M pieces of stored data respectively corresponding to the M pieces of summary data are obtained.

[0098] In step 5400, the digests of the M pieces of stored data are calculated.

[0099] In step 5500, when the digests of the M pieces of summary data and the M pieces of stored data are respectively the same, the transaction data is written into the blockchain. In method 500B, the steps of obtaining summary data, obtaining stored data, and calculating summary are similar to those described above, and therefore will not be described in detail here.

[0100] According to another aspect of the present disclosure, a blockchain-based data management method is provided, which is applied in a use node. Figure 6 A data management method 600 based on blockchain according to an embodiment of the present disclosure is shown. The method 600 is used to obtain data from blockchain and includes the following steps.

[0101] In step S610, M summary data among N summary data included in the transaction data corresponding to the specific device and / or time period are obtained, wherein the N summary data are respectively generated based on N data associated with the transaction data, N is an integer greater than 1, and M is an integer less than or equal to N and greater than or equal to 1.

[0102] Optionally, the N pieces of data are 1 complete piece of data and N-1 pieces of segmented data of the complete piece of data, or the N pieces of data are N pieces of segmented data of the complete piece of data. The M pieces of data are 1 complete piece of data and M-1 pieces of segmented data of the complete piece of data, or the M pieces of data are M pieces of segmented data of the complete piece of data.

[0103] Optionally, at least two of the N pieces of data have different lengths, and the M pieces of summary data include summary data generated based on the piece of data with the shortest length among the N pieces of data. Or, further, M=1.

[0104] Optionally, the operation of obtaining M pieces of summary data may include: a user node sends a summary data acquisition request to a storage node in the blockchain, the summary data acquisition request includes at least a device identification and / or time information corresponding to the specific device and / or time period, and receives a data acquisition response from the storage node, the data acquisition response may include M pieces of summary data out of the N pieces of summary data, and may further include an address of the data server node storing the N pieces of data, and a storage location of the M pieces of stored data in the data server node.

[0105] In step 620, M pieces of stored data respectively corresponding to the M pieces of summary data are obtained.

[0106] Optionally, the operation of acquiring the M pieces of stored data may include: acquiring the M pieces of stored data from the data server node based on the address of the data server node and the storage location of the M pieces of stored data in the data server node.

[0107] In step 630, a digest of each of the M pieces of stored data is calculated.

[0108] In step 640 , when the digests of the M pieces of summary data are respectively identical to the digests of the M pieces of storage data, it is determined that the complete data associated with the transaction data has not been tampered with.

[0109] According to another aspect of the present disclosure, a blockchain-based data management method is provided, which is applied in a using node. Figure 7 A data management method 700 based on blockchain according to an embodiment of the present disclosure is shown. The method 700 is used to obtain data from blockchain and includes the following steps.

[0110] In step 710 , complete data of at least one sensor device is acquired.

[0111] Optionally, the data uploaded by at least one sensor device includes, in addition to the complete data, a device identification and / or time information.

[0112] In step 720 , the complete data of the at least one sensor device is divided into P pieces of data, and complete summary data is generated based on the complete data of the at least one sensor device and / or P pieces of summary data are generated based on the P pieces of data, where P is an integer greater than 1.

[0113] Optionally, the complete data uploaded by a single sensor device can be taken as one complete data; multiple data uploaded by a single sensor device in each time period can be combined as one time-combined complete data; or multiple initial complete data uploaded by multiple sensor devices in each time period can be combined as one device-combined complete data.

[0114] Optionally, the operation of splitting the complete data of at least one sensor device into P pieces of data may include: splitting the complete data, time-combined complete data or device-combined complete data in a preset ratio in sequence, or splitting the time-combined complete data by time based on time information; or splitting the device-combined complete data by sensor device based on device identification or by time period based on time information.

[0115] In step 730, the P pieces of data and / or the complete data are stored in a data server node.

[0116] Optionally, in step S730, an information reporting request is sent to the data server node, the information reporting request including at least the complete data and / or the P pieces of data and the device identifier corresponding to the device that generated the P pieces of data and / or the time information corresponding to the P pieces of data, and an information reporting response is received from the data server node, the information reporting response including at least the address of the data server node and the storage location of each of the P pieces of data (i.e., the P pieces of stored data) in the data server node.

[0117] In step 740, N pieces of summary data among the P pieces of summary data and / or the complete summary data of the complete data are included in the transaction data and sent to the verification node of the blockchain, where N is equal to P or P+1. Wherein, when M pieces of summary data among the N pieces of summary data calculated by the intermediate device are the same as the respective summaries of the M pieces of storage data corresponding to the M pieces of summary data calculated by the verification node, the verification node in the blockchain generates a block of the transaction data and writes it into the blockchain, where M is an integer less than N and greater than or equal to 1.

[0118] Optionally, the M pieces of data are the complete data and M-1 pieces of segmented data of the complete data; or, the M pieces of data are M pieces of segmented data of the complete data.

[0119] Optionally, at least two of the P pieces of data have different lengths, and the M pieces of summary data include summary data generated based on the shortest piece of data among the P pieces of data. Optionally, M is equal to 1.

[0120] Optionally, the location information of the P pieces of stored data, the device identification corresponding to the P pieces of data, and / or the time information corresponding to the P pieces of data together with the summary of the complete data and / or the N pieces of summary data are included in the transaction data and sent to all verification nodes or a part of the verification nodes (for example, more than half, such as 80% of the verification nodes) of the blockchain.

[0121] In the above-mentioned blockchain-based data management method, by writing summary data generated based on complete data into the blockchain, and storing the complete data (and its segmented P pieces of data) in the server, or further, only verifying the complete summary data of the complete data or the summary of a part of the complete data through at least a part of the verification nodes, on the one hand, the storage capacity requirements for the servers of the relevant nodes on the blockchain are reduced, and the unmodifiable characteristics of the blockchain are utilized to save the complete data and ensure that the complete data has not been modified. On the other hand, the verification accuracy is improved and the calculation amount and computing resources are reduced at the same time, and the processing speed requirements for the servers of the relevant nodes on the blockchain are reduced.

[0122] According to yet another aspect of the present disclosure, a blockchain-based data management device is also provided.

[0123] Figure 8 The block chain-based data management device 800 according to an embodiment of the present disclosure is shown, which is applied to a verification node. The device 800 may include a processor 801 and a memory 802. The processor 801 and the memory 802 may be connected via a bus 803.

[0124] The processor 801 can perform various actions and processes according to the instructions stored in the memory 802. When the instructions in the memory are executed, the processor can execute the reference according to the embodiments of the present disclosure. Figure 5A-5B The steps of the described blockchain-based data management method for validating nodes.

[0125] Specifically, the processor 801 can be an integrated circuit chip with signal processing capabilities. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can be an X87 architecture or an ARM architecture.

[0126] The memory 802 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronously connected dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the method described in the present disclosure is intended to include, but is not limited to, these and any other suitable types of memory.

[0127] Fig. 9 The data management device 900 based on blockchain according to an embodiment of the present disclosure is shown, which is applied to a user node. The device 900 may include a processor 901 and a memory 902. The processor 901 and the memory 902 may be connected via a bus 903.

[0128] The processor 901, the memory 802 and the bus 903 may be configured as follows: Figure 8 When the instructions stored in the memory 902 are executed, the processor 901 executes the reference in the embodiment of the present disclosure. Figure 6 The steps of the described method for blockchain-based data management using nodes.

[0129] Fig.10 The data management device 1000 based on blockchain according to an embodiment of the present disclosure is shown, which is applied to a user node. The device 1000 may include a processor 1001 and a memory 1002. The processor 1001 and the memory 1002 may be connected via a bus 1003.

[0130] The processor 1001, the memory 1002 and the bus 1003 may be configured in the same manner as Figure 8 When the instructions stored in the memory 1002 are executed, the processor 1001 executes the reference in the embodiment of the present disclosure. Figure 7 The steps of the described blockchain-based data management method for an intermediary device.

[0131] In the above-mentioned blockchain-based data management device, by writing summary data generated based on complete data into the blockchain, and storing the complete data (and its segmented P pieces of data) off-chain in the server, or further, only verifying the complete summary data of the complete data or the summary of a part of the complete data through at least a part of the verification nodes, on the one hand, the storage capacity requirements for the servers of the relevant nodes on the blockchain are reduced, and the unmodifiable characteristics of the blockchain are used to save the complete data and ensure that the complete data has not been modified. On the other hand, the amount of calculation and computing resources are reduced, and the processing speed requirements for the servers of the relevant nodes on the blockchain are reduced.

[0132] Although the present disclosure has been described in detail for various specific example embodiments of the present disclosure, each example is provided by way of explanation rather than limitation of the present disclosure. Those skilled in the art, after obtaining an understanding of the foregoing, can easily make changes, variations, and equivalents to such embodiments. Therefore, the present invention does not exclude including such modifications, variations, and / or additions to the present disclosure that will be apparent to those of ordinary skill in the art. For example, a feature illustrated or described as part of one embodiment can be used together with another embodiment to produce yet another embodiment. Therefore, it is intended that the present disclosure covers such changes, variations, and equivalents.

[0133] Specifically, although the drawings of the present disclosure describe steps performed in a specific order for the purpose of illustration and discussion, the method of the present disclosure is not limited to the order or arrangement of the specific illustrations. The various steps of the above method can be omitted, rearranged, combined and / or adjusted in various ways without departing from the scope of the present disclosure.

[0134] Those skilled in the art will appreciate that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.

[0135] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.

[0136] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.

Claims

1. A data management method based on blockchain, applied to a verification node, the method comprising: Acquire transaction data, wherein the transaction data includes N pieces of summary data, and the N pieces of summary data are respectively generated based on N pieces of data associated with the transaction data, where N is an integer greater than 1; Selecting M pieces of summary data to be used for verification from the N pieces of summary data, where M is an integer less than or equal to N and greater than or equal to 1; Acquire M pieces of storage data respectively corresponding to the M pieces of summary data; Calculate the digest of each of the M pieces of stored data, and When the digests of the M pieces of summary data are respectively identical to the digests of the M pieces of storage data, the transaction data is written into the blockchain.

2. The method according to claim 1, wherein: The N pieces of data are 1 piece of complete data and N-1 pieces of segmented data of the complete data, and the M pieces of data based on which the M pieces of summary data are generated are 1 piece of complete data and M-1 pieces of segmented data of the complete data, or the M pieces of data are M pieces of segmented data of the complete data; or The N pieces of data are N pieces of segmented data of one complete piece of data, and the M pieces of data are M pieces of segmented data of the complete piece of data.

3. The method according to claim 1, wherein the transaction data further includes location information of the N pieces of data, wherein: The acquiring of the M pieces of storage data corresponding to the M pieces of summary data comprises: The M pieces of stored data are respectively acquired according to the position information of the M pieces of data based on which the M pieces of summary data are generated.

4. The method according to claim 1, wherein: The transaction data also includes device identification corresponding to the N pieces of data, and / or time information corresponding to the N pieces of data.

5. The method according to claim 3, wherein: The location information of the N pieces of data includes: The location information of the data server node storing N pieces of data and the location information of each piece of data in the N pieces of data in the data server node.

6. The method according to claim 1, wherein: At least two of the N pieces of data have different lengths, and the M pieces of summary data include summary data generated based on the piece of data with the shortest length among the N pieces of data.

7. The method according to claim 6, wherein: M=1。 8. A data management method based on blockchain, applied to multiple verification nodes, the method comprising: Acquire transaction data, wherein the transaction data includes N pieces of summary data, and the N pieces of summary data are respectively generated based on N pieces of data associated with the transaction data, where N is an integer greater than 1; Selecting M pieces of summary data to be used for verification from N pieces of summary data, where M is an integer less than or equal to N and greater than or equal to 1; wherein the summary data verified by the first type of verification node among the plurality of verification nodes includes summary data generated based on the shortest piece of data among the M pieces of summary data generated; Acquire M pieces of storage data respectively corresponding to the M pieces of summary data; Calculate the digest of each of the M pieces of stored data, and When the digests of the M pieces of summary data are respectively identical to the digests of the M pieces of storage data, the transaction data is written into the blockchain.

9. The data management method according to claim 8, wherein the M pieces of data include 1 piece of complete data and M-1 pieces of segmented data of the complete data, and the second type of verification node among the plurality of nodes verifies summary data generated based on the complete data.

10. The data management method according to claim 8, wherein the M pieces of data include M pieces of segmented data of one complete piece of data, and the second type of verification node among the plurality of nodes verifies the summary data not verified by the first type of verification node.

11. The data management method as described in claim 9 or 10, wherein the number of the first type of verification nodes is greater than the number of the second type of verification nodes.

12. A data management method based on blockchain, applied in a node, the method comprising: Obtaining M pieces of summary data among N pieces of summary data included in transaction data corresponding to a specific device and / or time period, wherein the N pieces of summary data are respectively generated based on N pieces of data associated with the transaction data, N is an integer greater than 1, and M is an integer less than or equal to N and greater than or equal to 1; Acquire M pieces of storage data respectively corresponding to the M pieces of summary data; Calculate the digest of each of the M pieces of stored data; as well as In a case where the digests of the M pieces of summary data are respectively identical to the digests of the M pieces of storage data, it is determined that the complete data associated with the transaction data has not been tampered with.

13. The method according to claim 12, The N pieces of data are 1 piece of complete data and N-1 pieces of segmented data of the complete data, and the M pieces of data based on which the M pieces of summary data are generated are 1 piece of complete data and M-1 pieces of segmented data of the complete data, or the M pieces of data are M pieces of segmented data of the complete data; or The N pieces of data are N pieces of segmented data of the complete data, and the M pieces of data are M pieces of segmented data of the complete data.

14. The method according to claim 12, wherein: At least two of the N pieces of data have different lengths, and the summaries of the M pieces of summary data include summary data generated based on the shortest piece of data among the N pieces of data.

15. The method according to claim 14, wherein: M=1。 16. A data management method based on blockchain, applied to an intermediate device, the method comprising: Acquiring complete data of at least one sensor device; Splitting the complete data of the at least one sensor device into P pieces of data, and generating complete summary data based on the complete data of the at least one sensor device and / or generating P pieces of summary data based on the P pieces of data respectively, where P is an integer greater than 1; as well as storing the P pieces of data and / or the complete data in a data server node, Include P pieces of summary data and / or N pieces of summary data in the complete summary data in the transaction data and send them to the verification node of the blockchain, where N is equal to P or P+1; Among them, when M summary data among the N summary data calculated by the intermediate device are the same as the respective summaries of M storage data corresponding to the M summary data calculated by the verification node, the verification node in the blockchain generates a block of the transaction data and writes it into the blockchain, where M is an integer less than N and greater than or equal to 1.

17. The method according to claim 16, wherein: The M pieces of data based on which the M pieces of summary data are generated are the complete data and M-1 pieces of segmented data of the complete data; or, the M pieces of data are the M pieces of segmented data of the complete data.

18. The method according to claim 17, wherein: At least two of the P pieces of data have different lengths, and the M pieces of summary data include summary data generated based on the shortest piece of data among the P pieces of data.

19. The method according to claim 18, wherein: M=1。 20. The method according to claim 17, wherein: The data uploaded by the at least one sensor device includes, in addition to the complete data, a device identification and / or time information.

21. The method according to claim 20, wherein: The data uploaded by a single sensor device is taken as a complete data; or multiple data uploaded by a single sensor device in each time period are combined as a time-combined complete data; or multiple data uploaded by multiple sensor devices in each time period are combined as a device-combined complete data, The step of dividing the complete data of the at least one sensor device into P pieces of data includes: The complete data, the time-combined complete data or the device-combined complete data are divided according to a preset ratio in sequence, or dividing the time-combined complete data according to time based on the time information; Alternatively, the device combination complete data is segmented in units of sensor devices based on device identification or in units of time periods based on time information.

22. The method of claim 16, further comprising: The location information of the P pieces of data, the device identification corresponding to the P pieces of data, and / or the time information corresponding to the P pieces of data are included in the transaction data together with the complete summary data and / or N summary data among the P pieces of summary data and sent to the verification node of the blockchain.

23. The method according to claim 22, wherein: The location information of the P pieces of data includes: The location information of the data server node storing P pieces of data and the location information of each piece of the P pieces of data stored in the data server node.

24. A data management device based on blockchain, comprising: processor, and A memory having instructions stored thereon, wherein when the instructions are executed, the processor is caused to perform the method according to any one of claims 1 to 23.

25. A data management system based on blockchain, comprising: at least one sensor device configured to generate integrity data; Blockchain network, including: A data server node, configured to store the complete data and / or P pieces of data divided from the complete data; a storage node configured to store complete summary data generated based on the complete data and / or at least one piece of summary data generated based on at least one piece of data among the P pieces of data divided from the complete data; A verification node, configured to execute the method according to any one of claims 1 to 11; Using a node, which is configured to perform the method according to any one of claims 12 to 15; and An intermediate device, configured to execute the method according to any one of claims 16 to 23.

Citation Information

Patent Citations

  • identity real-name authentication system based on blockchain transaction data

    CN109872154A

  • System and method for implementing blockchain-based digital certificates

    CN110771095A

Cited By

  • Data management method, apparatus and system based on blockchain

    WO2022022457A1