CN112732835A - Block chain-based heterogeneous data storage method and electronic equipment - Google Patents

Block chain-based heterogeneous data storage method and electronic equipment Download PDF

Info

Publication number
CN112732835A
CN112732835A CN202110035370.9A CN202110035370A CN112732835A CN 112732835 A CN112732835 A CN 112732835A CN 202110035370 A CN202110035370 A CN 202110035370A CN 112732835 A CN112732835 A CN 112732835A
Authority
CN
China
Prior art keywords
block chain
block
terminal
storage
unstructured data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202110035370.9A
Other languages
Chinese (zh)
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.)
Ningbo Yunlin Information Technology Co ltd
Original Assignee
Ningbo Yunlin Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Yunlin Information Technology Co ltd filed Critical Ningbo Yunlin Information Technology Co ltd
Priority to CN202110035370.9A priority Critical patent/CN112732835A/en
Publication of CN112732835A publication Critical patent/CN112732835A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/41Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the disclosure discloses a block chain-based heterogeneous data storage method and electronic equipment. One embodiment of the method comprises: acquiring unstructured data to be stored sent by a user; generating a digest value based on the unstructured data; sending the unstructured data and the abstract value to a first terminal; receiving a storage index set returned by a first terminal; sending a set of uplink request information to the blockchain; and receiving the uplink result information set sent back by the block chain. The method realizes reliable storage of heterogeneous data by means of block chain technology. And storing the structured abstract values and the unstructured data in a first terminal, and generating a storage index set by the first terminal. By constructing a storage index set of heterogeneous data, the target unstructured data can be quickly positioned and effectively traced in the block chain, and the storage efficiency of the block chain is improved.

Description

Block chain-based heterogeneous data storage method and electronic equipment
Technical Field
The embodiment of the disclosure relates to the field of block chains and storage, in particular to a heterogeneous data storage method and electronic equipment based on the block chains.
Background
With the development of a block chain technology, related researches for solving problems in various fields by using the block chain technology are more and more, and the characteristics of decentralization, tamper resistance, transparent data information sharing of the whole network, safety and reliability of data and the like of the block chain technology provide technical support and theoretical basis for solving the problems existing in the current multi-source heterogeneous data storage system. The application of the block chain technology can effectively reduce the operation cost of the storage method, and the block chain establishes a public account book of the whole network consensus for heterogeneous data storage in a decentralized network environment, so that the consensus and the non-falsification of the account book information by nodes in the block chain network are ensured.
However, when the above method is used to store heterogeneous data in a block chain, the following technical problems still occur:
first, the unstructured data has large storage capacity and large retrieval difficulty, and the storage and query methods for unstructured data and structured data are different. When searching for heterogeneous data stored in a block chain one by one in the block chain, the efficiency is low.
Secondly, the existing method mainly stores the heterogeneous data in the block chain directly, and an effective protection means is lacked, so that the security requirement of the heterogeneous data cannot be met, and the risk of malicious attack exists.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a block chain based heterogeneous data storage method and an electronic device to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for storing heterogeneous data based on a block chain, where the method includes: acquiring unstructured data to be stored sent by a user; generating a digest value based on the unstructured data; sending the unstructured data and the abstract value to a first terminal; receiving a storage index set returned by a first terminal; sending a set of uplink request information to the blockchain; and receiving the uplink result information set sent back by the block chain.
In a second aspect, some embodiments of the present disclosure provide a block chain based heterogeneous data storage apparatus, the apparatus comprising: the first receiving unit is configured to acquire unstructured data to be stored sent by a user; a generating unit configured to generate a digest value based on the unstructured data; the first sending unit is configured to send the unstructured data and the abstract values to a first terminal, wherein the first terminal stores the unstructured data and the abstract values, and the first terminal generates a storage index set; the second receiving unit is configured to receive the storage index set returned by the first terminal; a second sending unit configured to send a set of uplink request information to a block chain, wherein the block chain performs a common uplink and the block chain generates a set of uplink result information; a determining unit configured to accept the set of uplink result information sent back by the block chain.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement a method as in any one of the first aspects.
In a fourth aspect, some embodiments of the disclosure provide a computer readable storage medium having a computer program stored thereon, wherein the program when executed by a processor implements the method as in any one of the first aspect.
The above embodiments of the present disclosure have the following advantages: the heterogeneous data storage method based on the block chain can realize safe and effective storage of heterogeneous data. Specifically, the reason for the current block chain-based heterogeneous data storage with poor efficiency and security is that: the existing method is mainly used for directly storing the heterogeneous data in a block chain, an effective protection means is lacked, the security requirement of the heterogeneous data cannot be met, and the risk of malicious attack exists. In addition, the different retrieval methods for structured and unstructured data directly store unstructured data in blocks, which increases storage cost and also causes low retrieval efficiency. Based on this, the heterogeneous data storage method based on the block chain of some embodiments of the present disclosure realizes heterogeneous data storage based on a storage index set. First, a digest value is generated for unstructured data, the digest value being structured data. Secondly, the abstract value and the unstructured data are sent to the first terminal to be stored and a storage index set is generated. The set of storage indices includes an identity of the organization characterizing the first terminal and a storage address storing the unstructured data and the structured digest value. Then, the abstract value and the stored index set are used as a uplink request information set for uplink processing. Finally, the blockchain completes the uplink processing and sends back the uplink result information set. And the heterogeneous data storage based on the block chain is realized by using the characteristics of decentralization and traceability of the block chain. The method realizes reliable storage of heterogeneous data by means of block chain technology. And storing the structured abstract values and the unstructured data in a first terminal, and generating a storage index set by the first terminal. By constructing a storage index set of heterogeneous data, the target unstructured data can be quickly positioned and effectively traced in the block chain, and the storage efficiency of the block chain is improved. Finally, the uplink stores the digest value and the storage index set, and does not directly store the unstructured data in the blockchain, so that the safety of the storage of the unstructured data is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 2 is a flow diagram of some embodiments of a blockchain-based heterogeneous data storage method, according to some embodiments of the present disclosure;
FIG. 3 is a flow diagram of some embodiments of a blockchain based heterogeneous data storage device, according to some embodiments of the present disclosure;
FIG. 4 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the blockchain-based heterogeneous data storage method of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a data storage application, a data analysis application, a natural language processing application, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various terminal devices having a display screen, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the above-listed terminal apparatuses. Which may be implemented as multiple software or software modules (e.g., to provide unstructured data input, etc.), or as a single software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a server that stores unstructured data input by the terminal apparatuses 101, 102, 103, and the like. The server can process the received unstructured data and feed back the processing result to the terminal equipment.
It should be noted that the heterogeneous data storage method based on the block chain provided by the embodiment of the present disclosure may be executed by the server 105, or may be executed by the terminal device.
It is noted that the local to the server 105 may also store unstructured data directly, in which case the exemplary system architecture 100 may not include the terminal devices 101, 102, 103 and the network 104.
It should be noted that the terminal devices 101, 102, and 103 may also have storage-type applications installed therein, and in this case, the processing method may also be executed by the terminal devices 101, 102, and 103. At this point, the exemplary system architecture 100 may also not include the server 105 and the network 104.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide storage or traceability services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a blockchain-based heterogeneous data storage method in accordance with the present disclosure is illustrated. The heterogeneous data storage method based on the block chain comprises the following steps:
step 201, unstructured data to be stored sent by a user is obtained.
In some embodiments, an executing body (e.g., the electronic device shown in fig. 1) of the block chain-based heterogeneous data storage method may directly obtain unstructured data sent by a user and to be stored. The block chain includes at least one block. At least one of the tiles includes a first transaction identification, a second transaction identification, a tile hash value, a digital asset, and a set of tile information. Specifically, a block chain is a chain structure, and includes a head node (first block) and a tail node (last block) of the chain. A block is the primary data storage structure for a chain of blocks. Specifically, unstructured data is data which has an irregular or incomplete data structure, does not have a predefined data model, and is inconvenient to represent by a database two-dimensional logic table. Including office documents, text, pictures, XML, HTML, various types of reports, images, audio/video information, and the like, in all formats.
Step 202, generating a digest value based on the unstructured data.
In some embodiments, the execution agent generates the digest value based on unstructured data. Optionally, the terminal code and the public key are determined. Specifically, the terminal may be the execution body described above. The terminal code may be a string of numbers characterizing the execution body. The public key may be used to convert unstructured data into an unreadable format. A first integer parameter is randomly generated. The private key is determined using the following equation:
SK=Tq(gt)
wherein, T represents a public key, g is a generator, and T is a terminal code. t may be any integer, q is a polynomial of degree d-1, d is any integer, q (0) ═ y, and y is a first integer parameter. SK denotes a private key.
The signature code is generated using the following equation:
S=hSK mod T,
where SK is the private key and T is the public key. h represents unstructured data, hSKRepresenting the SK power of h. mod denotes the modulo process and S denotes the signature code.
The signature code is input to a hash function, and the obtained output is determined as an abstract value.
Optional contents in the above step 202, namely: the invention discloses a method for generating formula content of abstract values based on unstructured data, which is used as an invention point of an embodiment of the disclosure and solves the technical problems mentioned in the background technology. ". Factors that lead to poor security of heterogeneous data storage tend to be as follows: storing heterogeneous data directly in a block risks malicious attack or tampering. If the factors are solved, the effect of improving the storage safety of the heterogeneous data can be achieved. To achieve this, the present disclosure generates digest values of the heterogeneous data and stores the digest values instead of the heterogeneous data itself. First, a terminal code and a public key characterizing the terminal are generated. Then, a private key is calculated and determined using the terminal code and the public key. And thirdly, generating a signature code by utilizing the public key and the private key. And finally, inputting the signature code into a hash function to obtain an abstract value. The method determines a private key using a terminal code and a public key, and generates a signature code using the public key and the private key. And finally, the security of the digest value is further ensured after the signature code is processed by utilizing a hash function. Finally, the uplink stores the abstract value and does not directly store unstructured data in the blockchain, so that the safety of unstructured data storage is improved, the risk that heterogeneous data stored in the blockchain is maliciously attacked can be reduced, and the technical problem II is solved.
Step 203, sending the unstructured data and the abstract value to the first terminal.
In some embodiments, the executing entity sends the unstructured data and the digest value to the first terminal. Wherein the first terminal stores the unstructured data and the digest value. Specifically, the digest value is a result of a hash function, and the digest value is structured data. The first terminal stores heterogeneous data. The first terminal determines the storage address of the heterogeneous data. The memory address may be a uniform resource locator.
Optionally, the first terminal generates a storage index set. The first terminal generates the mechanism identification using the following equation:
A=H(p(ac-r)/b),
wherein p is a generator, and r, a, c and b are random integers respectively. H () is a hash function and a represents the organization identity. In particular, the mechanism identification may be a string of numbers characterizing the first terminal. And the first terminal determines the set of mechanism identification and storage address as the storage index set.
And step 204, receiving a storage index set returned by the first terminal.
In some embodiments, the execution body receives a storage index set returned by the first terminal.
Step 205, send the ul request information set to the blockchain.
In some embodiments, the execution body sends the set of uplink request information to the blockchain. Specifically, the ul request message set includes a digest value and a stored index set.
Optionally, the blockchain performs a common uplink. The blockchain generates blocks based on the set of uplink request information. Wherein, the block comprises a block head and a block body. The blockchain generates a blockhead. Wherein the block header comprises a block hash value, a block pointer, a block generation time, and a block information set. The block chain determines the block by the uplink request information set.
Optionally, the blockchain invokes an intelligent contract. Wherein the intelligent contract comprises intelligent contract code, an instance, and execution data.
And the block chain runs the intelligent contract code and links the block head in the block chain. In particular, an intelligent contract is a set of commitments defined in a digital form. The intelligent contract can control data in the block chain and appoint the rights and obligations of each participating terminal in the block chain. The smart contracts may be automatically executed by the computer system. In particular, the intelligent contract includes intelligent contract code, instances, and execution data. The intelligent contract code may be the source code of the intelligent contract. The intelligent contract code may be a piece of code that the computer system is capable of executing. An instance may be an actual service in a blockchain running an intelligent contract. The execution data may be data that remains in the blockchain after execution of an instance. Invoking the intelligent contract, running the intelligent contract code, generating an instance and executing data. The instance and the execution data are recorded in a blockchain.
Optionally, the block chain finds the last block based on the block generation time. The block chain runs intelligent contract code and points the block pointer to the last block. Specifically, the block header includes a block generation time. And searching the blocks in the block chain, and determining the block with the latest block generation time as the last block.
Optionally, the block chain generates a ul result information set. Specifically, the ul result information set may be a block. The uplink result information set may include a block header and a block body.
The optional contents in step 204 and step 205 are: the 'generating and storing index set and chaining' is used as an invention point of the embodiment of the disclosure, and solves the technical problems mentioned in the background technology, namely that the storage capacity of unstructured data is large, the retrieval difficulty is large, and the storage and query methods for the unstructured data and the structured data are different. When searching for heterogeneous data stored in a block chain one by one in the block chain, the efficiency is low. ". Factors that lead to the inefficiency of heterogeneous data storage tend to be as follows: the amount of unstructured data is large, and direct storage of unstructured data and structured data in a blockchain can result in inefficient storage. If the factors are solved, the effect of improving the heterogeneous data storage efficiency can be achieved. To achieve this, the present disclosure generates a set of stored indices and chains the set of stored indices. First, the first terminal determines the mechanism identification and the storage address of the heterogeneous data as a storage index set and returns the storage index set. Second, performing block chaining to perform common uplink stores index set uplink. And finally, generating an uplink result information set by the block chain to finish heterogeneous data storage. The method stores the structured digest values and the unstructured data at a first terminal, which generates a set of storage indices. By constructing a storage index set of heterogeneous data, the target unstructured data can be quickly positioned and effectively traced in the block chain, the storage efficiency of the block chain is improved, and the first technical problem is solved.
In step 206, the uplink result information set sent back by the block chain is received.
In some embodiments, the performing the cochain result information set sent back by the subject recipient block chain completes heterogeneous data storage.
One embodiment presented in fig. 2 has the following beneficial effects: first, a digest value is generated for unstructured data, the digest value being structured data. Secondly, the abstract value and the unstructured data are sent to the first terminal to be stored and a storage index set is generated. The set of storage indices includes an identity of the organization characterizing the first terminal and a storage address storing the unstructured data and the structured digest value. Then, the abstract value and the stored index set are used as a uplink request information set for uplink processing. Finally, the blockchain completes the uplink processing and sends back the uplink result information set. And the heterogeneous data storage based on the block chain is realized by using the characteristics of decentralization and traceability of the block chain. The method realizes reliable storage of heterogeneous data by means of block chain technology. And storing the structured abstract values and the unstructured data in a first terminal, and generating a storage index set by the first terminal. By constructing a storage index set of heterogeneous data, the target unstructured data can be quickly positioned and effectively traced in the block chain, and the storage efficiency of the block chain is improved. Finally, the uplink stores the digest value and the storage index set, and does not directly store the unstructured data in the blockchain, so that the safety of the storage of the unstructured data is improved.
With further reference to fig. 3, as an implementation of the above-described methods for the above-described figures, the present disclosure provides some embodiments of a block chain based heterogeneous data storage apparatus, which correspond to the method embodiments described above for fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 3, a block chain based heterogeneous data storage apparatus 300 of some embodiments includes: a first receiving unit 301, a generating unit 302, a first transmitting unit 303, a second receiving unit 304, a second transmitting unit 305, and a determining unit 306. The first receiving unit 301 is configured to obtain unstructured data sent by a user and to be stored. A generating unit 302 configured to generate a digest value based on the unstructured data. A first sending unit 303 configured to send the unstructured data and the digest value to the first terminal. The first terminal stores the unstructured data and the abstract values, and generates a storage index set. And a second receiving unit 304 configured to receive the storage index set returned by the first terminal. A second sending unit 305 configured to send a set of ul request information to the blockchain. Wherein the blockchain performs the common uplink, and the blockchain generates an uplink result information set. The determining unit 306 is configured to accept the set of uplink result information sent back by the block chain.
It will be understood that the units described in the apparatus 300 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 300 and the units included therein, and are not described herein again.
Referring now to FIG. 4, a block diagram of a computer system 400 suitable for use in implementing a server of an embodiment of the present disclosure is shown. The server shown in fig. 4 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU)401 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An Input/Output (I/O) interface 405 is also connected to the bus 404.
The following components are connected to the I/O interface 405: a storage section 406 including a hard disk and the like; and a communication section 407 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 407 performs communication processing via a network such as the internet. A drive 408 is also connected to the I/O interface 405 as needed. A removable medium 409 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted as necessary on the drive 408, so that a computer program read out therefrom is mounted as necessary in the storage section 406.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 407 and/or installed from the removable medium 409. The above-described functions defined in the method of the present disclosure are performed when the computer program is executed by a Central Processing Unit (CPU) 401. It should be noted that the computer readable medium in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A heterogeneous data storage method based on a block chain comprises the following steps:
acquiring unstructured data to be stored sent by a user;
generating a summary value based on the unstructured data;
sending the unstructured data and the abstract values to a first terminal, wherein the first terminal stores the unstructured data and the abstract values, and generates a storage index set;
receiving the storage index set returned by the first terminal;
sending a set of uplink request information to the blockchain, wherein the blockchain performs common uplink and generates a set of uplink result information;
and receiving the uplink result information set sent back by the block chain.
2. The method of claim 1, wherein the set of uplink request information comprises the digest value and the set of stored indices.
3. The method of claim 2, wherein generating a digest value based on the unstructured data comprises:
determining a terminal code and a public key;
randomly generating a first integer parameter;
the private key is determined using the following equation:
Figure FDA0002893096990000011
wherein T represents the public key, g is a generator, T is the terminal code, T may be any integer, q is a polynomial of degree d-1, d is any integer, q (0) is y, y is the first integer parameter, and SK represents the private key;
the signature code is generated using the following equation:
S=hSKmod T,
where SK is the private key, T is the public key, h represents the unstructured dataSKThe SK power of h, mod modular processing and S the signature code;
and inputting the signature code into a hash function, and determining the obtained output as the digest value.
4. The method of claim 3, wherein the blockchain performs a common uplink, comprising:
the block chain generates a block based on the uplink request information set, wherein the block comprises a block header and a block body;
the block chain calls an intelligent contract, wherein the intelligent contract comprises an intelligent contract code, an instance and execution data;
and the block chain runs the intelligent contract code and links the block head in the block chain.
5. The method of claim 4, wherein the block chain generating blocks based on the set of uplink request information comprises:
the block chain generates the block head, wherein the block head comprises a block hash value, a block pointer, a block generation time and a block information set;
the blockchain determines the set of uplink request information as the blocky.
6. The method of claim 5, wherein the first terminal generates a set of storage indices comprising:
the first terminal generates a mechanism identifier using the following equation:
A=H(p(ac-r)/b),
wherein p is a generator, r, a, c, b are random integers respectively, H () is a hash function, and a represents the mechanism identifier;
the first terminal determines the storage addresses of the unstructured data and the abstract values;
and the first terminal determines the set of the mechanism identification and the storage address as the storage index set.
7. The method of claim 6, wherein the blockchain running the intelligent contract code linking the blockhead in the blockchain comprises:
the block chain finds the last block based on the block generation time;
the block chain runs the intelligent contract code to point the block pointer to the last block.
8. A blockchain-based heterogeneous data storage device, comprising:
the first receiving unit is configured to acquire unstructured data to be stored sent by a user;
a generating unit configured to generate a digest value based on the unstructured data;
a first sending unit configured to send the unstructured data and the digest value to a first terminal, wherein the first terminal stores the unstructured data and the digest value, and the first terminal generates a storage index set;
a second receiving unit configured to receive the storage index set returned by the first terminal;
a second sending unit configured to send a set of uplink request information to the block chain, wherein the block chain performs common uplink identification and the block chain generates a set of uplink result information;
a determining unit configured to accept the uplink result information set sent back by the block chain.
9. A first terminal device comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
10. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-8.
CN202110035370.9A 2021-01-12 2021-01-12 Block chain-based heterogeneous data storage method and electronic equipment Withdrawn CN112732835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110035370.9A CN112732835A (en) 2021-01-12 2021-01-12 Block chain-based heterogeneous data storage method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110035370.9A CN112732835A (en) 2021-01-12 2021-01-12 Block chain-based heterogeneous data storage method and electronic equipment

Publications (1)

Publication Number Publication Date
CN112732835A true CN112732835A (en) 2021-04-30

Family

ID=75590572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110035370.9A Withdrawn CN112732835A (en) 2021-01-12 2021-01-12 Block chain-based heterogeneous data storage method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112732835A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259348A (en) * 2021-05-12 2021-08-13 深圳信息职业技术学院 Heterogeneous data processing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113167A (en) * 2019-04-01 2019-08-09 广州杰赛科技股份有限公司 A kind of information protecting method of intelligent terminal, system and readable storage medium storing program for executing
CN111373693A (en) * 2019-10-15 2020-07-03 支付宝(杭州)信息技术有限公司 Indexing and recovering encoded blockchain data
CN111950030A (en) * 2020-09-01 2020-11-17 宁波富万信息科技有限公司 Data sharing storage method based on block chain, terminal equipment and storage medium
CN112003858A (en) * 2020-08-21 2020-11-27 杭州云链趣链数字科技有限公司 Block chain-based platform docking method, electronic device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113167A (en) * 2019-04-01 2019-08-09 广州杰赛科技股份有限公司 A kind of information protecting method of intelligent terminal, system and readable storage medium storing program for executing
CN111373693A (en) * 2019-10-15 2020-07-03 支付宝(杭州)信息技术有限公司 Indexing and recovering encoded blockchain data
CN112003858A (en) * 2020-08-21 2020-11-27 杭州云链趣链数字科技有限公司 Block chain-based platform docking method, electronic device and storage medium
CN111950030A (en) * 2020-09-01 2020-11-17 宁波富万信息科技有限公司 Data sharing storage method based on block chain, terminal equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259348A (en) * 2021-05-12 2021-08-13 深圳信息职业技术学院 Heterogeneous data processing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6985576B2 (en) Business process systems, business data processing methods and equipment
CN110400221B (en) Data processing method, system, storage medium and computer equipment
CN110582775B (en) Method for managing files based on blockchain by utilizing UTXO (universal time-series oscillator) foundation protocol and file management server using same
US11050690B2 (en) Method for providing recording and verification service for data received and transmitted by messenger service, and server using method
US20200050782A1 (en) Method and apparatus for operating database
RU2744827C2 (en) White lists of smart contracts
EP4369273A2 (en) A method and system for securing computer software using a distributed hash table and a blockchain
KR102566892B1 (en) Blockchain consensus method, device and system
CN112184367B (en) Order processing method and device
CN112988674B (en) Big data file processing method and device, computer equipment and storage medium
EP2130138A2 (en) Method and apparatus for processing extensible markup language security messages using delta parsing technology
CN111950030A (en) Data sharing storage method based on block chain, terminal equipment and storage medium
CN112541775A (en) Transaction tracing method based on block chain, electronic device and computer storage medium
CN115618430B (en) Block chain-based data provider determining method and system
EP4350556A1 (en) Information verification method and apparatus
CN110910143A (en) Identity identification generation method, device, related node and medium
CN113765968A (en) File transmission method, device and system
CN112182109A (en) Distributed data coding storage method based on block chain and electronic equipment
WO2012129684A1 (en) Transforming http requests into web services trust messages for security processing
CN112732835A (en) Block chain-based heterogeneous data storage method and electronic equipment
US20180343216A1 (en) Context driven modification of attachments in a messaging session
CN111984615B (en) File sharing method, device and system
CN112182112A (en) Block chain based distributed data dynamic storage method and electronic equipment
Kleedorfer et al. Verifiability and traceability in a linked data based messaging system
CN112182108A (en) Block chain based distributed data storage updating method and electronic equipment

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210430

WW01 Invention patent application withdrawn after publication