CN111866123A - Data storage method and device based on block chain - Google Patents

Data storage method and device based on block chain Download PDF

Info

Publication number
CN111866123A
CN111866123A CN202010695401.9A CN202010695401A CN111866123A CN 111866123 A CN111866123 A CN 111866123A CN 202010695401 A CN202010695401 A CN 202010695401A CN 111866123 A CN111866123 A CN 111866123A
Authority
CN
China
Prior art keywords
data
block chain
blockchain
edge server
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010695401.9A
Other languages
Chinese (zh)
Other versions
CN111866123B (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.)
Hainan University
Original Assignee
Hainan University
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 Hainan University filed Critical Hainan University
Priority to CN202010695401.9A priority Critical patent/CN111866123B/en
Publication of CN111866123A publication Critical patent/CN111866123A/en
Application granted granted Critical
Publication of CN111866123B publication Critical patent/CN111866123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention provides a data storage method and a device based on a block chain, wherein the data storage method and the device are applied to any node in a terminal block chain, the terminal block chain comprises at least one edge server node in the edge server block chain, the edge server node is in communication connection with a terminal node accessed into the terminal block chain, and the method comprises the following steps: acquiring data to be uplink; classifying data to be uplink according to a first preset rule, and dividing the data to be uplink into first block chain data and second block chain data, wherein the first block chain data represent data to be stored in an edge server block chain, and the second block chain data represent data to be stored in a terminal block chain; storing the first blockchain data to an edge server blockchain; the second blockchain data is stored to the terminal blockchain. The invention improves the efficiency and the safety of data storage while realizing the data storage in the loose coupling environment.

Description

Data storage method and device based on block chain
Technical Field
The invention relates to the technical field of block chains, in particular to a data storage method and device based on a block chain.
Background
The review system refers to that a specific organization reviews and screens various events or resources to achieve the expected purpose. The online review system is applied to aspects such as the review of insurance claims. A large amount of data is generated during the review process. In the related art, a centralized data storage mode is generally adopted to store a large amount of data, so that the data storage is in a many-to-one tight coupling state, the efficiency is low, and the safety is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data storage method and apparatus based on a block chain, so as to solve the defects of low data storage efficiency and poor security in the prior art.
According to a first aspect, an embodiment of the present invention provides a data storage method based on a block chain, which is applied to any node in a terminal block chain, where the terminal block chain includes at least one edge server node in an edge server block chain, and the edge server node is communicatively connected to a terminal node accessed into the terminal block chain, and the method includes the following steps: acquiring data to be uplink; classifying the data to be uplink according to a first preset rule, and dividing the data to be uplink into first block chain data and second block chain data, wherein the first block chain data represent the data to be stored in the edge server block chain, and the second block chain data represent the data to be stored in the terminal block chain; storing the first blockchain data to the edge server blockchain; storing the second blockchain data to the terminal blockchain.
Optionally, the storing the first blockchain data to the edge server blockchain includes: classifying the first block chain data according to a second preset rule; storing the first grade data obtained by division into the edge server block chain in a data original text form; and storing the divided second grade data into the edge server block chain in a data abstract mode, wherein the importance of the first grade data is greater than that of the second grade data.
Optionally, storing the second blockchain data to the terminal blockchain includes: classifying the second block chain data according to a third preset rule; storing the third grade data obtained by dividing on the terminal block chain in a data original text form; and performing data summarization on fourth-grade data obtained by division, and storing the fourth-grade data in the terminal block chain in a data summarization mode, wherein the importance of the third-grade data is greater than that of the fourth-grade data.
Optionally, before the classifying the data to be uplink according to the first preset rule and dividing the data to be uplink into the first block chain data and the second block chain data, the method further includes: determining whether the hardware information of the current node is preset processing conditions according to the data to be uplink, wherein the preset processing conditions are determined according to the hardware processing conditions of the edge server node; and when the hardware information of the node does not meet the preset processing condition, sending the data to be uplink to an edge server node in the terminal block chain.
Optionally, the method further comprises: and performing hash operation on the first block chain data and the second block chain data, and mapping an operation result and a memory address for storing the first block chain data and the second block chain data to form a distributed hash table.
Optionally, the method is performed in an execution environment based on SGX technology.
According to a second aspect, an embodiment of the present invention provides a block chain-based data storage apparatus, applied to any node in a terminal block chain, where the terminal block chain includes at least one edge server node in an edge server block chain, and the edge server node is communicatively connected to a terminal node accessed into the terminal block chain, and the apparatus includes: the data acquisition module is used for acquiring data to be linked; the first data dividing module is used for classifying the data to be uplink according to a first preset rule and dividing the data to be uplink into first block chain data and second block chain data, wherein the first block chain data represents the data to be stored in the edge server block chain, and the second block chain data represents the data to be stored in the terminal block chain; a first data transfer module to store the first blockchain data to the edge server blockchain; a first data storage module, configured to store the second blockchain data to the terminal blockchain.
Optionally, the first data transfer module includes: the classification module is used for classifying the first block chain data according to a second preset rule; the first data storage module is used for storing the divided first grade data into the edge server block chain in a data original text form; and the second data storage module is used for storing the divided second grade data into the edge server block chain in a data abstract mode, wherein the importance of the first grade data is greater than that of the second grade data.
According to a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the block chain based data storage method according to the first aspect or any of the embodiments of the first aspect when executing the program.
According to a fourth aspect, an embodiment of the present invention provides a storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the block chain based data storage method according to the first aspect or any implementation manner of the first aspect are implemented.
The technical scheme of the invention has the following advantages:
the data storage method/apparatus based on the blockchain provided by this embodiment implements combination of high performance response of the edge server and a distributed self-organizing mode of the blockchain, where as the location of the terminal node in the self-organizing mode changes, the edge server connected to the terminal node also changes, for example, the edge server connected to the terminal node changes to be the closest edge server, thereby implementing data storage in a loosely coupled environment, and while implementing data storage in the loosely coupled environment, different blockchains store different data information according to preset conditions, instead of storing all data information in the same blockchain, so as to achieve improvement of data storage efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a specific example of a data storage method based on a block chain in an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a specific example of a blockchain-based data storage device according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a specific example of an electronic device in the embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
This embodiment provides a data storage method based on a block chain, which is applied to any node in a terminal block chain, where the terminal block chain includes at least one edge server node in an edge server block chain, and the edge server node is in communication connection with a terminal node accessed to the terminal block chain, as shown in fig. 1, and includes the following steps:
S101, obtaining data to be uplink.
For example, the data to be uplink may be all data generated by the terminal block chain when performing any service, or may be data input by the user, for example, when the terminal block chain completes a review of a certain document, the data that may be generated includes document original content, identity information of a reviewer, relevant policy information, and the like. The mode of acquiring the data to be uplink may be directly receiving input data of a user, or may be data obtained by searching a database, and it should be noted that the data to be uplink is not limited to characters, but may also be graphical image information. The specific content and the obtaining manner of the uplink data to be processed are not limited in this embodiment, and those skilled in the art can determine the content and the obtaining manner as needed.
S102, classifying the data to be uplink according to a first preset rule, and dividing the data to be uplink into first block chain data and second block chain data, wherein the first block chain data represents the data to be stored in the edge server block chain, and the second block chain data represents the data to be stored in the terminal block chain.
For example, the first preset rule may be a rule in a preset rule base in which preset regulations and restrictions are stored. For example, the rule base specifies in advance: information which expresses user identity, such as user name information, public/private key pair information and the like, is used as first block chain data; when the task is executed, the generated other data information is second blockchain data, such as policy information, related material retrieval information, review result information, and the like related to the review content in the document review process. The terminal node performs one-to-one matching division on the data to be uplink transmitted according to a first preset rule, and divides the data to be uplink transmitted into first block chain data and second block chain data, wherein the first block chain data are data to be stored in an edge server block chain, and the second block chain data are data stored in a terminal block chain.
And S103, storing the first block chain data to the edge server block chain.
For example, when the block chain based data storage method in this embodiment is applied to any terminal node in a terminal block chain, the terminal node may upload the divided first block chain data to an edge server block chain through a side chain technique, store the first block chain data in an edge server block chain book record, and directly store the first block chain data in the edge server block chain when the block chain based data storage method in this embodiment is applied to an edge server node in the terminal block chain.
And S104, storing the second block chain data to the terminal block chain.
Exemplarily, when the block chain-based data storage method in this embodiment is applied to any terminal node in a terminal block chain, the second block chain data record is stored in a terminal block chain ledger for the terminal block chain to complete a corresponding service, such as a document review service. When the block chain-based data storage method in this embodiment is applied to an edge server node in a terminal block chain, the divided second block chain data is sent to the terminal block chain through a side chain technique, and the second block chain data is stored in a terminal block chain account book record.
It should be noted that in this embodiment, a terminal node of the terminal block chain may be in an online state or an offline state, and the terminal block chain may be connected to any terminal node, or any terminal node may exit the terminal block chain at any time. However, the edge server in any terminal block chain is a fixed node and a super node, and needs to be in an online state for a long time, so that the service data of the whole terminal node can be stored conveniently. In this embodiment, the edge server simultaneously completes data interaction between the edge server block chain and the terminal block chain for the nodes in the corresponding edge server block chain and the corresponding terminal block chain.
The data storage method based on the blockchain provided by this embodiment implements combination of high performance response of the edge server and a distributed self-organizing mode of the blockchain, where a terminal node in the self-organizing mode changes with a change in location, and an edge server in a butt joint with the terminal node also changes, for example, the edge server in the butt joint with the terminal node changes to be the closest edge server, thereby implementing data storage in a loosely-coupled environment.
As an optional implementation manner of this embodiment, step S103 includes:
first, the first blockchain data is classified according to a second preset rule.
For example, the second preset rule may be to classify the first blockchain data into a first level data and a second level data according to importance, where the first level data represents important data, and the second level data represents normal data. Taking a document review as an example, the first level data may be public and private key pair information of the user, and the second level data may be user name information or the like. The specific content of the first-level data and the second-level data is not limited in this embodiment, and those skilled in the art can determine the specific content as needed.
And secondly, storing the first grade data obtained by division into an edge server block chain in a data original text form.
Illustratively, when the first grade data exists after the data division is performed according to the second preset rule, the first grade data is stored in the form of a data original text in the edge server block chain in a distributed on-chain synchronous mode.
And thirdly, storing the divided second grade data into the edge server block chain in a data abstract mode, wherein the importance of the first grade data is greater than that of the second grade data.
Illustratively, when there is second level data after data partitioning according to a second preset rule, the second level data is subjected to a data summarization algorithm to obtain a data summary of the second level data, and the data summarization algorithm may be MD5, SHA1, SHA512, and the like. And performing data uplink storage on the data abstract of the second-level data in the edge server block chain. The data summarization algorithm is not limited in this embodiment, and can be determined by those skilled in the art as needed.
In the data storage method based on the block chain provided in this embodiment, the first block chain data is divided again to form different grades, the different grades are stored in different manners, a data abstract storage manner is adopted for data with low importance, and an original storage manner is adopted for data with high importance, so that the storage efficiency is further improved, and the data uplink cost can be reduced.
As an optional implementation manner of this embodiment, step S104 includes:
first, the second blockchain data is classified according to a third preset rule.
Illustratively, the third preset rule may be that the second blockchain data is classified according to importance into third level data and fourth level data, the third level data represents important data, and the fourth level data represents normal data. Taking a document review as an example, the third level data may be review result information or the like, and the fourth level data may be policy information, related material search information or the like related to the review content. The specific content of the third-level data and the fourth-level data is not limited in this embodiment, and those skilled in the art can determine the third-level data and the fourth-level data as needed.
And secondly, storing the third grade data obtained by dividing on the terminal block chain in a data original text form. And performing data summarization on the fourth-level data obtained by division, and storing the fourth-level data in a terminal block chain in a data summarization mode, wherein the importance of the third-level data is greater than that of the fourth-level data.
Illustratively, when third-level data exists after data division is performed according to a third preset rule, the third-level data is stored in a distributed on-link synchronization mode in the terminal block chain in a format of a text. And when fourth-grade data exists after data division is carried out according to a second preset rule, obtaining a data abstract of the fourth-grade data through a data abstract algorithm for the fourth-grade data, wherein the data abstract algorithm can be MD5, SHA1, SHA512 and the like, and the terminal block chain carries out data uplink storage on the data abstract of the fourth-grade data. The data summarization algorithm is not limited in this embodiment, and can be determined by those skilled in the art as needed.
In the data storage method based on the block chain provided in this embodiment, the second block chain data is subdivided to form different levels, the different levels are stored in different manners, a data abstract storage manner is adopted for data with low importance, and an original storage manner is adopted for data with high importance, so that the storage efficiency is further improved, and the data uplink cost can be reduced.
As an optional implementation manner of this embodiment, before classifying the data to be uplink according to a first preset rule and dividing the data to be uplink into first block chain data and second block chain data, the method further includes: determining whether the hardware information of the current node meets a preset processing condition according to the data to be uplink, wherein the preset processing condition is determined according to the hardware processing condition of the edge server node; and when the hardware information of the node does not meet the preset processing condition, sending the data to be uplink to an edge server node in the terminal block chain.
Exemplarily, the hardware information of the node may include cpu dominant frequency information, storage capacity, and the like of the node, the node does not satisfy a preset processing condition to represent that hardware computing power of the node itself is not enough to implement data processing, the preset processing condition may be that the cpu dominant frequency information of the node is lower than 1ghz, and the preset processing condition determines that the hardware processing condition representing the edge server node in this embodiment can certainly reach the preset processing condition according to the hardware processing condition of the edge server node; that is, when the terminal node acquires the data to be uplink and the hardware processing condition of the terminal node does not meet the preset processing condition, the data to be uplink can be sent to the edge server node, and the corresponding edge server node realizes the subsequent data processing and calculation process; when the edge server node receives the data to be linked, the hardware processing conditions of the edge server must meet the preset processing conditions.
As an optional implementation manner of this embodiment, the above data storage method based on a block chain further includes: and performing hash operation on the first block chain data and the second block chain data, and mapping an operation result and a memory address for storing the first block chain data and the second block chain data to form a distributed hash table.
Illustratively, when the first blockchain data and the second blockchain data are subjected to data storage, the first blockchain data are hashed and mapped to a specific memory address of the edge server to form a first distributed hash table, so that the first blockchain data are directly addressed; the second block chain data are hashed and mapped to a specific memory address of the terminal node to form a second distributed hash table so as to directly address the second block chain data; therefore, the query efficiency of the first block chain data or the second block chain data is improved.
As an optional implementation manner of this embodiment, the above data storage method based on a blockchain is implemented in a trusted execution environment based on an SGX technology. In this embodiment, SGX trusted hardware may be built in the terminal or the edge server, so as to provide a secure execution environment for completing the block chain-based data storage method, thereby effectively preventing data leakage and improving the computational security of data.
This embodiment provides a block chain-based data storage apparatus, as shown in fig. 2, which is applied to any node in a terminal block chain, where the terminal block chain includes at least one edge server node in an edge server block chain, and the edge server node is communicatively connected to a terminal node accessed into the terminal block chain, and the block chain-based data storage apparatus includes:
a data obtaining module 201, configured to obtain data to be uplink;
a first data dividing module 202, configured to classify the data to be uplink according to a first preset rule, and divide the data to be uplink into first block chain data and second block chain data, where the first block chain data represents data to be stored in the edge server block chain, and the second block chain data represents data to be stored in the terminal block chain;
a first data transfer module 203, configured to store the first blockchain data to the edge server blockchain;
a first data storage module 204, configured to store the second blockchain data to the terminal blockchain.
As an optional implementation manner of this embodiment, the first data transmission module 203 includes:
The classification module is used for classifying the first block chain data according to a second preset rule;
the first data storage module is used for storing the divided first grade data into the edge server block chain in a data original text form;
and the second data storage module is used for storing the divided second grade data into the edge server block chain in a data abstract mode, wherein the importance of the first grade data is greater than that of the second grade data.
As an optional implementation manner of this embodiment, the first data storage module 204 includes:
the third preset rule classification module is used for classifying the second block chain data according to a third preset rule;
the data original text storage module is used for storing the third grade data obtained by division on the terminal block chain in a data original text form;
and the data abstract storage module is used for performing data abstract on fourth-grade data obtained by division, and storing the fourth-grade data in the terminal block chain in a data abstract form, wherein the importance of the third-grade data is greater than that of the fourth-grade data.
As an optional implementation manner of the present application, the apparatus further includes:
the hardware information acquisition module is used for determining whether the hardware information of the current node meets a preset processing condition according to the data to be linked, wherein the preset processing condition is determined according to the hardware processing condition of the edge server node;
and the communication module is used for sending the data to be uplink to the edge server node in the terminal block chain when the hardware information of the node does not meet the preset processing condition.
As an optional implementation manner of this embodiment, the apparatus further includes:
and the hash table establishing module is used for carrying out hash operation on the first block chain data and the second block chain data and mapping the operation result and the memory address for storing the first block chain data and the second block chain data to form a distributed hash table.
As an optional implementation manner of this embodiment, the apparatus further includes: and the SGX hardware module is used for ensuring that the method in the corresponding embodiment is completed in a trusted execution environment based on the SGX technology.
The embodiment of the present application also provides an electronic device, as shown in fig. 3, including a processor 310 and a memory 320, where the processor 310 and the memory 320 may be connected by a bus or in other manners.
Processor 310 may be a Central Processing Unit (CPU). The Processor 310 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The memory 320, which is a non-transitory computer readable storage medium, may be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the data storage method based on the blockchain in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions, and modules stored in the memory.
The memory 320 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 320 may optionally include memory located remotely from the processor, which may be connected to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 320 and, when executed by the processor 310, perform a blockchain-based data storage method as in the embodiment shown in fig. 1.
The details of the electronic device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 1, and are not described herein again.
This embodiment also provides a computer storage medium, where the computer storage medium stores computer-executable instructions, where the computer-executable instructions can execute the data storage method based on the block chain in any of method embodiments 1 above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard disk (Hard disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (10)

1. A data storage method based on a block chain is applied to any node in a terminal block chain, the terminal block chain comprises at least one edge server node in an edge server block chain, the edge server node is connected with a terminal node accessed into the terminal block chain in a communication mode, and the method comprises the following steps:
acquiring data to be uplink;
classifying the data to be uplink according to a first preset rule, and dividing the data to be uplink into first block chain data and second block chain data, wherein the first block chain data represent the data to be stored in the edge server block chain, and the second block chain data represent the data to be stored in the terminal block chain;
storing the first blockchain data to the edge server blockchain;
storing the second blockchain data to the terminal blockchain.
2. The method of claim 1, wherein storing the first blockchain data to the edge server blockchain comprises:
classifying the first block chain data according to a second preset rule;
Storing the first grade data obtained by division into the edge server block chain in a data original text form;
and storing the divided second grade data into the edge server block chain in a data abstract mode, wherein the importance of the first grade data is greater than that of the second grade data.
3. The method of claim 1, wherein storing the second blockchain data to the terminal blockchain comprises:
classifying the second block chain data according to a third preset rule;
storing the third grade data obtained by dividing on the terminal block chain in a data original text form;
and performing data summarization on fourth-grade data obtained by division, and storing the fourth-grade data in the terminal block chain in a data summarization mode, wherein the importance of the third-grade data is greater than that of the fourth-grade data.
4. The method of claim 1, wherein before the classifying the data to be uplink according to a first predetermined rule and dividing the data to be uplink into a first blockchain data and a second blockchain data, the method further comprises:
Determining whether the hardware information of the current node meets a preset processing condition according to the data to be uplink, wherein the preset processing condition is determined according to the hardware processing condition of the edge server node;
and when the hardware information of the node does not meet the preset processing condition, sending the data to be uplink to an edge server node in the terminal block chain.
5. The method of claim 1, further comprising:
and performing hash operation on the first block chain data and the second block chain data, and mapping an operation result and a memory address for storing the first block chain data and the second block chain data to form a distributed hash table.
6. The method according to any of claims 1-5, wherein the method is performed in an execution environment based on SGX techniques.
7. A blockchain-based data storage apparatus, for use in any node in a terminal blockchain, the terminal blockchain including at least one edge server node in an edge server blockchain, the edge server node being communicatively connected to a terminal node accessing the terminal blockchain, the apparatus comprising:
The data acquisition module is used for acquiring data to be linked;
the first data dividing module is used for classifying the data to be uplink according to a first preset rule and dividing the data to be uplink into first block chain data and second block chain data, wherein the first block chain data represents the data to be stored in the edge server block chain, and the second block chain data represents the data to be stored in the terminal block chain;
a first data transfer module to store the first blockchain data to the edge server blockchain;
a first data storage module, configured to store the second blockchain data to the terminal blockchain.
8. The blockchain-based data storage device of claim 7, wherein the first data transfer module includes:
the classification module is used for classifying the first block chain data according to a second preset rule;
the first data storage module is used for storing the divided first grade data into the edge server block chain in a data original text form;
and the second data storage module is used for storing the divided second grade data into the edge server block chain in a data abstract mode, wherein the importance of the first grade data is greater than that of the second grade data.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the block chain based data storage method according to any one of claims 1 to 6 are implemented when the program is executed by the processor.
10. A storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the blockchain-based data storage method of any one of claims 1 to 6.
CN202010695401.9A 2020-07-17 2020-07-17 Data storage method and device based on block chain Active CN111866123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010695401.9A CN111866123B (en) 2020-07-17 2020-07-17 Data storage method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010695401.9A CN111866123B (en) 2020-07-17 2020-07-17 Data storage method and device based on block chain

Publications (2)

Publication Number Publication Date
CN111866123A true CN111866123A (en) 2020-10-30
CN111866123B CN111866123B (en) 2022-03-08

Family

ID=73002368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010695401.9A Active CN111866123B (en) 2020-07-17 2020-07-17 Data storage method and device based on block chain

Country Status (1)

Country Link
CN (1) CN111866123B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686004A (en) * 2020-12-30 2021-04-20 海南大学 Block chain-based single-document multi-interface editing method
CN112866346A (en) * 2020-12-31 2021-05-28 海南大学 Block chain-based data distribution method and flow

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843750A (en) * 2016-12-20 2017-06-13 中国科学院苏州生物医学工程技术研究所 Distributed memory system
CN108876383A (en) * 2018-08-27 2018-11-23 广东工业大学 A kind of data trade method, device and equipment based on block chain
CN108881474A (en) * 2018-07-10 2018-11-23 南京邮电大学 A kind of internet of things data cascade protection framework based on block chain
CN109508991A (en) * 2018-10-16 2019-03-22 深圳市圆世科技有限责任公司 A kind of edge collaboration method based on block chain
CN109597822A (en) * 2018-11-28 2019-04-09 中国联合网络通信集团有限公司 A kind of storage of user data and querying method and user data processing unit
US20200183586A1 (en) * 2018-12-07 2020-06-11 YMAX Co., Ltd Apparatus and method for maintaining data on block-based distributed data storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843750A (en) * 2016-12-20 2017-06-13 中国科学院苏州生物医学工程技术研究所 Distributed memory system
CN108881474A (en) * 2018-07-10 2018-11-23 南京邮电大学 A kind of internet of things data cascade protection framework based on block chain
CN108876383A (en) * 2018-08-27 2018-11-23 广东工业大学 A kind of data trade method, device and equipment based on block chain
CN109508991A (en) * 2018-10-16 2019-03-22 深圳市圆世科技有限责任公司 A kind of edge collaboration method based on block chain
CN109597822A (en) * 2018-11-28 2019-04-09 中国联合网络通信集团有限公司 A kind of storage of user data and querying method and user data processing unit
US20200183586A1 (en) * 2018-12-07 2020-06-11 YMAX Co., Ltd Apparatus and method for maintaining data on block-based distributed data storage system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686004A (en) * 2020-12-30 2021-04-20 海南大学 Block chain-based single-document multi-interface editing method
CN112866346A (en) * 2020-12-31 2021-05-28 海南大学 Block chain-based data distribution method and flow

Also Published As

Publication number Publication date
CN111866123B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
US11704221B2 (en) Systems and methods for collecting, tracking, and storing system performance and event data for computing devices
US10204114B2 (en) Replicating data across data centers
US9753954B2 (en) Data node fencing in a distributed file system
CN108153849B (en) Database table segmentation method, device, system and medium
US8977623B2 (en) Method and system for search engine indexing and searching using the index
CN111866123B (en) Data storage method and device based on block chain
CN108683668B (en) Resource checking method, device, storage medium and equipment in content distribution network
US10484468B2 (en) Method and device for downloading file
CN105988846B (en) Page loading method and page loading device
CN109964507B (en) Network function management method, management unit and system
CN113961312A (en) Target service deployment method and device and electronic equipment
CN111858520B (en) Method and device for separately storing block chain node data
EP3188051B1 (en) Systems and methods for search template generation
CN110597918A (en) Account management method and device and computer readable storage medium
US20230092714A1 (en) Systems, computer-readable media and computer-implemented methods for automated, dynamic capacity planning using http response header fields
EP4030803A1 (en) Method and system for secure iot device onboarding using a blockchain network
CN109710502B (en) Log transmission method, device and storage medium
CN107547605B (en) message reading and writing method based on node queue and node equipment
US10402373B1 (en) Filesystem redirection
CN110377665B (en) Data synchronization method and device, electronic equipment and storage medium
US11704296B2 (en) Data management system, data management apparatus, and non-transitory computer readable medium storing data management program
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN109995855A (en) A kind of data capture method, device and terminal
CN110287265B (en) Login request processing method and device, server and readable storage medium
CN116610755A (en) Data processing method, device, electronic equipment and computer storage medium

Legal Events

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