CN114676444A - Block chain-based storage system - Google Patents

Block chain-based storage system Download PDF

Info

Publication number
CN114676444A
CN114676444A CN202210296942.3A CN202210296942A CN114676444A CN 114676444 A CN114676444 A CN 114676444A CN 202210296942 A CN202210296942 A CN 202210296942A CN 114676444 A CN114676444 A CN 114676444A
Authority
CN
China
Prior art keywords
data
storage
stored
block chain
matching
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
CN202210296942.3A
Other languages
Chinese (zh)
Other versions
CN114676444B (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.)
Suzhou Ji'an Technology Co ltd
Original Assignee
Guangzhou Master Ming Information Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Master Ming Information Service Co ltd filed Critical Guangzhou Master Ming Information Service Co ltd
Priority to CN202210296942.3A priority Critical patent/CN114676444B/en
Publication of CN114676444A publication Critical patent/CN114676444A/en
Application granted granted Critical
Publication of CN114676444B publication Critical patent/CN114676444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention discloses a storage system based on a block chain, which comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring data to be stored on the block chain and acquiring node information of the block chain; the relation establishing module is used for establishing a mapping relation between the data to be stored and the block chain link points based on the characteristics and the node information of the data to be stored; the data storage module is used for storing the data to be stored to the nodes of the block chain based on the mapping relation; the invention realizes the storage of data on the block chain nodes, reduces the times of realizing the data storage by performing operation on the block chain link points in the storage process, reduces the data processing burden on the block chain link points and improves the operation efficiency in the storage process of the block chain link points.

Description

Block chain-based storage system
Technical Field
The invention belongs to the technical field of storage systems, and particularly relates to a block chain-based storage system.
Background
Memory systems are one of the important components of computers. The memory system provides the ability to write and read information (programs and data) required for the operation of the computer, and realizes the information memory function of the computer. Modern computer systems often employ multi-level storage architectures of registers, caches, main memory, and external memory. The heart of a computer memory system is the memory, which is the memory device essential in computers for storing programs and data. The internal memory (abbreviated as "memory") mainly stores programs and data required by the current work of the computer, and includes a Cache memory (abbreviated as "Cache") and a main memory. The main memory elements currently used are semiconductor memories. The external memory (external memory for short) mainly has three implementations of magnetic memory, optical memory and semiconductor memory, and the storage medium includes hard disk, optical disk, magnetic tape and removable memory.
Blockchains are a term of art in information technology. In essence, the system is a shared database, and the data or information stored in the shared database has the characteristics of 'unforgeability', 'whole-course trace', 'traceability', 'public transparency', 'collective maintenance', and the like. Based on the characteristics, the block chain technology lays a solid trust foundation, creates a reliable cooperation mechanism and has wide application prospect; shared data in the block chain needs to be stored by a storage system, the data of the block chain is stored in each node, and with the updating of the data on the block chain, the operation load of equipment is increased, so that the long-term development of the block chain is not facilitated, and the operation efficiency of the block chain is reduced, so that the storage system based on the block chain is provided.
Disclosure of Invention
The invention aims to overcome the existing defects and provide a storage system based on a block chain, so that the operation efficiency in the block chain storage process is improved.
A blockchain based storage system comprising:
the acquisition module is used for acquiring data to be stored on the block chain and acquiring node information of the block chain;
the relation establishing module is used for establishing a mapping relation between the data to be stored and the block chain link points based on the characteristics and the node information of the data to be stored;
and the data storage module is used for storing the data to be stored to the nodes of the block chain based on the mapping relation.
Preferably, the acquiring module includes:
the receiving unit is used for receiving a data storage request sent by a user and acquiring the user information;
the acquisition unit is used for matching with a storage system based on the user information, receiving data to be stored in the data storage request if the matching is successful, and otherwise, not responding to the data storage request and sending a safety prompt message;
and the cache unit is used for temporarily caching the received data to be stored and deleting the temporary cache after the block chain data storage is finished.
Preferably, the obtaining module further includes:
the information acquisition unit is used for acquiring information of the nodes of the block chain to obtain single node information of the block chain;
the association unit is used for associating all the single node information based on the distribution structure of the block node points to obtain associated information;
and the integration unit is used for integrating all the single node information and the associated information to obtain the node information of the block chain.
Preferably, the method further includes a data analysis module, configured to analyze the data to be stored and obtain characteristics of the data to be stored, including:
the matching unit is used for extracting the features of the data to be stored to obtain a feature vector, matching the feature vector with attribute feature vectors in a data attribute library and determining attribute features corresponding to the feature vectors;
the analysis unit is used for determining an analysis mode of the feature vector based on the attribute features and analyzing the feature vector based on the analysis mode to obtain type features and content features;
and the characteristic determining unit is used for determining the characteristics of the data to be stored based on the attribute characteristics, the type characteristics and the content characteristics.
Preferably, the relationship establishing module includes:
the marking unit is used for carrying out first marking on the data to be stored by utilizing a preset marking scheme based on the characteristics of the data to be stored, and carrying out second marking on the block chain link points by utilizing the preset marking scheme based on the node information of the block chain;
and the mapping unit is used for establishing the mapping relation between the data to be stored and the block link points by utilizing historical mapping information based on the first mark and the second mark.
Preferably, the mapping unit includes:
a first sequence determining unit, configured to determine a first sequence corresponding to the first tag, and divide the first sequence based on a tag category of the first tag to obtain multiple first subsequences;
a priority determining unit, configured to obtain a target subsequence related to data priority from the plurality of first subsequences, and set a priority for the data to be stored based on the target subsequence;
a second sequence determining unit, configured to determine a second sequence corresponding to the second marker, and divide the second sequence corresponding to the plurality of first sub-sequences to obtain a plurality of second sub-sequences;
a sequence correction unit, configured to detect the second subsequence with the first subsequence as a sequence standard, extract an abnormal second subsequence that does not meet the sequence standard, and correct the abnormal second subsequence based on a sequence correction model to obtain a corrected second subsequence;
the matching degree determining unit is used for determining a mapping example in the historical block link point data storage process based on the historical mapping information and determining the storage matching degree between the historical storage data and the block link points based on the mapping example;
the matching unit is used for establishing a sequence matching degree set between the data mark sequence and the block chain link point sequence based on the storage matching degree, and matching the first subsequence and the second subsequence according to the priority of the data to be stored based on the sequence matching degree set to obtain a matching result;
and the relationship determining unit is used for establishing a mark corresponding relationship between the first mark and the second mark according to the corresponding relationship between the first mark and the second mark and the first sequence and the corresponding relationship between the second mark and the second sequence respectively based on the matching result, and establishing a mapping relationship between the data to be stored and the block link point based on the corresponding relationship between the first mark and the second mark and the data to be stored and the corresponding relationship between the first mark and the block link point.
Preferably, the matching degree determination unit includes:
the instance analysis unit is used for analyzing the mapping instances and determining the mapping results of the same type of data and the block chain nodes in different mapping instances;
a result analysis unit, configured to determine, based on the mapping result, initial matching degrees of the same type of data and block link points in different mapping instances;
and the matching degree correcting unit is used for acquiring the influence weight of other types of data on the same type of data mapping in different mapping examples, and correcting the initial matching degree based on the influence weight to obtain the storage matching degree of the same type of data and the block chain node.
Preferably, the data storage module includes:
the node determining unit is used for determining block chain link points which are correspondingly stored by the data to be stored based on the mapping relation;
the state prediction unit is used for establishing a storage task based on the block link points correspondingly stored by the data to be stored and determining a standard state of the block link points after the data to be stored is stored based on the storage task;
the state determining unit is used for storing the data to be stored to the corresponding block chain link points according to the storage task and detecting to obtain the running state of the block chain link points;
the verification unit is used for verifying whether the block chain node correctly stores the data to be stored or not based on the standard state and the running state;
based on the standard state and the running state, calculating a matching value between the standard state and the running state according to the following formula;
and the adjusting unit is used for adjusting the running state when the block chain node is verified to be incapable of correctly storing the data to be stored.
Preferably, the node determination unit includes:
the dividing unit is used for dividing the data to be stored based on the mapping relation to obtain a plurality of sub-storage data;
and the storage determining unit is used for distributing the plurality of pieces of sub-storage data to corresponding block link points based on the mapping relation, and determining the storage modes and the storage positions in the block link points.
Preferably, the method further comprises the following steps: the data query module is used for querying and acquiring the data stored on the block chain node, and comprises:
the data receiving unit is used for receiving storage data which needs to be inquired by a user, presetting a preset screening attribute related to the storage data, and determining a first attribute value of the storage data under the preset screening attribute;
the rule determining unit is used for acquiring a target screening attribute of a user and a second attribute value corresponding to the target screening attribute, determining an incidence relation between the preset screening attribute and the target screening attribute, and determining a matching rule between the first attribute value and the second attribute value based on the incidence relation;
the data screening unit is used for matching the second attribute value with the first attribute value based on the matching rule and acquiring target storage data corresponding to the first attribute value meeting the requirement according to the matching result;
the data storage unit is used for setting a corresponding first identifier for the target storage data based on the first attribute value and selecting a temporary cache region for the target storage data according to the first identifier;
the first matching unit is used for performing first matching on the target storage data and the block chain link points according to the corresponding relation between the cache region and the block chain link points to obtain a first matching relation;
the data identification unit is used for acquiring historical storage data of the block chain nodes and second identifications corresponding to the historical storage data, and acquiring the same storage data corresponding to first identifications which are the same as the second identifications according to a first matching relation;
the second matching unit is used for extracting the related matching relation of the same storage data in the first matching relation to obtain a second matching relation, and performing second matching on the target storage data and the block link points on the basis of the second matching relation to obtain a second matching relation;
and the query acquisition unit is used for querying and extracting the data in the block link points based on the second matching relationship to obtain the storage data.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention without limiting the invention in which:
fig. 1 is a block diagram of a block chain based storage system according to the present invention;
fig. 2 is a structural diagram of the data analysis module according to the present invention;
fig. 3 is a structural diagram of the data storage module according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Example 1
The invention provides a block chain-based storage system, as shown in fig. 1, comprising:
the acquisition module is used for acquiring data to be stored on the block chain and acquiring node information of the block chain;
the relation establishing module is used for establishing a mapping relation between the data to be stored and the block chain link points based on the characteristics and the node information of the data to be stored;
and the data storage module is used for storing the data to be stored to the nodes of the block chain based on the mapping relation.
In this embodiment, the node information includes a node storage memory, node stored data information, a node stored data type, and the like, and a node of the block chain corresponds to a server terminal that stores data.
In this embodiment, the attribute of the data to be stored includes a data type, a data content, a data format, and the like.
In this embodiment, the mapping relationship is a relationship by which the tape storage data is stored at a block link point.
The beneficial effect of above-mentioned design is: the mapping relation between the data to be stored and the block chain link points is predetermined, the data storage on the block chain link points is realized by utilizing the mapping relation, the times of realizing the data storage by performing operation on the block chain link points in the storage process are reduced, the data processing burden on the block chain link points is reduced, and the operation efficiency in the block chain storage process is improved.
Example 2
Based on embodiment 1, an embodiment of the present invention provides a block chain-based storage system, where the obtaining module includes:
the receiving unit is used for receiving a data storage request sent by a user and acquiring the user information;
the acquisition unit is used for matching with a storage system based on the user information, receiving data to be stored in the data storage request if the matching is successful, or else, not responding to the data storage request and sending a safety prompt message;
and the cache unit is used for temporarily caching the received data to be stored and deleting the temporary cache after the block chain data storage is finished.
In this embodiment, matching with the storage system based on the user information specifically includes determining whether the user information meets a requirement of a safe user of the storage system, and if so, indicating that matching is successful.
The beneficial effect of above-mentioned design is: by detecting the user information, the safety of the data to be stored is ensured, and the data to be stored is temporarily cached, so that repeated query and acquisition of the data are avoided, a basis is provided for subsequent data storage, and the data storage efficiency is improved.
Example 3
Based on embodiment 1, an embodiment of the present invention provides a storage system based on a block chain, where the obtaining module further includes:
the information acquisition unit is used for acquiring information of the nodes of the block chain to obtain single node information of the block chain;
the association unit is used for associating all the single node information based on the distribution structure of the block node points to obtain associated information;
and the integration unit is used for integrating all the single node information and the associated information to obtain the node information of the block chain.
In this embodiment, the single node information includes a node storage memory, node stored data information, a node storage data type, and the like.
In this embodiment, the distribution structure of the block link points is specifically a location distribution structure between the block link points and a communication distribution structure between the block link points.
In this embodiment, the node information of the block chain not only includes the node storage memory, the stored data information of the node, and the node storage data type, but also includes the position relationship information and the communication relationship information between the block chain link and the other block chain nodes.
The beneficial effect of above-mentioned design is: by acquiring the information between the block chain node and other block chain nodes, the information of the block chain node is more accurately acquired, and a basis is provided for reasonable data storage at the block chain node, so that the data storage efficiency is improved.
Example 4
Based on embodiment 1, an embodiment of the present invention provides a block chain-based storage system, as shown in fig. 2, further including a data analysis module, configured to analyze the data to be stored, and obtain characteristics of the data to be stored, where the data analysis module includes:
the matching unit is used for extracting the features of the data to be stored to obtain a feature vector, matching the feature vector with attribute feature vectors in a data attribute library and determining attribute features corresponding to the feature vectors;
the analysis unit is used for determining an analysis mode of the feature vector based on the attribute feature and analyzing the feature vector based on the analysis mode to obtain a type feature and a content feature;
and the characteristic determining unit is used for determining the characteristics of the data to be stored based on the attribute characteristics, the type characteristics and the content characteristics.
In this embodiment, the data attribute library is used for storing the characteristics of various data and the corresponding attribute characteristics thereof.
In this embodiment, the vector features of different attribute features correspond to different parsing manners, for example, the parsing manner of the picture attribute is region division, pixel analysis, and the like, and the parsing manner of the text attribute is semantic recognition, keyword extraction, and the like.
The beneficial effect of above-mentioned design is: different analysis modes are adopted according to the attributes of the data to be stored, so that the obtained data characteristics can accurately represent the data to be stored, and a basis is provided for determining the mapping relation between the data to be stored and the block link points.
Example 5
On the basis of embodiment 1, an embodiment of the present invention provides a block chain-based storage system, where the relationship establishing module includes:
the marking unit is used for carrying out first marking on the data to be stored by utilizing a preset marking scheme based on the characteristics of the data to be stored, and carrying out second marking on the block chain link points by utilizing the preset marking scheme based on the node information of the block chain;
and the mapping unit is used for establishing the mapping relation between the data to be stored and the block link points by utilizing historical mapping information based on the first mark and the second mark.
In this embodiment, the first flag marks the feature according to the feature of the data to be stored in a preset marking scheme, the second flag marks the node according to the node information in the preset marking scheme, and the first flag is linked to the second flag in the preset marking scheme.
In this embodiment, the history mapping information is determined according to a mapping relation when the block link point historically stores data.
The beneficial effect of above-mentioned design is: the data to be stored and the node information of the block chain are marked according to the preset marking scheme, so that the association between the data to be stored and the node information of the block chain is obtained, then the mapping relation between the data to be stored and the block chain link point is really established through historical mapping information, the mapping accuracy between the data to be stored and the block chain link point is ensured, and the data storage accuracy and the data storage efficiency are ensured.
Example 6
Based on embodiment 5, an embodiment of the present invention provides a block chain based storage system, where the mapping unit includes:
a first sequence determining unit, configured to determine a first sequence corresponding to the first tag, and divide the first sequence based on a tag category of the first tag to obtain a plurality of first subsequences;
a priority determining unit, configured to obtain a target subsequence related to data priority from the plurality of first subsequences, and set a priority for the data to be stored based on the target subsequence;
a second sequence determining unit, configured to determine a second sequence corresponding to the second marker, and divide the second sequence corresponding to the plurality of first sub-sequences to obtain a plurality of second sub-sequences;
a sequence correction unit, configured to detect the second subsequence with the first subsequence as a sequence standard, extract an abnormal second subsequence that does not meet the sequence standard, and correct the abnormal second subsequence based on a sequence correction model to obtain a corrected second subsequence;
the matching degree determining unit is used for determining a mapping example in the historical block link point data storage process based on the historical mapping information and determining the storage matching degree between the historical storage data and the block link points based on the mapping example;
the matching unit is used for establishing a sequence matching degree set between the data mark sequence and the block chain link point sequence based on the storage matching degree, and matching the first subsequence and the second subsequence according to the priority of the data to be stored based on the sequence matching degree set to obtain a matching result;
and the relationship determining unit is used for establishing a mark corresponding relationship between the first mark and the second mark according to the corresponding relationship between the first mark and the second mark and the first sequence and the corresponding relationship between the second mark and the second sequence respectively based on the matching result, and establishing a mapping relationship between the data to be stored and the block link point based on the corresponding relationship between the first mark and the second mark and the data to be stored and the corresponding relationship between the first mark and the block link point.
In this embodiment, the first sequence corresponding to the first tag, and the second sequence corresponding to the second tag are specifically sequences corresponding to tags, for example, the sequence corresponding to the name of the block link is 001001010, and different tags correspond to different sequences and are unique.
In this embodiment, setting the priority for the data to be stored may perform relational mapping between the data to be stored with good priority and the block link point, and ensure that the data to be stored with good priority is stored preferentially.
In this embodiment, the sequence modification model uses the first subsequence as a sequence standard, and performs format modification on the sequence without changing a corresponding mark of the sequence, so as to improve matching accuracy of a subsequent first sequence and a subsequent second sequence.
In this embodiment, the mapping example is to determine the storage matching degree between the same type of data and each block chain node according to the mapping result of the same type of data on the block chain node in multiple storage processes, which is beneficial to improving the storage efficiency.
In this embodiment, the sequence-tag-to-be-stored data (block chain nodes) sequentially correspond one to one, and according to the sequence matching result, the mapping relationship between the to-be-stored data and the block chain link points is finally obtained.
The beneficial effect of above-mentioned design is: the mapping relation between the data to be stored and the block chain nodes is determined according to the marks of the data to be stored and the block chain nodes and the historical mapping information and the priority sequence, the data to be stored with higher priority are mapped preferentially and stored preferentially, the accuracy and the efficiency of data storage are improved, the mapping relation is determined in advance before storage, the frequency of performing operation on the block chain nodes to realize data storage is reduced, and the data processing burden on the block chain nodes is reduced.
Example 7
Based on embodiment 6, an embodiment of the present invention provides a storage system based on a block chain, where the matching degree determining unit includes:
the instance analysis unit is used for analyzing the mapping instances and determining the mapping results of the same type of data and the block chain nodes in different mapping instances;
a result analysis unit, configured to determine, based on the mapping result, initial matching degrees of the same type of data and block link points in different mapping instances;
and the matching degree correcting unit is used for acquiring the influence weight of other types of data on the same type of data mapping in different mapping examples, and correcting the initial matching degree based on the influence weight to obtain the storage matching degree of the same type of data and the block chain node.
In this embodiment, the mapping result is storage efficiency of the block link point storage data determined according to the mapping relationship in the mapping example, resource utilization rate in the storage process, and the like.
The beneficial effect of above-mentioned design is: the initial matching degree is corrected by analyzing the same type of data and the block chain link points according to the mapping examples and according to the influence of other types of data on the initial matching degree of the same type of data in different mapping examples, so that the establishment of the mapping relation of the storage can be more accurately determined based on the obtained storage matching degree.
Example 8
Based on embodiment 1, an embodiment of the present invention provides a block chain based storage system, and as shown in fig. 3, the data storage module includes:
the node determining unit is used for determining block chain link points which are correspondingly stored by the data to be stored based on the mapping relation;
the state prediction unit is used for establishing a storage task based on the block link points correspondingly stored by the data to be stored and determining a standard state of the block link points after the data to be stored is stored based on the storage task;
the state determining unit is used for storing the data to be stored to the corresponding block chain link points according to the storage task and detecting to obtain the running state of the block chain link points;
the verification unit is used for calculating a matching value between the standard state and the running state and verifying whether the block chain node correctly stores the data to be stored;
calculating a matching value between the standard state and the running state according to the following formula based on the standard state and the running state;
Figure BDA0003561886530000131
wherein, PzRepresenting a matching value between the standard state and the running state, s representing the number of storage areas of the blockchain node, K representing the number of unstable storage areas in the blockchain node, γ representing a running stability index of the blockchain node, taking a value of (0, 1), r (z) representing a running value of the standard state, and t (z) representing a running value of the running state;
the adjusting unit is used for adjusting the running state when the block chain node fails to correctly store the data to be stored after verification is obtained;
adjusting the operating state based on the matching value according to the following formula;
Figure BDA0003561886530000132
wherein, T (Z)NThe latest running state after adjustment is shown, h is the running efficiency of the running state before adjustment, and d is the resource utilization rate of the running state before adjustment.
In this embodiment, the higher the matching value between the standard state and the operating state is, the better the storage effect on the data to be stored is.
In this embodiment, the unstable storage area refers to a situation that storage of data to be stored may be unstable, and data loss may occur due to reasons such as a memory and a location of the storage area.
In this embodiment, the operational stability index of the blockchain node is related to the configuration of the blockchain link point itself.
In this embodiment, the operation efficiency and the resource utilization rate of the operation state before the adjustment may affect the operation value of the operation state, so the operation state is adjusted based on the operation efficiency and the resource utilization rate.
In this embodiment, the operating values of the operating state and the standard state are used to represent a state characteristic, with different state characteristics corresponding to different operating values.
In this embodiment, for
Figure BDA0003561886530000141
For example, n ═ 20, K ═ 3, Y ═ 0.8, r (z) ═ 0.70, t (z) ═ 0.60, P, may be mentionedzIf the match value is greater than 0.8, which indicates that the verification passes, then P is 0.5zA value of 0.5 indicates that the verification fails and the operating state needs to be adjusted.
In this embodiment, for
Figure BDA0003561886530000142
For example, h is 0.9, Pz=0.9,Pz0.5, T (Z) 0.60, then T (Z)N=0.68。
The beneficial effect of above-mentioned design is: the difference between the operation state of the block chain nodes after storing the data and the standard state is determined according to the mapping relation, the operation state is verified and adjusted, and the stability and the operation efficiency of storing the data to be stored in the block chain nodes are guaranteed.
Example 9
Based on embodiment 8, an embodiment of the present invention provides a storage system based on a block chain, where the node determining unit includes:
the dividing unit is used for dividing the data to be stored based on the mapping relation to obtain a plurality of sub-storage data;
and the storage determining unit is used for distributing the plurality of pieces of sub-storage data to corresponding block link points based on the mapping relation, and determining the storage modes and the storage positions in the block link points.
In this embodiment, the storage means includes an encryption level for data storage.
The beneficial effect of above-mentioned design is: according to the mapping relation, the data to be stored are divided in advance and the storage modes and the storage positions are allocated, so that the storage process is simplified, the number of times of calculating operation at the chain nodes of the block is reduced, and the storage efficiency is improved.
Example 10
Based on embodiment 1, an embodiment of the present invention provides a block chain-based storage system, further including: the data query module is used for querying and acquiring the data stored on the block chain node, and comprises:
the data receiving unit is used for receiving storage data required to be inquired by a user, presetting a preset screening attribute related to the storage data, and determining a first attribute value of the storage data under the preset screening attribute;
the rule determining unit is used for acquiring a target screening attribute of a user and a second attribute value corresponding to the target screening attribute, determining an incidence relation between the preset screening attribute and the target screening attribute, and determining a matching rule between the first attribute value and the second attribute value based on the incidence relation;
the data screening unit is used for matching the second attribute value with the first attribute value based on the matching rule and acquiring target storage data corresponding to the first attribute value meeting the requirement according to the matching result;
the data storage unit is used for setting a corresponding first identifier for the target storage data based on the first attribute value and selecting a temporary cache region for the target storage data according to the first identifier;
the first matching unit is used for performing first matching on the target storage data and the block chain link points according to the corresponding relation between the cache region and the block chain link points to obtain a first matching relation;
the data identification unit is used for acquiring historical storage data of the block chain nodes and second identifications corresponding to the historical storage data, and acquiring the same storage data corresponding to first identifications which are the same as the second identifications according to a first matching relation;
the second matching unit is used for extracting the related matching relation of the same storage data in the first matching relation to obtain a second matching relation, and performing second matching on the target storage data and the block link points on the basis of the second matching relation to obtain a second matching relation;
and the query acquisition unit is used for querying and extracting the data in the block link points based on the second matching relationship to obtain the storage data.
In this embodiment, the preset filtering attributes include data source, data type, data format, and the like.
In this embodiment, the association relationship between the preset filter attribute and the target filter attribute may be, for example, an association relationship between a data source, a data type, and a data format.
In this embodiment, the matching rule is specifically a functional relationship between the first attribute value and the second attribute value, and if the functional relationship is satisfied, it indicates that the data corresponding to the first attribute value and the second attribute value are the same, and the target storage data is data that the user needs to query and obtain.
In this embodiment, the same stored data is data used for acquiring block link points that users need to exist, and is data stored in the block link points.
In this embodiment, a corresponding cache region is set for the target storage data according to the first identifier, and through the corresponding cache region, matching between the target storage data and the block link point is facilitated, so that efficiency of querying and acquiring data is improved.
The beneficial effect of above-mentioned design is: the data screening unit screens the stored data, accuracy of the stored data is guaranteed, corresponding cache regions are set for the data by identifying the target stored data, matching between the target stored data and the block chain nodes is facilitated, the same data in the first matching relation between the target stored data and the block chain nodes are extracted according to the identification of the data, repeated operation times in the process of inquiring the block chain for the data are reduced, data processing burden of the block chain nodes in the data inquiring process is reduced, operating efficiency in the inquiring process of the block chain stored data is improved, and storage and inquiring efficiency of a storage system is guaranteed.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A blockchain-based storage system, comprising:
the acquisition module is used for acquiring data to be stored on the block chain and acquiring node information of the block chain;
the relation establishing module is used for establishing a mapping relation between the data to be stored and the block chain link points based on the characteristics and the node information of the data to be stored;
and the data storage module is used for storing the data to be stored to the nodes of the block chain based on the mapping relation.
2. The blockchain-based storage system according to claim 1, wherein the obtaining module comprises:
the receiving unit is used for receiving a data storage request sent by a user and acquiring user information;
the acquisition unit is used for matching with a storage system based on the user information, receiving data to be stored in the data storage request if the matching is successful, and otherwise, not responding to the data storage request and sending a safety prompt message;
and the cache unit is used for temporarily caching the received data to be stored and deleting the temporarily cached data after the block chain data storage is finished.
3. The blockchain-based storage system according to claim 1, wherein the obtaining module further comprises:
the information acquisition unit is used for acquiring information of the nodes of the block chain to obtain single node information of the block chain;
the association unit is used for associating all the single node information based on the distribution structure of the block node points to obtain association information;
and the integration unit is used for integrating all the single node information and the associated information to obtain the node information of the block chain.
4. The blockchain-based storage system according to claim 1, further comprising a data analysis module, configured to analyze the data to be stored and obtain characteristics of the data to be stored, including:
the matching unit is used for extracting the features of the data to be stored to obtain a feature vector, matching the feature vector with attribute feature vectors in a data attribute library and determining attribute features corresponding to the feature vectors;
the analysis unit is used for determining an analysis mode of the feature vector based on the attribute features and analyzing the feature vector based on the analysis mode to obtain type features and content features;
and the characteristic determining unit is used for determining the characteristics of the data to be stored based on the attribute characteristics, the type characteristics and the content characteristics.
5. The blockchain-based storage system according to claim 1, wherein the relationship establishing module comprises:
the marking unit is used for carrying out first marking on the data to be stored by utilizing a preset marking scheme based on the characteristics of the data to be stored, and carrying out second marking on the block chain link points by utilizing the preset marking scheme based on the node information of the block chain;
and the mapping unit is used for establishing the mapping relation between the data to be stored and the block link points by utilizing historical mapping information based on the first mark and the second mark.
6. The blockchain-based storage system according to claim 5, wherein the mapping unit includes:
a first sequence determining unit, configured to determine a first sequence corresponding to the first tag, and divide the first sequence based on a tag category of the first tag to obtain a plurality of first subsequences;
a priority determining unit, configured to obtain a target subsequence related to data priority from the plurality of first subsequences, and set a priority for the data to be stored based on the target subsequence;
a second sequence determining unit, configured to determine a second sequence corresponding to the second marker, and divide the second sequence corresponding to the plurality of first sub-sequences to obtain a plurality of second sub-sequences;
a sequence correction unit, configured to detect the second subsequence with the first subsequence as a sequence standard, extract an abnormal second subsequence that does not meet the sequence standard, and correct the abnormal second subsequence based on a sequence correction model to obtain a corrected second subsequence;
the matching degree determining unit is used for determining a mapping example in the historical block link point data storage process based on the historical mapping information and determining the storage matching degree between the historical storage data and the block link points based on the mapping example;
the matching unit is used for establishing a sequence matching degree set between the data mark sequence and the block chain link point sequence based on the storage matching degree, and matching the first subsequence and the second subsequence according to the priority of the data to be stored based on the sequence matching degree set to obtain a matching result;
and the relationship determining unit is used for establishing a mark corresponding relationship between the first mark and the second mark according to the corresponding relationship between the first mark and the second mark and the first sequence and the corresponding relationship between the second mark and the second sequence respectively based on the matching result, and establishing a mapping relationship between the data to be stored and the block link point based on the corresponding relationship between the first mark and the second mark and the data to be stored and the corresponding relationship between the first mark and the block link point.
7. The block chain-based storage system according to claim 6, wherein the matching degree determination unit comprises:
the instance analysis unit is used for analyzing the mapping instances and determining the mapping results of the same type of data and the block chain nodes in different mapping instances;
a result analysis unit, configured to determine, based on the mapping result, initial matching degrees of the same type of data and block link points in different mapping instances;
and the matching degree correcting unit is used for acquiring the influence weight of other types of data on the same type of data mapping in different mapping examples, and correcting the initial matching degree based on the influence weight to obtain the storage matching degree of the same type of data and the block chain node.
8. The blockchain-based storage system according to claim 1, wherein the data storage module comprises:
the node determining unit is used for determining block chain link points which are correspondingly stored by the data to be stored based on the mapping relation;
the state prediction unit is used for establishing a storage task based on the block link points correspondingly stored by the data to be stored and determining a standard state of the block link points after the data to be stored is stored based on the storage task;
the state determining unit is used for storing the data to be stored to the corresponding block chain link points according to the storage task and detecting to obtain the running state of the block chain link points;
the verification unit is used for calculating a matching value between the standard state and the running state and verifying whether the block chain node correctly stores the data to be stored;
and the adjusting unit is used for adjusting the running state when the block chain node is verified to be incapable of correctly storing the data to be stored.
9. The blockchain-based storage system according to claim 8, wherein the node determining unit includes:
the dividing unit is used for dividing the data to be stored based on the mapping relation to obtain a plurality of sub-storage data;
and the storage determining unit is used for distributing the plurality of pieces of sub-storage data to corresponding block link points based on the mapping relation, and determining the storage modes and the storage positions in the block link points.
10. The blockchain-based storage system according to claim 1, further comprising: the data query module is used for querying and acquiring the data stored on the block chain node, and comprises:
the data receiving unit is used for receiving storage data which needs to be inquired by a user, presetting a preset screening attribute related to the storage data, and determining a first attribute value of the storage data under the preset screening attribute;
the rule determining unit is used for acquiring a target screening attribute of a user and a second attribute value corresponding to the target screening attribute, determining an incidence relation between the preset screening attribute and the target screening attribute, and determining a matching rule between the first attribute value and the second attribute value based on the incidence relation;
the data screening unit is used for matching the second attribute value with the first attribute value based on the matching rule and acquiring target storage data corresponding to the first attribute value meeting the requirement according to the matching result;
the data storage unit is used for setting a corresponding first identifier for the target storage data based on the first attribute value and selecting a temporary cache region for the target storage data according to the first identifier;
the first matching unit is used for performing first matching on the target storage data and the block chain link points according to the corresponding relation between the cache region and the block chain link points to obtain a first matching relation;
the data identification unit is used for acquiring historical storage data of the block chain nodes and second identifications corresponding to the historical storage data, and acquiring the same storage data corresponding to first identifications which are the same as the second identifications according to a first matching relation;
the second matching unit is used for extracting the related matching relation of the same storage data in the first matching relation to obtain a second matching relation, and performing second matching on the target storage data and the block link points based on the second matching relation to obtain a second matching relation;
and the query acquisition unit is used for querying and extracting the data in the block link points based on the second matching relationship to obtain the storage data.
CN202210296942.3A 2022-03-24 2022-03-24 Storage system based on block chain Active CN114676444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210296942.3A CN114676444B (en) 2022-03-24 2022-03-24 Storage system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210296942.3A CN114676444B (en) 2022-03-24 2022-03-24 Storage system based on block chain

Publications (2)

Publication Number Publication Date
CN114676444A true CN114676444A (en) 2022-06-28
CN114676444B CN114676444B (en) 2023-10-10

Family

ID=82074623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210296942.3A Active CN114676444B (en) 2022-03-24 2022-03-24 Storage system based on block chain

Country Status (1)

Country Link
CN (1) CN114676444B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509463A (en) * 2022-11-15 2022-12-23 北京云成金融信息服务有限公司 Balanced data storage method and system based on data middling station
CN116881980A (en) * 2023-09-06 2023-10-13 北京迅京科技有限公司 Data tamper-proof method and device under reinforced block chain system node
CN117055818A (en) * 2023-08-25 2023-11-14 南京合宜信息技术有限公司 Client information storage management method and system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291022A (en) * 2020-02-10 2020-06-16 刘翱天 Data storage system based on block chain
CN111694502A (en) * 2019-03-14 2020-09-22 北京沃东天骏信息技术有限公司 Block chain data storage method, device, equipment and storage medium
CN111723149A (en) * 2020-05-18 2020-09-29 天津大学 Block chain storage optimization system and method based on remainder system
CN111770149A (en) * 2020-06-23 2020-10-13 江苏荣泽信息科技股份有限公司 Novel alliance chain based on distributed storage
CN113706047A (en) * 2021-09-03 2021-11-26 北京十速网络科技有限公司 Personal credit information authenticity evaluation method and system based on block chain technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694502A (en) * 2019-03-14 2020-09-22 北京沃东天骏信息技术有限公司 Block chain data storage method, device, equipment and storage medium
CN111291022A (en) * 2020-02-10 2020-06-16 刘翱天 Data storage system based on block chain
CN111723149A (en) * 2020-05-18 2020-09-29 天津大学 Block chain storage optimization system and method based on remainder system
CN111770149A (en) * 2020-06-23 2020-10-13 江苏荣泽信息科技股份有限公司 Novel alliance chain based on distributed storage
CN113706047A (en) * 2021-09-03 2021-11-26 北京十速网络科技有限公司 Personal credit information authenticity evaluation method and system based on block chain technology

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509463A (en) * 2022-11-15 2022-12-23 北京云成金融信息服务有限公司 Balanced data storage method and system based on data middling station
CN117055818A (en) * 2023-08-25 2023-11-14 南京合宜信息技术有限公司 Client information storage management method and system based on block chain
CN117055818B (en) * 2023-08-25 2024-05-10 南京合宜信息技术有限公司 Client information storage management method and system based on block chain
CN116881980A (en) * 2023-09-06 2023-10-13 北京迅京科技有限公司 Data tamper-proof method and device under reinforced block chain system node
CN116881980B (en) * 2023-09-06 2023-11-21 北京迅京科技有限公司 Data tamper-proof method and device under reinforced block chain system node

Also Published As

Publication number Publication date
CN114676444B (en) 2023-10-10

Similar Documents

Publication Publication Date Title
CN114676444B (en) Storage system based on block chain
CN109474578A (en) Message method of calibration, device, computer equipment and storage medium
CN108491715B (en) Terminal fingerprint database generation method and device and server
CN111666205B (en) Data auditing method, system, computer equipment and storage medium
US20200301944A1 (en) Method and apparatus for storing off-chain data
CN107368513B (en) Method and device for updating client database
CN111432410B (en) Network security protection method of mobile base station of Internet of things and cloud server of Internet of things
CN110442791B (en) Data pushing method and system
Papadopoulos et al. Authenticated multistep nearest neighbor search
WO2019056496A1 (en) Method for generating picture review probability interval and method for picture review determination
CN110457332B (en) Information processing method and related equipment
CN115391188A (en) Scene test case generation method, device, equipment and storage medium
CN111291234A (en) Account risk probability assessment method, device and system and storage medium
CN114356712A (en) Data processing method, device, equipment, readable storage medium and program product
CN117874224A (en) Data processing method and device, storage medium and electronic equipment
CN112434506A (en) Electronic protocol signing processing method, device, computer equipment and medium
CN115086047B (en) Interface authentication method and device, electronic equipment and storage medium
CN115905307A (en) Data storage method and device, electronic equipment and storage medium
CN112752165B (en) Subtitle processing method, subtitle processing device, server and computer readable storage medium
JP2015118644A (en) Information processing apparatus, image search method, and program
CN116107801A (en) Transaction processing method and related product
CN111614749B (en) Data transmission method, data transmission device, computer equipment and storage medium
CN110377584A (en) A kind of access method and device of the data structure edition compatibility based on metadata
CN115314382B (en) Configuration information processing method
CN112965993B (en) Data processing system, method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230912

Address after: 215000 Suzhou, Jiangsu, China (Jiangsu) Pilot Free Trade Zone Suzhou Area, Suzhou Industrial Park, No. 88 Jinjihu Avenue, Artificial Intelligence Industrial Park G4-301-023

Applicant after: Suzhou Ji'an Technology Co.,Ltd.

Address before: 510000 room 1809, No. 5, Huangpu East Road, Huangpu District, Guangzhou City, Guangdong Province (for office use only)

Applicant before: Guangzhou master Ming Information Service Co.,Ltd.

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